framer-motion 9.0.2 → 9.0.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.
Files changed (76) hide show
  1. package/dist/cjs/index.js +3344 -3260
  2. package/dist/es/animation/hooks/use-animated-state.mjs +3 -3
  3. package/dist/es/animation/index.mjs +3 -5
  4. package/dist/es/animation/legacy-popmotion/index.mjs +6 -2
  5. package/dist/es/animation/legacy-popmotion/inertia.mjs +4 -5
  6. package/dist/es/components/AnimatePresence/use-presence.mjs +0 -1
  7. package/dist/es/events/add-dom-event.mjs +6 -0
  8. package/dist/es/events/add-pointer-event.mjs +8 -0
  9. package/dist/es/events/use-dom-event.mjs +2 -5
  10. package/dist/es/gestures/drag/VisualElementDragControls.mjs +31 -30
  11. package/dist/es/gestures/drag/index.mjs +27 -0
  12. package/dist/es/gestures/focus.mjs +42 -0
  13. package/dist/es/gestures/hover.mjs +32 -0
  14. package/dist/es/gestures/{PanSession.mjs → pan/PanSession.mjs} +8 -8
  15. package/dist/es/gestures/pan/index.mjs +38 -0
  16. package/dist/es/gestures/press.mjs +109 -0
  17. package/dist/es/index.mjs +1 -1
  18. package/dist/es/motion/features/Feature.mjs +9 -0
  19. package/dist/es/motion/features/animation/exit.mjs +32 -0
  20. package/dist/es/motion/features/animation/index.mjs +38 -0
  21. package/dist/es/motion/features/animations.mjs +8 -37
  22. package/dist/es/motion/features/definitions.mjs +17 -23
  23. package/dist/es/motion/features/drag.mjs +12 -5
  24. package/dist/es/motion/features/gestures.mjs +16 -9
  25. package/dist/es/motion/features/layout/MeasureLayout.mjs +5 -5
  26. package/dist/es/motion/features/layout.mjs +11 -0
  27. package/dist/es/motion/features/load-features.mjs +4 -6
  28. package/dist/es/motion/features/viewport/index.mjs +96 -0
  29. package/dist/es/motion/index.mjs +12 -13
  30. package/dist/es/motion/utils/use-visual-element.mjs +8 -2
  31. package/dist/es/projection/geometry/delta-apply.mjs +9 -2
  32. package/dist/es/projection/geometry/delta-calc.mjs +2 -2
  33. package/dist/es/projection/geometry/delta-remove.mjs +2 -2
  34. package/dist/es/projection/node/DocumentProjectionNode.mjs +1 -1
  35. package/dist/es/projection/node/create-projection-node.mjs +65 -57
  36. package/dist/es/projection/node/group.mjs +5 -3
  37. package/dist/es/projection/shared/stack.mjs +7 -5
  38. package/dist/es/render/VisualElement.mjs +68 -47
  39. package/dist/es/render/dom/DOMVisualElement.mjs +1 -2
  40. package/dist/es/render/dom/features-max.mjs +2 -4
  41. package/dist/es/render/dom/motion.mjs +5 -6
  42. package/dist/es/render/dom/utils/create-config.mjs +1 -2
  43. package/dist/es/render/dom/value-types/animatable-none.mjs +3 -2
  44. package/dist/es/render/svg/SVGVisualElement.mjs +2 -2
  45. package/dist/es/render/utils/animation-state.mjs +6 -2
  46. package/dist/es/render/utils/animation.mjs +4 -4
  47. package/dist/es/render/utils/motion-values.mjs +1 -1
  48. package/dist/es/render/utils/setters.mjs +14 -9
  49. package/dist/es/value/index.mjs +1 -1
  50. package/dist/es/value/utils/is-motion-value.mjs +1 -1
  51. package/dist/framer-motion.dev.js +3341 -3257
  52. package/dist/framer-motion.js +1 -1
  53. package/dist/index.d.ts +85 -77
  54. package/dist/projection.dev.js +217 -177
  55. package/dist/size-rollup-dom-animation-assets.js +1 -1
  56. package/dist/size-rollup-dom-animation-m.js +1 -1
  57. package/dist/size-rollup-dom-animation.js +1 -1
  58. package/dist/size-rollup-dom-max-assets.js +1 -1
  59. package/dist/size-rollup-dom-max.js +1 -1
  60. package/dist/size-rollup-m.js +1 -1
  61. package/dist/size-rollup-motion.js +1 -1
  62. package/dist/size-webpack-dom-animation.js +1 -1
  63. package/dist/size-webpack-dom-max.js +1 -1
  64. package/dist/size-webpack-m.js +1 -1
  65. package/dist/three-entry.d.ts +74 -38
  66. package/package.json +8 -8
  67. package/dist/es/events/use-pointer-event.mjs +0 -11
  68. package/dist/es/gestures/drag/use-drag.mjs +0 -20
  69. package/dist/es/gestures/use-focus-gesture.mjs +0 -37
  70. package/dist/es/gestures/use-hover-gesture.mjs +0 -32
  71. package/dist/es/gestures/use-pan-gesture.mjs +0 -46
  72. package/dist/es/gestures/use-tap-gesture.mjs +0 -115
  73. package/dist/es/motion/features/layout/index.mjs +0 -7
  74. package/dist/es/motion/features/viewport/use-viewport.mjs +0 -97
  75. package/dist/es/motion/utils/VisualElementHandler.mjs +0 -19
  76. package/dist/es/motion/utils/make-renderless-component.mjs +0 -6
