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