framer-motion 7.6.18 → 7.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +33 -27
- package/dist/es/animation/utils/transitions.mjs +1 -19
- package/dist/es/render/dom/use-render.mjs +1 -1
- package/dist/es/render/svg/SVGVisualElement.mjs +10 -1
- package/dist/es/render/svg/config-motion.mjs +2 -1
- package/dist/es/render/svg/lowercase-elements.mjs +1 -0
- package/dist/es/render/svg/use-props.mjs +3 -2
- package/dist/es/render/svg/utils/build-attrs.mjs +11 -1
- package/dist/es/render/svg/utils/camel-case-attrs.mjs +3 -0
- package/dist/es/render/svg/utils/is-svg-tag.mjs +3 -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 +33 -27
- package/dist/framer-motion.js +1 -1
- package/dist/projection.dev.js +3 -21
- package/dist/size-rollup-dom-animation-assets.js +1 -1
- package/dist/size-rollup-dom-animation-m.js +1 -1
- package/dist/size-rollup-dom-animation.js +1 -1
- package/dist/size-rollup-dom-max-assets.js +1 -1
- package/dist/size-rollup-dom-max.js +1 -1
- package/dist/size-rollup-m.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/size-webpack-m.js +1 -1
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>i,k:()=>o});var i=function(){},o=function(){}},2819:(t,e,n)=>{n.d(e,{C:()=>i});const i=t=>Array.isArray(t)},138:(t,e,n)=>{n.d(e,{ev:()=>wt,b8:()=>Tt});var i=n(1818),o=n(9340),s=n(2634);const r=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function a(t,e,n,i){if(t===e&&n===i)return s.Z;const o=e=>function(t,e,n,i,o){let s,a,l=0;do{a=e+(n-e)/2,s=r(a,i,o)-t,s>0?n=a:e=a}while(Math.abs(s)>1e-7&&++l<12);return a}(e,0,1,t,n);return t=>0===t||1===t?t:r(o(t),e,i)}var l=n(5222),u=n(9273);const c=t=>t*t,h=(0,u.M)(c),d=(0,l.o)(c);var p=n(7110);const m=(t=1.525)=>e=>e*e*((t+1)*e-t),f=m(),v=(0,u.M)(f),g=(0,l.o)(f),y=(t=>{const e=m(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(),x={linear:s.Z,easeIn:c,easeInOut:d,easeOut:h,circIn:p.Z7,circInOut:p.X7,circOut:p.Bn,backIn:f,backInOut:g,backOut:v,anticipate:y},b=t=>{if(Array.isArray(t)){(0,o.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return a(e,n,i,s)}return"string"==typeof t?((0,o.k)(void 0!==x[t],`Invalid easing type '${t}'`),x[t]):t};var P=n(6002);const w=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!P.P.test(e)||e.startsWith("url(")));var T=n(2819);const A=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),V=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),E=()=>({type:"keyframes",ease:"linear",duration:.3}),S=t=>({type:"keyframes",duration:.8,values:t}),C={x:A,y:A,z:A,rotate:A,rotateX:A,rotateY:A,rotateZ:A,scaleX:V,scaleY:V,scale:V,opacity:E,backgroundColor:E,color:E,default:V},M=(t,e)=>{let n;return n=(0,T.C)(e)?S:C[t]||C.default,{to:e,...n(e)}};var D=n(6914);const R=!1;var k=n(7048),B=n(2866),L=n(7576),j=n(9043),O=n(5430),F=n(9012),I=n(3203),U=n(7493);function $(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}const N=(t,e,n)=>{const i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},Y=[F.$,I.m,U.J];function z(t){const e=(n=t,Y.find((t=>t.test(n))));var n;(0,o.k)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===U.J&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let o=0,s=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;o=$(a,i,t+1/3),s=$(a,i,t),r=$(a,i,t-1/3)}else o=s=r=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*r),alpha:i}}(i)),i}const W=(t,e)=>{const n=z(t),i=z(e),o={...n};return t=>(o.red=N(n.red,i.red,t),o.green=N(n.green,i.green,t),o.blue=N(n.blue,i.blue,t),o.alpha=(0,O.C)(n.alpha,i.alpha,t),I.m.transform(o))};var q=n(9820);function H(t,e){return"number"==typeof t?n=>(0,O.C)(t,e,n):L.$.test(t)?W(t,e):G(t,e)}const Z=(t,e)=>{const n=[...t],i=n.length,o=t.map(((t,n)=>H(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=o[e](t);return n}},X=(t,e)=>{const n={...t,...e},i={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(i[o]=H(t[o],e[o]));return t=>{for(const e in i)n[e]=i[e](t);return n}};function K(t){const e=P.P.parse(t),n=e.length;let i=0,o=0;for(let t=0;t<n;t++)i||"number"==typeof e[t]?i++:o++;return{parsed:e,numNumbers:i,numColors:o}}const G=(t,e)=>{const n=P.P.createTransformer(e),i=K(t),s=K(e);return i.numColors===s.numColors&&i.numNumbers>=s.numNumbers?(0,q.z)(Z(i.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}`)};var J=n(918);const Q=(t,e)=>n=>(0,O.C)(t,e,n);function _(t,e,n){const i=[],o=n||("number"==typeof(s=t[0])?Q:"string"==typeof s?L.$.test(s)?W:G:Array.isArray(s)?Z:"object"==typeof s?X:Q);var s;const r=t.length-1;for(let n=0;n<r;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;s=(0,q.z)(t,s)}i.push(s)}return i}function tt(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const r=t.length;(0,o.k)(r===e.length,"Both input and output ranges must be the same length"),(0,o.k)(!i||!Array.isArray(i)||i.length===r-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[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=_(e,i,s),l=a.length,u=e=>{let n=0;if(l>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const i=(0,J.Y)(t[n],t[n+1],e);return a[n](i)};return n?e=>u((0,j.u)(t[0],t[r-1],e)):u}function et(t,e){return t.map((()=>e||d)).splice(0,t.length-1)}const nt=.001;function it({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let s,r;(0,o.K)(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=(0,j.u)(.05,1,a),t=(0,j.u)(.01,10,t/1e3),a<1?(s=e=>{const i=e*a,o=i*t,s=i-n,r=ot(e,a),l=Math.exp(-o);return nt-s/r*l},r=e=>{const i=e*a*t,o=i*n+n,r=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=ot(Math.pow(e,2),a);return(-s(e)+nt>0?-1:1)*((o-r)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,r=e=>Math.exp(-e*t)*(t*t*(n-e)));const l=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(s,r,5/t);if(t*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(l,2)*i;return{stiffness:e,damping:2*a*Math.sqrt(i*e),duration:t}}}function ot(t,e){return t*Math.sqrt(1-e*e)}const st=["duration","bounce"],rt=["stiffness","damping","mass"];function at(t,e){return e.some((e=>void 0!==t[e]))}function lt({from:t=0,to:e=1,restSpeed:n=2,restDelta:i=.01,...o}){const s={done:!1,value:t};let{stiffness:r,damping:a,mass:l,velocity:u,duration:c,isResolvedFromDuration:h}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!at(t,rt)&&at(t,st)){const n=it(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(o),d=ut,p=ut;function m(){const n=u?-u/1e3:0,o=e-t,s=a/(2*Math.sqrt(r*l)),c=Math.sqrt(r/l)/1e3;if(void 0===i&&(i=Math.min(Math.abs(e-t)/100,.4)),s<1){const t=ot(c,s);d=i=>{const r=Math.exp(-s*c*i);return e-r*((n+s*c*o)/t*Math.sin(t*i)+o*Math.cos(t*i))},p=e=>{const i=Math.exp(-s*c*e);return s*c*i*(Math.sin(t*e)*(n+s*c*o)/t+o*Math.cos(t*e))-i*(Math.cos(t*e)*(n+s*c*o)-t*o*Math.sin(t*e))}}else if(1===s)d=t=>e-Math.exp(-c*t)*(o+(n+c*o)*t);else{const t=c*Math.sqrt(s*s-1);d=i=>{const r=Math.exp(-s*c*i),a=Math.min(t*i,300);return e-r*((n+s*c*o)*Math.sinh(a)+t*o*Math.cosh(a))/t}}}return m(),{next:t=>{const o=d(t);if(h)s.done=t>=c;else{const r=1e3*p(t),a=Math.abs(r)<=n,l=Math.abs(e-o)<=i;s.done=a&&l}return s.value=s.done?e:o,s},flipTarget:()=>{u=-u,[t,e]=[e,t],m()}}}lt.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const ut=t=>0;var ct=n(6162);const ht={decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:s}){const r={done:!1,value:e};let a=n*t;const l=e+a,u=void 0===s?l:s(l);return u!==l&&(a=u-e),{next:t=>{const e=-a*Math.exp(-t/i);return r.done=!(e>o||e<-o),r.value=r.done?u:u+e,r},flipTarget:()=>{}}},keyframes:function({from:t=0,to:e=1,ease:n,offset:i,duration:o=300}){const s={done:!1,value:t},r=Array.isArray(e)?e:[t,e],a=function(t,e){return t.map((t=>t*e))}(i&&i.length===r.length?i:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(r),o);function l(){return tt(a,r,{ease:Array.isArray(n)?n:et(r,n)})}let u=l();return{next:t=>(s.value=u(t),s.done=t>=o,s),flipTarget:()=>{r.reverse(),u=l()}}},spring:lt};function dt(t,e,n=0){return t-e-n}const pt=t=>{const e=({delta:e})=>t(e);return{start:()=>ct.ZP.update(e,!0),stop:()=>ct.qY.update(e)}};function mt({from:t,autoplay:e=!0,driver:n=pt,elapsed:i=0,repeat:o=0,repeatType:s="loop",repeatDelay:r=0,onPlay:a,onStop:l,onComplete:u,onRepeat:c,onUpdate:h,type:d="keyframes",...p}){var m,f;let v,g,y,{to:x}=p,b=0,P=p.duration,w=!1,T=!0;const A=ht[Array.isArray(x)?"keyframes":d];(null===(f=(m=A).needsInterpolation)||void 0===f?void 0:f.call(m,t,x))&&(y=tt([0,100],[t,x],{clamp:!1}),t=0,x=100);const V=A({...p,from:t,to:x});function E(){b++,"reverse"===s?(T=b%2==0,i=function(t,e=0,n=0,i=!0){return i?dt(e+-t,e,n):e-(t-e)+n}(i,P,r,T)):(i=dt(i,P,r),"mirror"===s&&V.flipTarget()),w=!1,c&&c()}function S(t){if(T||(t=-t),i+=t,!w){const t=V.next(Math.max(0,i));g=t.value,y&&(g=y(g)),w=T?t.done:i<=0}null==h||h(g),w&&(0===b&&(null!=P||(P=i)),b<o?function(t,e,n,i){return i?t>=e+n:t<=-n}(i,P,r,T)&&E():(v.stop(),u&&u()))}return e&&(null==a||a(),v=n(S),v.start()),{stop:()=>{null==l||l(),v.stop()}}}var ft=n(432);let vt=!1;function gt({ease:t,times:e,yoyo:n,flip:s,loop:r,...a}){const l={...a};return e&&(l.offset=e),a.duration&&(l.duration=(0,i.w)(a.duration)),a.repeatDelay&&(l.repeatDelay=(0,i.w)(a.repeatDelay)),t&&(l.ease=(t=>Array.isArray(t)&&"number"!=typeof t[0])(t)?t.map(b):b(t)),"tween"===a.type&&(l.type="keyframes"),(n||r||s)&&((0,o.K)(!vt,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),vt=!0,n?l.repeatType="reverse":r?l.repeatType="loop":s&&(l.repeatType="mirror"),l.repeat=r||n||s||a.repeat),"spring"!==a.type&&(l.type="keyframes"),l}function yt(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:i,staggerDirection:o,repeat:s,repeatType:r,repeatDelay:a,from:l,...u}){return!!Object.keys(u).length}(t)||(t={...t,...M(n,e.to)}),{...e,...gt(t)}}function xt(t,e,n,i,s){const r=wt(i,t)||{};let a=void 0!==r.from?r.from:e.get();const l=w(t,n);"none"===a&&l&&"string"==typeof n?a=(0,D.T)(t,n):bt(a)&&"string"==typeof n?a=Pt(n):!Array.isArray(n)&&bt(n)&&"string"==typeof a&&(n=Pt(a));const u=w(t,a);return(0,o.K)(u===l,`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.`),u&&l&&!1!==r.type?function(){const i={from:a,to:n,velocity:e.getVelocity(),onComplete:s,onUpdate:t=>e.set(t)};return"inertia"===r.type||"decay"===r.type?function({from:t=0,velocity:e=0,min:n,max:i,power:o=.8,timeConstant:s=750,bounceStiffness:r=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:h,onComplete:d,onStop:p}){let m;function f(t){return void 0!==n&&t<n||void 0!==i&&t>i}function v(t){return void 0===n?i:void 0===i||Math.abs(n-t)<Math.abs(i-t)?n:i}function g(t){null==m||m.stop(),m=mt({...t,driver:c,onUpdate:e=>{var n;null==h||h(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:p})}function y(t){g({type:"spring",stiffness:r,damping:a,restDelta:l,...t})}if(f(t))y({from:t,velocity:e,to:v(t)});else{let i=o*e+t;void 0!==u&&(i=u(i));const r=v(i),a=r===n?-1:1;let c,h;const d=t=>{c=h,h=t,e=(0,ft.R)(t-c,(0,ct.$B)().delta),(1===a&&t>r||-1===a&&t<r)&&y({from:t,to:r,velocity:e})};g({type:"decay",from:t,velocity:e,timeConstant:s,power:o,restDelta:l,modifyTarget:u,onUpdate:f(i)?d:void 0})}return{stop:()=>null==m?void 0:m.stop()}}({...i,...r}):mt({...yt(r,i,t),onUpdate:t=>{i.onUpdate(t),r.onUpdate&&r.onUpdate(t)},onComplete:()=>{i.onComplete(),r.onComplete&&r.onComplete()}})}:function(){const t=(0,k.Y)(n);return e.set(t),s(),r.onUpdate&&r.onUpdate(t),r.onComplete&&r.onComplete(),{stop:()=>{}}}}function bt(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Pt(t){return"number"==typeof t?0:(0,D.T)("",t)}function wt(t,e){return t[e]||t.default||t}function Tt(t,e,n,o={}){return R&&(o={type:!1}),e.start((s=>{let r;const a=xt(t,e,n,o,s),l=function(t,e){var n,i;return null!==(i=null!==(n=(wt(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==i?i:0}(o,t),u=()=>r=a();let c;return l?c=(0,B.g)(u,(0,i.w)(l)):u(),()=>{c&&c(),r&&r.stop()}}))}},1930:(t,e,n)=>{n.d(e,{oO:()=>s});var i=n(8370),o=n(7866);function s(){const t=(0,i.useContext)(o.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,r=(0,i.useId)();(0,i.useEffect)((()=>s(r)),[]);return!e&&n?[!1,()=>n&&n(r)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>o});var i=n(8370);const o=(0,i.createContext)(null)},7110:(t,e,n)=>{n.d(e,{Bn:()=>r,X7:()=>a,Z7:()=>s});var i=n(5222),o=n(9273);const s=t=>1-Math.sin(Math.acos(t)),r=(0,o.M)(s),a=(0,i.o)(r)},5222:(t,e,n)=>{n.d(e,{o:()=>i});const i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},9273:(t,e,n)=>{n.d(e,{M:()=>i});const i=t=>e=>1-t(1-e)},409:(t,e,n)=>{n.d(e,{Qk:()=>a,qT:()=>l});var i=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 r(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}function a(t,e="page"){return{point:(0,i.z)(t)?s(t,e):r(t,e)}}const l=(t,e=!1)=>{const n=e=>t(e,a(e));return e?(i=n,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&i(t)}):n;var i}},1876:(t,e,n)=>{n.d(e,{E:()=>o,p:()=>s});var i=n(8370);function o(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function s(t,e,n,s){(0,i.useEffect)((()=>{const i=t.current;if(n&&i)return o(i,e,n,s)}),[t,e,n,s])}},1395:(t,e,n)=>{n.d(e,{a:()=>u,m:()=>c});var i=n(1876),o=n(409),s=n(3093);const r={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 l(t){return s.j&&null===window.onpointerdown?t:s.j&&null===window.ontouchstart?a[t]:s.j&&null===window.onmousedown?r[t]:t}function u(t,e,n,s){return(0,i.E)(t,l(e),(0,o.qT)(n,"pointerdown"===e),s)}function c(t,e,n,s){return(0,i.p)(t,l(e),n&&(0,o.qT)(n,"pointerdown"===e),s)}},5856:(t,e,n)=>{function i(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{fJ:()=>r,gD:()=>a});const o=i("dragHorizontal"),s=i("dragVertical");function r(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}function a(){const t=r(!0);return!t||(t(),!1)}},3541:(t,e,n)=>{function i(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function o(t){return!!t.touches}n.d(e,{N:()=>i,z:()=>o})},6295:(t,e,n)=>{n.d(e,{x:()=>i});const i=t=>e=>(t(e),null)},483:(t,e,n)=>{function i({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function o({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(e,{d7:()=>s,i8:()=>i,z2:()=>o})},1360:(t,e,n)=>{n.d(e,{D2:()=>f,YY:()=>u,am:()=>h,o2:()=>l,q2:()=>s});var i=n(5430),o=n(4918);function s(t,e,n){return n+e*(t-n)}function r(t,e,n,i,o){return void 0!==o&&(t=s(t,o,i)),s(t,n,i)+e}function a(t,e=0,n=1,i,o){t.min=r(t.min,e,n,i,o),t.max=r(t.max,e,n,i,o)}function l(t,{x:e,y:n}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,n.translate,n.scale,n.originPoint)}function u(t,e,n,i=!1){var s,r;const a=n.length;if(!a)return;let u,h;e.x=e.y=1;for(let c=0;c<a;c++)u=n[c],h=u.projectionDelta,"contents"!==(null===(r=null===(s=u.instance)||void 0===s?void 0:s.style)||void 0===r?void 0:r.display)&&(i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&f(t,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),h&&(e.x*=h.x.scale,e.y*=h.y.scale,l(t,h)),i&&(0,o.ud)(u.latestValues)&&f(t,u.latestValues));e.x=c(e.x),e.y=c(e.y)}function c(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,[n,o,s]){const r=void 0!==e[s]?e[s]:.5,l=(0,i.C)(t.min,t.max,r);a(t,e[n],e[o],l,e.scale)}const p=["x","scaleX","originX"],m=["y","scaleY","originY"];function f(t,e){d(t.x,e,p),d(t.y,e,m)}},1397:(t,e,n)=>{n.d(e,{dO:()=>o,wc:()=>i});const i=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),o=()=>({x:{min:0,max:0},y:{min:0,max:0}})},798:(t,e,n)=>{n.d(e,{B:()=>o,P:()=>i});const i={};function o(t){Object.assign(i,t)}},4918:(t,e,n)=>{function i(t){return void 0===t||1===t}function o({scale:t,scaleX:e,scaleY:n}){return!i(t)||!i(e)||!i(n)}function s(t){return o(t)||r(t)||t.z||t.rotate||t.rotateX||t.rotateY}function r(t){return a(t.x)||a(t.y)}function a(t){return t&&"0%"!==t}n.d(e,{D_:()=>r,Lj:()=>o,ud:()=>s})},8834:(t,e,n)=>{n.d(e,{J:()=>s,z:()=>r});var i=n(483),o=n(1360);function s(t,e){return(0,i.i8)((0,i.d7)(t.getBoundingClientRect(),e))}function r(t,e,n){const i=s(t,n),{scroll:r}=e;return r&&((0,o.am)(i.x,r.offset.x),(0,o.am)(i.y,r.offset.y)),i}},5151:(t,e,n)=>{n.d(e,{H:()=>ce});var i=n(8370);function o(t){return"object"==typeof t&&"function"==typeof t.start}var s=n(1930),r=n(7866),a=n(2819);function l(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}var u=n(138),c=n(6002);const h=t=>/^0[^.\s]+$/.test(t);var d=n(7048),p=n(1421),m=n(6914),f=n(7576),v=n(1513),g=n(155);const y=t=>e=>e.test(t),x=[v.Rx,g.px,g.aQ,g.RW,g.vw,g.vh,{test:t=>"auto"===t,parse:t=>t}],b=t=>x.find(y(t)),P=[...x,f.$,c.P],w=t=>P.find(y(t));function T(t,e,n,i={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,o)),e}function A(t,e,n){const i=t.getProps();return T(i,e,void 0!==n?n:i.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 V(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,p.B)(n))}function E(t,e){const n=A(t,e);let{transitionEnd:i={},transition:o={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...i};for(const e in s){V(t,e,(0,d.Y)(s[e]))}}function S(t,e){if(!e)return;return(e[t]||e.default||e).from}const C=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],M=new Set(C);var D=n(7846);function R(t){return Boolean((0,D.i)(t)&&t.add)}function k(t,e,n={}){var i;const o=A(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const r=o?()=>B(t,o,n):()=>Promise.resolve(),a=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?(i=0)=>{const{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,n=0,i=0,o=1,s){const r=[],a=(t.variantChildren.size-1)*i,l=1===o?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(L).forEach(((t,i)=>{r.push(k(t,e,{...s,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,o+i,r,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(e)}return Promise.all([r(),a(n.delay)])}function B(t,e,{delay:n=0,transitionOverride:i,type:o}={}){var s;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");i&&(r=i);const h=[],d=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const e in l){const i=t.getValue(e),o=l[e];if(!i||void 0===o||d&&j(d,e))continue;let s={delay:n,...r};t.shouldReduceMotion&&M.has(e)&&(s={...s,type:!1,delay:0});let a=(0,u.b8)(e,i,o,s);R(c)&&(c.add(e),a=a.then((()=>c.remove(e)))),h.push(a)}return Promise.all(h).then((()=>{a&&E(t,a)}))}function L(t,e){return t.sortNodePosition(e)}function j({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function O(t){return"string"==typeof t||Array.isArray(t)}var F=n(7921);const I=[F.r.Animate,F.r.InView,F.r.Focus,F.r.Hover,F.r.Tap,F.r.Drag,F.r.Exit],U=[...I].reverse(),$=I.length;function N(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>k(t,e,n)));i=Promise.all(o)}else if("string"==typeof e)i=k(t,e,n);else{const o="function"==typeof e?A(t,e,n.custom):e;i=B(t,o,n)}return i.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function Y(t){let e=N(t);const n={[F.r.Animate]:W(!0),[F.r.InView]:W(),[F.r.Hover]:W(),[F.r.Tap]:W(),[F.r.Drag]:W(),[F.r.Focus]:W(),[F.r.Exit]:W()};let i=!0;const s=(e,n)=>{const i=A(t,n);if(i){const{transition:t,transitionEnd:n,...o}=i;e={...e,...o,...n}}return e};function r(r,u){var c;const h=t.getProps(),d=t.getVariantContext(!0)||{},p=[],m=new Set;let f={},v=1/0;for(let e=0;e<$;e++){const g=U[e],y=n[g],x=null!==(c=h[g])&&void 0!==c?c:d[g],b=O(x),P=g===u?y.isActive:null;!1===P&&(v=e);let w=x===d[g]&&x!==h[g]&&b;if(w&&i&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...f},!y.isActive&&null===P||!x&&!y.prevProp||o(x)||"boolean"==typeof x)continue;const T=z(y.prevProp,x);let A=T||g===u&&y.isActive&&!w&&b||e>v&&b;const V=Array.isArray(x)?x:[x];let E=V.reduce(s,{});!1===P&&(E={});const{prevResolvedValues:S={}}=y,C={...S,...E},M=t=>{A=!0,m.delete(t),y.needsAnimating[t]=!0};for(const t in C){const e=E[t],n=S[t];f.hasOwnProperty(t)||(e!==n?(0,a.C)(e)&&(0,a.C)(n)?!l(e,n)||T?M(t):y.protectedKeys[t]=!0:void 0!==e?M(t):m.add(t):void 0!==e&&m.has(t)?M(t):y.protectedKeys[t]=!0)}y.prevProp=x,y.prevResolvedValues=E,y.isActive&&(f={...f,...E}),i&&t.blockInitialAnimation&&(A=!1),A&&!w&&p.push(...V.map((t=>({animation:t,options:{type:g,...r}}))))}if(m.size){const e={};m.forEach((n=>{const i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)})),p.push({animation:e})}let g=Boolean(p.length);return i&&!1===h.initial&&!t.manuallyAnimateOnMount&&(g=!1),i=!1,g?e(p):Promise.resolve()}return{animateChanges:r,setActive:function(e,i,o){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const a=r(o,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function z(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!l(e,t)}function W(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var q=n(6295);const H={animation:(0,q.x)((({visualElement:t,animate:e})=>{t.animationState||(t.animationState=Y(t)),o(e)&&(0,i.useEffect)((()=>e.subscribe(t)),[e])})),exit:(0,q.x)((t=>{const{custom:e,visualElement:n}=t,[o,a]=(0,s.oO)(),l=(0,i.useContext)(r.O);(0,i.useEffect)((()=>{n.isPresent=o;const t=n.animationState&&n.animationState.setActive(F.r.Exit,!o,{custom:l&&l.custom||e});t&&!o&&t.then(a)}),[o])}))};var Z=n(1876);var X=n(3541),K=n(1395),G=n(5856);function J(t,e,n){return(i,o)=>{(0,X.N)(i)&&!(0,G.gD)()&&(t.animationState&&t.animationState.setActive(F.r.Hover,e),n&&n(i,o))}}const Q=(t,e)=>!!e&&(t===e||Q(t,e.parentElement));var _=n(9531),tt=n(9820);const et=("undefined"==typeof process||process.env,"production"),nt=new Set;const it=new WeakMap,ot=new WeakMap,st=t=>{const e=it.get(t.target);e&&e(t)},rt=t=>{t.forEach(st)};function at(t,e,n){const i=function({root:t,...e}){const n=t||document;ot.has(n)||ot.set(n,{});const i=ot.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(rt,{root:t,...e})),i[o]}(e);return it.set(t,n),i.observe(t),()=>{it.delete(t),i.unobserve(t)}}const lt={some:0,all:1};function ut(t,e,n,{root:o,margin:s,amount:r="some",once:a}){(0,i.useEffect)((()=>{if(!t||!n.current)return;const i={root:null==o?void 0:o.current,rootMargin:s,threshold:"number"==typeof r?r:lt[r]};return at(n.current,i,(t=>{const{isIntersecting:i}=t;if(e.isInView===i)return;if(e.isInView=i,a&&!i&&e.hasEnteredView)return;i&&(e.hasEnteredView=!0),n.animationState&&n.animationState.setActive(F.r.InView,i);const o=n.getProps(),s=i?o.onViewportEnter:o.onViewportLeave;s&&s(t)}))}),[t,o,s,r])}function ct(t,e,n,{fallback:o=!0}){(0,i.useEffect)((()=>{var i,s;t&&o&&("production"!==et&&(i="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||nt.has(i)||(console.warn(i),s&&console.warn(s),nt.add(i))),requestAnimationFrame((()=>{e.hasEnteredView=!0;const{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(F.r.InView,!0)})))}),[t])}const ht={inView:(0,q.x)((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:o,viewport:s={}}){const r=(0,i.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||o);s.once&&r.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?ct:ut)(a,r.current,t,s)})),tap:(0,q.x)((function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:o,visualElement:s}){const r=t||e||n||o,a=(0,i.useRef)(!1),l=(0,i.useRef)(null),u={passive:!(e||t||n||m)};function c(){l.current&&l.current(),l.current=null}function h(){return c(),a.current=!1,s.animationState&&s.animationState.setActive(F.r.Tap,!1),!(0,G.gD)()}function d(e,i){h()&&(Q(s.current,e.target)?t&&t(e,i):n&&n(e,i))}function p(t,e){h()&&n&&n(t,e)}function m(t,n){c(),a.current||(a.current=!0,l.current=(0,tt.z)((0,K.a)(window,"pointerup",d,u),(0,K.a)(window,"pointercancel",p,u)),s.animationState&&s.animationState.setActive(F.r.Tap,!0),e&&e(t,n))}(0,K.m)(s,"pointerdown",r?m:void 0,u),(0,_.z)(c)})),focus:(0,q.x)((function({whileFocus:t,visualElement:e}){const{animationState:n}=e;(0,Z.p)(e,"focus",t?()=>{n&&n.setActive(F.r.Focus,!0)}:void 0),(0,Z.p)(e,"blur",t?()=>{n&&n.setActive(F.r.Focus,!1)}:void 0)})),hover:(0,q.x)((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:i}){(0,K.m)(i,"pointerenter",t||n?J(i,!0,t):void 0,{passive:!t}),(0,K.m)(i,"pointerleave",e||n?J(i,!1,e):void 0,{passive:!e})}))},dt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pt=(t,e)=>C.indexOf(t)-C.indexOf(e);function mt(t){return t.startsWith("--")}const ft=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var vt=n(4923);function gt(t,e,n,i){const{style:o,vars:s,transform:r,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,c=!1,h=!0;for(const t in e){const n=e[t];if(mt(t)){s[t]=n;continue}const i=vt.j[t],d=ft(n,i);if(M.has(t)){if(u=!0,r[t]=d,a.push(t),!h)continue;n!==(i.default||0)&&(h=!1)}else t.startsWith("origin")?(c=!0,l[t]=d):o[t]=d}if(e.transform||(u||i?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},o,s){let r="";e.sort(pt);for(const n of e)r+=`${dt[n]||n}(${t[n]}) `;return n&&!t.z&&(r+="translateZ(0)"),r=r.trim(),s?r=s(t,o?"":r):i&&o&&(r="none"),r}(t,n,h,i):o.transform&&(o.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;o.transformOrigin=`${t} ${e} ${n}`}}var yt=n(798);function xt(t,{layout:e,layoutId:n}){return M.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!yt.P[t]||"opacity"===t)}function bt(t){const{style:e}=t,n={};for(const i in e)((0,D.i)(e[i])||xt(i,t))&&(n[i]=e[i]);return n}function Pt(t,{style:e,vars:n},i,o){Object.assign(t.style,e,o&&o.getProjectionStyles(i));for(const e in n)t.style.setProperty(e,n[e])}var wt=n(7557),Tt=n(8834),At=n(6978),Vt=n(9340),Et=n(3093);const St=new Set(["width","height","top","left","right","bottom","x","y"]),Ct=t=>St.has(t),Mt=(t,e)=>{t.set(e,!1),t.set(e)},Dt=t=>t===v.Rx||t===g.px;var Rt;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Rt||(Rt={}));const kt=(t,e)=>parseFloat(t.split(", ")[e]),Bt=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return kt(o[1],e);{const e=i.match(/^matrix\((.+)\)$/);return e?kt(e[1],t):0}},Lt=new Set(["x","y","z"]),jt=C.filter((t=>!Lt.has(t)));const Ot={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:Bt(4,13),y:Bt(5,14)},Ft=(t,e,n={},i={})=>{e={...e},i={...i};const o=Object.keys(e).filter(Ct);let s=[],r=!1;const l=[];if(o.forEach((o=>{const u=t.getValue(o);if(!t.hasValue(o))return;let c=n[o],h=b(c);const d=e[o];let p;if((0,a.C)(d)){const t=d.length,e=null===d[0]?1:0;c=d[e],h=b(c);for(let n=e;n<t;n++)p?(0,Vt.k)(b(d[n])===p,"All keyframes must be of the same type"):(p=b(d[n]),(0,Vt.k)(p===h||Dt(h)&&Dt(p),"Keyframes must be of the same dimension as the current value"))}else p=b(d);if(h!==p)if(Dt(h)&&Dt(p)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&p===g.px&&(e[o]=d.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?u.set(p.transform(c)):e[o]=h.transform(d):(r||(s=function(t){const e=[];return jt.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),r=!0),l.push(o),i[o]=void 0!==i[o]?i[o]:e[o],Mt(u,d))})),l.length){const n=l.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const i=e.measureViewportBox(),o=e.current,s=getComputedStyle(o),{display:r}=s,a={};"none"===r&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Ot[t](i,s)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const i=e.getValue(n);Mt(i,a[n]),t[n]=Ot[n](l,s)})),t})(e,t,l);return s.length&&s.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),Et.j&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:i}}return{target:e,transitionEnd:i}};function It(t,e,n,i){return(t=>Object.keys(t).some(Ct))(e)?Ft(t,e,n,i):{target:e,transitionEnd:i}}var Ut=n(6162);const $t=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),Nt={measureLayout:$t(["layout","layoutId","drag"]),animation:$t(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:$t(["exit"]),drag:$t(["drag","dragControls"]),focus:$t(["whileFocus"]),hover:$t(["whileHover","onHoverStart","onHoverEnd"]),tap:$t(["whileTap","onTap","onTapStart","onTapCancel"]),pan:$t(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:$t(["whileInView","onViewportEnter","onViewportLeave"])};var Yt=n(1397),zt=n(3491);const Wt={current:null},qt={current:!1};var Ht=n(1065);const Zt=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Xt(t){return o(t.animate)||Zt.some((e=>O(t[e])))}const Kt=Object.keys(Nt),Gt=Kt.length,Jt=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Qt=["initial",...I],_t=Qt.length;class te extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:i},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=()=>Ut.ZP.render(this.render,!1,!0);const{latestValues:s,renderState:r}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=r,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Xt(e),this.isVariantNode=function(t){return Boolean(Xt(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...l}=this.scrapeMotionValuesFromProps(e);for(const t in l){const e=l[t];void 0!==s[t]&&(0,D.i)(e)&&(e.set(s[t],!1),R(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===(e=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,Et.j)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Wt.current=t.matches;t.addListener(e),e()}else Wt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Wt.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===(t=this.projection)||void 0===t||t.unmount(),Ut.qY.update(this.notifyUpdate),Ut.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=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=M.has(t),i=e.onChange((e=>{this.latestValues[t]=e,this.props.onUpdate&&Ut.ZP.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(t,(()=>{i(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,o,s,r){const a=[];"production"!==et&&n&&e&&(0,Vt.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 e=0;e<Gt;e++){const n=Kt[e],{isEnabled:o,Component:s}=Nt[n];o(t)&&s&&a.push((0,i.createElement)(s,{key:n,...t,visualElement:this}))}if(!this.projection&&s){this.projection=new s(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:i,dragConstraints:a,layoutScroll:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(i)||a&&(0,zt.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,Yt.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<Jt.length;e++){const n=Jt[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){const{willChange:i}=e;for(const o in e){const s=e[o],r=n[o];if((0,D.i)(s))t.addValue(o,s),R(i)&&i.add(o);else if((0,D.i)(r))t.addValue(o,(0,p.B)(s)),R(i)&&i.remove(o);else if(r!==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 i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null===(e=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===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const i={};for(let t=0;t<_t;t++){const e=Qt[t],n=this.props[e];(O(n)||!1===n)&&(i[e]=n)}return i}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===(e=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===(e=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&&(n=(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,i="string"==typeof n||"object"==typeof n?null===(e=T(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||(0,D.i)(o)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new Ht.L),this.events[t].add(e)}notify(t,...e){var n;null===(n=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===(n=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:i},o){let s=function(t,e,n){var i;const o={};for(const s in t){const t=S(s,e);o[s]=void 0!==t?t:null===(i=n.getValue(s))||void 0===i?void 0:i.get()}return o}(n,t||{},this);if(i&&(e&&(e=i(e)),n&&(n=i(n)),s&&(s=i(s))),o){!function(t,e,n){var i,o;const s=Object.keys(e).filter((e=>!t.hasValue(e))),r=s.length;if(r)for(let a=0;a<r;a++){const r=s[a],l=e[r];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(o=null!==(i=n[r])&&void 0!==i?i:t.readValue(r))&&void 0!==o?o:e[r]),null!=u&&("string"==typeof u&&(/^\-?\d*\.?\d+$/.test(u)||h(u))?u=parseFloat(u):!w(u)&&c.P.test(l)&&(u=(0,m.T)(r,l)),t.addValue(r,(0,p.B)(u)),void 0===n[r]&&(n[r]=u),null!==u&&t.setBaseTarget(r,u))}}(this,n,s);const t=((t,e,n,i)=>{const o=(0,At.mH)(t,e,i);return It(t,e=o.target,n,i=o.transitionEnd)})(this,n,s,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class ee extends te{readValueFromInstance(t,e){if(M.has(e)){const t=(0,wt.A)(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),o=(mt(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,Tt.J)(t,e)}build(t,e,n,i){gt(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t){return bt(t)}renderInstance(t,e,n,i){Pt(t,e,n,i)}}function ne(t,e,n){return"string"==typeof t?t:g.px.transform(e+n*t)}const ie={offset:"stroke-dashoffset",array:"stroke-dasharray"},oe={offset:"strokeDashoffset",array:"strokeDasharray"};function se(t,{attrX:e,attrY:n,originX:i,originY:o,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...l},u,c){gt(t,l,u,c),t.attrs=t.style,t.style={};const{attrs:h,style:d,dimensions:p}=t;h.transform&&(p&&(d.transform=h.transform),delete h.transform),p&&(void 0!==i||void 0!==o||d.transform)&&(d.transformOrigin=function(t,e,n){return`${ne(e,t.x,t.width)} ${ne(n,t.y,t.height)}`}(p,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==s&&function(t,e,n=1,i=0,o=!0){t.pathLength=1;const s=o?ie:oe;t[s.offset]=g.px.transform(-i);const r=g.px.transform(e),a=g.px.transform(n);t[s.array]=`${r} ${a}`}(h,s,r,a,!1)}const re=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),ae=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);class le extends te{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return M.has(e)?(null===(n=(0,wt.A)(e))||void 0===n?void 0:n.default)||0:(e=ae.has(e)?e:re(e),t.getAttribute(e))}measureInstanceViewportBox(){return(0,Yt.dO)()}scrapeMotionValuesFromProps(t){return function(t){const e=bt(t);for(const n in t)(0,D.i)(t[n])&&(e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]);return e}(t)}build(t,e,n,i){se(t,e,n,i.transformTemplate)}renderInstance(t,e,n,i){!function(t,e,n,i){Pt(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(ae.has(n)?n:re(n),e.attrs[n])}(t,e,0,i)}}const ue=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","text","tspan","use","view"];const ce={renderer:(t,e)=>function(t){return"string"==typeof t&&!t.includes("-")&&!!(ue.indexOf(t)>-1||/[A-Z]/.test(t))}(t)?new le(e,{enableHardwareAcceleration:!1}):new ee(e,{enableHardwareAcceleration:!0}),...H,...ht}},6978:(t,e,n)=>{n.d(e,{Xp:()=>s,mH:()=>a});var i=n(9340);function o(t){return"string"==typeof t&&t.startsWith("var(--")}const s=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function r(t,e,n=1){(0,i.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[a,l]=function(t){const e=s.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}(t);if(!a)return;const u=window.getComputedStyle(e).getPropertyValue(a);return u?u.trim():o(l)?r(l,e,n+1):l}function a(t,{...e},n){const i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!o(e))return;const n=r(e,i);n&&t.set(n)}));for(const t in e){const s=e[t];if(!o(s))continue;const a=r(s,i);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:()=>r});var i=n(9500),o=n(6002),s=n(7557);function r(t,e){var n;let r=(0,s.A)(t);return r!==i.h&&(r=o.P),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,e)}},7557:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(7576),o=n(9500);const s={...n(4923).j,color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:o.h,WebkitFilter:o.h},r=t=>s[t]},4923:(t,e,n)=>{n.d(e,{j:()=>r});var i=n(155),o=n(1513),s=n(6933);const r={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,size:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,rotate:i.RW,rotateX:i.RW,rotateY:i.RW,rotateZ:i.RW,scale:o.bA,scaleX:o.bA,scaleY:o.bA,scaleZ:o.bA,skew:i.RW,skewX:i.RW,skewY:i.RW,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:o.Fq,originX:i.$C,originY:i.$C,originZ:i.px,zIndex:s.e,fillOpacity:o.Fq,strokeOpacity:o.Fq,numOctaves:s.e}},6933:(t,e,n)=>{n.d(e,{e:()=>i});const i={...n(1513).Rx,transform:Math.round}},7921:(t,e,n)=>{var i;n.d(e,{r:()=>i}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(i||(i={}))},1180:(t,e,n)=>{function i(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:()=>i})},9043:(t,e,n)=>{n.d(e,{u:()=>i});const i=(t,e,n)=>Math.min(Math.max(n,t),e)},2866:(t,e,n)=>{n.d(e,{g:()=>o});var i=n(6162);function o(t,e){const n=performance.now(),o=({timestamp:s})=>{const r=s-n;r>=e&&(i.qY.read(o),t(r-e))};return i.ZP.read(o,!0),()=>i.qY.read(o)}},3093:(t,e,n)=>{n.d(e,{j:()=>i});const i="undefined"!=typeof document},3491:(t,e,n)=>{function i(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>i})},5430:(t,e,n)=>{n.d(e,{C:()=>i});const i=(t,e,n)=>-n*t+n*e+t},2634:(t,e,n)=>{n.d(e,{Z:()=>i});const i=t=>t},9820:(t,e,n)=>{n.d(e,{z:()=>o});const i=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(i)},918:(t,e,n)=>{n.d(e,{Y:()=>i});const i=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i}},7048:(t,e,n)=>{n.d(e,{Y:()=>s,p:()=>o});var i=n(2819);const o=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),s=t=>(0,i.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>o});var i=n(1180);class o{constructor(){this.subscriptions=[]}add(t){return(0,i.y4)(this.subscriptions,t),()=>(0,i.cl)(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let o=0;o<i;o++){const i=this.subscriptions[o];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},1818:(t,e,n)=>{n.d(e,{w:()=>i});const i=t=>1e3*t},9531:(t,e,n)=>{n.d(e,{z:()=>o});var i=n(8370);function o(t){return(0,i.useEffect)((()=>()=>t()),[])}},432:(t,e,n)=>{function i(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>i})},1421:(t,e,n)=>{n.d(e,{B:()=>a});var i=n(6162),o=n(1065),s=n(432);class r{constructor(t){var e;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new o.L,this.velocityUpdateSubscribers=new o.L,this.renderSubscribers=new o.L,this.canTrackVelocity=!1,this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=(0,i.$B)();this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,i.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=()=>i.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,s.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 r(t)}},7846:(t,e,n)=>{n.d(e,{i:()=>i});const i=t=>!!(null==t?void 0:t.getVelocity)},8370:t=>{t.exports=void 0},6162:(t,e,n)=>{n.d(e,{qY:()=>p,ZP:()=>x,iW:()=>m,$B:()=>y});const i=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),s="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),i);let r=!0,a=!1,l=!1;const u={delta:0,timestamp:0},c=["read","update","preRender","render","postRender"],h=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],i=0,o=!1,s=!1;const r=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{const l=a&&o,u=l?e:n;return s&&r.add(t),-1===u.indexOf(t)&&(u.push(t),l&&o&&(i=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),r.delete(t)},process:l=>{if(o)s=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,i=e.length,i)for(let n=0;n<i;n++){const i=e[n];i(l),r.has(i)&&(a.schedule(i),t())}o=!1,s&&(s=!1,a.process(l))}}};return a}((()=>a=!0)),t)),{}),d=c.reduce(((t,e)=>{const n=h[e];return t[e]=(t,e=!1,i=!1)=>(a||g(),n.schedule(t,e,i)),t}),{}),p=c.reduce(((t,e)=>(t[e]=h[e].cancel,t)),{}),m=c.reduce(((t,e)=>(t[e]=()=>h[e].process(u),t)),{}),f=t=>h[t].process(u),v=t=>{a=!1,u.delta=r?i:Math.max(Math.min(t-u.timestamp,40),1),u.timestamp=t,l=!0,c.forEach(f),l=!1,a&&(r=!1,s(v))},g=()=>{a=!0,r=!0,l||s(v)},y=()=>u,x=d},9012:(t,e,n)=>{n.d(e,{$:()=>o});var i=n(3203);const o={test:(0,n(1552).i)("#"),parse:function(t){let e="",n="",i="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),i=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),i=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:i.m.transform}},7493:(t,e,n)=>{n.d(e,{J:()=>a});var i=n(1513),o=n(155),s=n(5757),r=n(1552);const a={test:(0,r.i)("hsl","hue"),parse:(0,r.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,s.Nw)(e))+", "+o.aQ.transform((0,s.Nw)(n))+", "+(0,s.Nw)(i.Fq.transform(r))+")"}},7576:(t,e,n)=>{n.d(e,{$:()=>a});var i=n(5757),o=n(9012),s=n(7493),r=n(3203);const a={test:t=>r.m.test(t)||o.$.test(t)||s.J.test(t),parse:t=>r.m.test(t)?r.m.parse(t):s.J.test(t)?s.J.parse(t):o.$.parse(t),transform:t=>(0,i.HD)(t)?t:t.hasOwnProperty("red")?r.m.transform(t):s.J.transform(t)}},3203:(t,e,n)=>{n.d(e,{m:()=>l});var i=n(1513),o=n(5757),s=n(1552);const r=(0,o.uZ)(0,255),a=Object.assign(Object.assign({},i.Rx),{transform:t=>Math.round(r(t))}),l={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)(i.Fq.transform(s))+")"}},1552:(t,e,n)=>{n.d(e,{d:()=>s,i:()=>o});var i=n(5757);const o=(t,e)=>n=>Boolean((0,i.HD)(n)&&i.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),s=(t,e,n)=>o=>{if(!(0,i.HD)(o))return o;const[s,r,a,l]=o.match(i.KP);return{[t]:parseFloat(s),[e]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},9500:(t,e,n)=>{n.d(e,{h:()=>l});var i=n(6002),o=n(5757);const s=new Set(["brightness","contrast","saturate","opacity"]);function r(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(o.KP)||[];if(!i)return t;const r=n.replace(i,"");let a=s.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+r+")"}const a=/([a-z-]*)\(.*?\)/g,l=Object.assign(Object.assign({},i.P),{getAnimatableNone:t=>{const e=t.match(a);return e?e.map(r).join(" "):t}})},6002:(t,e,n)=>{n.d(e,{P:()=>d});var i=n(7576),o=n(1513),s=n(5757);const r="${c}",a="${n}";function l(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0;const l=t.match(s.dA);l&&(n=l.length,t=t.replace(s.dA,r),e.push(...l.map(i.$.parse)));const u=t.match(s.KP);return u&&(t=t.replace(s.KP,a),e.push(...u.map(o.Rx.parse))),{values:e,numColors:n,tokenised:t}}function u(t){return l(t).values}function c(t){const{values:e,numColors:n,tokenised:o}=l(t),u=e.length;return t=>{let e=o;for(let o=0;o<u;o++)e=e.replace(o<n?r:a,o<n?i.$.transform(t[o]):(0,s.Nw)(t[o]));return e}}const h=t=>"number"==typeof t?0:t;const d={test:function(t){var e,n,i,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===(i=t.match(s.dA))||void 0===i?void 0:i.length)&&void 0!==o?o:0)>0},parse:u,createTransformer:c,getAnimatableNone:function(t){const e=u(t);return c(t)(e.map(h))}}},1513:(t,e,n)=>{n.d(e,{Fq:()=>s,Rx:()=>o,bA:()=>r});var i=n(5757);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s=Object.assign(Object.assign({},o),{transform:(0,i.uZ)(0,1)}),r=Object.assign(Object.assign({},o),{default:1})},155:(t,e,n)=>{n.d(e,{$C:()=>c,RW:()=>s,aQ:()=>r,px:()=>a,vh:()=>l,vw:()=>u});var i=n(5757);const o=t=>({test:e=>(0,i.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=o("deg"),r=o("%"),a=o("px"),l=o("vh"),u=o("vw"),c=Object.assign(Object.assign({},r),{parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)})},5757:(t,e,n)=>{n.d(e,{HD:()=>l,KP:()=>s,Nw:()=>o,dA:()=>r,mj:()=>a,uZ:()=>i});const i=(t,e)=>n=>Math.max(Math.min(n,e),t),o=t=>t%1?Number(t.toFixed(5)):t,s=/(-)?([\d]*\.?[\d])+/g,r=/(#[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 l(t){return"string"==typeof t}}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var s=e[i]={exports:{}};return t[i](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 i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(8370),e=n.n(t),i=n(9340),o=n(3541),s=n(409),r=n(6162),a=n(1818),l=n(1395),u=n(9820);const c=(t,e)=>Math.abs(t-e);class h{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=m(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=c(t.x,e.x),i=c(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:o}=(0,r.$B)();this.history.push({...i,timestamp:o});const{onStart:s,onMove:a}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=d(e,this.transformPagePoint),(0,o.N)(t)&&0===t.buttons?this.handlePointerUp(t,e):r.ZP.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i}=this.handlers,o=m(d(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},(0,o.z)(t)&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=n;const i=d((0,s.Qk)(t),this.transformPagePoint),{point:a}=i,{timestamp:h}=(0,r.$B)();this.history=[{...a,timestamp:h}];const{onSessionStart:p}=e;p&&p(t,m(i,this.history)),this.removeListeners=(0,u.z)((0,l.a)(window,"pointermove",this.handlePointerMove),(0,l.a)(window,"pointerup",this.handlePointerUp),(0,l.a)(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),r.qY.update(this.updatePoint)}}function d(t,e){return e?{point:e(t.point)}:t}function p(t,e){return{x:t.x-e.x,y:t.y-e.y}}function m({point:t},e){return{point:t,delta:p(t,v(e)),offset:p(t,f(e)),velocity:g(e,.1)}}function f(t){return t[0]}function v(t){return t[t.length-1]}function g(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=v(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>(0,a.w)(e)));)n--;if(!i)return{x:0,y:0};const s=(o.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};const r={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}var y=n(5856),x=n(3491),b=n(918),P=n(5430);function w(t){return t.max-t.min}function T(t,e=0,n=.01){return Math.abs(t-e)<=n}function A(t,e,n,i=.5){t.origin=i,t.originPoint=(0,P.C)(e.min,e.max,t.origin),t.scale=w(n)/w(e),(T(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,P.C)(n.min,n.max,t.origin)-t.originPoint,(T(t.translate)||isNaN(t.translate))&&(t.translate=0)}function V(t,e,n,i){A(t.x,e.x,n.x,null==i?void 0:i.originX),A(t.y,e.y,n.y,null==i?void 0:i.originY)}function E(t,e,n){t.min=n.min+e.min,t.max=t.min+w(e)}function S(t,e,n){t.min=e.min-n.min,t.max=t.min+w(e)}function C(t,e,n){S(t.x,e.x,n.x),S(t.y,e.y,n.y)}var M=n(9043);function D(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?(0,P.C)(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?(0,P.C)(n,t,i.max):Math.min(t,n)),t}function R(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function k(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function B(t,e){let n=.5;const i=w(t),o=w(e);return o>i?n=(0,b.Y)(e.min,e.max-i,t.min):i>o&&(n=(0,b.Y)(t.min,t.max-o,e.min)),(0,M.u)(0,1,n)}const L=.35;function j(t,e,n){return{min:O(t,e),max:O(t,n)}}function O(t,e){var n;return"number"==typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}var F=n(7921),I=n(1397);function U(t){return[t("x"),t("y")]}var $=n(8834),N=n(138),Y=n(483),z=n(1876),W=n(155);const q=new WeakMap;class H{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,I.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new h(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor((0,s.Qk)(t,"page").point)},onStart:(t,e)=>{var n;const{drag:i,dragPropagation:o,onDragStart:s}=this.getProps();(!i||o||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,y.fJ)(i),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U((t=>{var e,n;let i=this.getAxisMotionValue(t).get()||0;if(W.aQ.test(i)){const o=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(o){i=w(o)*(parseFloat(i)/100)}}this.originPoint[t]=i})),null==s||s(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(F.r.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:s}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&(null==o||o(this.currentDirection)));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),null==s||s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:o}=this.getProps();null==o||o(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(F.r.Drag,!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!Z(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=D(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&(0,x.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:o}){return{x:R(t.x,n,o),y:R(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=L){return!1===t?t=0:!0===t&&(t=L),{x:j(t,"left","right"),y:j(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&U((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!(0,x.I)(t))return!1;const n=t.current;(0,i.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=(0,$.z)(n,o.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:k(t.x,e.x),y:k(t.y,e.y)}}(o.layout.layoutBox,s);if(e){const t=e((0,Y.z2)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,Y.i8)(t))}return r}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=U((r=>{var l;if(!Z(r,e,this.currentDirection))return;let u=null!==(l=null==a?void 0:a[r])&&void 0!==l?l:{};s&&(u={min:0,max:0});const c=i?200:1e6,h=i?40:1e7,d={type:"inertia",velocity:n?t[r]:0,bounceStiffness:c,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(r,d)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return(0,N.b8)(t,n,0,e)}stopAnimation(){U((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){var e,n;const i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)}snapToCursor(t){U((e=>{const{drag:n}=this.getProps();if(!Z(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:s}=i.layout.layoutBox[e];o.set(t[e]-(0,P.C)(n,s,.5))}}))}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!(0,x.I)(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};U((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();o[t]=B({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),U((t=>{if(!Z(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set((0,P.C)(i,s,o[t]))}))}addListeners(){var t;if(!this.visualElement.current)return;q.set(this.visualElement,this);const e=this.visualElement.current,n=(0,l.a)(e,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),i=()=>{const{dragConstraints:t}=this.getProps();(0,x.I)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),i();const r=(0,z.E)(window,"resize",(()=>this.scalePositionWithinConstraints())),a=o.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(U((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{r(),n(),s(),null==a||a()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=L,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:r}}}function Z(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const X=(0,t.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var K=n(9531);var G=n(6295);const J={pan:(0,G.x)((function({onPan:e,onPanStart:n,onPanEnd:i,onPanSessionStart:o,visualElement:s}){const r=e||n||i||o,a=(0,t.useRef)(null),{transformPagePoint:u}=(0,t.useContext)(X),c={onSessionStart:o,onStart:n,onMove:e,onEnd:(t,e)=>{a.current=null,i&&i(t,e)}};(0,t.useEffect)((()=>{null!==a.current&&a.current.updateHandlers(c)})),(0,l.m)(s,"pointerdown",r&&function(t){a.current=new h(t,c,{transformPagePoint:u})}),(0,K.z)((()=>a.current&&a.current.end()))})),drag:(0,G.x)((function(e){const{dragControls:n,visualElement:i}=e,o=function(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}((()=>new H(i)));(0,t.useEffect)((()=>n&&n.subscribe(o)),[o,n]),(0,t.useEffect)((()=>o.addListeners()),[o])}))};var Q=n(1930);const _=(0,t.createContext)({}),tt=(0,t.createContext)({}),et={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nt(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const it={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!W.px.test(t))return t;t=parseFloat(t)}return`${nt(t,e.target.x)}% ${nt(t,e.target.y)}%`}};var ot=n(6002),st=n(6978);const rt="_$css",at={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=t.includes("var("),s=[];o&&(t=t.replace(st.Xp,(t=>(s.push(t),rt))));const r=ot.P.parse(t);if(r.length>5)return i;const a=ot.P.createTransformer(t),l="number"!=typeof r[0]?1:0,u=n.x.scale*e.x,c=n.y.scale*e.y;r[0+l]/=u,r[1+l]/=c;const h=(0,P.C)(u,c,.5);"number"==typeof r[2+l]&&(r[2+l]/=h),"number"==typeof r[3+l]&&(r[3+l]/=h);let d=a(r);if(o){let t=0;d=d.replace(rt,(()=>{const e=s[t];return t++,e}))}return d}};var lt=n(798);class ut extends e().Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;(0,lt.B)(ct),o&&(e.group&&e.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),et.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s?(s.isPresent=o,i||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||r.ZP.postRender((()=>{var t;(null===(t=s.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;null==t||t()}render(){return null}}const ct={borderRadius:{...it,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:it,borderTopRightRadius:it,borderBottomLeftRadius:it,borderBottomRightRadius:it,boxShadow:at},ht={measureLayout:function(n){const[i,o]=(0,Q.oO)(),s=(0,t.useContext)(_);return e().createElement(ut,{...n,layoutGroup:s,switchLayoutGroup:(0,t.useContext)(tt),isPresent:i,safeToRemove:o})}};var dt=n(1421),pt=n(7846);var mt=n(1065),ft=n(7110),vt=n(2634);const gt=["TopLeft","TopRight","BottomLeft","BottomRight"],yt=gt.length,xt=t=>"string"==typeof t?parseFloat(t):t,bt=t=>"number"==typeof t||W.px.test(t);function Pt(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}const wt=At(0,.5,ft.Bn),Tt=At(.5,.95,vt.Z);function At(t,e,n){return i=>i<t?0:i>e?1:n((0,b.Y)(t,e,i))}function Vt(t,e){t.min=e.min,t.max=e.max}function Et(t,e){Vt(t.x,e.x),Vt(t.y,e.y)}var St=n(1360);function Ct(t,e,n,i,o){return t-=e,t=(0,St.q2)(t,1/n,i),void 0!==o&&(t=(0,St.q2)(t,1/o,i)),t}function Mt(t,e,[n,i,o],s,r){!function(t,e=0,n=1,i=.5,o,s=t,r=t){W.aQ.test(e)&&(e=parseFloat(e),e=(0,P.C)(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=(0,P.C)(s.min,s.max,i);t===s&&(a-=e),t.min=Ct(t.min,e,n,a,o),t.max=Ct(t.max,e,n,a,o)}(t,e[n],e[i],e[o],e.scale,s,r)}const Dt=["x","scaleX","originX"],Rt=["y","scaleY","originY"];function kt(t,e,n,i){Mt(t.x,e,Dt,null==n?void 0:n.x,null==i?void 0:i.x),Mt(t.y,e,Rt,null==n?void 0:n.y,null==i?void 0:i.y)}function Bt(t){return 0===t.translate&&1===t.scale}function Lt(t){return Bt(t.x)&&Bt(t.y)}function jt(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Ot(t){return w(t.x)/w(t.y)}var Ft=n(1180);class It{constructor(){this.members=[]}add(t){(0,Ft.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,Ft.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){var n;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;!1===o&&i.hide()}}exitAnimationComplete(){this.members.forEach((t=>{var e,n,i,o,s;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(s=null===(i=t.resumingFrom)||void 0===i?void 0:(o=i.options).onExitComplete)||void 0===s||s.call(o)}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ut(t,e,n){let i="";const o=t.x.translate/e.x,s=t.y.translate/e.y;if((o||s)&&(i=`translate3d(${o}px, ${s}px, 0) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(i+=`rotate(${t}deg) `),e&&(i+=`rotateX(${e}deg) `),o&&(i+=`rotateY(${o}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return 1===r&&1===a||(i+=`scale(${r}, ${a})`),i||"none"}var $t=n(4918);const Nt=(t,e)=>t.depth-e.depth;class Yt{constructor(){this.children=[],this.isDirty=!1}add(t){(0,Ft.y4)(this.children,t),this.isDirty=!0}remove(t){(0,Ft.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Nt),this.isDirty=!1,this.children.forEach(t)}}var zt=n(7048);function Wt(t){const e=(0,pt.i)(t)?t.get():t;return(0,zt.p)(e)?e.toValue():e}var qt=n(2866);const Ht=["","X","Y","Z"];let Zt=0;function Xt({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(t,n={},i=(null==e?void 0:e())){this.id=Zt++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(Jt),this.nodes.forEach(ne),this.nodes.forEach(ie)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yt)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new mt.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);null==n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var i;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:o,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),null===(i=this.parent)||void 0===i||i.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(s||o)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=(0,qt.g)(i,250),et.hasAnimatedSinceResize&&(et.hasAnimatedSinceResize=!1,this.nodes.forEach(ee))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&r&&(o||s)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{var o,s,a,l,u;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const c=null!==(s=null!==(o=this.options.transition)&&void 0!==o?o:r.getDefaultTransition())&&void 0!==s?s:ue,{onLayoutAnimationStart:h,onLayoutAnimationComplete:d}=r.getProps(),p=!this.targetLayout||!jt(this.targetLayout,i)||n,m=!e&&n;if((null===(a=this.resumeFrom)||void 0===a?void 0:a.instance)||m||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,m);const e={...(0,N.ev)(c,"layout"),onPlay:h,onComplete:d};r.shouldReduceMotion&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||ee(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=i}))}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,r.qY.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(oe),this.animationId++)}willUpdate(t=!0){var e,n,i;if(this.root.isUpdateBlocked())return void(null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e));if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot")}const{layoutId:o,layout:s}=this.options;if(void 0===o&&!s)return;const r=null===(i=this.options.visualElement)||void 0===i?void 0:i.getProps().transformTemplate;this.prevTransformTemplateValue=null==r?void 0:r(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(_t);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ce),this.potentialNodes.clear()),this.nodes.forEach(te),this.nodes.forEach(Kt),this.nodes.forEach(Gt),this.clearAllSnapshots(),r.iW.update(),r.iW.preRender(),r.iW.render())}clearAllSnapshots(){this.nodes.forEach(Qt),this.sharedNodes.forEach(se)}scheduleUpdateProjection(){r.ZP.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){r.ZP.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,I.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(t=this.options.visualElement)||void 0===t||t.notify("LayoutMeasure",this.layout.layoutBox,null==e?void 0:e.layoutBox)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){var t;if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Lt(this.projectionDelta),i=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,s=null==i?void 0:i(this.latestValues,""),r=s!==this.prevTransformTemplateValue;e&&(n||(0,$t.ud)(this.latestValues)||r)&&(o(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),he((i=n).x),he(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return(0,I.dO)();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&((0,St.am)(e.x,n.offset.x),(0,St.am)(e.y,n.offset.y)),e}removeElementScroll(t){const e=(0,I.dO)();Et(e,t);for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:o,options:s}=i;if(i!==this.root&&o&&s.layoutScroll){if(o.isRoot){Et(e,t);const{scroll:n}=this.root;n&&((0,St.am)(e.x,-n.offset.x),(0,St.am)(e.y,-n.offset.y))}(0,St.am)(e.x,o.offset.x),(0,St.am)(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n=(0,I.dO)();Et(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(0,St.D2)(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),(0,$t.ud)(i.latestValues)&&(0,St.D2)(n,i.latestValues)}return(0,$t.ud)(this.latestValues)&&(0,St.D2)(n,this.latestValues),n}removeTransform(t){var e;const n=(0,I.dO)();Et(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];if(!i.instance)continue;if(!(0,$t.ud)(i.latestValues))continue;(0,$t.Lj)(i.latestValues)&&i.updateSnapshot();const o=(0,I.dO)();Et(o,i.measurePageBox()),kt(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layoutBox,o)}return(0,$t.ud)(this.latestValues)&&kt(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var t;const e=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:n,layoutId:i}=this.options;if(this.layout&&(n||i)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget=(0,I.dO)(),this.relativeTargetOrigin=(0,I.dO)(),C(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Et(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var o,s,r;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target=(0,I.dO)(),this.targetWithTransforms=(0,I.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(o=this.target,s=this.relativeTarget,r=this.relativeParent.target,E(o.x,s.x,r.x),E(o.y,s.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Et(this.target,this.layout.layoutBox),(0,St.o2)(this.target,this.targetDelta)):Et(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget=(0,I.dO)(),this.relativeTargetOrigin=(0,I.dO)(),C(this.relativeTargetOrigin,this.target,t.target),Et(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!(0,$t.Lj)(this.parent.latestValues)&&!(0,$t.D_)(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{isProjectionDirty:e,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;const i=this.getLead(),o=Boolean(this.resumingFrom)||this!==i;let s=!0;if(e&&(s=!1),o&&n&&(s=!1),s)return;const{layout:r,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!a)return;Et(this.layoutCorrected,this.layout.layoutBox),(0,St.YY)(this.layoutCorrected,this.treeScale,this.path,o);const{target:l}=i;if(!l)return;this.projectionDelta||(this.projectionDelta=(0,I.wc)(),this.projectionDeltaWithTransform=(0,I.wc)());const u=this.treeScale.x,c=this.treeScale.y,h=this.projectionTransform;V(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Ut(this.projectionDelta,this.treeScale),this.projectionTransform===h&&this.treeScale.x===u&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,n,i;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(i=this.getStack())||void 0===i||i.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var n,i;const o=this.snapshot,s=(null==o?void 0:o.latestValues)||{},r={...this.latestValues},a=(0,I.wc)();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;const l=(0,I.dO)(),u=(null==o?void 0:o.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),c=((null===(i=this.getStack())||void 0===i?void 0:i.members.length)||0)<=1,h=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(le));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const i=e/1e3;var o,d,p,m;re(a.x,t.x,i),re(a.y,t.y,i),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(C(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),o=this.relativeTarget,d=this.relativeTargetOrigin,p=l,m=i,ae(o.x,d.x,p.x,m),ae(o.y,d.y,p.y,m)),u&&(this.animationValues=r,function(t,e,n,i,o,s){var r,a,l,u;o?(t.opacity=(0,P.C)(0,null!==(r=n.opacity)&&void 0!==r?r:1,wt(i)),t.opacityExit=(0,P.C)(null!==(a=e.opacity)&&void 0!==a?a:1,0,Tt(i))):s&&(t.opacity=(0,P.C)(null!==(l=e.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,i));for(let o=0;o<yt;o++){const s=`border${gt[o]}Radius`;let r=Pt(e,s),a=Pt(n,s);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||bt(r)===bt(a)?(t[s]=Math.max((0,P.C)(xt(r),xt(a),i),0),(W.aQ.test(a)||W.aQ.test(r))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,P.C)(e.rotate||0,n.rotate||0,i))}(r,s,this.latestValues,i,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(r.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=r.ZP.update((()=>{et.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const i=(0,pt.i)(t)?t:(0,dt.B)(t);return(0,N.b8)("",i,e,n),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}(0,1e3,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:o}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&de(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,I.dO)();const e=w(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=w(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}Et(e,n),(0,St.D2)(e,o),V(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){var n,i,o;this.sharedNodes.has(t)||this.sharedNodes.set(t,new It);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(i=e.options.initialPromotionConfig)||void 0===i?void 0:i.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(i,e)})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const i={};for(let e=0;e<Ht.length;e++){const o="rotate"+Ht[e];n[o]&&(i[o]=n[o],t.setStaticValue(o,0))}null==t||t.render();for(const e in i)t.setStaticValue(e,i[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,n,i;const o={};if(!this.instance||this.isSVG)return o;if(!this.isVisible)return{visibility:"hidden"};o.visibility="";const s=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=Wt(t.pointerEvents)||"",o.transform=s?s(this.latestValues,""):"none",o;const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Wt(t.pointerEvents)||""),this.hasProjected&&!(0,$t.ud)(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const a=r.animationValues||r.latestValues;this.applyTransformsToTarget(),o.transform=Ut(this.projectionDeltaWithTransform,this.treeScale,a),s&&(o.transform=s(a,o.transform));const{x:l,y:u}=this.projectionDelta;o.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,r.animationValues?o.opacity=r===this?null!==(i=null!==(n=a.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:o.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in lt.P){if(void 0===a[t])continue;const{correct:e,applyTo:n}=lt.P[t],i=e(a[t],r);if(n){const t=n.length;for(let e=0;e<t;e++)o[n[e]]=i}else o[t]=i}return this.options.layoutId&&(o.pointerEvents=r===this?Wt(t.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(_t),this.root.sharedNodes.clear()}}}function Kt(t){t.updateLayout()}function Gt(t){var e,n,i;const o=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&o&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:i}=t.options,s=o.source!==t.layout.source;"size"===i?U((t=>{const n=s?o.measuredBox[t]:o.layoutBox[t],i=w(n);n.min=e[t].min,n.max=n.min+i})):de(i,o.layoutBox,e)&&U((t=>{const n=s?o.measuredBox[t]:o.layoutBox[t],i=w(e[t]);n.max=n.min+i}));const r=(0,I.wc)();V(r,e,o.layoutBox);const a=(0,I.wc)();s?V(a,t.applyTransform(n,!0),o.measuredBox):V(a,e,o.layoutBox);const l=!Lt(r);let u=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:t,layout:i}=n;if(t&&i){const n=(0,I.dO)();C(n,o.layoutBox,t.layoutBox);const s=(0,I.dO)();C(s,e,i.layoutBox),jt(n,s)||(u=!0)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:o,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else t.isLead()&&(null===(i=(n=t.options).onExitComplete)||void 0===i||i.call(n));t.options.transition=void 0}function Jt(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function Qt(t){t.clearSnapshot()}function _t(t){t.clearMeasurements()}function te(t){const{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ee(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function ne(t){t.resolveTargetDelta()}function ie(t){t.calcProjection()}function oe(t){t.resetRotation()}function se(t){t.removeLeadSnapshot()}function re(t,e,n){t.translate=(0,P.C)(e.translate,0,n),t.scale=(0,P.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ae(t,e,n,i){t.min=(0,P.C)(e.min,n.min,i),t.max=(0,P.C)(e.max,n.max,i)}function le(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const ue={duration:.45,ease:[.4,0,.1,1]};function ce(t,e){let n=t.root;for(let e=t.path.length-1;e>=0;e--)if(Boolean(t.path[e].instance)){n=t.path[e];break}const i=(n&&n!==t.root?n.instance:document).querySelector(`[data-projection-id="${e}"]`);i&&t.mount(i,!0)}function he(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function de(t,e,n){return"position"===t||"preserve-aspect"===t&&!T(Ot(e),Ot(n),.2)}const pe=Xt({attachResizeListener:(t,e)=>(0,z.E)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),me={current:void 0},fe=Xt({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!me.current){const t=new pe(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),me.current=t}return me.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)});n(5151).H})()})();
|
|
1
|
+
(()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>i,k:()=>o});var i=function(){},o=function(){}},2819:(t,e,n)=>{n.d(e,{C:()=>i});const i=t=>Array.isArray(t)},138:(t,e,n)=>{n.d(e,{ev:()=>Pt,b8:()=>wt});var i=n(1818),o=n(9340),s=n(2634);const r=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function a(t,e,n,i){if(t===e&&n===i)return s.Z;const o=e=>function(t,e,n,i,o){let s,a,l=0;do{a=e+(n-e)/2,s=r(a,i,o)-t,s>0?n=a:e=a}while(Math.abs(s)>1e-7&&++l<12);return a}(e,0,1,t,n);return t=>0===t||1===t?t:r(o(t),e,i)}var l=n(5222),u=n(9273);const c=t=>t*t,h=(0,u.M)(c),d=(0,l.o)(c);var p=n(7110);const m=(t=1.525)=>e=>e*e*((t+1)*e-t),f=m(),v=(0,u.M)(f),g=(0,l.o)(f),y=(t=>{const e=m(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(),x={linear:s.Z,easeIn:c,easeInOut:d,easeOut:h,circIn:p.Z7,circInOut:p.X7,circOut:p.Bn,backIn:f,backInOut:g,backOut:v,anticipate:y},b=t=>{if(Array.isArray(t)){(0,o.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return a(e,n,i,s)}return"string"==typeof t?((0,o.k)(void 0!==x[t],`Invalid easing type '${t}'`),x[t]):t};var P=n(6002);const w=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!P.P.test(e)||e.startsWith("url(")));var T=n(2819);const V=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),A=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),E=()=>({type:"keyframes",ease:"linear",duration:.3}),S=t=>({type:"keyframes",duration:.8,values:t}),C={x:V,y:V,z:V,rotate:V,rotateX:V,rotateY:V,rotateZ:V,scaleX:A,scaleY:A,scale:A,opacity:E,backgroundColor:E,color:E,default:A},M=(t,e)=>{let n;return n=(0,T.C)(e)?S:C[t]||C.default,{to:e,...n(e)}};var D=n(6914);const R=!1;var B=n(7048),k=n(2866),L=n(7576),j=n(9043),O=n(5430),F=n(9012),I=n(3203),U=n(7493);function $(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}const N=(t,e,n)=>{const i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},Y=[F.$,I.m,U.J];function z(t){const e=(n=t,Y.find((t=>t.test(n))));var n;(0,o.k)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===U.J&&(i=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let o=0,s=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;o=$(a,i,t+1/3),s=$(a,i,t),r=$(a,i,t-1/3)}else o=s=r=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*r),alpha:i}}(i)),i}const W=(t,e)=>{const n=z(t),i=z(e),o={...n};return t=>(o.red=N(n.red,i.red,t),o.green=N(n.green,i.green,t),o.blue=N(n.blue,i.blue,t),o.alpha=(0,O.C)(n.alpha,i.alpha,t),I.m.transform(o))};var q=n(9820);function H(t,e){return"number"==typeof t?n=>(0,O.C)(t,e,n):L.$.test(t)?W(t,e):K(t,e)}const Z=(t,e)=>{const n=[...t],i=n.length,o=t.map(((t,n)=>H(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=o[e](t);return n}},X=(t,e)=>{const n={...t,...e},i={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(i[o]=H(t[o],e[o]));return t=>{for(const e in i)n[e]=i[e](t);return n}};function G(t){const e=P.P.parse(t),n=e.length;let i=0,o=0;for(let t=0;t<n;t++)i||"number"==typeof e[t]?i++:o++;return{parsed:e,numNumbers:i,numColors:o}}const K=(t,e)=>{const n=P.P.createTransformer(e),i=G(t),s=G(e);return i.numColors===s.numColors&&i.numNumbers>=s.numNumbers?(0,q.z)(Z(i.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}`)};var J=n(918);const Q=(t,e)=>n=>(0,O.C)(t,e,n);function _(t,e,n){const i=[],o=n||("number"==typeof(s=t[0])?Q:"string"==typeof s?L.$.test(s)?W:K:Array.isArray(s)?Z:"object"==typeof s?X:Q);var s;const r=t.length-1;for(let n=0;n<r;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;s=(0,q.z)(t,s)}i.push(s)}return i}function tt(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const r=t.length;(0,o.k)(r===e.length,"Both input and output ranges must be the same length"),(0,o.k)(!i||!Array.isArray(i)||i.length===r-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[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=_(e,i,s),l=a.length,u=e=>{let n=0;if(l>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const i=(0,J.Y)(t[n],t[n+1],e);return a[n](i)};return n?e=>u((0,j.u)(t[0],t[r-1],e)):u}function et(t,e){return t.map((()=>e||d)).splice(0,t.length-1)}const nt=.001;function it({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let s,r;(0,o.K)(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=(0,j.u)(.05,1,a),t=(0,j.u)(.01,10,t/1e3),a<1?(s=e=>{const i=e*a,o=i*t,s=i-n,r=ot(e,a),l=Math.exp(-o);return nt-s/r*l},r=e=>{const i=e*a*t,o=i*n+n,r=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=ot(Math.pow(e,2),a);return(-s(e)+nt>0?-1:1)*((o-r)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,r=e=>Math.exp(-e*t)*(t*t*(n-e)));const l=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(s,r,5/t);if(t*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(l,2)*i;return{stiffness:e,damping:2*a*Math.sqrt(i*e),duration:t}}}function ot(t,e){return t*Math.sqrt(1-e*e)}const st=["duration","bounce"],rt=["stiffness","damping","mass"];function at(t,e){return e.some((e=>void 0!==t[e]))}function lt({from:t=0,to:e=1,restSpeed:n=2,restDelta:i=.01,...o}){const s={done:!1,value:t};let{stiffness:r,damping:a,mass:l,velocity:u,duration:c,isResolvedFromDuration:h}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!at(t,rt)&&at(t,st)){const n=it(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(o),d=ut,p=ut;function m(){const n=u?-u/1e3:0,o=e-t,s=a/(2*Math.sqrt(r*l)),c=Math.sqrt(r/l)/1e3;if(void 0===i&&(i=Math.min(Math.abs(e-t)/100,.4)),s<1){const t=ot(c,s);d=i=>{const r=Math.exp(-s*c*i);return e-r*((n+s*c*o)/t*Math.sin(t*i)+o*Math.cos(t*i))},p=e=>{const i=Math.exp(-s*c*e);return s*c*i*(Math.sin(t*e)*(n+s*c*o)/t+o*Math.cos(t*e))-i*(Math.cos(t*e)*(n+s*c*o)-t*o*Math.sin(t*e))}}else if(1===s)d=t=>e-Math.exp(-c*t)*(o+(n+c*o)*t);else{const t=c*Math.sqrt(s*s-1);d=i=>{const r=Math.exp(-s*c*i),a=Math.min(t*i,300);return e-r*((n+s*c*o)*Math.sinh(a)+t*o*Math.cosh(a))/t}}}return m(),{next:t=>{const o=d(t);if(h)s.done=t>=c;else{const r=1e3*p(t),a=Math.abs(r)<=n,l=Math.abs(e-o)<=i;s.done=a&&l}return s.value=s.done?e:o,s},flipTarget:()=>{u=-u,[t,e]=[e,t],m()}}}lt.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const ut=t=>0;var ct=n(6162);const ht={decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:s}){const r={done:!1,value:e};let a=n*t;const l=e+a,u=void 0===s?l:s(l);return u!==l&&(a=u-e),{next:t=>{const e=-a*Math.exp(-t/i);return r.done=!(e>o||e<-o),r.value=r.done?u:u+e,r},flipTarget:()=>{}}},keyframes:function({from:t=0,to:e=1,ease:n,offset:i,duration:o=300}){const s={done:!1,value:t},r=Array.isArray(e)?e:[t,e],a=function(t,e){return t.map((t=>t*e))}(i&&i.length===r.length?i:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(r),o);function l(){return tt(a,r,{ease:Array.isArray(n)?n:et(r,n)})}let u=l();return{next:t=>(s.value=u(t),s.done=t>=o,s),flipTarget:()=>{r.reverse(),u=l()}}},spring:lt};function dt(t,e,n=0){return t-e-n}const pt=t=>{const e=({delta:e})=>t(e);return{start:()=>ct.ZP.update(e,!0),stop:()=>ct.qY.update(e)}};function mt({from:t,autoplay:e=!0,driver:n=pt,elapsed:i=0,repeat:o=0,repeatType:s="loop",repeatDelay:r=0,onPlay:a,onStop:l,onComplete:u,onRepeat:c,onUpdate:h,type:d="keyframes",...p}){var m,f;let v,g,y,{to:x}=p,b=0,P=p.duration,w=!1,T=!0;const V=ht[Array.isArray(x)?"keyframes":d];(null===(f=(m=V).needsInterpolation)||void 0===f?void 0:f.call(m,t,x))&&(y=tt([0,100],[t,x],{clamp:!1}),t=0,x=100);const A=V({...p,from:t,to:x});function E(){b++,"reverse"===s?(T=b%2==0,i=function(t,e=0,n=0,i=!0){return i?dt(e+-t,e,n):e-(t-e)+n}(i,P,r,T)):(i=dt(i,P,r),"mirror"===s&&A.flipTarget()),w=!1,c&&c()}function S(t){if(T||(t=-t),i+=t,!w){const t=A.next(Math.max(0,i));g=t.value,y&&(g=y(g)),w=T?t.done:i<=0}null==h||h(g),w&&(0===b&&(null!=P||(P=i)),b<o?function(t,e,n,i){return i?t>=e+n:t<=-n}(i,P,r,T)&&E():(v.stop(),u&&u()))}return e&&(null==a||a(),v=n(S),v.start()),{stop:()=>{null==l||l(),v.stop()}}}var ft=n(432);function vt({ease:t,times:e,...n}){const o={...n};return e&&(o.offset=e),n.duration&&(o.duration=(0,i.w)(n.duration)),n.repeatDelay&&(o.repeatDelay=(0,i.w)(n.repeatDelay)),t&&(o.ease=(t=>Array.isArray(t)&&"number"!=typeof t[0])(t)?t.map(b):b(t)),"tween"===n.type&&(o.type="keyframes"),"spring"!==n.type&&(o.type="keyframes"),o}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:i,staggerDirection:o,repeat:s,repeatType:r,repeatDelay:a,from:l,...u}){return!!Object.keys(u).length}(t)||(t={...t,...M(n,e.to)}),{...e,...vt(t)}}function yt(t,e,n,i,s){const r=Pt(i,t)||{};let a=void 0!==r.from?r.from:e.get();const l=w(t,n);"none"===a&&l&&"string"==typeof n?a=(0,D.T)(t,n):xt(a)&&"string"==typeof n?a=bt(n):!Array.isArray(n)&&xt(n)&&"string"==typeof a&&(n=bt(a));const u=w(t,a);return(0,o.K)(u===l,`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.`),u&&l&&!1!==r.type?function(){const i={from:a,to:n,velocity:e.getVelocity(),onComplete:s,onUpdate:t=>e.set(t)};return"inertia"===r.type||"decay"===r.type?function({from:t=0,velocity:e=0,min:n,max:i,power:o=.8,timeConstant:s=750,bounceStiffness:r=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:h,onComplete:d,onStop:p}){let m;function f(t){return void 0!==n&&t<n||void 0!==i&&t>i}function v(t){return void 0===n?i:void 0===i||Math.abs(n-t)<Math.abs(i-t)?n:i}function g(t){null==m||m.stop(),m=mt({...t,driver:c,onUpdate:e=>{var n;null==h||h(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:p})}function y(t){g({type:"spring",stiffness:r,damping:a,restDelta:l,...t})}if(f(t))y({from:t,velocity:e,to:v(t)});else{let i=o*e+t;void 0!==u&&(i=u(i));const r=v(i),a=r===n?-1:1;let c,h;const d=t=>{c=h,h=t,e=(0,ft.R)(t-c,(0,ct.$B)().delta),(1===a&&t>r||-1===a&&t<r)&&y({from:t,to:r,velocity:e})};g({type:"decay",from:t,velocity:e,timeConstant:s,power:o,restDelta:l,modifyTarget:u,onUpdate:f(i)?d:void 0})}return{stop:()=>null==m?void 0:m.stop()}}({...i,...r}):mt({...gt(r,i,t),onUpdate:t=>{i.onUpdate(t),r.onUpdate&&r.onUpdate(t)},onComplete:()=>{i.onComplete(),r.onComplete&&r.onComplete()}})}:function(){const t=(0,B.Y)(n);return e.set(t),s(),r.onUpdate&&r.onUpdate(t),r.onComplete&&r.onComplete(),{stop:()=>{}}}}function xt(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function bt(t){return"number"==typeof t?0:(0,D.T)("",t)}function Pt(t,e){return t[e]||t.default||t}function wt(t,e,n,o={}){return R&&(o={type:!1}),e.start((s=>{let r;const a=yt(t,e,n,o,s),l=function(t,e){var n,i;return null!==(i=null!==(n=(Pt(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==i?i:0}(o,t),u=()=>r=a();let c;return l?c=(0,k.g)(u,(0,i.w)(l)):u(),()=>{c&&c(),r&&r.stop()}}))}},1930:(t,e,n)=>{n.d(e,{oO:()=>s});var i=n(8370),o=n(7866);function s(){const t=(0,i.useContext)(o.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,r=(0,i.useId)();(0,i.useEffect)((()=>s(r)),[]);return!e&&n?[!1,()=>n&&n(r)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>o});var i=n(8370);const o=(0,i.createContext)(null)},7110:(t,e,n)=>{n.d(e,{Bn:()=>r,X7:()=>a,Z7:()=>s});var i=n(5222),o=n(9273);const s=t=>1-Math.sin(Math.acos(t)),r=(0,o.M)(s),a=(0,i.o)(r)},5222:(t,e,n)=>{n.d(e,{o:()=>i});const i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},9273:(t,e,n)=>{n.d(e,{M:()=>i});const i=t=>e=>1-t(1-e)},409:(t,e,n)=>{n.d(e,{Qk:()=>a,qT:()=>l});var i=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 r(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}function a(t,e="page"){return{point:(0,i.z)(t)?s(t,e):r(t,e)}}const l=(t,e=!1)=>{const n=e=>t(e,a(e));return e?(i=n,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&i(t)}):n;var i}},1876:(t,e,n)=>{n.d(e,{E:()=>o,p:()=>s});var i=n(8370);function o(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function s(t,e,n,s){(0,i.useEffect)((()=>{const i=t.current;if(n&&i)return o(i,e,n,s)}),[t,e,n,s])}},1395:(t,e,n)=>{n.d(e,{a:()=>u,m:()=>c});var i=n(1876),o=n(409),s=n(3093);const r={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 l(t){return s.j&&null===window.onpointerdown?t:s.j&&null===window.ontouchstart?a[t]:s.j&&null===window.onmousedown?r[t]:t}function u(t,e,n,s){return(0,i.E)(t,l(e),(0,o.qT)(n,"pointerdown"===e),s)}function c(t,e,n,s){return(0,i.p)(t,l(e),n&&(0,o.qT)(n,"pointerdown"===e),s)}},5856:(t,e,n)=>{function i(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{fJ:()=>r,gD:()=>a});const o=i("dragHorizontal"),s=i("dragVertical");function r(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}function a(){const t=r(!0);return!t||(t(),!1)}},3541:(t,e,n)=>{function i(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function o(t){return!!t.touches}n.d(e,{N:()=>i,z:()=>o})},6295:(t,e,n)=>{n.d(e,{x:()=>i});const i=t=>e=>(t(e),null)},483:(t,e,n)=>{function i({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function o({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(e,{d7:()=>s,i8:()=>i,z2:()=>o})},1360:(t,e,n)=>{n.d(e,{D2:()=>f,YY:()=>u,am:()=>h,o2:()=>l,q2:()=>s});var i=n(5430),o=n(4918);function s(t,e,n){return n+e*(t-n)}function r(t,e,n,i,o){return void 0!==o&&(t=s(t,o,i)),s(t,n,i)+e}function a(t,e=0,n=1,i,o){t.min=r(t.min,e,n,i,o),t.max=r(t.max,e,n,i,o)}function l(t,{x:e,y:n}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,n.translate,n.scale,n.originPoint)}function u(t,e,n,i=!1){var s,r;const a=n.length;if(!a)return;let u,h;e.x=e.y=1;for(let c=0;c<a;c++)u=n[c],h=u.projectionDelta,"contents"!==(null===(r=null===(s=u.instance)||void 0===s?void 0:s.style)||void 0===r?void 0:r.display)&&(i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&f(t,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),h&&(e.x*=h.x.scale,e.y*=h.y.scale,l(t,h)),i&&(0,o.ud)(u.latestValues)&&f(t,u.latestValues));e.x=c(e.x),e.y=c(e.y)}function c(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,[n,o,s]){const r=void 0!==e[s]?e[s]:.5,l=(0,i.C)(t.min,t.max,r);a(t,e[n],e[o],l,e.scale)}const p=["x","scaleX","originX"],m=["y","scaleY","originY"];function f(t,e){d(t.x,e,p),d(t.y,e,m)}},1397:(t,e,n)=>{n.d(e,{dO:()=>o,wc:()=>i});const i=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),o=()=>({x:{min:0,max:0},y:{min:0,max:0}})},798:(t,e,n)=>{n.d(e,{B:()=>o,P:()=>i});const i={};function o(t){Object.assign(i,t)}},4918:(t,e,n)=>{function i(t){return void 0===t||1===t}function o({scale:t,scaleX:e,scaleY:n}){return!i(t)||!i(e)||!i(n)}function s(t){return o(t)||r(t)||t.z||t.rotate||t.rotateX||t.rotateY}function r(t){return a(t.x)||a(t.y)}function a(t){return t&&"0%"!==t}n.d(e,{D_:()=>r,Lj:()=>o,ud:()=>s})},8834:(t,e,n)=>{n.d(e,{J:()=>s,z:()=>r});var i=n(483),o=n(1360);function s(t,e){return(0,i.i8)((0,i.d7)(t.getBoundingClientRect(),e))}function r(t,e,n){const i=s(t,n),{scroll:r}=e;return r&&((0,o.am)(i.x,r.offset.x),(0,o.am)(i.y,r.offset.y)),i}},6523:(t,e,n)=>{n.d(e,{H:()=>ce});var i=n(8370);function o(t){return"object"==typeof t&&"function"==typeof t.start}var s=n(1930),r=n(7866),a=n(2819);function l(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}var u=n(138),c=n(6002);const h=t=>/^0[^.\s]+$/.test(t);var d=n(7048),p=n(1421),m=n(6914),f=n(7576),v=n(1513),g=n(155);const y=t=>e=>e.test(t),x=[v.Rx,g.px,g.aQ,g.RW,g.vw,g.vh,{test:t=>"auto"===t,parse:t=>t}],b=t=>x.find(y(t)),P=[...x,f.$,c.P],w=t=>P.find(y(t));function T(t,e,n,i={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,o)),e}function V(t,e,n){const i=t.getProps();return T(i,e,void 0!==n?n:i.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 E(t,e){const n=V(t,e);let{transitionEnd:i={},transition:o={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...i};for(const e in s){A(t,e,(0,d.Y)(s[e]))}}function S(t,e){if(!e)return;return(e[t]||e.default||e).from}const C=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],M=new Set(C);var D=n(7846);function R(t){return Boolean((0,D.i)(t)&&t.add)}function B(t,e,n={}){var i;const o=V(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const r=o?()=>k(t,o,n):()=>Promise.resolve(),a=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?(i=0)=>{const{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,n=0,i=0,o=1,s){const r=[],a=(t.variantChildren.size-1)*i,l=1===o?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(L).forEach(((t,i)=>{r.push(B(t,e,{...s,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,o+i,r,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(e)}return Promise.all([r(),a(n.delay)])}function k(t,e,{delay:n=0,transitionOverride:i,type:o}={}){var s;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");i&&(r=i);const h=[],d=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const e in l){const i=t.getValue(e),o=l[e];if(!i||void 0===o||d&&j(d,e))continue;let s={delay:n,...r};t.shouldReduceMotion&&M.has(e)&&(s={...s,type:!1,delay:0});let a=(0,u.b8)(e,i,o,s);R(c)&&(c.add(e),a=a.then((()=>c.remove(e)))),h.push(a)}return Promise.all(h).then((()=>{a&&E(t,a)}))}function L(t,e){return t.sortNodePosition(e)}function j({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function O(t){return"string"==typeof t||Array.isArray(t)}var F=n(7921);const I=[F.r.Animate,F.r.InView,F.r.Focus,F.r.Hover,F.r.Tap,F.r.Drag,F.r.Exit],U=[...I].reverse(),$=I.length;function N(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>B(t,e,n)));i=Promise.all(o)}else if("string"==typeof e)i=B(t,e,n);else{const o="function"==typeof e?V(t,e,n.custom):e;i=k(t,o,n)}return i.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function Y(t){let e=N(t);const n={[F.r.Animate]:W(!0),[F.r.InView]:W(),[F.r.Hover]:W(),[F.r.Tap]:W(),[F.r.Drag]:W(),[F.r.Focus]:W(),[F.r.Exit]:W()};let i=!0;const s=(e,n)=>{const i=V(t,n);if(i){const{transition:t,transitionEnd:n,...o}=i;e={...e,...o,...n}}return e};function r(r,u){var c;const h=t.getProps(),d=t.getVariantContext(!0)||{},p=[],m=new Set;let f={},v=1/0;for(let e=0;e<$;e++){const g=U[e],y=n[g],x=null!==(c=h[g])&&void 0!==c?c:d[g],b=O(x),P=g===u?y.isActive:null;!1===P&&(v=e);let w=x===d[g]&&x!==h[g]&&b;if(w&&i&&t.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...f},!y.isActive&&null===P||!x&&!y.prevProp||o(x)||"boolean"==typeof x)continue;const T=z(y.prevProp,x);let V=T||g===u&&y.isActive&&!w&&b||e>v&&b;const A=Array.isArray(x)?x:[x];let E=A.reduce(s,{});!1===P&&(E={});const{prevResolvedValues:S={}}=y,C={...S,...E},M=t=>{V=!0,m.delete(t),y.needsAnimating[t]=!0};for(const t in C){const e=E[t],n=S[t];f.hasOwnProperty(t)||(e!==n?(0,a.C)(e)&&(0,a.C)(n)?!l(e,n)||T?M(t):y.protectedKeys[t]=!0:void 0!==e?M(t):m.add(t):void 0!==e&&m.has(t)?M(t):y.protectedKeys[t]=!0)}y.prevProp=x,y.prevResolvedValues=E,y.isActive&&(f={...f,...E}),i&&t.blockInitialAnimation&&(V=!1),V&&!w&&p.push(...A.map((t=>({animation:t,options:{type:g,...r}}))))}if(m.size){const e={};m.forEach((n=>{const i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)})),p.push({animation:e})}let g=Boolean(p.length);return i&&!1===h.initial&&!t.manuallyAnimateOnMount&&(g=!1),i=!1,g?e(p):Promise.resolve()}return{animateChanges:r,setActive:function(e,i,o){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const a=r(o,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function z(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!l(e,t)}function W(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var q=n(6295);const H={animation:(0,q.x)((({visualElement:t,animate:e})=>{t.animationState||(t.animationState=Y(t)),o(e)&&(0,i.useEffect)((()=>e.subscribe(t)),[e])})),exit:(0,q.x)((t=>{const{custom:e,visualElement:n}=t,[o,a]=(0,s.oO)(),l=(0,i.useContext)(r.O);(0,i.useEffect)((()=>{n.isPresent=o;const t=n.animationState&&n.animationState.setActive(F.r.Exit,!o,{custom:l&&l.custom||e});t&&!o&&t.then(a)}),[o])}))};var Z=n(1876);var X=n(3541),G=n(1395),K=n(5856);function J(t,e,n){return(i,o)=>{(0,X.N)(i)&&!(0,K.gD)()&&(t.animationState&&t.animationState.setActive(F.r.Hover,e),n&&n(i,o))}}const Q=(t,e)=>!!e&&(t===e||Q(t,e.parentElement));var _=n(9531),tt=n(9820);const et=("undefined"==typeof process||process.env,"production"),nt=new Set;const it=new WeakMap,ot=new WeakMap,st=t=>{const e=it.get(t.target);e&&e(t)},rt=t=>{t.forEach(st)};function at(t,e,n){const i=function({root:t,...e}){const n=t||document;ot.has(n)||ot.set(n,{});const i=ot.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(rt,{root:t,...e})),i[o]}(e);return it.set(t,n),i.observe(t),()=>{it.delete(t),i.unobserve(t)}}const lt={some:0,all:1};function ut(t,e,n,{root:o,margin:s,amount:r="some",once:a}){(0,i.useEffect)((()=>{if(!t||!n.current)return;const i={root:null==o?void 0:o.current,rootMargin:s,threshold:"number"==typeof r?r:lt[r]};return at(n.current,i,(t=>{const{isIntersecting:i}=t;if(e.isInView===i)return;if(e.isInView=i,a&&!i&&e.hasEnteredView)return;i&&(e.hasEnteredView=!0),n.animationState&&n.animationState.setActive(F.r.InView,i);const o=n.getProps(),s=i?o.onViewportEnter:o.onViewportLeave;s&&s(t)}))}),[t,o,s,r])}function ct(t,e,n,{fallback:o=!0}){(0,i.useEffect)((()=>{var i,s;t&&o&&("production"!==et&&(i="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||nt.has(i)||(console.warn(i),s&&console.warn(s),nt.add(i))),requestAnimationFrame((()=>{e.hasEnteredView=!0;const{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(F.r.InView,!0)})))}),[t])}const ht={inView:(0,q.x)((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:o,viewport:s={}}){const r=(0,i.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||o);s.once&&r.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?ct:ut)(a,r.current,t,s)})),tap:(0,q.x)((function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:o,visualElement:s}){const r=t||e||n||o,a=(0,i.useRef)(!1),l=(0,i.useRef)(null),u={passive:!(e||t||n||m)};function c(){l.current&&l.current(),l.current=null}function h(){return c(),a.current=!1,s.animationState&&s.animationState.setActive(F.r.Tap,!1),!(0,K.gD)()}function d(e,i){h()&&(Q(s.current,e.target)?t&&t(e,i):n&&n(e,i))}function p(t,e){h()&&n&&n(t,e)}function m(t,n){c(),a.current||(a.current=!0,l.current=(0,tt.z)((0,G.a)(window,"pointerup",d,u),(0,G.a)(window,"pointercancel",p,u)),s.animationState&&s.animationState.setActive(F.r.Tap,!0),e&&e(t,n))}(0,G.m)(s,"pointerdown",r?m:void 0,u),(0,_.z)(c)})),focus:(0,q.x)((function({whileFocus:t,visualElement:e}){const{animationState:n}=e;(0,Z.p)(e,"focus",t?()=>{n&&n.setActive(F.r.Focus,!0)}:void 0),(0,Z.p)(e,"blur",t?()=>{n&&n.setActive(F.r.Focus,!1)}:void 0)})),hover:(0,q.x)((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:i}){(0,G.m)(i,"pointerenter",t||n?J(i,!0,t):void 0,{passive:!t}),(0,G.m)(i,"pointerleave",e||n?J(i,!1,e):void 0,{passive:!e})}))},dt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pt=(t,e)=>C.indexOf(t)-C.indexOf(e);function mt(t){return t.startsWith("--")}const ft=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var vt=n(4923);function gt(t,e,n,i){const{style:o,vars:s,transform:r,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,c=!1,h=!0;for(const t in e){const n=e[t];if(mt(t)){s[t]=n;continue}const i=vt.j[t],d=ft(n,i);if(M.has(t)){if(u=!0,r[t]=d,a.push(t),!h)continue;n!==(i.default||0)&&(h=!1)}else t.startsWith("origin")?(c=!0,l[t]=d):o[t]=d}if(e.transform||(u||i?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},o,s){let r="";e.sort(pt);for(const n of e)r+=`${dt[n]||n}(${t[n]}) `;return n&&!t.z&&(r+="translateZ(0)"),r=r.trim(),s?r=s(t,o?"":r):i&&o&&(r="none"),r}(t,n,h,i):o.transform&&(o.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;o.transformOrigin=`${t} ${e} ${n}`}}var yt=n(798);function xt(t,{layout:e,layoutId:n}){return M.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!yt.P[t]||"opacity"===t)}function bt(t){const{style:e}=t,n={};for(const i in e)((0,D.i)(e[i])||xt(i,t))&&(n[i]=e[i]);return n}function Pt(t,{style:e,vars:n},i,o){Object.assign(t.style,e,o&&o.getProjectionStyles(i));for(const e in n)t.style.setProperty(e,n[e])}var wt=n(7557),Tt=n(8834),Vt=n(6978),At=n(9340),Et=n(3093);const St=new Set(["width","height","top","left","right","bottom","x","y"]),Ct=t=>St.has(t),Mt=(t,e)=>{t.set(e,!1),t.set(e)},Dt=t=>t===v.Rx||t===g.px;var Rt;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Rt||(Rt={}));const Bt=(t,e)=>parseFloat(t.split(", ")[e]),kt=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return Bt(o[1],e);{const e=i.match(/^matrix\((.+)\)$/);return e?Bt(e[1],t):0}},Lt=new Set(["x","y","z"]),jt=C.filter((t=>!Lt.has(t)));const Ot={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)},Ft=(t,e,n={},i={})=>{e={...e},i={...i};const o=Object.keys(e).filter(Ct);let s=[],r=!1;const l=[];if(o.forEach((o=>{const u=t.getValue(o);if(!t.hasValue(o))return;let c=n[o],h=b(c);const d=e[o];let p;if((0,a.C)(d)){const t=d.length,e=null===d[0]?1:0;c=d[e],h=b(c);for(let n=e;n<t;n++)p?(0,At.k)(b(d[n])===p,"All keyframes must be of the same type"):(p=b(d[n]),(0,At.k)(p===h||Dt(h)&&Dt(p),"Keyframes must be of the same dimension as the current value"))}else p=b(d);if(h!==p)if(Dt(h)&&Dt(p)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&p===g.px&&(e[o]=d.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?u.set(p.transform(c)):e[o]=h.transform(d):(r||(s=function(t){const e=[];return jt.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),r=!0),l.push(o),i[o]=void 0!==i[o]?i[o]:e[o],Mt(u,d))})),l.length){const n=l.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const i=e.measureViewportBox(),o=e.current,s=getComputedStyle(o),{display:r}=s,a={};"none"===r&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Ot[t](i,s)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const i=e.getValue(n);Mt(i,a[n]),t[n]=Ot[n](l,s)})),t})(e,t,l);return s.length&&s.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),Et.j&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:i}}return{target:e,transitionEnd:i}};function It(t,e,n,i){return(t=>Object.keys(t).some(Ct))(e)?Ft(t,e,n,i):{target:e,transitionEnd:i}}var Ut=n(6162);const $t=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),Nt={measureLayout:$t(["layout","layoutId","drag"]),animation:$t(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:$t(["exit"]),drag:$t(["drag","dragControls"]),focus:$t(["whileFocus"]),hover:$t(["whileHover","onHoverStart","onHoverEnd"]),tap:$t(["whileTap","onTap","onTapStart","onTapCancel"]),pan:$t(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:$t(["whileInView","onViewportEnter","onViewportLeave"])};var Yt=n(1397),zt=n(3491);const Wt={current:null},qt={current:!1};var Ht=n(1065);const Zt=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Xt(t){return o(t.animate)||Zt.some((e=>O(t[e])))}const Gt=Object.keys(Nt),Kt=Gt.length,Jt=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Qt=["initial",...I],_t=Qt.length;class te extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:i},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=()=>Ut.ZP.render(this.render,!1,!0);const{latestValues:s,renderState:r}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=r,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Xt(e),this.isVariantNode=function(t){return Boolean(Xt(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...l}=this.scrapeMotionValuesFromProps(e);for(const t in l){const e=l[t];void 0!==s[t]&&(0,D.i)(e)&&(e.set(s[t],!1),R(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===(e=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,Et.j)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Wt.current=t.matches;t.addListener(e),e()}else Wt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Wt.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===(t=this.projection)||void 0===t||t.unmount(),Ut.qY.update(this.notifyUpdate),Ut.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=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=M.has(t),i=e.onChange((e=>{this.latestValues[t]=e,this.props.onUpdate&&Ut.ZP.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(t,(()=>{i(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures(t,e,n,o,s,r){const a=[];"production"!==et&&n&&e&&(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 e=0;e<Kt;e++){const n=Gt[e],{isEnabled:o,Component:s}=Nt[n];o(t)&&s&&a.push((0,i.createElement)(s,{key:n,...t,visualElement:this}))}if(!this.projection&&s){this.projection=new s(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:i,dragConstraints:a,layoutScroll:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(i)||a&&(0,zt.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,Yt.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<Jt.length;e++){const n=Jt[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){const{willChange:i}=e;for(const o in e){const s=e[o],r=n[o];if((0,D.i)(s))t.addValue(o,s),R(i)&&i.add(o);else if((0,D.i)(r))t.addValue(o,(0,p.B)(s)),R(i)&&i.remove(o);else if(r!==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 i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var e;return null===(e=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===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const i={};for(let t=0;t<_t;t++){const e=Qt[t],n=this.props[e];(O(n)||!1===n)&&(i[e]=n)}return i}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===(e=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===(e=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&&(n=(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,i="string"==typeof n||"object"==typeof n?null===(e=T(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||(0,D.i)(o)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new Ht.L),this.events[t].add(e)}notify(t,...e){var n;null===(n=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===(n=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:i},o){let s=function(t,e,n){var i;const o={};for(const s in t){const t=S(s,e);o[s]=void 0!==t?t:null===(i=n.getValue(s))||void 0===i?void 0:i.get()}return o}(n,t||{},this);if(i&&(e&&(e=i(e)),n&&(n=i(n)),s&&(s=i(s))),o){!function(t,e,n){var i,o;const s=Object.keys(e).filter((e=>!t.hasValue(e))),r=s.length;if(r)for(let a=0;a<r;a++){const r=s[a],l=e[r];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(o=null!==(i=n[r])&&void 0!==i?i:t.readValue(r))&&void 0!==o?o:e[r]),null!=u&&("string"==typeof u&&(/^\-?\d*\.?\d+$/.test(u)||h(u))?u=parseFloat(u):!w(u)&&c.P.test(l)&&(u=(0,m.T)(r,l)),t.addValue(r,(0,p.B)(u)),void 0===n[r]&&(n[r]=u),null!==u&&t.setBaseTarget(r,u))}}(this,n,s);const t=((t,e,n,i)=>{const o=(0,Vt.mH)(t,e,i);return It(t,e=o.target,n,i=o.transitionEnd)})(this,n,s,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class ee extends te{readValueFromInstance(t,e){if(M.has(e)){const t=(0,wt.A)(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),o=(mt(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,Tt.J)(t,e)}build(t,e,n,i){gt(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t){return bt(t)}renderInstance(t,e,n,i){Pt(t,e,n,i)}}function ne(t,e,n){return"string"==typeof t?t:g.px.transform(e+n*t)}const ie={offset:"stroke-dashoffset",array:"stroke-dasharray"},oe={offset:"strokeDashoffset",array:"strokeDasharray"};function se(t,{attrX:e,attrY:n,originX:i,originY:o,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...l},u,c,h){if(gt(t,l,u,h),c)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){return`${ne(e,t.x,t.width)} ${ne(n,t.y,t.height)}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==s&&function(t,e,n=1,i=0,o=!0){t.pathLength=1;const s=o?ie:oe;t[s.offset]=g.px.transform(-i);const r=g.px.transform(e),a=g.px.transform(n);t[s.array]=`${r} ${a}`}(d,s,r,a,!1)}const re=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),ae=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class le extends te{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return M.has(e)?(null===(n=(0,wt.A)(e))||void 0===n?void 0:n.default)||0:(e=ae.has(e)?e:re(e),t.getAttribute(e))}measureInstanceViewportBox(){return(0,Yt.dO)()}scrapeMotionValuesFromProps(t){return function(t){const e=bt(t);for(const n in t)(0,D.i)(t[n])&&(e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]);return e}(t)}build(t,e,n,i){se(t,e,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,n,i){!function(t,e,n,i){Pt(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(ae.has(n)?n:re(n),e.attrs[n])}(t,e,0,i)}mount(t){var e;this.isSVGTag="string"==typeof(e=t.tagName)&&"svg"===e.toLowerCase(),super.mount(t)}}const ue=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];const ce={renderer:(t,e)=>function(t){return"string"==typeof t&&!t.includes("-")&&!!(ue.indexOf(t)>-1||/[A-Z]/.test(t))}(t)?new le(e,{enableHardwareAcceleration:!1}):new ee(e,{enableHardwareAcceleration:!0}),...H,...ht}},6978:(t,e,n)=>{n.d(e,{Xp:()=>s,mH:()=>a});var i=n(9340);function o(t){return"string"==typeof t&&t.startsWith("var(--")}const s=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function r(t,e,n=1){(0,i.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[a,l]=function(t){const e=s.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}(t);if(!a)return;const u=window.getComputedStyle(e).getPropertyValue(a);return u?u.trim():o(l)?r(l,e,n+1):l}function a(t,{...e},n){const i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!o(e))return;const n=r(e,i);n&&t.set(n)}));for(const t in e){const s=e[t];if(!o(s))continue;const a=r(s,i);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:()=>r});var i=n(9500),o=n(6002),s=n(7557);function r(t,e){var n;let r=(0,s.A)(t);return r!==i.h&&(r=o.P),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,e)}},7557:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(7576),o=n(9500);const s={...n(4923).j,color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:o.h,WebkitFilter:o.h},r=t=>s[t]},4923:(t,e,n)=>{n.d(e,{j:()=>r});var i=n(155),o=n(1513),s=n(6933);const r={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,size:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,rotate:i.RW,rotateX:i.RW,rotateY:i.RW,rotateZ:i.RW,scale:o.bA,scaleX:o.bA,scaleY:o.bA,scaleZ:o.bA,skew:i.RW,skewX:i.RW,skewY:i.RW,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:o.Fq,originX:i.$C,originY:i.$C,originZ:i.px,zIndex:s.e,fillOpacity:o.Fq,strokeOpacity:o.Fq,numOctaves:s.e}},6933:(t,e,n)=>{n.d(e,{e:()=>i});const i={...n(1513).Rx,transform:Math.round}},7921:(t,e,n)=>{var i;n.d(e,{r:()=>i}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(i||(i={}))},1180:(t,e,n)=>{function i(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:()=>i})},9043:(t,e,n)=>{n.d(e,{u:()=>i});const i=(t,e,n)=>Math.min(Math.max(n,t),e)},2866:(t,e,n)=>{n.d(e,{g:()=>o});var i=n(6162);function o(t,e){const n=performance.now(),o=({timestamp:s})=>{const r=s-n;r>=e&&(i.qY.read(o),t(r-e))};return i.ZP.read(o,!0),()=>i.qY.read(o)}},3093:(t,e,n)=>{n.d(e,{j:()=>i});const i="undefined"!=typeof document},3491:(t,e,n)=>{function i(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>i})},5430:(t,e,n)=>{n.d(e,{C:()=>i});const i=(t,e,n)=>-n*t+n*e+t},2634:(t,e,n)=>{n.d(e,{Z:()=>i});const i=t=>t},9820:(t,e,n)=>{n.d(e,{z:()=>o});const i=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(i)},918:(t,e,n)=>{n.d(e,{Y:()=>i});const i=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i}},7048:(t,e,n)=>{n.d(e,{Y:()=>s,p:()=>o});var i=n(2819);const o=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),s=t=>(0,i.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>o});var i=n(1180);class o{constructor(){this.subscriptions=[]}add(t){return(0,i.y4)(this.subscriptions,t),()=>(0,i.cl)(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let o=0;o<i;o++){const i=this.subscriptions[o];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},1818:(t,e,n)=>{n.d(e,{w:()=>i});const i=t=>1e3*t},9531:(t,e,n)=>{n.d(e,{z:()=>o});var i=n(8370);function o(t){return(0,i.useEffect)((()=>()=>t()),[])}},432:(t,e,n)=>{function i(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>i})},1421:(t,e,n)=>{n.d(e,{B:()=>a});var i=n(6162),o=n(1065),s=n(432);class r{constructor(t){var e;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new o.L,this.velocityUpdateSubscribers=new o.L,this.renderSubscribers=new o.L,this.canTrackVelocity=!1,this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=(0,i.$B)();this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,i.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=()=>i.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,s.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 r(t)}},7846:(t,e,n)=>{n.d(e,{i:()=>i});const i=t=>!!(null==t?void 0:t.getVelocity)},8370:t=>{t.exports=void 0},6162:(t,e,n)=>{n.d(e,{qY:()=>p,ZP:()=>x,iW:()=>m,$B:()=>y});const i=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),s="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),i);let r=!0,a=!1,l=!1;const u={delta:0,timestamp:0},c=["read","update","preRender","render","postRender"],h=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],i=0,o=!1,s=!1;const r=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{const l=a&&o,u=l?e:n;return s&&r.add(t),-1===u.indexOf(t)&&(u.push(t),l&&o&&(i=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),r.delete(t)},process:l=>{if(o)s=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,i=e.length,i)for(let n=0;n<i;n++){const i=e[n];i(l),r.has(i)&&(a.schedule(i),t())}o=!1,s&&(s=!1,a.process(l))}}};return a}((()=>a=!0)),t)),{}),d=c.reduce(((t,e)=>{const n=h[e];return t[e]=(t,e=!1,i=!1)=>(a||g(),n.schedule(t,e,i)),t}),{}),p=c.reduce(((t,e)=>(t[e]=h[e].cancel,t)),{}),m=c.reduce(((t,e)=>(t[e]=()=>h[e].process(u),t)),{}),f=t=>h[t].process(u),v=t=>{a=!1,u.delta=r?i:Math.max(Math.min(t-u.timestamp,40),1),u.timestamp=t,l=!0,c.forEach(f),l=!1,a&&(r=!1,s(v))},g=()=>{a=!0,r=!0,l||s(v)},y=()=>u,x=d},9012:(t,e,n)=>{n.d(e,{$:()=>o});var i=n(3203);const o={test:(0,n(1552).i)("#"),parse:function(t){let e="",n="",i="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),i=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),i=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:i.m.transform}},7493:(t,e,n)=>{n.d(e,{J:()=>a});var i=n(1513),o=n(155),s=n(5757),r=n(1552);const a={test:(0,r.i)("hsl","hue"),parse:(0,r.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,s.Nw)(e))+", "+o.aQ.transform((0,s.Nw)(n))+", "+(0,s.Nw)(i.Fq.transform(r))+")"}},7576:(t,e,n)=>{n.d(e,{$:()=>a});var i=n(5757),o=n(9012),s=n(7493),r=n(3203);const a={test:t=>r.m.test(t)||o.$.test(t)||s.J.test(t),parse:t=>r.m.test(t)?r.m.parse(t):s.J.test(t)?s.J.parse(t):o.$.parse(t),transform:t=>(0,i.HD)(t)?t:t.hasOwnProperty("red")?r.m.transform(t):s.J.transform(t)}},3203:(t,e,n)=>{n.d(e,{m:()=>l});var i=n(1513),o=n(5757),s=n(1552);const r=(0,o.uZ)(0,255),a=Object.assign(Object.assign({},i.Rx),{transform:t=>Math.round(r(t))}),l={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)(i.Fq.transform(s))+")"}},1552:(t,e,n)=>{n.d(e,{d:()=>s,i:()=>o});var i=n(5757);const o=(t,e)=>n=>Boolean((0,i.HD)(n)&&i.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),s=(t,e,n)=>o=>{if(!(0,i.HD)(o))return o;const[s,r,a,l]=o.match(i.KP);return{[t]:parseFloat(s),[e]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},9500:(t,e,n)=>{n.d(e,{h:()=>l});var i=n(6002),o=n(5757);const s=new Set(["brightness","contrast","saturate","opacity"]);function r(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(o.KP)||[];if(!i)return t;const r=n.replace(i,"");let a=s.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+r+")"}const a=/([a-z-]*)\(.*?\)/g,l=Object.assign(Object.assign({},i.P),{getAnimatableNone:t=>{const e=t.match(a);return e?e.map(r).join(" "):t}})},6002:(t,e,n)=>{n.d(e,{P:()=>d});var i=n(7576),o=n(1513),s=n(5757);const r="${c}",a="${n}";function l(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0;const l=t.match(s.dA);l&&(n=l.length,t=t.replace(s.dA,r),e.push(...l.map(i.$.parse)));const u=t.match(s.KP);return u&&(t=t.replace(s.KP,a),e.push(...u.map(o.Rx.parse))),{values:e,numColors:n,tokenised:t}}function u(t){return l(t).values}function c(t){const{values:e,numColors:n,tokenised:o}=l(t),u=e.length;return t=>{let e=o;for(let o=0;o<u;o++)e=e.replace(o<n?r:a,o<n?i.$.transform(t[o]):(0,s.Nw)(t[o]));return e}}const h=t=>"number"==typeof t?0:t;const d={test:function(t){var e,n,i,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===(i=t.match(s.dA))||void 0===i?void 0:i.length)&&void 0!==o?o:0)>0},parse:u,createTransformer:c,getAnimatableNone:function(t){const e=u(t);return c(t)(e.map(h))}}},1513:(t,e,n)=>{n.d(e,{Fq:()=>s,Rx:()=>o,bA:()=>r});var i=n(5757);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s=Object.assign(Object.assign({},o),{transform:(0,i.uZ)(0,1)}),r=Object.assign(Object.assign({},o),{default:1})},155:(t,e,n)=>{n.d(e,{$C:()=>c,RW:()=>s,aQ:()=>r,px:()=>a,vh:()=>l,vw:()=>u});var i=n(5757);const o=t=>({test:e=>(0,i.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=o("deg"),r=o("%"),a=o("px"),l=o("vh"),u=o("vw"),c=Object.assign(Object.assign({},r),{parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)})},5757:(t,e,n)=>{n.d(e,{HD:()=>l,KP:()=>s,Nw:()=>o,dA:()=>r,mj:()=>a,uZ:()=>i});const i=(t,e)=>n=>Math.max(Math.min(n,e),t),o=t=>t%1?Number(t.toFixed(5)):t,s=/(-)?([\d]*\.?[\d])+/g,r=/(#[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 l(t){return"string"==typeof t}}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var s=e[i]={exports:{}};return t[i](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 i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(8370),e=n.n(t),i=n(9340),o=n(3541),s=n(409),r=n(6162),a=n(1818),l=n(1395),u=n(9820);const c=(t,e)=>Math.abs(t-e);class h{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=m(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=c(t.x,e.x),i=c(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:o}=(0,r.$B)();this.history.push({...i,timestamp:o});const{onStart:s,onMove:a}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=d(e,this.transformPagePoint),(0,o.N)(t)&&0===t.buttons?this.handlePointerUp(t,e):r.ZP.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i}=this.handlers,o=m(d(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},(0,o.z)(t)&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=n;const i=d((0,s.Qk)(t),this.transformPagePoint),{point:a}=i,{timestamp:h}=(0,r.$B)();this.history=[{...a,timestamp:h}];const{onSessionStart:p}=e;p&&p(t,m(i,this.history)),this.removeListeners=(0,u.z)((0,l.a)(window,"pointermove",this.handlePointerMove),(0,l.a)(window,"pointerup",this.handlePointerUp),(0,l.a)(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),r.qY.update(this.updatePoint)}}function d(t,e){return e?{point:e(t.point)}:t}function p(t,e){return{x:t.x-e.x,y:t.y-e.y}}function m({point:t},e){return{point:t,delta:p(t,v(e)),offset:p(t,f(e)),velocity:g(e,.1)}}function f(t){return t[0]}function v(t){return t[t.length-1]}function g(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=v(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>(0,a.w)(e)));)n--;if(!i)return{x:0,y:0};const s=(o.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};const r={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}var y=n(5856),x=n(3491),b=n(918),P=n(5430);function w(t){return t.max-t.min}function T(t,e=0,n=.01){return Math.abs(t-e)<=n}function V(t,e,n,i=.5){t.origin=i,t.originPoint=(0,P.C)(e.min,e.max,t.origin),t.scale=w(n)/w(e),(T(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,P.C)(n.min,n.max,t.origin)-t.originPoint,(T(t.translate)||isNaN(t.translate))&&(t.translate=0)}function A(t,e,n,i){V(t.x,e.x,n.x,null==i?void 0:i.originX),V(t.y,e.y,n.y,null==i?void 0:i.originY)}function E(t,e,n){t.min=n.min+e.min,t.max=t.min+w(e)}function S(t,e,n){t.min=e.min-n.min,t.max=t.min+w(e)}function C(t,e,n){S(t.x,e.x,n.x),S(t.y,e.y,n.y)}var M=n(9043);function D(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?(0,P.C)(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?(0,P.C)(n,t,i.max):Math.min(t,n)),t}function R(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function B(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function k(t,e){let n=.5;const i=w(t),o=w(e);return o>i?n=(0,b.Y)(e.min,e.max-i,t.min):i>o&&(n=(0,b.Y)(t.min,t.max-o,e.min)),(0,M.u)(0,1,n)}const L=.35;function j(t,e,n){return{min:O(t,e),max:O(t,n)}}function O(t,e){var n;return"number"==typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}var F=n(7921),I=n(1397);function U(t){return[t("x"),t("y")]}var $=n(8834),N=n(138),Y=n(483),z=n(1876),W=n(155);const q=new WeakMap;class H{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,I.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new h(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor((0,s.Qk)(t,"page").point)},onStart:(t,e)=>{var n;const{drag:i,dragPropagation:o,onDragStart:s}=this.getProps();(!i||o||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,y.fJ)(i),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U((t=>{var e,n;let i=this.getAxisMotionValue(t).get()||0;if(W.aQ.test(i)){const o=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(o){i=w(o)*(parseFloat(i)/100)}}this.originPoint[t]=i})),null==s||s(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(F.r.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:s}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&(null==o||o(this.currentDirection)));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),null==s||s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:o}=this.getProps();null==o||o(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(F.r.Drag,!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!Z(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=D(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&(0,x.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:o}){return{x:R(t.x,n,o),y:R(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=L){return!1===t?t=0:!0===t&&(t=L),{x:j(t,"left","right"),y:j(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&U((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!(0,x.I)(t))return!1;const n=t.current;(0,i.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=(0,$.z)(n,o.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:B(t.x,e.x),y:B(t.y,e.y)}}(o.layout.layoutBox,s);if(e){const t=e((0,Y.z2)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,Y.i8)(t))}return r}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=U((r=>{var l;if(!Z(r,e,this.currentDirection))return;let u=null!==(l=null==a?void 0:a[r])&&void 0!==l?l:{};s&&(u={min:0,max:0});const c=i?200:1e6,h=i?40:1e7,d={type:"inertia",velocity:n?t[r]:0,bounceStiffness:c,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(r,d)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return(0,N.b8)(t,n,0,e)}stopAnimation(){U((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){var e,n;const i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)}snapToCursor(t){U((e=>{const{drag:n}=this.getProps();if(!Z(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:s}=i.layout.layoutBox[e];o.set(t[e]-(0,P.C)(n,s,.5))}}))}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!(0,x.I)(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};U((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();o[t]=k({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),U((t=>{if(!Z(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set((0,P.C)(i,s,o[t]))}))}addListeners(){var t;if(!this.visualElement.current)return;q.set(this.visualElement,this);const e=this.visualElement.current,n=(0,l.a)(e,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),i=()=>{const{dragConstraints:t}=this.getProps();(0,x.I)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),i();const r=(0,z.E)(window,"resize",(()=>this.scalePositionWithinConstraints())),a=o.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(U((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{r(),n(),s(),null==a||a()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=L,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:r}}}function Z(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const X=(0,t.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var G=n(9531);var K=n(6295);const J={pan:(0,K.x)((function({onPan:e,onPanStart:n,onPanEnd:i,onPanSessionStart:o,visualElement:s}){const r=e||n||i||o,a=(0,t.useRef)(null),{transformPagePoint:u}=(0,t.useContext)(X),c={onSessionStart:o,onStart:n,onMove:e,onEnd:(t,e)=>{a.current=null,i&&i(t,e)}};(0,t.useEffect)((()=>{null!==a.current&&a.current.updateHandlers(c)})),(0,l.m)(s,"pointerdown",r&&function(t){a.current=new h(t,c,{transformPagePoint:u})}),(0,G.z)((()=>a.current&&a.current.end()))})),drag:(0,K.x)((function(e){const{dragControls:n,visualElement:i}=e,o=function(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}((()=>new H(i)));(0,t.useEffect)((()=>n&&n.subscribe(o)),[o,n]),(0,t.useEffect)((()=>o.addListeners()),[o])}))};var Q=n(1930);const _=(0,t.createContext)({}),tt=(0,t.createContext)({}),et={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nt(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const it={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!W.px.test(t))return t;t=parseFloat(t)}return`${nt(t,e.target.x)}% ${nt(t,e.target.y)}%`}};var ot=n(6002),st=n(6978);const rt="_$css",at={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=t.includes("var("),s=[];o&&(t=t.replace(st.Xp,(t=>(s.push(t),rt))));const r=ot.P.parse(t);if(r.length>5)return i;const a=ot.P.createTransformer(t),l="number"!=typeof r[0]?1:0,u=n.x.scale*e.x,c=n.y.scale*e.y;r[0+l]/=u,r[1+l]/=c;const h=(0,P.C)(u,c,.5);"number"==typeof r[2+l]&&(r[2+l]/=h),"number"==typeof r[3+l]&&(r[3+l]/=h);let d=a(r);if(o){let t=0;d=d.replace(rt,(()=>{const e=s[t];return t++,e}))}return d}};var lt=n(798);class ut extends e().Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;(0,lt.B)(ct),o&&(e.group&&e.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),et.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s?(s.isPresent=o,i||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||r.ZP.postRender((()=>{var t;(null===(t=s.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;null==t||t()}render(){return null}}const ct={borderRadius:{...it,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:it,borderTopRightRadius:it,borderBottomLeftRadius:it,borderBottomRightRadius:it,boxShadow:at},ht={measureLayout:function(n){const[i,o]=(0,Q.oO)(),s=(0,t.useContext)(_);return e().createElement(ut,{...n,layoutGroup:s,switchLayoutGroup:(0,t.useContext)(tt),isPresent:i,safeToRemove:o})}};var dt=n(1421),pt=n(7846);var mt=n(1065),ft=n(7110),vt=n(2634);const gt=["TopLeft","TopRight","BottomLeft","BottomRight"],yt=gt.length,xt=t=>"string"==typeof t?parseFloat(t):t,bt=t=>"number"==typeof t||W.px.test(t);function Pt(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}const wt=Vt(0,.5,ft.Bn),Tt=Vt(.5,.95,vt.Z);function Vt(t,e,n){return i=>i<t?0:i>e?1:n((0,b.Y)(t,e,i))}function At(t,e){t.min=e.min,t.max=e.max}function Et(t,e){At(t.x,e.x),At(t.y,e.y)}var St=n(1360);function Ct(t,e,n,i,o){return t-=e,t=(0,St.q2)(t,1/n,i),void 0!==o&&(t=(0,St.q2)(t,1/o,i)),t}function Mt(t,e,[n,i,o],s,r){!function(t,e=0,n=1,i=.5,o,s=t,r=t){W.aQ.test(e)&&(e=parseFloat(e),e=(0,P.C)(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=(0,P.C)(s.min,s.max,i);t===s&&(a-=e),t.min=Ct(t.min,e,n,a,o),t.max=Ct(t.max,e,n,a,o)}(t,e[n],e[i],e[o],e.scale,s,r)}const Dt=["x","scaleX","originX"],Rt=["y","scaleY","originY"];function Bt(t,e,n,i){Mt(t.x,e,Dt,null==n?void 0:n.x,null==i?void 0:i.x),Mt(t.y,e,Rt,null==n?void 0:n.y,null==i?void 0:i.y)}function kt(t){return 0===t.translate&&1===t.scale}function Lt(t){return kt(t.x)&&kt(t.y)}function jt(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Ot(t){return w(t.x)/w(t.y)}var Ft=n(1180);class It{constructor(){this.members=[]}add(t){(0,Ft.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,Ft.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){var n;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;!1===o&&i.hide()}}exitAnimationComplete(){this.members.forEach((t=>{var e,n,i,o,s;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(s=null===(i=t.resumingFrom)||void 0===i?void 0:(o=i.options).onExitComplete)||void 0===s||s.call(o)}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ut(t,e,n){let i="";const o=t.x.translate/e.x,s=t.y.translate/e.y;if((o||s)&&(i=`translate3d(${o}px, ${s}px, 0) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(i+=`rotate(${t}deg) `),e&&(i+=`rotateX(${e}deg) `),o&&(i+=`rotateY(${o}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return 1===r&&1===a||(i+=`scale(${r}, ${a})`),i||"none"}var $t=n(4918);const Nt=(t,e)=>t.depth-e.depth;class Yt{constructor(){this.children=[],this.isDirty=!1}add(t){(0,Ft.y4)(this.children,t),this.isDirty=!0}remove(t){(0,Ft.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Nt),this.isDirty=!1,this.children.forEach(t)}}var zt=n(7048);function Wt(t){const e=(0,pt.i)(t)?t.get():t;return(0,zt.p)(e)?e.toValue():e}var qt=n(2866);const Ht=["","X","Y","Z"];let Zt=0;function Xt({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(t,n={},i=(null==e?void 0:e())){this.id=Zt++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(Jt),this.nodes.forEach(ne),this.nodes.forEach(ie)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yt)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new mt.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);null==n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var i;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:o,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),null===(i=this.parent)||void 0===i||i.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(s||o)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=(0,qt.g)(i,250),et.hasAnimatedSinceResize&&(et.hasAnimatedSinceResize=!1,this.nodes.forEach(ee))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&r&&(o||s)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{var o,s,a,l,u;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const c=null!==(s=null!==(o=this.options.transition)&&void 0!==o?o:r.getDefaultTransition())&&void 0!==s?s:ue,{onLayoutAnimationStart:h,onLayoutAnimationComplete:d}=r.getProps(),p=!this.targetLayout||!jt(this.targetLayout,i)||n,m=!e&&n;if((null===(a=this.resumeFrom)||void 0===a?void 0:a.instance)||m||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,m);const e={...(0,N.ev)(c,"layout"),onPlay:h,onComplete:d};r.shouldReduceMotion&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||ee(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=i}))}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,r.qY.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(oe),this.animationId++)}willUpdate(t=!0){var e,n,i;if(this.root.isUpdateBlocked())return void(null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e));if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot")}const{layoutId:o,layout:s}=this.options;if(void 0===o&&!s)return;const r=null===(i=this.options.visualElement)||void 0===i?void 0:i.getProps().transformTemplate;this.prevTransformTemplateValue=null==r?void 0:r(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(_t);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(ce),this.potentialNodes.clear()),this.nodes.forEach(te),this.nodes.forEach(Gt),this.nodes.forEach(Kt),this.clearAllSnapshots(),r.iW.update(),r.iW.preRender(),r.iW.render())}clearAllSnapshots(){this.nodes.forEach(Qt),this.sharedNodes.forEach(se)}scheduleUpdateProjection(){r.ZP.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){r.ZP.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,I.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(t=this.options.visualElement)||void 0===t||t.notify("LayoutMeasure",this.layout.layoutBox,null==e?void 0:e.layoutBox)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){var t;if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Lt(this.projectionDelta),i=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,s=null==i?void 0:i(this.latestValues,""),r=s!==this.prevTransformTemplateValue;e&&(n||(0,$t.ud)(this.latestValues)||r)&&(o(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),he((i=n).x),he(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return(0,I.dO)();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&((0,St.am)(e.x,n.offset.x),(0,St.am)(e.y,n.offset.y)),e}removeElementScroll(t){const e=(0,I.dO)();Et(e,t);for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:o,options:s}=i;if(i!==this.root&&o&&s.layoutScroll){if(o.isRoot){Et(e,t);const{scroll:n}=this.root;n&&((0,St.am)(e.x,-n.offset.x),(0,St.am)(e.y,-n.offset.y))}(0,St.am)(e.x,o.offset.x),(0,St.am)(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n=(0,I.dO)();Et(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(0,St.D2)(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),(0,$t.ud)(i.latestValues)&&(0,St.D2)(n,i.latestValues)}return(0,$t.ud)(this.latestValues)&&(0,St.D2)(n,this.latestValues),n}removeTransform(t){var e;const n=(0,I.dO)();Et(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];if(!i.instance)continue;if(!(0,$t.ud)(i.latestValues))continue;(0,$t.Lj)(i.latestValues)&&i.updateSnapshot();const o=(0,I.dO)();Et(o,i.measurePageBox()),Bt(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layoutBox,o)}return(0,$t.ud)(this.latestValues)&&Bt(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var t;const e=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:n,layoutId:i}=this.options;if(this.layout&&(n||i)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget=(0,I.dO)(),this.relativeTargetOrigin=(0,I.dO)(),C(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Et(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var o,s,r;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target=(0,I.dO)(),this.targetWithTransforms=(0,I.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(o=this.target,s=this.relativeTarget,r=this.relativeParent.target,E(o.x,s.x,r.x),E(o.y,s.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Et(this.target,this.layout.layoutBox),(0,St.o2)(this.target,this.targetDelta)):Et(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget=(0,I.dO)(),this.relativeTargetOrigin=(0,I.dO)(),C(this.relativeTargetOrigin,this.target,t.target),Et(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!(0,$t.Lj)(this.parent.latestValues)&&!(0,$t.D_)(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{isProjectionDirty:e,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;const i=this.getLead(),o=Boolean(this.resumingFrom)||this!==i;let s=!0;if(e&&(s=!1),o&&n&&(s=!1),s)return;const{layout:r,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!a)return;Et(this.layoutCorrected,this.layout.layoutBox),(0,St.YY)(this.layoutCorrected,this.treeScale,this.path,o);const{target:l}=i;if(!l)return;this.projectionDelta||(this.projectionDelta=(0,I.wc)(),this.projectionDeltaWithTransform=(0,I.wc)());const u=this.treeScale.x,c=this.treeScale.y,h=this.projectionTransform;A(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Ut(this.projectionDelta,this.treeScale),this.projectionTransform===h&&this.treeScale.x===u&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,n,i;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(i=this.getStack())||void 0===i||i.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var n,i;const o=this.snapshot,s=(null==o?void 0:o.latestValues)||{},r={...this.latestValues},a=(0,I.wc)();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;const l=(0,I.dO)(),u=(null==o?void 0:o.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),c=((null===(i=this.getStack())||void 0===i?void 0:i.members.length)||0)<=1,h=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(le));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const i=e/1e3;var o,d,p,m;re(a.x,t.x,i),re(a.y,t.y,i),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(C(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),o=this.relativeTarget,d=this.relativeTargetOrigin,p=l,m=i,ae(o.x,d.x,p.x,m),ae(o.y,d.y,p.y,m)),u&&(this.animationValues=r,function(t,e,n,i,o,s){var r,a,l,u;o?(t.opacity=(0,P.C)(0,null!==(r=n.opacity)&&void 0!==r?r:1,wt(i)),t.opacityExit=(0,P.C)(null!==(a=e.opacity)&&void 0!==a?a:1,0,Tt(i))):s&&(t.opacity=(0,P.C)(null!==(l=e.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,i));for(let o=0;o<yt;o++){const s=`border${gt[o]}Radius`;let r=Pt(e,s),a=Pt(n,s);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||bt(r)===bt(a)?(t[s]=Math.max((0,P.C)(xt(r),xt(a),i),0),(W.aQ.test(a)||W.aQ.test(r))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,P.C)(e.rotate||0,n.rotate||0,i))}(r,s,this.latestValues,i,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(r.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=r.ZP.update((()=>{et.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const i=(0,pt.i)(t)?t:(0,dt.B)(t);return(0,N.b8)("",i,e,n),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}(0,1e3,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:o}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&de(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,I.dO)();const e=w(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=w(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}Et(e,n),(0,St.D2)(e,o),A(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){var n,i,o;this.sharedNodes.has(t)||this.sharedNodes.set(t,new It);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(i=e.options.initialPromotionConfig)||void 0===i?void 0:i.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(i,e)})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const i={};for(let e=0;e<Ht.length;e++){const o="rotate"+Ht[e];n[o]&&(i[o]=n[o],t.setStaticValue(o,0))}null==t||t.render();for(const e in i)t.setStaticValue(e,i[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,n,i;const o={};if(!this.instance||this.isSVG)return o;if(!this.isVisible)return{visibility:"hidden"};o.visibility="";const s=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=Wt(t.pointerEvents)||"",o.transform=s?s(this.latestValues,""):"none",o;const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Wt(t.pointerEvents)||""),this.hasProjected&&!(0,$t.ud)(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const a=r.animationValues||r.latestValues;this.applyTransformsToTarget(),o.transform=Ut(this.projectionDeltaWithTransform,this.treeScale,a),s&&(o.transform=s(a,o.transform));const{x:l,y:u}=this.projectionDelta;o.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,r.animationValues?o.opacity=r===this?null!==(i=null!==(n=a.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:o.opacity=r===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const t in lt.P){if(void 0===a[t])continue;const{correct:e,applyTo:n}=lt.P[t],i=e(a[t],r);if(n){const t=n.length;for(let e=0;e<t;e++)o[n[e]]=i}else o[t]=i}return this.options.layoutId&&(o.pointerEvents=r===this?Wt(t.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(_t),this.root.sharedNodes.clear()}}}function Gt(t){t.updateLayout()}function Kt(t){var e,n,i;const o=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&o&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:i}=t.options,s=o.source!==t.layout.source;"size"===i?U((t=>{const n=s?o.measuredBox[t]:o.layoutBox[t],i=w(n);n.min=e[t].min,n.max=n.min+i})):de(i,o.layoutBox,e)&&U((t=>{const n=s?o.measuredBox[t]:o.layoutBox[t],i=w(e[t]);n.max=n.min+i}));const r=(0,I.wc)();A(r,e,o.layoutBox);const a=(0,I.wc)();s?A(a,t.applyTransform(n,!0),o.measuredBox):A(a,e,o.layoutBox);const l=!Lt(r);let u=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:t,layout:i}=n;if(t&&i){const n=(0,I.dO)();C(n,o.layoutBox,t.layoutBox);const s=(0,I.dO)();C(s,e,i.layoutBox),jt(n,s)||(u=!0)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:o,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else t.isLead()&&(null===(i=(n=t.options).onExitComplete)||void 0===i||i.call(n));t.options.transition=void 0}function Jt(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function Qt(t){t.clearSnapshot()}function _t(t){t.clearMeasurements()}function te(t){const{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ee(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function ne(t){t.resolveTargetDelta()}function ie(t){t.calcProjection()}function oe(t){t.resetRotation()}function se(t){t.removeLeadSnapshot()}function re(t,e,n){t.translate=(0,P.C)(e.translate,0,n),t.scale=(0,P.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ae(t,e,n,i){t.min=(0,P.C)(e.min,n.min,i),t.max=(0,P.C)(e.max,n.max,i)}function le(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const ue={duration:.45,ease:[.4,0,.1,1]};function ce(t,e){let n=t.root;for(let e=t.path.length-1;e>=0;e--)if(Boolean(t.path[e].instance)){n=t.path[e];break}const i=(n&&n!==t.root?n.instance:document).querySelector(`[data-projection-id="${e}"]`);i&&t.mount(i,!0)}function he(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function de(t,e,n){return"position"===t||"preserve-aspect"===t&&!T(Ot(e),Ot(n),.2)}const pe=Xt({attachResizeListener:(t,e)=>(0,z.E)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),me={current:void 0},fe=Xt({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!me.current){const t=new pe(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),me.current=t}return me.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)});n(6523).H})()})();
|
package/dist/size-webpack-m.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var t={4317:t=>{var e=new Error("Cannot find module ''");throw e.code="MODULE_NOT_FOUND",e}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.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),(()=>{const t=void 0;var e=n.n(t);const r=(0,t.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),o=(0,t.createContext)({});const a=(0,t.createContext)(null),s="undefined"!=typeof document,i=s?t.useLayoutEffect:t.useEffect,c=(0,t.createContext)({strict:!1});function u(e,n,s,u){const l=(0,t.useContext)(o).visualElement,f=(0,t.useContext)(c),d=(0,t.useContext)(a),m=(0,t.useContext)(r).reducedMotion,p=(0,t.useRef)();u=u||f.renderer,!p.current&&u&&(p.current=u(e,{visualState:n,parent:l,props:s,presenceId:d?d.id:void 0,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:m}));const g=p.current;return i((()=>{g&&g.render()})),(0,t.useEffect)((()=>{g&&g.animationState&&g.animationState.animateChanges()})),i((()=>()=>g&&g.notify("Unmount")),[]),g}function l(e,n,r){return(0,t.useCallback)((t=>{var o;t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):"object"==typeof(o=r)&&Object.prototype.hasOwnProperty.call(o,"current")&&(r.current=t))}),[n])}function f(t){return"string"==typeof t||Array.isArray(t)}function d(t){return"object"==typeof t&&"function"==typeof t.start}const m=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function p(t){return d(t.animate)||m.some((e=>f(t[e])))}function g(e){const{initial:n,animate:r}=function(t,e){if(p(t)){const{initial:e,animate:n}=t;return{initial:!1===e||f(e)?e:void 0,animate:f(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,(0,t.useContext)(o));return(0,t.useMemo)((()=>({initial:n,animate:r})),[y(n),y(r)])}function y(t){return Array.isArray(t)?t.join(" "):t}const h=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),v={measureLayout:h(["layout","layoutId","drag"]),animation:h(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:h(["exit"]),drag:h(["drag","dragControls"]),focus:h(["whileFocus"]),hover:h(["whileHover","onHoverStart","onHoverEnd"]),tap:h(["whileTap","onTap","onTapStart","onTapCancel"]),pan:h(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:h(["whileInView","onViewportEnter","onViewportLeave"])};function w(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}const x=!1;let b=1;const C=(0,t.createContext)({});class S extends e().Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:e}=this.props;return t&&t.setProps(e),null}componentDidUpdate(){}render(){return this.props.children}}const O=(0,t.createContext)({}),E=Symbol.for("motionComponentSymbol");function T({preloadedFeatures:e,createVisualElement:n,projectionNodeConstructor:a,useRender:i,useVisualState:f,Component:d}){e&&function(t){for(const e in t)"projectionNodeConstructor"===e?v.projectionNodeConstructor=t[e]:v[e].Component=t[e]}(e);const m=(0,t.forwardRef)((function(m,p){const y={...(0,t.useContext)(r),...m,layoutId:V(m)},{isStatic:h}=y;let C=null;const E=g(m),T=h?void 0:w((()=>{if(x)return b++})),P=f(m,h);if(!h&&s){E.visualElement=u(d,P,y,n);const r=(0,t.useContext)(c).strict,o=(0,t.useContext)(O);E.visualElement&&(C=E.visualElement.loadFeatures(y,r,e,T,a||v.projectionNodeConstructor,o))}return t.createElement(S,{visualElement:E.visualElement,props:y},C,t.createElement(o.Provider,{value:E},i(d,m,T,l(P,E.visualElement,p),P,h,E.visualElement)))}));return m[E]=d,m}function V({layoutId:e}){const n=(0,t.useContext)(C).id;return n&&void 0!==e?n+"-"+e:e}const P=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","text","tspan","use","view"];function k(t){return"string"==typeof t&&!t.includes("-")&&!!(P.indexOf(t)>-1||/[A-Z]/.test(t))}const j={};const L=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],M=new Set(L);function A(t,{layout:e,layoutId:n}){return M.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!j[t]||"opacity"===t)}const R=t=>!!(null==t?void 0:t.getVelocity),D={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},B=(t,e)=>L.indexOf(t)-L.indexOf(e);function W(t){return t.startsWith("--")}const X=(t,e)=>e&&"number"==typeof t?e.transform(t):t;const Y=t=>({test:e=>function(t){return"string"==typeof t}(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),F=Y("deg"),H=Y("%"),I=Y("px"),$=(Y("vh"),Y("vw"),Object.assign(Object.assign({},H),{parse:t=>H.parse(t)/100,transform:t=>H.transform(100*t)})),Z={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},U=Object.assign(Object.assign({},Z),{transform:(N=0,z=1,t=>Math.max(Math.min(t,z),N))});var N,z;const K=Object.assign(Object.assign({},Z),{default:1}),_={...Z,transform:Math.round},q={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,radius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,size:I,top:I,right:I,bottom:I,left:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,rotate:F,rotateX:F,rotateY:F,rotateZ:F,scale:K,scaleX:K,scaleY:K,scaleZ:K,skew:F,skewX:F,skewY:F,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:U,originX:$,originY:$,originZ:I,zIndex:_,fillOpacity:U,strokeOpacity:U,numOctaves:_};function G(t,e,n,r){const{style:o,vars:a,transform:s,transformKeys:i,transformOrigin:c}=t;i.length=0;let u=!1,l=!1,f=!0;for(const t in e){const n=e[t];if(W(t)){a[t]=n;continue}const r=q[t],d=X(n,r);if(M.has(t)){if(u=!0,s[t]=d,i.push(t),!f)continue;n!==(r.default||0)&&(f=!1)}else t.startsWith("origin")?(l=!0,c[t]=d):o[t]=d}if(e.transform||(u||r?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,a){let s="";e.sort(B);for(const n of e)s+=`${D[n]||n}(${t[n]}) `;return n&&!t.z&&(s+="translateZ(0)"),s=s.trim(),a?s=a(t,o?"":s):r&&o&&(s="none"),s}(t,n,f,r):o.transform&&(o.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:n=0}=c;o.transformOrigin=`${t} ${e} ${n}`}}const J=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function Q(t,e,n){for(const r in e)R(e[r])||A(r,n)||(t[r]=e[r])}function tt(e,n,r){const o={};return Q(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return(0,t.useMemo)((()=>{const t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return G(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)}),[n])}(e,n,r)),e.transformValues?e.transformValues(o):o}function et(t,e,n){const r={},o=tt(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),r.style=o,r}const nt=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function rt(t){return nt.has(t)}let ot=t=>!rt(t);try{(at=n(4317).default)&&(ot=t=>t.startsWith("on")?!rt(t):at(t))}catch(t){}var at;function st(t,e,n){return"string"==typeof t?t:I.transform(e+n*t)}const it={offset:"stroke-dashoffset",array:"stroke-dasharray"},ct={offset:"strokeDashoffset",array:"strokeDasharray"};function ut(t,{attrX:e,attrY:n,originX:r,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:i=0,...c},u,l){G(t,c,u,l),t.attrs=t.style,t.style={};const{attrs:f,style:d,dimensions:m}=t;f.transform&&(m&&(d.transform=f.transform),delete f.transform),m&&(void 0!==r||void 0!==o||d.transform)&&(d.transformOrigin=function(t,e,n){return`${st(e,t.x,t.width)} ${st(n,t.y,t.height)}`}(m,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(f.x=e),void 0!==n&&(f.y=n),void 0!==a&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const a=o?it:ct;t[a.offset]=I.transform(-r);const s=I.transform(e),i=I.transform(n);t[a.array]=`${s} ${i}`}(f,a,s,i,!1)}const lt=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}});function ft(e,n){const r=(0,t.useMemo)((()=>{const t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}};return ut(t,n,{enableHardwareAcceleration:!1},e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};Q(t,e.style,e),r.style={...t,...r.style}}return r}function dt(e=!1){return(n,r,o,a,{latestValues:s},i)=>{const c=(k(n)?ft:et)(r,s,i),u=function(t,e,n){const r={};for(const o in t)(ot(o)||!0===n&&rt(o)||!e&&!rt(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(r,"string"==typeof n,e),l={...u,...c,ref:a};return o&&(l["data-projection-id"]=o),(0,t.createElement)(n,l)}}const mt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function pt(t,e,n,r){!function(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])}(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(mt.has(n)?n:n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.attrs[n])}function gt(t){const{style:e}=t,n={};for(const r in e)(R(e[r])||A(r,t))&&(n[r]=e[r]);return n}function yt(t){const e=R(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const ht=e=>(n,r)=>{const s=(0,t.useContext)(o),i=(0,t.useContext)(a),c=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,o,a){const s={latestValues:vt(r,o,a,t),renderState:e()};return n&&(s.mount=t=>n(r,t,s)),s}(e,n,s,i);return r?c():w(c)};function vt(t,e,n,r){const o={},a=r(t);for(const t in a)o[t]=yt(a[t]);let{initial:s,animate:i}=t;const c=p(t),u=function(t){return Boolean(p(t)||t.variants)}(t);e&&u&&!c&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===i&&(i=e.animate));let l=!!n&&!1===n.initial;l=l||!1===s;const f=l?i:s;if(f&&"boolean"!=typeof f&&!d(f)){(Array.isArray(f)?f:[f]).forEach((e=>{const n=function(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}(t,e);if(!n)return;const{transitionEnd:r,transition:a,...s}=n;for(const t in s){let e=s[t];if(Array.isArray(e)){e=e[l?e.length-1:0]}null!==e&&(o[t]=e)}for(const t in r)o[t]=r[t]}))}return o}const wt={useVisualState:ht({scrapeMotionValuesFromProps:function(t){const e=gt(t);for(const n in t)if(R(t[n])){e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e},createRenderState:lt,onMount:(t,e,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}ut(n,r,{enableHardwareAcceleration:!1},t.transformTemplate),pt(e,n)}})},xt={useVisualState:ht({scrapeMotionValuesFromProps:gt,createRenderState:J})};!function(t){function e(e,n={}){return T(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}((function(t,{forwardMotionProps:e=!1},n,r,o){return{...k(t)?wt:xt,preloadedFeatures:n,useRender:dt(e),createVisualElement:r,projectionNodeConstructor:o,Component:t}}))})()})();
|
|
1
|
+
(()=>{"use strict";var t={4317:t=>{var e=new Error("Cannot find module ''");throw e.code="MODULE_NOT_FOUND",e}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.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),(()=>{const t=void 0;var e=n.n(t);const r=(0,t.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),o=(0,t.createContext)({});const a=(0,t.createContext)(null),s="undefined"!=typeof document,i=s?t.useLayoutEffect:t.useEffect,c=(0,t.createContext)({strict:!1});function u(e,n,s,u){const l=(0,t.useContext)(o).visualElement,f=(0,t.useContext)(c),d=(0,t.useContext)(a),m=(0,t.useContext)(r).reducedMotion,p=(0,t.useRef)();u=u||f.renderer,!p.current&&u&&(p.current=u(e,{visualState:n,parent:l,props:s,presenceId:d?d.id:void 0,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:m}));const g=p.current;return i((()=>{g&&g.render()})),(0,t.useEffect)((()=>{g&&g.animationState&&g.animationState.animateChanges()})),i((()=>()=>g&&g.notify("Unmount")),[]),g}function l(e,n,r){return(0,t.useCallback)((t=>{var o;t&&e.mount&&e.mount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):"object"==typeof(o=r)&&Object.prototype.hasOwnProperty.call(o,"current")&&(r.current=t))}),[n])}function f(t){return"string"==typeof t||Array.isArray(t)}function d(t){return"object"==typeof t&&"function"==typeof t.start}const m=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function p(t){return d(t.animate)||m.some((e=>f(t[e])))}function g(e){const{initial:n,animate:r}=function(t,e){if(p(t)){const{initial:e,animate:n}=t;return{initial:!1===e||f(e)?e:void 0,animate:f(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,(0,t.useContext)(o));return(0,t.useMemo)((()=>({initial:n,animate:r})),[y(n),y(r)])}function y(t){return Array.isArray(t)?t.join(" "):t}const h=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),v={measureLayout:h(["layout","layoutId","drag"]),animation:h(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:h(["exit"]),drag:h(["drag","dragControls"]),focus:h(["whileFocus"]),hover:h(["whileHover","onHoverStart","onHoverEnd"]),tap:h(["whileTap","onTap","onTapStart","onTapCancel"]),pan:h(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:h(["whileInView","onViewportEnter","onViewportLeave"])};function w(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}const x=!1;let b=1;const C=(0,t.createContext)({});class S extends e().Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:e}=this.props;return t&&t.setProps(e),null}componentDidUpdate(){}render(){return this.props.children}}const O=(0,t.createContext)({}),E=Symbol.for("motionComponentSymbol");function T({preloadedFeatures:e,createVisualElement:n,projectionNodeConstructor:a,useRender:i,useVisualState:f,Component:d}){e&&function(t){for(const e in t)"projectionNodeConstructor"===e?v.projectionNodeConstructor=t[e]:v[e].Component=t[e]}(e);const m=(0,t.forwardRef)((function(m,p){const y={...(0,t.useContext)(r),...m,layoutId:V(m)},{isStatic:h}=y;let C=null;const E=g(m),T=h?void 0:w((()=>{if(x)return b++})),P=f(m,h);if(!h&&s){E.visualElement=u(d,P,y,n);const r=(0,t.useContext)(c).strict,o=(0,t.useContext)(O);E.visualElement&&(C=E.visualElement.loadFeatures(y,r,e,T,a||v.projectionNodeConstructor,o))}return t.createElement(S,{visualElement:E.visualElement,props:y},C,t.createElement(o.Provider,{value:E},i(d,m,T,l(P,E.visualElement,p),P,h,E.visualElement)))}));return m[E]=d,m}function V({layoutId:e}){const n=(0,t.useContext)(C).id;return n&&void 0!==e?n+"-"+e:e}const P=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function k(t){return"string"==typeof t&&!t.includes("-")&&!!(P.indexOf(t)>-1||/[A-Z]/.test(t))}const L={};const j=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],A=new Set(j);function M(t,{layout:e,layoutId:n}){return A.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!L[t]||"opacity"===t)}const R=t=>!!(null==t?void 0:t.getVelocity),B={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},D=(t,e)=>j.indexOf(t)-j.indexOf(e);function W(t){return t.startsWith("--")}const X=(t,e)=>e&&"number"==typeof t?e.transform(t):t;const Y=t=>({test:e=>function(t){return"string"==typeof t}(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),F=Y("deg"),H=Y("%"),I=Y("px"),$=(Y("vh"),Y("vw"),Object.assign(Object.assign({},H),{parse:t=>H.parse(t)/100,transform:t=>H.transform(100*t)})),Z={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},N=Object.assign(Object.assign({},Z),{transform:(U=0,z=1,t=>Math.max(Math.min(t,z),U))});var U,z;const K=Object.assign(Object.assign({},Z),{default:1}),_={...Z,transform:Math.round},q={borderWidth:I,borderTopWidth:I,borderRightWidth:I,borderBottomWidth:I,borderLeftWidth:I,borderRadius:I,radius:I,borderTopLeftRadius:I,borderTopRightRadius:I,borderBottomRightRadius:I,borderBottomLeftRadius:I,width:I,maxWidth:I,height:I,maxHeight:I,size:I,top:I,right:I,bottom:I,left:I,padding:I,paddingTop:I,paddingRight:I,paddingBottom:I,paddingLeft:I,margin:I,marginTop:I,marginRight:I,marginBottom:I,marginLeft:I,rotate:F,rotateX:F,rotateY:F,rotateZ:F,scale:K,scaleX:K,scaleY:K,scaleZ:K,skew:F,skewX:F,skewY:F,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:N,originX:$,originY:$,originZ:I,zIndex:_,fillOpacity:N,strokeOpacity:N,numOctaves:_};function G(t,e,n,r){const{style:o,vars:a,transform:s,transformKeys:i,transformOrigin:c}=t;i.length=0;let u=!1,l=!1,f=!0;for(const t in e){const n=e[t];if(W(t)){a[t]=n;continue}const r=q[t],d=X(n,r);if(A.has(t)){if(u=!0,s[t]=d,i.push(t),!f)continue;n!==(r.default||0)&&(f=!1)}else t.startsWith("origin")?(l=!0,c[t]=d):o[t]=d}if(e.transform||(u||r?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,a){let s="";e.sort(D);for(const n of e)s+=`${B[n]||n}(${t[n]}) `;return n&&!t.z&&(s+="translateZ(0)"),s=s.trim(),a?s=a(t,o?"":s):r&&o&&(s="none"),s}(t,n,f,r):o.transform&&(o.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:n=0}=c;o.transformOrigin=`${t} ${e} ${n}`}}const J=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function Q(t,e,n){for(const r in e)R(e[r])||M(r,n)||(t[r]=e[r])}function tt(e,n,r){const o={};return Q(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return(0,t.useMemo)((()=>{const t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return G(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)}),[n])}(e,n,r)),e.transformValues?e.transformValues(o):o}function et(t,e,n){const r={},o=tt(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),r.style=o,r}const nt=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function rt(t){return nt.has(t)}let ot=t=>!rt(t);try{(at=n(4317).default)&&(ot=t=>t.startsWith("on")?!rt(t):at(t))}catch(t){}var at;function st(t,e,n){return"string"==typeof t?t:I.transform(e+n*t)}const it={offset:"stroke-dashoffset",array:"stroke-dasharray"},ct={offset:"strokeDashoffset",array:"strokeDasharray"};function ut(t,{attrX:e,attrY:n,originX:r,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:i=0,...c},u,l,f){if(G(t,c,u,f),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:m,dimensions:p}=t;d.transform&&(p&&(m.transform=d.transform),delete d.transform),p&&(void 0!==r||void 0!==o||m.transform)&&(m.transformOrigin=function(t,e,n){return`${st(e,t.x,t.width)} ${st(n,t.y,t.height)}`}(p,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==a&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const a=o?it:ct;t[a.offset]=I.transform(-r);const s=I.transform(e),i=I.transform(n);t[a.array]=`${s} ${i}`}(d,a,s,i,!1)}const lt=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}}),ft=t=>"string"==typeof t&&"svg"===t.toLowerCase();function dt(e,n,r,o){const a=(0,t.useMemo)((()=>{const t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}};return ut(t,n,{enableHardwareAcceleration:!1},ft(o),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};Q(t,e.style,e),a.style={...t,...a.style}}return a}function mt(e=!1){return(n,r,o,a,{latestValues:s},i)=>{const c=(k(n)?dt:et)(r,s,i,n),u=function(t,e,n){const r={};for(const o in t)(ot(o)||!0===n&&rt(o)||!e&&!rt(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(r,"string"==typeof n,e),l={...u,...c,ref:a};return o&&(l["data-projection-id"]=o),(0,t.createElement)(n,l)}}const pt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function gt(t,e,n,r){!function(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])}(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(pt.has(n)?n:n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.attrs[n])}function yt(t){const{style:e}=t,n={};for(const r in e)(R(e[r])||M(r,t))&&(n[r]=e[r]);return n}function ht(t){const e=R(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const vt=e=>(n,r)=>{const s=(0,t.useContext)(o),i=(0,t.useContext)(a),c=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,o,a){const s={latestValues:wt(r,o,a,t),renderState:e()};return n&&(s.mount=t=>n(r,t,s)),s}(e,n,s,i);return r?c():w(c)};function wt(t,e,n,r){const o={},a=r(t);for(const t in a)o[t]=ht(a[t]);let{initial:s,animate:i}=t;const c=p(t),u=function(t){return Boolean(p(t)||t.variants)}(t);e&&u&&!c&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===i&&(i=e.animate));let l=!!n&&!1===n.initial;l=l||!1===s;const f=l?i:s;if(f&&"boolean"!=typeof f&&!d(f)){(Array.isArray(f)?f:[f]).forEach((e=>{const n=function(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}(t,e);if(!n)return;const{transitionEnd:r,transition:a,...s}=n;for(const t in s){let e=s[t];if(Array.isArray(e)){e=e[l?e.length-1:0]}null!==e&&(o[t]=e)}for(const t in r)o[t]=r[t]}))}return o}const xt={useVisualState:vt({scrapeMotionValuesFromProps:function(t){const e=yt(t);for(const n in t)if(R(t[n])){e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e},createRenderState:lt,onMount:(t,e,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}ut(n,r,{enableHardwareAcceleration:!1},ft(e.tagName),t.transformTemplate),gt(e,n)}})},bt={useVisualState:vt({scrapeMotionValuesFromProps:yt,createRenderState:J})};!function(t){function e(e,n={}){return T(t(e,n))}if("undefined"==typeof Proxy)return e;const n=new Map;new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}((function(t,{forwardMotionProps:e=!1},n,r,o){return{...k(t)?xt:bt,preloadedFeatures:n,useRender:mt(e),createVisualElement:r,projectionNodeConstructor:o,Component:t}}))})()})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "framer-motion",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.7.0",
|
|
4
4
|
"description": "A simple and powerful React animation library",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/es/index.mjs",
|
|
@@ -72,32 +72,32 @@
|
|
|
72
72
|
"bundlesize": [
|
|
73
73
|
{
|
|
74
74
|
"path": "./dist/size-rollup-motion.js",
|
|
75
|
-
"maxSize": "
|
|
75
|
+
"maxSize": "29 kB"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"path": "./dist/size-rollup-m.js",
|
|
79
|
-
"maxSize": "4.
|
|
79
|
+
"maxSize": "4.77 kB"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
"path": "./dist/size-rollup-dom-animation.js",
|
|
83
|
-
"maxSize": "14.
|
|
83
|
+
"maxSize": "14.2kB"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"path": "./dist/size-rollup-dom-max.js",
|
|
87
|
-
"maxSize": "24.
|
|
87
|
+
"maxSize": "24.92 kB"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"path": "./dist/size-webpack-m.js",
|
|
91
|
-
"maxSize": "4.
|
|
91
|
+
"maxSize": "4.98 kB"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
"path": "./dist/size-webpack-dom-animation.js",
|
|
95
|
-
"maxSize": "18.
|
|
95
|
+
"maxSize": "18.45 kB"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"path": "./dist/size-webpack-dom-max.js",
|
|
99
|
-
"maxSize": "
|
|
99
|
+
"maxSize": "30.05kB"
|
|
100
100
|
}
|
|
101
101
|
],
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "660823d6ba373de282217d5222c6562ee2e5c650"
|
|
103
103
|
}
|