@@ -1 +1 @@
1
- (()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>i,k:()=>o});var i=function(){},o=function(){}},6405:(t,e,n)=>{n.d(e,{Z:()=>Pt});var i=n(9340),o=n(1818);const s=!1;var r=n(8313),a=n(5222),l=n(9273);const u=t=>t*t,c=(0,l.M)(u),h=(0,a.o)(u);var d=n(2890),p=n(9043),m=n(5430);function f(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}var v=n(4775),g=n(6077),y=n(5193);const x=(t,e,n)=>{const i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},b=[v.$,g.m,y.J];function w(t){const e=(n=t,b.find((t=>t.test(n))));var n;(0,i.k)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let o=e.parse(t);return e===y.J&&(o=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let o=0,s=0,r=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;o=f(a,i,t+1/3),s=f(a,i,t),r=f(a,i,t-1/3)}else o=s=r=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*r),alpha:i}}(o)),o}const P=(t,e)=>{const n=w(t),i=w(e),o={...n};return t=>(o.red=x(n.red,i.red,t),o.green=x(n.green,i.green,t),o.blue=x(n.blue,i.blue,t),o.alpha=(0,m.C)(n.alpha,i.alpha,t),g.m.transform(o))};var T=n(9820),V=n(26);function E(t,e){return"number"==typeof t?n=>(0,m.C)(t,e,n):d.$.test(t)?P(t,e):S(t,e)}const A=(t,e)=>{const n=[...t],i=n.length,o=t.map(((t,n)=>E(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=o[e](t);return n}},C=(t,e)=>{const n={...t,...e},i={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(i[o]=E(t[o],e[o]));return t=>{for(const e in i)n[e]=i[e](t);return n}},S=(t,e)=>{const n=V.P.createTransformer(e),o=(0,V.V)(t),s=(0,V.V)(e);return o.numColors===s.numColors&&o.numNumbers>=s.numNumbers?(0,T.z)(A(o.values,s.values),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}`)};var D=n(918);const R=(t,e)=>n=>(0,m.C)(t,e,n);function M(t,e,n){const i=[],o=n||("number"==typeof(s=t[0])?R:"string"==typeof s?d.$.test(s)?P:S:Array.isArray(s)?A:"object"==typeof s?C:R);var s;const r=t.length-1;for(let n=0;n<r;n++){let s=o(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;s=(0,T.z)(t,s)}i.push(s)}return i}function k(t,e,{clamp:n=!0,ease:o,mixer:s}={}){const r=t.length;(0,i.k)(r===e.length,"Both input and output ranges must be the same length"),(0,i.k)(!o||!Array.isArray(o)||o.length===r-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=M(e,o,s),l=a.length,u=e=>{let n=0;if(l>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const i=(0,D.Y)(t[n],t[n+1],e);return a[n](i)};return n?e=>u((0,p.u)(t[0],t[r-1],e)):u}var B=n(2634);const L=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function O(t,e,n,i){if(t===e&&n===i)return B.Z;const o=e=>function(t,e,n,i,o){let s,r,a=0;do{r=e+(n-e)/2,s=L(r,i,o)-t,s>0?n=r:e=r}while(Math.abs(s)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:L(o(t),e,i)}var F=n(7110);const j=O(.33,1.53,.69,.99),I=(0,l.M)(j),$=(0,a.o)(I),U={linear:B.Z,easeIn:u,easeInOut:h,easeOut:c,circIn:F.Z7,circInOut:F.X7,circOut:F.Bn,backIn:I,backInOut:$,backOut:j,anticipate:t=>(t*=2)<1?.5*I(t):.5*(2-Math.pow(2,-10*(t-1)))},N=t=>{if(Array.isArray(t)){(0,i.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,o,s]=t;return O(e,n,o,s)}return"string"==typeof t?((0,i.k)(void 0!==U[t],`Invalid easing type '${t}'`),U[t]):t};function Y({keyframes:t,ease:e=h,times:n,duration:i=300}){t=[...t];const o=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(N):N(e),s={done:!1,value:t[0]},r=function(t,e){return t.map((t=>t*e))}(n&&n.length===t.length?n:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(t),i);function a(){return k(r,t,{ease:Array.isArray(o)?o:(e=t,n=o,e.map((()=>n||h)).splice(0,e.length-1))});var e,n}let l=a();return{next:t=>(s.value=l(t),s.done=t>=i,s),flipTarget:()=>{t.reverse(),l=a()}}}const z=.001;function Z({duration:t=800,bounce:e=.25,velocity:n=0,mass:o=1}){let s,r;(0,i.K)(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=(0,p.u)(.05,1,a),t=(0,p.u)(.01,10,t/1e3),a<1?(s=e=>{const i=e*a,o=i*t,s=i-n,r=W(e,a),l=Math.exp(-o);return z-s/r*l},r=e=>{const i=e*a*t,o=i*n+n,r=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-i),u=W(Math.pow(e,2),a);return(-s(e)+z>0?-1:1)*((o-r)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,r=e=>Math.exp(-e*t)*(t*t*(n-e)));const l=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(s,r,5/t);if(t*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(l,2)*o;return{stiffness:e,damping:2*a*Math.sqrt(o*e),duration:t}}}function W(t,e){return t*Math.sqrt(1-e*e)}var H=n(432);const q=["duration","bounce"],X=["stiffness","damping","mass"];function _(t,e){return e.some((e=>void 0!==t[e]))}function G({keyframes:t,restDelta:e,restSpeed:n,...i}){let o=t[0],s=t[t.length-1];const r={done:!1,value:o},{stiffness:a,damping:l,mass:u,velocity:c,duration:h,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!_(t,X)&&_(t,q)){const n=Z(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(i);let p=K,m=c?-c/1e3:0;const f=l/(2*Math.sqrt(a*u));function v(){const t=s-o,i=Math.sqrt(a/u)/1e3,r=Math.abs(t)<5;if(n||(n=r?.01:2),e||(e=r?.005:.5),f<1){const e=W(i,f);p=n=>{const o=Math.exp(-f*i*n);return s-o*((m+f*i*t)/e*Math.sin(e*n)+t*Math.cos(e*n))}}else if(1===f)p=e=>s-Math.exp(-i*e)*(t+(m+i*t)*e);else{const e=i*Math.sqrt(f*f-1);p=n=>{const o=Math.exp(-f*i*n),r=Math.min(e*n,300);return s-o*((m+f*i*t)*Math.sinh(r)+e*t*Math.cosh(r))/e}}}return v(),{next:t=>{const i=p(t);if(d)r.done=t>=h;else{let o=m;if(0!==t)if(f<1){const e=Math.max(0,t-5);o=(0,H.R)(i-p(e),t-e)}else o=0;const a=Math.abs(o)<=n,l=Math.abs(s-i)<=e;r.done=a&&l}return r.value=r.done?s:i,r},flipTarget:()=>{m=-m,[o,s]=[s,o],v()}}}G.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const K=t=>0;const J={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:s}){const r=t[0],a={done:!1,value:r};let l=n*e;const u=r+l,c=void 0===s?u:s(u);return c!==u&&(l=c-r),{next:t=>{const e=-l*Math.exp(-t/i);return a.done=!(e>o||e<-o),a.value=a.done?c:c+e,a},flipTarget:()=>{}}},keyframes:Y,tween:Y,spring:G};function Q(t,e,n=0){return t-e-n}const tt=t=>{const e=({delta:e})=>t(e);return{start:()=>r.Z_.update(e,!0),stop:()=>r.qY.update(e)}};function et({duration:t,driver:e=tt,elapsed:n=0,repeat:i=0,repeatType:o="loop",repeatDelay:s=0,keyframes:r,autoplay:a=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:h,onUpdate:d,type:p="keyframes",...m}){var f,v;const g=n;let y,x,b=0,w=t,P=!1,T=!0;const V=J[r.length>2?"keyframes":p]||Y,E=r[0],A=r[r.length-1];let C={done:!1,value:E};(null===(v=(f=V).needsInterpolation)||void 0===v?void 0:v.call(f,E,A))&&(x=k([0,100],[E,A],{clamp:!1}),r=[0,100]);const S=V({...m,duration:t,keyframes:r});function D(){b++,"reverse"===o?(T=b%2==0,n=function(t,e=0,n=0,i=!0){return i?Q(e+-t,e,n):e-(t-e)+n}(n,w,s,T)):(n=Q(n,w,s),"mirror"===o&&S.flipTarget()),P=!1,h&&h()}function R(t){T||(t=-t),n+=t,P||(C=S.next(Math.max(0,n)),x&&(C.value=x(C.value)),P=T?C.done:n<=0),d&&d(C.value),P&&(0===b&&(w=void 0!==w?w:n),b<i?function(t,e,n,i){return i?t>=e+n:t<=-n}(n,w,s,T)&&D():(y&&y.stop(),c&&c()))}return a&&(l&&l(),y=e(R),y.start()),{stop:()=>{u&&u(),y&&y.stop()},set currentTime(t){n=g,R(t)},sample:e=>{n=g;const i=t&&"number"==typeof t?Math.max(.5*t,50):50;let o=0;for(R(0);o<=e;){const t=e-o;R(Math.min(t,i)),o+=i}return C}}}const nt=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,it={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nt([0,.65,.55,1]),circOut:nt([.55,0,1,.45]),backIn:nt([.31,.01,.66,-.59]),backOut:nt([.33,1.53,.69,.99])};function ot(t){if(t)return Array.isArray(t)?nt(t):it[t]}const st={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},rt={},at={};for(const t in st)at[t]=()=>(void 0===rt[t]&&(rt[t]=st[t]()),rt[t]);const lt=new Set(["opacity"]);function ut(t,e,{onUpdate:n,onComplete:i,...o}){if(!(at.waapi()&&lt.has(e)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping))return!1;let{keyframes:s,duration:a=300,elapsed:l=0,ease:u}=o;if("spring"===o.type||!(!(c=o.ease)||Array.isArray(c)||"string"==typeof c&&it[c])){if(o.repeat===1/0)return;const t=et({...o,elapsed:0});let e={done:!1,value:s[0]};const n=[];let i=0;for(;!e.done&&i<2e4;)e=t.sample(i),n.push(e.value),i+=10;s=n,a=i-10,u="linear"}var c;const h=function(t,e,n,{delay:i=0,duration:o,repeat:s=0,repeatType:r="loop",ease:a,times:l}={}){return t.animate({[e]:n,offset:l},{delay:i,duration:o,easing:ot(a),fill:"both",iterations:s+1,direction:"reverse"===r?"alternate":"normal"})}(t.owner.current,e,s,{...o,delay:-l,duration:a,ease:u});return h.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(s,o)),r.Z_.update((()=>h.cancel())),i&&i()},{get currentTime(){return h.currentTime||0},set currentTime(t){h.currentTime=t},stop:()=>{const{currentTime:e}=h;if(e){const n=et({...o,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}r.Z_.update((()=>h.cancel()))}}}var ct=n(2866);function ht({keyframes:t,elapsed:e,onUpdate:n,onComplete:i}){const o=()=>{n&&n(t[t.length-1]),i&&i()};return e?{stop:(0,ct.g)(o,-e)}:o()}var dt=n(5951);const pt=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),mt=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ft=()=>({type:"keyframes",ease:"linear",duration:.3}),vt={type:"keyframes",duration:.8},gt={x:pt,y:pt,z:pt,rotate:pt,rotateX:pt,rotateY:pt,rotateZ:pt,scaleX:mt,scaleY:mt,scale:mt,opacity:ft,backgroundColor:ft,color:ft,default:mt},yt=(t,{keyframes:e})=>{if(e.length>2)return vt;return(gt[t]||gt.default)(e[1])},xt=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!V.P.test(e)||e.startsWith("url(")));var bt=n(6914),wt=n(7101);const Pt=(t,e,n,r={})=>a=>{const l=(0,wt.ev)(r,t)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c-=(0,o.w)(u);const h=function(t,e,n,i){const o=xt(e,n);let s=void 0!==i.from?i.from:t.get();return"none"===s&&o&&"string"==typeof n?s=(0,bt.T)(e,n):(0,wt.Fr)(s)&&"string"==typeof n?s=(0,wt.GZ)(n):!Array.isArray(n)&&(0,wt.Fr)(n)&&"string"==typeof s&&(n=(0,wt.GZ)(s)),Array.isArray(n)?(null===n[0]&&(n[0]=s),n):[s,n]}(e,t,n,l),d=h[0],p=h[h.length-1],m=xt(t,d),f=xt(t,p);(0,i.K)(m===f,`You are trying to animate ${t} from "${d}" to "${p}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${p} via the \`style\` property.`);let v={keyframes:h,velocity:e.getVelocity(),...l,elapsed:c,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()}};if(!m||!f||s||!1===l.type)return ht(v);if("inertia"===l.type)return function({keyframes:t,velocity:e=0,min:n,max:i,power:o=.8,timeConstant:s=750,bounceStiffness:r=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:h,onComplete:d,onStop:p}){const m=t[0];let f;function v(t){return void 0!==n&&t<n||void 0!==i&&t>i}function g(t){return void 0===n?i:void 0===i||Math.abs(n-t)<Math.abs(i-t)?n:i}function y(t){null==f||f.stop(),f=et({keyframes:[0,1],velocity:0,...t,driver:c,onUpdate:e=>{var n;null==h||h(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:p})}function x(t){y({type:"spring",stiffness:r,damping:a,restDelta:l,...t})}if(v(m))x({velocity:e,keyframes:[m,g(m)]});else{let t=o*e+m;void 0!==u&&(t=u(t));const i=g(t),r=i===n?-1:1;let a,c;const h=t=>{a=c,c=t,e=(0,H.R)(t-a,dt.w.delta),(1===r&&t>i||-1===r&&t<i)&&x({keyframes:[t,i],velocity:e})};y({type:"decay",keyframes:[m,0],velocity:e,timeConstant:s,power:o,restDelta:l,modifyTarget:u,onUpdate:v(t)?h:void 0})}return{stop:()=>null==f?void 0:f.stop()}}(v);(0,wt.rw)(l)||(v={...v,...yt(t,v)}),v.duration&&(v.duration=(0,o.w)(v.duration)),v.repeatDelay&&(v.repeatDelay=(0,o.w)(v.repeatDelay));const g=e.owner,y=g&&g.current;if(g&&y instanceof HTMLElement&&!(null==g?void 0:g.getProps().onUpdate)){const n=ut(e,t,v);if(n)return n}return et(v)}},2819:(t,e,n)=>{n.d(e,{C:()=>i});const i=t=>Array.isArray(t)},7101:(t,e,n)=>{n.d(e,{Fr:()=>s,GZ:()=>r,ev:()=>a,rw:()=>o});var i=n(6914);function o({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function s(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function r(t){return"number"==typeof t?0:(0,i.T)("",t)}function a(t,e){return t[e]||t.default||t}},1930:(t,e,n)=>{n.d(e,{oO:()=>s});var i=n(8370),o=n(7866);function s(){const t=(0,i.useContext)(o.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,r=(0,i.useId)();(0,i.useEffect)((()=>s(r)),[]);return!e&&n?[!1,()=>n&&n(r)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>o});var i=n(8370);const o=(0,i.createContext)(null)},7110:(t,e,n)=>{n.d(e,{Bn:()=>r,X7:()=>a,Z7:()=>s});var i=n(5222),o=n(9273);const s=t=>1-Math.sin(Math.acos(t)),r=(0,o.M)(s),a=(0,i.o)(r)},5222:(t,e,n)=>{n.d(e,{o:()=>i});const i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},9273:(t,e,n)=>{n.d(e,{M:()=>i});const i=t=>e=>1-t(1-e)},409:(t,e,n)=>{n.d(e,{Q:()=>o,s:()=>s});var i=n(2426);function o(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const s=t=>e=>(0,i.D)(e)&&t(e,o(e))},1876:(t,e,n)=>{n.d(e,{E:()=>o,p:()=>s});var i=n(8370);function o(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function s(t,e,n,s){(0,i.useEffect)((()=>{const i=t.current;if(n&&i)return o(i,e,n,s)}),[t,e,n,s])}},7815:(t,e,n)=>{n.d(e,{a:()=>s,m:()=>r});var i=n(1876),o=n(409);function s(t,e,n,s){return(0,i.E)(t,e,(0,o.s)(n),s)}function r(t,e,n,s){return(0,i.p)(t,e,n&&(0,o.s)(n),s)}},2426:(t,e,n)=>{n.d(e,{D:()=>i});const i=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary},5951:(t,e,n)=>{n.d(e,{w:()=>i});const i={delta:0,timestamp:0}},8313:(t,e,n)=>{n.d(e,{qY:()=>p,iW:()=>m,Z_:()=>d});const i=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),s="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),i);var r=n(5951);let a=!0,l=!1,u=!1;const c=["read","update","preRender","render","postRender"],h=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],i=0,o=!1,s=!1;const r=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{const l=a&&o,u=l?e:n;return s&&r.add(t),-1===u.indexOf(t)&&(u.push(t),l&&o&&(i=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),r.delete(t)},process:l=>{if(o)s=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,i=e.length,i)for(let n=0;n<i;n++){const i=e[n];i(l),r.has(i)&&(a.schedule(i),t())}o=!1,s&&(s=!1,a.process(l))}}};return a}((()=>l=!0)),t)),{}),d=c.reduce(((t,e)=>{const n=h[e];return t[e]=(t,e=!1,i=!1)=>(l||g(),n.schedule(t,e,i)),t}),{}),p=c.reduce(((t,e)=>(t[e]=h[e].cancel,t)),{}),m=c.reduce(((t,e)=>(t[e]=()=>h[e].process(r.w),t)),{}),f=t=>h[t].process(r.w),v=t=>{l=!1,r.w.delta=a?i:Math.max(Math.min(t-r.w.timestamp,40),1),r.w.timestamp=t,u=!0,c.forEach(f),u=!1,l&&(a=!1,s(v))},g=()=>{l=!0,a=!0,u||s(v)}},5856:(t,e,n)=>{function i(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{fJ:()=>r,gD:()=>a});const o=i("dragHorizontal"),s=i("dragVertical");function r(t){let e=!1;if("y"===t)e=s();else if("x"===t)e=o();else{const t=o(),n=s();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function a(){const t=r(!0);return!t||(t(),!1)}},6295:(t,e,n)=>{n.d(e,{x:()=>i});const i=t=>e=>(t(e),null)},483:(t,e,n)=>{function i({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function o({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(e,{d7:()=>s,i8:()=>i,z2:()=>o})},1360:(t,e,n)=>{n.d(e,{D2:()=>f,YY:()=>u,am:()=>h,o2:()=>l,q2:()=>s});var i=n(5430),o=n(4918);function s(t,e,n){return n+e*(t-n)}function r(t,e,n,i,o){return void 0!==o&&(t=s(t,o,i)),s(t,n,i)+e}function a(t,e=0,n=1,i,o){t.min=r(t.min,e,n,i,o),t.max=r(t.max,e,n,i,o)}function l(t,{x:e,y:n}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,n.translate,n.scale,n.originPoint)}function u(t,e,n,i=!1){var s,r;const a=n.length;if(!a)return;let u,h;e.x=e.y=1;for(let c=0;c<a;c++)u=n[c],h=u.projectionDelta,"contents"!==(null===(r=null===(s=u.instance)||void 0===s?void 0:s.style)||void 0===r?void 0:r.display)&&(i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&f(t,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),h&&(e.x*=h.x.scale,e.y*=h.y.scale,l(t,h)),i&&(0,o.ud)(u.latestValues)&&f(t,u.latestValues));e.x=c(e.x),e.y=c(e.y)}function c(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,[n,o,s]){const r=void 0!==e[s]?e[s]:.5,l=(0,i.C)(t.min,t.max,r);a(t,e[n],e[o],l,e.scale)}const p=["x","scaleX","originX"],m=["y","scaleY","originY"];function f(t,e){d(t.x,e,p),d(t.y,e,m)}},1397:(t,e,n)=>{n.d(e,{dO:()=>o,wc:()=>i});const i=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),o=()=>({x:{min:0,max:0},y:{min:0,max:0}})},798:(t,e,n)=>{n.d(e,{B:()=>o,P:()=>i});const i={};function o(t){Object.assign(i,t)}},4918:(t,e,n)=>{function i(t){return void 0===t||1===t}function o({scale:t,scaleX:e,scaleY:n}){return!i(t)||!i(e)||!i(n)}function s(t){return o(t)||r(t)||t.z||t.rotate||t.rotateX||t.rotateY}function r(t){return a(t.x)||a(t.y)}function a(t){return t&&"0%"!==t}n.d(e,{D_:()=>r,Lj:()=>o,ud:()=>s})},8834:(t,e,n)=>{n.d(e,{J:()=>s,z:()=>r});var i=n(483),o=n(1360);function s(t,e){return(0,i.i8)((0,i.d7)(t.getBoundingClientRect(),e))}function r(t,e,n){const i=s(t,n),{scroll:r}=e;return r&&((0,o.am)(i.x,r.offset.x),(0,o.am)(i.y,r.offset.y)),i}},7322:(t,e,n)=>{n.d(e,{H:()=>ue});var i=n(8370);function o(t){return"object"==typeof t&&"function"==typeof t.start}var s=n(1930),r=n(7866),a=n(2819);function l(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const u=t=>/^0[^.\s]+$/.test(t);var c=n(7048),h=n(1421),d=n(26),p=n(6914),m=n(2890),f=n(8366),v=n(5713);const g=t=>e=>e.test(t),y=[f.Rx,v.px,v.aQ,v.RW,v.vw,v.vh,{test:t=>"auto"===t,parse:t=>t}],x=t=>y.find(g(t)),b=[...y,m.$,d.P],w=t=>b.find(g(t));function P(t,e,n,i={},o={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,o)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,i,o)),e}function T(t,e,n){const i=t.getProps();return P(i,e,void 0!==n?n:i.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function V(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,h.B)(n))}function E(t,e){const n=T(t,e);let{transitionEnd:i={},transition:o={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...i};for(const e in s){V(t,e,(0,c.Y)(s[e]))}}function A(t,e){if(!e)return;return(e[t]||e.default||e).from}const C=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],S=new Set(C);var D=n(7846);function R(t){return Boolean((0,D.i)(t)&&t.add)}const M=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),k="data-"+M("framerAppearId");var B=n(6405),L=n(8313);function O(t,e,n={}){var i;const o=T(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const r=o?()=>F(t,o,n):()=>Promise.resolve(),a=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?(i=0)=>{const{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,n=0,i=0,o=1,s){const r=[],a=(t.variantChildren.size-1)*i,l=1===o?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(j).forEach(((t,i)=>{t.notify("AnimationStart",e),r.push(O(t,e,{...s,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,o+i,r,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(e)}return Promise.all([r(),a(n.delay)])}function F(t,e,{delay:n=0,transitionOverride:i,type:o}={}){var s;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");i&&(r=i);const c=[],h=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const e in l){const i=t.getValue(e),o=l[e];if(!i||void 0===o||h&&I(h,e))continue;const s={delay:n,elapsed:0,...r};if(window.HandoffAppearAnimations&&!i.hasAnimated){const n=t.getProps()[k];n&&(s.elapsed=window.HandoffAppearAnimations(n,e,i,L.Z_))}let a=i.start((0,B.Z)(e,i,o,t.shouldReduceMotion&&S.has(e)?{type:!1}:s));R(u)&&(u.add(e),a=a.then((()=>u.remove(e)))),c.push(a)}return Promise.all(c).then((()=>{a&&E(t,a)}))}function j(t,e){return t.sortNodePosition(e)}function I({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function $(t){return"string"==typeof t||Array.isArray(t)}var U=n(7921);const N=[U.r.Animate,U.r.InView,U.r.Focus,U.r.Hover,U.r.Tap,U.r.Drag,U.r.Exit],Y=[...N].reverse(),z=N.length;function Z(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>O(t,e,n)));i=Promise.all(o)}else if("string"==typeof e)i=O(t,e,n);else{const o="function"==typeof e?T(t,e,n.custom):e;i=F(t,o,n)}return i.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function W(t){let e=Z(t);const n={[U.r.Animate]:q(!0),[U.r.InView]:q(),[U.r.Hover]:q(),[U.r.Tap]:q(),[U.r.Drag]:q(),[U.r.Focus]:q(),[U.r.Exit]:q()};let i=!0;const s=(e,n)=>{const i=T(t,n);if(i){const{transition:t,transitionEnd:n,...o}=i;e={...e,...o,...n}}return e};function r(r,u){const c=t.getProps(),h=t.getVariantContext(!0)||{},d=[],p=new Set;let m={},f=1/0;for(let e=0;e<z;e++){const v=Y[e],g=n[v],y=void 0!==c[v]?c[v]:h[v],x=$(y),b=v===u?g.isActive:null;!1===b&&(f=e);let w=y===h[v]&&y!==c[v]&&x;if(w&&i&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...m},!g.isActive&&null===b||!y&&!g.prevProp||o(y)||"boolean"==typeof y)continue;const P=H(g.prevProp,y);let T=P||v===u&&g.isActive&&!w&&x||e>f&&x;const V=Array.isArray(y)?y:[y];let E=V.reduce(s,{});!1===b&&(E={});const{prevResolvedValues:A={}}=g,C={...A,...E},S=t=>{T=!0,p.delete(t),g.needsAnimating[t]=!0};for(const t in C){const e=E[t],n=A[t];m.hasOwnProperty(t)||(e!==n?(0,a.C)(e)&&(0,a.C)(n)?!l(e,n)||P?S(t):g.protectedKeys[t]=!0:void 0!==e?S(t):p.add(t):void 0!==e&&p.has(t)?S(t):g.protectedKeys[t]=!0)}g.prevProp=y,g.prevResolvedValues=E,g.isActive&&(m={...m,...E}),i&&t.blockInitialAnimation&&(T=!1),T&&!w&&d.push(...V.map((t=>({animation:t,options:{type:v,...r}}))))}if(p.size){const e={};p.forEach((n=>{const i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)})),d.push({animation:e})}let v=Boolean(d.length);return i&&!1===c.initial&&!t.manuallyAnimateOnMount&&(v=!1),i=!1,v?e(d):Promise.resolve()}return{animateChanges:r,setActive:function(e,i,o){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const a=r(o,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function H(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!l(e,t)}function q(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var X=n(6295);const _={animation:(0,X.x)((({visualElement:t,animate:e})=>{t.animationState||(t.animationState=W(t)),o(e)&&(0,i.useEffect)((()=>e.subscribe(t)),[e])})),exit:(0,X.x)((t=>{const{custom:e,visualElement:n}=t,[o,a]=(0,s.oO)(),l=(0,i.useContext)(r.O);(0,i.useEffect)((()=>{n.isPresent=o;const t=n.animationState&&n.animationState.setActive(U.r.Exit,!o,{custom:l&&l.custom||e});t&&!o&&t.then(a)}),[o])}))};var G=n(1876);var K=n(7815),J=n(5856);function Q(t,e,n,i){return(o,s)=>{"touch"===o.type||(0,J.gD)()||(n&&t.animationState&&t.animationState.setActive(U.r.Hover,e),i&&i(o,s))}}const tt=(t,e)=>!!e&&(t===e||tt(t,e.parentElement));var et=n(9531),nt=n(9820),it=n(409);function ot(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,(0,it.Q)(n))}const st=new WeakMap,rt=new WeakMap,at=t=>{const e=st.get(t.target);e&&e(t)},lt=t=>{t.forEach(at)};function ut(t,e,n){const i=function({root:t,...e}){const n=t||document;rt.has(n)||rt.set(n,{});const i=rt.get(n),o=JSON.stringify(e);return i[o]||(i[o]=new IntersectionObserver(lt,{root:t,...e})),i[o]}(e);return st.set(t,n),i.observe(t),()=>{st.delete(t),i.unobserve(t)}}const ct={some:0,all:1};function ht(t,e,n,{root:o,margin:s,amount:r="some",once:a}){(0,i.useEffect)((()=>{if(!t||!n.current)return;const i={root:null==o?void 0:o.current,rootMargin:s,threshold:"number"==typeof r?r:ct[r]};return ut(n.current,i,(t=>{const{isIntersecting:i}=t;if(e.isInView===i)return;if(e.isInView=i,a&&!i&&e.hasEnteredView)return;i&&(e.hasEnteredView=!0),n.animationState&&n.animationState.setActive(U.r.InView,i);const o=n.getProps(),s=i?o.onViewportEnter:o.onViewportLeave;s&&s(t)}))}),[t,o,s,r])}function dt(t,e,n,{fallback:o=!0}){(0,i.useEffect)((()=>{t&&o&&requestAnimationFrame((()=>{e.hasEnteredView=!0;const{onViewportEnter:t}=n.getProps();t&&t(null),n.animationState&&n.animationState.setActive(U.r.InView,!0)}))}),[t])}const pt={inView:(0,X.x)((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:o,viewport:s={}}){const r=(0,i.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||o);s.once&&r.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?dt:ht)(a,r.current,t,s)})),tap:(0,X.x)((function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:o,visualElement:s,...r}){const a=t||e||n||o,l=(0,i.useRef)(!1),u=(0,i.useRef)(null),c={passive:!(e||t||n||r.onPointerDown)};function h(){u.current&&u.current(),u.current=null}function d(){h(),l.current=!1;return s.getProps().whileTap&&s.animationState&&s.animationState.setActive(U.r.Tap,!1),!(0,J.gD)()}function p(t,e){var n,i,o,r;d()&&(tt(s.current,t.target)?null===(r=(o=s.getProps()).onTap)||void 0===r||r.call(o,t,e):null===(i=(n=s.getProps()).onTapCancel)||void 0===i||i.call(n,t,e))}function m(t,e){var n,i;d()&&(null===(i=(n=s.getProps()).onTapCancel)||void 0===i||i.call(n,t,e))}function f(t,e){var n;const i=s.getProps();i.whileTap&&s.animationState&&s.animationState.setActive(U.r.Tap,!0),null===(n=i.onTapStart)||void 0===n||n.call(i,t,e)}const v=[Boolean(e),Boolean(t),Boolean(o),s],g=(0,i.useCallback)(((t,e)=>{h(),l.current||(l.current=!0,u.current=(0,nt.z)((0,K.a)(window,"pointerup",p,c),(0,K.a)(window,"pointercancel",m,c)),f(t,e))}),v);(0,K.m)(s,"pointerdown",a?g:void 0,c);const y=(0,i.useCallback)((()=>{const t=(0,G.E)(s.current,"keydown",(t=>{"Enter"!==t.key||l.current||(l.current=!0,u.current=(0,G.E)(s.current,"keyup",(()=>{"Enter"===t.key&&d()&&ot("up",s.getProps().onTap)}),c),ot("down",f))})),e=(0,G.E)(s.current,"blur",(()=>{t(),e(),l.current&&ot("cancel",m)}))}),v);(0,G.p)(s,"focus",a?y:void 0),(0,et.z)(h)})),focus:(0,X.x)((function({whileFocus:t,visualElement:e}){const n=(0,i.useRef)(!1),{animationState:o}=e,s=(0,i.useCallback)((()=>{let t=!1;try{t=e.current.matches(":focus-visible")}catch(e){t=!0}t&&o&&(o.setActive(U.r.Focus,!0),n.current=!0)}),[o]),r=(0,i.useCallback)((()=>{n.current&&o&&(o.setActive(U.r.Focus,!1),n.current=!1)}),[o]);(0,G.p)(e,"focus",t?s:void 0),(0,G.p)(e,"blur",t?r:void 0)})),hover:(0,X.x)((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:o}){(0,K.m)(o,"pointerenter",(0,i.useMemo)((()=>t||n?Q(o,!0,Boolean(n),t):void 0),[t,Boolean(n),o]),{passive:!t}),(0,K.m)(o,"pointerleave",(0,i.useMemo)((()=>e||n?Q(o,!1,Boolean(n),e):void 0),[t,Boolean(n),o]),{passive:!e})}))},mt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ft=(t,e)=>C.indexOf(t)-C.indexOf(e);function vt(t){return t.startsWith("--")}const gt=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var yt=n(4923);function xt(t,e,n,i){const{style:o,vars:s,transform:r,transformKeys:a,transformOrigin:l}=t;a.length=0;let u=!1,c=!1,h=!0;for(const t in e){const n=e[t];if(vt(t)){s[t]=n;continue}const i=yt.j[t],d=gt(n,i);if(S.has(t)){if(u=!0,r[t]=d,a.push(t),!h)continue;n!==(i.default||0)&&(h=!1)}else t.startsWith("origin")?(c=!0,l[t]=d):o[t]=d}if(e.transform||(u||i?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},o,s){let r="";e.sort(ft);for(const n of e)r+=`${mt[n]||n}(${t[n]}) `;return n&&!t.z&&(r+="translateZ(0)"),r=r.trim(),s?r=s(t,o?"":r):i&&o&&(r="none"),r}(t,n,h,i):o.transform&&(o.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;o.transformOrigin=`${t} ${e} ${n}`}}var bt=n(798);function wt(t,{layout:e,layoutId:n}){return S.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!bt.P[t]||"opacity"===t)}function Pt(t,e){const{style:n}=t,i={};for(const o in n)((0,D.i)(n[o])||e.style&&(0,D.i)(e.style[o])||wt(o,t))&&(i[o]=n[o]);return i}function Tt(t,{style:e,vars:n},i,o){Object.assign(t.style,e,o&&o.getProjectionStyles(i));for(const e in n)t.style.setProperty(e,n[e])}var Vt=n(7557),Et=n(8834),At=n(6978),Ct=n(9340);const St="undefined"!=typeof document,Dt=new Set(["width","height","top","left","right","bottom","x","y"]),Rt=t=>Dt.has(t),Mt=t=>t===f.Rx||t===v.px;var kt;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(kt||(kt={}));const Bt=(t,e)=>parseFloat(t.split(", ")[e]),Lt=(t,e)=>(n,{transform:i})=>{if("none"===i||!i)return 0;const o=i.match(/^matrix3d\((.+)\)$/);if(o)return Bt(o[1],e);{const e=i.match(/^matrix\((.+)\)$/);return e?Bt(e[1],t):0}},Ot=new Set(["x","y","z"]),Ft=C.filter((t=>!Ot.has(t)));const jt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Lt(4,13),y:Lt(5,14)},It=(t,e,n={},i={})=>{e={...e},i={...i};const o=Object.keys(e).filter(Rt);let s=[],r=!1;const l=[];if(o.forEach((o=>{const u=t.getValue(o);if(!t.hasValue(o))return;let c=n[o],h=x(c);const d=e[o];let p;if((0,a.C)(d)){const t=d.length,e=null===d[0]?1:0;c=d[e],h=x(c);for(let n=e;n<t;n++)p?(0,Ct.k)(x(d[n])===p,"All keyframes must be of the same type"):(p=x(d[n]),(0,Ct.k)(p===h||Mt(h)&&Mt(p),"Keyframes must be of the same dimension as the current value"))}else p=x(d);if(h!==p)if(Mt(h)&&Mt(p)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&p===v.px&&(e[o]=d.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?u.set(p.transform(c)):e[o]=h.transform(d):(r||(s=function(t){const e=[];return Ft.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),r=!0),l.push(o),i[o]=void 0!==i[o]?i[o]:e[o],u.jump(d))})),l.length){const n=l.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const i=e.measureViewportBox(),o=e.current,s=getComputedStyle(o),{display:r}=s,a={};"none"===r&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=jt[t](i,s)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const i=e.getValue(n);i&&i.jump(a[n]),t[n]=jt[n](l,s)})),t})(e,t,l);return s.length&&s.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),St&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:i}}return{target:e,transitionEnd:i}};function $t(t,e,n,i){return(t=>Object.keys(t).some(Rt))(e)?It(t,e,n,i):{target:e,transitionEnd:i}}const Ut=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),Nt={measureLayout:Ut(["layout","layoutId","drag"]),animation:Ut(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Ut(["exit"]),drag:Ut(["drag","dragControls"]),focus:Ut(["whileFocus"]),hover:Ut(["whileHover","onHoverStart","onHoverEnd"]),tap:Ut(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Ut(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Ut(["whileInView","onViewportEnter","onViewportLeave"])};var Yt=n(1397),zt=n(3491);const Zt={current:null},Wt={current:!1};var Ht=n(1065);const qt=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Xt(t){return o(t.animate)||qt.some((e=>$(t[e])))}const _t=Object.keys(Nt),Gt=_t.length,Kt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Jt=["initial",...N],Qt=Jt.length;class te extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>L.Z_.render(this.render,!1,!0);const{latestValues:s,renderState:r}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=r,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=Xt(e),this.isVariantNode=function(t){return Boolean(Xt(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...l}=this.scrapeMotionValuesFromProps(e,{});for(const t in l){const e=l[t];void 0!==s[t]&&(0,D.i)(e)&&(e.set(s[t],!1),R(a)&&a.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(e=this.parent)||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Wt.current||function(){if(Wt.current=!0,St)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Zt.current=t.matches;t.addListener(e),e()}else Zt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Zt.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===(t=this.projection)||void 0===t||t.unmount(),L.qY.update(this.notifyUpdate),L.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this);for(const t in this.events)this.events[t].clear();this.current=null}bindToMotionValue(t,e){const n=S.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&L.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{i(),o()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,o,s,r,a){const l=[];for(let t=0;t<Gt;t++){const n=_t[t],{isEnabled:o,Component:s}=Nt[n];o(e)&&s&&l.push((0,i.createElement)(s,{key:n,...e,visualElement:this}))}if(!this.projection&&r){this.projection=new r(s,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:i,dragConstraints:o,layoutScroll:l,layoutRoot:u}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(i)||o&&(0,zt.I)(o),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:a,layoutScroll:l,layoutRoot:u})}return l}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,Yt.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const e=this.props;this.props=t;for(let e=0;e<Kt.length;e++){const n=Kt[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){const{willChange:i}=e;for(const o in e){const s=e[o],r=n[o];if((0,D.i)(s))t.addValue(o,s),R(i)&&i.add(o);else if((0,D.i)(r))t.addValue(o,(0,h.B)(s,{owner:t})),R(i)&&i.remove(o);else if(r!==s)if(t.hasValue(o)){const e=t.getValue(o);!e.hasAnimated&&e.set(s)}else{const e=t.getStaticValue(o);t.addValue(o,(0,h.B)(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,e),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){var e;return null===(e=this.props.variants)||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const i={};for(let t=0;t<Qt;t++){const e=Jt[t],n=this.props[e];($(n)||!1===n)&&(i[e]=n)}return i}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){var e;this.values.delete(t),null===(e=this.valueSubscriptions.get(t))||void 0===e||e(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,h.B)(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,i="string"==typeof n||"object"==typeof n?null===(e=P(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==i)return i;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||(0,D.i)(o)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new Ht.L),this.events[t].add(e)}notify(t,...e){var n;null===(n=this.events[t])||void 0===n||n.notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:i},o){let s=function(t,e,n){var i;const o={};for(const s in t){const t=A(s,e);o[s]=void 0!==t?t:null===(i=n.getValue(s))||void 0===i?void 0:i.get()}return o}(n,t||{},this);if(i&&(e&&(e=i(e)),n&&(n=i(n)),s&&(s=i(s))),o){!function(t,e,n){var i,o;const s=Object.keys(e).filter((e=>!t.hasValue(e))),r=s.length;if(r)for(let a=0;a<r;a++){const r=s[a],l=e[r];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(i=n[r])&&void 0!==i?i:t.readValue(r))&&void 0!==o?o:e[r]),null!=c&&("string"==typeof c&&(/^\-?\d*\.?\d+$/.test(c)||u(c))?c=parseFloat(c):!w(c)&&d.P.test(l)&&(c=(0,p.T)(r,l)),t.addValue(r,(0,h.B)(c,{owner:t})),void 0===n[r]&&(n[r]=c),null!==c&&t.setBaseTarget(r,c))}}(this,n,s);const t=((t,e,n,i)=>{const o=(0,At.mH)(t,e,i);return $t(t,e=o.target,n,i=o.transitionEnd)})(this,n,s,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class ee extends te{readValueFromInstance(t,e){if(S.has(e)){const t=(0,Vt.A)(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),o=(vt(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,Et.J)(t,e)}build(t,e,n,i){xt(t,e,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,e){return Pt(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;(0,D.i)(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,i){Tt(t,e,n,i)}}function ne(t,e,n){return"string"==typeof t?t:v.px.transform(e+n*t)}const ie={offset:"stroke-dashoffset",array:"stroke-dasharray"},oe={offset:"strokeDashoffset",array:"strokeDasharray"};function se(t,{attrX:e,attrY:n,originX:i,originY:o,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...l},u,c,h){if(xt(t,l,u,h),c)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){return`${ne(e,t.x,t.width)} ${ne(n,t.y,t.height)}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==s&&function(t,e,n=1,i=0,o=!0){t.pathLength=1;const s=o?ie:oe;t[s.offset]=v.px.transform(-i);const r=v.px.transform(e),a=v.px.transform(n);t[s.array]=`${r} ${a}`}(d,s,r,a,!1)}const re=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class ae extends te{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return S.has(e)?(null===(n=(0,Vt.A)(e))||void 0===n?void 0:n.default)||0:(e=re.has(e)?e:M(e),t.getAttribute(e))}measureInstanceViewportBox(){return(0,Yt.dO)()}scrapeMotionValuesFromProps(t,e){return function(t,e){const n=Pt(t,e);for(const i in t)((0,D.i)(t[i])||(0,D.i)(e[i]))&&(n["x"===i||"y"===i?"attr"+i.toUpperCase():i]=t[i]);return n}(t,e)}build(t,e,n,i){se(t,e,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,n,i){!function(t,e,n,i){Tt(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(re.has(n)?n:M(n),e.attrs[n])}(t,e,0,i)}mount(t){var e;this.isSVGTag="string"==typeof(e=t.tagName)&&"svg"===e.toLowerCase(),super.mount(t)}}const le=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];const ue={renderer:(t,e)=>function(t){return"string"==typeof t&&!t.includes("-")&&!!(le.indexOf(t)>-1||/[A-Z]/.test(t))}(t)?new ae(e,{enableHardwareAcceleration:!1}):new ee(e,{enableHardwareAcceleration:!0}),..._,...pt}},6978:(t,e,n)=>{n.d(e,{Xp:()=>s,mH:()=>a});var i=n(9340);function o(t){return"string"==typeof t&&t.startsWith("var(--")}const s=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function r(t,e,n=1){(0,i.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[a,l]=function(t){const e=s.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}(t);if(!a)return;const u=window.getComputedStyle(e).getPropertyValue(a);return u?u.trim():o(l)?r(l,e,n+1):l}function a(t,{...e},n){const i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!o(e))return;const n=r(e,i);n&&t.set(n)}));for(const t in e){const s=e[t];if(!o(s))continue;const a=r(s,i);a&&(e[t]=a,n&&void 0===n[t]&&(n[t]=s))}return{target:e,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>r});var i=n(26),o=n(8673),s=n(7557);function r(t,e){var n;let r=(0,s.A)(t);return r!==o.h&&(r=i.P),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,e)}},7557:(t,e,n)=>{n.d(e,{A:()=>r});var i=n(2890),o=n(8673);const s={...n(4923).j,color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:o.h,WebkitFilter:o.h},r=t=>s[t]},4923:(t,e,n)=>{n.d(e,{j:()=>r});var i=n(8366),o=n(5713),s=n(6442);const r={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:s.e,fillOpacity:i.Fq,strokeOpacity:i.Fq,numOctaves:s.e}},6442:(t,e,n)=>{n.d(e,{e:()=>i});const i={...n(8366).Rx,transform:Math.round}},7921:(t,e,n)=>{var i;n.d(e,{r:()=>i}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(i||(i={}))},1180:(t,e,n)=>{function i(t,e){-1===t.indexOf(e)&&t.push(e)}function o(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>o,y4:()=>i})},9043:(t,e,n)=>{n.d(e,{u:()=>i});const i=(t,e,n)=>Math.min(Math.max(n,t),e)},2866:(t,e,n)=>{n.d(e,{g:()=>o});var i=n(8313);function o(t,e){const n=performance.now(),o=({timestamp:s})=>{const r=s-n;r>=e&&(i.qY.read(o),t(r-e))};return i.Z_.read(o,!0),()=>i.qY.read(o)}},3491:(t,e,n)=>{function i(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>i})},5430:(t,e,n)=>{n.d(e,{C:()=>i});const i=(t,e,n)=>-n*t+n*e+t},2634:(t,e,n)=>{n.d(e,{Z:()=>i});const i=t=>t},9820:(t,e,n)=>{n.d(e,{z:()=>o});const i=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(i)},918:(t,e,n)=>{n.d(e,{Y:()=>i});const i=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i}},7048:(t,e,n)=>{n.d(e,{Y:()=>s,p:()=>o});var i=n(2819);const o=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),s=t=>(0,i.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>o});var i=n(1180);class o{constructor(){this.subscriptions=[]}add(t){return(0,i.y4)(this.subscriptions,t),()=>(0,i.cl)(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let o=0;o<i;o++){const i=this.subscriptions[o];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},1818:(t,e,n)=>{n.d(e,{w:()=>i});const i=t=>1e3*t},9531:(t,e,n)=>{n.d(e,{z:()=>o});var i=n(8370);function o(t){return(0,i.useEffect)((()=>()=>t()),[])}},432:(t,e,n)=>{function i(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>i})},1421:(t,e,n)=>{n.d(e,{B:()=>l});var i=n(5951),o=n(8313),s=n(1065),r=n(432);class a{constructor(t,e={}){var n;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:s}=i.w;this.lastUpdated!==s&&(this.timeDelta=n,this.lastUpdated=s,o.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>o.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new s.L);const n=this.events[t].add(e);return"change"===t?()=>{n(),o.Z_.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,r.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e)||null,this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function l(t,e){return new a(t,e)}},4775:(t,e,n)=>{n.d(e,{$:()=>o});var i=n(6077);const o={test:(0,n(8810).i)("#"),parse:function(t){let e="",n="",i="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:i.m.transform}},5193:(t,e,n)=>{n.d(e,{J:()=>a});var i=n(8366),o=n(5713),s=n(6933),r=n(8810);const a={test:(0,r.i)("hsl","hue"),parse:(0,r.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,s.Nw)(e))+", "+o.aQ.transform((0,s.Nw)(n))+", "+(0,s.Nw)(i.Fq.transform(r))+")"}},2890:(t,e,n)=>{n.d(e,{$:()=>a});var i=n(6933),o=n(4775),s=n(5193),r=n(6077);const a={test:t=>r.m.test(t)||o.$.test(t)||s.J.test(t),parse:t=>r.m.test(t)?r.m.parse(t):s.J.test(t)?s.J.parse(t):o.$.parse(t),transform:t=>(0,i.HD)(t)?t:t.hasOwnProperty("red")?r.m.transform(t):s.J.transform(t)}},6077:(t,e,n)=>{n.d(e,{m:()=>l});var i=n(9043),o=n(8366),s=n(6933),r=n(8810);const a={...o.Rx,transform:t=>Math.round((t=>(0,i.u)(0,255,t))(t))},l={test:(0,r.i)("rgb","red"),parse:(0,r.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,s.Nw)(o.Fq.transform(i))+")"}},8810:(t,e,n)=>{n.d(e,{d:()=>s,i:()=>o});var i=n(6933);const o=(t,e)=>n=>Boolean((0,i.HD)(n)&&i.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),s=(t,e,n)=>o=>{if(!(0,i.HD)(o))return o;const[s,r,a,l]=o.match(i.KP);return{[t]:parseFloat(s),[e]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},8673:(t,e,n)=>{n.d(e,{h:()=>l});var i=n(26),o=n(6933);const s=new Set(["brightness","contrast","saturate","opacity"]);function r(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(o.KP)||[];if(!i)return t;const r=n.replace(i,"");let a=s.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+r+")"}const a=/([a-z-]*)\(.*?\)/g,l={...i.P,getAnimatableNone:t=>{const e=t.match(a);return e?e.map(r).join(" "):t}}},26:(t,e,n)=>{n.d(e,{P:()=>d,V:()=>l});var i=n(2890),o=n(8366),s=n(6933);const r="${c}",a="${n}";function l(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0,l=0;const u=t.match(s.dA);u&&(n=u.length,t=t.replace(s.dA,r),e.push(...u.map(i.$.parse)));const c=t.match(s.KP);return c&&(l=c.length,t=t.replace(s.KP,a),e.push(...c.map(o.Rx.parse))),{values:e,numColors:n,numNumbers:l,tokenised:t}}function u(t){return l(t).values}function c(t){const{values:e,numColors:n,tokenised:o}=l(t),u=e.length;return t=>{let e=o;for(let o=0;o<u;o++)e=e.replace(o<n?r:a,o<n?i.$.transform(t[o]):(0,s.Nw)(t[o]));return e}}const h=t=>"number"==typeof t?0:t;const d={test:function(t){var e,n;return isNaN(t)&&(0,s.HD)(t)&&((null===(e=t.match(s.KP))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(s.dA))||void 0===n?void 0:n.length)||0)>0},parse:u,createTransformer:c,getAnimatableNone:function(t){const e=u(t);return c(t)(e.map(h))}}},8366:(t,e,n)=>{n.d(e,{Fq:()=>s,Rx:()=>o,bA:()=>r});var i=n(9043);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...o,transform:t=>(0,i.u)(0,1,t)},r={...o,default:1}},5713:(t,e,n)=>{n.d(e,{$C:()=>c,RW:()=>s,aQ:()=>r,px:()=>a,vh:()=>l,vw:()=>u});var i=n(6933);const o=t=>({test:e=>(0,i.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=o("deg"),r=o("%"),a=o("px"),l=o("vh"),u=o("vw"),c={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},6933:(t,e,n)=>{n.d(e,{HD:()=>a,KP:()=>o,Nw:()=>i,dA:()=>s,mj:()=>r});const i=t=>Math.round(1e5*t)/1e5,o=/(-)?([\d]*\.?[\d])+/g,s=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,r=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a(t){return"string"==typeof t}},7846:(t,e,n)=>{n.d(e,{i:()=>i});const i=t=>!!(null==t?void 0:t.getVelocity)},8370:t=>{t.exports=void 0}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(8370),e=n.n(t),i=n(9340),o=n(409),s=n(8313),r=n(1818),a=n(7815),l=n(9820);const u=(t,e)=>Math.abs(t-e);var c=n(5951),h=n(2426);class d{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=f(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=u(t.x,e.x),i=u(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:o}=c.w;this.history.push({...i,timestamp:o});const{onStart:s,onMove:r}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=p(e,this.transformPagePoint),s.Z_.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:i}=this.handlers,o=f("pointercancel"===t.type?this.lastMoveEventInfo:p(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!(0,h.D)(t))return;this.handlers=e,this.transformPagePoint=n;const i=p((0,o.Q)(t),this.transformPagePoint),{point:r}=i,{timestamp:d}=c.w;this.history=[{...r,timestamp:d}];const{onSessionStart:m}=e;m&&m(t,f(i,this.history)),this.removeListeners=(0,l.z)((0,a.a)(window,"pointermove",this.handlePointerMove),(0,a.a)(window,"pointerup",this.handlePointerUp),(0,a.a)(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),s.qY.update(this.updatePoint)}}function p(t,e){return e?{point:e(t.point)}:t}function m(t,e){return{x:t.x-e.x,y:t.y-e.y}}function f({point:t},e){return{point:t,delta:m(t,g(e)),offset:m(t,v(e)),velocity:y(e,.1)}}function v(t){return t[0]}function g(t){return t[t.length-1]}function y(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=g(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>(0,r.w)(e)));)n--;if(!i)return{x:0,y:0};const s=(o.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};const a={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var x=n(5856),b=n(3491),w=n(918),P=n(5430);function T(t){return t.max-t.min}function V(t,e=0,n=.01){return Math.abs(t-e)<=n}function E(t,e,n,i=.5){t.origin=i,t.originPoint=(0,P.C)(e.min,e.max,t.origin),t.scale=T(n)/T(e),(V(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,P.C)(n.min,n.max,t.origin)-t.originPoint,(V(t.translate)||isNaN(t.translate))&&(t.translate=0)}function A(t,e,n,i){E(t.x,e.x,n.x,null==i?void 0:i.originX),E(t.y,e.y,n.y,null==i?void 0:i.originY)}function C(t,e,n){t.min=n.min+e.min,t.max=t.min+T(e)}function S(t,e,n){t.min=e.min-n.min,t.max=t.min+T(e)}function D(t,e,n){S(t.x,e.x,n.x),S(t.y,e.y,n.y)}var R=n(9043);function M(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?(0,P.C)(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?(0,P.C)(n,t,i.max):Math.min(t,n)),t}function k(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function B(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function L(t,e){let n=.5;const i=T(t),o=T(e);return o>i?n=(0,w.Y)(e.min,e.max-i,t.min):i>o&&(n=(0,w.Y)(t.min,t.max-o,e.min)),(0,R.u)(0,1,n)}const O=.35;function F(t,e,n){return{min:j(t,e),max:j(t,n)}}function j(t,e){return"number"==typeof t?t:t[e]||0}var I=n(7921),$=n(1397);function U(t){return[t("x"),t("y")]}var N=n(8834),Y=n(483),z=n(1876),Z=n(5713),W=n(6405);const H=new WeakMap;class q{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,$.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new d(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor((0,o.Q)(t,"page").point)},onStart:(t,e)=>{var n;const{drag:i,dragPropagation:o,onDragStart:s}=this.getProps();(!i||o||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,x.fJ)(i),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U((t=>{var e,n;let i=this.getAxisMotionValue(t).get()||0;if(Z.aQ.test(i)){const o=null===(n=null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===n?void 0:n.layoutBox[t];if(o){i=T(o)*(parseFloat(i)/100)}}this.originPoint[t]=i})),null==s||s(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(I.r.Drag,!0))},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:o,onDrag:s}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&(null==o||o(this.currentDirection)));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),null==s||s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:o}=this.getProps();null==o||o(t,e)}cancel(){var t,e;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(I.r.Drag,!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!X(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=M(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&(0,b.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:i,right:o}){return{x:k(t.x,n,o),y:k(t.y,e,i)}}(n.layoutBox,t),this.elastic=function(t=O){return!1===t?t=0:!0===t&&(t=O),{x:F(t,"left","right"),y:F(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&U((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!(0,b.I)(t))return!1;const n=t.current;(0,i.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=(0,N.z)(n,o.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:B(t.x,e.x),y:B(t.y,e.y)}}(o.layout.layoutBox,s);if(e){const t=e((0,Y.z2)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,Y.i8)(t))}return r}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=U((r=>{if(!X(r,e,this.currentDirection))return;let l=(null==a?void 0:a[r])||{};s&&(l={min:0,max:0});const u=i?200:1e6,c=i?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(r,h)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start((0,W.Z)(t,n,0,e))}stopAnimation(){U((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){var e;const n="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(t,(null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])||0)}snapToCursor(t){U((e=>{const{drag:n}=this.getProps();if(!X(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:s}=i.layout.layoutBox[e];o.set(t[e]-(0,P.C)(n,s,.5))}}))}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!(0,b.I)(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};U((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();o[t]=L({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),U((t=>{if(!X(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set((0,P.C)(i,s,o[t]))}))}addListeners(){var t;if(!this.visualElement.current)return;H.set(this.visualElement,this);const e=this.visualElement.current,n=(0,a.a)(e,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),i=()=>{const{dragConstraints:t}=this.getProps();(0,b.I)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),i();const r=(0,z.E)(window,"resize",(()=>this.scalePositionWithinConstraints())),l=o.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(U((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{r(),n(),s(),null==l||l()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=O,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:r}}}function X(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const _=(0,t.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var G=n(9531);var K=n(6295);const J={pan:(0,K.x)((function({onPan:e,onPanStart:n,onPanEnd:i,onPanSessionStart:o,visualElement:s}){const r=e||n||i||o,l=(0,t.useRef)(null),{transformPagePoint:u}=(0,t.useContext)(_),c={onSessionStart:o,onStart:n,onMove:e,onEnd:(t,e)=>{l.current=null,i&&i(t,e)}};(0,t.useEffect)((()=>{null!==l.current&&l.current.updateHandlers(c)})),(0,a.m)(s,"pointerdown",r&&function(t){l.current=new d(t,c,{transformPagePoint:u})}),(0,G.z)((()=>l.current&&l.current.end()))})),drag:(0,K.x)((function(e){const{dragControls:n,visualElement:i}=e,o=function(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}((()=>new q(i)));(0,t.useEffect)((()=>n&&n.subscribe(o)),[o,n]),(0,t.useEffect)((()=>o.addListeners()),[o])}))};var Q=n(1930);const tt=(0,t.createContext)({}),et=(0,t.createContext)({}),nt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function it(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ot={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Z.px.test(t))return t;t=parseFloat(t)}return`${it(t,e.target.x)}% ${it(t,e.target.y)}%`}};var st=n(6978),rt=n(26);const at="_$css",lt={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=t.includes("var("),s=[];o&&(t=t.replace(st.Xp,(t=>(s.push(t),at))));const r=rt.P.parse(t);if(r.length>5)return i;const a=rt.P.createTransformer(t),l="number"!=typeof r[0]?1:0,u=n.x.scale*e.x,c=n.y.scale*e.y;r[0+l]/=u,r[1+l]/=c;const h=(0,P.C)(u,c,.5);"number"==typeof r[2+l]&&(r[2+l]/=h),"number"==typeof r[3+l]&&(r[3+l]/=h);let d=a(r);if(o){let t=0;d=d.replace(at,(()=>{const e=s[t];return t++,e}))}return d}};var ut=n(798);class ct extends e().Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;(0,ut.B)(ht),o&&(e.group&&e.group.add(o),n&&n.register&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),nt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:o}=this.props,r=n.projection;return r?(r.isPresent=o,i||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?r.promote():r.relegate()||s.Z_.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:i}=t;i&&(i.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;null==t||t()}render(){return null}}const ht={borderRadius:{...ot,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ot,borderTopRightRadius:ot,borderBottomLeftRadius:ot,borderBottomRightRadius:ot,boxShadow:lt},dt={measureLayout:function(n){const[i,o]=(0,Q.oO)(),s=(0,t.useContext)(tt);return e().createElement(ct,{...n,layoutGroup:s,switchLayoutGroup:(0,t.useContext)(et),isPresent:i,safeToRemove:o})}};var pt=n(1421),mt=n(7846);var ft=n(1065),vt=n(7110),gt=n(2634);const yt=["TopLeft","TopRight","BottomLeft","BottomRight"],xt=yt.length,bt=t=>"string"==typeof t?parseFloat(t):t,wt=t=>"number"==typeof t||Z.px.test(t);function Pt(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Tt=Et(0,.5,vt.Bn),Vt=Et(.5,.95,gt.Z);function Et(t,e,n){return i=>i<t?0:i>e?1:n((0,w.Y)(t,e,i))}function At(t,e){t.min=e.min,t.max=e.max}function Ct(t,e){At(t.x,e.x),At(t.y,e.y)}var St=n(1360);function Dt(t,e,n,i,o){return t-=e,t=(0,St.q2)(t,1/n,i),void 0!==o&&(t=(0,St.q2)(t,1/o,i)),t}function Rt(t,e,[n,i,o],s,r){!function(t,e=0,n=1,i=.5,o,s=t,r=t){Z.aQ.test(e)&&(e=parseFloat(e),e=(0,P.C)(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=(0,P.C)(s.min,s.max,i);t===s&&(a-=e),t.min=Dt(t.min,e,n,a,o),t.max=Dt(t.max,e,n,a,o)}(t,e[n],e[i],e[o],e.scale,s,r)}const Mt=["x","scaleX","originX"],kt=["y","scaleY","originY"];function Bt(t,e,n,i){Rt(t.x,e,Mt,null==n?void 0:n.x,null==i?void 0:i.x),Rt(t.y,e,kt,null==n?void 0:n.y,null==i?void 0:i.y)}var Lt=n(7101);function Ot(t){return 0===t.translate&&1===t.scale}function Ft(t){return Ot(t.x)&&Ot(t.y)}function jt(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function It(t){return T(t.x)/T(t.y)}var $t=n(1180);class Ut{constructor(){this.members=[]}add(t){(0,$t.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,$t.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){var n;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;!1===o&&i.hide()}}exitAnimationComplete(){this.members.forEach((t=>{var e,n,i,o,s;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(s=null===(i=t.resumingFrom)||void 0===i?void 0:(o=i.options).onExitComplete)||void 0===s||s.call(o)}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Nt(t,e,n){let i="";const o=t.x.translate/e.x,s=t.y.translate/e.y;if((o||s)&&(i=`translate3d(${o}px, ${s}px, 0) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:o}=n;t&&(i+=`rotate(${t}deg) `),e&&(i+=`rotateX(${e}deg) `),o&&(i+=`rotateY(${o}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return 1===r&&1===a||(i+=`scale(${r}, ${a})`),i||"none"}var Yt=n(4918);const zt=(t,e)=>t.depth-e.depth;class Zt{constructor(){this.children=[],this.isDirty=!1}add(t){(0,$t.y4)(this.children,t),this.isDirty=!0}remove(t){(0,$t.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(zt),this.isDirty=!1,this.children.forEach(t)}}var Wt=n(7048);function Ht(t){const e=(0,mt.i)(t)?t.get():t;return(0,Wt.p)(e)?e.toValue():e}var qt=n(2866);const Xt=["","X","Y","Z"];let _t=0;function Gt({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(t,n={},i=(null==e?void 0:e())){this.id=_t++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(Qt),this.nodes.forEach(oe),this.nodes.forEach(se)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0,t&&this.root.registerPotentialNode(t,this);for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Zt)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ft.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);null==n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var i;if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:o,layout:s,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),null===(i=this.parent)||void 0===i||i.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(s||o)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=(0,qt.g)(i,250),nt.hasAnimatedSinceResize&&(nt.hasAnimatedSinceResize=!1,this.nodes.forEach(ie))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&r&&(o||s)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:i})=>{var o,s,a,l,u;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const c=null!==(s=null!==(o=this.options.transition)&&void 0!==o?o:r.getDefaultTransition())&&void 0!==s?s:he,{onLayoutAnimationStart:h,onLayoutAnimationComplete:d}=r.getProps(),p=!this.targetLayout||!jt(this.targetLayout,i)||n,m=!e&&n;if(this.options.layoutRoot||(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,Lt.ev)(c,"layout"),onPlay:h,onComplete:d};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||ie(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=i}))}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,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(re),this.animationId++)}getTransformTemplate(){var t;return null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate}willUpdate(t=!0){var e,n,i;if(this.root.isUpdateBlocked())return void(null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e));if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:o,layout:s}=this.options;(void 0!==o||s)&&(this.prevTransformTemplateValue=null===(i=this.getTransformTemplate())||void 0===i?void 0:i(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate"))}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ee);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(de),this.potentialNodes.clear()),this.nodes.forEach(ne),this.nodes.forEach(Kt),this.nodes.forEach(Jt),this.clearAllSnapshots(),s.iW.update(),s.iW.preRender(),s.iW.render())}clearAllSnapshots(){this.nodes.forEach(te),this.sharedNodes.forEach(ae)}scheduleUpdateProjection(){s.Z_.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){s.Z_.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var t;if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,$.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null===(t=this.options.visualElement)||void 0===t||t.notify("LayoutMeasure",this.layout.layoutBox,null==e?void 0:e.layoutBox)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){var t;if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Ft(this.projectionDelta),i=null===(t=this.getTransformTemplate())||void 0===t?void 0:t(this.latestValues,""),s=i!==this.prevTransformTemplateValue;e&&(n||(0,Yt.ud)(this.latestValues)||s)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),pe((i=n).x),pe(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return(0,$.dO)();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&((0,St.am)(e.x,n.offset.x),(0,St.am)(e.y,n.offset.y)),e}removeElementScroll(t){const e=(0,$.dO)();Ct(e,t);for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:o,options:s}=i;if(i!==this.root&&o&&s.layoutScroll){if(o.isRoot){Ct(e,t);const{scroll:n}=this.root;n&&((0,St.am)(e.x,-n.offset.x),(0,St.am)(e.y,-n.offset.y))}(0,St.am)(e.x,o.offset.x),(0,St.am)(e.y,o.offset.y)}}return e}applyTransform(t,e=!1){const n=(0,$.dO)();Ct(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(0,St.D2)(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),(0,Yt.ud)(i.latestValues)&&(0,St.D2)(n,i.latestValues)}return(0,Yt.ud)(this.latestValues)&&(0,St.D2)(n,this.latestValues),n}removeTransform(t){var e;const n=(0,$.dO)();Ct(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];if(!i.instance)continue;if(!(0,Yt.ud)(i.latestValues))continue;(0,Yt.Lj)(i.latestValues)&&i.updateSnapshot();const o=(0,$.dO)();Ct(o,i.measurePageBox()),Bt(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layoutBox,o)}return(0,Yt.ud)(this.latestValues)&&Bt(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var t;const e=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:n,layoutId:i}=this.options;if(this.layout&&(n||i)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget=(0,$.dO)(),this.relativeTargetOrigin=(0,$.dO)(),D(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Ct(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var o,s,r;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target=(0,$.dO)(),this.targetWithTransforms=(0,$.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(o=this.target,s=this.relativeTarget,r=this.relativeParent.target,C(o.x,s.x,r.x),C(o.y,s.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ct(this.target,this.layout.layoutBox),(0,St.o2)(this.target,this.targetDelta)):Ct(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget=(0,$.dO)(),this.relativeTargetOrigin=(0,$.dO)(),D(this.relativeTargetOrigin,this.target,t.target),Ct(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!(0,Yt.Lj)(this.parent.latestValues)&&!(0,Yt.D_)(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta||this.parent.options.layoutRoot)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{isProjectionDirty:e,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;const i=this.getLead(),o=Boolean(this.resumingFrom)||this!==i;let s=!0;if(e&&(s=!1),o&&n&&(s=!1),s)return;const{layout:r,layoutId:a}=this.options;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!a)return;Ct(this.layoutCorrected,this.layout.layoutBox),(0,St.YY)(this.layoutCorrected,this.treeScale,this.path,o);const{target:l}=i;if(!l)return;this.projectionDelta||(this.projectionDelta=(0,$.wc)(),this.projectionDeltaWithTransform=(0,$.wc)());const u=this.treeScale.x,c=this.treeScale.y,h=this.projectionTransform;A(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Nt(this.projectionDelta,this.treeScale),this.projectionTransform===h&&this.treeScale.x===u&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e,n,i;null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(i=this.getStack())||void 0===i||i.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){var n,i;const o=this.snapshot,s=(null==o?void 0:o.latestValues)||{},r={...this.latestValues},a=(0,$.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const l=(0,$.dO)(),u=(null==o?void 0:o.source)!==(null===(n=this.layout)||void 0===n?void 0:n.source),c=((null===(i=this.getStack())||void 0===i?void 0:i.members.length)||0)<=1,h=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(ce));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const i=e/1e3;var o,d,p,m;le(a.x,t.x,i),le(a.y,t.y,i),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(D(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),o=this.relativeTarget,d=this.relativeTargetOrigin,p=l,m=i,ue(o.x,d.x,p.x,m),ue(o.y,d.y,p.y,m)),u&&(this.animationValues=r,function(t,e,n,i,o,s){o?(t.opacity=(0,P.C)(0,void 0!==n.opacity?n.opacity:1,Tt(i)),t.opacityExit=(0,P.C)(void 0!==e.opacity?e.opacity:1,0,Vt(i))):s&&(t.opacity=(0,P.C)(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let o=0;o<xt;o++){const s=`border${yt[o]}Radius`;let r=Pt(e,s),a=Pt(n,s);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||wt(r)===wt(a)?(t[s]=Math.max((0,P.C)(bt(r),bt(a),i),0),(Z.aQ.test(a)||Z.aQ.test(r))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,P.C)(e.rotate||0,n.rotate||0,i))}(r,s,this.latestValues,i,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3: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.Z_.update((()=>{nt.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const i=(0,mt.i)(t)?t:(0,pt.B)(t);return i.start((0,W.Z)("",i,e,n)),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}(0,1e3,{...t,onUpdate:e=>{var n;this.mixTargetDelta(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:()=>{var e;null===(e=t.onComplete)||void 0===e||e.call(t),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){var t;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(t=this.getStack())||void 0===t||t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:o}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&me(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,$.dO)();const e=T(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=T(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}Ct(e,n),(0,St.D2)(e,o),A(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){var n,i,o;this.sharedNodes.has(t)||this.sharedNodes.set(t,new Ut);this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(i=e.options.initialPromotionConfig)||void 0===i?void 0:i.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(i,e)})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const i={};for(let e=0;e<Xt.length;e++){const o="rotate"+Xt[e];n[o]&&(i[o]=n[o],t.setStaticValue(o,0))}null==t||t.render();for(const e in i)t.setStaticValue(e,i[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,n;const i={};if(!this.instance||this.isSVG)return i;if(!this.isVisible)return{visibility:"hidden"};i.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=Ht(t.pointerEvents)||"",i.transform=o?o(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=Ht(t.pointerEvents)||""),this.hasProjected&&!(0,Yt.ud)(this.latestValues)&&(e.transform=o?o({},""):"none",this.hasProjected=!1),e}const r=s.animationValues||s.latestValues;this.applyTransformsToTarget(),i.transform=Nt(this.projectionDeltaWithTransform,this.treeScale,r),o&&(i.transform=o(r,i.transform));const{x:a,y:l}=this.projectionDelta;i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?i.opacity=s===this?null!==(n=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:i.opacity=s===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const t in ut.P){if(void 0===r[t])continue;const{correct:e,applyTo:n}=ut.P[t],o="none"===i.transform?r[t]:e(r[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?Ht(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(ee),this.root.sharedNodes.clear()}}}function Kt(t){t.updateLayout()}function Jt(t){var e,n,i;const o=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&o&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:i}=t.options,s=o.source!==t.layout.source;"size"===i?U((t=>{const n=s?o.measuredBox[t]:o.layoutBox[t],i=T(n);n.min=e[t].min,n.max=n.min+i})):me(i,o.layoutBox,e)&&U((t=>{const n=s?o.measuredBox[t]:o.layoutBox[t],i=T(e[t]);n.max=n.min+i}));const r=(0,$.wc)();A(r,e,o.layoutBox);const a=(0,$.wc)();s?A(a,t.applyTransform(n,!0),o.measuredBox):A(a,e,o.layoutBox);const l=!Ft(r);let u=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:i,layout:s}=n;if(i&&s){const r=(0,$.dO)();D(r,o.layoutBox,i.layoutBox);const a=(0,$.dO)();D(a,e,s.layoutBox),jt(r,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:o,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else t.isLead()&&(null===(i=(n=t.options).onExitComplete)||void 0===i||i.call(n));t.options.transition=void 0}function Qt(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function te(t){t.clearSnapshot()}function ee(t){t.clearMeasurements()}function ne(t){const{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ie(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function oe(t){t.resolveTargetDelta()}function se(t){t.calcProjection()}function re(t){t.resetRotation()}function ae(t){t.removeLeadSnapshot()}function le(t,e,n){t.translate=(0,P.C)(e.translate,0,n),t.scale=(0,P.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ue(t,e,n,i){t.min=(0,P.C)(e.min,n.min,i),t.max=(0,P.C)(e.max,n.max,i)}function ce(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const he={duration:.45,ease:[.4,0,.1,1]};function de(t,e){let n=t.root;for(let e=t.path.length-1;e>=0;e--)if(Boolean(t.path[e].instance)){n=t.path[e];break}const i=(n&&n!==t.root?n.instance:document).querySelector(`[data-projection-id="${e}"]`);i&&t.mount(i,!0)}function pe(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function me(t,e,n){return"position"===t||"preserve-aspect"===t&&!V(It(e),It(n),.2)}const fe=Gt({attachResizeListener:(t,e)=>(0,z.E)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ve={current:void 0},ge=Gt({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ve.current){const t=new fe(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),ve.current=t}return ve.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)});n(7322).H})()})();
1
+ (()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>s,k:()=>i});var s=function(){},i=function(){}},6405:(t,e,n)=>{n.d(e,{Z:()=>wt});var s=n(9340),i=n(1818);const o=!1;var r=n(8313),a=n(5222),l=n(9273);const c=t=>t*t,u=(0,l.M)(c),h=(0,a.o)(c);var d=n(2890),p=n(9043),m=n(5430);function f(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}var g=n(4775),v=n(6077),y=n(5193);const x=(t,e,n)=>{const s=t*t;return Math.sqrt(Math.max(0,n*(e*e-s)+s))},P=[g.$,v.m,y.J];function b(t){const e=(n=t,P.find((t=>t.test(n))));var n;(0,s.k)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`);let i=e.parse(t);return e===y.J&&(i=function({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,n/=100;let i=0,o=0,r=0;if(e/=100){const s=n<.5?n*(1+e):n+e-n*e,a=2*n-s;i=f(a,s,t+1/3),o=f(a,s,t),r=f(a,s,t-1/3)}else i=o=r=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*r),alpha:s}}(i)),i}const w=(t,e)=>{const n=b(t),s=b(e),i={...n};return t=>(i.red=x(n.red,s.red,t),i.green=x(n.green,s.green,t),i.blue=x(n.blue,s.blue,t),i.alpha=(0,m.C)(n.alpha,s.alpha,t),v.m.transform(i))};var T=n(9820),A=n(26);function C(t,e){return"number"==typeof t?n=>(0,m.C)(t,e,n):d.$.test(t)?w(t,e):S(t,e)}const V=(t,e)=>{const n=[...t],s=n.length,i=t.map(((t,n)=>C(t,e[n])));return t=>{for(let e=0;e<s;e++)n[e]=i[e](t);return n}},E=(t,e)=>{const n={...t,...e},s={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(s[i]=C(t[i],e[i]));return t=>{for(const e in s)n[e]=s[e](t);return n}},S=(t,e)=>{const n=A.P.createTransformer(e),i=(0,A.V)(t),o=(0,A.V)(e);return i.numColors===o.numColors&&i.numNumbers>=o.numNumbers?(0,T.z)(V(i.values,o.values),n):((0,s.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)};var D=n(918);const M=(t,e)=>n=>(0,m.C)(t,e,n);function L(t,e,n){const s=[],i=n||("number"==typeof(o=t[0])?M:"string"==typeof o?d.$.test(o)?w:S:Array.isArray(o)?V:"object"==typeof o?E:M);var o;const r=t.length-1;for(let n=0;n<r;n++){let o=i(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;o=(0,T.z)(t,o)}s.push(o)}return s}function k(t,e,{clamp:n=!0,ease:i,mixer:o}={}){const r=t.length;(0,s.k)(r===e.length,"Both input and output ranges must be the same length"),(0,s.k)(!i||!Array.isArray(i)||i.length===r-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=L(e,i,o),l=a.length,c=e=>{let n=0;if(l>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const s=(0,D.Y)(t[n],t[n+1],e);return a[n](s)};return n?e=>c((0,p.u)(t[0],t[r-1],e)):c}var R=n(2634);const B=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function F(t,e,n,s){if(t===e&&n===s)return R.Z;const i=e=>function(t,e,n,s,i){let o,r,a=0;do{r=e+(n-e)/2,o=B(r,s,i)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:B(i(t),e,s)}var O=n(7110);const j=F(.33,1.53,.69,.99),I=(0,l.M)(j),$=(0,a.o)(I),U={linear:R.Z,easeIn:c,easeInOut:h,easeOut:u,circIn:O.Z7,circInOut:O.X7,circOut:O.Bn,backIn:I,backInOut:$,backOut:j,anticipate:t=>(t*=2)<1?.5*I(t):.5*(2-Math.pow(2,-10*(t-1)))},N=t=>{if(Array.isArray(t)){(0,s.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,o]=t;return F(e,n,i,o)}return"string"==typeof t?((0,s.k)(void 0!==U[t],`Invalid easing type '${t}'`),U[t]):t};function Z({keyframes:t,ease:e=h,times:n,duration:s=300}){t=[...t];const i=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(N):N(e),o={done:!1,value:t[0]},r=function(t,e){return t.map((t=>t*e))}(n&&n.length===t.length?n:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(t),s);function a(){return k(r,t,{ease:Array.isArray(i)?i:(e=t,n=i,e.map((()=>n||h)).splice(0,e.length-1))});var e,n}let l=a();return{next:t=>(o.value=l(t),o.done=t>=s,o),flipTarget:()=>{t.reverse(),l=a()}}}const Y=.001;function z({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let o,r;(0,s.K)(t<=1e4,"Spring duration must be 10 seconds or less");let a=1-e;a=(0,p.u)(.05,1,a),t=(0,p.u)(.01,10,t/1e3),a<1?(o=e=>{const s=e*a,i=s*t,o=s-n,r=W(e,a),l=Math.exp(-i);return Y-o/r*l},r=e=>{const s=e*a*t,i=s*n+n,r=Math.pow(a,2)*Math.pow(e,2)*t,l=Math.exp(-s),c=W(Math.pow(e,2),a);return(-o(e)+Y>0?-1:1)*((i-r)*l)/c}):(o=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,r=e=>Math.exp(-e*t)*(t*t*(n-e)));const l=function(t,e,n){let s=n;for(let n=1;n<12;n++)s-=t(s)/e(s);return s}(o,r,5/t);if(t*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(l,2)*i;return{stiffness:e,damping:2*a*Math.sqrt(i*e),duration:t}}}function W(t,e){return t*Math.sqrt(1-e*e)}var H=n(432);const q=["duration","bounce"],X=["stiffness","damping","mass"];function G(t,e){return e.some((e=>void 0!==t[e]))}function _({keyframes:t,restDelta:e,restSpeed:n,...s}){let i=t[0],o=t[t.length-1];const r={done:!1,value:i},{stiffness:a,damping:l,mass:c,velocity:u,duration:h,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!G(t,X)&&G(t,q)){const n=z(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(s);let p=K,m=u?-u/1e3:0;const f=l/(2*Math.sqrt(a*c));function g(){const t=o-i,s=Math.sqrt(a/c)/1e3,r=Math.abs(t)<5;if(n||(n=r?.01:2),e||(e=r?.005:.5),f<1){const e=W(s,f);p=n=>{const i=Math.exp(-f*s*n);return o-i*((m+f*s*t)/e*Math.sin(e*n)+t*Math.cos(e*n))}}else if(1===f)p=e=>o-Math.exp(-s*e)*(t+(m+s*t)*e);else{const e=s*Math.sqrt(f*f-1);p=n=>{const i=Math.exp(-f*s*n),r=Math.min(e*n,300);return o-i*((m+f*s*t)*Math.sinh(r)+e*t*Math.cosh(r))/e}}}return g(),{next:t=>{const s=p(t);if(d)r.done=t>=h;else{let i=m;if(0!==t)if(f<1){const e=Math.max(0,t-5);i=(0,H.R)(s-p(e),t-e)}else i=0;const a=Math.abs(i)<=n,l=Math.abs(o-s)<=e;r.done=a&&l}return r.value=r.done?o:s,r},flipTarget:()=>{m=-m,[i,o]=[o,i],g()}}}_.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const K=t=>0;const J={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:s=350,restDelta:i=.5,modifyTarget:o}){const r=t[0],a={done:!1,value:r};let l=n*e;const c=r+l,u=void 0===o?c:o(c);return u!==c&&(l=u-r),{next:t=>{const e=-l*Math.exp(-t/s);return a.done=!(e>i||e<-i),a.value=a.done?u:u+e,a},flipTarget:()=>{}}},keyframes:Z,tween:Z,spring:_};function Q(t,e,n=0){return t-e-n}const tt=t=>{const e=({delta:e})=>t(e);return{start:()=>r.Z_.update(e,!0),stop:()=>r.qY.update(e)}};function et({duration:t,driver:e=tt,elapsed:n=0,repeat:s=0,repeatType:i="loop",repeatDelay:o=0,keyframes:r,autoplay:a=!0,onPlay:l,onStop:c,onComplete:u,onRepeat:h,onUpdate:d,type:p="keyframes",...m}){const f=n;let g,v,y=0,x=t,P=!1,b=!0;const w=J[r.length>2?"keyframes":p]||Z,T=r[0],A=r[r.length-1];let C={done:!1,value:T};const{needsInterpolation:V}=w;V&&V(T,A)&&(v=k([0,100],[T,A],{clamp:!1}),r=[0,100]);const E=w({...m,duration:t,keyframes:r});function S(){y++,"reverse"===i?(b=y%2==0,n=function(t,e=0,n=0,s=!0){return s?Q(e+-t,e,n):e-(t-e)+n}(n,x,o,b)):(n=Q(n,x,o),"mirror"===i&&E.flipTarget()),P=!1,h&&h()}function D(t){b||(t=-t),n+=t,P||(C=E.next(Math.max(0,n)),v&&(C.value=v(C.value)),P=b?C.done:n<=0),d&&d(C.value),P&&(0===y&&(x=void 0!==x?x:n),y<s?function(t,e,n,s){return s?t>=e+n:t<=-n}(n,x,o,b)&&S():(g&&g.stop(),u&&u()))}return a&&(l&&l(),g=e(D),g.start()),{stop:()=>{c&&c(),g&&g.stop()},set currentTime(t){n=f,D(t)},sample:e=>{n=f;const s=t&&"number"==typeof t?Math.max(.5*t,50):50;let i=0;for(D(0);i<=e;){const t=e-i;D(Math.min(t,s)),i+=s}return C}}}const nt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,st={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nt([0,.65,.55,1]),circOut:nt([.55,0,1,.45]),backIn:nt([.31,.01,.66,-.59]),backOut:nt([.33,1.53,.69,.99])};function it(t){if(t)return Array.isArray(t)?nt(t):st[t]}const ot={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},rt={},at={};for(const t in ot)at[t]=()=>(void 0===rt[t]&&(rt[t]=ot[t]()),rt[t]);const lt=new Set(["opacity"]);function ct(t,e,{onUpdate:n,onComplete:s,...i}){if(!(at.waapi()&&lt.has(e)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping))return!1;let{keyframes:o,duration:a=300,elapsed:l=0,ease:c}=i;if("spring"===i.type||!(!(u=i.ease)||Array.isArray(u)||"string"==typeof u&&st[u])){if(i.repeat===1/0)return;const t=et({...i,elapsed:0});let e={done:!1,value:o[0]};const n=[];let s=0;for(;!e.done&&s<2e4;)e=t.sample(s),n.push(e.value),s+=10;o=n,a=s-10,c="linear"}var u;const h=function(t,e,n,{delay:s=0,duration:i,repeat:o=0,repeatType:r="loop",ease:a,times:l}={}){return t.animate({[e]:n,offset:l},{delay:s,duration:i,easing:it(a),fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}(t.owner.current,e,o,{...i,delay:-l,duration:a,ease:c});return h.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(o,i)),r.Z_.update((()=>h.cancel())),s&&s()},{get currentTime(){return h.currentTime||0},set currentTime(t){h.currentTime=t},stop:()=>{const{currentTime:e}=h;if(e){const n=et({...i,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}r.Z_.update((()=>h.cancel()))}}}var ut=n(2866);function ht({keyframes:t,elapsed:e,onUpdate:n,onComplete:s}){const i=()=>{n&&n(t[t.length-1]),s&&s()};return e?{stop:(0,ut.g)(i,-e)}:i()}var dt=n(5951);const pt=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),mt=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ft=()=>({type:"keyframes",ease:"linear",duration:.3}),gt={type:"keyframes",duration:.8},vt={x:pt,y:pt,z:pt,rotate:pt,rotateX:pt,rotateY:pt,rotateZ:pt,scaleX:mt,scaleY:mt,scale:mt,opacity:ft,backgroundColor:ft,color:ft,default:mt},yt=(t,{keyframes:e})=>{if(e.length>2)return gt;return(vt[t]||vt.default)(e[1])},xt=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!A.P.test(e)||e.startsWith("url(")));var Pt=n(6914),bt=n(7101);const wt=(t,e,n,r={})=>a=>{const l=(0,bt.ev)(r,t)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u-=(0,i.w)(c);const h=function(t,e,n,s){const i=xt(e,n);let o=void 0!==s.from?s.from:t.get();return"none"===o&&i&&"string"==typeof n?o=(0,Pt.T)(e,n):(0,bt.Fr)(o)&&"string"==typeof n?o=(0,bt.GZ)(n):!Array.isArray(n)&&(0,bt.Fr)(n)&&"string"==typeof o&&(n=(0,bt.GZ)(o)),Array.isArray(n)?(null===n[0]&&(n[0]=o),n):[o,n]}(e,t,n,l),d=h[0],p=h[h.length-1],m=xt(t,d),f=xt(t,p);(0,s.K)(m===f,`You are trying to animate ${t} from "${d}" to "${p}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${p} via the \`style\` property.`);let g={keyframes:h,velocity:e.getVelocity(),...l,elapsed:u,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()}};if(!m||!f||o||!1===l.type)return ht(g);if("inertia"===l.type)return function({keyframes:t,velocity:e=0,min:n,max:s,power:i=.8,timeConstant:o=750,bounceStiffness:r=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:h,onComplete:d,onStop:p}){const m=t[0];let f;function g(t){return void 0!==n&&t<n||void 0!==s&&t>s}function v(t){return void 0===n?s:void 0===s||Math.abs(n-t)<Math.abs(s-t)?n:s}function y(t){f&&f.stop(),f=et({keyframes:[0,1],velocity:0,...t,driver:u,onUpdate:e=>{h&&h(e),t.onUpdate&&t.onUpdate(e)},onComplete:d,onStop:p})}function x(t){y({type:"spring",stiffness:r,damping:a,restDelta:l,...t})}if(g(m))x({velocity:e,keyframes:[m,v(m)]});else{let t=i*e+m;void 0!==c&&(t=c(t));const s=v(t),r=s===n?-1:1;let a,u;const h=t=>{a=u,u=t,e=(0,H.R)(t-a,dt.w.delta),(1===r&&t>s||-1===r&&t<s)&&x({keyframes:[t,s],velocity:e})};y({type:"decay",keyframes:[m,0],velocity:e,timeConstant:o,power:i,restDelta:l,modifyTarget:c,onUpdate:g(t)?h:void 0})}return{stop:()=>f&&f.stop()}}(g);if((0,bt.rw)(l)||(g={...g,...yt(t,g)}),g.duration&&(g.duration=(0,i.w)(g.duration)),g.repeatDelay&&(g.repeatDelay=(0,i.w)(g.repeatDelay)),e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=ct(e,t,g);if(n)return n}return et(g)}},2819:(t,e,n)=>{n.d(e,{C:()=>s});const s=t=>Array.isArray(t)},7101:(t,e,n)=>{n.d(e,{Fr:()=>o,GZ:()=>r,ev:()=>a,rw:()=>i});var s=n(6914);function i({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function o(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function r(t){return"number"==typeof t?0:(0,s.T)("",t)}function a(t,e){return t[e]||t.default||t}},7110:(t,e,n)=>{n.d(e,{Bn:()=>r,X7:()=>a,Z7:()=>o});var s=n(5222),i=n(9273);const o=t=>1-Math.sin(Math.acos(t)),r=(0,i.M)(o),a=(0,s.o)(r)},5222:(t,e,n)=>{n.d(e,{o:()=>s});const s=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},9273:(t,e,n)=>{n.d(e,{M:()=>s});const s=t=>e=>1-t(1-e)},6949:(t,e,n)=>{function s(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}n.d(e,{E:()=>s})},6477:(t,e,n)=>{n.d(e,{a:()=>o});var s=n(6949),i=n(409);function o(t,e,n,o){return(0,s.E)(t,e,(0,i.s)(n),o)}},409:(t,e,n)=>{n.d(e,{Q:()=>i,s:()=>o});var s=n(2426);function i(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const o=t=>e=>(0,s.D)(e)&&t(e,i(e))},2426:(t,e,n)=>{n.d(e,{D:()=>s});const s=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary},5951:(t,e,n)=>{n.d(e,{w:()=>s});const s={delta:0,timestamp:0}},8313:(t,e,n)=>{n.d(e,{qY:()=>p,iW:()=>m,Z_:()=>d});const s=1/60*1e3,i="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(i())),s);var r=n(5951);let a=!0,l=!1,c=!1;const u=["read","update","preRender","render","postRender"],h=u.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],s=0,i=!1,o=!1;const r=new WeakSet,a={schedule:(t,o=!1,a=!1)=>{const l=a&&i,c=l?e:n;return o&&r.add(t),-1===c.indexOf(t)&&(c.push(t),l&&i&&(s=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),r.delete(t)},process:l=>{if(i)o=!0;else{if(i=!0,[e,n]=[n,e],n.length=0,s=e.length,s)for(let n=0;n<s;n++){const s=e[n];s(l),r.has(s)&&(a.schedule(s),t())}i=!1,o&&(o=!1,a.process(l))}}};return a}((()=>l=!0)),t)),{}),d=u.reduce(((t,e)=>{const n=h[e];return t[e]=(t,e=!1,s=!1)=>(l||v(),n.schedule(t,e,s)),t}),{}),p=u.reduce(((t,e)=>(t[e]=h[e].cancel,t)),{}),m=u.reduce(((t,e)=>(t[e]=()=>h[e].process(r.w),t)),{}),f=t=>h[t].process(r.w),g=t=>{l=!1,r.w.delta=a?s:Math.max(Math.min(t-r.w.timestamp,40),1),r.w.timestamp=t,c=!0,u.forEach(f),c=!1,l&&(a=!1,o(g))},v=()=>{l=!0,a=!0,c||o(g)}},5856:(t,e,n)=>{function s(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{fJ:()=>r,gD:()=>a});const i=s("dragHorizontal"),o=s("dragVertical");function r(t){let e=!1;if("y"===t)e=o();else if("x"===t)e=i();else{const t=i(),n=o();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function a(){const t=r(!0);return!t||(t(),!1)}},3609:(t,e,n)=>{n.d(e,{L:()=>s});class s{constructor(t){this.isMounted=!1,this.node=t}update(){}}},483:(t,e,n)=>{function s({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function i({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function o(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}n.d(e,{d7:()=>o,i8:()=>s,z2:()=>i})},1360:(t,e,n)=>{n.d(e,{D2:()=>f,YY:()=>c,am:()=>h,o2:()=>l,q2:()=>o});var s=n(5430),i=n(4918);function o(t,e,n){return n+e*(t-n)}function r(t,e,n,s,i){return void 0!==i&&(t=o(t,i,s)),o(t,n,s)+e}function a(t,e=0,n=1,s,i){t.min=r(t.min,e,n,s,i),t.max=r(t.max,e,n,s,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 c(t,e,n,s=!1){const o=n.length;if(!o)return;let r,a;e.x=e.y=1;for(let c=0;c<o;c++){r=n[c],a=r.projectionDelta;const o=r.instance;o&&o.style&&"contents"===o.style.display||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&f(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,l(t,a)),s&&(0,i.ud)(r.latestValues)&&f(t,r.latestValues))}e.x=u(e.x),e.y=u(e.y)}function u(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,[n,i,o]){const r=void 0!==e[o]?e[o]:.5,l=(0,s.C)(t.min,t.max,r);a(t,e[n],e[i],l,e.scale)}const p=["x","scaleX","originX"],m=["y","scaleY","originY"];function f(t,e){d(t.x,e,p),d(t.y,e,m)}},1397:(t,e,n)=>{n.d(e,{dO:()=>i,wc:()=>s});const s=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),i=()=>({x:{min:0,max:0},y:{min:0,max:0}})},798:(t,e,n)=>{n.d(e,{B:()=>i,P:()=>s});const s={};function i(t){Object.assign(s,t)}},4918:(t,e,n)=>{function s(t){return void 0===t||1===t}function i({scale:t,scaleX:e,scaleY:n}){return!s(t)||!s(e)||!s(n)}function o(t){return i(t)||r(t)||t.z||t.rotate||t.rotateX||t.rotateY}function r(t){return a(t.x)||a(t.y)}function a(t){return t&&"0%"!==t}n.d(e,{D_:()=>r,Lj:()=>i,ud:()=>o})},8834:(t,e,n)=>{n.d(e,{J:()=>o,z:()=>r});var s=n(483),i=n(1360);function o(t,e){return(0,s.i8)((0,s.d7)(t.getBoundingClientRect(),e))}function r(t,e,n){const s=o(t,n),{scroll:r}=e;return r&&((0,i.am)(s.x,r.offset.x),(0,i.am)(s.y,r.offset.y)),s}},3611:(t,e,n)=>{function s(t){return"object"==typeof t&&"function"==typeof t.start}n.d(e,{H:()=>he});var i=n(2819);function o(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const r=t=>/^0[^.\s]+$/.test(t);var a=n(7048),l=n(1421),c=n(26),u=n(6914),h=n(2890),d=n(8366),p=n(5713);const m=t=>e=>e.test(t),f=[d.Rx,p.px,p.aQ,p.RW,p.vw,p.vh,{test:t=>"auto"===t,parse:t=>t}],g=t=>f.find(m(t)),v=[...f,h.$,c.P],y=t=>v.find(m(t));function x(t,e,n,s={},i={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,s,i)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,s,i)),e}function P(t,e,n){const s=t.getProps();return x(s,e,void 0!==n?n:s.custom,function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.values.forEach(((t,n)=>e[n]=t.getVelocity())),e}(t))}function b(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,l.B)(n))}function w(t,e){const n=P(t,e);let{transitionEnd:s={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...s};for(const e in o){b(t,e,(0,a.Y)(o[e]))}}function T(t,e){if(!e)return;return(e[t]||e.default||e).from}const A=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],C=new Set(A);var V=n(7846);function E(t){return Boolean((0,V.i)(t)&&t.add)}const S=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),D="data-"+S("framerAppearId");var M=n(6405),L=n(8313);function k(t,e,n={}){const s=P(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>R(t,s,n):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(s=0)=>{const{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=i;return function(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=1===i?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(B).forEach(((t,s)=>{t.notify("AnimationStart",e),r.push(k(t,e,{...o,delay:n+l(s)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,o+s,r,a,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[t,e]="beforeChildren"===a?[o,r]:[r,o];return t().then(e)}return Promise.all([o(),r(n.delay)])}function R(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");s&&(o=s);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const e in a){const s=t.getValue(e),i=a[e];if(!s||void 0===i||u&&F(u,e))continue;const r={delay:n,elapsed:0,...o};if(window.HandoffAppearAnimations&&!s.hasAnimated){const n=t.getProps()[D];n&&(r.elapsed=window.HandoffAppearAnimations(n,e,s,L.Z_))}let h=s.start((0,M.Z)(e,s,i,t.shouldReduceMotion&&C.has(e)?{type:!1}:r));E(l)&&(l.add(e),h=h.then((()=>l.remove(e)))),c.push(h)}return Promise.all(c).then((()=>{r&&w(t,r)}))}function B(t,e){return t.sortNodePosition(e)}function F({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,s}function O(t){return"string"==typeof t||Array.isArray(t)}var j=n(7921);const I=[j.r.Animate,j.r.InView,j.r.Focus,j.r.Hover,j.r.Tap,j.r.Drag,j.r.Exit],$=[...I].reverse(),U=I.length;function N(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e)){const i=e.map((e=>k(t,e,n)));s=Promise.all(i)}else if("string"==typeof e)s=k(t,e,n);else{const i="function"==typeof e?P(t,e,n.custom):e;s=R(t,i,n)}return s.then((()=>t.notify("AnimationComplete",e)))}(t,e,n))))}function Z(t){let e=N(t);const n={[j.r.Animate]:z(!0),[j.r.InView]:z(),[j.r.Hover]:z(),[j.r.Tap]:z(),[j.r.Drag]:z(),[j.r.Focus]:z(),[j.r.Exit]:z()};let r=!0;const a=(e,n)=>{const s=P(t,n);if(s){const{transition:t,transitionEnd:n,...i}=s;e={...e,...i,...n}}return e};function l(l,c){const u=t.getProps(),h=t.getVariantContext(!0)||{},d=[],p=new Set;let m={},f=1/0;for(let e=0;e<U;e++){const g=$[e],v=n[g],y=void 0!==u[g]?u[g]:h[g],x=O(y),P=g===c?v.isActive:null;!1===P&&(f=e);let b=y===h[g]&&y!==u[g]&&x;if(b&&r&&t.manuallyAnimateOnMount&&(b=!1),v.protectedKeys={...m},!v.isActive&&null===P||!y&&!v.prevProp||s(y)||"boolean"==typeof y)continue;const w=Y(v.prevProp,y);let T=w||g===c&&v.isActive&&!b&&x||e>f&&x;const A=Array.isArray(y)?y:[y];let C=A.reduce(a,{});!1===P&&(C={});const{prevResolvedValues:V={}}=v,E={...V,...C},S=t=>{T=!0,p.delete(t),v.needsAnimating[t]=!0};for(const t in E){const e=C[t],n=V[t];m.hasOwnProperty(t)||(e!==n?(0,i.C)(e)&&(0,i.C)(n)?!o(e,n)||w?S(t):v.protectedKeys[t]=!0:void 0!==e?S(t):p.add(t):void 0!==e&&p.has(t)?S(t):v.protectedKeys[t]=!0)}v.prevProp=y,v.prevResolvedValues=C,v.isActive&&(m={...m,...C}),r&&t.blockInitialAnimation&&(T=!1),T&&!b&&d.push(...A.map((t=>({animation:t,options:{type:g,...l}}))))}if(p.size){const e={};p.forEach((n=>{const s=t.getBaseTarget(n);void 0!==s&&(e[n]=s)})),d.push({animation:e})}let g=Boolean(d.length);return r&&!1===u.initial&&!t.manuallyAnimateOnMount&&(g=!1),r=!1,g?e(d):Promise.resolve()}return{animateChanges:l,setActive:function(e,s,i){if(n[e].isActive===s)return Promise.resolve();t.variantChildren&&t.variantChildren.forEach((t=>{t.animationState&&t.animationState.setActive(e,s)})),n[e].isActive=s;const o=l(i,e);for(const t in n)n[t].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function Y(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!o(e,t)}function z(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var W=n(3609);class H extends W.L{constructor(t){super(t),t.animationState||(t.animationState=Z(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),s(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let q=0;class X extends W.L{constructor(){super(...arguments),this.id=q++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const i=this.node.animationState.setActive(j.r.Exit,!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&i.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const G={animation:{Feature:H},exit:{Feature:X}};var _=n(6477),K=n(9820),J=n(5856);function Q(t,e){const n="pointer"+(e?"enter":"leave"),s="onHover"+(e?"Start":"End");return(0,_.a)(t.current,n,((n,i)=>{if("touch"===n.type||(0,J.gD)())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive(j.r.Hover,e),o[s]&&o[s](n,i)}),{passive:!t.getProps()[s]})}class tt extends W.L{mount(){this.unmount=(0,K.z)(Q(this.node,!0),Q(this.node,!1))}unmount(){}}var et=n(6949);class nt extends W.L{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive(j.r.Focus,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(j.r.Focus,!1),this.isActive=!1)}mount(){this.unmount=(0,K.z)((0,et.E)(this.node.current,"focus",(()=>this.onFocus())),(0,et.E)(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}var st=n(409);const it=(t,e)=>!!e&&(t===e||it(t,e.parentElement));var ot=n(2634);function rt(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,(0,st.Q)(n))}class at extends W.L{constructor(){super(...arguments),this.removeStartListeners=ot.Z,this.removeEndListeners=ot.Z,this.removeAccessibleListeners=ot.Z,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),s=(0,_.a)(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:s}=this.node.getProps();it(this.node.current,t.target)?n&&n(t,e):s&&s(t,e)}),{passive:!(n.onTap||n.onPointerUp)}),i=(0,_.a)(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=(0,K.z)(s,i),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=(0,et.E)(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=(0,et.E)(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&rt("up",this.node.getProps().onTap)})),rt("down",((t,e)=>{this.startPress(t,e)}))})),e=(0,et.E)(this.node.current,"blur",(()=>{this.isPressing&&rt("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=(0,K.z)(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive(j.r.Tap,!0),n&&n(t,e)}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive(j.r.Tap,!1),!(0,J.gD)()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(t,e)}mount(){const t=this.node.getProps(),e=(0,_.a)(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=(0,et.E)(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,K.z)(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const lt=new WeakMap,ct=new WeakMap,ut=t=>{const e=lt.get(t.target);e&&e(t)},ht=t=>{t.forEach(ut)};function dt(t,e,n){const s=function({root:t,...e}){const n=t||document;ct.has(n)||ct.set(n,{});const s=ct.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(ht,{root:t,...e})),s[i]}(e);return lt.set(t,n),s.observe(t),()=>{lt.delete(t),s.unobserve(t)}}const pt={some:0,all:1};class mt extends W.L{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame((()=>{this.hasEnteredView=!0;const{onViewportEnter:t}=this.node.getProps();t&&t(null),this.node.animationState&&this.node.animationState.setActive(j.r.InView,!0)}))}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:s="some",once:i,fallback:o=!0}=t;if("undefined"==typeof IntersectionObserver)return void(o&&this.viewportFallback());const r={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:pt[s]};return dt(this.node.current,r,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,i&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(j.r.InView,e);const{onViewportEnter:n,onViewportLeave:s}=this.node.getProps(),o=e?n:s;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}const ft={inView:{Feature:mt},tap:{Feature:at},focus:{Feature:nt},hover:{Feature:tt}},gt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vt=(t,e)=>A.indexOf(t)-A.indexOf(e);function yt(t){return t.startsWith("--")}const xt=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var Pt=n(4923);function bt(t,e,n,s){const{style:i,vars:o,transform:r,transformKeys:a,transformOrigin:l}=t;a.length=0;let c=!1,u=!1,h=!0;for(const t in e){const n=e[t];if(yt(t)){o[t]=n;continue}const s=Pt.j[t],d=xt(n,s);if(C.has(t)){if(c=!0,r[t]=d,a.push(t),!h)continue;n!==(s.default||0)&&(h=!1)}else t.startsWith("origin")?(u=!0,l[t]=d):i[t]=d}if(e.transform||(c||s?i.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:s=!0},i,o){let r="";e.sort(vt);for(const n of e)r+=`${gt[n]||n}(${t[n]}) `;return n&&!t.z&&(r+="translateZ(0)"),r=r.trim(),o?r=o(t,i?"":r):s&&i&&(r="none"),r}(t,n,h,s):i.transform&&(i.transform="none")),u){const{originX:t="50%",originY:e="50%",originZ:n=0}=l;i.transformOrigin=`${t} ${e} ${n}`}}var wt=n(798);function Tt(t,{layout:e,layoutId:n}){return C.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!wt.P[t]||"opacity"===t)}function At(t,e){const{style:n}=t,s={};for(const i in n)((0,V.i)(n[i])||e.style&&(0,V.i)(e.style[i])||Tt(i,t))&&(s[i]=n[i]);return s}function Ct(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const e in n)t.style.setProperty(e,n[e])}var Vt=n(7557),Et=n(8834),St=n(6978),Dt=n(9340);const Mt="undefined"!=typeof document,Lt=new Set(["width","height","top","left","right","bottom","x","y"]),kt=t=>Lt.has(t),Rt=t=>t===d.Rx||t===p.px;var Bt;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Bt||(Bt={}));const Ft=(t,e)=>parseFloat(t.split(", ")[e]),Ot=(t,e)=>(n,{transform:s})=>{if("none"===s||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/);if(i)return Ft(i[1],e);{const e=s.match(/^matrix\((.+)\)$/);return e?Ft(e[1],t):0}},jt=new Set(["x","y","z"]),It=A.filter((t=>!jt.has(t)));const $t={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:Ot(4,13),y:Ot(5,14)},Ut=(t,e,n={},s={})=>{e={...e},s={...s};const o=Object.keys(e).filter(kt);let r=[],a=!1;const l=[];if(o.forEach((o=>{const c=t.getValue(o);if(!t.hasValue(o))return;let u=n[o],h=g(u);const d=e[o];let m;if((0,i.C)(d)){const t=d.length,e=null===d[0]?1:0;u=d[e],h=g(u);for(let n=e;n<t;n++)m?(0,Dt.k)(g(d[n])===m,"All keyframes must be of the same type"):(m=g(d[n]),(0,Dt.k)(m===h||Rt(h)&&Rt(m),"Keyframes must be of the same dimension as the current value"))}else m=g(d);if(h!==m)if(Rt(h)&&Rt(m)){const t=c.get();"string"==typeof t&&c.set(parseFloat(t)),"string"==typeof d?e[o]=parseFloat(d):Array.isArray(d)&&m===p.px&&(e[o]=d.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==m?void 0:m.transform)&&(0===u||0===d)?0===u?c.set(m.transform(u)):e[o]=h.transform(d):(a||(r=function(t){const e=[];return It.forEach((n=>{const s=t.getValue(n);void 0!==s&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),a=!0),l.push(o),s[o]=void 0!==s[o]?s[o]:e[o],c.jump(d))})),l.length){const n=l.indexOf("height")>=0?window.pageYOffset:null,i=((t,e,n)=>{const s=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:r}=o,a={};"none"===r&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=$t[t](s,o)})),e.render();const l=e.measureViewportBox();return n.forEach((n=>{const s=e.getValue(n);s&&s.jump(a[n]),t[n]=$t[n](l,o)})),t})(e,t,l);return r.length&&r.forEach((([e,n])=>{t.getValue(e).set(n)})),t.render(),Mt&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:s}}return{target:e,transitionEnd:s}};function Nt(t,e,n,s){return(t=>Object.keys(t).some(kt))(e)?Ut(t,e,n,s):{target:e,transitionEnd:s}}var Zt=n(1397),Yt=n(3491);const zt={current:null},Wt={current:!1};var Ht=n(1065);const qt=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Xt(t){return s(t.animate)||qt.some((e=>O(t[e])))}const Gt={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},_t={};for(const t in Gt)_t[t]={isEnabled:e=>Gt[t].some((t=>!!e[t]))};const Kt=Object.keys(_t),Jt=Kt.length,Qt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const te=["initial",...I],ee=te.length;class ne extends class{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:s,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>L.Z_.render(this.render,!1,!0);const{latestValues:r,renderState:a}=i;this.latestValues=r,this.baseTarget={...r},this.initialValues=e.initial?{...r}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.isControllingVariants=Xt(e),this.isVariantNode=function(t){return Boolean(Xt(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(e,{});for(const t in c){const e=c[t];void 0!==r[t]&&(0,V.i)(e)&&(e.set(r[t],!1),E(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),Wt.current||function(){if(Wt.current=!0,Mt)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>zt.current=t.matches;t.addListener(e),e()}else zt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||zt.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),L.qY.update(this.notifyUpdate),L.qY.render(this.render),this.valueSubscriptions.forEach((t=>t())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=C.has(t),s=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&L.Z_.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,(()=>{s(),i()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,s,i,o){let r,a;for(let t=0;t<Jt;t++){const n=Kt[t],{isEnabled:s,Feature:i,ProjectionNode:o,MeasureLayout:l}=_t[n];o&&(r=o),s(e)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),l&&(a=l))}if(!this.projection&&r){this.projection=new r(i,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(s)||a&&(0,Yt.I)(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:c})}return a}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update(this.props,this.prevProps):(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,Zt.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Qt.length;e++){const n=Qt[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const s=t["on"+n];s&&(this.propEventSubscriptions[n]=this.on(n,s))}this.prevMotionValues=function(t,e,n){const{willChange:s}=e;for(const i in e){const o=e[i],r=n[i];if((0,V.i)(o))t.addValue(i,o),E(s)&&s.add(i);else if((0,V.i)(r))t.addValue(i,(0,l.B)(o,{owner:t})),E(s)&&s.remove(i);else if(r!==o)if(t.hasValue(i)){const e=t.getValue(i);!e.hasAnimated&&e.set(o)}else{const e=t.getStaticValue(i);t.addValue(i,(0,l.B)(void 0!==e?e:o,{owner:t}))}}for(const s in n)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let t=0;t<ee;t++){const n=te[t],s=this.props[n];(O(s)||!1===s)&&(e[n]=s)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,l.B)(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,s="string"==typeof n||"object"==typeof n?null===(e=x(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==s)return s;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||(0,V.i)(i)?void 0!==this.initialValues[t]&&void 0===s?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new Ht.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:s},i){let o=function(t,e,n){const s={};for(const i in t){const t=T(i,e);if(void 0!==t)s[i]=t;else{const t=n.getValue(i);t&&(s[i]=t.get())}}return s}(n,t||{},this);if(s&&(e&&(e=s(e)),n&&(n=s(n)),o&&(o=s(o))),i){!function(t,e,n){var s,i;const o=Object.keys(e).filter((e=>!t.hasValue(e))),a=o.length;if(a)for(let h=0;h<a;h++){const a=o[h],d=e[a];let p=null;Array.isArray(d)&&(p=d[0]),null===p&&(p=null!==(i=null!==(s=n[a])&&void 0!==s?s:t.readValue(a))&&void 0!==i?i:e[a]),null!=p&&("string"==typeof p&&(/^\-?\d*\.?\d+$/.test(p)||r(p))?p=parseFloat(p):!y(p)&&c.P.test(d)&&(p=(0,u.T)(a,d)),t.addValue(a,(0,l.B)(p,{owner:t})),void 0===n[a]&&(n[a]=p),null!==p&&t.setBaseTarget(a,p))}}(this,n,o);const t=((t,e,n,s)=>{const i=(0,St.mH)(t,e,s);return Nt(t,e=i.target,n,s=i.transitionEnd)})(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class se extends ne{readValueFromInstance(t,e){if(C.has(e)){const t=(0,Vt.A)(e);return t&&t.default||0}{const s=(n=t,window.getComputedStyle(n)),i=(yt(e)?s.getPropertyValue(e):s[e])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,Et.J)(t,e)}build(t,e,n,s){bt(t,e,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,e){return At(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;(0,V.i)(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}renderInstance(t,e,n,s){Ct(t,e,n,s)}}function ie(t,e,n){return"string"==typeof t?t:p.px.transform(e+n*t)}const oe={offset:"stroke-dashoffset",array:"stroke-dasharray"},re={offset:"strokeDashoffset",array:"strokeDasharray"};function ae(t,{attrX:e,attrY:n,originX:s,originY:i,pathLength:o,pathSpacing:r=1,pathOffset:a=0,...l},c,u,h){if(bt(t,l,c,h),u)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:m,dimensions:f}=t;d.transform&&(f&&(m.transform=d.transform),delete d.transform),f&&(void 0!==s||void 0!==i||m.transform)&&(m.transformOrigin=function(t,e,n){return`${ie(e,t.x,t.width)} ${ie(n,t.y,t.height)}`}(f,void 0!==s?s:.5,void 0!==i?i:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==o&&function(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?oe:re;t[o.offset]=p.px.transform(-s);const r=p.px.transform(e),a=p.px.transform(n);t[o.array]=`${r} ${a}`}(d,o,r,a,!1)}const le=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class ce extends ne{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(C.has(e)){const t=(0,Vt.A)(e);return t&&t.default||0}return e=le.has(e)?e:S(e),t.getAttribute(e)}measureInstanceViewportBox(){return(0,Zt.dO)()}scrapeMotionValuesFromProps(t,e){return function(t,e){const n=At(t,e);for(const s in t)((0,V.i)(t[s])||(0,V.i)(e[s]))&&(n["x"===s||"y"===s?"attr"+s.toUpperCase():s]=t[s]);return n}(t,e)}build(t,e,n,s){ae(t,e,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,e,n,s){!function(t,e,n,s){Ct(t,e,void 0,s);for(const n in e.attrs)t.setAttribute(le.has(n)?n:S(n),e.attrs[n])}(t,e,0,s)}mount(t){var e;this.isSVGTag="string"==typeof(e=t.tagName)&&"svg"===e.toLowerCase(),super.mount(t)}}const ue=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];const he={renderer:(t,e)=>function(t){return"string"==typeof t&&!t.includes("-")&&!!(ue.indexOf(t)>-1||/[A-Z]/.test(t))}(t)?new ce(e,{enableHardwareAcceleration:!1}):new se(e,{enableHardwareAcceleration:!0}),...G,...ft}},6978:(t,e,n)=>{n.d(e,{Xp:()=>o,mH:()=>a});var s=n(9340);function i(t){return"string"==typeof t&&t.startsWith("var(--")}const o=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function r(t,e,n=1){(0,s.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=o.exec(t);if(!e)return[,];const[,n,s]=e;return[n,s]}(t);if(!a)return;const c=window.getComputedStyle(e).getPropertyValue(a);return c?c.trim():i(l)?r(l,e,n+1):l}function a(t,{...e},n){const s=t.current;if(!(s instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach((t=>{const e=t.get();if(!i(e))return;const n=r(e,s);n&&t.set(n)}));for(const t in e){const o=e[t];if(!i(o))continue;const a=r(o,s);a&&(e[t]=a,n&&void 0===n[t]&&(n[t]=o))}return{target:e,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>r});var s=n(26),i=n(8673),o=n(7557);function r(t,e){let n=(0,o.A)(t);return n!==i.h&&(n=s.P),n.getAnimatableNone?n.getAnimatableNone(e):void 0}},7557:(t,e,n)=>{n.d(e,{A:()=>r});var s=n(2890),i=n(8673);const o={...n(4923).j,color:s.$,backgroundColor:s.$,outlineColor:s.$,fill:s.$,stroke:s.$,borderColor:s.$,borderTopColor:s.$,borderRightColor:s.$,borderBottomColor:s.$,borderLeftColor:s.$,filter:i.h,WebkitFilter:i.h},r=t=>o[t]},4923:(t,e,n)=>{n.d(e,{j:()=>r});var s=n(8366),i=n(5713),o=n(6442);const r={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,size:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,rotate:i.RW,rotateX:i.RW,rotateY:i.RW,rotateZ:i.RW,scale:s.bA,scaleX:s.bA,scaleY:s.bA,scaleZ:s.bA,skew:i.RW,skewX:i.RW,skewY:i.RW,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:s.Fq,originX:i.$C,originY:i.$C,originZ:i.px,zIndex:o.e,fillOpacity:s.Fq,strokeOpacity:s.Fq,numOctaves:o.e}},6442:(t,e,n)=>{n.d(e,{e:()=>s});const s={...n(8366).Rx,transform:Math.round}},7921:(t,e,n)=>{var s;n.d(e,{r:()=>s}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(s||(s={}))},1180:(t,e,n)=>{function s(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:()=>s})},9043:(t,e,n)=>{n.d(e,{u:()=>s});const s=(t,e,n)=>Math.min(Math.max(n,t),e)},2866:(t,e,n)=>{n.d(e,{g:()=>i});var s=n(8313);function i(t,e){const n=performance.now(),i=({timestamp:o})=>{const r=o-n;r>=e&&(s.qY.read(i),t(r-e))};return s.Z_.read(i,!0),()=>s.qY.read(i)}},3491:(t,e,n)=>{function s(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{I:()=>s})},5430:(t,e,n)=>{n.d(e,{C:()=>s});const s=(t,e,n)=>-n*t+n*e+t},2634:(t,e,n)=>{n.d(e,{Z:()=>s});const s=t=>t},9820:(t,e,n)=>{n.d(e,{z:()=>i});const s=(t,e)=>n=>e(t(n)),i=(...t)=>t.reduce(s)},918:(t,e,n)=>{n.d(e,{Y:()=>s});const s=(t,e,n)=>{const s=e-t;return 0===s?1:(n-t)/s}},7048:(t,e,n)=>{n.d(e,{Y:()=>o,p:()=>i});var s=n(2819);const i=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),o=t=>(0,s.C)(t)?t[t.length-1]||0:t},1065:(t,e,n)=>{n.d(e,{L:()=>i});var s=n(1180);class i{constructor(){this.subscriptions=[]}add(t){return(0,s.y4)(this.subscriptions,t),()=>(0,s.cl)(this.subscriptions,t)}notify(t,e,n){const s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,n);else for(let i=0;i<s;i++){const s=this.subscriptions[i];s&&s(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},1818:(t,e,n)=>{n.d(e,{w:()=>s});const s=t=>1e3*t},432:(t,e,n)=>{function s(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>s})},1421:(t,e,n)=>{n.d(e,{B:()=>l});var s=n(5951),i=n(8313),o=n(1065),r=n(432);class a{constructor(t,e={}){var n;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=s.w;this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,i.Z_.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>i.Z_.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new o.L);const n=this.events[t].add(e);return"change"===t?()=>{n(),i.Z_.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,r.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e)||null,this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function l(t,e){return new a(t,e)}},4775:(t,e,n)=>{n.d(e,{$:()=>i});var s=n(6077);const i={test:(0,n(8810).i)("#"),parse:function(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}},transform:s.m.transform}},5193:(t,e,n)=>{n.d(e,{J:()=>a});var s=n(8366),i=n(5713),o=n(6933),r=n(8810);const a={test:(0,r.i)("hsl","hue"),parse:(0,r.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+i.aQ.transform((0,o.Nw)(e))+", "+i.aQ.transform((0,o.Nw)(n))+", "+(0,o.Nw)(s.Fq.transform(r))+")"}},2890:(t,e,n)=>{n.d(e,{$:()=>a});var s=n(6933),i=n(4775),o=n(5193),r=n(6077);const a={test:t=>r.m.test(t)||i.$.test(t)||o.J.test(t),parse:t=>r.m.test(t)?r.m.parse(t):o.J.test(t)?o.J.parse(t):i.$.parse(t),transform:t=>(0,s.HD)(t)?t:t.hasOwnProperty("red")?r.m.transform(t):o.J.transform(t)}},6077:(t,e,n)=>{n.d(e,{m:()=>l});var s=n(9043),i=n(8366),o=n(6933),r=n(8810);const a={...i.Rx,transform:t=>Math.round((t=>(0,s.u)(0,255,t))(t))},l={test:(0,r.i)("rgb","red"),parse:(0,r.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,o.Nw)(i.Fq.transform(s))+")"}},8810:(t,e,n)=>{n.d(e,{d:()=>o,i:()=>i});var s=n(6933);const i=(t,e)=>n=>Boolean((0,s.HD)(n)&&s.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),o=(t,e,n)=>i=>{if(!(0,s.HD)(i))return i;const[o,r,a,l]=i.match(s.KP);return{[t]:parseFloat(o),[e]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},8673:(t,e,n)=>{n.d(e,{h:()=>l});var s=n(26),i=n(6933);const o=new Set(["brightness","contrast","saturate","opacity"]);function r(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[s]=n.match(i.KP)||[];if(!s)return t;const r=n.replace(s,"");let a=o.has(e)?1:0;return s!==n&&(a*=100),e+"("+a+r+")"}const a=/([a-z-]*)\(.*?\)/g,l={...s.P,getAnimatableNone:t=>{const e=t.match(a);return e?e.map(r).join(" "):t}}},26:(t,e,n)=>{n.d(e,{P:()=>d,V:()=>l});var s=n(2890),i=n(8366),o=n(6933);const r="${c}",a="${n}";function l(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0,l=0;const c=t.match(o.dA);c&&(n=c.length,t=t.replace(o.dA,r),e.push(...c.map(s.$.parse)));const u=t.match(o.KP);return u&&(l=u.length,t=t.replace(o.KP,a),e.push(...u.map(i.Rx.parse))),{values:e,numColors:n,numNumbers:l,tokenised:t}}function c(t){return l(t).values}function u(t){const{values:e,numColors:n,tokenised:i}=l(t),c=e.length;return t=>{let e=i;for(let i=0;i<c;i++)e=e.replace(i<n?r:a,i<n?s.$.transform(t[i]):(0,o.Nw)(t[i]));return e}}const h=t=>"number"==typeof t?0:t;const d={test:function(t){var e,n;return isNaN(t)&&(0,o.HD)(t)&&((null===(e=t.match(o.KP))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(o.dA))||void 0===n?void 0:n.length)||0)>0},parse:c,createTransformer:u,getAnimatableNone:function(t){const e=c(t);return u(t)(e.map(h))}}},8366:(t,e,n)=>{n.d(e,{Fq:()=>o,Rx:()=>i,bA:()=>r});var s=n(9043);const i={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...i,transform:t=>(0,s.u)(0,1,t)},r={...i,default:1}},5713:(t,e,n)=>{n.d(e,{$C:()=>u,RW:()=>o,aQ:()=>r,px:()=>a,vh:()=>l,vw:()=>c});var s=n(6933);const i=t=>({test:e=>(0,s.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),o=i("deg"),r=i("%"),a=i("px"),l=i("vh"),c=i("vw"),u={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},6933:(t,e,n)=>{n.d(e,{HD:()=>a,KP:()=>i,Nw:()=>s,dA:()=>o,mj:()=>r});const s=t=>Math.round(1e5*t)/1e5,i=/(-)?([\d]*\.?[\d])+/g,o=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,r=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a(t){return"string"==typeof t}},7846:(t,e,n)=>{n.d(e,{i:()=>s});const s=t=>Boolean(t&&t.getVelocity)}},e={};function n(s){var i=e[s];if(void 0!==i)return i.exports;var o=e[s]={exports:{}};return t[s](o,o.exports,n),o.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 s in e)n.o(e,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(3609),e=n(2634),s=n(9340),i=n(409),o=n(8313),r=n(1818),a=n(6477),l=n(9820);const c=(t,e)=>Math.abs(t-e);var u=n(5951),h=n(2426);class d{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=f(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=c(t.x,e.x),s=c(t.y,e.y);return Math.sqrt(n**2+s**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:s}=t,{timestamp:i}=u.w;this.history.push({...s,timestamp:i});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=p(e,this.transformPagePoint),o.Z_.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:s}=this.handlers,i=f("pointercancel"===t.type?this.lastMoveEventInfo:p(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),s&&s(t,i)},!(0,h.D)(t))return;this.handlers=e,this.transformPagePoint=n;const s=p((0,i.Q)(t),this.transformPagePoint),{point:r}=s,{timestamp:d}=u.w;this.history=[{...r,timestamp:d}];const{onSessionStart:m}=e;m&&m(t,f(s,this.history)),this.removeListeners=(0,l.z)((0,a.a)(window,"pointermove",this.handlePointerMove),(0,a.a)(window,"pointerup",this.handlePointerUp),(0,a.a)(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),o.qY.update(this.updatePoint)}}function p(t,e){return e?{point:e(t.point)}:t}function m(t,e){return{x:t.x-e.x,y:t.y-e.y}}function f({point:t},e){return{point:t,delta:m(t,v(e)),offset:m(t,g(e)),velocity:y(e,.1)}}function g(t){return t[0]}function v(t){return t[t.length-1]}function y(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=v(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>(0,r.w)(e)));)n--;if(!s)return{x:0,y:0};const o=(i.timestamp-s.timestamp)/1e3;if(0===o)return{x:0,y:0};const a={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var x=n(5856),P=n(3491),b=n(918),w=n(5430);function T(t){return t.max-t.min}function A(t,e=0,n=.01){return Math.abs(t-e)<=n}function C(t,e,n,s=.5){t.origin=s,t.originPoint=(0,w.C)(e.min,e.max,t.origin),t.scale=T(n)/T(e),(A(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,w.C)(n.min,n.max,t.origin)-t.originPoint,(A(t.translate)||isNaN(t.translate))&&(t.translate=0)}function V(t,e,n,s){C(t.x,e.x,n.x,s?s.originX:void 0),C(t.y,e.y,n.y,s?s.originY:void 0)}function E(t,e,n){t.min=n.min+e.min,t.max=t.min+T(e)}function S(t,e,n){t.min=e.min-n.min,t.max=t.min+T(e)}function D(t,e,n){S(t.x,e.x,n.x),S(t.y,e.y,n.y)}var M=n(9043);function L(t,{min:e,max:n},s){return void 0!==e&&t<e?t=s?(0,w.C)(e,t,s.min):Math.max(t,e):void 0!==n&&t>n&&(t=s?(0,w.C)(n,t,s.max):Math.min(t,n)),t}function k(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 R(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function B(t,e){let n=.5;const s=T(t),i=T(e);return i>s?n=(0,b.Y)(e.min,e.max-s,t.min):s>i&&(n=(0,b.Y)(t.min,t.max-i,e.min)),(0,M.u)(0,1,n)}const F=.35;function O(t,e,n){return{min:j(t,e),max:j(t,n)}}function j(t,e){return"number"==typeof t?t:t[e]||0}var I=n(7921),$=n(1397);function U(t){return[t("x"),t("y")]}var N=n(8834),Z=n(483),Y=n(6949),z=n(5713),W=n(6405);const H=new WeakMap;class q{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,$.dO)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new d(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor((0,i.Q)(t,"page").point)},onStart:(t,e)=>{const{drag:n,dragPropagation:s,onDragStart:i}=this.getProps();if(n&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,x.fJ)(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U((t=>{let e=this.getAxisMotionValue(t).get()||0;if(z.aQ.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const s=n.layout.layoutBox[t];if(s){e=T(s)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),i&&i(t,e);const{animationState:o}=this.visualElement;o&&o.setActive(I.r.Drag,!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:s,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(s&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(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:s}=e;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&i(t,e)}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive(I.r.Drag,!1)}updateAxis(t,e,n){const{drag:s}=this.getProps();if(!n||!X(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=L(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},s=this.constraints;t&&(0,P.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(t,{top:e,left:n,bottom:s,right:i}){return{x:k(t.x,n,i),y:k(t.y,e,s)}}(n.layoutBox,t),this.elastic=function(t=F){return!1===t?t=0:!0===t&&(t=F),{x:O(t,"left","right"),y:O(t,"top","bottom")}}(e),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&U((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!(0,P.I)(t))return!1;const n=t.current;(0,s.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 o=(0,N.z)(n,i.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:R(t.x,e.x),y:R(t.y,e.y)}}(i.layout.layoutBox,o);if(e){const t=e((0,Z.z2)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,Z.i8)(t))}return r}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=U((r=>{if(!X(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const c=s?200:1e6,u=s?40:1e7,h={type:"inertia",velocity:n?t[r]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(r,h)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start((0,W.Z)(t,n,0,e))}stopAnimation(){U((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){const e="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),s=n[e];return s||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){U((e=>{const{drag:n}=this.getProps();if(!X(e,n,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(e);if(s&&s.layout){const{min:n,max:o}=s.layout.layoutBox[e];i.set(t[e]-(0,w.C)(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!(0,P.I)(e)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};U((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();s[t]=B({min:n,max:n},this.constraints[t])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),U((e=>{if(!X(e,t,null))return;const n=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];n.set((0,w.C)(i,o,s[e]))}))}addListeners(){if(!this.visualElement.current)return;H.set(this.visualElement,this);const t=this.visualElement.current,e=(0,a.a)(t,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),n=()=>{const{dragConstraints:t}=this.getProps();(0,P.I)(t)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),n();const o=(0,Y.E)(window,"resize",(()=>this.scalePositionWithinConstraints())),r=s.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(U((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{o(),e(),i(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=F,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:r}}}function X(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}class G extends t.L{constructor(t){super(t),this.removeGroupControls=e.Z,this.removeListeners=e.Z,this.controls=new q(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||e.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}class _ extends t.L{constructor(){super(...arguments),this.removePointerDownListener=e.Z}onPointerDown(t){this.session=new d(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:t,onStart:e,onMove:n,onEnd:(t,e)=>{delete this.session,s&&s(t,e)}}}mount(){this.removePointerDownListener=(0,a.a)(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var K=n(1421),J=n(7846);var Q=n(1065),tt=n(7110);const et=["TopLeft","TopRight","BottomLeft","BottomRight"],nt=et.length,st=t=>"string"==typeof t?parseFloat(t):t,it=t=>"number"==typeof t||z.px.test(t);function ot(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const rt=lt(0,.5,tt.Bn),at=lt(.5,.95,e.Z);function lt(t,e,n){return s=>s<t?0:s>e?1:n((0,b.Y)(t,e,s))}function ct(t,e){t.min=e.min,t.max=e.max}function ut(t,e){ct(t.x,e.x),ct(t.y,e.y)}var ht=n(1360);function dt(t,e,n,s,i){return t-=e,t=(0,ht.q2)(t,1/n,s),void 0!==i&&(t=(0,ht.q2)(t,1/i,s)),t}function pt(t,e,[n,s,i],o,r){!function(t,e=0,n=1,s=.5,i,o=t,r=t){z.aQ.test(e)&&(e=parseFloat(e),e=(0,w.C)(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=(0,w.C)(o.min,o.max,s);t===o&&(a-=e),t.min=dt(t.min,e,n,a,i),t.max=dt(t.max,e,n,a,i)}(t,e[n],e[s],e[i],e.scale,o,r)}const mt=["x","scaleX","originX"],ft=["y","scaleY","originY"];function gt(t,e,n,s){pt(t.x,e,mt,n?n.x:void 0,s?s.x:void 0),pt(t.y,e,ft,n?n.y:void 0,s?s.y:void 0)}var vt=n(7101);function yt(t){return 0===t.translate&&1===t.scale}function xt(t){return yt(t.x)&&yt(t.y)}function Pt(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 bt(t){return T(t.x)/T(t.y)}var wt=n(1180);class Tt{constructor(){this.members=[]}add(t){(0,wt.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,wt.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){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;!1===s&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var At=n(798);function Ct(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(s=`translate3d(${i}px, ${o}px, 0) `),1===e.x&&1===e.y||(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:t,rotateX:e,rotateY:i}=n;t&&(s+=`rotate(${t}deg) `),e&&(s+=`rotateX(${e}deg) `),i&&(s+=`rotateY(${i}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return 1===r&&1===a||(s+=`scale(${r}, ${a})`),s||"none"}var Vt=n(4918);const Et=(t,e)=>t.depth-e.depth;class St{constructor(){this.children=[],this.isDirty=!1}add(t){(0,wt.y4)(this.children,t),this.isDirty=!0}remove(t){(0,wt.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Et),this.isDirty=!1,this.children.forEach(t)}}var Dt=n(7048);function Mt(t){const e=(0,J.i)(t)?t.get():t;return(0,Dt.p)(e)?e.toValue():e}const Lt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var kt=n(2866);const Rt=["","X","Y","Z"];let Bt=0;function Ft({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(t,n={},s=(null==e?void 0:e())){this.id=Bt++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(It),this.nodes.forEach(Yt),this.nodes.forEach(zt)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=t,this.latestValues=n,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.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 St)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Q.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;const{layoutId:s,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(i||s)&&(this.isLayoutDirty=!0),t){let n;const s=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=(0,kt.g)(s,250),Lt.hasAnimatedSinceResize&&(Lt.hasAnimatedSinceResize=!1,this.nodes.forEach(Zt))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&o&&(s||i)&&this.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:s})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||o.getDefaultTransition()||_t,{onLayoutAnimationStart:r,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!Pt(this.targetLayout,s)||n,c=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,c);const e={...(0,vt.ev)(i,"layout"),onPlay:r,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||Zt(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,o.qY.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Wt),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){const e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ut);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Kt),this.potentialNodes.clear()),this.nodes.forEach(Nt),this.nodes.forEach(Ot),this.nodes.forEach(jt),this.clearAllSnapshots(),o.iW.update(),o.iW.preRender(),o.iW.render())}clearAllSnapshots(){this.nodes.forEach($t),this.sharedNodes.forEach(Ht)}scheduleUpdateProjection(){o.Z_.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){o.Z_.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){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 t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,$.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:s(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!xt(this.projectionDelta),n=this.getTransformTemplate(),s=n?n(this.latestValues,""):void 0,o=s!==this.prevTransformTemplateValue;t&&(e||(0,Vt.ud)(this.latestValues)||o)&&(i(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let n=this.removeElementScroll(e);var s;return t&&(n=this.removeTransform(n)),Jt((s=n).x),Jt(s.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:t}=this.options;if(!t)return(0,$.dO)();const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&((0,ht.am)(e.x,n.offset.x),(0,ht.am)(e.y,n.offset.y)),e}removeElementScroll(t){const e=(0,$.dO)();ut(e,t);for(let n=0;n<this.path.length;n++){const s=this.path[n],{scroll:i,options:o}=s;if(s!==this.root&&i&&o.layoutScroll){if(i.isRoot){ut(e,t);const{scroll:n}=this.root;n&&((0,ht.am)(e.x,-n.offset.x),(0,ht.am)(e.y,-n.offset.y))}(0,ht.am)(e.x,i.offset.x),(0,ht.am)(e.y,i.offset.y)}}return e}applyTransform(t,e=!1){const n=(0,$.dO)();ut(n,t);for(let t=0;t<this.path.length;t++){const s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(0,ht.D2)(n,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,Vt.ud)(s.latestValues)&&(0,ht.D2)(n,s.latestValues)}return(0,Vt.ud)(this.latestValues)&&(0,ht.D2)(n,this.latestValues),n}removeTransform(t){const e=(0,$.dO)();ut(e,t);for(let t=0;t<this.path.length;t++){const n=this.path[t];if(!n.instance)continue;if(!(0,Vt.ud)(n.latestValues))continue;(0,Vt.Lj)(n.latestValues)&&n.updateSnapshot();const s=(0,$.dO)();ut(s,n.measurePageBox()),gt(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,s)}return(0,Vt.ud)(this.latestValues)&&gt(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){const t=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:e,layoutId:n}=this.options;if(this.layout&&(e||n)){if(!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout?(this.relativeParent=t,this.relativeTarget=(0,$.dO)(),this.relativeTargetOrigin=(0,$.dO)(),D(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),ut(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}var s,i,o;if(this.relativeTarget||this.targetDelta)if(this.target||(this.target=(0,$.dO)(),this.targetWithTransforms=(0,$.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(s=this.target,i=this.relativeTarget,o=this.relativeParent.target,E(s.x,i.x,o.x),E(s.y,i.y,o.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):ut(this.target,this.layout.layoutBox),(0,ht.o2)(this.target,this.targetDelta)):ut(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target?(this.relativeParent=t,this.relativeTarget=(0,$.dO)(),this.relativeTargetOrigin=(0,$.dO)(),D(this.relativeTargetOrigin,this.target,t.target),ut(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(this.parent&&!(0,Vt.Lj)(this.parent.latestValues)&&!(0,Vt.D_)(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta||this.parent.options.layoutRoot)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){const{isProjectionDirty:t,isTransformDirty:e}=this;this.isProjectionDirty=this.isTransformDirty=!1;const n=this.getLead(),s=Boolean(this.resumingFrom)||this!==n;let i=!0;if(t&&(i=!1),s&&e&&(i=!1),i)return;const{layout:o,layoutId:r}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!r)return;ut(this.layoutCorrected,this.layout.layoutBox),(0,ht.YY)(this.layoutCorrected,this.treeScale,this.path,s);const{target:a}=n;if(!a)return;this.projectionDelta||(this.projectionDelta=(0,$.wc)(),this.projectionDeltaWithTransform=(0,$.wc)());const l=this.treeScale.x,c=this.treeScale.y,u=this.projectionTransform;V(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Ct(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===l&&this.treeScale.y===c||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){const n=this.snapshot,s=n?n.latestValues:{},i={...this.latestValues},o=(0,$.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r=(0,$.dO)(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(Gt));this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,h,d,p;qt(o.x,t.x,n),qt(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(D(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,h=this.relativeTargetOrigin,d=r,p=n,Xt(l.x,h.x,d.x,p),Xt(l.y,h.y,d.y,p)),a&&(this.animationValues=i,function(t,e,n,s,i,o){i?(t.opacity=(0,w.C)(0,void 0!==n.opacity?n.opacity:1,rt(s)),t.opacityExit=(0,w.C)(void 0!==e.opacity?e.opacity:1,0,at(s))):o&&(t.opacity=(0,w.C)(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,s));for(let i=0;i<nt;i++){const o=`border${et[i]}Radius`;let r=ot(e,o),a=ot(n,o);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||it(r)===it(a)?(t[o]=Math.max((0,w.C)(st(r),st(a),s),0),(z.aQ.test(a)||z.aQ.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,w.C)(e.rotate||0,n.rotate||0,s))}(i,s,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(o.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=o.Z_.update((()=>{Lt.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const s=(0,J.i)(t)?t:(0,K.B)(t);return s.start((0,W.Z)("",s,e,n)),{stop:()=>s.stop(),isAnimating:()=>s.isAnimating()}}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:s,latestValues:i}=t;if(e&&n&&s){if(this!==t&&this.layout&&s&&Qt(this.options.animationType,this.layout.layoutBox,s.layoutBox)){n=this.target||(0,$.dO)();const e=T(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const s=T(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+s}ut(e,n),(0,ht.D2)(e,i),V(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Tt);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}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 s=this.getStack();s&&s.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;const s={};for(let e=0;e<Rt.length;e++){const i="rotate"+Rt[e];n[i]&&(s[i]=n[i],t.setStaticValue(i,0))}t.render();for(const e in s)t.setStaticValue(e,s[e]);t.scheduleRender()}getProjectionStyles(t={}){var e,n;const s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";const i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Mt(t.pointerEvents)||"",s.transform=i?i(this.latestValues,""):"none",s;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Mt(t.pointerEvents)||""),this.hasProjected&&!(0,Vt.ud)(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}const r=o.animationValues||o.latestValues;this.applyTransformsToTarget(),s.transform=Ct(this.projectionDeltaWithTransform,this.treeScale,r),i&&(s.transform=i(r,s.transform));const{x:a,y:l}=this.projectionDelta;s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?s.opacity=o===this?null!==(n=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:s.opacity=o===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const t in At.P){if(void 0===r[t])continue;const{correct:e,applyTo:n}=At.P[t],i="none"===s.transform?r[t]:e(r[t],o);if(n){const t=n.length;for(let e=0;e<t;e++)s[n[e]]=i}else s[t]=i}return this.options.layoutId&&(s.pointerEvents=o===this?Mt(t.pointerEvents)||"":"none"),s}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(Ut),this.root.sharedNodes.clear()}}}function Ot(t){t.updateLayout()}function jt(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:s}=t.layout,{animationType:i}=t.options,o=n.source!==t.layout.source;"size"===i?U((t=>{const s=o?n.measuredBox[t]:n.layoutBox[t],i=T(s);s.min=e[t].min,s.max=s.min+i})):Qt(i,n.layoutBox,e)&&U((t=>{const s=o?n.measuredBox[t]:n.layoutBox[t],i=T(e[t]);s.max=s.min+i}));const r=(0,$.wc)();V(r,e,n.layoutBox);const a=(0,$.wc)();o?V(a,t.applyTransform(s,!0),n.measuredBox):V(a,e,n.layoutBox);const l=!xt(r);let c=!1;if(!t.resumeFrom){const s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){const{snapshot:i,layout:o}=s;if(i&&o){const r=(0,$.dO)();D(r,n.layoutBox,i.layoutBox);const a=(0,$.dO)();D(a,e,o.layoutBox),Pt(r,a)||(c=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function It(t){t.isProjectionDirty||(t.isProjectionDirty=Boolean(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=Boolean(t.parent&&t.parent.isTransformDirty))}function $t(t){t.clearSnapshot()}function Ut(t){t.clearMeasurements()}function Nt(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Zt(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function Yt(t){t.resolveTargetDelta()}function zt(t){t.calcProjection()}function Wt(t){t.resetRotation()}function Ht(t){t.removeLeadSnapshot()}function qt(t,e,n){t.translate=(0,w.C)(e.translate,0,n),t.scale=(0,w.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Xt(t,e,n,s){t.min=(0,w.C)(e.min,n.min,s),t.max=(0,w.C)(e.max,n.max,s)}function Gt(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const _t={duration:.45,ease:[.4,0,.1,1]};function Kt(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 s=(n&&n!==t.root?n.instance:document).querySelector(`[data-projection-id="${e}"]`);s&&t.mount(s,!0)}function Jt(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function Qt(t,e,n){return"position"===t||"preserve-aspect"===t&&!A(bt(e),bt(n),.2)}const te=Ft({attachResizeListener:(t,e)=>(0,Y.E)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ee={current:void 0},ne=Ft({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ee.current){const t=new te(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),ee.current=t}return ee.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),se=void 0;var ie=n.n(se);const oe=(0,se.createContext)(null);const re=(0,se.createContext)({}),ae=(0,se.createContext)({});function le(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ce={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!z.px.test(t))return t;t=parseFloat(t)}return`${le(t,e.target.x)}% ${le(t,e.target.y)}%`}};var ue=n(6978),he=n(26);const de="_$css",pe={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=t.includes("var("),o=[];i&&(t=t.replace(ue.Xp,(t=>(o.push(t),de))));const r=he.P.parse(t);if(r.length>5)return s;const a=he.P.createTransformer(t),l="number"!=typeof r[0]?1:0,c=n.x.scale*e.x,u=n.y.scale*e.y;r[0+l]/=c,r[1+l]/=u;const h=(0,w.C)(c,u,.5);"number"==typeof r[2+l]&&(r[2+l]/=h),"number"==typeof r[3+l]&&(r[3+l]/=h);let d=a(r);if(i){let t=0;d=d.replace(de,(()=>{const e=o[t];return t++,e}))}return d}};class me extends ie().Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:s}=this.props,{projection:i}=t;(0,At.B)(ge),i&&(e.group&&e.group.add(i),n&&n.register&&s&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Lt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:s,isPresent:i}=this.props,r=n.projection;return r?(r.isPresent=i,s||t.layoutDependency!==e||void 0===e?r.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?r.promote():r.relegate()||o.Z_.postRender((()=>{const t=r.getStack();t&&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:s}=t;s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function fe(t){const[e,n]=function(){const t=(0,se.useContext)(oe);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=(0,se.useId)();return(0,se.useEffect)((()=>s(i)),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}(),s=(0,se.useContext)(re);return ie().createElement(me,{...t,layoutGroup:s,switchLayoutGroup:(0,se.useContext)(ae),isPresent:e,safeToRemove:n})}const ge={borderRadius:{...ce,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ce,borderTopRightRadius:ce,borderBottomLeftRadius:ce,borderBottomRightRadius:ce,boxShadow:pe},ve={pan:{Feature:_},drag:{Feature:G,ProjectionNode:ne,MeasureLayout:fe}},ye={layout:{ProjectionNode:ne,MeasureLayout:fe}};n(3611).H})()})();
@@ -1 +1 @@
1
- (()=>{"use strict";var t={4317:t=>{var e=new Error("Cannot find module ''");throw e.code="MODULE_NOT_FOUND",e}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{const t=void 0;var e=n.n(t);const r=(0,t.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),o=(0,t.createContext)({});const a=(0,t.createContext)(null),s="undefined"!=typeof document,i=s?t.useLayoutEffect:t.useEffect,c=(0,t.createContext)({strict:!1});function u(e,n,s,u){const l=(0,t.useContext)(o).visualElement,f=(0,t.useContext)(c),d=(0,t.useContext)(a),m=(0,t.useContext)(r).reducedMotion,p=(0,t.useRef)();u=u||f.renderer,!p.current&&u&&(p.current=u(e,{visualState:n,parent:l,props:s,presenceId:d?d.id:void 0,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:m}));const g=p.current;i((()=>{g&&g.render()}));return(window.HandoffAppearAnimations?i:t.useEffect)((()=>{g&&g.animationState&&g.animationState.animateChanges()})),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 E=(0,t.createContext)({}),O=Symbol.for("motionComponentSymbol");function V({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:A(m)},{isStatic:h}=y;let C=null;const O=g(m),V=h?void 0:w((()=>{if(x)return b++})),T=f(m,h);if(!h&&s){O.visualElement=u(d,T,y,n);const r=(0,t.useContext)(E);O.visualElement&&(C=O.visualElement.loadFeatures(y,(0,t.useContext)(c).strict,e,V,a||v.projectionNodeConstructor,r))}return t.createElement(S,{visualElement:O.visualElement,props:y},C,t.createElement(o.Provider,{value:O},i(d,m,V,l(T,O.visualElement,p),T,h,O.visualElement)))}));return m[O]=d,m}function A({layoutId:e}){const n=(0,t.useContext)(C).id;return n&&void 0!==e?n+"-"+e:e}const T=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function k(t){return"string"==typeof t&&!t.includes("-")&&!!(T.indexOf(t)>-1||/[A-Z]/.test(t))}const L={};const M=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],P=new Set(M);function W(t,{layout:e,layoutId:n}){return P.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!L[t]||"opacity"===t)}const j=t=>!!(null==t?void 0:t.getVelocity),R={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},B=(t,e)=>M.indexOf(t)-M.indexOf(e);function D(t){return t.startsWith("--")}const X=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Y={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},H={...Y,transform:t=>((t,e,n)=>Math.min(Math.max(n,t),e))(0,1,t)},F={...Y,default:1};const $=t=>({test:e=>function(t){return"string"==typeof t}(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),I=$("deg"),Z=$("%"),N=$("px"),U=($("vh"),$("vw"),{...Z,parse:t=>Z.parse(t)/100,transform:t=>Z.transform(100*t)}),z={...Y,transform:Math.round},K={borderWidth:N,borderTopWidth:N,borderRightWidth:N,borderBottomWidth:N,borderLeftWidth:N,borderRadius:N,radius:N,borderTopLeftRadius:N,borderTopRightRadius:N,borderBottomRightRadius:N,borderBottomLeftRadius:N,width:N,maxWidth:N,height:N,maxHeight:N,size:N,top:N,right:N,bottom:N,left:N,padding:N,paddingTop:N,paddingRight:N,paddingBottom:N,paddingLeft:N,margin:N,marginTop:N,marginRight:N,marginBottom:N,marginLeft:N,rotate:I,rotateX:I,rotateY:I,rotateZ:I,scale:F,scaleX:F,scaleY:F,scaleZ:F,skew:I,skewX:I,skewY:I,distance:N,translateX:N,translateY:N,translateZ:N,x:N,y:N,z:N,perspective:N,transformPerspective:N,opacity:H,originX:U,originY:U,originZ:N,zIndex:z,fillOpacity:H,strokeOpacity:H,numOctaves:z};function _(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(D(t)){a[t]=n;continue}const r=K[t],d=X(n,r);if(P.has(t)){if(u=!0,s[t]=d,i.push(t),!f)continue;n!==(r.default||0)&&(f=!1)}else t.startsWith("origin")?(l=!0,c[t]=d):o[t]=d}if(e.transform||(u||r?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,a){let s="";e.sort(B);for(const n of e)s+=`${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):o.transform&&(o.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:n=0}=c;o.transformOrigin=`${t} ${e} ${n}`}}const q=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function G(t,e,n){for(const r in e)j(e[r])||W(r,n)||(t[r]=e[r])}function J(e,n,r){const o={};return G(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return(0,t.useMemo)((()=>{const t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return _(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)}),[n])}(e,n,r)),e.transformValues?e.transformValues(o):o}function Q(t,e,n){const r={},o=J(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")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}const tt=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function et(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||tt.has(t)}let nt=t=>!et(t);try{(rt=n(4317).default)&&(nt=t=>t.startsWith("on")?!et(t):rt(t))}catch(t){}var rt;function ot(t,e,n){return"string"==typeof t?t:N.transform(e+n*t)}const at={offset:"stroke-dashoffset",array:"stroke-dasharray"},st={offset:"strokeDashoffset",array:"strokeDasharray"};function it(t,{attrX:e,attrY:n,originX:r,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:i=0,...c},u,l,f){if(_(t,c,u,f),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:m,dimensions:p}=t;d.transform&&(p&&(m.transform=d.transform),delete d.transform),p&&(void 0!==r||void 0!==o||m.transform)&&(m.transformOrigin=function(t,e,n){return`${ot(e,t.x,t.width)} ${ot(n,t.y,t.height)}`}(p,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==a&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const a=o?at:st;t[a.offset]=N.transform(-r);const s=N.transform(e),i=N.transform(n);t[a.array]=`${s} ${i}`}(d,a,s,i,!1)}const ct=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}}),ut=t=>"string"==typeof t&&"svg"===t.toLowerCase();function lt(e,n,r,o){const a=(0,t.useMemo)((()=>{const t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}};return it(t,n,{enableHardwareAcceleration:!1},ut(o),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};G(t,e.style,e),a.style={...t,...a.style}}return a}function ft(e=!1){return(n,r,o,a,{latestValues:s},i)=>{const c=(k(n)?lt:Q)(r,s,i,n),u=function(t,e,n){const r={};for(const o in t)"values"===o&&"object"==typeof t.values||(nt(o)||!0===n&&et(o)||!e&&!et(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(r,"string"==typeof n,e),l={...u,...c,ref:a},{children:f}=r,d=(0,t.useMemo)((()=>j(f)?f.get():f),[f]);return o&&(l["data-projection-id"]=o),(0,t.createElement)(n,{...l,children:d})}}const dt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function 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,e){const{style:n}=t,r={};for(const o in n)(j(n[o])||e.style&&j(e.style[o])||W(o,t))&&(r[o]=n[o]);return r}function gt(t){const e=j(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,e){const n=pt(t,e);for(const r in t)if(j(t[r])||j(e[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=t[r]}return n},createRenderState:ct,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}}it(n,r,{enableHardwareAcceleration:!1},ut(e.tagName),t.transformTemplate),mt(e,n)}})},wt={useVisualState:yt({scrapeMotionValuesFromProps:pt,createRenderState:q})};!function(t){function e(e,n={}){return V(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)?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}(()=>{const t=void 0,e=(0,t.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),r=(0,t.createContext)({});const o=(0,t.createContext)(null),a="undefined"!=typeof document,s=a?t.useLayoutEffect:t.useEffect,i=(0,t.createContext)({strict:!1});function u(n,a,u,c){const l=(0,t.useContext)(r).visualElement,f=(0,t.useContext)(i),d=(0,t.useContext)(o),m=(0,t.useContext)(e).reducedMotion,p=(0,t.useRef)();c=c||f.renderer,!p.current&&c&&(p.current=c(n,{visualState:a,parent:l,props:u,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:m}));const g=p.current;(0,t.useInsertionEffect)((()=>{g&&g.update(u,d)})),s((()=>{g&&g.render()})),(0,t.useEffect)((()=>{g&&g.updateFeatures()}));return(window.HandoffAppearAnimations?s:t.useEffect)((()=>{g&&g.animationState&&g.animationState.animateChanges()})),g}function c(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 l(t){return"string"==typeof t||Array.isArray(t)}function f(t){return"object"==typeof t&&"function"==typeof t.start}const d=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function m(t){return f(t.animate)||d.some((e=>l(t[e])))}function p(e){const{initial:n,animate:o}=function(t,e){if(m(t)){const{initial:e,animate:n}=t;return{initial:!1===e||l(e)?e:void 0,animate:l(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,(0,t.useContext)(r));return(0,t.useMemo)((()=>({initial:n,animate:o})),[g(n),g(o)])}function g(t){return Array.isArray(t)?t.join(" "):t}const y={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},h={};for(const t in y)h[t]={isEnabled:e=>y[t].some((t=>!!e[t]))};function v(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}const w=!1;let x=1;const b=(0,t.createContext)({}),C=(0,t.createContext)({}),S=Symbol.for("motionComponentSymbol");function E({preloadedFeatures:n,createVisualElement:o,useRender:s,useVisualState:l,Component:f}){n&&function(t){for(const e in t)h[e]={...h[e],...t[e]}}(n);const d=(0,t.forwardRef)((function(d,m){let g;const y={...(0,t.useContext)(e),...d,layoutId:V(d)},{isStatic:h}=y,b=p(d),S=h?void 0:v((()=>{if(w)return x++})),E=l(d,h);if(!h&&a){b.visualElement=u(f,E,y,o);const e=(0,t.useContext)(C),r=(0,t.useContext)(i).strict;b.visualElement&&(g=b.visualElement.loadFeatures(y,r,n,S,e))}return t.createElement(r.Provider,{value:b},g&&b.visualElement?t.createElement(g,{visualElement:b.visualElement,...y}):null,s(f,d,S,c(E,b.visualElement,m),E,h,b.visualElement))}));return d[S]=f,d}function V({layoutId:e}){const n=(0,t.useContext)(b).id;return n&&void 0!==e?n+"-"+e:e}const A=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function T(t){return"string"==typeof t&&!t.includes("-")&&!!(A.indexOf(t)>-1||/[A-Z]/.test(t))}const k={};const O=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],L=new Set(O);function M(t,{layout:e,layoutId:n}){return L.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!k[t]||"opacity"===t)}const P=t=>Boolean(t&&t.getVelocity),W={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},R=(t,e)=>O.indexOf(t)-O.indexOf(e);function B(t){return t.startsWith("--")}const X=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Y={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},D={...Y,transform:t=>((t,e,n)=>Math.min(Math.max(n,t),e))(0,1,t)},F={...Y,default:1};const H=t=>({test:e=>function(t){return"string"==typeof t}(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),$=H("deg"),j=H("%"),I=H("px"),Z=(H("vh"),H("vw"),{...j,parse:t=>j.parse(t)/100,transform:t=>j.transform(100*t)}),z={...Y,transform:Math.round},K={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:$,rotateX:$,rotateY:$,rotateZ:$,scale:F,scaleX:F,scaleY:F,scaleZ:F,skew:$,skewX:$,skewY:$,distance:I,translateX:I,translateY:I,translateZ:I,x:I,y:I,z:I,perspective:I,transformPerspective:I,opacity:D,originX:Z,originY:Z,originZ:I,zIndex:z,fillOpacity:D,strokeOpacity:D,numOctaves:z};function U(t,e,n,r){const{style:o,vars:a,transform:s,transformKeys:i,transformOrigin:u}=t;i.length=0;let c=!1,l=!1,f=!0;for(const t in e){const n=e[t];if(B(t)){a[t]=n;continue}const r=K[t],d=X(n,r);if(L.has(t)){if(c=!0,s[t]=d,i.push(t),!f)continue;n!==(r.default||0)&&(f=!1)}else t.startsWith("origin")?(l=!0,u[t]=d):o[t]=d}if(e.transform||(c||r?o.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,a){let s="";e.sort(R);for(const n of e)s+=`${W[n]||n}(${t[n]}) `;return n&&!t.z&&(s+="translateZ(0)"),s=s.trim(),a?s=a(t,o?"":s):r&&o&&(s="none"),s}(t,n,f,r):o.transform&&(o.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:n=0}=u;o.transformOrigin=`${t} ${e} ${n}`}}const N=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function _(t,e,n){for(const r in e)P(e[r])||M(r,n)||(t[r]=e[r])}function q(e,n,r){const o={};return _(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return(0,t.useMemo)((()=>{const t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return U(t,n,{enableHardwareAcceleration:!r},e),Object.assign({},t.vars,t.style)}),[n])}(e,n,r)),e.transformValues?e.transformValues(o):o}function G(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")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}const J=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Q(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||J.has(t)}let tt=t=>!Q(t);try{(et=n(4317).default)&&(tt=t=>t.startsWith("on")?!Q(t):et(t))}catch(t){}var et;function nt(t,e,n){return"string"==typeof t?t:I.transform(e+n*t)}const rt={offset:"stroke-dashoffset",array:"stroke-dasharray"},ot={offset:"strokeDashoffset",array:"strokeDasharray"};function at(t,{attrX:e,attrY:n,originX:r,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:i=0,...u},c,l,f){if(U(t,u,c,f),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:m,dimensions:p}=t;d.transform&&(p&&(m.transform=d.transform),delete d.transform),p&&(void 0!==r||void 0!==o||m.transform)&&(m.transformOrigin=function(t,e,n){return`${nt(e,t.x,t.width)} ${nt(n,t.y,t.height)}`}(p,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==a&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const a=o?rt:ot;t[a.offset]=I.transform(-r);const s=I.transform(e),i=I.transform(n);t[a.array]=`${s} ${i}`}(d,a,s,i,!1)}const st=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}}),it=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ut(e,n,r,o){const a=(0,t.useMemo)((()=>{const t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}};return at(t,n,{enableHardwareAcceleration:!1},it(o),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};_(t,e.style,e),a.style={...t,...a.style}}return a}function ct(e=!1){return(n,r,o,a,{latestValues:s},i)=>{const u=(T(n)?ut:G)(r,s,i,n),c=function(t,e,n){const r={};for(const o in t)"values"===o&&"object"==typeof t.values||(tt(o)||!0===n&&Q(o)||!e&&!Q(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(r,"string"==typeof n,e),l={...c,...u,ref:a},{children:f}=r,d=(0,t.useMemo)((()=>P(f)?f.get():f),[f]);return o&&(l["data-projection-id"]=o),(0,t.createElement)(n,{...l,children:d})}}const lt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ft(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(lt.has(n)?n:n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.attrs[n])}function dt(t,e){const{style:n}=t,r={};for(const o in n)(P(n[o])||e.style&&P(e.style[o])||M(o,t))&&(r[o]=n[o]);return r}function mt(t){const e=P(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const pt=e=>(n,a)=>{const s=(0,t.useContext)(r),i=(0,t.useContext)(o),u=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,o,a){const s={latestValues:gt(r,o,a,t),renderState:e()};return n&&(s.mount=t=>n(r,t,s)),s}(e,n,s,i);return a?u():v(u)};function gt(t,e,n,r){const o={},a=r(t,{});for(const t in a)o[t]=mt(a[t]);let{initial:s,animate:i}=t;const u=m(t),c=function(t){return Boolean(m(t)||t.variants)}(t);e&&c&&!u&&!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 d=l?i:s;if(d&&"boolean"!=typeof d&&!f(d)){(Array.isArray(d)?d:[d]).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 yt={useVisualState:pt({scrapeMotionValuesFromProps:function(t,e){const n=dt(t,e);for(const r in t)if(P(t[r])||P(e[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=t[r]}return n},createRenderState:st,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}}at(n,r,{enableHardwareAcceleration:!1},it(e.tagName),t.transformTemplate),ft(e,n)}})},ht={useVisualState:pt({scrapeMotionValuesFromProps:dt,createRenderState:N})};!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){return{...T(t)?yt:ht,preloadedFeatures:n,useRender:ct(e),createVisualElement:r,Component:t}}))})()})();