framer-motion 7.0.3 → 7.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +2090 -2304
- package/dist/es/animation/animate.mjs +4 -5
- package/dist/es/animation/animation-controls.mjs +22 -24
- package/dist/es/animation/use-animated-state.mjs +23 -25
- package/dist/es/animation/use-animation.mjs +2 -2
- package/dist/es/animation/utils/default-transitions.mjs +13 -14
- package/dist/es/animation/utils/easing.mjs +20 -21
- package/dist/es/animation/utils/is-animatable.mjs +1 -1
- package/dist/es/animation/utils/is-keyframes-target.mjs +1 -1
- package/dist/es/animation/utils/transitions.mjs +30 -31
- package/dist/es/components/AnimatePresence/PresenceChild.mjs +18 -31
- package/dist/es/components/AnimatePresence/index.mjs +33 -35
- package/dist/es/components/AnimatePresence/use-presence.mjs +5 -5
- package/dist/es/components/AnimateSharedLayout.mjs +4 -5
- package/dist/es/components/LayoutGroup/index.mjs +12 -16
- package/dist/es/components/LazyMotion/index.mjs +9 -10
- package/dist/es/components/MotionConfig/index.mjs +5 -5
- package/dist/es/components/Reorder/Group.mjs +16 -16
- package/dist/es/components/Reorder/Item.mjs +14 -18
- package/dist/es/components/Reorder/index.mjs +3 -3
- package/dist/es/components/Reorder/utils/check-reorder.mjs +6 -6
- package/dist/es/context/DeprecatedLayoutGroupContext.mjs +1 -1
- package/dist/es/context/LayoutGroupContext.mjs +1 -1
- package/dist/es/context/LazyContext.mjs +1 -1
- package/dist/es/context/MotionConfigContext.mjs +2 -2
- package/dist/es/context/MotionContext/create.mjs +2 -2
- package/dist/es/context/MotionContext/index.mjs +1 -1
- package/dist/es/context/MotionContext/utils.mjs +1 -1
- package/dist/es/context/PresenceContext.mjs +1 -1
- package/dist/es/context/ReorderContext.mjs +1 -1
- package/dist/es/context/SwitchLayoutGroupContext.mjs +1 -1
- package/dist/es/events/event-info.mjs +11 -17
- package/dist/es/events/use-dom-event.mjs +4 -5
- package/dist/es/events/use-pointer-event.mjs +2 -2
- package/dist/es/events/utils.mjs +3 -9
- package/dist/es/gestures/PanSession.mjs +42 -47
- package/dist/es/gestures/drag/VisualElementDragControls.mjs +147 -157
- package/dist/es/gestures/drag/use-drag-controls.mjs +10 -12
- package/dist/es/gestures/drag/use-drag.mjs +4 -4
- package/dist/es/gestures/drag/utils/constraints.mjs +12 -17
- package/dist/es/gestures/drag/utils/lock.mjs +17 -17
- package/dist/es/gestures/use-focus-gesture.mjs +3 -4
- package/dist/es/gestures/use-hover-gesture.mjs +2 -3
- package/dist/es/gestures/use-pan-gesture.mjs +9 -10
- package/dist/es/gestures/use-tap-gesture.mjs +5 -6
- package/dist/es/gestures/utils/event-type.mjs +1 -1
- package/dist/es/gestures/utils/is-node-or-child.mjs +1 -1
- package/dist/es/index.mjs +1 -0
- package/dist/es/motion/features/animations.mjs +9 -11
- package/dist/es/motion/features/definitions.mjs +5 -5
- package/dist/es/motion/features/drag.mjs +1 -1
- package/dist/es/motion/features/gestures.mjs +1 -1
- package/dist/es/motion/features/layout/MeasureLayout.mjs +32 -40
- package/dist/es/motion/features/layout/index.mjs +1 -1
- package/dist/es/motion/features/use-features.mjs +8 -9
- package/dist/es/motion/features/use-projection.mjs +10 -11
- package/dist/es/motion/features/viewport/observers.mjs +12 -12
- package/dist/es/motion/features/viewport/use-viewport.mjs +17 -20
- package/dist/es/motion/index.mjs +13 -16
- package/dist/es/motion/utils/VisualElementHandler.mjs +10 -16
- package/dist/es/motion/utils/is-forced-motion-value.mjs +1 -2
- package/dist/es/motion/utils/make-renderless-component.mjs +2 -2
- package/dist/es/motion/utils/use-motion-ref.mjs +1 -1
- package/dist/es/motion/utils/use-visual-element.mjs +13 -13
- package/dist/es/motion/utils/use-visual-state.mjs +26 -31
- package/dist/es/motion/utils/valid-prop.mjs +1 -1
- package/dist/es/projection/animation/mix-values.mjs +12 -16
- package/dist/es/projection/geometry/conversion.mjs +4 -6
- package/dist/es/projection/geometry/delta-apply.mjs +14 -20
- package/dist/es/projection/geometry/delta-calc.mjs +2 -5
- package/dist/es/projection/geometry/delta-remove.mjs +6 -13
- package/dist/es/projection/geometry/models.mjs +7 -7
- package/dist/es/projection/node/DocumentProjectionNode.mjs +5 -5
- package/dist/es/projection/node/HTMLProjectionNode.mjs +8 -10
- package/dist/es/projection/node/create-projection-node.mjs +283 -307
- package/dist/es/projection/node/group.mjs +6 -8
- package/dist/es/projection/node/id.mjs +2 -2
- package/dist/es/projection/node/state.mjs +1 -1
- package/dist/es/projection/shared/stack.mjs +26 -27
- package/dist/es/projection/styles/scale-border-radius.mjs +5 -5
- package/dist/es/projection/styles/scale-box-shadow.mjs +18 -19
- package/dist/es/projection/styles/scale-correction.mjs +1 -1
- package/dist/es/projection/styles/transform.mjs +12 -12
- package/dist/es/projection/use-reset-projection.mjs +2 -2
- package/dist/es/projection/utils/has-transform.mjs +1 -2
- package/dist/es/projection/utils/measure.mjs +2 -2
- package/dist/es/render/dom/create-visual-element.mjs +1 -1
- package/dist/es/render/dom/features-animation.mjs +1 -2
- package/dist/es/render/dom/features-max.mjs +1 -2
- package/dist/es/render/dom/motion-minimal.mjs +1 -1
- package/dist/es/render/dom/motion-proxy.mjs +3 -4
- package/dist/es/render/dom/motion.mjs +2 -5
- package/dist/es/render/dom/use-render.mjs +6 -9
- package/dist/es/render/dom/utils/camel-to-dash.mjs +3 -5
- package/dist/es/render/dom/utils/create-config.mjs +5 -5
- package/dist/es/render/dom/utils/css-variables-conversion.mjs +19 -20
- package/dist/es/render/dom/utils/filter-props.mjs +4 -6
- package/dist/es/render/dom/utils/parse-dom-variant.mjs +2 -2
- package/dist/es/render/dom/utils/unit-conversion.mjs +68 -99
- package/dist/es/render/dom/value-types/animatable-none.mjs +1 -1
- package/dist/es/render/dom/value-types/defaults.mjs +4 -5
- package/dist/es/render/dom/value-types/dimensions.mjs +2 -4
- package/dist/es/render/dom/value-types/find.mjs +2 -3
- package/dist/es/render/dom/value-types/get-as-type.mjs +1 -1
- package/dist/es/render/dom/value-types/number.mjs +2 -2
- package/dist/es/render/dom/value-types/test.mjs +1 -1
- package/dist/es/render/dom/value-types/type-auto.mjs +3 -3
- package/dist/es/render/dom/value-types/type-int.mjs +1 -2
- package/dist/es/render/html/config-motion.mjs +1 -1
- package/dist/es/render/html/use-props.mjs +11 -13
- package/dist/es/render/html/utils/build-styles.mjs +8 -8
- package/dist/es/render/html/utils/build-transform.mjs +11 -16
- package/dist/es/render/html/utils/create-render-state.mjs +2 -2
- package/dist/es/render/html/utils/render.mjs +2 -3
- package/dist/es/render/html/utils/scrape-motion-values.mjs +3 -3
- package/dist/es/render/html/utils/transform.mjs +6 -10
- package/dist/es/render/html/visual-element.mjs +22 -23
- package/dist/es/render/index.mjs +359 -364
- package/dist/es/render/svg/config-motion.mjs +2 -3
- package/dist/es/render/svg/lowercase-elements.mjs +1 -1
- package/dist/es/render/svg/use-props.mjs +5 -6
- package/dist/es/render/svg/utils/build-attrs.mjs +2 -2
- package/dist/es/render/svg/utils/camel-case-attrs.mjs +1 -1
- package/dist/es/render/svg/utils/create-render-state.mjs +1 -2
- package/dist/es/render/svg/utils/path.mjs +7 -10
- package/dist/es/render/svg/utils/render.mjs +1 -1
- package/dist/es/render/svg/utils/scrape-motion-values.mjs +3 -3
- package/dist/es/render/svg/utils/transform-origin.mjs +3 -3
- package/dist/es/render/svg/visual-element.mjs +6 -4
- package/dist/es/render/utils/animation-state.mjs +71 -87
- package/dist/es/render/utils/animation.mjs +48 -60
- package/dist/es/render/utils/compare-by-depth.mjs +1 -3
- package/dist/es/render/utils/flat-tree.mjs +9 -10
- package/dist/es/render/utils/lifecycles.mjs +12 -19
- package/dist/es/render/utils/motion-values.mjs +16 -8
- package/dist/es/render/utils/setters.mjs +19 -19
- package/dist/es/render/utils/variants.mjs +6 -8
- package/dist/es/utils/array.mjs +9 -10
- package/dist/es/utils/is-browser.mjs +1 -1
- package/dist/es/utils/is-numerical-string.mjs +1 -1
- package/dist/es/utils/is-zero-value-string.mjs +1 -1
- package/dist/es/utils/process.mjs +2 -2
- package/dist/es/utils/resolve-value.mjs +2 -2
- package/dist/es/utils/shallow-compare.mjs +2 -2
- package/dist/es/utils/subscription-manager.mjs +15 -17
- package/dist/es/utils/time-conversion.mjs +1 -1
- package/dist/es/utils/transform.mjs +10 -15
- package/dist/es/utils/use-animation-frame.mjs +5 -6
- package/dist/es/utils/use-constant.mjs +1 -1
- package/dist/es/utils/use-cycle.mjs +9 -10
- package/dist/es/utils/use-force-update.mjs +4 -5
- package/dist/es/utils/use-in-view.mjs +7 -9
- package/dist/es/utils/use-instant-transition-state.mjs +1 -1
- package/dist/es/utils/use-instant-transition.mjs +6 -9
- package/dist/es/utils/use-is-mounted.mjs +3 -3
- package/dist/es/utils/use-isomorphic-effect.mjs +1 -1
- package/dist/es/utils/use-reduced-motion.mjs +8 -11
- package/dist/es/utils/use-unmount-effect.mjs +1 -1
- package/dist/es/utils/warn-once.mjs +1 -1
- package/dist/es/value/index.mjs +53 -59
- package/dist/es/value/use-combine-values.mjs +3 -3
- package/dist/es/value/use-inverted-scale.mjs +9 -11
- package/dist/es/value/use-motion-template.mjs +5 -9
- package/dist/es/value/use-motion-value.mjs +4 -5
- package/dist/es/value/use-on-change.mjs +4 -4
- package/dist/es/value/use-scroll.mjs +9 -11
- package/dist/es/value/use-spring.mjs +8 -10
- package/dist/es/value/use-time.mjs +2 -2
- package/dist/es/value/use-transform.mjs +6 -10
- package/dist/es/value/use-velocity.mjs +3 -3
- package/dist/es/value/use-will-change/index.mjs +50 -0
- package/dist/es/value/use-will-change/is.mjs +7 -0
- package/dist/es/value/utils/is-motion-value.mjs +1 -1
- package/dist/es/value/utils/resolve-motion-value.mjs +1 -1
- package/dist/framer-motion.dev.js +2134 -2414
- package/dist/framer-motion.js +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/projection.dev.js +1154 -1300
- package/dist/size-rollup-dom-animation.js +1 -1
- package/dist/size-rollup-dom-max.js +1 -1
- package/dist/size-rollup-m.js +1 -1
- package/dist/size-webpack-dom-animation.js +1 -1
- package/dist/size-webpack-dom-max.js +1 -1
- package/dist/size-webpack-m.js +1 -1
- package/dist/three-entry.d.ts +0 -1
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>r,k:()=>i});var r=function(){},i=function(){}},2819:(t,e,n)=>{n.d(e,{C:()=>r});var r=function(t){return Array.isArray(t)}},1261:(t,e,n)=>{n.d(e,{ev:()=>xt,b8:()=>bt});var r=n(5163),i=n(9340),o=n(6773);const a=.001;function s({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let s,l;(0,i.K)(t<=1e4,"Spring duration must be 10 seconds or less");let c=1-e;c=(0,o.u)(.05,1,c),t=(0,o.u)(.01,10,t/1e3),c<1?(s=e=>{const r=e*c,i=r*t,o=r-n,s=u(e,c),l=Math.exp(-i);return a-o/s*l},l=e=>{const r=e*c*t,i=r*n+n,o=Math.pow(c,2)*Math.pow(e,2)*t,l=Math.exp(-r),p=u(Math.pow(e,2),c);return(-s(e)+a>0?-1:1)*((i-o)*l)/p}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,l=e=>Math.exp(-e*t)*(t*t*(n-e)));const p=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(s,l,5/t);if(t*=1e3,isNaN(p))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(p,2)*r;return{stiffness:e,damping:2*c*Math.sqrt(r*e),duration:t}}}function u(t,e){return t*Math.sqrt(1-e*e)}const l=["duration","bounce"],c=["stiffness","damping","mass"];function p(t,e){return e.some((e=>void 0!==t[e]))}function d(t){var{from:e=0,to:n=1,restSpeed:i=2,restDelta:o}=t,a=(0,r._T)(t,["from","to","restSpeed","restDelta"]);const d={done:!1,value:e};let{stiffness:v,damping:h,mass:m,velocity:y,duration:g,isResolvedFromDuration:x}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!p(t,c)&&p(t,l)){const n=s(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(a),b=f,P=f;function T(){const t=y?-y/1e3:0,r=n-e,i=h/(2*Math.sqrt(v*m)),a=Math.sqrt(v/m)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-e)/100,.4)),i<1){const e=u(a,i);b=o=>{const s=Math.exp(-i*a*o);return n-s*((t+i*a*r)/e*Math.sin(e*o)+r*Math.cos(e*o))},P=n=>{const o=Math.exp(-i*a*n);return i*a*o*(Math.sin(e*n)*(t+i*a*r)/e+r*Math.cos(e*n))-o*(Math.cos(e*n)*(t+i*a*r)-e*r*Math.sin(e*n))}}else if(1===i)b=e=>n-Math.exp(-a*e)*(r+(t+a*r)*e);else{const e=a*Math.sqrt(i*i-1);b=o=>{const s=Math.exp(-i*a*o),u=Math.min(e*o,300);return n-s*((t+i*a*r)*Math.sinh(u)+e*r*Math.cosh(u))/e}}}return T(),{next:t=>{const e=b(t);if(x)d.done=t>=g;else{const r=1e3*P(t),a=Math.abs(r)<=i,s=Math.abs(n-e)<=o;d.done=a&&s}return d.value=d.done?n:e,d},flipTarget:()=>{y=-y,[e,n]=[n,e],T()}}}d.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const f=t=>0;var v=n(9326),h=n(2453),m=n(9012),y=n(3203),g=n(7493);function x(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function b({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let i=0,o=0,a=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,s=2*n-r;i=x(s,r,t+1/3),o=x(s,r,t),a=x(s,r,t-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}const P=(t,e,n)=>{const r=t*t,i=e*e;return Math.sqrt(Math.max(0,n*(i-r)+r))},T=[m.$,y.m,g.J],w=t=>T.find((e=>e.test(t))),A=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,E=(t,e)=>{let n=w(t),r=w(e);(0,i.k)(!!n,A(t)),(0,i.k)(!!r,A(e));let o=n.parse(t),a=r.parse(e);n===g.J&&(o=b(o),n=y.m),r===g.J&&(a=b(a),r=y.m);const s=Object.assign({},o);return t=>{for(const e in s)"alpha"!==e&&(s[e]=P(o[e],a[e],t));return s.alpha=(0,h.C)(o.alpha,a.alpha,t),n.transform(s)}};var C=n(7576),S=n(6002),V=n(734),R=n(9897);function M(t,e){return(0,V.e)(t)?n=>(0,h.C)(t,e,n):C.$.test(t)?E(t,e):O(t,e)}const L=(t,e)=>{const n=[...t],r=n.length,i=t.map(((t,n)=>M(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=i[e](t);return n}},D=(t,e)=>{const n=Object.assign(Object.assign({},t),e),r={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=M(t[i],e[i]));return t=>{for(const e in r)n[e]=r[e](t);return n}};function k(t){const e=S.P.parse(t),n=e.length;let r=0,i=0,o=0;for(let t=0;t<n;t++)r||"number"==typeof e[t]?r++:void 0!==e[t].hue?o++:i++;return{parsed:e,numNumbers:r,numRGB:i,numHSL:o}}const O=(t,e)=>{const n=S.P.createTransformer(e),r=k(t),o=k(e);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?(0,R.z)(L(r.parsed,o.parsed),n):((0,i.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)},j=(t,e)=>n=>(0,h.C)(t,e,n);function F(t,e,n){const r=[],i=n||("number"==typeof(o=t[0])?j:"string"==typeof o?C.$.test(o)?E:O:Array.isArray(o)?L:"object"==typeof o?D:void 0);var o;const a=t.length-1;for(let n=0;n<a;n++){let o=i(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;o=(0,R.z)(t,o)}r.push(o)}return r}function B(t,e,{clamp:n=!0,ease:r,mixer:a}={}){const s=t.length;(0,i.k)(s===e.length,"Both input and output ranges must be the same length"),(0,i.k)(!r||!Array.isArray(r)||r.length===s-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[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const u=F(e,r,a),l=2===s?function([t,e],[n]){return r=>n((0,v.Y)(t,e,r))}(t,u):function(t,e){const n=t.length,r=n-1;return i=>{let o=0,a=!1;if(i<=t[0]?a=!0:i>=t[r]&&(o=r-1,a=!0),!a){let e=1;for(;e<n&&!(t[e]>i||e===r);e++);o=e-1}const s=(0,v.Y)(t[o],t[o+1],i);return e[o](s)}}(t,u);return n?e=>l((0,o.u)(t[0],t[s-1],e)):l}var U=n(940);function I(t,e){return t.map((()=>e||U.mZ)).splice(0,t.length-1)}function N({from:t=0,to:e=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:t},a=Array.isArray(e)?e:[t,e],s=function(t,e){return t.map((t=>t*e))}(r&&r.length===a.length?r:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(a),i);function u(){return B(s,a,{ease:Array.isArray(n)?n:I(a,n)})}let l=u();return{next:t=>(o.value=l(t),o.done=t>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}const z={keyframes:N,spring:d,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:e};let s=n*t;const u=e+s,l=void 0===o?u:o(u);return l!==u&&(s=l-e),{next:t=>{const e=-s*Math.exp(-t/r);return a.done=!(e>i||e<-i),a.value=a.done?l:l+e,a},flipTarget:()=>{}}}};var Y=n(6162);function $(t,e,n=0){return t-e-n}const W=t=>{const e=({delta:e})=>t(e);return{start:()=>Y.ZP.update(e,!0),stop:()=>Y.qY.update(e)}};function H(t){var e,n,{from:i,autoplay:o=!0,driver:a=W,elapsed:s=0,repeat:u=0,repeatType:l="loop",repeatDelay:c=0,onPlay:p,onStop:f,onComplete:v,onRepeat:h,onUpdate:m}=t,y=(0,r._T)(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let g,x,b,{to:P}=y,T=0,w=y.duration,A=!1,E=!0;const C=function(t){if(Array.isArray(t.to))return N;if(z[t.type])return z[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?N:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?d:N}(y);(null===(n=(e=C).needsInterpolation)||void 0===n?void 0:n.call(e,i,P))&&(b=B([0,100],[i,P],{clamp:!1}),i=0,P=100);const S=C(Object.assign(Object.assign({},y),{from:i,to:P}));function V(){T++,"reverse"===l?(E=T%2==0,s=function(t,e,n=0,r=!0){return r?$(e+-t,e,n):e-(t-e)+n}(s,w,c,E)):(s=$(s,w,c),"mirror"===l&&S.flipTarget()),A=!1,h&&h()}function R(t){if(E||(t=-t),s+=t,!A){const t=S.next(Math.max(0,s));x=t.value,b&&(x=b(x)),A=E?t.done:s<=0}null==m||m(x),A&&(0===T&&(null!=w||(w=s)),T<u?function(t,e,n,r){return r?t>=e+n:t<=-n}(s,w,c,E)&&V():(g.stop(),v&&v()))}return o&&(null==p||p(),g=a(R),g.start()),{stop:()=>{null==f||f(),g.stop()}}}var q=n(9296);var Z=n(1818);const _=(t,e)=>1-3*e+3*t,X=(t,e)=>3*e-6*t,G=t=>3*t,K=(t,e,n)=>((_(e,n)*t+X(e,n))*t+G(e))*t,J=(t,e,n)=>3*_(e,n)*t*t+2*X(e,n)*t+G(e);const Q=.1;function tt(t,e,n,r){if(t===e&&n===r)return U.GE;const i=new Float32Array(11);for(let e=0;e<11;++e)i[e]=K(e*Q,t,n);function o(e){let r=0,o=1;for(;10!==o&&i[o]<=e;++o)r+=Q;--o;const a=r+(e-i[o])/(i[o+1]-i[o])*Q,s=J(a,t,n);return s>=.001?function(t,e,n,r){for(let i=0;i<8;++i){const i=J(e,n,r);if(0===i)return e;e-=(K(e,n,r)-t)/i}return e}(e,a,t,n):0===s?a:function(t,e,n,r,i){let o,a,s=0;do{a=e+(n-e)/2,o=K(a,r,i)-t,o>0?n=a:e=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,r,r+Q,t,n)}return t=>0===t||1===t?t:K(o(t),e,r)}var et={linear:U.GE,easeIn:U.YQ,easeInOut:U.mZ,easeOut:U.Vv,circIn:U.Z7,circInOut:U.X7,circOut:U.Bn,backIn:U.G2,backInOut:U.XL,backOut:U.CG,anticipate:U.LU,bounceIn:U.h9,bounceInOut:U.yD,bounceOut:U.gJ},nt=function(t){if(Array.isArray(t)){(0,i.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");var e=(0,r.CR)(t,4);return tt(e[0],e[1],e[2],e[3])}return"string"==typeof t?((0,i.k)(void 0!==et[t],"Invalid easing type '".concat(t,"'")),et[t]):t},rt=function(t,e){return"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!S.P.test(e)||e.startsWith("url(")))},it=n(2819),ot=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},at=function(t){return{type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}},st=function(){return{type:"keyframes",ease:"linear",duration:.3}},ut=function(t){return{type:"keyframes",duration:.8,values:t}},lt={x:ot,y:ot,z:ot,rotate:ot,rotateX:ot,rotateY:ot,rotateZ:ot,scaleX:at,scaleY:at,scale:at,opacity:st,backgroundColor:st,color:st,default:at},ct=n(6914),pt=!1,dt=n(7048);var ft=!1;function vt(t){var e=t.ease,n=t.times,o=t.yoyo,a=t.flip,s=t.loop,u=(0,r._T)(t,["ease","times","yoyo","flip","loop"]),l=(0,r.pi)({},u);return n&&(l.offset=n),u.duration&&(l.duration=(0,Z.w)(u.duration)),u.repeatDelay&&(l.repeatDelay=(0,Z.w)(u.repeatDelay)),e&&(l.ease=function(t){return Array.isArray(t)&&"number"!=typeof t[0]}(e)?e.map(nt):nt(e)),"tween"===u.type&&(l.type="keyframes"),(o||s||a)&&((0,i.K)(!ft,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),ft=!0,o?l.repeatType="reverse":s?l.repeatType="loop":a&&(l.repeatType="mirror"),l.repeat=s||o||a||u.repeat),"spring"!==u.type&&(l.type="keyframes"),l}function ht(t,e,n){var i,o,a,s;return Array.isArray(e.to)&&(null!==(i=t.duration)&&void 0!==i||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=(0,r.ev)([],(0,r.CR)(t.to),!1),t.to[0]=t.from)}(e),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=(0,r._T)(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}(t)||(t=(0,r.pi)((0,r.pi)({},t),(o=n,a=e.to,s=(0,it.C)(a)?ut:lt[o]||lt.default,(0,r.pi)({to:a},s(a))))),(0,r.pi)((0,r.pi)({},e),vt(t))}function mt(t,e,n,o,a){var s,u=xt(o,t),l=null!==(s=u.from)&&void 0!==s?s:e.get(),c=rt(t,n);"none"===l&&c&&"string"==typeof n?l=(0,ct.T)(t,n):yt(l)&&"string"==typeof n?l=gt(n):!Array.isArray(n)&&yt(n)&&"string"==typeof l&&(n=gt(l));var p=rt(t,l);return(0,i.K)(p===c,"You are trying to animate ".concat(t,' from "').concat(l,'" to "').concat(n,'". ').concat(l," is not an animatable value - to enable this animation set ").concat(l," to a value animatable to ").concat(n," via the `style` property.")),p&&c&&!1!==u.type?function(){var i={from:l,to:n,velocity:e.getVelocity(),onComplete:a,onUpdate:function(t){return e.set(t)}};return"inertia"===u.type||"decay"===u.type?function({from:t=0,velocity:e=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:l,driver:c,onUpdate:p,onComplete:d,onStop:f}){let v;function h(t){return void 0!==n&&t<n||void 0!==r&&t>r}function m(t){return void 0===n?r:void 0===r||Math.abs(n-t)<Math.abs(r-t)?n:r}function y(t){null==v||v.stop(),v=H(Object.assign(Object.assign({},t),{driver:c,onUpdate:e=>{var n;null==p||p(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:d,onStop:f}))}function g(t){y(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},t))}if(h(t))g({from:t,velocity:e,to:m(t)});else{let r=i*e+t;void 0!==l&&(r=l(r));const a=m(r),s=a===n?-1:1;let c,p;const d=t=>{c=p,p=t,e=(0,q.R)(t-c,(0,Y.$B)().delta),(1===s&&t>a||-1===s&&t<a)&&g({from:t,to:a,velocity:e})};y({type:"decay",from:t,velocity:e,timeConstant:o,power:i,restDelta:u,modifyTarget:l,onUpdate:h(r)?d:void 0})}return{stop:()=>null==v?void 0:v.stop()}}((0,r.pi)((0,r.pi)({},i),u)):H((0,r.pi)((0,r.pi)({},ht(u,i,t)),{onUpdate:function(t){var e;i.onUpdate(t),null===(e=u.onUpdate)||void 0===e||e.call(u,t)},onComplete:function(){var t;i.onComplete(),null===(t=u.onComplete)||void 0===t||t.call(u)}}))}:function(){var t,r,i=(0,dt.Y)(n);return e.set(i),a(),null===(t=null==u?void 0:u.onUpdate)||void 0===t||t.call(u,i),null===(r=null==u?void 0:u.onComplete)||void 0===r||r.call(u),{stop:function(){}}}}function yt(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function gt(t){return"number"==typeof t?0:(0,ct.T)("",t)}function xt(t,e){return t[e]||t.default||t}function bt(t,e,n,r){return void 0===r&&(r={}),pt&&(r={type:!1}),e.start((function(i){var o,a,s=mt(t,e,n,r,i),u=function(t,e){var n,r;return null!==(r=null!==(n=(xt(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==r?r:0}(r,t),l=function(){return a=s()};return u?o=window.setTimeout(l,(0,Z.w)(u)):l(),function(){clearTimeout(o),null==a||a.stop()}}))}},1930:(t,e,n)=>{n.d(e,{oO:()=>o});var r=n(8370),i=n(7866);function o(){var t=(0,r.useContext)(i.O);if(null===t)return[!0,null];var e=t.isPresent,n=t.onExitComplete,o=t.register,a=(0,r.useId)();(0,r.useEffect)((function(){return o(a)}),[]);return!e&&n?[!1,function(){return null==n?void 0:n(a)}]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>i});var r=n(8370),i=(0,r.createContext)(null)},409:(t,e,n)=>{n.d(e,{Qk:()=>s,qT:()=>u});var r=n(3541);var i={pageX:0,pageY:0};function o(t,e){void 0===e&&(e="page");var n=t.touches[0]||t.changedTouches[0]||i;return{x:n[e+"X"],y:n[e+"Y"]}}function a(t,e){return void 0===e&&(e="page"),{x:t[e+"X"],y:t[e+"Y"]}}function s(t,e){return void 0===e&&(e="page"),{point:(0,r.z)(t)?o(t,e):a(t,e)}}var u=function(t,e){void 0===e&&(e=!1);var n,r=function(e){return t(e,s(e))};return e?(n=r,function(t){var e=t instanceof MouseEvent;(!e||e&&0===t.button)&&n(t)}):r}},1876:(t,e,n)=>{n.d(e,{E:()=>i,p:()=>o});var r=n(8370);function i(t,e,n,r){return void 0===r&&(r={passive:!0}),t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n)}}function o(t,e,n,o){(0,r.useEffect)((function(){var r=t.current;if(n&&r)return i(r,e,n,o)}),[t,e,n,o])}},8744:(t,e,n)=>{n.d(e,{a:()=>l,m:()=>c});var r=n(1876),i=n(409),o="undefined"!=typeof document,a={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},s={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function u(t){return o&&null===window.onpointerdown?t:o&&null===window.ontouchstart?s[t]:o&&null===window.onmousedown?a[t]:t}function l(t,e,n,o){return(0,r.E)(t,u(e),(0,i.qT)(n,"pointerdown"===e),o)}function c(t,e,n,o){return(0,r.p)(t,u(e),n&&(0,i.qT)(n,"pointerdown"===e),o)}},5856:(t,e,n)=>{function r(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}n.d(e,{fJ:()=>a,gD:()=>s});var i=r("dragHorizontal"),o=r("dragVertical");function a(t){var e=!1;if("y"===t)e=o();else if("x"===t)e=i();else{var n=i(),r=o();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}function s(){var t=a(!0);return!t||(t(),!1)}},3541:(t,e,n)=>{function r(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function i(t){return!!t.touches}n.d(e,{N:()=>r,z:()=>i})},6295:(t,e,n)=>{n.d(e,{x:()=>r});var r=function(t){return function(e){return t(e),null}}},483:(t,e,n)=>{function r(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}function i(t){var e=t.x,n=t.y;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function o(t,e){if(!e)return t;var n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}n.d(e,{d7:()=>o,i8:()=>r,z2:()=>i})},1360:(t,e,n)=>{n.d(e,{D2:()=>h,YY:()=>c,am:()=>p,o2:()=>l,q2:()=>a});var r=n(5163),i=n(2453),o=n(4918);function a(t,e,n){return n+e*(t-n)}function s(t,e,n,r,i){return void 0!==i&&(t=a(t,i,r)),a(t,n,r)+e}function u(t,e,n,r,i){void 0===e&&(e=0),void 0===n&&(n=1),t.min=s(t.min,e,n,r,i),t.max=s(t.max,e,n,r,i)}function l(t,e){var n=e.x,r=e.y;u(t.x,n.translate,n.scale,n.originPoint),u(t.y,r.translate,r.scale,r.originPoint)}function c(t,e,n,r){var i,a;void 0===r&&(r=!1);var s=n.length;if(s){var u,c;e.x=e.y=1;for(var p=0;p<s;p++)c=(u=n[p]).projectionDelta,"contents"!==(null===(a=null===(i=u.instance)||void 0===i?void 0:i.style)||void 0===a?void 0:a.display)&&(r&&u.options.layoutScroll&&u.scroll&&u!==u.root&&h(t,{x:-u.scroll.x,y:-u.scroll.y}),c&&(e.x*=c.x.scale,e.y*=c.y.scale,l(t,c)),r&&(0,o.u)(u.latestValues)&&h(t,u.latestValues))}}function p(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,n){var o=(0,r.CR)(n,3),a=o[0],s=o[1],l=o[2],c=void 0!==e[l]?e[l]:.5,p=(0,i.C)(t.min,t.max,c);u(t,e[a],e[s],p,e.scale)}var f=["x","scaleX","originX"],v=["y","scaleY","originY"];function h(t,e){d(t.x,e,f),d(t.y,e,v)}},798:(t,e,n)=>{n.d(e,{B:()=>i,P:()=>r});var r={};function i(t){Object.assign(r,t)}},4918:(t,e,n)=>{function r(t){return void 0===t||1===t}function i(t){var e=t.scale,n=t.scaleX,i=t.scaleY;return!r(e)||!r(n)||!r(i)}function o(t){return i(t)||a(t.x)||a(t.y)||t.z||t.rotate||t.rotateX||t.rotateY}function a(t){return t&&"0%"!==t}n.d(e,{L:()=>i,u:()=>o})},8834:(t,e,n)=>{n.d(e,{J:()=>o,z:()=>a});var r=n(483),i=n(1360);function o(t,e){return(0,r.i8)((0,r.d7)(t.getBoundingClientRect(),e))}function a(t,e,n){var r=o(t,n),a=e.scroll;return a&&((0,i.am)(r.x,a.x),(0,i.am)(r.y,a.y)),r}},2599:(t,e,n)=>{n.d(e,{H:()=>Qt});var r=n(5163),i=n(8370);function o(t){return"object"==typeof t&&"function"==typeof t.start}var a=n(1930),s=n(7866),u=n(2819);function l(t,e){if(!Array.isArray(e))return!1;var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}var c=n(1261),p=n(6002),d=function(t){return/^0[^.\s]+$/.test(t)},f=n(7048),v=n(1421),h=n(6914),m=n(7576),y=n(1513),g=n(155),x=function(t){return function(e){return e.test(t)}},b=[y.Rx,g.px,g.aQ,g.RW,g.vw,g.vh,{test:function(t){return"auto"===t},parse:function(t){return t}}],P=function(t){return b.find(x(t))},T=(0,r.ev)((0,r.ev)([],(0,r.CR)(b),!1),[m.$,p.P],!1),w=function(t){return T.find(x(t))};function A(t){return Array.isArray(t)}function E(t){return"string"==typeof t||A(t)}function C(t,e,n){var r=t.getProps();return function(t,e,n,r,i){var o;return void 0===r&&(r={}),void 0===i&&(i={}),"function"==typeof e&&(e=e(null!=n?n:t.custom,r,i)),"string"==typeof e&&(e=null===(o=t.variants)||void 0===o?void 0:o[e]),"function"==typeof e&&(e=e(null!=n?n:t.custom,r,i)),e}(r,e,null!=n?n:r.custom,function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.get()})),e}(t),function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.getVelocity()})),e}(t))}function S(t){var e;return"function"==typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||E(t.initial)||E(t.animate)||E(t.whileHover)||E(t.whileDrag)||E(t.whileTap)||E(t.whileFocus)||E(t.exit)}function V(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,v.B)(n))}function R(t,e){var n=C(t,e),i=n?t.makeTargetAnimatable(n,!1):{},o=i.transitionEnd,a=void 0===o?{}:o,s=(i.transition,(0,r._T)(i,["transitionEnd","transition"]));for(var u in s=(0,r.pi)((0,r.pi)({},s),a)){V(t,u,(0,f.Y)(s[u]))}}function M(t,e){if(e)return(e[t]||e.default||e).from}var L=n(5264);function D(t,e,n){var i;void 0===n&&(n={});var o=C(t,e,n.custom),a=(o||{}).transition,s=void 0===a?t.getDefaultTransition()||{}:a;n.transitionOverride&&(s=n.transitionOverride);var u=o?function(){return k(t,o,n)}:function(){return Promise.resolve()},l=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?function(i){void 0===i&&(i=0);var o=s.delayChildren,a=void 0===o?0:o,u=s.staggerChildren,l=s.staggerDirection;return function(t,e,n,i,o,a){void 0===n&&(n=0);void 0===i&&(i=0);void 0===o&&(o=1);var s=[],u=(t.variantChildren.size-1)*i,l=1===o?function(t){return void 0===t&&(t=0),t*i}:function(t){return void 0===t&&(t=0),u-t*i};return Array.from(t.variantChildren).sort(O).forEach((function(t,i){s.push(D(t,e,(0,r.pi)((0,r.pi)({},a),{delay:n+l(i)})).then((function(){return t.notifyAnimationComplete(e)})))})),Promise.all(s)}(t,e,a+i,u,l,n)}:function(){return Promise.resolve()},c=s.when;if(c){var p=(0,r.CR)("beforeChildren"===c?[u,l]:[l,u],2),d=p[0],f=p[1];return d().then(f)}return Promise.all([u(),l(n.delay)])}function k(t,e,n){var i,o=void 0===n?{}:n,a=o.delay,s=void 0===a?0:a,u=o.transitionOverride,l=o.type,p=t.makeTargetAnimatable(e),d=p.transition,f=void 0===d?t.getDefaultTransition():d,v=p.transitionEnd,h=(0,r._T)(p,["transition","transitionEnd"]);u&&(f=u);var m=[],y=l&&(null===(i=t.animationState)||void 0===i?void 0:i.getState()[l]);for(var g in h){var x=t.getValue(g),b=h[g];if(!(!x||void 0===b||y&&j(y,g))){var P=(0,r.pi)({delay:s},f);t.shouldReduceMotion&&(0,L._c)(g)&&(P=(0,r.pi)((0,r.pi)({},P),{type:!1,delay:0}));var T=(0,c.b8)(g,x,b,P);m.push(T)}}return Promise.all(m).then((function(){v&&R(t,v)}))}function O(t,e){return t.sortNodePosition(e)}function j(t,e){var n=t.protectedKeys,r=t.needsAnimating,i=n.hasOwnProperty(e)&&!0!==r[e];return r[e]=!1,i}var F=n(7921),B=[F.r.Animate,F.r.InView,F.r.Focus,F.r.Hover,F.r.Tap,F.r.Drag,F.r.Exit],U=(0,r.ev)([],(0,r.CR)(B),!1).reverse(),I=B.length;function N(t){return function(e){return Promise.all(e.map((function(e){var n=e.animation,r=e.options;return function(t,e,n){var r;if(void 0===n&&(n={}),t.notifyAnimationStart(e),Array.isArray(e)){var i=e.map((function(e){return D(t,e,n)}));r=Promise.all(i)}else if("string"==typeof e)r=D(t,e,n);else{var o="function"==typeof e?C(t,e,n.custom):e;r=k(t,o,n)}return r.then((function(){return t.notifyAnimationComplete(e)}))}(t,n,r)})))}}function z(t){var e,n=N(t),i=((e={})[F.r.Animate]=Y(!0),e[F.r.InView]=Y(),e[F.r.Hover]=Y(),e[F.r.Tap]=Y(),e[F.r.Drag]=Y(),e[F.r.Focus]=Y(),e[F.r.Exit]=Y(),e),a={},s=!0,c=function(e,n){var i=C(t,n);if(i){i.transition;var o=i.transitionEnd,a=(0,r._T)(i,["transition","transitionEnd"]);e=(0,r.pi)((0,r.pi)((0,r.pi)({},e),a),o)}return e};function p(e,p){for(var d,f=t.getProps(),v=t.getVariantContext(!0)||{},h=[],m=new Set,y={},g=1/0,x=function(n){var a=U[n],x=i[a],b=null!==(d=f[a])&&void 0!==d?d:v[a],P=E(b),T=a===p?x.isActive:null;!1===T&&(g=n);var w=b===v[a]&&b!==f[a]&&P;if(w&&s&&t.manuallyAnimateOnMount&&(w=!1),x.protectedKeys=(0,r.pi)({},y),!x.isActive&&null===T||!b&&!x.prevProp||o(b)||"boolean"==typeof b)return"continue";var C=function(t,e){if("string"==typeof e)return e!==t;if(A(e))return!l(e,t);return!1}(x.prevProp,b),S=C||a===p&&x.isActive&&!w&&P||n>g&&P,V=Array.isArray(b)?b:[b],R=V.reduce(c,{});!1===T&&(R={});var M=x.prevResolvedValues,L=void 0===M?{}:M,D=(0,r.pi)((0,r.pi)({},L),R),k=function(t){S=!0,m.delete(t),x.needsAnimating[t]=!0};for(var O in D){var j=R[O],F=L[O];y.hasOwnProperty(O)||(j!==F?(0,u.C)(j)&&(0,u.C)(F)?!l(j,F)||C?k(O):x.protectedKeys[O]=!0:void 0!==j?k(O):m.add(O):void 0!==j&&m.has(O)?k(O):x.protectedKeys[O]=!0)}x.prevProp=b,x.prevResolvedValues=R,x.isActive&&(y=(0,r.pi)((0,r.pi)({},y),R)),s&&t.blockInitialAnimation&&(S=!1),S&&!w&&h.push.apply(h,(0,r.ev)([],(0,r.CR)(V.map((function(t){return{animation:t,options:(0,r.pi)({type:a},e)}}))),!1))},b=0;b<I;b++)x(b);if(a=(0,r.pi)({},y),m.size){var P={};m.forEach((function(e){var n=t.getBaseTarget(e);void 0!==n&&(P[e]=n)})),h.push({animation:P})}var T=Boolean(h.length);return s&&!1===f.initial&&!t.manuallyAnimateOnMount&&(T=!1),s=!1,T?n(h):Promise.resolve()}return{isAnimated:function(t){return void 0!==a[t]},animateChanges:p,setActive:function(e,n,r){var o;if(i[e].isActive===n)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach((function(t){var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(e,n)})),i[e].isActive=n;var a=p(r,e);for(var s in i)i[s].protectedKeys={};return a},setAnimateFunction:function(e){n=e(t)},getState:function(){return i}}}function Y(t){return void 0===t&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var $=n(6295),W={animation:(0,$.x)((function(t){var e=t.visualElement,n=t.animate;e.animationState||(e.animationState=z(e)),o(n)&&(0,i.useEffect)((function(){return n.subscribe(e)}),[n])})),exit:(0,$.x)((function(t){var e=t.custom,n=t.visualElement,o=(0,r.CR)((0,a.oO)(),2),u=o[0],l=o[1],c=(0,i.useContext)(s.O);(0,i.useEffect)((function(){var t,r;n.isPresent=u;var i=null===(t=n.animationState)||void 0===t?void 0:t.setActive(F.r.Exit,!u,{custom:null!==(r=null==c?void 0:c.custom)&&void 0!==r?r:e});!u&&(null==i||i.then(l))}),[u])}))},H=n(1876);var q=n(3541),Z=n(8744),_=n(5856);function X(t,e,n){return function(r,i){var o;(0,q.N)(r)&&!(0,_.gD)()&&(null===(o=t.animationState)||void 0===o||o.setActive(F.r.Hover,e),null==n||n(r,i))}}var G=function(t,e){return!!e&&(t===e||G(t,e.parentElement))},K=n(9531),J=n(9897);var Q=("undefined"==typeof process||process.env,"production"),tt=new Set;var et=new WeakMap,nt=new WeakMap,rt=function(t){var e;null===(e=et.get(t.target))||void 0===e||e(t)},it=function(t){t.forEach(rt)};function ot(t,e,n){var i=function(t){var e=t.root,n=(0,r._T)(t,["root"]),i=e||document;nt.has(i)||nt.set(i,{});var o=nt.get(i),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(it,(0,r.pi)({root:e},n))),o[a]}(e);return et.set(t,n),i.observe(t),function(){et.delete(t),i.unobserve(t)}}var at={some:0,all:1};function st(t,e,n,r){var o=r.root,a=r.margin,s=r.amount,u=void 0===s?"some":s,l=r.once;(0,i.useEffect)((function(){if(t){var r={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof u?u:at[u]};return ot(n.getInstance(),r,(function(t){var r,i=t.isIntersecting;if(e.isInView!==i&&(e.isInView=i,!l||i||!e.hasEnteredView)){i&&(e.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(F.r.InView,i);var o=n.getProps(),a=i?o.onViewportEnter:o.onViewportLeave;null==a||a(t)}}))}}),[t,o,a,u])}function ut(t,e,n,r){var o=r.fallback,a=void 0===o||o;(0,i.useEffect)((function(){var r,i;t&&a&&("production"!==Q&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||tt.has(r)||(console.warn(r),i&&console.warn(i),tt.add(r))),requestAnimationFrame((function(){var t;e.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(t=n.animationState)||void 0===t||t.setActive(F.r.InView,!0)})))}),[t])}var lt={inView:(0,$.x)((function(t){var e=t.visualElement,n=t.whileInView,r=t.onViewportEnter,o=t.onViewportLeave,a=t.viewport,s=void 0===a?{}:a,u=(0,i.useRef)({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||o);s.once&&u.current.hasEnteredView&&(l=!1),("undefined"==typeof IntersectionObserver?ut:st)(l,u.current,e,s)})),tap:(0,$.x)((function(t){var e=t.onTap,n=t.onTapStart,r=t.onTapCancel,o=t.whileTap,a=t.visualElement,s=e||n||r||o,u=(0,i.useRef)(!1),l=(0,i.useRef)(null),c={passive:!(n||e||r||h)};function p(){var t;null===(t=l.current)||void 0===t||t.call(l),l.current=null}function d(){var t;return p(),u.current=!1,null===(t=a.animationState)||void 0===t||t.setActive(F.r.Tap,!1),!(0,_.gD)()}function f(t,n){d()&&(G(a.getInstance(),t.target)?null==e||e(t,n):null==r||r(t,n))}function v(t,e){d()&&(null==r||r(t,e))}function h(t,e){var r;p(),u.current||(u.current=!0,l.current=(0,J.z)((0,Z.a)(window,"pointerup",f,c),(0,Z.a)(window,"pointercancel",v,c)),null===(r=a.animationState)||void 0===r||r.setActive(F.r.Tap,!0),null==n||n(t,e))}(0,Z.m)(a,"pointerdown",s?h:void 0,c),(0,K.z)(p)})),focus:(0,$.x)((function(t){var e=t.whileFocus,n=t.visualElement;(0,H.p)(n,"focus",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(F.r.Focus,!0)}:void 0),(0,H.p)(n,"blur",e?function(){var t;null===(t=n.animationState)||void 0===t||t.setActive(F.r.Focus,!1)}:void 0)})),hover:(0,$.x)((function(t){var e=t.onHoverStart,n=t.onHoverEnd,r=t.whileHover,i=t.visualElement;(0,Z.m)(i,"pointerenter",e||r?X(i,!0,e):void 0,{passive:!e}),(0,Z.m)(i,"pointerleave",n||r?X(i,!1,n):void 0,{passive:!n})}))},ct=n(6162),pt=n(7846),dt=n(1065),ft=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];var vt=function(t){var e=t.treeType,n=void 0===e?"":e,i=t.build,o=t.getBaseTarget,a=t.makeTargetAnimatable,s=t.measureViewportBox,u=t.render,l=t.readValueFromInstance,c=t.removeValueFromRenderState,p=t.sortNodePosition,d=t.scrapeMotionValuesFromProps;return function(t,e){var f=t.parent,h=t.props,m=t.presenceId,y=t.blockInitialAnimation,g=t.visualState,x=t.shouldReduceMotion;void 0===e&&(e={});var b,P,T=!1,w=g.latestValues,A=g.renderState,C=function(){var t=ft.map((function(){return new dt.L})),e={},n={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){ft.forEach((function(r){var i,o="on"+r,a=t[o];null===(i=e[r])||void 0===i||i.call(e),a&&(e[r]=n[o](a))}))}};return t.forEach((function(t,e){n["on"+ft[e]]=function(e){return t.add(e)},n["notify"+ft[e]]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.notify.apply(t,(0,r.ev)([],(0,r.CR)(e),!1))}})),n}(),V=new Map,R=new Map,M={},L=(0,r.pi)({},w);function D(){b&&T&&(k(),u(b,A,h.style,z.projection))}function k(){i(z,A,w,e,h)}function O(){C.notifyUpdate(w)}function j(t,e){var n=e.onChange((function(e){w[t]=e,h.onUpdate&&ct.ZP.update(O,!1,!0)})),r=e.onRenderRequest(z.scheduleRender);R.set(t,(function(){n(),r()}))}var F=d(h);for(var B in F){var U=F[B];void 0!==w[B]&&(0,pt.i)(U)&&U.set(w[B],!1)}var I=S(h),N=function(t){return Boolean(S(t)||t.variants)}(h),z=(0,r.pi)((0,r.pi)({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:x,variantChildren:N?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:y,isMounted:function(){return Boolean(b)},mount:function(t){T=!0,b=z.current=t,z.projection&&z.projection.mount(t),N&&f&&!I&&(P=null==f?void 0:f.addVariantChild(z)),V.forEach((function(t,e){return j(e,t)})),null==f||f.children.add(z),z.setProps(h)},unmount:function(){var t;null===(t=z.projection)||void 0===t||t.unmount(),ct.qY.update(O),ct.qY.render(D),R.forEach((function(t){return t()})),null==P||P(),null==f||f.children.delete(z),C.clearAllListeners(),b=void 0,T=!1},addVariantChild:function(t){var e,n=z.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),function(){return n.variantChildren.delete(t)}},sortNodePosition:function(t){return p&&n===t.treeType?p(z.getInstance(),t.getInstance()):0},getClosestVariantNode:function(){return N?z:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return h.layoutId},getInstance:function(){return b},getStaticValue:function(t){return w[t]},setStaticValue:function(t,e){return w[t]=e},getLatestValues:function(){return w},setVisibility:function(t){z.isVisible!==t&&(z.isVisible=t,z.scheduleRender())},makeTargetAnimatable:function(t,e){return void 0===e&&(e=!0),a(z,t,h,e)},measureViewportBox:function(){return s(b,h)},addValue:function(t,e){z.hasValue(t)&&z.removeValue(t),V.set(t,e),w[t]=e.get(),j(t,e)},removeValue:function(t){var e;V.delete(t),null===(e=R.get(t))||void 0===e||e(),R.delete(t),delete w[t],c(t,A)},hasValue:function(t){return V.has(t)},getValue:function(t,e){var n=V.get(t);return void 0===n&&void 0!==e&&(n=(0,v.B)(e),z.addValue(t,n)),n},forEachValue:function(t){return V.forEach(t)},readValue:function(t){var n;return null!==(n=w[t])&&void 0!==n?n:l(b,t,e)},setBaseTarget:function(t,e){L[t]=e},getBaseTarget:function(t){if(o){var e=o(h,t);if(void 0!==e&&!(0,pt.i)(e))return e}return L[t]}},C),{build:function(){return k(),A},scheduleRender:function(){ct.ZP.render(D,!1,!0)},syncRender:D,setProps:function(t){(t.transformTemplate||h.transformTemplate)&&z.scheduleRender(),h=t,C.updatePropListeners(t),M=function(t,e,n){var r;for(var i in e){var o=e[i],a=n[i];if((0,pt.i)(o))t.addValue(i,o);else if((0,pt.i)(a))t.addValue(i,(0,v.B)(o));else if(a!==o)if(t.hasValue(i)){var s=t.getValue(i);!s.hasAnimated&&s.set(o)}else t.addValue(i,(0,v.B)(null!==(r=t.getStaticValue(i))&&void 0!==r?r:o))}for(var i in n)void 0===e[i]&&t.removeValue(i);return e}(z,d(h),M)},getProps:function(){return h},getVariant:function(t){var e;return null===(e=h.variants)||void 0===e?void 0:e[t]},getDefaultTransition:function(){return h.transition},getTransformPagePoint:function(){return h.transformPagePoint},getVariantContext:function(t){if(void 0===t&&(t=!1),t)return null==f?void 0:f.getVariantContext();if(!I){var e=(null==f?void 0:f.getVariantContext())||{};return void 0!==h.initial&&(e.initial=h.initial),e}for(var n={},r=0;r<mt;r++){var i=ht[r],o=h[i];(E(o)||!1===o)&&(n[i]=o)}return n}});return z}},ht=(0,r.ev)(["initial"],(0,r.CR)(B),!1),mt=ht.length,yt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function gt(t){return t.startsWith("--")}var xt=function(t,e){return e&&"number"==typeof t?e.transform(t):t},bt=n(4923);function Pt(t,e,n,r){var i,o=t.style,a=t.vars,s=t.transform,u=t.transformKeys,l=t.transformOrigin;u.length=0;var c=!1,p=!1,d=!0;for(var f in e){var v=e[f];if(gt(f))a[f]=v;else{var h=bt.j[f],m=xt(v,h);if((0,L._c)(f)){if(c=!0,s[f]=m,u.push(f),!d)continue;v!==(null!==(i=h.default)&&void 0!==i?i:0)&&(d=!1)}else(0,L.Ee)(f)?(l[f]=m,p=!0):o[f]=m}}c?o.transform=function(t,e,n,r){var i=t.transform,o=t.transformKeys,a=e.enableHardwareAcceleration,s=void 0===a||a,u=e.allowTransformNone,l=void 0===u||u,c="";o.sort(L.s3);for(var p=!1,d=o.length,f=0;f<d;f++){var v=o[f];c+="".concat(yt[v]||v,"(").concat(i[v],") "),"z"===v&&(p=!0)}return!p&&s?c+="translateZ(0)":c=c.trim(),r?c=r(i,n?"":c):l&&n&&(c="none"),c}(t,n,d,r):r?o.transform=r({},""):!e.transform&&o.transform&&(o.transform="none"),p&&(o.transformOrigin=function(t){var e=t.originX,n=void 0===e?"50%":e,r=t.originY,i=void 0===r?"50%":r,o=t.originZ,a=void 0===o?0:o;return"".concat(n," ").concat(i," ").concat(a)}(l))}var Tt,wt=n(6978),At=n(9340),Et=new Set(["width","height","top","left","right","bottom","x","y"]),Ct=function(t){return Et.has(t)},St=function(t,e){t.set(e,!1),t.set(e)},Vt=function(t){return t===y.Rx||t===g.px};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Tt||(Tt={}));var Rt=function(t,e){return parseFloat(t.split(", ")[e])},Mt=function(t,e){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return Rt(o[1],e);var a=i.match(/^matrix\((.+)\)$/);return a?Rt(a[1],t):0}},Lt=new Set(["x","y","z"]),Dt=L.Gl.filter((function(t){return!Lt.has(t)}));var kt={width:function(t,e){var n=t.x,r=e.paddingLeft,i=void 0===r?"0":r,o=e.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},height:function(t,e){var n=t.y,r=e.paddingTop,i=void 0===r?"0":r,o=e.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.y,r=e.top;return parseFloat(r)+(n.max-n.min)},right:function(t,e){var n=t.x,r=e.left;return parseFloat(r)+(n.max-n.min)},x:Mt(4,13),y:Mt(5,14)},Ot=function(t,e,n,i){void 0===n&&(n={}),void 0===i&&(i={}),e=(0,r.pi)({},e),i=(0,r.pi)({},i);var o=Object.keys(e).filter(Ct),a=[],s=!1,l=[];if(o.forEach((function(r){var o=t.getValue(r);if(t.hasValue(r)){var c,p=n[r],d=P(p),f=e[r];if((0,u.C)(f)){var v=f.length,h=null===f[0]?1:0;p=f[h],d=P(p);for(var m=h;m<v;m++)c?(0,At.k)(P(f[m])===c,"All keyframes must be of the same type"):(c=P(f[m]),(0,At.k)(c===d||Vt(d)&&Vt(c),"Keyframes must be of the same dimension as the current value"))}else c=P(f);if(d!==c)if(Vt(d)&&Vt(c)){var y=o.get();"string"==typeof y&&o.set(parseFloat(y)),"string"==typeof f?e[r]=parseFloat(f):Array.isArray(f)&&c===g.px&&(e[r]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==c?void 0:c.transform)&&(0===p||0===f)?0===p?o.set(c.transform(p)):e[r]=d.transform(f):(s||(a=function(t){var e=[];return Dt.forEach((function(n){var r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.syncRender(),e}(t),s=!0),l.push(r),i[r]=void 0!==i[r]?i[r]:e[r],St(o,f))}})),l.length){var c=l.indexOf("height")>=0?window.pageYOffset:null,p=function(t,e,n){var r=e.measureViewportBox(),i=e.getInstance(),o=getComputedStyle(i),a=o.display,s={};"none"===a&&e.setStaticValue("display",t.display||"block"),n.forEach((function(t){s[t]=kt[t](r,o)})),e.syncRender();var u=e.measureViewportBox();return n.forEach((function(n){var r=e.getValue(n);St(r,s[n]),t[n]=kt[n](u,o)})),t}(e,t,l);return a.length&&a.forEach((function(e){var n=(0,r.CR)(e,2),i=n[0],o=n[1];t.getValue(i).set(o)})),t.syncRender(),null!==c&&window.scrollTo({top:c}),{target:p,transitionEnd:i}}return{target:e,transitionEnd:i}};function jt(t,e,n,r){return function(t){return Object.keys(t).some(Ct)}(e)?Ot(t,e,n,r):{target:e,transitionEnd:r}}var Ft=n(798);function Bt(t,e){var n=e.layout,r=e.layoutId;return(0,L._c)(t)||(0,L.Ee)(t)||(n||void 0!==r)&&(!!Ft.P[t]||"opacity"===t)}function Ut(t){var e=t.style,n={};for(var r in e)((0,pt.i)(e[r])||Bt(r,t))&&(n[r]=e[r]);return n}function It(t,e,n,r){var i=e.style,o=e.vars;for(var a in Object.assign(t.style,i,r&&r.getProjectionStyles(n)),o)t.style.setProperty(a,o[a])}var Nt=n(7557),zt=n(8834);var Yt={treeType:"dom",readValueFromInstance:function(t,e){if((0,L._c)(e)){var n=(0,Nt.A)(e);return n&&n.default||0}var r,i=(r=t,window.getComputedStyle(r)),o=(gt(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof o?o.trim():o},sortNodePosition:function(t,e){return 2&t.compareDocumentPosition(e)?1:-1},getBaseTarget:function(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]},measureViewportBox:function(t,e){var n=e.transformPagePoint;return(0,zt.J)(t,n)},resetTransform:function(t,e,n){var r=n.transformTemplate;e.style.transform=r?r({},""):"none",t.scheduleRender()},restoreTransform:function(t,e){t.style.transform=e.style.transform},removeValueFromRenderState:function(t,e){var n=e.vars,r=e.style;delete n[t],delete r[t]},makeTargetAnimatable:function(t,e,n,i){var o=e.transition,a=e.transitionEnd,s=(0,r._T)(e,["transition","transitionEnd"]),u=n.transformValues;void 0===i&&(i=!0);var l=function(t,e,n){var r,i,o={};for(var a in t)o[a]=null!==(r=M(a,e))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(s,o||{},t);if(u&&(a&&(a=u(a)),s&&(s=u(s)),l&&(l=u(l))),i){!function(t,e,n){var r,i,o,a,s=Object.keys(e).filter((function(e){return!t.hasValue(e)})),u=s.length;if(u)for(var l=0;l<u;l++){var c=s[l],f=e[c],m=null;Array.isArray(f)&&(m=f[0]),null===m&&(m=null!==(i=null!==(r=n[c])&&void 0!==r?r:t.readValue(c))&&void 0!==i?i:e[c]),null!=m&&("string"==typeof m&&(/^\-?\d*\.?\d+$/.test(m)||d(m))?m=parseFloat(m):!w(m)&&p.P.test(f)&&(m=(0,h.T)(c,f)),t.addValue(c,(0,v.B)(m)),null!==(o=(a=n)[c])&&void 0!==o||(a[c]=m),t.setBaseTarget(c,m))}}(t,s,l);var c=function(t,e,n,r){var i=(0,wt.mH)(t,e,r);return jt(t,e=i.target,n,r=i.transitionEnd)}(t,s,l,a);a=c.transitionEnd,s=c.target}return(0,r.pi)({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:Ut,build:function(t,e,n,r,i){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden"),Pt(e,n,r,i.transformTemplate)},render:It},$t=vt(Yt);function Wt(t,e,n){return"string"==typeof t?t:g.px.transform(e+n*t)}var Ht={offset:"stroke-dashoffset",array:"stroke-dasharray"},qt={offset:"strokeDashoffset",array:"strokeDasharray"};function Zt(t,e,n,i){var o=e.attrX,a=e.attrY,s=e.originX,u=e.originY,l=e.pathLength,c=e.pathSpacing,p=void 0===c?1:c,d=e.pathOffset,f=void 0===d?0:d;Pt(t,(0,r._T)(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,i),t.attrs=t.style,t.style={};var v=t.attrs,h=t.style,m=t.dimensions;v.transform&&(m&&(h.transform=v.transform),delete v.transform),m&&(void 0!==s||void 0!==u||h.transform)&&(h.transformOrigin=function(t,e,n){var r=Wt(e,t.x,t.width),i=Wt(n,t.y,t.height);return"".concat(r," ").concat(i)}(m,void 0!==s?s:.5,void 0!==u?u:.5)),void 0!==o&&(v.x=o),void 0!==a&&(v.y=a),void 0!==l&&function(t,e,n,r,i){void 0===n&&(n=1),void 0===r&&(r=0),void 0===i&&(i=!0),t.pathLength=1;var o=i?Ht:qt;t[o.offset]=g.px.transform(-r);var a=g.px.transform(e),s=g.px.transform(n);t[o.array]="".concat(a," ").concat(s)}(v,l,p,f,!1)}var _t=/([a-z])([A-Z])/g,Xt=function(t){return t.replace(_t,"$1-$2").toLowerCase()},Gt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);var Kt=vt((0,r.pi)((0,r.pi)({},Yt),{getBaseTarget:function(t,e){return t[e]},readValueFromInstance:function(t,e){var n;return(0,L._c)(e)?(null===(n=(0,Nt.A)(e))||void 0===n?void 0:n.default)||0:(e=Gt.has(e)?e:Xt(e),t.getAttribute(e))},scrapeMotionValuesFromProps:function(t){var e=Ut(t);for(var n in t){if((0,pt.i)(t[n]))e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e},build:function(t,e,n,r,i){Zt(e,n,r,i.transformTemplate)},render:function(t,e,n,r){for(var i in It(t,e,void 0,r),e.attrs)t.setAttribute(Gt.has(i)?i:Xt(i),e.attrs[i])}})),Jt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];var Qt=(0,r.pi)((0,r.pi)({renderer:function(t,e){return function(t){return"string"==typeof t&&!t.includes("-")&&!!(Jt.indexOf(t)>-1||/[A-Z]/.test(t))}(t)?Kt(e,{enableHardwareAcceleration:!1}):$t(e,{enableHardwareAcceleration:!0})}},W),lt)},6978:(t,e,n)=>{n.d(e,{Xp:()=>a,mH:()=>u});var r=n(5163),i=n(9340);function o(t){return"string"==typeof t&&t.startsWith("var(--")}var a=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function s(t,e,n){void 0===n&&(n=1),(0,i.k)(n<=4,'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.'));var u=(0,r.CR)(function(t){var e=a.exec(t);if(!e)return[,];var n=(0,r.CR)(e,3);return[n[1],n[2]]}(t),2),l=u[0],c=u[1];if(l){var p=window.getComputedStyle(e).getPropertyValue(l);return p?p.trim():o(c)?s(c,e,n+1):c}}function u(t,e,n){var i,a=(0,r._T)(e,[]),u=t.getInstance();if(!(u instanceof Element))return{target:a,transitionEnd:n};for(var l in n&&(n=(0,r.pi)({},n)),t.forEachValue((function(t){var e=t.get();if(o(e)){var n=s(e,u);n&&t.set(n)}})),a){var c=a[l];if(o(c)){var p=s(c,u);p&&(a[l]=p,n&&(null!==(i=n[l])&&void 0!==i||(n[l]=c)))}}return{target:a,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>a});var r=n(9500),i=n(6002),o=n(7557);function a(t,e){var n,a=(0,o.A)(t);return a!==r.h&&(a=i.P),null===(n=a.getAnimatableNone)||void 0===n?void 0:n.call(a,e)}},7557:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(5163),i=n(7576),o=n(9500),a=n(4923),s=(0,r.pi)((0,r.pi)({},a.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}),u=function(t){return s[t]}},4923:(t,e,n)=>{n.d(e,{j:()=>a});var r=n(155),i=n(1513),o=n(6933),a={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,size:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,rotate:r.RW,rotateX:r.RW,rotateY:r.RW,rotateZ:r.RW,scale:i.bA,scaleX:i.bA,scaleY:i.bA,scaleZ:i.bA,skew:r.RW,skewX:r.RW,skewY:r.RW,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:i.Fq,originX:r.$C,originY:r.$C,originZ:r.px,zIndex:o.e,fillOpacity:i.Fq,strokeOpacity:i.Fq,numOctaves:o.e}},6933:(t,e,n)=>{n.d(e,{e:()=>o});var r=n(5163),i=n(1513),o=(0,r.pi)((0,r.pi)({},i.Rx),{transform:Math.round})},5264:(t,e,n)=>{n.d(e,{Ee:()=>l,Gl:()=>i,_c:()=>s,r$:()=>r,s3:()=>o});var r=["","X","Y","Z"],i=["transformPerspective","x","y","z"];function o(t,e){return i.indexOf(t)-i.indexOf(e)}["translate","scale","rotate","skew"].forEach((function(t){return r.forEach((function(e){return i.push(t+e)}))}));var a=new Set(i);function s(t){return a.has(t)}var u=new Set(["originX","originY","originZ"]);function l(t){return u.has(t)}},7921:(t,e,n)=>{var r;n.d(e,{r:()=>r}),function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(r||(r={}))},1180:(t,e,n)=>{function r(t,e){-1===t.indexOf(e)&&t.push(e)}function i(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:()=>i,y4:()=>r})},7048:(t,e,n)=>{n.d(e,{Y:()=>o,p:()=>i});var r=n(2819),i=function(t){return Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)},o=function(t){return(0,r.C)(t)?t[t.length-1]||0:t}},1065:(t,e,n)=>{n.d(e,{L:()=>i});var r=n(1180),i=function(){function t(){this.subscriptions=[]}return t.prototype.add=function(t){var e=this;return(0,r.y4)(this.subscriptions,t),function(){return(0,r.cl)(e.subscriptions,t)}},t.prototype.notify=function(t,e,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(var i=0;i<r;i++){var o=this.subscriptions[i];o&&o(t,e,n)}},t.prototype.getSize=function(){return this.subscriptions.length},t.prototype.clear=function(){this.subscriptions.length=0},t}()},1818:(t,e,n)=>{n.d(e,{w:()=>r});var r=function(t){return 1e3*t}},9531:(t,e,n)=>{n.d(e,{z:()=>i});var r=n(8370);function i(t){return(0,r.useEffect)((function(){return function(){return t()}}),[])}},1421:(t,e,n)=>{n.d(e,{B:()=>s});var r=n(6162),i=n(9296),o=n(1065),a=function(){function t(t){var e,n=this;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new o.L,this.velocityUpdateSubscribers=new o.L,this.renderSubscribers=new o.L,this.canTrackVelocity=!1,this.updateAndNotify=function(t,e){void 0===e&&(e=!0),n.prev=n.current,n.current=t;var i=(0,r.$B)(),o=i.delta,a=i.timestamp;n.lastUpdated!==a&&(n.timeDelta=o,n.lastUpdated=a,r.ZP.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),e&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return r.ZP.postRender(n.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,e){void 0===e&&(e=!0),e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?(0,i.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var e=this;return this.stop(),new Promise((function(n){e.hasAnimated=!0,e.stopAnimation=t(n)})).then((function(){return e.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function s(t){return new a(t)}},7846:(t,e,n)=>{n.d(e,{i:()=>r});var r=function(t){return Boolean(null!==t&&"object"==typeof t&&t.getVelocity)}},5163:(t,e,n)=>{n.d(e,{CR:()=>s,ZT:()=>i,_T:()=>a,ev:()=>u,pi:()=>o});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}Object.create;function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create},8370:t=>{t.exports=void 0},6162:(t,e,n)=>{n.d(e,{qY:()=>f,ZP:()=>x,iW:()=>v,$B:()=>g});const r=1/60*1e3,i="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(i())),r);let a=!0,s=!1,u=!1;const l={delta:0,timestamp:0},c=["read","update","preRender","render","postRender"],p=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(t,o=!1,s=!1)=>{const u=s&&i,l=u?e:n;return o&&a.add(t),-1===l.indexOf(t)&&(l.push(t),u&&i&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),a.delete(t)},process:u=>{if(i)o=!0;else{if(i=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(u),a.has(r)&&(s.schedule(r),t())}i=!1,o&&(o=!1,s.process(u))}}};return s}((()=>s=!0)),t)),{}),d=c.reduce(((t,e)=>{const n=p[e];return t[e]=(t,e=!1,r=!1)=>(s||y(),n.schedule(t,e,r)),t}),{}),f=c.reduce(((t,e)=>(t[e]=p[e].cancel,t)),{}),v=c.reduce(((t,e)=>(t[e]=()=>p[e].process(l),t)),{}),h=t=>p[t].process(l),m=t=>{s=!1,l.delta=a?r:Math.max(Math.min(t-l.timestamp,40),1),l.timestamp=t,u=!0,c.forEach(h),u=!1,s&&(a=!1,o(m))},y=()=>{s=!0,a=!0,u||o(m)},g=()=>l,x=d},9012:(t,e,n)=>{n.d(e,{$:()=>i});var r=n(3203);const i={test:(0,n(1552).i)("#"),parse:function(t){let e="",n="",r="",i="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2),i=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),i=t.substr(4,1),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:r.m.transform}},7493:(t,e,n)=>{n.d(e,{J:()=>s});var r=n(1513),i=n(155),o=n(5757),a=n(1552);const s={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:a=1})=>"hsla("+Math.round(t)+", "+i.aQ.transform((0,o.Nw)(e))+", "+i.aQ.transform((0,o.Nw)(n))+", "+(0,o.Nw)(r.Fq.transform(a))+")"}},7576:(t,e,n)=>{n.d(e,{$:()=>s});var r=n(5757),i=n(9012),o=n(7493),a=n(3203);const s={test:t=>a.m.test(t)||i.$.test(t)||o.J.test(t),parse:t=>a.m.test(t)?a.m.parse(t):o.J.test(t)?o.J.parse(t):i.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?a.m.transform(t):o.J.transform(t)}},3203:(t,e,n)=>{n.d(e,{m:()=>u});var r=n(1513),i=n(5757),o=n(1552);const a=(0,i.uZ)(0,255),s=Object.assign(Object.assign({},r.Rx),{transform:t=>Math.round(a(t))}),u={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:o=1})=>"rgba("+s.transform(t)+", "+s.transform(e)+", "+s.transform(n)+", "+(0,i.Nw)(r.Fq.transform(o))+")"}},1552:(t,e,n)=>{n.d(e,{d:()=>o,i:()=>i});var r=n(5757);const i=(t,e)=>n=>Boolean((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),o=(t,e,n)=>i=>{if(!(0,r.HD)(i))return i;const[o,a,s,u]=i.match(r.KP);return{[t]:parseFloat(o),[e]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==u?parseFloat(u):1}}},9500:(t,e,n)=>{n.d(e,{h:()=>u});var r=n(6002),i=n(5757);const o=new Set(["brightness","contrast","saturate","opacity"]);function a(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(i.KP)||[];if(!r)return t;const a=n.replace(r,"");let s=o.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+a+")"}const s=/([a-z-]*)\(.*?\)/g,u=Object.assign(Object.assign({},r.P),{getAnimatableNone:t=>{const e=t.match(s);return e?e.map(a).join(" "):t}})},6002:(t,e,n)=>{n.d(e,{P:()=>d});var r=n(7576),i=n(1513),o=n(5757);const a="${c}",s="${n}";function u(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0;const u=t.match(o.dA);u&&(n=u.length,t=t.replace(o.dA,a),e.push(...u.map(r.$.parse)));const l=t.match(o.KP);return l&&(t=t.replace(o.KP,s),e.push(...l.map(i.Rx.parse))),{values:e,numColors:n,tokenised:t}}function l(t){return u(t).values}function c(t){const{values:e,numColors:n,tokenised:i}=u(t),l=e.length;return t=>{let e=i;for(let i=0;i<l;i++)e=e.replace(i<n?a:s,i<n?r.$.transform(t[i]):(0,o.Nw)(t[i]));return e}}const p=t=>"number"==typeof t?0:t;const d={test:function(t){var e,n,r,i;return isNaN(t)&&(0,o.HD)(t)&&(null!==(n=null===(e=t.match(o.KP))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(i=null===(r=t.match(o.dA))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:l,createTransformer:c,getAnimatableNone:function(t){const e=l(t);return c(t)(e.map(p))}}},1513:(t,e,n)=>{n.d(e,{Fq:()=>o,Rx:()=>i,bA:()=>a});var r=n(5757);const i={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o=Object.assign(Object.assign({},i),{transform:(0,r.uZ)(0,1)}),a=Object.assign(Object.assign({},i),{default:1})},155:(t,e,n)=>{n.d(e,{$C:()=>c,RW:()=>o,aQ:()=>a,px:()=>s,vh:()=>u,vw:()=>l});var r=n(5757);const i=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),o=i("deg"),a=i("%"),s=i("px"),u=i("vh"),l=i("vw"),c=Object.assign(Object.assign({},a),{parse:t=>a.parse(t)/100,transform:t=>a.transform(100*t)})},5757:(t,e,n)=>{n.d(e,{HD:()=>u,KP:()=>o,Nw:()=>i,dA:()=>a,mj:()=>s,uZ:()=>r});const r=(t,e)=>n=>Math.max(Math.min(n,e),t),i=t=>t%1?Number(t.toFixed(5)):t,o=/(-)?([\d]*\.?[\d])+/g,a=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,s=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function u(t){return"string"==typeof t}},940:(t,e,n)=>{n.d(e,{LU:()=>y,G2:()=>v,XL:()=>m,CG:()=>h,h9:()=>x,yD:()=>b,gJ:()=>g,Z7:()=>p,X7:()=>f,Bn:()=>d,YQ:()=>s,mZ:()=>c,Vv:()=>l,GE:()=>a});const r=t=>e=>1-t(1-e),i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,o=t=>e=>e*e*((t+1)*e-t),a=t=>t,s=(u=2,t=>Math.pow(t,u));var u;const l=r(s),c=i(s),p=t=>1-Math.sin(Math.acos(t)),d=r(p),f=i(d),v=o(1.525),h=r(v),m=i(v),y=(t=>{const e=o(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(1.525),g=t=>{if(1===t||0===t)return t;const e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},x=r(g),b=t=>t<.5?.5*(1-g(1-2*t)):.5*g(2*t-1)+.5},6773:(t,e,n)=>{n.d(e,{u:()=>r});const r=(t,e,n)=>Math.min(Math.max(n,t),e)},734:(t,e,n)=>{n.d(e,{e:()=>r});const r=t=>"number"==typeof t},2453:(t,e,n)=>{n.d(e,{C:()=>r});const r=(t,e,n)=>-n*t+n*e+t},9897:(t,e,n)=>{n.d(e,{z:()=>i});const r=(t,e)=>n=>e(t(n)),i=(...t)=>t.reduce(r)},9326:(t,e,n)=>{n.d(e,{Y:()=>r});const r=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r}},9296:(t,e,n)=>{function r(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>r})}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(5163),e=n(8370),r=n.n(e),i=n(9340),o=n(3541),a=n(409),s=n(6162),u=n(1818),l=n(8744);const c=t=>t.hasOwnProperty("x")&&t.hasOwnProperty("y"),p=t=>c(t)&&t.hasOwnProperty("z");var d=n(734);const f=(t,e)=>Math.abs(t-e);function v(t,e){if((0,d.e)(t)&&(0,d.e)(e))return f(t,e);if(c(t)&&c(e)){const n=f(t.x,e.x),r=f(t.y,e.y),i=p(t)&&p(e)?f(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var h=n(9897),m=function(){function e(e,n,r){var i=(void 0===r?{}:r).transformPagePoint,u=this;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(u.lastMoveEvent&&u.lastMoveEventInfo){var e=x(u.lastMoveEventInfo,u.history),n=null!==u.startEvent,r=v(e.offset,{x:0,y:0})>=3;if(n||r){var i=e.point,o=(0,s.$B)().timestamp;u.history.push((0,t.pi)((0,t.pi)({},i),{timestamp:o}));var a=u.handlers,l=a.onStart,c=a.onMove;n||(l&&l(u.lastMoveEvent,e),u.startEvent=u.lastMoveEvent),c&&c(u.lastMoveEvent,e)}}},this.handlePointerMove=function(t,e){u.lastMoveEvent=t,u.lastMoveEventInfo=y(e,u.transformPagePoint),(0,o.N)(t)&&0===t.buttons?u.handlePointerUp(t,e):s.ZP.update(u.updatePoint,!0)},this.handlePointerUp=function(t,e){u.end();var n=u.handlers,r=n.onEnd,i=n.onSessionEnd,o=x(y(e,u.transformPagePoint),u.history);u.startEvent&&r&&r(t,o),i&&i(t,o)},!((0,o.z)(e)&&e.touches.length>1)){this.handlers=n,this.transformPagePoint=i;var c=y((0,a.Qk)(e),this.transformPagePoint),p=c.point,d=(0,s.$B)().timestamp;this.history=[(0,t.pi)((0,t.pi)({},p),{timestamp:d})];var f=n.onSessionStart;f&&f(e,x(c,this.history)),this.removeListeners=(0,h.z)((0,l.a)(window,"pointermove",this.handlePointerMove),(0,l.a)(window,"pointerup",this.handlePointerUp),(0,l.a)(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),s.qY.update(this.updatePoint)},e}();function y(t,e){return e?{point:e(t.point)}:t}function g(t,e){return{x:t.x-e.x,y:t.y-e.y}}function x(t,e){var n=t.point;return{point:n,delta:g(n,P(e)),offset:g(n,b(e)),velocity:T(e,.1)}}function b(t){return t[0]}function P(t){return t[t.length-1]}function T(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,r=null,i=P(t);n>=0&&(r=t[n],!(i.timestamp-r.timestamp>(0,u.w)(e)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var w=n(5856);function A(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var E=n(2453),C=n(9326),S=n(6773);function V(t){return t.max-t.min}function R(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=.01),v(t,e)<n}function M(t,e,n,r){void 0===r&&(r=.5),t.origin=r,t.originPoint=(0,E.C)(e.min,e.max,t.origin),t.scale=V(n)/V(e),(R(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,E.C)(n.min,n.max,t.origin)-t.originPoint,(R(t.translate)||isNaN(t.translate))&&(t.translate=0)}function L(t,e,n,r){M(t.x,e.x,n.x,null==r?void 0:r.originX),M(t.y,e.y,n.y,null==r?void 0:r.originY)}function D(t,e,n){t.min=n.min+e.min,t.max=t.min+V(e)}function k(t,e,n){t.min=e.min-n.min,t.max=t.min+V(e)}function O(t,e,n){k(t.x,e.x,n.x),k(t.y,e.y,n.y)}function j(t,e,n){var r=e.min,i=e.max;return void 0!==r&&t<r?t=n?(0,E.C)(r,t,n.min):Math.max(t,r):void 0!==i&&t>i&&(t=n?(0,E.C)(i,t,n.max):Math.min(t,i)),t}function F(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(e,n){var r,i=n.min-e.min,o=n.max-e.max;return n.max-n.min<e.max-e.min&&(i=(r=(0,t.CR)([o,i],2))[0],o=r[1]),{min:i,max:o}}function U(t,e){var n=.5,r=V(t),i=V(e);return i>r?n=(0,C.Y)(e.min,e.max-r,t.min):r>i&&(n=(0,C.Y)(t.min,t.max-i,e.min)),(0,S.u)(0,1,n)}var I=.35;function N(t,e,n){return{min:z(t,e),max:z(t,n)}}function z(t,e){var n;return"number"==typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}var Y=n(7921);function $(t){return[t("x"),t("y")]}var W=n(8834),H=n(1261),q=n(483),Z=n(1876),_=n(155),X=new WeakMap,G=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}return e.prototype.start=function(t,e){var n=this,r=(void 0===e?{}:e).snapToCursor,i=void 0!==r&&r;if(!1!==this.visualElement.isPresent){this.panSession=new m(t,{onSessionStart:function(t){n.stopAnimation(),i&&n.snapToCursor((0,a.Qk)(t,"page").point)},onStart:function(t,e){var r,i=n.getProps(),o=i.drag,a=i.dragPropagation,s=i.onDragStart;(!o||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=(0,w.fJ)(o),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),$((function(t){var e,r,i=n.getAxisMotionValue(t).get()||0;if(_.aQ.test(i)){var o=null===(r=null===(e=n.visualElement.projection)||void 0===e?void 0:e.layout)||void 0===r?void 0:r.actual[t];if(o)i=V(o)*(parseFloat(i)/100)}n.originPoint[t]=i})),null==s||s(t,e),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Y.r.Drag,!0))},onMove:function(t,e){var r=n.getProps(),i=r.dragPropagation,o=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(i||n.openGlobalLock){var u=e.offset;if(o&&null===n.currentDirection)return n.currentDirection=function(t,e){void 0===e&&(e=10);var n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(u),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",e.point,u),n.updateAxis("y",e.point,u),n.visualElement.syncRender(),null==s||s(t,e)}},onSessionEnd:function(t,e){return n.stop(t,e)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,e){var n=this.isDragging;if(this.cancel(),n){var r=e.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null==i||i(t,e)}},e.prototype.cancel=function(){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,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(e=this.visualElement.animationState)||void 0===e||e.setActive(Y.r.Drag,!1)},e.prototype.updateAxis=function(t,e,n){var r=this.getProps().drag;if(n&&K(t,r,this.currentDirection)){var i=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=j(o,this.constraints[t],this.elastic[t])),i.set(o)}},e.prototype.resolveConstraints=function(){var t=this,e=this.getProps(),n=e.dragConstraints,r=e.dragElastic,i=(this.visualElement.projection||{}).layout,o=this.constraints;n&&A(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(t,e){var n=e.top,r=e.left,i=e.bottom,o=e.right;return{x:F(t.x,r,o),y:F(t.y,n,i)}}(i.actual,n),this.elastic=function(t){return void 0===t&&(t=I),!1===t?t=0:!0===t&&(t=I),{x:N(t,"left","right"),y:N(t,"top","bottom")}}(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&$((function(e){t.getAxisMotionValue(e)&&(t.constraints[e]=function(t,e){var n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.actual[e],t.constraints[e]))}))},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),e=t.dragConstraints,n=t.onMeasureDragConstraints;if(!e||!A(e))return!1;var r=e.current;(0,i.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=(0,W.z)(r,o.root,this.visualElement.getTransformPagePoint()),s=function(t,e){return{x:B(t.x,e.x),y:B(t.y,e.y)}}(o.layout.actual,a);if(n){var u=n((0,q.z2)(s));this.hasMutatedConstraints=!!u,u&&(s=(0,q.i8)(u))}return s},e.prototype.startAnimation=function(e){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,a=r.dragElastic,s=r.dragTransition,u=r.dragSnapToOrigin,l=r.onDragTransitionEnd,c=this.constraints||{},p=$((function(r){var l;if(K(r,i,n.currentDirection)){var p=null!==(l=null==c?void 0:c[r])&&void 0!==l?l:{};u&&(p={min:0,max:0});var d=a?200:1e6,f=a?40:1e7,v=(0,t.pi)((0,t.pi)({type:"inertia",velocity:o?e[r]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},s),p);return n.startAxisValueAnimation(r,v)}}));return Promise.all(p).then(l)},e.prototype.startAxisValueAnimation=function(t,e){var n=this.getAxisMotionValue(t);return(0,H.b8)(t,n,0,e)},e.prototype.stopAnimation=function(){var t=this;$((function(e){return t.getAxisMotionValue(e).stop()}))},e.prototype.getAxisMotionValue=function(t){var e,n,r="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(t){var e=this;$((function(n){if(K(n,e.getProps().drag,e.currentDirection)){var r=e.visualElement.projection,i=e.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.actual[n],a=o.min,s=o.max;i.set(t[n]-(0,E.C)(a,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var t,e=this,n=this.getProps(),r=n.drag,i=n.dragConstraints,o=this.visualElement.projection;if(A(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};$((function(t){var n=e.getAxisMotionValue(t);if(n){var r=n.get();a[t]=U({min:r,max:r},e.constraints[t])}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),$((function(t){if(K(t,r,null)){var n=e.getAxisMotionValue(t),i=e.constraints[t],o=i.min,s=i.max;n.set((0,E.C)(o,s,a[t]))}}))}},e.prototype.addListeners=function(){var t,e=this;X.set(this.visualElement,this);var n=this.visualElement.getInstance(),r=(0,l.a)(n,"pointerdown",(function(t){var n=e.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&e.start(t)})),i=function(){A(e.getProps().dragConstraints)&&(e.constraints=e.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",i);o&&!o.layout&&(null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout()),i();var s=(0,Z.E)(window,"resize",(function(){return e.scalePositionWithinConstraints()})),u=o.addEventListener("didUpdate",(function(t){var n=t.delta,r=t.hasLayoutChanged;e.isDragging&&r&&($((function(t){var r=e.getAxisMotionValue(t);r&&(e.originPoint[t]+=n[t].translate,r.set(r.get()+n[t].translate))})),e.visualElement.syncRender())}));return function(){s(),r(),a(),null==u||u()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),n=e.drag,r=void 0!==n&&n,i=e.dragDirectionLock,o=void 0!==i&&i,a=e.dragPropagation,s=void 0!==a&&a,u=e.dragConstraints,l=void 0!==u&&u,c=e.dragElastic,p=void 0===c?I:c,d=e.dragMomentum,f=void 0===d||d;return(0,t.pi)((0,t.pi)({},e),{drag:r,dragDirectionLock:o,dragPropagation:s,dragConstraints:l,dragElastic:p,dragMomentum:f})},e}();function K(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}var J=(0,e.createContext)({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"}),Q=n(9531);var tt=n(6295),et={pan:(0,tt.x)((function(t){var n=t.onPan,r=t.onPanStart,i=t.onPanEnd,o=t.onPanSessionStart,a=t.visualElement,s=n||r||i||o,u=(0,e.useRef)(null),c=(0,e.useContext)(J).transformPagePoint,p={onSessionStart:o,onStart:r,onMove:n,onEnd:function(t,e){u.current=null,i&&i(t,e)}};(0,e.useEffect)((function(){null!==u.current&&u.current.updateHandlers(p)})),(0,l.m)(a,"pointerdown",s&&function(t){u.current=new m(t,p,{transformPagePoint:c})}),(0,Q.z)((function(){return u.current&&u.current.end()}))})),drag:(0,tt.x)((function(t){var n,r,i=t.dragControls,o=t.visualElement,a=(n=function(){return new G(o)},null===(r=(0,e.useRef)(null)).current&&(r.current=n()),r.current);(0,e.useEffect)((function(){return i&&i.subscribe(a)}),[a,i]),(0,e.useEffect)((function(){return a.addListeners()}),[a])}))},nt=n(1930),rt=(0,e.createContext)({}),it=(0,e.createContext)({}),ot={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function at(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}var st={correct:function(t,e){if(!e.target)return t;if("string"==typeof t){if(!_.px.test(t))return t;t=parseFloat(t)}var n=at(t,e.target.x),r=at(t,e.target.y);return"".concat(n,"% ").concat(r,"%")}},ut=n(6002),lt=n(6978),ct="_$css",pt={correct:function(t,e){var n=e.treeScale,r=e.projectionDelta,i=t,o=t.includes("var("),a=[];o&&(t=t.replace(lt.Xp,(function(t){return a.push(t),ct})));var s=ut.P.parse(t);if(s.length>5)return i;var u=ut.P.createTransformer(t),l="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,p=r.y.scale*n.y;s[0+l]/=c,s[1+l]/=p;var d=(0,E.C)(c,p,.5);"number"==typeof s[2+l]&&(s[2+l]/=d),"number"==typeof s[3+l]&&(s[3+l]/=d);var f=u(s);if(o){var v=0;f=f.replace(ct,(function(){var t=a[v];return v++,t}))}return f}},dt=n(798),ft=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){var e=this,n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,a=n.layoutId,s=r.projection;(0,dt.B)(vt),s&&((null==i?void 0:i.group)&&i.group.add(s),(null==o?void 0:o.register)&&a&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){e.safeToRemove()})),s.setOptions((0,t.pi)((0,t.pi)({},s.options),{onExitComplete:function(){return e.safeToRemove()}}))),ot.hasEverUpdated=!0},n.prototype.getSnapshotBeforeUpdate=function(t){var e=this,n=this.props,r=n.layoutDependency,i=n.visualElement,o=n.drag,a=n.isPresent,u=i.projection;return u?(u.isPresent=a,o||t.layoutDependency!==r||void 0===r?u.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?u.promote():u.relegate()||s.ZP.postRender((function(){var t;(null===(t=u.getStack())||void 0===t?void 0:t.members.length)||e.safeToRemove()}))),null):null},n.prototype.componentDidUpdate=function(){var t=this.props.visualElement.projection;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())},n.prototype.componentWillUnmount=function(){var t=this.props,e=t.visualElement,n=t.layoutGroup,r=t.switchLayoutGroup,i=e.projection;i&&(i.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(i),(null==r?void 0:r.deregister)&&r.deregister(i))},n.prototype.safeToRemove=function(){var t=this.props.safeToRemove;null==t||t()},n.prototype.render=function(){return null},n}(r().Component);var vt={borderRadius:(0,t.pi)((0,t.pi)({},st),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:st,borderTopRightRadius:st,borderBottomLeftRadius:st,borderBottomRightRadius:st,boxShadow:pt},ht={measureLayout:function(n){var i=(0,t.CR)((0,nt.oO)(),2),o=i[0],a=i[1],s=(0,e.useContext)(rt);return r().createElement(ft,(0,t.pi)({},n,{layoutGroup:s,switchLayoutGroup:(0,e.useContext)(it),isPresent:o,safeToRemove:a}))}},mt=n(1421),yt=n(7846);var gt=n(1065),xt=n(940),bt=["TopLeft","TopRight","BottomLeft","BottomRight"],Pt=bt.length,Tt=function(t){return"string"==typeof t?parseFloat(t):t},wt=function(t){return"number"==typeof t||_.px.test(t)};function At(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}var Et=St(0,.5,xt.Bn),Ct=St(.5,.95,xt.GE);function St(t,e,n){return function(r){return r<t?0:r>e?1:n((0,C.Y)(t,e,r))}}function Vt(t,e){t.min=e.min,t.max=e.max}function Rt(t,e){Vt(t.x,e.x),Vt(t.y,e.y)}var Mt=n(1360);function Lt(t,e,n,r,i){return t-=e,t=(0,Mt.q2)(t,1/n,r),void 0!==i&&(t=(0,Mt.q2)(t,1/i,r)),t}function Dt(e,n,r,i,o){var a=(0,t.CR)(r,3),s=a[0],u=a[1],l=a[2];!function(t,e,n,r,i,o,a){if(void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===o&&(o=t),void 0===a&&(a=t),_.aQ.test(e)&&(e=parseFloat(e),e=(0,E.C)(a.min,a.max,e/100)-a.min),"number"==typeof e){var s=(0,E.C)(o.min,o.max,r);t===o&&(s-=e),t.min=Lt(t.min,e,n,s,i),t.max=Lt(t.max,e,n,s,i)}}(e,n[s],n[u],n[l],n.scale,i,o)}var kt=["x","scaleX","originX"],Ot=["y","scaleY","originY"];function jt(t,e,n,r){Dt(t.x,e,kt,null==n?void 0:n.x,null==r?void 0:r.x),Dt(t.y,e,Ot,null==n?void 0:n.y,null==r?void 0:r.y)}function Ft(t){return 0===t.translate&&1===t.scale}function Bt(t){return Ft(t.x)&&Ft(t.y)}function Ut(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}var It=n(1180),Nt=function(){function t(){this.members=[]}return t.prototype.add=function(t){(0,It.y4)(this.members,t),t.scheduleRender()},t.prototype.remove=function(t){if((0,It.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var e=this.members[this.members.length-1];e&&this.promote(e)}},t.prototype.relegate=function(t){var e,n=this.members.findIndex((function(e){return t===e}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)},t.prototype.promote=function(t,e){var n,r=this.lead;t!==r&&(this.prevLead=r,this.lead=t,t.show(),r&&(r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,e&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues,t.snapshot.isShared=!0),(null===(n=t.root)||void 0===n?void 0:n.isUpdating)&&(t.isLayoutDirty=!0),!1===t.options.crossfade&&r.hide()))},t.prototype.exitAnimationComplete=function(){this.members.forEach((function(t){var e,n,r,i,o;null===(n=(e=t.options).onExitComplete)||void 0===n||n.call(e),null===(o=null===(r=t.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)}))},t.prototype.scheduleRender=function(){this.members.forEach((function(t){t.instance&&t.scheduleRender(!1)}))},t.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},t}();function zt(t,e,n){var r=t.x.translate/e.x,i=t.y.translate/e.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/e.x,", ").concat(1/e.y,") "),n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),u&&(o+="rotateY(".concat(u,"deg) "))}var l=t.x.scale*e.x,c=t.y.scale*e.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(l,", ").concat(c,")"))?"none":o}var Yt=n(4918),$t=n(5264),Wt=function(t,e){return t.depth-e.depth},Ht=function(){function t(){this.children=[],this.isDirty=!1}return t.prototype.add=function(t){(0,It.y4)(this.children,t),this.isDirty=!0},t.prototype.remove=function(t){(0,It.cl)(this.children,t),this.isDirty=!0},t.prototype.forEach=function(t){this.isDirty&&this.children.sort(Wt),this.isDirty=!1,this.children.forEach(t)},t}(),qt=n(7048);function Zt(t){var e=(0,yt.i)(t)?t.get():t;return(0,qt.p)(e)?e.toValue():e}function _t(e){var n=e.attachResizeListener,r=e.defaultParent,i=e.measureScroll,o=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,n,i){void 0===n&&(n={}),void 0===i&&(i=null==r?void 0:r());var o=this;this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(ee),o.nodes.forEach(ne)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=n,this.root=i?i.root||i:this,this.path=i?(0,t.ev)((0,t.ev)([],(0,t.CR)(i.path),!1),[i],!1):[],this.parent=i,this.depth=i?i.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ht)}return e.prototype.addEventListener=function(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new gt.L),this.eventHandlers.get(t).add(e)},e.prototype.notifyListeners=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.eventHandlers.get(e);null==i||i.notify.apply(i,(0,t.ev)([],(0,t.CR)(n),!1))},e.prototype.hasListeners=function(t){return this.eventHandlers.has(t)},e.prototype.registerPotentialNode=function(t,e){this.potentialNodes.set(t,e)},e.prototype.mount=function(e,r){var i,o=this;if(void 0===r&&(r=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,s=a.layoutId,u=a.layout,l=a.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(i=this.parent)||void 0===i||i.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),r&&(u||s)&&(this.isLayoutDirty=!0),n){var c,p=function(){return o.root.updateBlockedByResize=!1};n(e,(function(){o.root.updateBlockedByResize=!0,clearTimeout(c),c=window.setTimeout(p,250),ot.hasAnimatedSinceResize&&(ot.hasAnimatedSinceResize=!1,o.nodes.forEach(te))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&l&&(s||u)&&this.addEventListener("didUpdate",(function(e){var n,r,i,a,s,u=e.delta,c=e.hasLayoutChanged,p=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var f=null!==(r=null!==(n=o.options.transition)&&void 0!==n?n:l.getDefaultTransition())&&void 0!==r?r:ue,v=l.getProps(),h=v.onLayoutAnimationStart,m=v.onLayoutAnimationComplete,y=!o.targetLayout||!Ut(o.targetLayout,d)||p,g=!c&&p;if((null===(i=o.resumeFrom)||void 0===i?void 0:i.instance)||g||c&&(y||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(u,g);var x=(0,t.pi)((0,t.pi)({},(0,H.ev)(f,"layout")),{onPlay:h,onComplete:m});l.shouldReduceMotion&&(x.delay=0,x.type=!1),o.startAnimation(x)}else c||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(s=(a=o.options).onExitComplete)||void 0===s||s.call(a));o.targetLayout=d}))}},e.prototype.unmount=function(){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)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(re))},e.prototype.willUpdate=function(t){var e,n,r;if(void 0===t&&(t=!0),this.root.isUpdateBlocked())null===(n=(e=this.options).onExitComplete)||void 0===n||n.call(e);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var i=0;i<this.path.length;i++){var o=this.path[i];o.shouldResetTransform=!0,o.updateScroll()}var a=this.options,s=a.layoutId,u=a.layout;if(void 0!==s||u){var l=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==l?void 0:l(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Jt);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(le),this.potentialNodes.clear()),this.nodes.forEach(Qt),this.nodes.forEach(Xt),this.nodes.forEach(Gt),this.clearAllSnapshots(),s.iW.update(),s.iW.preRender(),s.iW.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Kt),this.sharedNodes.forEach(ie)},e.prototype.scheduleUpdateProjection=function(){s.ZP.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var t=this;s.ZP.postRender((function(){t.isLayoutDirty?t.root.didUpdate():t.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var t=this.measure(),e=this.removeTransform(this.removeElementScroll(t));pe(e),this.snapshot={measured:t,layout:e,latestValues:{}}}},e.prototype.updateLayout=function(){var t;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var e=0;e<this.path.length;e++){this.path[e].updateScroll()}var n=this.measure();pe(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(t=this.options.visualElement)||void 0===t||t.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=i(this.instance))},e.prototype.resetTransform=function(){var t;if(a){var e=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!Bt(this.projectionDelta),r=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,i=null==r?void 0:r(this.latestValues,""),o=i!==this.prevTransformTemplateValue;e&&(n||(0,Yt.u)(this.latestValues)||o)&&(a(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var t=this.options.visualElement;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};var e=t.measureViewportBox(),n=this.root.scroll;return n&&((0,Mt.am)(e.x,n.x),(0,Mt.am)(e.y,n.y)),e},e.prototype.removeElementScroll=function(t){var e={x:{min:0,max:0},y:{min:0,max:0}};Rt(e,t);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,o=r.options,a=r.isScrollRoot;if(r!==this.root&&i&&o.layoutScroll){if(a){Rt(e,t);var s=this.root.scroll;s&&((0,Mt.am)(e.x,-s.x),(0,Mt.am)(e.y,-s.y))}(0,Mt.am)(e.x,i.x),(0,Mt.am)(e.y,i.y)}}return e},e.prototype.applyTransform=function(t,e){void 0===e&&(e=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Rt(n,t);for(var r=0;r<this.path.length;r++){var i=this.path[r];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(0,Mt.D2)(n,{x:-i.scroll.x,y:-i.scroll.y}),(0,Yt.u)(i.latestValues)&&(0,Mt.D2)(n,i.latestValues)}return(0,Yt.u)(this.latestValues)&&(0,Mt.D2)(n,this.latestValues),n},e.prototype.removeTransform=function(t){var e,n={x:{min:0,max:0},y:{min:0,max:0}};Rt(n,t);for(var r=0;r<this.path.length;r++){var i=this.path[r];if(i.instance&&(0,Yt.u)(i.latestValues)){(0,Yt.L)(i.latestValues)&&i.updateSnapshot();var o={x:{min:0,max:0},y:{min:0,max:0}};Rt(o,i.measure()),jt(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layout,o)}}return(0,Yt.u)(this.latestValues)&&jt(n,this.latestValues),n},e.prototype.setTargetDelta=function(t){this.targetDelta=t,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var n;this.options=(0,t.pi)((0,t.pi)((0,t.pi)({},this.options),e),{crossfade:null===(n=e.crossfade)||void 0===n||n})},e.prototype.clearMeasurements=function(){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},e.prototype.resolveTargetDelta=function(){var t,e,n,r,i=this.options,o=i.layout,a=i.layoutId;this.layout&&(o||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},O(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Rt(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(e=this.target,n=this.relativeTarget,r=this.relativeParent.target,D(e.x,n.x,r.x),D(e.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Rt(this.target,this.layout.actual),(0,Mt.o2)(this.target,this.targetDelta)):Rt(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},O(this.relativeTargetOrigin,this.target,this.relativeParent.target),Rt(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!(0,Yt.u)(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var t,e=this.options,n=e.layout,r=e.layoutId;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&&(n||r)){var i=this.getLead();Rt(this.layoutCorrected,this.layout.actual),(0,Mt.YY)(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var o=i.target;if(o){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,u=this.projectionTransform;L(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=zt(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(t){var e,n,r;void 0===t&&(t=!0),null===(n=(e=this.options).scheduleRender)||void 0===n||n.call(e),t&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,n){var r,i=this;void 0===n&&(n=!1);var o=this.snapshot,a=(null==o?void 0:o.latestValues)||{},s=(0,t.pi)({},this.latestValues),u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!n;var l={x:{min:0,max:0},y:{min:0,max:0}},c=null==o?void 0:o.isShared,p=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0)<=1,d=Boolean(c&&!p&&!0===this.options.crossfade&&!this.path.some(se));this.animationProgress=0,this.mixTargetDelta=function(t){var n,r,o,f,v,h=t/1e3;oe(u.x,e.x,h),oe(u.y,e.y,h),i.setTargetDelta(u),i.relativeTarget&&i.relativeTargetOrigin&&i.layout&&(null===(n=i.relativeParent)||void 0===n?void 0:n.layout)&&(O(l,i.layout.actual,i.relativeParent.layout.actual),r=i.relativeTarget,o=i.relativeTargetOrigin,f=l,v=h,ae(r.x,o.x,f.x,v),ae(r.y,o.y,f.y,v)),c&&(i.animationValues=s,function(t,e,n,r,i,o){var a,s,u,l;i?(t.opacity=(0,E.C)(0,null!==(a=n.opacity)&&void 0!==a?a:1,Et(r)),t.opacityExit=(0,E.C)(null!==(s=e.opacity)&&void 0!==s?s:1,0,Ct(r))):o&&(t.opacity=(0,E.C)(null!==(u=e.opacity)&&void 0!==u?u:1,null!==(l=n.opacity)&&void 0!==l?l:1,r));for(var c=0;c<Pt;c++){var p="border".concat(bt[c],"Radius"),d=At(e,p),f=At(n,p);void 0===d&&void 0===f||(d||(d=0),f||(f=0),0===d||0===f||wt(d)===wt(f)?(t[p]=Math.max((0,E.C)(Tt(d),Tt(f),r),0),(_.aQ.test(f)||_.aQ.test(d))&&(t[p]+="%")):t[p]=f)}(e.rotate||n.rotate)&&(t.rotate=(0,E.C)(e.rotate||0,n.rotate||0,r))}(s,a,i.latestValues,h,d,p)),i.root.scheduleUpdateProjection(),i.scheduleRender(),i.animationProgress=h},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var n,r,i=this;this.notifyListeners("animationStart"),null===(n=this.currentAnimation)||void 0===n||n.stop(),this.resumingFrom&&(null===(r=this.resumingFrom.currentAnimation)||void 0===r||r.stop()),this.pendingAnimation&&(s.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=s.ZP.update((function(){ot.hasAnimatedSinceResize=!0,i.currentAnimation=function(t,e,n){void 0===n&&(n={});var r=(0,yt.i)(t)?t:(0,mt.B)(t);return(0,H.b8)("",r,e,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,1e3,(0,t.pi)((0,t.pi)({},e),{onUpdate:function(t){var n;i.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),i.completeAnimation()}})),i.resumingFrom&&(i.resumingFrom.currentAnimation=i.currentAnimation),i.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){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")},e.prototype.finishAnimation=function(){var t;this.currentAnimation&&(null===(t=this.mixTargetDelta)||void 0===t||t.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var t=this.getLead(),e=t.targetWithTransforms,n=t.target,r=t.layout,i=t.latestValues;e&&n&&r&&(Rt(e,n),(0,Mt.D2)(e,i),L(this.projectionDeltaWithTransform,this.layoutCorrected,e,i))},e.prototype.registerSharedNode=function(t,e){var n,r,i;this.sharedNodes.has(t)||this.sharedNodes.set(t,new Nt),this.sharedNodes.get(t).add(e),e.promote({transition:null===(n=e.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=e.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,e)})},e.prototype.isLead=function(){var t=this.getStack();return!t||t.lead===this},e.prototype.getLead=function(){var t;return this.options.layoutId&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this},e.prototype.getPrevLead=function(){var t;return this.options.layoutId?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0},e.prototype.getStack=function(){var t=this.options.layoutId;if(t)return this.root.sharedNodes.get(t)},e.prototype.promote=function(t){var e=void 0===t?{}:t,n=e.needsReset,r=e.transition,i=e.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,i),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var t=this.getStack();return!!t&&t.relegate(this)},e.prototype.resetRotation=function(){var t=this.options.visualElement;if(t){for(var e=!1,n={},r=0;r<$t.r$.length;r++){var i="rotate"+$t.r$[r];t.getStaticValue(i)&&(e=!0,n[i]=t.getStaticValue(i),t.setStaticValue(i,0))}if(e){for(var i in null==t||t.syncRender(),n)t.setStaticValue(i,n[i]);t.scheduleRender()}}},e.prototype.getProjectionStyles=function(t){var e,n,r,i,o,a;void 0===t&&(t={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var u=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Zt(t.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none",s;var l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=Zt(t.pointerEvents)||""),this.hasProjected&&!(0,Yt.u)(this.latestValues)&&(c.transform=u?u({},""):"none",this.hasProjected=!1),c}var p=l.animationValues||l.latestValues;this.applyTransformsToTarget(),s.transform=zt(this.projectionDeltaWithTransform,this.treeScale,p),u&&(s.transform=u(p,s.transform));var d=this.projectionDelta,f=d.x,v=d.y;for(var h in s.transformOrigin="".concat(100*f.origin,"% ").concat(100*v.origin,"% 0"),l.animationValues?s.opacity=l===this?null!==(i=null!==(r=p.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:s.opacity=l===this?null!==(o=p.opacity)&&void 0!==o?o:"":null!==(a=p.opacityExit)&&void 0!==a?a:0,dt.P)if(void 0!==p[h]){var m=dt.P[h],y=m.correct,g=m.applyTo,x=y(p[h],l);if(g)for(var b=g.length,P=0;P<b;P++)s[g[P]]=x;else s[h]=x}return this.options.layoutId&&(s.pointerEvents=l===this?Zt(t.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(t){var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Jt),this.root.sharedNodes.clear()},e}()}function Xt(t){t.updateLayout()}function Gt(t){var e,n,r,i,o=null!==(n=null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)&&void 0!==n?n:t.snapshot;if(t.isLead()&&t.layout&&o&&t.hasListeners("didUpdate")){var a=t.layout,s=a.actual,u=a.measured;"size"===t.options.animationType?$((function(t){var e=o.isShared?o.measured[t]:o.layout[t],n=V(e);e.min=s[t].min,e.max=e.min+n})):"position"===t.options.animationType&&$((function(t){var e=o.isShared?o.measured[t]:o.layout[t],n=V(s[t]);e.max=e.min+n}));var l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};L(l,s,o.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o.isShared?L(c,t.applyTransform(u,!0),o.measured):L(c,s,o.layout);var p=!Bt(l),d=!1;if(!t.resumeFrom&&(t.relativeParent=t.getClosestProjectingParent(),t.relativeParent&&!t.relativeParent.resumeFrom)){var f=t.relativeParent,v=f.snapshot,h=f.layout;if(v&&h){var m={x:{min:0,max:0},y:{min:0,max:0}};O(m,o.layout,v.layout);var y={x:{min:0,max:0},y:{min:0,max:0}};O(y,s,h.actual),Ut(m,y)||(d=!0)}}t.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:c,layoutDelta:l,hasLayoutChanged:p,hasRelativeTargetChanged:d})}else t.isLead()&&(null===(i=(r=t.options).onExitComplete)||void 0===i||i.call(r));t.options.transition=void 0}function Kt(t){t.clearSnapshot()}function Jt(t){t.clearMeasurements()}function Qt(t){var e=t.options.visualElement;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notifyBeforeLayoutMeasure(),t.resetTransform()}function te(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function ee(t){t.resolveTargetDelta()}function ne(t){t.calcProjection()}function re(t){t.resetRotation()}function ie(t){t.removeLeadSnapshot()}function oe(t,e,n){t.translate=(0,E.C)(e.translate,0,n),t.scale=(0,E.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ae(t,e,n,r){t.min=(0,E.C)(e.min,n.min,r),t.max=(0,E.C)(e.max,n.max,r)}function se(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}var ue={duration:.45,ease:[.4,0,.1,1]};function le(t,e){for(var n=t.root,r=t.path.length-1;r>=0;r--)if(Boolean(t.path[r].instance)){n=t.path[r];break}var i=(n&&n!==t.root?n.instance:document).querySelector('[data-projection-id="'.concat(e,'"]'));i&&t.mount(i,!0)}function ce(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function pe(t){ce(t.x),ce(t.y)}var de=_t({attachResizeListener:function(t,e){return(0,Z.E)(t,"resize",e)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),fe={current:void 0},ve=_t({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!fe.current){var t=new de(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),fe.current=t}return fe.current},resetTransform:function(t,e){t.style.transform=null!=e?e:"none"},checkIsScrollRoot:function(t){return Boolean("fixed"===window.getComputedStyle(t).position)}}),he=n(2599);(0,t.pi)((0,t.pi)((0,t.pi)((0,t.pi)({},he.H),et),ht),{projectionNodeConstructor:ve})})()})();
|
|
1
|
+
(()=>{"use strict";var t={9340:(t,e,n)=>{n.d(e,{K:()=>i,k:()=>o});var i=function(){},o=function(){}},2819:(t,e,n)=>{n.d(e,{C:()=>i});const i=t=>Array.isArray(t)},4881:(t,e,n)=>{n.d(e,{ev:()=>xt,b8:()=>bt});var i=n(5163),o=n(9340),s=n(1698);const r=.001;function a({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let a,u;(0,o.K)(t<=1e4,"Spring duration must be 10 seconds or less");let c=1-e;c=(0,s.u)(.05,1,c),t=(0,s.u)(.01,10,t/1e3),c<1?(a=e=>{const i=e*c,o=i*t,s=i-n,a=l(e,c),u=Math.exp(-o);return r-s/a*u},u=e=>{const i=e*c*t,o=i*n+n,s=Math.pow(c,2)*Math.pow(e,2)*t,u=Math.exp(-i),d=l(Math.pow(e,2),c);return(-a(e)+r>0?-1:1)*((o-s)*u)/d}):(a=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,u=e=>Math.exp(-e*t)*(t*t*(n-e)));const d=function(t,e,n){let i=n;for(let n=1;n<12;n++)i-=t(i)/e(i);return i}(a,u,5/t);if(t*=1e3,isNaN(d))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(d,2)*i;return{stiffness:e,damping:2*c*Math.sqrt(i*e),duration:t}}}function l(t,e){return t*Math.sqrt(1-e*e)}const u=["duration","bounce"],c=["stiffness","damping","mass"];function d(t,e){return e.some((e=>void 0!==t[e]))}function h(t){var{from:e=0,to:n=1,restSpeed:o=2,restDelta:s}=t,r=(0,i._T)(t,["from","to","restSpeed","restDelta"]);const h={done:!1,value:e};let{stiffness:m,damping:f,mass:v,velocity:g,duration:y,isResolvedFromDuration:x}=function(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!d(t,c)&&d(t,u)){const n=a(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}(r),b=p,P=p;function T(){const t=g?-g/1e3:0,i=n-e,o=f/(2*Math.sqrt(m*v)),r=Math.sqrt(m/v)/1e3;if(void 0===s&&(s=Math.min(Math.abs(n-e)/100,.4)),o<1){const e=l(r,o);b=s=>{const a=Math.exp(-o*r*s);return n-a*((t+o*r*i)/e*Math.sin(e*s)+i*Math.cos(e*s))},P=n=>{const s=Math.exp(-o*r*n);return o*r*s*(Math.sin(e*n)*(t+o*r*i)/e+i*Math.cos(e*n))-s*(Math.cos(e*n)*(t+o*r*i)-e*i*Math.sin(e*n))}}else if(1===o)b=e=>n-Math.exp(-r*e)*(i+(t+r*i)*e);else{const e=r*Math.sqrt(o*o-1);b=s=>{const a=Math.exp(-o*r*s),l=Math.min(e*s,300);return n-a*((t+o*r*i)*Math.sinh(l)+e*i*Math.cosh(l))/e}}}return T(),{next:t=>{const e=b(t);if(x)h.done=t>=y;else{const i=1e3*P(t),r=Math.abs(i)<=o,a=Math.abs(n-e)<=s;h.done=r&&a}return h.value=h.done?n:e,h},flipTarget:()=>{g=-g,[e,n]=[n,e],T()}}}h.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const p=t=>0;var m=n(1790),f=n(8481),v=n(9012),g=n(3203),y=n(7493);function x(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function b({hue:t,saturation:e,lightness:n,alpha: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=x(a,i,t+1/3),s=x(a,i,t),r=x(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}}const P=(t,e,n)=>{const i=t*t,o=e*e;return Math.sqrt(Math.max(0,n*(o-i)+i))},T=[v.$,g.m,y.J],w=t=>T.find((e=>e.test(t))),A=t=>`'${t}' is not an animatable color. Use the equivalent color code instead.`,E=(t,e)=>{let n=w(t),i=w(e);(0,o.k)(!!n,A(t)),(0,o.k)(!!i,A(e));let s=n.parse(t),r=i.parse(e);n===y.J&&(s=b(s),n=g.m),i===y.J&&(r=b(r),i=g.m);const a=Object.assign({},s);return t=>{for(const e in a)"alpha"!==e&&(a[e]=P(s[e],r[e],t));return a.alpha=(0,f.C)(s.alpha,r.alpha,t),n.transform(a)}};var O=n(7576),S=n(6002),j=n(5091),V=n(934);function C(t,e){return(0,j.e)(t)?n=>(0,f.C)(t,e,n):O.$.test(t)?E(t,e):D(t,e)}const R=(t,e)=>{const n=[...t],i=n.length,o=t.map(((t,n)=>C(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=o[e](t);return n}},M=(t,e)=>{const n=Object.assign(Object.assign({},t),e),i={};for(const o in n)void 0!==t[o]&&void 0!==e[o]&&(i[o]=C(t[o],e[o]));return t=>{for(const e in i)n[e]=i[e](t);return n}};function L(t){const e=S.P.parse(t),n=e.length;let i=0,o=0,s=0;for(let t=0;t<n;t++)i||"number"==typeof e[t]?i++:void 0!==e[t].hue?s++:o++;return{parsed:e,numNumbers:i,numRGB:o,numHSL:s}}const D=(t,e)=>{const n=S.P.createTransformer(e),i=L(t),s=L(e);return i.numHSL===s.numHSL&&i.numRGB===s.numRGB&&i.numNumbers>=s.numNumbers?(0,V.z)(R(i.parsed,s.parsed),n):((0,o.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?e:t}`)},k=(t,e)=>n=>(0,f.C)(t,e,n);function F(t,e,n){const i=[],o=n||("number"==typeof(s=t[0])?k:"string"==typeof s?O.$.test(s)?E:D:Array.isArray(s)?R:"object"==typeof s?M:void 0);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,V.z)(t,s)}i.push(s)}return i}function B(t,e,{clamp:n=!0,ease:i,mixer:r}={}){const a=t.length;(0,o.k)(a===e.length,"Both input and output ranges must be the same length"),(0,o.k)(!i||!Array.isArray(i)||i.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[a-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const l=F(e,i,r),u=2===a?function([t,e],[n]){return i=>n((0,m.Y)(t,e,i))}(t,l):function(t,e){const n=t.length,i=n-1;return o=>{let s=0,r=!1;if(o<=t[0]?r=!0:o>=t[i]&&(s=i-1,r=!0),!r){let e=1;for(;e<n&&!(t[e]>o||e===i);e++);s=e-1}const a=(0,m.Y)(t[s],t[s+1],o);return e[s](a)}}(t,l);return n?e=>u((0,s.u)(t[0],t[a-1],e)):u}var $=n(6924);function U(t,e){return t.map((()=>e||$.mZ)).splice(0,t.length-1)}function I({from:t=0,to:e=1,ease:n,offset:i,duration:o=300}){const s={done:!1,value:t},r=Array.isArray(e)?e:[t,e],a=function(t,e){return t.map((t=>t*e))}(i&&i.length===r.length?i:function(t){const e=t.length;return t.map(((t,n)=>0!==n?n/(e-1):0))}(r),o);function l(){return B(a,r,{ease:Array.isArray(n)?n:U(r,n)})}let u=l();return{next:t=>(s.value=u(t),s.done=t>=o,s),flipTarget:()=>{r.reverse(),u=l()}}}const N={keyframes:I,spring:h,decay:function({velocity:t=0,from:e=0,power:n=.8,timeConstant:i=350,restDelta:o=.5,modifyTarget:s}){const r={done:!1,value:e};let a=n*t;const l=e+a,u=void 0===s?l:s(l);return u!==l&&(a=u-e),{next:t=>{const e=-a*Math.exp(-t/i);return r.done=!(e>o||e<-o),r.value=r.done?u:u+e,r},flipTarget:()=>{}}}};var z=n(6162);function Y(t,e,n=0){return t-e-n}const W=t=>{const e=({delta:e})=>t(e);return{start:()=>z.ZP.update(e,!0),stop:()=>z.qY.update(e)}};function H(t){var e,n,{from:o,autoplay:s=!0,driver:r=W,elapsed:a=0,repeat:l=0,repeatType:u="loop",repeatDelay:c=0,onPlay:d,onStop:p,onComplete:m,onRepeat:f,onUpdate:v}=t,g=(0,i._T)(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let y,x,b,{to:P}=g,T=0,w=g.duration,A=!1,E=!0;const O=function(t){if(Array.isArray(t.to))return I;if(N[t.type])return N[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?I:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?h:I}(g);(null===(n=(e=O).needsInterpolation)||void 0===n?void 0:n.call(e,o,P))&&(b=B([0,100],[o,P],{clamp:!1}),o=0,P=100);const S=O(Object.assign(Object.assign({},g),{from:o,to:P}));function j(){T++,"reverse"===u?(E=T%2==0,a=function(t,e,n=0,i=!0){return i?Y(e+-t,e,n):e-(t-e)+n}(a,w,c,E)):(a=Y(a,w,c),"mirror"===u&&S.flipTarget()),A=!1,f&&f()}function V(t){if(E||(t=-t),a+=t,!A){const t=S.next(Math.max(0,a));x=t.value,b&&(x=b(x)),A=E?t.done:a<=0}null==v||v(x),A&&(0===T&&(null!=w||(w=a)),T<l?function(t,e,n,i){return i?t>=e+n:t<=-n}(a,w,c,E)&&j():(y.stop(),m&&m()))}return s&&(null==d||d(),y=r(V),y.start()),{stop:()=>{null==p||p(),y.stop()}}}var q=n(4060);var X=n(1818);const Z=(t,e)=>1-3*e+3*t,G=(t,e)=>3*e-6*t,_=t=>3*t,K=(t,e,n)=>((Z(e,n)*t+G(e,n))*t+_(e))*t,J=(t,e,n)=>3*Z(e,n)*t*t+2*G(e,n)*t+_(e);const Q=.1;function tt(t,e,n,i){if(t===e&&n===i)return $.GE;const o=new Float32Array(11);for(let e=0;e<11;++e)o[e]=K(e*Q,t,n);function s(e){let i=0,s=1;for(;10!==s&&o[s]<=e;++s)i+=Q;--s;const r=i+(e-o[s])/(o[s+1]-o[s])*Q,a=J(r,t,n);return a>=.001?function(t,e,n,i){for(let o=0;o<8;++o){const o=J(e,n,i);if(0===o)return e;e-=(K(e,n,i)-t)/o}return e}(e,r,t,n):0===a?r:function(t,e,n,i,o){let s,r,a=0;do{r=e+(n-e)/2,s=K(r,i,o)-t,s>0?n=r:e=r}while(Math.abs(s)>1e-7&&++a<10);return r}(e,i,i+Q,t,n)}return t=>0===t||1===t?t:K(s(t),e,i)}const et={linear:$.GE,easeIn:$.YQ,easeInOut:$.mZ,easeOut:$.Vv,circIn:$.Z7,circInOut:$.X7,circOut:$.Bn,backIn:$.G2,backInOut:$.XL,backOut:$.CG,anticipate:$.LU,bounceIn:$.h9,bounceInOut:$.yD,bounceOut:$.gJ},nt=t=>{if(Array.isArray(t)){(0,o.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return tt(e,n,i,s)}return"string"==typeof t?((0,o.k)(void 0!==et[t],`Invalid easing type '${t}'`),et[t]):t},it=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!S.P.test(e)||e.startsWith("url(")));var ot=n(2819);const st=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),rt=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),at=()=>({type:"keyframes",ease:"linear",duration:.3}),lt=t=>({type:"keyframes",duration:.8,values:t}),ut={x:st,y:st,z:st,rotate:st,rotateX:st,rotateY:st,rotateZ:st,scaleX:rt,scaleY:rt,scale:rt,opacity:at,backgroundColor:at,color:at,default:rt};var ct=n(6914);const dt=!1;var ht=n(7048);let pt=!1;function mt(t){var{ease:e,times:n,yoyo:s,flip:r,loop:a}=t,l=(0,i._T)(t,["ease","times","yoyo","flip","loop"]);const u=Object.assign({},l);return n&&(u.offset=n),l.duration&&(u.duration=(0,X.w)(l.duration)),l.repeatDelay&&(u.repeatDelay=(0,X.w)(l.repeatDelay)),e&&(u.ease=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(nt):nt(e)),"tween"===l.type&&(u.type="keyframes"),(s||a||r)&&((0,o.K)(!pt,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),pt=!0,s?u.repeatType="reverse":a?u.repeatType="loop":r&&(u.repeatType="mirror"),u.repeat=a||s||r||l.repeat),"spring"!==l.type&&(u.type="keyframes"),u}function ft(t,e,n){var o;return Array.isArray(e.to)&&(null!==(o=t.duration)&&void 0!==o||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=[...t.to],t.to[0]=t.from)}(e),function(t){var{when:e,delay:n,delayChildren:o,staggerChildren:s,staggerDirection:r,repeat:a,repeatType:l,repeatDelay:u,from:c}=t,d=(0,i._T)(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(d).length}(t)||(t=Object.assign(Object.assign({},t),((t,e)=>{let n;return n=(0,ot.C)(e)?lt:ut[t]||ut.default,Object.assign({to:e},n(e))})(n,e.to))),Object.assign(Object.assign({},e),mt(t))}function vt(t,e,n,i,s){var r;const a=xt(i,t);let l=null!==(r=a.from)&&void 0!==r?r:e.get();const u=it(t,n);"none"===l&&u&&"string"==typeof n?l=(0,ct.T)(t,n):gt(l)&&"string"==typeof n?l=yt(n):!Array.isArray(n)&>(n)&&"string"==typeof l&&(n=yt(l));const c=it(t,l);return(0,o.K)(c===u,`You are trying to animate ${t} from "${l}" to "${n}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${n} via the \`style\` property.`),c&&u&&!1!==a.type?function(){const i={from:l,to:n,velocity:e.getVelocity(),onComplete:s,onUpdate:t=>e.set(t)};return"inertia"===a.type||"decay"===a.type?function({from:t=0,velocity:e=0,min:n,max:i,power:o=.8,timeConstant:s=750,bounceStiffness:r=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:h,onStop:p}){let m;function f(t){return void 0!==n&&t<n||void 0!==i&&t>i}function v(t){return void 0===n?i:void 0===i||Math.abs(n-t)<Math.abs(i-t)?n:i}function g(t){null==m||m.stop(),m=H(Object.assign(Object.assign({},t),{driver:c,onUpdate:e=>{var n;null==d||d(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:h,onStop:p}))}function y(t){g(Object.assign({type:"spring",stiffness:r,damping:a,restDelta:l},t))}if(f(t))y({from:t,velocity:e,to:v(t)});else{let i=o*e+t;void 0!==u&&(i=u(i));const r=v(i),a=r===n?-1:1;let c,d;const h=t=>{c=d,d=t,e=(0,q.R)(t-c,(0,z.$B)().delta),(1===a&&t>r||-1===a&&t<r)&&y({from:t,to:r,velocity:e})};g({type:"decay",from:t,velocity:e,timeConstant:s,power:o,restDelta:l,modifyTarget:u,onUpdate:f(i)?h:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(Object.assign(Object.assign({},i),a)):H(Object.assign(Object.assign({},ft(a,i,t)),{onUpdate:t=>{var e;i.onUpdate(t),null===(e=a.onUpdate)||void 0===e||e.call(a,t)},onComplete:()=>{var t;i.onComplete(),null===(t=a.onComplete)||void 0===t||t.call(a)}}))}:function(){var t,i;const o=(0,ht.Y)(n);return e.set(o),s(),null===(t=null==a?void 0:a.onUpdate)||void 0===t||t.call(a,o),null===(i=null==a?void 0:a.onComplete)||void 0===i||i.call(a),{stop:()=>{}}}}function gt(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function yt(t){return"number"==typeof t?0:(0,ct.T)("",t)}function xt(t,e){return t[e]||t.default||t}function bt(t,e,n,i={}){return dt&&(i={type:!1}),e.start((o=>{let s,r;const a=vt(t,e,n,i,o),l=function(t,e){var n,i;return null!==(i=null!==(n=(xt(t,e)||{}).delay)&&void 0!==n?n:t.delay)&&void 0!==i?i:0}(i,t),u=()=>r=a();return l?s=window.setTimeout(u,(0,X.w)(l)):u(),()=>{clearTimeout(s),null==r||r.stop()}}))}},1930:(t,e,n)=>{n.d(e,{oO:()=>s});var i=n(8370),o=n(7866);function s(){const t=(0,i.useContext)(o.O);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,r=(0,i.useId)();(0,i.useEffect)((()=>s(r)),[]);return!e&&n?[!1,()=>null==n?void 0:n(r)]:[!0]}},7866:(t,e,n)=>{n.d(e,{O:()=>o});var i=n(8370);const o=(0,i.createContext)(null)},409:(t,e,n)=>{n.d(e,{Qk:()=>a,qT:()=>l});var i=n(3541);const o={pageX:0,pageY:0};function s(t,e="page"){const n=t.touches[0]||t.changedTouches[0]||o;return{x:n[e+"X"],y:n[e+"Y"]}}function r(t,e="page"){return{x:t[e+"X"],y:t[e+"Y"]}}function a(t,e="page"){return{point:(0,i.z)(t)?s(t,e):r(t,e)}}const l=(t,e=!1)=>{const n=e=>t(e,a(e));return e?(i=n,t=>{const e=t instanceof MouseEvent;(!e||e&&0===t.button)&&i(t)}):n;var i}},1876:(t,e,n)=>{n.d(e,{E:()=>o,p:()=>s});var i=n(8370);function o(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function s(t,e,n,s){(0,i.useEffect)((()=>{const i=t.current;if(n&&i)return o(i,e,n,s)}),[t,e,n,s])}},1395:(t,e,n)=>{n.d(e,{a:()=>u,m:()=>c});var i=n(1876),o=n(409),s=n(3093);const r={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},a={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function l(t){return s.j&&null===window.onpointerdown?t:s.j&&null===window.ontouchstart?a[t]:s.j&&null===window.onmousedown?r[t]:t}function u(t,e,n,s){return(0,i.E)(t,l(e),(0,o.qT)(n,"pointerdown"===e),s)}function c(t,e,n,s){return(0,i.p)(t,l(e),n&&(0,o.qT)(n,"pointerdown"===e),s)}},5856:(t,e,n)=>{function i(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}n.d(e,{fJ:()=>r,gD:()=>a});const o=i("dragHorizontal"),s=i("dragVertical");function r(t){let e=!1;if("y"===t)e=s();else if("x"===t)e=o();else{const t=o(),n=s();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function a(){const t=r(!0);return!t||(t(),!1)}},3541:(t,e,n)=>{function i(t){return"undefined"!=typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function o(t){return!!t.touches}n.d(e,{N:()=>i,z:()=>o})},6295:(t,e,n)=>{n.d(e,{x:()=>i});const i=t=>e=>(t(e),null)},483:(t,e,n)=>{function i({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function o({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(e,{d7:()=>s,i8:()=>i,z2:()=>o})},1360:(t,e,n)=>{n.d(e,{D2:()=>m,YY:()=>u,am:()=>c,o2:()=>l,q2:()=>s});var i=n(8481),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,c;e.x=e.y=1;for(let d=0;d<a;d++)u=n[d],c=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&&m(t,{x:-u.scroll.x,y:-u.scroll.y}),c&&(e.x*=c.x.scale,e.y*=c.y.scale,l(t,c)),i&&(0,o.u)(u.latestValues)&&m(t,u.latestValues))}function c(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,[n,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 h=["x","scaleX","originX"],p=["y","scaleY","originY"];function m(t,e){d(t.x,e,h),d(t.y,e,p)}},798:(t,e,n)=>{n.d(e,{B:()=>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.x)||r(t.y)||t.z||t.rotate||t.rotateX||t.rotateY}function r(t){return t&&"0%"!==t}n.d(e,{L:()=>o,u:()=>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.x),(0,o.am)(i.y,r.y)),i}},595:(t,e,n)=>{n.d(e,{H:()=>ne});var i=n(8370);function o(t){return"object"==typeof t&&"function"==typeof t.start}var s=n(1930),r=n(7866),a=n(5163),l=n(2819);function u(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}var c=n(4881),d=n(6002);const h=t=>/^0[^.\s]+$/.test(t);var p=n(7048),m=n(1421),f=n(6914),v=n(7576),g=n(1513),y=n(155);const x=t=>e=>e.test(t),b=[g.Rx,y.px,y.aQ,y.RW,y.vw,y.vh,{test:t=>"auto"===t,parse:t=>t}],P=t=>b.find(x(t)),T=[...b,v.$,d.P],w=t=>T.find(x(t));function A(t){return Array.isArray(t)}function E(t){return"string"==typeof t||A(t)}function O(t,e,n){const i=t.getProps();return function(t,e,n,i={},o={}){var s;return"function"==typeof e&&(e=e(null!=n?n:t.custom,i,o)),"string"==typeof e&&(e=null===(s=t.variants)||void 0===s?void 0:s[e]),"function"==typeof e&&(e=e(null!=n?n:t.custom,i,o)),e}(i,e,null!=n?n:i.custom,function(t){const e={};return t.forEachValue(((t,n)=>e[n]=t.get())),e}(t),function(t){const e={};return t.forEachValue(((t,n)=>e[n]=t.getVelocity())),e}(t))}function S(t){var e;return"function"==typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||E(t.initial)||E(t.animate)||E(t.whileHover)||E(t.whileDrag)||E(t.whileTap)||E(t.whileFocus)||E(t.exit)}function j(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,m.B)(n))}function V(t,e){const n=O(t,e);let i=n?t.makeTargetAnimatable(n,!1):{},{transitionEnd:o={},transition:s={}}=i,r=(0,a._T)(i,["transitionEnd","transition"]);r=Object.assign(Object.assign({},r),o);for(const e in r){j(t,e,(0,p.Y)(r[e]))}}function C(t,e){if(!e)return;return(e[t]||e.default||e).from}var R=n(5264),M=n(7846);function L(t){return Boolean((0,M.i)(t)&&t.add)}function D(t,e,n={}){var i;const o=O(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const r=o?()=>k(t,o,n):()=>Promise.resolve(),a=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?(i=0)=>{const{delayChildren:o=0,staggerChildren:r,staggerDirection:a}=s;return function(t,e,n=0,i=0,o=1,s){const r=[],a=(t.variantChildren.size-1)*i,l=1===o?(t=0)=>t*i:(t=0)=>a-t*i;return Array.from(t.variantChildren).sort(F).forEach(((t,i)=>{r.push(D(t,e,Object.assign(Object.assign({},s),{delay:n+l(i)})).then((()=>t.notifyAnimationComplete(e))))})),Promise.all(r)}(t,e,o+i,r,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[t,e]="beforeChildren"===l?[r,a]:[a,r];return t().then(e)}return Promise.all([r(),a(n.delay)])}function k(t,e,{delay:n=0,transitionOverride:i,type:o}={}){var s;let r=t.makeTargetAnimatable(e),{transition:l=t.getDefaultTransition(),transitionEnd:u}=r,d=(0,a._T)(r,["transition","transitionEnd"]);const h=t.getValue("willChange");i&&(l=i);const p=[],m=o&&(null===(s=t.animationState)||void 0===s?void 0:s.getState()[o]);for(const e in d){const i=t.getValue(e),o=d[e];if(!i||void 0===o||m&&B(m,e))continue;let s=Object.assign({delay:n},l);t.shouldReduceMotion&&(0,R._c)(e)&&(s=Object.assign(Object.assign({},s),{type:!1,delay:0}));let r=(0,c.b8)(e,i,o,s);L(h)&&(h.add(e),r=r.then((()=>h.remove(e)))),p.push(r)}return Promise.all(p).then((()=>{u&&V(t,u)}))}function F(t,e){return t.sortNodePosition(e)}function B({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}var $=n(7921);const U=[$.r.Animate,$.r.InView,$.r.Focus,$.r.Hover,$.r.Tap,$.r.Drag,$.r.Exit],I=[...U].reverse(),N=U.length;function z(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notifyAnimationStart(e),Array.isArray(e)){const o=e.map((e=>D(t,e,n)));i=Promise.all(o)}else if("string"==typeof e)i=D(t,e,n);else{const o="function"==typeof e?O(t,e,n.custom):e;i=k(t,o,n)}return i.then((()=>t.notifyAnimationComplete(e)))}(t,e,n))))}function Y(t){let e=z(t);const n={[$.r.Animate]:H(!0),[$.r.InView]:H(),[$.r.Hover]:H(),[$.r.Tap]:H(),[$.r.Drag]:H(),[$.r.Focus]:H(),[$.r.Exit]:H()};let i=!0;const s=(e,n)=>{const i=O(t,n);if(i){const{transition:t,transitionEnd:n}=i,o=(0,a._T)(i,["transition","transitionEnd"]);e=Object.assign(Object.assign(Object.assign({},e),o),n)}return e};function r(r,a){var c;const d=t.getProps(),h=t.getVariantContext(!0)||{},p=[],m=new Set;let f={},v=1/0;for(let e=0;e<N;e++){const g=I[e],y=n[g],x=null!==(c=d[g])&&void 0!==c?c:h[g],b=E(x),P=g===a?y.isActive:null;!1===P&&(v=e);let T=x===h[g]&&x!==d[g]&&b;if(T&&i&&t.manuallyAnimateOnMount&&(T=!1),y.protectedKeys=Object.assign({},f),!y.isActive&&null===P||!x&&!y.prevProp||o(x)||"boolean"==typeof x)continue;const w=W(y.prevProp,x);let A=w||g===a&&y.isActive&&!T&&b||e>v&&b;const O=Array.isArray(x)?x:[x];let S=O.reduce(s,{});!1===P&&(S={});const{prevResolvedValues:j={}}=y,V=Object.assign(Object.assign({},j),S),C=t=>{A=!0,m.delete(t),y.needsAnimating[t]=!0};for(const t in V){const e=S[t],n=j[t];f.hasOwnProperty(t)||(e!==n?(0,l.C)(e)&&(0,l.C)(n)?!u(e,n)||w?C(t):y.protectedKeys[t]=!0:void 0!==e?C(t):m.add(t):void 0!==e&&m.has(t)?C(t):y.protectedKeys[t]=!0)}y.prevProp=x,y.prevResolvedValues=S,y.isActive&&(f=Object.assign(Object.assign({},f),S)),i&&t.blockInitialAnimation&&(A=!1),A&&!T&&p.push(...O.map((t=>({animation:t,options:Object.assign({type:g},r)}))))}if(m.size){const e={};m.forEach((n=>{const i=t.getBaseTarget(n);void 0!==i&&(e[n]=i)})),p.push({animation:e})}let g=Boolean(p.length);return i&&!1===d.initial&&!t.manuallyAnimateOnMount&&(g=!1),i=!1,g?e(p):Promise.resolve()}return{animateChanges:r,setActive:function(e,i,o){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const a=r(o,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function W(t,e){return"string"==typeof e?e!==t:!!A(e)&&!u(e,t)}function H(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var q=n(6295);const X={animation:(0,q.x)((({visualElement:t,animate:e})=>{t.animationState||(t.animationState=Y(t)),o(e)&&(0,i.useEffect)((()=>e.subscribe(t)),[e])})),exit:(0,q.x)((t=>{const{custom:e,visualElement:n}=t,[o,a]=(0,s.oO)(),l=(0,i.useContext)(r.O);(0,i.useEffect)((()=>{var t,i;n.isPresent=o;const s=null===(t=n.animationState)||void 0===t?void 0:t.setActive($.r.Exit,!o,{custom:null!==(i=null==l?void 0:l.custom)&&void 0!==i?i:e});!o&&(null==s||s.then(a))}),[o])}))};var Z=n(1876);var G=n(3541),_=n(1395),K=n(5856);function J(t,e,n){return(i,o)=>{var s;(0,G.N)(i)&&!(0,K.gD)()&&(null===(s=t.animationState)||void 0===s||s.setActive($.r.Hover,e),null==n||n(i,o))}}const Q=(t,e)=>!!e&&(t===e||Q(t,e.parentElement));var tt=n(9531),et=n(934);const nt=("undefined"==typeof process||process.env,"production"),it=new Set;const ot=new WeakMap,st=new WeakMap,rt=t=>{var e;null===(e=ot.get(t.target))||void 0===e||e(t)},at=t=>{t.forEach(rt)};function lt(t,e,n){const i=function(t){var{root:e}=t,n=(0,a._T)(t,["root"]);const i=e||document;st.has(i)||st.set(i,{});const o=st.get(i),s=JSON.stringify(n);return o[s]||(o[s]=new IntersectionObserver(at,Object.assign({root:e},n))),o[s]}(e);return ot.set(t,n),i.observe(t),()=>{ot.delete(t),i.unobserve(t)}}const ut={some:0,all:1};function ct(t,e,n,{root:o,margin:s,amount:r="some",once:a}){(0,i.useEffect)((()=>{if(!t)return;const i={root:null==o?void 0:o.current,rootMargin:s,threshold:"number"==typeof r?r:ut[r]};return lt(n.getInstance(),i,(t=>{var i;const{isIntersecting:o}=t;if(e.isInView===o)return;if(e.isInView=o,a&&!o&&e.hasEnteredView)return;o&&(e.hasEnteredView=!0),null===(i=n.animationState)||void 0===i||i.setActive($.r.InView,o);const s=n.getProps(),r=o?s.onViewportEnter:s.onViewportLeave;null==r||r(t)}))}),[t,o,s,r])}function dt(t,e,n,{fallback:o=!0}){(0,i.useEffect)((()=>{var i,s;t&&o&&("production"!==nt&&(i="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",!1||it.has(i)||(console.warn(i),s&&console.warn(s),it.add(i))),requestAnimationFrame((()=>{var t;e.hasEnteredView=!0;const{onViewportEnter:i}=n.getProps();null==i||i(null),null===(t=n.animationState)||void 0===t||t.setActive($.r.InView,!0)})))}),[t])}const ht={inView:(0,q.x)((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:o,viewport:s={}}){const r=(0,i.useRef)({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||o);s.once&&r.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?dt:ct)(a,r.current,t,s)})),tap:(0,q.x)((function({onTap:t,onTapStart:e,onTapCancel:n,whileTap:o,visualElement:s}){const r=t||e||n||o,a=(0,i.useRef)(!1),l=(0,i.useRef)(null),u={passive:!(e||t||n||m)};function c(){var t;null===(t=l.current)||void 0===t||t.call(l),l.current=null}function d(){var t;return c(),a.current=!1,null===(t=s.animationState)||void 0===t||t.setActive($.r.Tap,!1),!(0,K.gD)()}function h(e,i){d()&&(Q(s.getInstance(),e.target)?null==t||t(e,i):null==n||n(e,i))}function p(t,e){d()&&(null==n||n(t,e))}function m(t,n){var i;c(),a.current||(a.current=!0,l.current=(0,et.z)((0,_.a)(window,"pointerup",h,u),(0,_.a)(window,"pointercancel",p,u)),null===(i=s.animationState)||void 0===i||i.setActive($.r.Tap,!0),null==e||e(t,n))}(0,_.m)(s,"pointerdown",r?m:void 0,u),(0,tt.z)(c)})),focus:(0,q.x)((function({whileFocus:t,visualElement:e}){(0,Z.p)(e,"focus",t?()=>{var t;null===(t=e.animationState)||void 0===t||t.setActive($.r.Focus,!0)}:void 0),(0,Z.p)(e,"blur",t?()=>{var t;null===(t=e.animationState)||void 0===t||t.setActive($.r.Focus,!1)}:void 0)})),hover:(0,q.x)((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:i}){(0,_.m)(i,"pointerenter",t||n?J(i,!0,t):void 0,{passive:!t}),(0,_.m)(i,"pointerleave",e||n?J(i,!1,e):void 0,{passive:!e})}))};var pt=n(6162),mt=n(1065);const ft=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];const vt=({treeType:t="",build:e,getBaseTarget:n,makeTargetAnimatable:i,measureViewportBox:o,render:s,readValueFromInstance:r,removeValueFromRenderState:l,sortNodePosition:u,scrapeMotionValuesFromProps:c})=>({parent:d,props:h,presenceId:p,blockInitialAnimation:f,visualState:v,shouldReduceMotion:g},y={})=>{let x=!1;const{latestValues:b,renderState:P}=v;let T;const w=function(){const t=ft.map((()=>new mt.L)),e={},n={clearAllListeners:()=>t.forEach((t=>t.clear())),updatePropListeners:t=>{ft.forEach((i=>{var o;const s="on"+i,r=t[s];null===(o=e[i])||void 0===o||o.call(e),r&&(e[i]=n[s](r))}))}};return t.forEach(((t,e)=>{n["on"+ft[e]]=e=>t.add(e),n["notify"+ft[e]]=(...e)=>t.notify(...e)})),n}(),A=new Map,O=new Map;let j={};const V=Object.assign({},b);let C;function R(){T&&x&&(D(),s(T,P,h.style,z.projection))}function D(){e(z,P,b,y,h)}function k(){w.notifyUpdate(b)}function F(t,e){const n=e.onChange((e=>{b[t]=e,h.onUpdate&&pt.ZP.update(k,!1,!0)})),i=e.onRenderRequest(z.scheduleRender);O.set(t,(()=>{n(),i()}))}const B=c(h),{willChange:$}=B,U=(0,a._T)(B,["willChange"]);for(const t in U){const e=U[t];void 0!==b[t]&&(0,M.i)(e)&&(e.set(b[t],!1),L($)&&$.add(t))}const I=S(h),N=function(t){return Boolean(S(t)||t.variants)}(h),z=Object.assign(Object.assign({treeType:t,current:null,depth:d?d.depth+1:0,parent:d,children:new Set,presenceId:p,shouldReduceMotion:g,variantChildren:N?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==d?void 0:d.isMounted()),blockInitialAnimation:f,isMounted:()=>Boolean(T),mount(t){x=!0,T=z.current=t,z.projection&&z.projection.mount(t),N&&d&&!I&&(C=null==d?void 0:d.addVariantChild(z)),A.forEach(((t,e)=>F(e,t))),null==d||d.children.add(z),z.setProps(h)},unmount(){var t;null===(t=z.projection)||void 0===t||t.unmount(),pt.qY.update(k),pt.qY.render(R),O.forEach((t=>t())),null==C||C(),null==d||d.children.delete(z),w.clearAllListeners(),T=void 0,x=!1},addVariantChild(t){var e;const n=z.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)},sortNodePosition:e=>u&&t===e.treeType?u(z.getInstance(),e.getInstance()):0,getClosestVariantNode:()=>N?z:null==d?void 0:d.getClosestVariantNode(),getLayoutId:()=>h.layoutId,getInstance:()=>T,getStaticValue:t=>b[t],setStaticValue:(t,e)=>b[t]=e,getLatestValues:()=>b,setVisibility(t){z.isVisible!==t&&(z.isVisible=t,z.scheduleRender())},makeTargetAnimatable:(t,e=!0)=>i(z,t,h,e),measureViewportBox:()=>o(T,h),addValue(t,e){z.hasValue(t)&&z.removeValue(t),A.set(t,e),b[t]=e.get(),F(t,e)},removeValue(t){var e;A.delete(t),null===(e=O.get(t))||void 0===e||e(),O.delete(t),delete b[t],l(t,P)},hasValue:t=>A.has(t),getValue(t,e){let n=A.get(t);return void 0===n&&void 0!==e&&(n=(0,m.B)(e),z.addValue(t,n)),n},forEachValue:t=>A.forEach(t),readValue:t=>{var e;return null!==(e=b[t])&&void 0!==e?e:r(T,t,y)},setBaseTarget(t,e){V[t]=e},getBaseTarget(t){if(n){const e=n(h,t);if(void 0!==e&&!(0,M.i)(e))return e}return V[t]}},w),{build:()=>(D(),P),scheduleRender(){pt.ZP.render(R,!1,!0)},syncRender:R,setProps(t){(t.transformTemplate||h.transformTemplate)&&z.scheduleRender(),h=t,w.updatePropListeners(t),j=function(t,e,n){var i;const{willChange:o}=e;for(const s in e){const r=e[s],a=n[s];if((0,M.i)(r))t.addValue(s,r),L(o)&&o.add(s);else if((0,M.i)(a))t.addValue(s,(0,m.B)(r)),L(o)&&o.remove(s);else if(a!==r)if(t.hasValue(s)){const e=t.getValue(s);!e.hasAnimated&&e.set(r)}else t.addValue(s,(0,m.B)(null!==(i=t.getStaticValue(s))&&void 0!==i?i:r))}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(z,c(h),j)},getProps:()=>h,getVariant:t=>{var e;return null===(e=h.variants)||void 0===e?void 0:e[t]},getDefaultTransition:()=>h.transition,getTransformPagePoint:()=>h.transformPagePoint,getVariantContext(t=!1){if(t)return null==d?void 0:d.getVariantContext();if(!I){const t=(null==d?void 0:d.getVariantContext())||{};return void 0!==h.initial&&(t.initial=h.initial),t}const e={};for(let t=0;t<yt;t++){const n=gt[t],i=h[n];(E(i)||!1===i)&&(e[n]=i)}return e}});return z},gt=["initial",...U],yt=gt.length,xt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function bt(t){return t.startsWith("--")}const Pt=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var Tt=n(4923);function wt(t,e,n,i){var o;const{style:s,vars:r,transform:a,transformKeys:l,transformOrigin:u}=t;l.length=0;let c=!1,d=!1,h=!0;for(const t in e){const n=e[t];if(bt(t)){r[t]=n;continue}const i=Tt.j[t],p=Pt(n,i);if((0,R._c)(t)){if(c=!0,a[t]=p,l.push(t),!h)continue;n!==(null!==(o=i.default)&&void 0!==o?o:0)&&(h=!1)}else(0,R.Ee)(t)?(u[t]=p,d=!0):s[t]=p}c?s.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:i=!0},o,s){let r="";e.sort(R.s3);let a=!1;const l=e.length;for(let n=0;n<l;n++){const i=e[n];r+=`${xt[i]||i}(${t[i]}) `,"z"===i&&(a=!0)}return!a&&n&&(r+="translateZ(0)"),r=r.trim(),s?r=s(t,o?"":r):i&&o&&(r="none"),r}(t,n,h,i):i?s.transform=i({},""):!e.transform&&s.transform&&(s.transform="none"),d&&(s.transformOrigin=function({originX:t="50%",originY:e="50%",originZ:n=0}){return`${t} ${e} ${n}`}(u))}var At=n(6978),Et=n(9340),Ot=n(3093);const St=new Set(["width","height","top","left","right","bottom","x","y"]),jt=t=>St.has(t),Vt=(t,e)=>{t.set(e,!1),t.set(e)},Ct=t=>t===g.Rx||t===y.px;var Rt;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Rt||(Rt={}));const Mt=(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 Mt(o[1],e);{const e=i.match(/^matrix\((.+)\)$/);return e?Mt(e[1],t):0}},Dt=new Set(["x","y","z"]),kt=R.Gl.filter((t=>!Dt.has(t)));const Ft={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)},Bt=(t,e,n={},i={})=>{e=Object.assign({},e),i=Object.assign({},i);const o=Object.keys(e).filter(jt);let s=[],r=!1;const a=[];if(o.forEach((o=>{const u=t.getValue(o);if(!t.hasValue(o))return;let c=n[o],d=P(c);const h=e[o];let p;if((0,l.C)(h)){const t=h.length,e=null===h[0]?1:0;c=h[e],d=P(c);for(let n=e;n<t;n++)p?(0,Et.k)(P(h[n])===p,"All keyframes must be of the same type"):(p=P(h[n]),(0,Et.k)(p===d||Ct(d)&&Ct(p),"Keyframes must be of the same dimension as the current value"))}else p=P(h);if(d!==p)if(Ct(d)&&Ct(p)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof h?e[o]=parseFloat(h):Array.isArray(h)&&p===y.px&&(e[o]=h.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==p?void 0:p.transform)&&(0===c||0===h)?0===c?u.set(p.transform(c)):e[o]=d.transform(h):(r||(s=function(t){const e=[];return kt.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.syncRender(),e}(t),r=!0),a.push(o),i[o]=void 0!==i[o]?i[o]:e[o],Vt(u,h))})),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,o=((t,e,n)=>{const i=e.measureViewportBox(),o=e.getInstance(),s=getComputedStyle(o),{display:r}=s,a={};"none"===r&&e.setStaticValue("display",t.display||"block"),n.forEach((t=>{a[t]=Ft[t](i,s)})),e.syncRender();const l=e.measureViewportBox();return n.forEach((n=>{const i=e.getValue(n);Vt(i,a[n]),t[n]=Ft[n](l,s)})),t})(e,t,a);return s.length&&s.forEach((([e,n])=>{t.getValue(e).set(n)})),t.syncRender(),Ot.j&&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(jt))(e)?Bt(t,e,n,i):{target:e,transitionEnd:i}}var Ut=n(798);function It(t,{layout:e,layoutId:n}){return(0,R._c)(t)||(0,R.Ee)(t)||(e||void 0!==n)&&(!!Ut.P[t]||"opacity"===t)}function Nt(t){const{style:e}=t,n={};for(const i in e)((0,M.i)(e[i])||It(i,t))&&(n[i]=e[i]);return n}function zt(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 Yt=n(7557),Wt=n(8834);const Ht={treeType:"dom",readValueFromInstance(t,e){if((0,R._c)(e)){const t=(0,Yt.A)(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),o=(bt(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof o?o.trim():o}var n},sortNodePosition:(t,e)=>2&t.compareDocumentPosition(e)?1:-1,getBaseTarget(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]},measureViewportBox:(t,{transformPagePoint:e})=>(0,Wt.J)(t,e),resetTransform(t,e,n){const{transformTemplate:i}=n;e.style.transform=i?i({},""):"none",t.scheduleRender()},restoreTransform(t,e){t.style.transform=e.style.transform},removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]},makeTargetAnimatable(t,e,n,i){var{transition:o,transitionEnd:s}=e,r=(0,a._T)(e,["transition","transitionEnd"]),l=n.transformValues;void 0===i&&(i=!0);let u=function(t,e,n){var i,o;const s={};for(const r in t)s[r]=null!==(i=C(r,e))&&void 0!==i?i:null===(o=n.getValue(r))||void 0===o?void 0:o.get();return s}(r,o||{},t);if(l&&(s&&(s=l(s)),r&&(r=l(r)),u&&(u=l(u))),i){!function(t,e,n){var i,o,s,r;const a=Object.keys(e).filter((e=>!t.hasValue(e))),l=a.length;if(l)for(let u=0;u<l;u++){const l=a[u],c=e[l];let p=null;Array.isArray(c)&&(p=c[0]),null===p&&(p=null!==(o=null!==(i=n[l])&&void 0!==i?i:t.readValue(l))&&void 0!==o?o:e[l]),null!=p&&("string"==typeof p&&(/^\-?\d*\.?\d+$/.test(p)||h(p))?p=parseFloat(p):!w(p)&&d.P.test(c)&&(p=(0,f.T)(l,c)),t.addValue(l,(0,m.B)(p)),null!==(s=(r=n)[l])&&void 0!==s||(r[l]=p),t.setBaseTarget(l,p))}}(t,r,u);const e=((t,e,n,i)=>{const o=(0,At.mH)(t,e,i);return $t(t,e=o.target,n,i=o.transitionEnd)})(t,r,u,s);s=e.transitionEnd,r=e.target}return Object.assign({transition:o,transitionEnd:s},r)},scrapeMotionValuesFromProps:Nt,build(t,e,n,i,o){void 0!==t.isVisible&&(e.style.visibility=t.isVisible?"visible":"hidden"),wt(e,n,i,o.transformTemplate)},render:zt},qt=vt(Ht);function Xt(t,e,n){return"string"==typeof t?t:y.px.transform(e+n*t)}const Zt={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gt={offset:"strokeDashoffset",array:"strokeDasharray"};function _t(t,e,n,i){var{attrX:o,attrY:s,originX:r,originY:l,pathLength:u,pathSpacing:c=1,pathOffset:d=0}=e;wt(t,(0,a._T)(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,i),t.attrs=t.style,t.style={};const{attrs:h,style:p,dimensions:m}=t;h.transform&&(m&&(p.transform=h.transform),delete h.transform),m&&(void 0!==r||void 0!==l||p.transform)&&(p.transformOrigin=function(t,e,n){return`${Xt(e,t.x,t.width)} ${Xt(n,t.y,t.height)}`}(m,void 0!==r?r:.5,void 0!==l?l:.5)),void 0!==o&&(h.x=o),void 0!==s&&(h.y=s),void 0!==u&&function(t,e,n=1,i=0,o=!0){t.pathLength=1;const s=o?Zt:Gt;t[s.offset]=y.px.transform(-i);const r=y.px.transform(e),a=y.px.transform(n);t[s.array]=`${r} ${a}`}(h,u,c,d,!1)}const Kt=/([a-z])([A-Z])/g,Jt=t=>t.replace(Kt,"$1-$2").toLowerCase(),Qt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);const te=vt(Object.assign(Object.assign({},Ht),{getBaseTarget:(t,e)=>t[e],readValueFromInstance(t,e){var n;return(0,R._c)(e)?(null===(n=(0,Yt.A)(e))||void 0===n?void 0:n.default)||0:(e=Qt.has(e)?e:Jt(e),t.getAttribute(e))},scrapeMotionValuesFromProps:function(t){const e=Nt(t);for(const n in t)if((0,M.i)(t[n])){e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e},build(t,e,n,i,o){_t(e,n,i,o.transformTemplate)},render:function(t,e,n,i){zt(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(Qt.has(n)?n:Jt(n),e.attrs[n])}})),ee=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];const ne=Object.assign(Object.assign({renderer:(t,e)=>function(t){return"string"==typeof t&&!t.includes("-")&&!!(ee.indexOf(t)>-1||/[A-Z]/.test(t))}(t)?te(e,{enableHardwareAcceleration:!1}):qt(e,{enableHardwareAcceleration:!0})},X),ht)},6978:(t,e,n)=>{n.d(e,{Xp:()=>r,mH:()=>l});var i=n(5163),o=n(9340);function s(t){return"string"==typeof t&&t.startsWith("var(--")}const r=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function a(t,e,n=1){(0,o.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,l]=function(t){const e=r.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}(t);if(!i)return;const u=window.getComputedStyle(e).getPropertyValue(i);return u?u.trim():s(l)?a(l,e,n+1):l}function l(t,e,n){var o,r=(0,i._T)(e,[]);const l=t.getInstance();if(!(l instanceof Element))return{target:r,transitionEnd:n};n&&(n=Object.assign({},n)),t.forEachValue((t=>{const e=t.get();if(!s(e))return;const n=a(e,l);n&&t.set(n)}));for(const t in r){const e=r[t];if(!s(e))continue;const i=a(e,l);i&&(r[t]=i,n&&(null!==(o=n[t])&&void 0!==o||(n[t]=e)))}return{target:r,transitionEnd:n}}},6914:(t,e,n)=>{n.d(e,{T:()=>r});var i=n(9500),o=n(6002),s=n(7557);function r(t,e){var n;let r=(0,s.A)(t);return r!==i.h&&(r=o.P),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,e)}},7557:(t,e,n)=>{n.d(e,{A:()=>a});var i=n(7576),o=n(9500),s=n(4923);const r=Object.assign(Object.assign({},s.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}),a=t=>r[t]},4923:(t,e,n)=>{n.d(e,{j:()=>r});var i=n(155),o=n(1513),s=n(6933);const r={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,size:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,rotate:i.RW,rotateX:i.RW,rotateY:i.RW,rotateZ:i.RW,scale:o.bA,scaleX:o.bA,scaleY:o.bA,scaleZ:o.bA,skew:i.RW,skewX:i.RW,skewY:i.RW,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:o.Fq,originX:i.$C,originY:i.$C,originZ:i.px,zIndex:s.e,fillOpacity:o.Fq,strokeOpacity:o.Fq,numOctaves:s.e}},6933:(t,e,n)=>{n.d(e,{e:()=>o});var i=n(1513);const o=Object.assign(Object.assign({},i.Rx),{transform:Math.round})},5264:(t,e,n)=>{n.d(e,{Ee:()=>u,Gl:()=>o,_c:()=>a,r$:()=>i,s3:()=>s});const i=["","X","Y","Z"],o=["transformPerspective","x","y","z"];function s(t,e){return o.indexOf(t)-o.indexOf(e)}["translate","scale","rotate","skew"].forEach((t=>i.forEach((e=>o.push(t+e)))));const r=new Set(o);function a(t){return r.has(t)}const l=new Set(["originX","originY","originZ"]);function u(t){return l.has(t)}},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})},3093:(t,e,n)=>{n.d(e,{j:()=>i});const i="undefined"!=typeof document},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()),[])}},1421:(t,e,n)=>{n.d(e,{B:()=>a});var i=n(6162),o=n(4060),s=n(1065);class r{constructor(t){var e;this.version="__VERSION__",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new s.L,this.velocityUpdateSubscribers=new s.L,this.renderSubscribers=new s.L,this.canTrackVelocity=!1,this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:o}=(0,i.$B)();this.lastUpdated!==o&&(this.timeDelta=n,this.lastUpdated=o,i.ZP.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),e&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>i.ZP.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,o.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.stopAnimation=t(e)})).then((()=>this.clearAnimation()))}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function a(t){return new r(t)}},7846:(t,e,n)=>{n.d(e,{i:()=>i});const i=t=>Boolean(null!==t&&"object"==typeof t&&t.getVelocity)},5163:(t,e,n)=>{n.d(e,{_T:()=>i});function i(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}Object.create;Object.create},8370:t=>{t.exports=void 0},6162:(t,e,n)=>{n.d(e,{qY:()=>p,ZP:()=>x,iW:()=>m,$B:()=>y});const i=1/60*1e3,o="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),s="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(o())),i);let r=!0,a=!1,l=!1;const u={delta:0,timestamp:0},c=["read","update","preRender","render","postRender"],d=c.reduce(((t,e)=>(t[e]=function(t){let e=[],n=[],i=0,o=!1,s=!1;const r=new WeakSet,a={schedule:(t,s=!1,a=!1)=>{const l=a&&o,u=l?e:n;return s&&r.add(t),-1===u.indexOf(t)&&(u.push(t),l&&o&&(i=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),r.delete(t)},process:l=>{if(o)s=!0;else{if(o=!0,[e,n]=[n,e],n.length=0,i=e.length,i)for(let n=0;n<i;n++){const i=e[n];i(l),r.has(i)&&(a.schedule(i),t())}o=!1,s&&(s=!1,a.process(l))}}};return a}((()=>a=!0)),t)),{}),h=c.reduce(((t,e)=>{const n=d[e];return t[e]=(t,e=!1,i=!1)=>(a||g(),n.schedule(t,e,i)),t}),{}),p=c.reduce(((t,e)=>(t[e]=d[e].cancel,t)),{}),m=c.reduce(((t,e)=>(t[e]=()=>d[e].process(u),t)),{}),f=t=>d[t].process(u),v=t=>{a=!1,u.delta=r?i:Math.max(Math.min(t-u.timestamp,40),1),u.timestamp=t,l=!0,c.forEach(f),l=!1,a&&(r=!1,s(v))},g=()=>{a=!0,r=!0,l||s(v)},y=()=>u,x=h},6924:(t,e,n)=>{n.d(e,{LU:()=>g,G2:()=>m,XL:()=>v,CG:()=>f,h9:()=>x,yD:()=>b,gJ:()=>y,Z7:()=>d,X7:()=>p,Bn:()=>h,YQ:()=>a,mZ:()=>c,Vv:()=>u,GE:()=>r});const i=t=>e=>1-t(1-e),o=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,s=t=>e=>e*e*((t+1)*e-t),r=t=>t,a=(l=2,t=>Math.pow(t,l));var l;const u=i(a),c=o(a),d=t=>1-Math.sin(Math.acos(t)),h=i(d),p=o(h),m=s(1.525),f=i(m),v=o(m),g=(t=>{const e=s(t);return t=>(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))})(1.525),y=t=>{if(1===t||0===t)return t;const e=t*t;return t<.36363636363636365?7.5625*e:t<.7272727272727273?9.075*e-9.9*t+3.4:t<.9?12.066481994459833*e-19.63545706371191*t+8.898060941828255:10.8*t*t-20.52*t+10.72},x=i(y),b=t=>t<.5?.5*(1-y(1-2*t)):.5*y(2*t-1)+.5},1698:(t,e,n)=>{n.d(e,{u:()=>i});const i=(t,e,n)=>Math.min(Math.max(n,t),e)},5091:(t,e,n)=>{n.d(e,{e:()=>i});const i=t=>"number"==typeof t},8481:(t,e,n)=>{n.d(e,{C:()=>i});const i=(t,e,n)=>-n*t+n*e+t},934:(t,e,n)=>{n.d(e,{z:()=>o});const i=(t,e)=>n=>e(t(n)),o=(...t)=>t.reduce(i)},1790:(t,e,n)=>{n.d(e,{Y:()=>i});const i=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i}},4060:(t,e,n)=>{function i(t,e){return e?t*(1e3/e):0}n.d(e,{R:()=>i})},9012:(t,e,n)=>{n.d(e,{$:()=>o});var i=n(3203);const o={test:(0,n(1552).i)("#"),parse:function(t){let e="",n="",i="",o="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),i=t.substr(5,2),o=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),i=t.substr(3,1),o=t.substr(4,1),e+=e,n+=n,i+=i,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}},transform:i.m.transform}},7493:(t,e,n)=>{n.d(e,{J:()=>a});var i=n(1513),o=n(155),s=n(5757),r=n(1552);const a={test:(0,r.i)("hsl","hue"),parse:(0,r.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+o.aQ.transform((0,s.Nw)(e))+", "+o.aQ.transform((0,s.Nw)(n))+", "+(0,s.Nw)(i.Fq.transform(r))+")"}},7576:(t,e,n)=>{n.d(e,{$:()=>a});var i=n(5757),o=n(9012),s=n(7493),r=n(3203);const a={test:t=>r.m.test(t)||o.$.test(t)||s.J.test(t),parse:t=>r.m.test(t)?r.m.parse(t):s.J.test(t)?s.J.parse(t):o.$.parse(t),transform:t=>(0,i.HD)(t)?t:t.hasOwnProperty("red")?r.m.transform(t):s.J.transform(t)}},3203:(t,e,n)=>{n.d(e,{m:()=>l});var i=n(1513),o=n(5757),s=n(1552);const r=(0,o.uZ)(0,255),a=Object.assign(Object.assign({},i.Rx),{transform:t=>Math.round(r(t))}),l={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+a.transform(t)+", "+a.transform(e)+", "+a.transform(n)+", "+(0,o.Nw)(i.Fq.transform(s))+")"}},1552:(t,e,n)=>{n.d(e,{d:()=>s,i:()=>o});var i=n(5757);const o=(t,e)=>n=>Boolean((0,i.HD)(n)&&i.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),s=(t,e,n)=>o=>{if(!(0,i.HD)(o))return o;const[s,r,a,l]=o.match(i.KP);return{[t]:parseFloat(s),[e]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},9500:(t,e,n)=>{n.d(e,{h:()=>l});var i=n(6002),o=n(5757);const s=new Set(["brightness","contrast","saturate","opacity"]);function r(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(o.KP)||[];if(!i)return t;const r=n.replace(i,"");let a=s.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+r+")"}const a=/([a-z-]*)\(.*?\)/g,l=Object.assign(Object.assign({},i.P),{getAnimatableNone:t=>{const e=t.match(a);return e?e.map(r).join(" "):t}})},6002:(t,e,n)=>{n.d(e,{P:()=>h});var i=n(7576),o=n(1513),s=n(5757);const r="${c}",a="${n}";function l(t){"number"==typeof t&&(t=`${t}`);const e=[];let n=0;const l=t.match(s.dA);l&&(n=l.length,t=t.replace(s.dA,r),e.push(...l.map(i.$.parse)));const u=t.match(s.KP);return u&&(t=t.replace(s.KP,a),e.push(...u.map(o.Rx.parse))),{values:e,numColors:n,tokenised:t}}function u(t){return l(t).values}function c(t){const{values:e,numColors:n,tokenised:o}=l(t),u=e.length;return t=>{let e=o;for(let o=0;o<u;o++)e=e.replace(o<n?r:a,o<n?i.$.transform(t[o]):(0,s.Nw)(t[o]));return e}}const d=t=>"number"==typeof t?0:t;const h={test:function(t){var e,n,i,o;return isNaN(t)&&(0,s.HD)(t)&&(null!==(n=null===(e=t.match(s.KP))||void 0===e?void 0:e.length)&&void 0!==n?n:0)+(null!==(o=null===(i=t.match(s.dA))||void 0===i?void 0:i.length)&&void 0!==o?o:0)>0},parse:u,createTransformer:c,getAnimatableNone:function(t){const e=u(t);return c(t)(e.map(d))}}},1513:(t,e,n)=>{n.d(e,{Fq:()=>s,Rx:()=>o,bA:()=>r});var i=n(5757);const o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s=Object.assign(Object.assign({},o),{transform:(0,i.uZ)(0,1)}),r=Object.assign(Object.assign({},o),{default:1})},155:(t,e,n)=>{n.d(e,{$C:()=>c,RW:()=>s,aQ:()=>r,px:()=>a,vh:()=>l,vw:()=>u});var i=n(5757);const o=t=>({test:e=>(0,i.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=o("deg"),r=o("%"),a=o("px"),l=o("vh"),u=o("vw"),c=Object.assign(Object.assign({},r),{parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)})},5757:(t,e,n)=>{n.d(e,{HD:()=>l,KP:()=>s,Nw:()=>o,dA:()=>r,mj:()=>a,uZ:()=>i});const i=(t,e)=>n=>Math.max(Math.min(n,e),t),o=t=>t%1?Number(t.toFixed(5)):t,s=/(-)?([\d]*\.?[\d])+/g,r=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,a=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function l(t){return"string"==typeof t}}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(8370),e=n.n(t),i=n(9340),o=n(3541),s=n(409),r=n(6162),a=n(1818),l=n(1395);const u=t=>t.hasOwnProperty("x")&&t.hasOwnProperty("y"),c=t=>u(t)&&t.hasOwnProperty("z");var d=n(5091);const h=(t,e)=>Math.abs(t-e);function p(t,e){if((0,d.e)(t)&&(0,d.e)(e))return h(t,e);if(u(t)&&u(e)){const n=h(t.x,e.x),i=h(t.y,e.y),o=c(t)&&c(e)?h(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(i,2)+Math.pow(o,2))}}var m=n(934);class f{constructor(t,e,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=y(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=p(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:o}=(0,r.$B)();this.history.push(Object.assign(Object.assign({},i),{timestamp:o}));const{onStart:s,onMove:a}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=v(e,this.transformPagePoint),(0,o.N)(t)&&0===t.buttons?this.handlePointerUp(t,e):r.ZP.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i}=this.handlers,o=y(v(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},(0,o.z)(t)&&t.touches.length>1)return;this.handlers=e,this.transformPagePoint=n;const i=v((0,s.Qk)(t),this.transformPagePoint),{point:a}=i,{timestamp:u}=(0,r.$B)();this.history=[Object.assign(Object.assign({},a),{timestamp:u})];const{onSessionStart:c}=e;c&&c(t,y(i,this.history)),this.removeListeners=(0,m.z)((0,l.a)(window,"pointermove",this.handlePointerMove),(0,l.a)(window,"pointerup",this.handlePointerUp),(0,l.a)(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),r.qY.update(this.updatePoint)}}function v(t,e){return e?{point:e(t.point)}:t}function g(t,e){return{x:t.x-e.x,y:t.y-e.y}}function y({point:t},e){return{point:t,delta:g(t,b(e)),offset:g(t,x(e)),velocity:P(e,.1)}}function x(t){return t[0]}function b(t){return t[t.length-1]}function P(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const o=b(t);for(;n>=0&&(i=t[n],!(o.timestamp-i.timestamp>(0,a.w)(e)));)n--;if(!i)return{x:0,y:0};const s=(o.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};const r={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}var T=n(5856);function w(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var A=n(8481),E=n(1790),O=n(1698);function S(t){return t.max-t.min}function j(t,e=0,n=.01){return p(t,e)<n}function V(t,e,n,i=.5){t.origin=i,t.originPoint=(0,A.C)(e.min,e.max,t.origin),t.scale=S(n)/S(e),(j(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,A.C)(n.min,n.max,t.origin)-t.originPoint,(j(t.translate)||isNaN(t.translate))&&(t.translate=0)}function C(t,e,n,i){V(t.x,e.x,n.x,null==i?void 0:i.originX),V(t.y,e.y,n.y,null==i?void 0:i.originY)}function R(t,e,n){t.min=n.min+e.min,t.max=t.min+S(e)}function M(t,e,n){t.min=e.min-n.min,t.max=t.min+S(e)}function L(t,e,n){M(t.x,e.x,n.x),M(t.y,e.y,n.y)}function D(t,{min:e,max:n},i){return void 0!==e&&t<e?t=i?(0,A.C)(e,t,i.min):Math.max(t,e):void 0!==n&&t>n&&(t=i?(0,A.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 F(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function B(t,e){let n=.5;const i=S(t),o=S(e);return o>i?n=(0,E.Y)(e.min,e.max-i,t.min):i>o&&(n=(0,E.Y)(t.min,t.max-o,e.min)),(0,O.u)(0,1,n)}const $=.35;function U(t,e,n){return{min:I(t,e),max:I(t,n)}}function I(t,e){var n;return"number"==typeof t?t:null!==(n=t[e])&&void 0!==n?n:0}var N=n(7921);function z(t){return[t("x"),t("y")]}var Y=n(8834),W=n(4881),H=n(483),q=n(1876),X=n(155);const Z=new WeakMap;class G{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=t}start(t,{snapToCursor:e=!1}={}){if(!1===this.visualElement.isPresent)return;this.panSession=new f(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor((0,s.Qk)(t,"page").point)},onStart:(t,e)=>{var n;const{drag:i,dragPropagation:o,onDragStart:s}=this.getProps();(!i||o||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,T.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),z((t=>{var e,n;let i=this.getAxisMotionValue(t).get()||0;if(X.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.actual[t];if(o){i=S(o)*(parseFloat(i)/100)}}this.originPoint[t]=i})),null==s||s(t,e),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(N.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.syncRender(),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(N.r.Drag,!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!_(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=D(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;t&&w(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.actual,t),this.elastic=function(t=$){return!1===t?t=0:!0===t&&(t=$),{x:U(t,"left","right"),y:U(t,"top","bottom")}}(e),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&z((t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(n.actual[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!w(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,Y.z)(n,o.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:F(t.x,e.x),y:F(t.y,e.y)}}(o.layout.actual,s);if(e){const t=e((0,H.z2)(r));this.hasMutatedConstraints=!!t,t&&(r=(0,H.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=z((r=>{var l;if(!_(r,e,this.currentDirection))return;let u=null!==(l=null==a?void 0:a[r])&&void 0!==l?l:{};s&&(u={min:0,max:0});const c=i?200:1e6,d=i?40:1e7,h=Object.assign(Object.assign({type:"inertia",velocity:n?t[r]:0,bounceStiffness:c,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},o),u);return this.startAxisValueAnimation(r,h)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return(0,W.b8)(t,n,0,e)}stopAnimation(){z((t=>this.getAxisMotionValue(t).stop()))}getAxisMotionValue(t){var e,n;const i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,null!==(n=null===(e=this.visualElement.getProps().initial)||void 0===e?void 0:e[t])&&void 0!==n?n:0)}snapToCursor(t){z((e=>{const{drag:n}=this.getProps();if(!_(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.actual[e];o.set(t[e]-(0,A.C)(n,s,.5))}}))}scalePositionWithinConstraints(){var t;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!w(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};z((t=>{const e=this.getAxisMotionValue(t);if(e){const n=e.get();o[t]=B({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),z((t=>{if(!_(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set((0,A.C)(i,s,o[t]))}))}addListeners(){var t;Z.set(this.visualElement,this);const e=this.visualElement.getInstance(),n=(0,l.a)(e,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),i=()=>{const{dragConstraints:t}=this.getProps();w(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,q.E)(window,"resize",(()=>this.scalePositionWithinConstraints())),a=o.addEventListener("didUpdate",(({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(z((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.syncRender())}));return()=>{r(),n(),s(),null==a||a()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=$,dragMomentum:r=!0}=t;return Object.assign(Object.assign({},t),{drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:r})}}function _(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const K=(0,t.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});var J=n(9531);var Q=n(6295);const tt={pan:(0,Q.x)((function({onPan:e,onPanStart:n,onPanEnd:i,onPanSessionStart:o,visualElement:s}){const r=e||n||i||o,a=(0,t.useRef)(null),{transformPagePoint:u}=(0,t.useContext)(K),c={onSessionStart:o,onStart:n,onMove:e,onEnd:(t,e)=>{a.current=null,i&&i(t,e)}};(0,t.useEffect)((()=>{null!==a.current&&a.current.updateHandlers(c)})),(0,l.m)(s,"pointerdown",r&&function(t){a.current=new f(t,c,{transformPagePoint:u})}),(0,J.z)((()=>a.current&&a.current.end()))})),drag:(0,Q.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 G(i)));(0,t.useEffect)((()=>n&&n.subscribe(o)),[o,n]),(0,t.useEffect)((()=>o.addListeners()),[o])}))};var et=n(1930);const nt=(0,t.createContext)({}),it=(0,t.createContext)({}),ot={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function st(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const rt={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!X.px.test(t))return t;t=parseFloat(t)}return`${st(t,e.target.x)}% ${st(t,e.target.y)}%`}};var at=n(6002),lt=n(6978);const ut="_$css",ct={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,o=t.includes("var("),s=[];o&&(t=t.replace(lt.Xp,(t=>(s.push(t),ut))));const r=at.P.parse(t);if(r.length>5)return i;const a=at.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 d=(0,A.C)(u,c,.5);"number"==typeof r[2+l]&&(r[2+l]/=d),"number"==typeof r[3+l]&&(r[3+l]/=d);let h=a(r);if(o){let t=0;h=h.replace(ut,(()=>{const e=s[t];return t++,e}))}return h}};var dt=n(798);class ht extends e().Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:o}=t;(0,dt.B)(pt),o&&((null==e?void 0:e.group)&&e.group.add(o),(null==n?void 0:n.register)&&i&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions(Object.assign(Object.assign({},o.options),{onExitComplete:()=>this.safeToRemove()}))),ot.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:o}=this.props,s=n.projection;return s?(s.isPresent=o,i||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||r.ZP.postRender((()=>{var t;(null===(t=s.getStack())||void 0===t?void 0:t.members.length)||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),(null==e?void 0:e.group)&&e.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;null==t||t()}render(){return null}}const pt={borderRadius:Object.assign(Object.assign({},rt),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomLeftRadius:rt,borderBottomRightRadius:rt,boxShadow:ct},mt={measureLayout:function(n){const[i,o]=(0,et.oO)(),s=(0,t.useContext)(nt);return e().createElement(ht,Object.assign({},n,{layoutGroup:s,switchLayoutGroup:(0,t.useContext)(it),isPresent:i,safeToRemove:o}))}};var ft=n(1421),vt=n(7846);var gt=n(1065),yt=n(6924);const xt=["TopLeft","TopRight","BottomLeft","BottomRight"],bt=xt.length,Pt=t=>"string"==typeof t?parseFloat(t):t,Tt=t=>"number"==typeof t||X.px.test(t);function wt(t,e){var n;return null!==(n=t[e])&&void 0!==n?n:t.borderRadius}const At=Ot(0,.5,yt.Bn),Et=Ot(.5,.95,yt.GE);function Ot(t,e,n){return i=>i<t?0:i>e?1:n((0,E.Y)(t,e,i))}function St(t,e){t.min=e.min,t.max=e.max}function jt(t,e){St(t.x,e.x),St(t.y,e.y)}var Vt=n(1360);function Ct(t,e,n,i,o){return t-=e,t=(0,Vt.q2)(t,1/n,i),void 0!==o&&(t=(0,Vt.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){X.aQ.test(e)&&(e=parseFloat(e),e=(0,A.C)(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=(0,A.C)(s.min,s.max,i);t===s&&(a-=e),t.min=Ct(t.min,e,n,a,o),t.max=Ct(t.max,e,n,a,o)}(t,e[n],e[i],e[o],e.scale,s,r)}const Mt=["x","scaleX","originX"],Lt=["y","scaleY","originY"];function Dt(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,Lt,null==n?void 0:n.y,null==i?void 0:i.y)}function kt(t){return 0===t.translate&&1===t.scale}function Ft(t){return kt(t.x)&&kt(t.y)}function Bt(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}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,t.snapshot.isShared=!0),(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 It(t,e,n){let i=`translate3d(${t.x.translate/e.x}px, ${t.y.translate/e.y}px, 0) `;if(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) `)}return i+=`scale(${t.x.scale*e.x}, ${t.y.scale*e.y})`,"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===i?"none":i}var Nt=n(4918),zt=n(5264);const Yt=(t,e)=>t.depth-e.depth;class Wt{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(Yt),this.isDirty=!1,this.children.forEach(t)}}var Ht=n(7048);function qt(t){const e=(0,vt.i)(t)?t.get():t;return(0,Ht.p)(e)?e.toValue():e}function Xt({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(t,n={},i=(null==e?void 0:e())){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(te),this.nodes.forEach(ee)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=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 Wt)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new gt.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const n=this.eventHandlers.get(t);null==n||n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}registerPotentialNode(t,e){this.potentialNodes.set(t,e)}mount(e,n=!1){var 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.getInstance()&&r.mount(e),this.root.nodes.add(this),null===(i=this.parent)||void 0===i||i.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||o)&&(this.isLayoutDirty=!0),t){let n;const i=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,clearTimeout(n),n=window.setTimeout(i,250),ot.hasAnimatedSinceResize&&(ot.hasAnimatedSinceResize=!1,this.nodes.forEach(Qt))}))}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:ae,{onLayoutAnimationStart:d,onLayoutAnimationComplete:h}=r.getProps(),p=!this.targetLayout||!Bt(this.targetLayout,i)||n,m=!e&&n;if((null===(a=this.resumeFrom)||void 0===a?void 0:a.instance)||m||e&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,m);const e=Object.assign(Object.assign({},(0,W.ev)(c,"layout")),{onPlay:d,onComplete:h});r.shouldReduceMotion&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||0!==this.animationProgress||this.finishAnimation(),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=i}))}unmount(){var t,e;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(t=this.getStack())||void 0===t||t.remove(this),null===(e=this.parent)||void 0===e||e.children.delete(this),this.instance=void 0,r.qY.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var t;return this.isAnimationBlocked||(null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimationBlocked())||!1}startUpdate(){var t;this.isUpdateBlocked()||(this.isUpdating=!0,null===(t=this.nodes)||void 0===t||t.forEach(ne))}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()}const{layoutId:o,layout:s}=this.options;if(void 0===o&&!s)return;const r=null===(i=this.options.visualElement)||void 0===i?void 0:i.getProps().transformTemplate;this.prevTransformTemplateValue=null==r?void 0:r(this.latestValues,""),this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Kt);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(le),this.potentialNodes.clear()),this.nodes.forEach(Jt),this.nodes.forEach(Zt),this.nodes.forEach(Gt),this.clearAllSnapshots(),r.iW.update(),r.iW.preRender(),r.iW.render())}clearAllSnapshots(){this.nodes.forEach(_t),this.sharedNodes.forEach(ie)}scheduleUpdateProjection(){r.ZP.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){r.ZP.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){if(this.snapshot||!this.instance)return;const t=this.measure(),e=this.removeTransform(this.removeElementScroll(t));ce(e),this.snapshot={measured:t,layout:e,latestValues:{}}}updateLayout(){var t;if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++){this.path[t].updateScroll()}const e=this.measure();ce(e);const n=this.layout;this.layout={measured:e,actual:this.removeElementScroll(e)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(t=this.options.visualElement)||void 0===t||t.notifyLayoutMeasure(this.layout.actual,null==n?void 0:n.actual)}updateScroll(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=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.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate,s=null==i?void 0:i(this.latestValues,""),r=s!==this.prevTransformTemplateValue;e&&(n||(0,Nt.u)(this.latestValues)||r)&&(o(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(){const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const e=t.measureViewportBox(),{scroll:n}=this.root;return n&&((0,Vt.am)(e.x,n.x),(0,Vt.am)(e.y,n.y)),e}removeElementScroll(t){const e={x:{min:0,max:0},y:{min:0,max:0}};jt(e,t);for(let n=0;n<this.path.length;n++){const i=this.path[n],{scroll:o,options:s,isScrollRoot:r}=i;if(i!==this.root&&o&&s.layoutScroll){if(r){jt(e,t);const{scroll:n}=this.root;n&&((0,Vt.am)(e.x,-n.x),(0,Vt.am)(e.y,-n.y))}(0,Vt.am)(e.x,o.x),(0,Vt.am)(e.y,o.y)}}return e}applyTransform(t,e=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};jt(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,Vt.D2)(n,{x:-i.scroll.x,y:-i.scroll.y}),(0,Nt.u)(i.latestValues)&&(0,Vt.D2)(n,i.latestValues)}return(0,Nt.u)(this.latestValues)&&(0,Vt.D2)(n,this.latestValues),n}removeTransform(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};jt(n,t);for(let t=0;t<this.path.length;t++){const i=this.path[t];if(!i.instance)continue;if(!(0,Nt.u)(i.latestValues))continue;(0,Nt.L)(i.latestValues)&&i.updateSnapshot();const o={x:{min:0,max:0},y:{min:0,max:0}};jt(o,i.measure()),Dt(n,i.latestValues,null===(e=i.snapshot)||void 0===e?void 0:e.layout,o)}return(0,Nt.u)(this.latestValues)&&Dt(n,this.latestValues),n}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection()}setOptions(t){var e;this.options=Object.assign(Object.assign(Object.assign({},this.options),t),{crossfade:null===(e=t.crossfade)||void 0===e||e})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var t;const{layout:e,layoutId:n}=this.options;var i,o,s;this.layout&&(e||n)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},L(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),jt(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(t=this.relativeParent)||void 0===t?void 0:t.target)?(i=this.target,o=this.relativeTarget,s=this.relativeParent.target,R(i.x,o.x,s.x),R(i.y,o.y,s.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):jt(this.target,this.layout.actual),(0,Vt.o2)(this.target,this.targetDelta)):jt(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},L(this.relativeTargetOrigin,this.target,this.relativeParent.target),jt(this.relativeTarget,this.relativeTargetOrigin)))))}getClosestProjectingParent(){if(this.parent&&!(0,Nt.u)(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var t;const{layout:e,layoutId:n}=this.options;if(this.isTreeAnimating=Boolean((null===(t=this.parent)||void 0===t?void 0:t.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!e&&!n)return;const i=this.getLead();jt(this.layoutCorrected,this.layout.actual),(0,Vt.YY)(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);const{target:o}=i;if(!o)return;this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const s=this.treeScale.x,r=this.treeScale.y,a=this.projectionTransform;C(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=It(this.projectionDelta,this.treeScale),this.projectionTransform===a&&this.treeScale.x===s&&this.treeScale.y===r||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}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;const i=this.snapshot,o=(null==i?void 0:i.latestValues)||{},s=Object.assign({},this.latestValues),r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!e;const a={x:{min:0,max:0},y:{min:0,max:0}},l=null==i?void 0:i.isShared,u=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,c=Boolean(l&&!u&&!0===this.options.crossfade&&!this.path.some(re));this.animationProgress=0,this.mixTargetDelta=e=>{var n;const i=e/1e3;var d,h,p,m;oe(r.x,t.x,i),oe(r.y,t.y,i),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(L(a,this.layout.actual,this.relativeParent.layout.actual),d=this.relativeTarget,h=this.relativeTargetOrigin,p=a,m=i,se(d.x,h.x,p.x,m),se(d.y,h.y,p.y,m)),l&&(this.animationValues=s,function(t,e,n,i,o,s){var r,a,l,u;o?(t.opacity=(0,A.C)(0,null!==(r=n.opacity)&&void 0!==r?r:1,At(i)),t.opacityExit=(0,A.C)(null!==(a=e.opacity)&&void 0!==a?a:1,0,Et(i))):s&&(t.opacity=(0,A.C)(null!==(l=e.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,i));for(let o=0;o<bt;o++){const s=`border${xt[o]}Radius`;let r=wt(e,s),a=wt(n,s);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||Tt(r)===Tt(a)?(t[s]=Math.max((0,A.C)(Pt(r),Pt(a),i),0),(X.aQ.test(a)||X.aQ.test(r))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,A.C)(e.rotate||0,n.rotate||0,i))}(s,o,this.latestValues,i,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(0)}startAnimation(t){var e,n;this.notifyListeners("animationStart"),null===(e=this.currentAnimation)||void 0===e||e.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(r.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=r.ZP.update((()=>{ot.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n={}){const i=(0,vt.i)(t)?t:(0,ft.B)(t);return(0,W.b8)("",i,e,n),{stop:()=>i.stop(),isAnimating:()=>i.isAnimating()}}(0,1e3,Object.assign(Object.assign({},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{targetWithTransforms:t,target:e,layout:n,latestValues:i}=this.getLead();t&&e&&n&&(jt(t,e),(0,Vt.D2)(t,i),C(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))}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 n={};for(let i=0;i<zt.r$.length;i++){const o="rotate"+zt.r$[i];t.getStaticValue(o)&&(e=!0,n[o]=t.getStaticValue(o),t.setStaticValue(o,0))}if(e){null==t||t.syncRender();for(const e in n)t.setStaticValue(e,n[e]);t.scheduleRender()}}getProjectionStyles(t={}){var e,n,i,o,s,r;const a={};if(!this.instance||this.isSVG)return a;if(!this.isVisible)return{visibility:"hidden"};a.visibility="";const l=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,a.opacity="",a.pointerEvents=qt(t.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none",a;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const e={};return this.options.layoutId&&(e.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,e.pointerEvents=qt(t.pointerEvents)||""),this.hasProjected&&!(0,Nt.u)(this.latestValues)&&(e.transform=l?l({},""):"none",this.hasProjected=!1),e}const c=u.animationValues||u.latestValues;this.applyTransformsToTarget(),a.transform=It(this.projectionDeltaWithTransform,this.treeScale,c),l&&(a.transform=l(c,a.transform));const{x:d,y:h}=this.projectionDelta;a.transformOrigin=`${100*d.origin}% ${100*h.origin}% 0`,u.animationValues?a.opacity=u===this?null!==(o=null!==(i=c.opacity)&&void 0!==i?i:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:a.opacity=u===this?null!==(s=c.opacity)&&void 0!==s?s:"":null!==(r=c.opacityExit)&&void 0!==r?r:0;for(const t in dt.P){if(void 0===c[t])continue;const{correct:e,applyTo:n}=dt.P[t],i=e(c[t],u);if(n){const t=n.length;for(let e=0;e<t;e++)a[n[e]]=i}else a[t]=i}return this.options.layoutId&&(a.pointerEvents=u===this?qt(t.pointerEvents)||"":"none"),a}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(Kt),this.root.sharedNodes.clear()}}}function Zt(t){t.updateLayout()}function Gt(t){var e,n,i,o;const s=null!==(n=null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)&&void 0!==n?n:t.snapshot;if(t.isLead()&&t.layout&&s&&t.hasListeners("didUpdate")){const{actual:e,measured:n}=t.layout;"size"===t.options.animationType?z((t=>{const n=s.isShared?s.measured[t]:s.layout[t],i=S(n);n.min=e[t].min,n.max=n.min+i})):"position"===t.options.animationType&&z((t=>{const n=s.isShared?s.measured[t]:s.layout[t],i=S(e[t]);n.max=n.min+i}));const i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};C(i,e,s.layout);const o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};s.isShared?C(o,t.applyTransform(n,!0),s.measured):C(o,e,s.layout);const r=!Ft(i);let a=!1;if(!t.resumeFrom&&(t.relativeParent=t.getClosestProjectingParent(),t.relativeParent&&!t.relativeParent.resumeFrom)){const{snapshot:n,layout:i}=t.relativeParent;if(n&&i){const t={x:{min:0,max:0},y:{min:0,max:0}};L(t,s.layout,n.layout);const o={x:{min:0,max:0},y:{min:0,max:0}};L(o,e,i.actual),Bt(t,o)||(a=!0)}}t.notifyListeners("didUpdate",{layout:e,snapshot:s,delta:o,layoutDelta:i,hasLayoutChanged:r,hasRelativeTargetChanged:a})}else t.isLead()&&(null===(o=(i=t.options).onExitComplete)||void 0===o||o.call(i));t.options.transition=void 0}function _t(t){t.clearSnapshot()}function Kt(t){t.clearMeasurements()}function Jt(t){const{visualElement:e}=t.options;(null==e?void 0:e.getProps().onBeforeLayoutMeasure)&&e.notifyBeforeLayoutMeasure(),t.resetTransform()}function Qt(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function te(t){t.resolveTargetDelta()}function ee(t){t.calcProjection()}function ne(t){t.resetRotation()}function ie(t){t.removeLeadSnapshot()}function oe(t,e,n){t.translate=(0,A.C)(e.translate,0,n),t.scale=(0,A.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function se(t,e,n,i){t.min=(0,A.C)(e.min,n.min,i),t.max=(0,A.C)(e.max,n.max,i)}function re(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const ae={duration:.45,ease:[.4,0,.1,1]};function le(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 ue(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function ce(t){ue(t.x),ue(t.y)}const de=Xt({attachResizeListener:(t,e)=>(0,q.E)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),he={current:void 0},pe=Xt({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!he.current){const t=new de(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),he.current=t}return he.current},resetTransform:(t,e)=>{t.style.transform=null!=e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)});var me=n(595);Object.assign(Object.assign(Object.assign(Object.assign({},me.H),tt),mt),{projectionNodeConstructor:pe})})()})();
|
package/dist/size-webpack-m.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var t={4317:t=>{var r=new Error("Cannot find module ''");throw r.code="MODULE_NOT_FOUND",r}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return n.d(r,{a:r}),r},n.d=(t,r)=>{for(var e in r)n.o(r,e)&&!n.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},n.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),(()=>{var t=function(r,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},t(r,n)};var r=function(){return r=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},r.apply(this,arguments)};function e(t,r){var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(n[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)r.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(n[e[o]]=t[e[o]])}return n}Object.create;function o(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,o,a=n.call(t),i=[];try{for(;(void 0===r||r-- >0)&&!(e=a.next()).done;)i.push(e.value)}catch(t){o={error:t}}finally{try{e&&!e.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}Object.create;const a=void 0;var i=n.n(a),s=("undefined"==typeof process||process.env,"production"),u=function(t){return{isEnabled:function(r){return t.some((function(t){return!!r[t]}))}}},c={measureLayout:u(["layout","layoutId","drag"]),animation:u(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:u(["exit"]),drag:u(["drag","dragControls"]),focus:u(["whileFocus"]),hover:u(["whileHover","onHoverStart","onHoverEnd"]),tap:u(["whileTap","onTap","onTapStart","onTapCancel"]),pan:u(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:u(["whileInView","onViewportEnter","onViewportLeave"])};var l=(0,a.createContext)({strict:!1}),f=Object.keys(c),d=f.length;var p=(0,a.createContext)({transformPagePoint:function(t){return t},isStatic:!1,reducedMotion:"never"}),v=(0,a.createContext)({});var m=(0,a.createContext)(null),y="undefined"!=typeof document,g=y?a.useLayoutEffect:a.useEffect,h={current:null},w=!1;function b(){return!w&&function(){if(w=!0,y)if(window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion)"),r=function(){return h.current=t.matches};t.addListener(r),r()}else h.current=!1}(),o((0,a.useState)(h.current),1)[0]}function x(t,r,n,e){var o,i,s=(0,a.useContext)(l),u=(0,a.useContext)(v).visualElement,c=(0,a.useContext)(m),f=(o=b(),"never"!==(i=(0,a.useContext)(p).reducedMotion)&&("always"===i||o)),d=(0,a.useRef)(void 0);e||(e=s.renderer),!d.current&&e&&(d.current=e(t,{visualState:r,parent:u,props:n,presenceId:null==c?void 0:c.id,blockInitialAnimation:!1===(null==c?void 0:c.initial),shouldReduceMotion:f}));var y=d.current;return g((function(){null==y||y.syncRender()})),(0,a.useEffect)((function(){var t;null===(t=null==y?void 0:y.animationState)||void 0===t||t.animateChanges()})),g((function(){return function(){return null==y?void 0:y.notifyUnmount()}}),[]),y}function O(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function S(t){return"string"==typeof t||function(t){return Array.isArray(t)}(t)}function C(t,r,n,e,o){var a;return void 0===e&&(e={}),void 0===o&&(o={}),"function"==typeof r&&(r=r(null!=n?n:t.custom,e,o)),"string"==typeof r&&(r=null===(a=t.variants)||void 0===a?void 0:a[r]),"function"==typeof r&&(r=r(null!=n?n:t.custom,e,o)),r}function E(t){var r;return"function"==typeof(null===(r=t.animate)||void 0===r?void 0:r.start)||S(t.initial)||S(t.animate)||S(t.whileHover)||S(t.whileDrag)||S(t.whileTap)||S(t.whileFocus)||S(t.exit)}function j(t){var r=function(t,r){if(E(t)){var n=t.initial,e=t.animate;return{initial:!1===n||S(n)?n:void 0,animate:S(e)?e:void 0}}return!1!==t.inherit?r:{}}(t,(0,a.useContext)(v)),n=r.initial,e=r.animate;return(0,a.useMemo)((function(){return{initial:n,animate:e}}),[P(n),P(e)])}function P(t){return Array.isArray(t)?t.join(" "):t}function T(t){var r=(0,a.useRef)(null);return null===r.current&&(r.current=t()),r.current}var L=!1,V=1;var M=(0,a.createContext)({}),k=(0,a.createContext)({});var A=function(r){function n(){return null!==r&&r.apply(this,arguments)||this}return function(r,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=r}t(r,n),r.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}(n,r),n.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},n.prototype.componentDidUpdate=function(){},n.prototype.updateProps=function(){var t=this.props,r=t.visualElement,n=t.props;r&&r.setProps(n)},n.prototype.render=function(){return this.props.children},n}(i().Component);function R(t){var n=t.preloadedFeatures,e=t.createVisualElement,o=t.projectionNodeConstructor,i=t.useRender,u=t.useVisualState,m=t.Component;return n&&function(t){for(var r in t)null!==t[r]&&("projectionNodeConstructor"===r?c.projectionNodeConstructor=t[r]:c[r].Component=t[r])}(n),(0,a.forwardRef)((function(t,g){var h=function(t){var r,n=t.layoutId,e=null===(r=(0,a.useContext)(M))||void 0===r?void 0:r.id;return e&&void 0!==n?e+"-"+n:n}(t);t=r(r({},t),{layoutId:h});var w=(0,a.useContext)(p),b=null,S=j(t),C=w.isStatic?void 0:T((function(){if(L)return V++})),E=u(t,w.isStatic);return!w.isStatic&&y&&(S.visualElement=x(m,E,r(r({},w),t),e),function(t,r,n,e){var o,i=r.layoutId,s=r.layout,u=r.drag,c=r.dragConstraints,l=r.layoutScroll,f=(0,a.useContext)(k);e&&n&&!(null==n?void 0:n.projection)&&(n.projection=new e(t,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:Boolean(u)||c&&O(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:f,layoutScroll:l}))}(C,t,S.visualElement,o||c.projectionNodeConstructor),b=function(t,n,e){var o=[],i=(0,a.useContext)(l);if(!n)return null;"production"!==s&&e&&i.strict;for(var u=0;u<d;u++){var p=f[u],v=c[p],m=v.isEnabled,y=v.Component;m(t)&&y&&o.push(a.createElement(y,r({key:p},t,{visualElement:n})))}return o}(t,S.visualElement,n)),a.createElement(A,{visualElement:S.visualElement,props:r(r({},w),t)},b,a.createElement(v.Provider,{value:S},i(m,t,C,function(t,r,n){return(0,a.useCallback)((function(e){var o;e&&(null===(o=t.mount)||void 0===o||o.call(t,e)),r&&(e?r.mount(e):r.unmount()),n&&("function"==typeof n?n(e):O(n)&&(n.current=e))}),[r])}(E,S.visualElement,g),E,w.isStatic,S.visualElement)))}))}var B=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function D(t){return"string"==typeof t&&!t.includes("-")&&!!(B.indexOf(t)>-1||/[A-Z]/.test(t))}var X={};var Y=["","X","Y","Z"],H=["transformPerspective","x","y","z"];function I(t,r){return H.indexOf(t)-H.indexOf(r)}["translate","scale","rotate","skew"].forEach((function(t){return Y.forEach((function(r){return H.push(t+r)}))}));var _=new Set(H);function F(t){return _.has(t)}var W=new Set(["originX","originY","originZ"]);function Z(t){return W.has(t)}function U(t,r){var n=r.layout,e=r.layoutId;return F(t)||Z(t)||(n||void 0!==e)&&(!!X[t]||"opacity"===t)}var N=function(t){return Boolean(null!==t&&"object"==typeof t&&t.getVelocity)},z={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function K(t){return t.startsWith("--")}var $=function(t,r){return r&&"number"==typeof t?r.transform(t):t};const q=t=>({test:r=>function(t){return"string"==typeof t}(r)&&r.endsWith(t)&&1===r.split(" ").length,parse:parseFloat,transform:r=>`${r}${t}`}),G=q("deg"),J=q("%"),Q=q("px"),tt=(q("vh"),q("vw"),Object.assign(Object.assign({},J),{parse:t=>J.parse(t)/100,transform:t=>J.transform(100*t)})),rt={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},nt=Object.assign(Object.assign({},rt),{transform:(et=0,ot=1,t=>Math.max(Math.min(t,ot),et))});var et,ot;const at=Object.assign(Object.assign({},rt),{default:1});var it=r(r({},rt),{transform:Math.round}),st={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,size:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,rotate:G,rotateX:G,rotateY:G,rotateZ:G,scale:at,scaleX:at,scaleY:at,scaleZ:at,skew:G,skewX:G,skewY:G,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:nt,originX:tt,originY:tt,originZ:Q,zIndex:it,fillOpacity:nt,strokeOpacity:nt,numOctaves:it};function ut(t,r,n,e){var o,a=t.style,i=t.vars,s=t.transform,u=t.transformKeys,c=t.transformOrigin;u.length=0;var l=!1,f=!1,d=!0;for(var p in r){var v=r[p];if(K(p))i[p]=v;else{var m=st[p],y=$(v,m);if(F(p)){if(l=!0,s[p]=y,u.push(p),!d)continue;v!==(null!==(o=m.default)&&void 0!==o?o:0)&&(d=!1)}else Z(p)?(c[p]=y,f=!0):a[p]=y}}l?a.transform=function(t,r,n,e){var o=t.transform,a=t.transformKeys,i=r.enableHardwareAcceleration,s=void 0===i||i,u=r.allowTransformNone,c=void 0===u||u,l="";a.sort(I);for(var f=!1,d=a.length,p=0;p<d;p++){var v=a[p];l+="".concat(z[v]||v,"(").concat(o[v],") "),"z"===v&&(f=!0)}return!f&&s?l+="translateZ(0)":l=l.trim(),e?l=e(o,n?"":l):c&&n&&(l="none"),l}(t,n,d,e):e?a.transform=e({},""):!r.transform&&a.transform&&(a.transform="none"),f&&(a.transformOrigin=function(t){var r=t.originX,n=void 0===r?"50%":r,e=t.originY,o=void 0===e?"50%":e,a=t.originZ,i=void 0===a?0:a;return"".concat(n," ").concat(o," ").concat(i)}(c))}var ct=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function lt(t,r,n){for(var e in r)N(r[e])||U(e,n)||(t[e]=r[e])}function ft(t,n,e){var o={};return lt(o,t.style||{},t),Object.assign(o,function(t,n,e){var o=t.transformTemplate;return(0,a.useMemo)((function(){var t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};ut(t,n,{enableHardwareAcceleration:!e},o);var a=t.style;return r(r({},t.vars),a)}),[n])}(t,n,e)),t.transformValues&&(o=t.transformValues(o)),o}function dt(t,r,n){var e={},o=ft(t,r,n);return Boolean(t.drag)&&!1!==t.dragListener&&(e.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),e.style=o,e}var pt=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function vt(t){return pt.has(t)}var mt,yt=function(t){return!vt(t)};try{(mt=n(4317).default)&&(yt=function(t){return t.startsWith("on")?!vt(t):mt(t)})}catch(t){}function gt(t,r,n){return"string"==typeof t?t:Q.transform(r+n*t)}var ht={offset:"stroke-dashoffset",array:"stroke-dasharray"},wt={offset:"strokeDashoffset",array:"strokeDasharray"};function bt(t,r,n,o){var a=r.attrX,i=r.attrY,s=r.originX,u=r.originY,c=r.pathLength,l=r.pathSpacing,f=void 0===l?1:l,d=r.pathOffset,p=void 0===d?0:d;ut(t,e(r,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,o),t.attrs=t.style,t.style={};var v=t.attrs,m=t.style,y=t.dimensions;v.transform&&(y&&(m.transform=v.transform),delete v.transform),y&&(void 0!==s||void 0!==u||m.transform)&&(m.transformOrigin=function(t,r,n){var e=gt(r,t.x,t.width),o=gt(n,t.y,t.height);return"".concat(e," ").concat(o)}(y,void 0!==s?s:.5,void 0!==u?u:.5)),void 0!==a&&(v.x=a),void 0!==i&&(v.y=i),void 0!==c&&function(t,r,n,e,o){void 0===n&&(n=1),void 0===e&&(e=0),void 0===o&&(o=!0),t.pathLength=1;var a=o?ht:wt;t[a.offset]=Q.transform(-e);var i=Q.transform(r),s=Q.transform(n);t[a.array]="".concat(i," ").concat(s)}(v,c,f,p,!1)}var xt=function(){return r(r({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Ot(t,n){var e=(0,a.useMemo)((function(){var e=xt();return bt(e,n,{enableHardwareAcceleration:!1},t.transformTemplate),r(r({},e.attrs),{style:r({},e.style)})}),[n]);if(t.style){var o={};lt(o,t.style,t),e.style=r(r({},o),e.style)}return e}function St(t){void 0===t&&(t=!1);return function(n,e,o,i,s,u){var c=s.latestValues,l=(D(n)?Ot:dt)(e,c,u),f=function(t,r,n){var e={};for(var o in t)(yt(o)||!0===n&&vt(o)||!r&&!vt(o)||t.draggable&&o.startsWith("onDrag"))&&(e[o]=t[o]);return e}(e,"string"==typeof n,t),d=r(r(r({},f),l),{ref:i});return o&&(d["data-projection-id"]=o),(0,a.createElement)(n,d)}}var Ct=/([a-z])([A-Z])/g;var Et=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function jt(t,r,n,e){for(var o in function(t,r,n,e){var o=r.style,a=r.vars;for(var i in Object.assign(t.style,o,e&&e.getProjectionStyles(n)),a)t.style.setProperty(i,a[i])}(t,r,void 0,e),r.attrs)t.setAttribute(Et.has(o)?o:o.replace(Ct,"$1-$2").toLowerCase(),r.attrs[o])}function Pt(t){var r=t.style,n={};for(var e in r)(N(r[e])||U(e,t))&&(n[e]=r[e]);return n}function Tt(t){var r,n=N(t)?t.get():t;return r=n,Boolean(r&&"object"==typeof r&&r.mix&&r.toValue)?n.toValue():n}function Lt(t,r,n,e){var o=t.scrapeMotionValuesFromProps,a=t.createRenderState,i=t.onMount,s={latestValues:Mt(r,n,e,o),renderState:a()};return i&&(s.mount=function(t){return i(r,t,s)}),s}var Vt=function(t){return function(r,n){var e=(0,a.useContext)(v),o=(0,a.useContext)(m);return n?Lt(t,r,e,o):T((function(){return Lt(t,r,e,o)}))}};function Mt(t,r,n,o){var a={},i=!1===(null==n?void 0:n.initial),s=o(t);for(var u in s)a[u]=Tt(s[u]);var c=t.initial,l=t.animate,f=E(t),d=function(t){return Boolean(E(t)||t.variants)}(t);r&&d&&!f&&!1!==t.inherit&&(null!=c||(c=r.initial),null!=l||(l=r.animate));var p,v=i||!1===c,m=v?l:c;!m||"boolean"==typeof m||"object"==typeof(p=m)&&"function"==typeof p.start||(Array.isArray(m)?m:[m]).forEach((function(r){var n=C(t,r);if(n){var o=n.transitionEnd,i=(n.transition,e(n,["transitionEnd","transition"]));for(var s in i){var u=i[s];if(Array.isArray(u))u=u[v?u.length-1:0];null!==u&&(a[s]=u)}for(var s in o)a[s]=o[s]}}));return a}var kt={useVisualState:Vt({scrapeMotionValuesFromProps:function(t){var r=Pt(t);for(var n in t){if(N(t[n]))r["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return r},createRenderState:xt,onMount:function(t,r,n){var e=n.renderState,o=n.latestValues;try{e.dimensions="function"==typeof r.getBBox?r.getBBox():r.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}bt(e,o,{enableHardwareAcceleration:!1},t.transformTemplate),jt(r,e)}})},At={useVisualState:Vt({scrapeMotionValuesFromProps:Pt,createRenderState:ct})};!function(t){function r(r,n){return void 0===n&&(n={}),R(t(r,n))}if("undefined"==typeof Proxy)return r;var n=new Map;new Proxy(r,{get:function(t,e){return n.has(e)||n.set(e,r(e)),n.get(e)}})}((function(t,n,e,o,a){var i=n.forwardMotionProps,s=void 0!==i&&i,u=D(t)?kt:At;return r(r({},u),{preloadedFeatures:e,useRender:St(s),createVisualElement:o,projectionNodeConstructor:a,Component:t})}))})()})();
|
|
1
|
+
(()=>{"use strict";var t={4317:t=>{var e=new Error("Cannot find module ''");throw e.code="MODULE_NOT_FOUND",e}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{const t=void 0;var e=n.n(t);const r=("undefined"==typeof process||process.env,"production"),o=t=>({isEnabled:e=>t.some((t=>!!e[t]))}),a={measureLayout:o(["layout","layoutId","drag"]),animation:o(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:o(["exit"]),drag:o(["drag","dragControls"]),focus:o(["whileFocus"]),hover:o(["whileHover","onHoverStart","onHoverEnd"]),tap:o(["whileTap","onTap","onTapStart","onTapCancel"]),pan:o(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:o(["whileInView","onViewportEnter","onViewportLeave"])};const i=(0,t.createContext)({strict:!1}),s=Object.keys(a),c=s.length;const u=(0,t.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),l=(0,t.createContext)({});const f=(0,t.createContext)(null),d="undefined"!=typeof document,p=d?t.useLayoutEffect:t.useEffect,m={current:null};let g=!1;function y(){!g&&function(){if(g=!0,d)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>m.current=t.matches;t.addListener(e),e()}else m.current=!1}();const[e]=(0,t.useState)(m.current);return e}function h(e,n,r,o){const a=(0,t.useContext)(i),s=(0,t.useContext)(l).visualElement,c=(0,t.useContext)(f),d=function(){const e=y(),{reducedMotion:n}=(0,t.useContext)(u);return"never"!==n&&("always"===n||e)}(),m=(0,t.useRef)(void 0);o||(o=a.renderer),!m.current&&o&&(m.current=o(e,{visualState:n,parent:s,props:r,presenceId:null==c?void 0:c.id,blockInitialAnimation:!1===(null==c?void 0:c.initial),shouldReduceMotion:d}));const g=m.current;return p((()=>{null==g||g.syncRender()})),(0,t.useEffect)((()=>{var t;null===(t=null==g?void 0:g.animationState)||void 0===t||t.animateChanges()})),p((()=>()=>null==g?void 0:g.notifyUnmount()),[]),g}function v(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function b(t){return"string"==typeof t||function(t){return Array.isArray(t)}(t)}function O(t,e,n,r={},o={}){var a;return"function"==typeof e&&(e=e(null!=n?n:t.custom,r,o)),"string"==typeof e&&(e=null===(a=t.variants)||void 0===a?void 0:a[e]),"function"==typeof e&&(e=e(null!=n?n:t.custom,r,o)),e}function w(t){var e;return"function"==typeof(null===(e=t.animate)||void 0===e?void 0:e.start)||b(t.initial)||b(t.animate)||b(t.whileHover)||b(t.whileDrag)||b(t.whileTap)||b(t.whileFocus)||b(t.exit)}function j(e){const{initial:n,animate:r}=function(t,e){if(w(t)){const{initial:e,animate:n}=t;return{initial:!1===e||b(e)?e:void 0,animate:b(n)?n:void 0}}return!1!==t.inherit?e:{}}(e,(0,t.useContext)(l));return(0,t.useMemo)((()=>({initial:n,animate:r})),[x(n),x(r)])}function x(t){return Array.isArray(t)?t.join(" "):t}function C(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}const S=!1;let E=1;const P=(0,t.createContext)({}),T=(0,t.createContext)({});class L extends e().Component{getSnapshotBeforeUpdate(){return this.updateProps(),null}componentDidUpdate(){}updateProps(){const{visualElement:t,props:e}=this.props;t&&t.setProps(e)}render(){return this.props.children}}function V({preloadedFeatures:e,createVisualElement:n,projectionNodeConstructor:o,useRender:f,useVisualState:p,Component:m}){return e&&function(t){for(const e in t)null!==t[e]&&("projectionNodeConstructor"===e?a.projectionNodeConstructor=t[e]:a[e].Component=t[e])}(e),(0,t.forwardRef)((function(g,y){const b=function({layoutId:e}){var n;const r=null===(n=(0,t.useContext)(P))||void 0===n?void 0:n.id;return r&&void 0!==e?r+"-"+e:e}(g);g=Object.assign(Object.assign({},g),{layoutId:b});const O=(0,t.useContext)(u);let w=null;const x=j(g),V=O.isStatic?void 0:C((()=>{if(S)return E++})),M=p(g,O.isStatic);return!O.isStatic&&d&&(x.visualElement=h(m,M,Object.assign(Object.assign({},O),g),n),function(e,{layoutId:n,layout:r,drag:o,dragConstraints:a,layoutScroll:i},s,c){var u;const l=(0,t.useContext)(T);c&&s&&!(null==s?void 0:s.projection)&&(s.projection=new c(e,s.getLatestValues(),null===(u=s.parent)||void 0===u?void 0:u.projection),s.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:Boolean(o)||a&&v(a),visualElement:s,scheduleRender:()=>s.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:l,layoutScroll:i}))}(V,g,x.visualElement,o||a.projectionNodeConstructor),w=function(e,n,o){const u=[],l=(0,t.useContext)(i);if(!n)return null;"production"!==r&&o&&l.strict;for(let r=0;r<c;r++){const o=s[r],{isEnabled:i,Component:c}=a[o];i(e)&&c&&u.push(t.createElement(c,Object.assign({key:o},e,{visualElement:n})))}return u}(g,x.visualElement,e)),t.createElement(L,{visualElement:x.visualElement,props:Object.assign(Object.assign({},O),g)},w,t.createElement(l.Provider,{value:x},f(m,g,V,function(e,n,r){return(0,t.useCallback)((t=>{var o;t&&(null===(o=e.mount)||void 0===o||o.call(e,t)),n&&(t?n.mount(t):n.unmount()),r&&("function"==typeof r?r(t):v(r)&&(r.current=t))}),[n])}(M,x.visualElement,y),M,O.isStatic,x.visualElement)))}))}const M=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function k(t){return"string"==typeof t&&!t.includes("-")&&!!(M.indexOf(t)>-1||/[A-Z]/.test(t))}const R={};const A=["","X","Y","Z"],B=["transformPerspective","x","y","z"];function D(t,e){return B.indexOf(t)-B.indexOf(e)}["translate","scale","rotate","skew"].forEach((t=>A.forEach((e=>B.push(t+e)))));const X=new Set(B);function Y(t){return X.has(t)}const H=new Set(["originX","originY","originZ"]);function I(t){return H.has(t)}function F(t,{layout:e,layoutId:n}){return Y(t)||I(t)||(e||void 0!==n)&&(!!R[t]||"opacity"===t)}const W=t=>Boolean(null!==t&&"object"==typeof t&&t.getVelocity),$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Z(t){return t.startsWith("--")}const U=(t,e)=>e&&"number"==typeof t?e.transform(t):t;const N=t=>({test:e=>function(t){return"string"==typeof t}(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),z=N("deg"),_=N("%"),K=N("px"),q=(N("vh"),N("vw"),Object.assign(Object.assign({},_),{parse:t=>_.parse(t)/100,transform:t=>_.transform(100*t)})),G={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},J=Object.assign(Object.assign({},G),{transform:(Q=0,tt=1,t=>Math.max(Math.min(t,tt),Q))});var Q,tt;const et=Object.assign(Object.assign({},G),{default:1}),nt=Object.assign(Object.assign({},G),{transform:Math.round}),rt={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,size:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,rotate:z,rotateX:z,rotateY:z,rotateZ:z,scale:et,scaleX:et,scaleY:et,scaleZ:et,skew:z,skewX:z,skewY:z,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:J,originX:q,originY:q,originZ:K,zIndex:nt,fillOpacity:J,strokeOpacity:J,numOctaves:nt};function ot(t,e,n,r){var o;const{style:a,vars:i,transform:s,transformKeys:c,transformOrigin:u}=t;c.length=0;let l=!1,f=!1,d=!0;for(const t in e){const n=e[t];if(Z(t)){i[t]=n;continue}const r=rt[t],p=U(n,r);if(Y(t)){if(l=!0,s[t]=p,c.push(t),!d)continue;n!==(null!==(o=r.default)&&void 0!==o?o:0)&&(d=!1)}else I(t)?(u[t]=p,f=!0):a[t]=p}l?a.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,a){let i="";e.sort(D);let s=!1;const c=e.length;for(let n=0;n<c;n++){const r=e[n];i+=`${$[r]||r}(${t[r]}) `,"z"===r&&(s=!0)}return!s&&n&&(i+="translateZ(0)"),i=i.trim(),a?i=a(t,o?"":i):r&&o&&(i="none"),i}(t,n,d,r):r?a.transform=r({},""):!e.transform&&a.transform&&(a.transform="none"),f&&(a.transformOrigin=function({originX:t="50%",originY:e="50%",originZ:n=0}){return`${t} ${e} ${n}`}(u))}const at=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function it(t,e,n){for(const r in e)W(e[r])||F(r,n)||(t[r]=e[r])}function st(e,n,r){let o={};return it(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},n,r){return(0,t.useMemo)((()=>{const t={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};ot(t,n,{enableHardwareAcceleration:!r},e);const{vars:o,style:a}=t;return Object.assign(Object.assign({},o),a)}),[n])}(e,n,r)),e.transformValues&&(o=e.transformValues(o)),o}function ct(t,e,n){const r={},o=st(t,e,n);return Boolean(t.drag)&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),r.style=o,r}const ut=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function lt(t){return ut.has(t)}let ft=t=>!lt(t);try{(dt=n(4317).default)&&(ft=t=>t.startsWith("on")?!lt(t):dt(t))}catch(t){}var dt;function pt(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}Object.create;Object.create;function mt(t,e,n){return"string"==typeof t?t:K.transform(e+n*t)}const gt={offset:"stroke-dashoffset",array:"stroke-dasharray"},yt={offset:"strokeDashoffset",array:"strokeDasharray"};function ht(t,e,n,r){var{attrX:o,attrY:a,originX:i,originY:s,pathLength:c,pathSpacing:u=1,pathOffset:l=0}=e;ot(t,pt(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),t.attrs=t.style,t.style={};const{attrs:f,style:d,dimensions:p}=t;f.transform&&(p&&(d.transform=f.transform),delete f.transform),p&&(void 0!==i||void 0!==s||d.transform)&&(d.transformOrigin=function(t,e,n){return`${mt(e,t.x,t.width)} ${mt(n,t.y,t.height)}`}(p,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(f.x=o),void 0!==a&&(f.y=a),void 0!==c&&function(t,e,n=1,r=0,o=!0){t.pathLength=1;const a=o?gt:yt;t[a.offset]=K.transform(-r);const i=K.transform(e),s=K.transform(n);t[a.array]=`${i} ${s}`}(f,c,u,l,!1)}const vt=()=>Object.assign(Object.assign({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}});function bt(e,n){const r=(0,t.useMemo)((()=>{const t=vt();return ht(t,n,{enableHardwareAcceleration:!1},e.transformTemplate),Object.assign(Object.assign({},t.attrs),{style:Object.assign({},t.style)})}),[n]);if(e.style){const t={};it(t,e.style,e),r.style=Object.assign(Object.assign({},t),r.style)}return r}function Ot(e=!1){return(n,r,o,a,{latestValues:i},s)=>{const c=(k(n)?bt:ct)(r,i,s),u=function(t,e,n){const r={};for(const o in t)(ft(o)||!0===n&<(o)||!e&&!lt(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(r,"string"==typeof n,e),l=Object.assign(Object.assign(Object.assign({},u),c),{ref:a});return o&&(l["data-projection-id"]=o),(0,t.createElement)(n,l)}}const wt=/([a-z])([A-Z])/g;const jt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function xt(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(jt.has(n)?n:n.replace(wt,"$1-$2").toLowerCase(),e.attrs[n])}function Ct(t){const{style:e}=t,n={};for(const r in e)(W(e[r])||F(r,t))&&(n[r]=e[r]);return n}function St(t){const e=W(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}function Et({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,o,a){const i={latestValues:Tt(r,o,a,t),renderState:e()};return n&&(i.mount=t=>n(r,t,i)),i}const Pt=e=>(n,r)=>{const o=(0,t.useContext)(l),a=(0,t.useContext)(f);return r?Et(e,n,o,a):C((()=>Et(e,n,o,a)))};function Tt(t,e,n,r){const o={},a=!1===(null==n?void 0:n.initial),i=r(t);for(const t in i)o[t]=St(i[t]);let{initial:s,animate:c}=t;const u=w(t),l=function(t){return Boolean(w(t)||t.variants)}(t);e&&l&&!u&&!1!==t.inherit&&(null!=s||(s=e.initial),null!=c||(c=e.animate));const f=a||!1===s,d=f?c:s;if(d&&"boolean"!=typeof d&&("object"!=typeof(p=d)||"function"!=typeof p.start)){(Array.isArray(d)?d:[d]).forEach((e=>{const n=O(t,e);if(!n)return;const{transitionEnd:r,transition:a}=n,i=pt(n,["transitionEnd","transition"]);for(const t in i){let e=i[t];if(Array.isArray(e)){e=e[f?e.length-1:0]}null!==e&&(o[t]=e)}for(const t in r)o[t]=r[t]}))}var p;return o}const Lt={useVisualState:Pt({scrapeMotionValuesFromProps:function(t){const e=Ct(t);for(const n in t)if(W(t[n])){e["x"===n||"y"===n?"attr"+n.toUpperCase():n]=t[n]}return e},createRenderState:vt,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}}ht(n,r,{enableHardwareAcceleration:!1},t.transformTemplate),xt(e,n)}})},Vt={useVisualState:Pt({scrapeMotionValuesFromProps:Ct,createRenderState:at})};!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){const a=k(t)?Lt:Vt;return Object.assign(Object.assign({},a),{preloadedFeatures:n,useRender:Ot(e),createVisualElement:r,projectionNodeConstructor:o,Component:t})}))})()})();
|
package/dist/three-entry.d.ts
CHANGED
|
@@ -2201,7 +2201,6 @@ interface AnimationState {
|
|
|
2201
2201
|
animateChanges: (options?: AnimationOptions, type?: AnimationType) => Promise<any>;
|
|
2202
2202
|
setActive: (type: AnimationType, isActive: boolean, options?: AnimationOptions) => Promise<any>;
|
|
2203
2203
|
setAnimateFunction: (fn: any) => void;
|
|
2204
|
-
isAnimated(key: string): boolean;
|
|
2205
2204
|
getState: () => {
|
|
2206
2205
|
[key: string]: AnimationTypeState;
|
|
2207
2206
|
};
|