PageSourceSearch

https://springrose.com.sa/static/js/vendor-framer.8eac9d0a.js

js springrose.com.sa collected 2026-10-06 06:20:14 UTC 125,890 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkspringrose=self.webpackChunkspringrose||[]).push([[825],{82:(t,e,n)=>{n.d(e,{l:()=>o});var i=n(3279),s=n(4879);const o={renderer:n(9914).J,...i.W,...s.n}},213:(t,e,n)=>{n.d(e,{k:()=>s});var i=n(6129);const{schedule:s,cancel:o}=(0,i.I)(queueMicrotask,!1)},293:(t,e,n)=>{n.d(e,{E:()=>s});var i=n(5043);const s=n(4735).B?i.useLayoutEffect:i.useEffect},553:(t,e,n)=>{n.d(e,{v:()=>s});var i=n(5671);class s{constructor(){this.subscriptions=[]}add(t){return(0,i.Kq)(this.subscriptions,t),()=>(0,i.Ai)(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 s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},604:(t,e,n)=>{n.d(e,{F:()=>s});const i=(t,e)=>n=>e(t(n)),s=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(i)}},971:(t,e,n)=>{n.d(e,{n:()=>i});const i="data-"+(0,n(2093).I)("framerAppearId")},1051:(t,e,n)=>{n.d(e,{Q:()=>i});const i=(0,n(5043).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},1199:(t,e,n)=>{function i(t){if("undefined"===typeof Proxy)return t;const e=new Map;return new Proxy((function(){return t(...arguments)}),{get:(n,i)=>"create"===i?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}n.d(e,{I:()=>i})},1248:(t,e,n)=>{n.d(e,{x:()=>r});var i=n(2769),s=n(6124),o=n(7457);function r(t,e,n){const r=(0,o.x)(t,e,n);for(const o in t)if((0,i.S)(t[o])||(0,i.S)(e[o])){r[-1!==s.U.indexOf(o)?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o]=t[o]}return r}},1485:(t,e,n)=>{n.d(e,{p:()=>i});const i=t=>Array.isArray(t)},2093:(t,e,n)=>{n.d(e,{I:()=>i});const i=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},2116:(t,e,n)=>{n.d(e,{Q:()=>s});const i=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function s(t){return"string"===typeof t&&!t.includes("-")&&!!(i.indexOf(t)>-1||/[A-Z]/u.test(t))}},2190:(t,e,n)=>{n.d(e,{L:()=>i});const i=(0,n(5043).createContext)({})},2201:(t,e,n)=>{n.d(e,{T:()=>r,n:()=>a});var i=n(8189),s=n(2852),o=n(9796);const r=[i.ai,s.px,s.KN,s.uj,s.vw,s.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>r.find((0,o.w)(t))},2248:(t,e,n)=>{n.d(e,{K:()=>v});var i=n(9611);var s=n(7517),o=n(3945),r=n(4459);const a=new Set(["auto","none","0"]);var l=n(8876),u=n(9565),h=n(3665),c=n(7343);const d=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function p(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,u.V)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,s]=function(t){const e=d.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${null!==n&&void 0!==n?n:i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return(0,h.i)(t)?parseFloat(t):t}return(0,c.p)(s)?p(s,e,n+1):s}var m=n(4931),f=n(2201);class v extends l.h{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let s=0;s<t.length;s++){let n=t[s];if("string"===typeof n&&(n=n.trim(),(0,c.p)(n))){const i=p(n,e.current);void 0!==i&&(t[s]=i),s===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!s.$.has(n)||2!==t.length)return;const[i,o]=t,r=(0,f.n)(i),a=(0,f.n)(o);if(r!==a)if((0,m.E4)(r)&&(0,m.E4)(a))for(let s=0;s<t.length;s++){const e=t[s];"string"===typeof e&&(t[s]=parseFloat(e))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let o=0;o<t.length;o++)("number"===typeof(s=t[o])?0===s:null===s||"none"===s||"0"===s||(0,i.$)(s))&&n.push(o);var s;n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"===typeof e&&!a.has(e)&&(0,o.V)(e).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=(0,r.J)(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=m.Hr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:i}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,r=i[o];i[o]=m.Hr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEac
1h((t=>{let[n,i]=t;e.getValue(n).set(i)})),this.resolveNoneKeyframes()}}},2273:(t,e,n)=>{n.d(e,{O:()=>u});var i=n(7343);const s=(t,e)=>e&&"number"===typeof t?e.transform(t):t;var o=n(7644),r=n(6124);const a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=r.U.length;function u(t,e,n){const{style:u,vars:h,transformOrigin:c}=t;let d=!1,p=!1;for(const a in e){const t=e[a];if(r.f.has(a))d=!0;else if((0,i.j)(a))h[a]=t;else{const e=s(t,o.W[a]);a.startsWith("origin")?(p=!0,c[a]=e):u[a]=e}}if(e.transform||(d||n?u.transform=function(t,e,n){let i="",u=!0;for(let h=0;h<l;h++){const l=r.U[h],c=t[l];if(void 0===c)continue;let d=!0;if(d="number"===typeof c?c===(l.startsWith("scale")?1:0):0===parseFloat(c),!d||n){const t=s(c,o.W[l]);d||(u=!1,i+=`${a[l]||l}(${t}) `),n&&(e[l]=t)}}return i=i.trim(),n?i=n(e,u?"":i):u&&(i="none"),i}(e,t.transform,n):u.transform&&(u.transform="none")),p){const{originX:t="50%",originY:e="50%",originZ:n=0}=c;u.transformOrigin=`${t} ${e} ${n}`}}},2420:(t,e,n)=>{n.d(e,{z:()=>o});var i=n(4886),s=n(6124);function o(t,e){let{layout:n,layoutId:o}=e;return s.f.has(t)||t.startsWith("origin")||(n||void 0!==o)&&(!!i.H[t]||"opacity"===t)}},2769:(t,e,n)=>{n.d(e,{S:()=>i});const i=t=>Boolean(t&&t.getVelocity)},2783:(t,e,n)=>{function i(t,e,n,i){let{style:s,vars:o}=e;Object.assign(t.style,s,i&&i.getProjectionStyles(n));for(const r in o)t.style.setProperty(r,o[r])}n.d(e,{e:()=>i})},2843:(t,e,n)=>{n.d(e,{f:()=>kt});var i=n(9908),s=n(3084),o=n(8721),r=n(5211);const a=!1;var l=n(4760);const u=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function h(t,e,n,i){if(t===e&&n===i)return l.l;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=u(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>1e-7&&++a<12);return r}(e,0,1,t,n);return t=>0===t||1===t?t:u(s(t),e,i)}var c=n(5836),d=n(9333);const p=h(.33,1.53,.69,.99),m=(0,d.G)(p),f=(0,c.V)(m),v=t=>(t*=2)<1?.5*m(t):.5*(2-Math.pow(2,-10*(t-1)));var g=n(4569),y=n(2248),x=n(4175),P=n(8876),S=n(9565),T=n(3945);const w=(t,e)=>"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!T.f.test(t)&&"0"!==t||t.startsWith("url(")));const b=t=>null!==t;function A(t,e,n){let{repeat:i,repeatType:s="loop"}=e;const o=t.filter(b),r=i&&"loop"!==s&&i%2===1?0:o.length-1;return r&&void 0!==n?n:o[r]}class V{constructor(t){let{autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:r="loop",...a}=t;this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=x.k.now(),this.options={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,P.q)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=x.k.now(),this.hasAttemptedResolve=!0;const{name:n,type:s,velocity:o,delay:r,onComplete:l,onUpdate:u,isGenerator:h}=this.options;if(!h&&!function(t,e,n,s){const o=t[0];if(null===o)return!1;if("display"===e||"visibility"===e)return!0;const r=t[t.length-1],a=w(o,e),l=w(r,e);return(0,S.$)(a===l,`You are trying to animate ${e} from "${o}" to "${r}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${r} via the \`style\` property.`),!(!a||!l)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||(0,i.WH)(n))&&s)}(t,n,s,o)){if(a||!r)return u&&u(A(t,this.options,e)),l&&l(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(t,e);!1!==c&&(this._resolved={keyframes:t,finalKeyframe:e,...c},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((t=>{this.resolveFinishedPromise=t}))}}var C=n(6822),D=n(4773),E=n(8842);function k(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var M=n(5449),R=n(8636),j=n(2848);function B(t,e){return n=>n>0?e:t}const L=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},F=[M.u,R.B,j.V];function U(t){const e=(n=t,F.find((t=>t.test(n))));var n;if((0,S.$)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let i=e.parse(t);
1return e===j.V&&(i=function(t){let{hue:e,saturation:n,lightness:i,alpha:s}=t;e/=360,n/=100,i/=100;let o=0,r=0,a=0;if(n){const t=i<.5?i*(1+n):i+n-i*n,s=2*i-t;o=k(s,t,e+1/3),r=k(s,t,e),a=k(s,t,e-1/3)}else o=r=a=i;return{red:Math.round(255*o),green:Math.round(255*r),blue:Math.round(255*a),alpha:s}}(i)),i}const O=(t,e)=>{const n=U(t),i=U(e);if(!n||!i)return B(t,e);const s={...n};return t=>(s.red=L(n.red,i.red,t),s.green=L(n.green,i.green,t),s.blue=L(n.blue,i.blue,t),s.alpha=(0,E.k)(n.alpha,i.alpha,t),R.B.transform(s))};var I=n(604),$=n(8066),W=n(7343);const N=new Set(["none","hidden"]);function X(t,e){return n=>(0,E.k)(t,e,n)}function G(t){return"number"===typeof t?X:"string"===typeof t?(0,W.p)(t)?B:$.y.test(t)?O:H:Array.isArray(t)?q:"object"===typeof t?$.y.test(t)?O:K:B}function q(t,e){const n=[...t],i=n.length,s=t.map(((t,n)=>G(t)(t,e[n])));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function K(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=G(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const H=(t,e)=>{const n=T.f.createTransformer(e),i=(0,T.V)(t),s=(0,T.V)(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?N.has(t)&&!s.values.length||N.has(e)&&!i.values.length?function(t,e){return N.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):(0,I.F)(q(function(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][s[r]],l=null!==(n=t.values[a])&&void 0!==n?n:0;i[o]=l,s[r]++}return i}(i,s),s.values),n):((0,S.$)(!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.`),B(t,e))};function Y(t,e,n){if("number"===typeof t&&"number"===typeof e&&"number"===typeof n)return(0,E.k)(t,e,n);return G(t)(t,e)}var z=n(7852);function Q(t,e,n){const i=Math.max(e-5,0);return(0,z.f)(n-t(i),e-i)}const _={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Z=.001;function J(t){let e,n,{duration:i=_.duration,bounce:o=_.bounce,velocity:r=_.velocity,mass:a=_.mass}=t;(0,S.$)(i<=(0,s.f)(_.maxDuration),"Spring duration must be 10 seconds or less");let l=1-o;l=(0,D.q)(_.minDamping,_.maxDamping,l),i=(0,D.q)(_.minDuration,_.maxDuration,(0,s.X)(i)),l<1?(e=t=>{const e=t*l,n=e*i,s=e-r,o=et(t,l),a=Math.exp(-n);return Z-s/o*a},n=t=>{const n=t*l*i,s=n*r+r,o=Math.pow(l,2)*Math.pow(t,2)*i,a=Math.exp(-n),u=et(Math.pow(t,2),l);return(-e(t)+Z>0?-1:1)*((s-o)*a)/u}):(e=t=>Math.exp(-t*i)*((t-r)*i+1)-.001,n=t=>Math.exp(-t*i)*(i*i*(r-t)));const u=function(t,e,n){let i=n;for(let s=1;s<tt;s++)i-=t(i)/e(i);return i}(e,n,5/i);if(i=(0,s.f)(i),isNaN(u))return{stiffness:_.stiffness,damping:_.damping,duration:i};{const t=Math.pow(u,2)*a;return{stiffness:t,damping:2*l*Math.sqrt(a*t),duration:i}}}const tt=12;function et(t,e){return t*Math.sqrt(1-e*e)}const nt=["duration","bounce"],it=["stiffness","damping","mass"];function st(t,e){return e.some((e=>void 0!==t[e]))}function ot(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_.visualDuration,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_.bounce;const n="object"!==typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:o,restDelta:r}=n;const a=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:h,damping:c,mass:d,duration:p,velocity:m,isResolvedFromDuration:f}=function(t){let e={velocity:_.velocity,stiffness:_.stiffness,damping:_.damping,mass:_.mass,isResolvedFromDuration:!1,...t};if(!st(t,it)&&st(t,nt))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,o=2*(0,D.q)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:_.mass,stiffness:s,damping:o}}else{const n=J(t);e={...e,...n,mass:_.mass},e.isResolvedFromDuration=!0}return e}({...n,velocity:-(0,s.X)(n.velocity||0)}),v=m||0,g=c/(2*Math.sqrt(h*d)),y=l-a,x=(0,s.X)(Math.sqrt(h/d)),P=Math.abs(y)<5;let S;if(o||(o=P?_.restSpeed.granular:_.restSpeed.default),r||(r=P?_.restDelta.granular:_.restDelta.default),g<1){const t=et(x,g);S=e=>{const n=Math.exp(-g*x*e);return l-n*((v+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}}else if(1===g)S=t=>
1l-Math.exp(-x*t)*(y+(v+x*y)*t);else{const t=x*Math.sqrt(g*g-1);S=e=>{const n=Math.exp(-g*x*e),i=Math.min(t*e,300);return l-n*((v+g*x*y)*Math.sinh(i)+t*y*Math.cosh(i))/t}}const T={calculatedDuration:f&&p||null,next:t=>{const e=S(t);if(f)u.done=t>=p;else{let n=0;g<1&&(n=0===t?(0,s.f)(v):Q(S,t,e));const i=Math.abs(n)<=o,a=Math.abs(l-e)<=r;u.done=i&&a}return u.value=u.done?l:e,u},toString:()=>{const t=Math.min((0,i.tu)(T),i.YE),e=(0,i.KZ)((e=>T.next(t*e).value),t,30);return t+"ms "+e}};return T}function rt(t){let{keyframes:e,velocity:n=0,power:i=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:r=500,modifyTarget:a,min:l,max:u,restDelta:h=.5,restSpeed:c}=t;const d=e[0],p={done:!1,value:d},m=t=>void 0===l?u:void 0===u||Math.abs(l-t)<Math.abs(u-t)?l:u;let f=i*n;const v=d+f,g=void 0===a?v:a(v);g!==v&&(f=g-d);const y=t=>-f*Math.exp(-t/s),x=t=>g+y(t),P=t=>{const e=y(t),n=x(t);p.done=Math.abs(e)<=h,p.value=p.done?g:n};let S,T;const w=t=>{var e;(e=p.value,void 0!==l&&e<l||void 0!==u&&e>u)&&(S=t,T=ot({keyframes:[p.value,m(p.value)],velocity:Q(x,t,p.value),damping:o,stiffness:r,restDelta:h,restSpeed:c}))};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return T||void 0!==S||(e=!0,P(t),w(t)),void 0!==S&&t>=S?T.next(t-S):(!e&&P(t),p)}}}const at=h(.42,0,1,1),lt=h(0,0,.58,1),ut=h(.42,0,.58,1),ht={linear:l.l,easeIn:at,easeInOut:ut,easeOut:lt,circIn:g.po,circInOut:g.tn,circOut:g.yT,backIn:m,backInOut:f,backOut:p,anticipate:v},ct=t=>{if((0,i.DW)(t)){(0,S.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return h(e,n,i,s)}return"string"===typeof t?((0,S.V)(void 0!==ht[t],`Invalid easing type '${t}'`),ht[t]):t};var dt=n(2349);function pt(t,e){let{clamp:n=!0,ease:i,mixer:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=t.length;if((0,S.V)(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const i=[],s=n||Y,o=t.length-1;for(let r=0;r<o;r++){let n=s(t[r],t[r+1]);if(e){const t=Array.isArray(e)?e[r]||l.l:e;n=(0,I.F)(t,n)}i.push(n)}return i}(e,i,s),u=a.length,h=n=>{if(r&&n<t[0])return e[0];let i=0;if(u>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const s=(0,dt.q)(t[i],t[i+1],n);return a[i](s)};return n?e=>h((0,D.q)(t[0],t[o-1],e)):h}function mt(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=(0,dt.q)(0,e,i);t.push((0,E.k)(n,1,s))}}(e,t.length-1),e}function ft(t){let{duration:e=300,keyframes:n,times:i,ease:s="easeInOut"}=t;const o=(t=>Array.isArray(t)&&"number"!==typeof t[0])(s)?s.map(ct):ct(s),r={done:!1,value:n[0]},a=function(t,e){return t.map((t=>t*e))}(i&&i.length===n.length?i:mt(n),e),l=pt(a,n,{ease:Array.isArray(o)?o:(u=n,h=o,u.map((()=>h||ut)).splice(0,u.length-1))});var u,h;return{calculatedDuration:e,next:t=>(r.value=l(t),r.done=t>=e,r)}}const vt=t=>{const e=e=>{let{timestamp:n}=e;return t(n)};return{start:()=>o.Gt.update(e,!0),stop:()=>(0,o.WG)(e),now:()=>o.uv.isProcessing?o.uv.timestamp:x.k.now()}},gt={decay:rt,inertia:rt,tween:ft,keyframes:ft,spring:ot},yt=t=>t/100;class xt extends V{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:i,keyframes:s}=this.options,o=(null===i||void 0===i?void 0:i.KeyframeResolver)||P.h;this.resolver=new o(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:o,velocity:r=0}=this.options,a=(0,i.WH)(e)?e:gt[e]||ft;let l,u;a!==ft&&"number"!==typeof t[0]&&(l=(0,I.F)(yt,Y(t[0],t[1])),t=[0,100]);const h=a({...this.options,keyframes:t});"mirror"===o&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-r})),null===h.calculatedDuration&&(h.calculatedDuration=(0,i.tu)(h));const{calculatedDuration:c}=h,d=c+s;return{generator:h,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-s}}onPostResolved(){const{autoplay:t=!0}=this.options;C.q.mainThread++,this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:r,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=n;
1if(null===this.startTime)return s.next(0);const{delay:c,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-c*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(d){const t=Math.min(this.currentTime,u)/h;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1);Boolean(e%2)&&("reverse"===p?(n=1-n,m&&(n-=m/h)):"mirror"===p&&(x=o)),y=(0,D.q)(0,1,n)*h}const P=g?{done:!1,value:a[0]}:x.next(y);r&&(P.value=r(P.value));let{done:S}=P;g||null===l||(S=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return T&&void 0!==i&&(P.value=A(a,this.options,i)),f&&f(P.value),T&&this.finish(),P}get duration(){const{resolved:t}=this;return t?(0,s.X)(t.calculatedDuration):0}get time(){return(0,s.X)(this.currentTime)}set time(t){t=(0,s.f)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,s.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=vt,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!==n&&void 0!==n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),C.q.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Pt=new Set(["opacity","clipPath","filter","transform"]);var St=n(6032);const Tt=(0,n(9930).p)((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));const wt={anticipate:v,backInOut:f,circInOut:g.tn};class bt extends V{constructor(t){super(t);const{name:e,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new y.K(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){let{duration:n=300,times:s,ease:o,type:r,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;var h;if("string"===typeof o&&(0,i.nL)()&&o in wt&&(o=wt[o]),h=this.options,(0,i.WH)(h.type)||"spring"===h.type||!(0,i.yL)(h.ease)){const{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){const n=new xt({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let o=0;for(;!i.done&&o<2e4;)i=n.sample(o),s.push(i.value),o+=10;return{times:void 0,keyframes:s,duration:o-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),n=h.duration,s=h.times,o=h.ease,r="keyframes"}const c=function(t,e,n){let{delay:s=0,duration:o=300,repeat:r=0,repeatType:a="loop",ease:l="easeInOut",times:u}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const h={[e]:n};u&&(h.offset=u);const c=(0,i.TU)(l,o);Array.isArray(c)&&(h.easing=c),St.Q.value&&C.q.waapi++;const d=t.animate(h,{delay:s,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"});return St.Q.value&&d.finished.finally((()=>{C.q.waapi--})),d}(a.owner.current,l,t,{...this.options,duration:n,times:s,ease:o});return c.startTime=null!==u&&void 0!==u?u:this.calcStartTime(),this.pendingTimeline?((0,i.vG)(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;a.set(A(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedProm
1ise()},{animation:c,duration:n,times:s,type:r,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return(0,s.X)(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return(0,s.X)(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=(0,s.f)(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return l.l;const{animation:n}=e;(0,i.vG)(n,t)}else this.pendingTimeline=t;return l.l}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:i,type:o,ease:r,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,c=new xt({...h,keyframes:n,duration:i,type:o,ease:r,times:a,isGenerator:!0}),d=(0,s.f)(this.time);t.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=e.owner.getProps();return Tt()&&n&&Pt.has(n)&&!a&&!l&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}}var At=n(6124);const Vt={type:"spring",stiffness:500,damping:25,restSpeed:10},Ct={type:"keyframes",duration:.8},Dt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Et=(t,e)=>{let{keyframes:n}=e;return n.length>2?Ct:At.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:Vt:Dt};const kt=function(t,e,n){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4?arguments[4]:void 0,h=arguments.length>5?arguments[5]:void 0;return c=>{const d=(0,i.rU)(l,t)||{},p=d.delay||l.delay||0;let{elapsed:m=0}=l;m-=(0,s.f)(p);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-m,onUpdate:t=>{e.set(t),d.onUpdate&&d.onUpdate(t)},onComplete:()=>{c(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:h?void 0:u};(function(t){let{when:e,delay:n,delayChildren:i,staggerChildren:s,staggerDirection:o,repeat:r,repeatType:a,repeatDelay:l,from:u,elapsed:h,...c}=t;return!!Object.keys(c).length})(d)||(f={...f,...Et(t,f)}),f.duration&&(f.duration=(0,s.f)(f.duration)),f.repeatDelay&&(f.repeatDelay=(0,s.f)(f.repeatDelay)),void 0!==f.from&&(f.keyframes[0]=f.from);let v=!1;if((!1===f.type||0===f.duration&&!f.repeatDelay)&&(f.duration=0,0===f.delay&&(v=!0)),(a||r.W.skipAnimations)&&(v=!0,f.duration=0,f.delay=0),v&&!h&&void 0!==e.get()){const t=A(f.keyframes,d);if(void 0!==t)return o.Gt.update((()=>{f.onUpdate(t),f.onComplete()})),new i.P6([])}return!h&&bt.supports(f)?new bt(f):new xt(f)}}},2848:(t,e,n)=>{n.d(e,{V:()=>a});var i=n(8189),s=n(2852),o=n(8133),r=n(5975);const a={test:(0,r.$)("hsl","hue"),parse:(0,r.q)("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:n,lightness:r,alpha:a=1}=t;return"hsla("+Math.round(e)+", "+s.KN.transform((0,o.a)(n))+", "+s.KN.transform((0,o.a)(r))+", "+(0,o.a)(i.X4.transform(a))+")"}}},2852:(t,e,n)=>{n.d(e,{KN:()=>o,gQ:()=>u,px:()=>r,uj:()=>s,vh:()=>a,vw:()=>l});const i=t=>({test:e=>"string"===typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=i("deg"),o=i("%"),r=i("px"),a=i("vh"),l=i("vw"),u={...o,parse:t=>o.parse(t)/100,transform:t=>o.transform(100*t)}},3223:(t,e,n)=>{n.d(e,{U:()=>i,_:()=>s});const i=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],s=["initial",...i]},3279:(t,e,n)=>{n.d(e,{W:()=>F});var i=n(9615),s=n(8240);function o(t,e,n){const i=t.getProps();return(0,s.a)(i,e,void 0!==n?n:i.custom,t)}var r=n(9908),a=n(7517),l=n(6992),u=n(8160);function h(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,u.OQ)(n))}var c=n(6268),d=n(6485),p=n(2843),m=n(8721);function f(t,e){let{protectedKeys:n,needsAnimating:i}=t;const s=n.hasOwnProperty(e)&&!0!==i[e];return i[e]=!1,s}function v(t,e){let{delay:n=0,transitionOverride:i,type:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var u;let{transition:v=t.getDefaultTransition(),transitionEnd:g,...y}=e;i&&(v=i);const x=[],P=s&&t.animationState&&t.animationState.getState()[s];for(const o in y){const e=t.getValue(o,null!==(u=t.latestValues[o])&&void 0!==u?u:null),i=y[o];if(void 0===i||P&&f(P,o))continue;const s={delay:n,...(0,r.rU)(v||{},o)};let l=!1;if(window.MotionHandoffAnimation){const e=(0,d.P)(t);if(e){const t=window.MotionHandoffAnimation(e,o,m.Gt);null!==t&&(s.startTime=t,l=!0)}}(0,c.g)(t,o),e.start((0,p.f)(o,e,i,t.shouldReduceMotion&&a.$.has(o)?{type:!1}:s,t,l));const h=e.animation;h&&x.push(h)}return g&&Promise.all(x).then((()=>{m.Gt.update((()=>{g&&function(t,e){const n=o(t,e);let{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(const o in r)h(t,o,(0,l.K)(r[o]))}(t,g)}))})),x}function g(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var i;const s=o(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=s||{};
1n.transitionOverride&&(r=n.transitionOverride);const a=s?()=>Promise.all(v(t,s,n)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5?arguments[5]:void 0;const r=[],a=(t.variantChildren.size-1)*i,l=1===s?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*i}:function(){return a-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*i};return Array.from(t.variantChildren).sort(y).forEach(((t,i)=>{t.notify("AnimationStart",e),r.push(g(t,e,{...o,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,s+i,o,a,n)}:()=>Promise.resolve(),{when:u}=r;if(u){const[t,e]="beforeChildren"===u?[a,l]:[l,a];return t().then((()=>e()))}return Promise.all([a(),l(n.delay)])}function y(t,e){return t.sortNodePosition(e)}var x=n(1485);function P(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 S=n(9742),T=n(3223);const w=T._.length;function b(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&b(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<w;n++){const i=T._[n],s=t.props[i];((0,S.w)(s)||!1===s)&&(e[i]=s)}return e}const A=[...T.U].reverse(),V=T.U.length;function C(t){return e=>Promise.all(e.map((e=>{let{animation:n,options:i}=e;return function(t,e){let n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>g(t,e,i)));n=Promise.all(s)}else if("string"===typeof e)n=g(t,e,i);else{const s="function"===typeof e?o(t,e,i.custom):e;n=Promise.all(v(t,s,i))}return n.then((()=>{t.notify("AnimationComplete",e)}))}(t,n,i)})))}function D(t){let e=C(t),n=M(),s=!0;const r=e=>(n,i)=>{var s;const r=o(t,i,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(r){const{transition:t,transitionEnd:e,...i}=r;n={...n,...i,...e}}return n};function a(a){const{props:l}=t,u=b(t.parent)||{},h=[],c=new Set;let d={},p=1/0;for(let e=0;e<V;e++){const o=A[e],m=n[o],f=void 0!==l[o]?l[o]:u[o],v=(0,S.w)(f),g=o===a?m.isActive:null;!1===g&&(p=e);let y=f===u[o]&&f!==l[o]&&v;if(y&&s&&t.manuallyAnimateOnMount&&(y=!1),m.protectedKeys={...d},!m.isActive&&null===g||!f&&!m.prevProp||(0,i.N)(f)||"boolean"===typeof f)continue;const T=E(m.prevProp,f);let w=T||o===a&&m.isActive&&!y&&v||e>p&&v,b=!1;const V=Array.isArray(f)?f:[f];let C=V.reduce(r(o),{});!1===g&&(C={});const{prevResolvedValues:D={}}=m,k={...D,...C},M=e=>{w=!0,c.has(e)&&(b=!0,c.delete(e)),m.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in k){const e=C[t],n=D[t];if(d.hasOwnProperty(t))continue;let i=!1;i=(0,x.p)(e)&&(0,x.p)(n)?!P(e,n):e!==n,i?void 0!==e&&null!==e?M(t):c.add(t):void 0!==e&&c.has(t)?M(t):m.protectedKeys[t]=!0}m.prevProp=f,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),s&&t.blockInitialAnimation&&(w=!1);w&&(!(y&&T)||b)&&h.push(...V.map((t=>({animation:t,options:{type:o}}))))}if(c.size){const e={};if("boolean"!==typeof l.initial){const n=o(t,Array.isArray(l.initial)?l.initial[0]:l.initial);n&&n.transition&&(e.transition=n.transition)}c.forEach((n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=null!==i&&void 0!==i?i:null})),h.push({animation:e})}let m=Boolean(h.length);return!s||!1!==l.initial&&l.initial!==l.animate||t.manuallyAnimateOnMount||(m=!1),s=!1,m?e(h):Promise.resolve()}return{animateChanges:a,setActive:function(e,i){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 o=a(e);for(const t in n)n[t].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=M(),s=!0}}}function E(t,e){return"string"===typeof e?e!==t:!!Array.isArray(e)&&!P(e,t)}function k(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function M(){return{animate:k(!0),whileInView:k(),whileHover:k(),whileTap:k(),whileDrag:k(),whileFocus:k(),exit:k()}}var R=n(3965);
1class j extends R.X{constructor(t){super(t),t.animationState||(t.animationState=D(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();(0,i.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let B=0;class L extends R.X{constructor(){super(...arguments),this.id=B++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then((()=>{e(this.id)}))}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const F={animation:{Feature:j},exit:{Feature:L}}},3456:(t,e,n)=>{n.d(e,{F:()=>a});var i=n(579),s=n(5043),o=n(6841),r=n(5491);function a(t){let{children:e,features:n,strict:a=!1}=t;const[,u]=(0,s.useState)(!l(n)),h=(0,s.useRef)(void 0);if(!l(n)){const{renderer:t,...e}=n;h.current=t,(0,r.Y)(e)}return(0,s.useEffect)((()=>
1{l(n)&&n().then((t=>{let{renderer:e,...n}=t;(0,r.Y)(n),h.current=e,u(!0)}))}),[]),(0,i.jsx)(o.Y.Provider,{value:{renderer:h.current,strict:a},children:e})}function l(t){return"function"===typeof t}},3546:(t,e,n)=>{n.d(e,{N:()=>g});var i=n(579),s=n(5043),o=n(2190),r=n(4930),a=n(9674),l=n(1051);class u extends s.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=e.offsetParent,n=t instanceof HTMLElement&&t.offsetWidth||0,i=this.props.sizeRef.current;i.height=e.offsetHeight||0,i.width=e.offsetWidth||0,i.top=e.offsetTop,i.left=e.offsetLeft,i.right=n-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h(t){let{children:e,isPresent:n,anchorX:o}=t;const r=(0,s.useId)(),a=(0,s.useRef)(null),h=(0,s.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=(0,s.useContext)(l.Q);return(0,s.useInsertionEffect)((()=>{const{width:t,height:e,top:i,left:s,right:l}=h.current;if(n||!a.current||!t||!e)return;const u="left"===o?`left: ${s}`:`right: ${l}`;a.current.dataset.motionPopId=r;const d=document.createElement("style");return c&&(d.nonce=c),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`\n          [data-motion-pop-id="${r}"] {\n            position: absolute !important;\n            width: ${t}px !important;\n            height: ${e}px !important;\n            ${u}px !important;\n            top: ${i}px !important;\n          }\n        `),()=>{document.head.removeChild(d)}}),[n]),(0,i.jsx)(u,{isPresent:n,childRef:a,sizeRef:h,children:s.cloneElement(e,{ref:a})})}const c=t=>{let{children:e,initial:n,isPresent:o,onExitComplete:l,custom:u,presenceAffectsLayout:c,mode:p,anchorX:m}=t;const f=(0,r.M)(d),v=(0,s.useId)(),g=(0,s.useCallback)((t=>{f.set(t,!0);for(const e of f.values())if(!e)return;l&&l()}),[f,l]),y=(0,s.useMemo)((()=>({id:v,initial:n,isPresent:o,custom:u,onExitComplete:g,register:t=>(f.set(t,!1),()=>f.delete(t))})),c?[Math.random(),g]:[o,g]);return(0,s.useMemo)((()=>{f.forEach(((t,e)=>f.set(e,!1)))}),[o]),s.useEffect((()=>{!o&&!f.size&&l&&l()}),[o]),"popLayout"===p&&(e=(0,i.jsx)(h,{isPresent:o,anchorX:m,children:e})),(0,i.jsx)(a.t.Provider,{value:y,children:e})};function d(){return new Map}var p=n(8917);const m=t=>t.key||"";function f(t){const e=[];return s.Children.forEach(t,(t=>{(0,s.isValidElement)(t)&&e.push(t)})),e}var v=n(293);const g=t=>{let{children:e,custom:n,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:d=!1,anchorX:g="left"}=t;const[y,x]=(0,p.xQ)(d),P=(0,s.useMemo)((()=>f(e)),[e]),S=d&&!y?[]:P.map(m),T=(0,s.useRef)(!0),w=(0,s.useRef)(P),b=(0,r.M)((()=>new Map)),[A,V]=(0,s.useState)(P),[C,D]=(0,s.useState)(P);(0,v.E)((()=>{T.current=!1,w.current=P;for(let t=0;t<C.length;t++){const e=m(C[t]);S.includes(e)?b.delete(e):!0!==b.get(e)&&b.set(e,!1)}}),[C,S.length,S.join("-")]);const E=[];if(P!==A){let t=[...P];for(let e=0;e<C.length;e++){const n=C[e],i=m(n);S.includes(i)||(t.splice(e,0,n),E.push(n))}return"wait"===h&&E.length&&(t=E),D(f(t)),V(P),null}const{forceRender:k}=(0,s.useContext)(o.L);return(0,i.jsx)(i.Fragment,{children:C.map((t=>{const e=m(t),s=!(d&&!y)&&(P===C||S.includes(e));return(0,i.jsx)(c,{isPresent:s,initial:!(T.current&&!a)&&void 0,custom:n,presenceAffectsLayout:u,mode:h,onExitComplete:s?void 0:()=>{if(!b.has(e))return;b.set(e,!0);let t=!0;b.forEach((e=>{e||(t=!1)})),t&&(null===k||void 0===k||k(),D(w.current),d&&(null===x||void 0===x||x()),l&&l())},anchorX:g,children:t},e)}))})}},3665:(t,e,n)=>{n.d(e,{i:()=>i});const i=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},3861:(t,e,n)=>{function i(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}n.d(e,{k:()=>i})},3874:(t,e,n)=>{n.d(e,{N:()=>i});const i=(0,n(5043).createContext)({})},3945:(t,e,n)=>{n.d(e,{V:()=>p,f:()=>g});var i=n(8066);const s=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var o=n(4568),r=n(8133);const a="number",l="color",u="var",h="var(",c="${}",d=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function p(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},o=[];let r=0;const p=e.replace(d,(t=>(i.y.test(t)?(s.color.push(r),o.push(l),n.push(i.y.parse(t))):t.startsWith(h)?(s.var.push(r),o.push(u),n.push(t)):(s.number.push(r),o.push(a),n.push(parseFloat(t))),++r,c))).split(c);return{values:n,split:p,indexes:s,types:o}}function m(t){return p(t).values}function f(t){const{split:e,types:n}=p(t),s=e.length;return t=>{let o="";for(let u=0;u<s;u++)if(o+=e[u],void 0!==t[u]){const e=n[u];o+=e===a?(0,r.a)(t[u]):e===l?i.y.transform(t[u]):t[u]}return o}}const v=t=>"number"===typeof t?0:t;const g={test:function(t){var e,n;return isNaN(t)&&"string"===typeof t&&((null===(e=t.match(o.S))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(s))||void 0===n?void 0:n.length)||0)>0},parse:m,createTransformer:f,getAnimatableNone:function(t){const e=m(t);return f(t)(e.map(v))}}},3965:(t,e,n)=>{n.d(e,{X:()=>i});class i{constructor(t){this.isMounted=!1,this.node=t}update(){}}},4077:(t,e,n)=>{function i(t){return void 0===t||1===t}function s(t){let{scale:e,scaleX:n,scaleY:s}=t;return!i(e)||!i(n)||!i(s)}function o(t){return s(t)||r(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function r(t){return a(t.x)||a(t.y)}function a(t){return t&&"0%"!==t}n.d(e,{HD:()=>o,vF:()=>r,vk:()=>s})},4175:(t,e,n)=>{n.d(e,{k:()=>a});var i=n(5211),s=n(8721);let o;function r(){o=void 0}const a={now:()=>(void 0===o&&a.set(s.uv.isProcessing||i.W.useManualTiming?s.uv.timestamp:performance.now()),o),set:t=>{o=t,queueMicrotask(r)}}},4391:(t,e,n)=>{function i(t){let{top:e,left:n,right:i,bottom:s}=t;return{x:{min:n,max:i},y:{min:e,max:s}}}function s(t){let{x:e,y:n}=t;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function o(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,{FY:()=>i,bS:()=>o,pA:()=>s})},4459:(t,e,n)=>{n.d(e,{J:()=>r});var i=n(3945),s=n(7639),o=n(5030);function r(t,e){let n=(0,o.D)(t);return n!==s.p&&(n=i.f),n.getAnimatableNone?n.getAnimatableNone(e):void 0}},4568:(t,e,n)=>{n.d(e,{S:()=>i});const i=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},4569:(t,e,n)=>{n.d(e,{po:()=>o,tn:()=>a,yT:()=>r});var i=n(5836),s=n(9333);const o=t=>1-Math.sin(Math.acos(t)),r=(0,s.G)(o),a=(0,i.V)(o)},4735:(t,e,n)=>{n.d(e,{B:()=>i});const i="undefined"!==typeof window},4773:(t,e,n)=>{n.d(e,{q:()=>i});const i=(t,e,n)=>n>e?e:n<t?t:n},4879:(t,e,n)=>{n.d(e,{n:()=>S});var i=n(9908),s=n(8945),o=n(3965),r=n(8721);function a(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const o=i["onHover"+n];o&&r.Gt.postRender((()=>o(e,(0,s.e)(e))))}class l extends o.X{mount(){const{current:t}=this.node;t&&(this.unmount=(0,i.PT)(t,((t,e)=>(a(this.node,e,"Start"),t=>a(this.node,t,"End")))))}unmount(){}}var u=n(3861),h=n(604);class c extends o.X{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,h.F)((0,u.k)(this.node.current,"focus",(()=>this.onFocus())),(0,u.k)(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}function d(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const o=i["onTap"+("End"===n?"":n)];o&&r.Gt.postRender((()=>o(e,(0,s.e)(e))))}class p extends o.X{mount(){const{current:t}=this.node;t&&(this.unmount=(0,i.c$)(t,((t,e)=>(d(this.node,e,"Start"),(t,e)=>{let{success:n}=e;return d(this.node,t,n?"End":"Cancel")})),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const m=new WeakMap,f=new WeakMap,v=t=>{const e=m.get(t.target);e&&e(t)}
1,g=t=>{t.forEach(v)};function y(t,e,n){const i=function(t){let{root:e,...n}=t;const i=e||document;f.has(i)||f.set(i,{});const s=f.get(i),o=JSON.stringify(n);return s[o]||(s[o]=new IntersectionObserver(g,{root:e,...n})),s[o]}(e);return m.set(t,n),i.observe(t),()=>{m.delete(t),i.unobserve(t)}}const x={some:0,all:1};class P extends o.X{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"===typeof i?i:x[i]};return y(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node,n=["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==n[t]}(t,e));n&&this.startObserver()}unmount(){}}const S={inView:{Feature:P},tap:{Feature:p},focus:{Feature:c},hover:{Feature:l}}},4886:(t,e,n)=>{n.d(e,{$:()=>o,H:()=>s});var i=n(7343);const s={};function o(t){for(const e in t)s[e]=t[e],(0,i.j)(e)&&(s[e].isCSSVariable=!0)}},4930:(t,e,n)=>{n.d(e,{M:()=>s});var i=n(5043);function s(t){const e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}},4931:(t,e,n)=>{n.d(e,{E4:()=>r,Hr:()=>d,W9:()=>c});var i=n(8189),s=n(2852),o=n(6124);const r=t=>t===i.ai||t===s.px,a=(t,e)=>parseFloat(t.split(", ")[e]),l=(t,e)=>(n,i)=>{let{transform:s}=i;if("none"===s||!s)return 0;const o=s.match(/^matrix3d\((.+)\)$/u);if(o)return a(o[1],e);{const e=s.match(/^matrix\((.+)\)$/u);return e?a(e[1],t):0}},u=new Set(["x","y","z"]),h=o.U.filter((t=>!u.has(t)));function c(t){const e=[];return h.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e}const d={width:(t,e)=>{let{x:n}=t,{paddingLeft:i="0",paddingRight:s="0"}=e;return n.max-n.min-parseFloat(i)-parseFloat(s)},height:(t,e)=>{let{y:n}=t,{paddingTop:i="0",paddingBottom:s="0"}=e;return n.max-n.min-parseFloat(i)-parseFloat(s)},top:(t,e)=>{let{top:n}=e;return parseFloat(n)},left:(t,e)=>{let{left:n}=e;return parseFloat(n)},bottom:(t,e)=>{let{y:n}=t,{top:i}=e;return parseFloat(i)+(n.max-n.min)},right:(t,e)=>{let{x:n}=t,{left:i}=e;return parseFloat(i)+(n.max-n.min)},x:l(4,13),y:l(5,14)};d.translateX=d.x,d.translateY=d.y},5030:(t,e,n)=>{n.d(e,{D:()=>r});var i=n(8066),s=n(7639);const o={...n(7644).W,color:i.y,backgroundColor:i.y,outlineColor:i.y,fill:i.y,stroke:i.y,borderColor:i.y,borderTopColor:i.y,borderRightColor:i.y,borderBottomColor:i.y,borderLeftColor:i.y,filter:s.p,WebkitFilter:s.p},r=t=>o[t]},5211:(t,e,n)=>{n.d(e,{W:()=>i});const i={skipAnimations:!1,useManualTiming:!1}},5370:(t,e,n)=>{n.d(e,{d:()=>r});var i=n(2093),s=n(2783),o=n(8130);function r(t,e,n,r){(0,s.e)(t,e,void 0,r);for(const s in e.attrs)t.setAttribute(o.e.has(s)?s:(0,i.I)(s),e.attrs[s])}},5449:(t,e,n)=>{n.d(e,{u:()=>s});var i=n(8636);const s={test:(0,n(5975).$)("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:i.B.transform}},5491:(t,e,n)=>{n.d(e,{Y:()=>s});var i=n(9601);function s(t){for(const e in t)i.B[e]={...i.B[e],...t[e]}}},5671:(t,e,n)=>{function i(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{Ai:()=>s,Kq:()=>i})},5836:(t,e,n)=>{n.d(e,{V:()=>i});const i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},5899:(t,e,n)=>{n.d(e,{P:()=>Le});var i=n(1199),s=n(3279),o=n(3965),r=n(4760),a=n(9908),l=n(9565),u=n(2843),h=n(3861),c=n(8945);function d(t,e,n,i){return(0,h.k)(t,e,(0,c.F)(n),i)}var p=n(4391),m=n(8842);function f(t){return t.max-t.min}function v(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=i,t.originPoint=(0,m.k)(e.min,e.max,t.origin),t.scale=f(n)/f(e),t.translate=(0,m.k)(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function g(t,e,n,i){v(t.x,e.x,n.x,i?i.originX:void 0),v(t.y,e.y,n.y,i?i.originY:void 0)}function y(t,e,n){t.min=n.min+e.min,t.max=t.min+f(e)}function x(t,e,n){t.min=e.min-n.min,t.max=t.min+f(e)}function P(t,e,n){x(t.x,e.x,n.x),x(t.y,e.y,n.y)}var S=n(8093);function T(t){return[t("x"),t("y")]}var w=n(6358),b=n(7380),A=n(2852),V=n(6268),C=n(3084);const D=(t,e)=>Math.abs(t-e);var E=n(604),k=n(8721);class M{constructor(t,e){let{transformPagePoint:n,dragSnapToOrigin:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=B(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=D(t.x,e.x),i=D(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=k.uv;this.history.push({...i,timestamp:s});
1const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{if(t.currentTarget instanceof Element&&t.currentTarget.hasPointerCapture&&void 0!==t.pointerId)try{if(!t.currentTarget.hasPointerCapture(t.pointerId))return}catch(n){}this.lastMoveEvent=t,this.lastMoveEventInfo=R(e,this.transformPagePoint),k.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{(0,a.CD)(t,"release"),this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=B("pointercancel"===t.type||"lostpointercapture"===t.type?this.lastMoveEventInfo:R(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!(0,a.Mc)(t))return;this.dragSnapToOrigin=i,this.handlers=e,this.transformPagePoint=n;const s=R((0,c.e)(t),this.transformPagePoint),{point:o}=s,{timestamp:r}=k.uv;this.history=[{...o,timestamp:r}];const{onSessionStart:l}=e;l&&l(t,B(s,this.history)),(0,a.CD)(t,"set"),this.removeListeners=(0,E.F)(d(t.currentTarget,"pointermove",this.handlePointerMove),d(t.currentTarget,"pointerup",this.handlePointerUp),d(t.currentTarget,"pointercancel",this.handlePointerUp),d(t.currentTarget,"lostpointercapture",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,k.WG)(this.updatePoint)}}function R(t,e){return e?{point:e(t.point)}:t}function j(t,e){return{x:t.x-e.x,y:t.y-e.y}}function B(t,e){let{point:n}=t;return{point:n,delta:j(n,F(e)),offset:j(n,L(e)),velocity:U(e,.1)}}function L(t){return t[0]}function F(t){return t[t.length-1]}function U(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=F(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>(0,C.f)(e)));)n--;if(!i)return{x:0,y:0};const o=(0,C.X)(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}var O=n(2349),I=n(4773);function $(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 W(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}}const N=.35;function X(t,e,n){return{min:G(t,e),max:G(t,n)}}function G(t,e){return"number"===typeof t?t:t[e]||0}const q=new WeakMap;class K{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,S.ge)(),this.visualElement=t}start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new M(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor((0,c.e)(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,a.Wp)(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),T((t=>{let e=this.getAxisMotionValue(t).get()||0;if(A.KN.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=f(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),s&&k.Gt.postRender((()=>s(t,e))),(0,V.g)(this.visualElement,"transform");const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>T((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=e;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&k.Gt.postRender((()=>s(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!H(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,e,n){let{min:i,max:s}=e;return void 0!==i&&t<i?t=n?(0,m.k)(i,t,n.min):Math.max(t,i):void 0!==s&&t>s&&(t=n?(0,m.k)(s,t,n.max):Math.min(t,s)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&(0,b.X)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,e){let{top:n,left:i,bottom:s,right:o}=e;return{x:$(t.x,i,o),y:$(t.y,n,s)}}(i.layoutBox,e),this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N;return!1===t?t=0:!0===t&&(t=N),{x:X(t,"left","right"),y:X(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&T((t=>{!1!==this.constraints&&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}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!(0,b.X)(t))return!1;const n=t.current;(0,l.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=(0,w.L)(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:W(t.x,e.x),y:W(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e((0,p.pA)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,p.FY)(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=T((r=>{if(!H(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const u=i?200:1e6,h=i?40:1e7,c={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,c)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return(0,V.g)(this.visualElement,t),n.start((0,u.f)(t,n,0,e,this.visualElement,!1))}stopAnimation(){T((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){T((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){T((e=>{const{drag:n}=this.getProps();if(!H(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-(0,m.k)(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!(0,b.X)(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};T((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=f(t),s=f(e);return s>i?n=(0,O.q)(e.min,e.max-i,t.min):i>s&&(n=(0,O.q)(t.min,t.max-s,e.min)),(0,I.q)(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),T((e=>{if(!H(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set((0,m.k)(s,o,i[e]))}))}addListeners(){if(!this.visualElement.current)return;q.set(this.visualElement,this);const t=d(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}
1=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();(0,b.X)(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),k.Gt.read(e);const s=(0,h.k)(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n}=t;this.isDragging&&n&&(T((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=N,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function H(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class Y extends o.X{constructor(t){super(t),this.removeGroupControls=r.l,this.removeListeners=r.l,this.controls=new K(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||r.l}unmount(){this.removeGroupControls(),this.removeListeners()}}const z=t=>(e,n)=>{t&&k.Gt.postRender((()=>t(e,n)))};class Q extends o.X{constructor(){super(...arguments),this.removePointerDownListener=r.l}onPointerDown(t){this.session=new M(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:z(t),onStart:z(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&k.Gt.postRender((()=>i(t,e)))}}}mount(){this.removePointerDownListener=d(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var _=n(579),Z=n(5043),J=n(8917),tt=n(2190),et=n(3874);const nt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function it(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const st={correct:(t,e)=>{if(!e.target)return t;if("string"===typeof t){if(!A.px.test(t))return t;t=parseFloat(t)}return`${it(t,e.target.x)}% ${it(t,e.target.y)}%`}};var ot=n(3945);const rt={correct:(t,e)=>{let{treeScale:n,projectionDelta:i}=e;const s=t,o=ot.f.parse(t);if(o.length>5)return s;const r=ot.f.createTransformer(t),a="number"!==typeof o[0]?1:0,l=i.x.scale*n.x,u=i.y.scale*n.y;o[0+a]/=l,o[1+a]/=u;const h=(0,m.k)(l,u,.5);return"number"===typeof o[2+a]&&(o[2+a]/=h),"number"===typeof o[3+a]&&(o[3+a]/=h),r(o)}};var at=n(4886),lt=n(213);class ut extends Z.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;(0,at.$)(ct),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(()=>{this.safeToRemove()})),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),nt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o?(o.isPresent=s,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||k.Gt.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),lt.k.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ht(t){const[e,n]=(0,J.xQ)(),i=(0,Z.useContext)(tt.L);return(0,_.jsx)(ut,{...t,layoutGroup:i,switchLayoutGroup:(0,Z.useContext)(et.N),isPresent:e,safeToRemove:n})}const ct={borderRadius:{...st,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:st,borderTopRightRadius:st,borderBottomLeftRadius:st,borderBottomRightRadius:st,boxShadow:rt};var dt=n(8160),pt=n(2769);var mt=n(6485),ft=n(4175);var vt=n(5671);const gt=(t,e)=>t.depth-e.depth;class yt{constructor(){this.children=[],this.isDirty=!1}add(t){(0,vt.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,vt.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(gt),this.isDirty=!1,this.children.forEac
1h(t)}}var xt=n(6822),Pt=n(6032);function St(t,e){const n=ft.k.now(),i=s=>{let{timestamp:o}=s;const r=o-n;r>=e&&((0,k.WG)(i),t(r-e))};return k.Gt.read(i,!0),()=>(0,k.WG)(i)}var Tt=n(553),wt=n(6061),bt=n(4569);const At=["TopLeft","TopRight","BottomLeft","BottomRight"],Vt=At.length,Ct=t=>"string"===typeof t?parseFloat(t):t,Dt=t=>"number"===typeof t||A.px.test(t);function Et(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const kt=Rt(0,.5,bt.yT),Mt=Rt(.5,.95,r.l);function Rt(t,e,n){return i=>i<t?0:i>e?1:n((0,O.q)(t,e,i))}function jt(t,e){t.min=e.min,t.max=e.max}function Bt(t,e){jt(t.x,e.x),jt(t.y,e.y)}function Lt(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var Ft=n(7664);function Ut(t,e,n,i,s){return t-=e,t=(0,Ft.hq)(t,1/n,i),void 0!==s&&(t=(0,Ft.hq)(t,1/s,i)),t}function Ot(t,e,n,i,s){let[o,r,a]=n;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;A.KN.test(e)&&(e=parseFloat(e),e=(0,m.k)(r.min,r.max,e/100)-r.min);if("number"!==typeof e)return;let a=(0,m.k)(o.min,o.max,i);t===o&&(a-=e),t.min=Ut(t.min,e,n,a,s),t.max=Ut(t.max,e,n,a,s)}(t,e[o],e[r],e[a],e.scale,i,s)}const It=["x","scaleX","originX"],$t=["y","scaleY","originY"];function Wt(t,e,n,i){Ot(t.x,e,It,n?n.x:void 0,i?i.x:void 0),Ot(t.y,e,$t,n?n.y:void 0,i?i.y:void 0)}function Nt(t){return 0===t.translate&&1===t.scale}function Xt(t){return Nt(t.x)&&Nt(t.y)}function Gt(t,e){return t.min===e.min&&t.max===e.max}function qt(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Kt(t,e){return qt(t.x,e.x)&&qt(t.y,e.y)}function Ht(t){return f(t.x)/f(t.y)}function Yt(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class zt{constructor(){this.members=[]}add(t){(0,vt.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,vt.Ai)(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 i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var Qt=n(4077);const _t={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Zt=["","X","Y","Z"],Jt={visibility:"hidden"};let te=0;function ee(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function ne(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=(0,mt.P)(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",k.Gt,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&ne(i)}function ie(t){let{attachResizeListener:e,defaultParent:n,measureScroll:i,checkIsScrollRoot:s,resetTransform:o}=t;return class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();this.id=te++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Pt.Q.value&&(_t.nodes=_t.calculatedTargetDeltas=_t.calculatedProjections=0),this.nodes.forEac
1h(re),this.nodes.forEach(pe),this.nodes.forEach(me),this.nodes.forEach(ae),Pt.Q.addProjectionMetrics&&Pt.Q.addProjectionMetrics(_t)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let n=0;n<this.path.length;n++)this.path[n].shouldResetTransform=!0;this.root===this&&(this.nodes=new yt)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Tt.v),this.eventHandlers.get(t).add(e)}notifyListeners(t){const e=this.eventHandlers.get(t);for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];e&&e.notify(...i)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;var i;this.isSVG=(i=t)instanceof SVGElement&&"svg"!==i.tagName,this.instance=t;const{layoutId:s,layout:o,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||s)&&(this.isLayoutDirty=!0),e){let n;const i=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=St(i,250),nt.hasAnimatedSinceResize&&(nt.hasAnimatedSinceResize=!1,this.nodes.forEach(de))}))}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&r&&(s||o)&&this.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n,hasRelativeLayoutChanged:i,layout:s}=t;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||r.getDefaultTransition()||Pe,{onLayoutAnimationStart:l,onLayoutAnimationComplete:u}=r.getProps(),h=!this.targetLayout||!Kt(this.targetLayout,s),c=!n&&i;if(this.options.layoutRoot||this.resumeFrom||c||n&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...(0,a.rU)(o,"layout"),onPlay:l,onComplete:u};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else n||de(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,k.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(fe),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ne(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const t=this.path[s];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;const i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(ue);this.isUpdating||this.nodes.forEach(he),this.isUpdating=!1,this.nodes.forEach(ce),this.nodes.forEach(se),this.nodes.forEach(oe),this.clearAllSnapshots();const t=ft.k.now();
1k.uv.delta=(0,I.q)(0,1e3/60,t-k.uv.timestamp),k.uv.timestamp=t,k.uv.isProcessing=!0,k.PP.update.process(k.uv),k.PP.preRender.process(k.uv),k.PP.render.process(k.uv),k.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,lt.k.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(le),this.sharedNodes.forEach(ve)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.Gt.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||f(this.snapshot.measuredBox.x)||f(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,S.ge)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!Xt(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;t&&(e||(0,Qt.HD)(this.latestValues)||s)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),we((i=n).x),we(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return(0,S.ge)();const n=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(Ae))){const{scroll:t}=this.root;t&&((0,Ft.Ql)(n.x,t.offset.x),(0,Ft.Ql)(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n=(0,S.ge)();if(Bt(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let i=0;i<this.path.length;i++){const e=this.path[i],{scroll:s,options:o}=e;e!==this.root&&s&&o.layoutScroll&&(s.wasRoot&&Bt(n,t),(0,Ft.Ql)(n.x,s.offset.x),(0,Ft.Ql)(n.y,s.offset.y))}return n}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,S.ge)();Bt(n,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&(0,Ft.Ww)(n,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),(0,Qt.HD)(t.latestValues)&&(0,Ft.Ww)(n,t.latestValues)}return(0,Qt.HD)(this.latestValues)&&(0,Ft.Ww)(n,this.latestValues),n}removeTransform(t){const e=(0,S.ge)();Bt(e,t);for(let n=0;n<this.path.length;n++){const t=this.path[n];if(!t.instance)continue;if(!(0,Qt.HD)(t.latestValues))continue;(0,Qt.vk)(t.latestValues)&&t.updateSnapshot();const i=(0,S.ge)();Bt(i,t.measurePageBox()),Wt(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,i)}return(0,Qt.HD)(this.latestValues)&&Wt(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==k.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
1haredProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=k.uv.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,S.ge)(),this.relativeTargetOrigin=(0,S.ge)(),P(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Bt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var r,a,l;if(this.target||(this.target=(0,S.ge)(),this.targetWithTransforms=(0,S.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,y(r.x,a.x,l.x),y(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Bt(this.target,this.layout.layoutBox),(0,Ft.o4)(this.target,this.targetDelta)):Bt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,S.ge)(),this.relativeTargetOrigin=(0,S.ge)(),P(this.relativeTargetOrigin,this.target,t.target),Bt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Pt.Q.value&&_t.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!(0,Qt.vk)(this.parent.latestValues)&&!(0,Qt.vF)(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===k.uv.timestamp&&(i=!1),i)return;const{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;Bt(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;(0,Ft.OU)(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,S.ge)());const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Lt(this.prevProjectionDelta.x,this.projectionDelta.x),Lt(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),g(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&Yt(this.projectionDelta.x,this.prevProjectionDelta.x)&&Yt(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Pt.Q.value&&_t.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,S.xU)(),this.projectionDelta=(0,S.xU)(),this.projectionDeltaWithTransform=(0,S.xU)()}setAnimationOrigin(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o=(0,S.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r=(0,S.ge)(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,h=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(xe));let c;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,f,v,g;ge(o.x,t.x,n),ge(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(P(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,v=r,g=n,ye(p.x,f.x,v.x,g),ye(p.y,f.y,v.y,g),c&&
1(l=this.relativeTarget,d=c,Gt(l.x,d.x)&&Gt(l.y,d.y))&&(this.isProjectionDirty=!1),c||(c=(0,S.ge)()),Bt(c,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=(0,m.k)(0,void 0!==n.opacity?n.opacity:1,kt(i)),t.opacityExit=(0,m.k)(void 0!==e.opacity?e.opacity:1,0,Mt(i))):o&&(t.opacity=(0,m.k)(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r<Vt;r++){const s=`border${At[r]}Radius`;let o=Et(e,s),a=Et(n,s);void 0===o&&void 0===a||(o||(o=0),a||(a=0),0===o||0===a||Dt(o)===Dt(a)?(t[s]=Math.max((0,m.k)(Ct(o),Ct(a),i),0),(A.KN.test(a)||A.KN.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,m.k)(e.rotate||0,n.rotate||0,i))}(s,i,this.latestValues,n,h,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,k.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.Gt.update((()=>{nt.hasAnimatedSinceResize=!0,xt.q.layout++,this.currentAnimation=function(t,e,n){const i=(0,pt.S)(t)?t:(0,dt.OQ)(t);return i.start((0,u.f)("",i,e,n)),i.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{xt.q.layout--},onComplete:()=>{xt.q.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&be(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,S.ge)();const e=f(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=f(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}Bt(e,n),(0,Ft.Ww)(e,s),g(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new zt);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&ee("z",t,i,this.animationValues);for(let s=0;s<Zt.length;s++)ee(`rotate${Zt[s]}`,t,i,this.animationValues),ee(`skew${Zt[s]}`,t,i,this.animationValues);t.render();for(const s in i)t.setStaticValue(s,i[s]),this.animationValues&&(this.animationValues[s]=i[s]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Jt;const i={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=(0,wt.u)(null===t||void 0===t?void 0:t.pointerEvents)||"",i.transform=s?s(this.latestValues,""):"none",i;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=(0,wt.u)(null===t||void 0===t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,Qt.HD)(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}const r=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=function(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y,r=(null===n||void 0===n?void 0:n.z)||0;if((s||o||r)&&(i=`translate3d(${s}px, ${o}px, ${r}px) `),1===e.x&&1===e.y||(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:o,skewX:r,skewY:a}=n;t&&(i=`perspective(${t}px) ${i}`),e&&(i+=`rotate(${e}deg) `),s&&(i+=`rotateX(${s}deg) `),o&&(i+=`rotateY(${o}deg) `),r&&(i+=`skewX(${r}deg) `),a&&(i+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,r),s&&(i.transform=s(r,i.transform));const{x:a,y:l}=this.projectionDelta;i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?i.opacity=o===this?null!==(n=null!==(e=r.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:i.opacity=o===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0;for(const u in at.H){if(void 0===r[u])continue;const{correct:t,applyTo:e,isCSSVariable:n}=at.H[u],s="none"===i.transform?r[u]:t(r[u],o);if(e){const t=e.length;for(let n=0;n<t;n++)i[e[n]]=s}
1else n?this.options.visualElement.renderState.vars[u]=s:i[u]=s}return this.options.layoutId&&(i.pointerEvents=o===this?(0,wt.u)(null===t||void 0===t?void 0:t.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(ue),this.root.sharedNodes.clear()}}}function se(t){t.updateLayout()}function oe(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?T((t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=f(i);i.min=e[t].min,i.max=i.min+s})):be(s,n.layoutBox,e)&&T((i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=f(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)}));const r=(0,S.xU)();g(r,e,n.layoutBox);const a=(0,S.xU)();o?g(a,t.applyTransform(i,!0),n.measuredBox):g(a,e,n.layoutBox);const l=!Xt(r);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r=(0,S.ge)();P(r,n.layoutBox,s.layoutBox);const a=(0,S.ge)();P(a,e,o.layoutBox),Kt(r,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function re(t){Pt.Q.value&&_t.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ae(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function le(t){t.clearSnapshot()}function ue(t){t.clearMeasurements()}function he(t){t.isLayoutDirty=!1}function ce(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function de(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function pe(t){t.resolveTargetDelta()}function me(t){t.calcProjection()}function fe(t){t.resetSkewAndRotation()}function ve(t){t.removeLeadSnapshot()}function ge(t,e,n){t.translate=(0,m.k)(e.translate,0,n),t.scale=(0,m.k)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ye(t,e,n,i){t.min=(0,m.k)(e.min,n.min,i),t.max=(0,m.k)(e.max,n.max,i)}function xe(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Pe={duration:.45,ease:[.4,0,.1,1]},Se=t=>"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Te=Se("applewebkit/")&&!Se("chrome/")?Math.round:r.l;function we(t){t.min=Te(t.min),t.max=Te(t.max)}function be(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=Ht(e),s=Ht(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function Ae(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const Ve=ie({attachResizeListener:(t,e)=>(0,h.k)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ce={current:void 0},De=ie({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ce.current){const t=new Ve({});t.mount(window),t.setOptions({layoutScroll:!0}),Ce.current=t}return Ce.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Ee={pan:{Feature:Q},drag:{Feature:Y,ProjectionNode:De,MeasureLayout:ht}};var ke=n(4879);const Me={layout:{ProjectionNode:De,MeasureLayout:ht}};var Re=n(5988),je=n(9914);const Be=(0,Re.C)({...s.W,...ke.n,...Ee,...Me},je.J),Le=(0,i.I)(Be)},5975:(t,e,n)=>{n.d(e,{$:()=>o,q:()=>r});var i=n(4568);const s=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,o=(t,e)=>n=>Boolean("string"===typeof n&&s.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),r=(t,e,n)=>s=>{if("string"!==typeof s)return s;const[o,r,a,l]=s.match(i.S);return{[t]:parseFloat(o),[e]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},5988:(t,e,n)=>{n.d(e,{C:()=>ot});var i=n(579),s=n(5043),o=n(2190),r=n(6841),a=n(1051);const l=(0,s.createContext)({});var u=n(9426),h=n(9742);function c(t){const{initial:e,animate:n}=function(t,e){if((0,u.e)(t)){const{initial:e,animate:n}=t;return{initial:!1===e||(0,h.w)(e)?e:void 0,animate:(0,h.w)(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(l));return(0,s.useMemo)((()=>({initial:e,animate:n})),[d(e),d(n)])}function d(t){return Array.isArray(t)?t.join(" "):t}var p=n(4735),m=n(9601),f=n(5491);const v=Symbol.for("motionComponentSymbol");var g=n(7380);function y(t,e,n){return(0,s.useCallback)((i=>{i&&t.onMount&&t.onMount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"===typeof n?n(i):(0,g.X)(n)&&(n.current=i))}),[e])}var x=n(9674),P=n(293),S=n(971),T=n(213),w=n(3874);function b(t,e,n,i,o){var u,h;const{visualElement:c}=(0,s.useContext)(l),d=(0,s.useContext)(r.Y),p=(0,s.useContext)(x.t),m=(0,s.useContext)(a.Q).reducedMotion,f=(0,s.useRef)(null);i=i||d.renderer,!f.current&&i&&(f.current=i(t,{visualState:e,parent:c,props:n,presenceContext:p,blockInitialAnimation:!!p&&!1===p.initial,reducedMotionConfig:m}));const v=f.current,y=(0,s.useContext)(w.N);!v||v.projection||!o||"html"!==v.type&&"svg"!==v.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:A(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&(0,g.X)(a),visualElement:t,animationType:"string"===typeof o?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(f.current,n,o,y);const b=(0,s.useRef)(!1);(0,s.useInsertionEffect)((()=>{v&&b.current&&v.update(n,p)}));const V=n[S.n],C=(0,s.useRef)(Boolean(V)&&!(null===(u=window.MotionHandoffIsComplete)||void 0===u?void 0:u.call(window,V))&&(null===(h=window.MotionHasOptimisedAnimation)||void 0===h?void 0:h.call(window,V)));return(0,P.E)((()=>{v&&(b.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),T.k.render(v.render),C.current&&v.animationState&&v.animationState.animateChanges())})),(0,s.useEffect)((()=>{v&&(!C.current&&v.animationState&&v.animationState.animateChanges(),C.current&&(queueMicrotask((()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,V)}
1)),C.current=!1))})),v}function A(t){if(t)return!1!==t.options.allowProjection?t.projection:A(t.parent)}function V(t){let{preloadedFeatures:e,createVisualElement:n,useRender:o,useVisualState:u,Component:h}=t;var d,g;function x(t,e){let d;const f={...(0,s.useContext)(a.Q),...t,layoutId:C(t)},{isStatic:v}=f,g=c(t),x=u(t,v);if(!v&&p.B){!function(){(0,s.useContext)(r.Y).strict;0}();const t=function(t){const{drag:e,layout:n}=m.B;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null===e||void 0===e?void 0:e.isEnabled(t))||(null===n||void 0===n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(f);d=t.MeasureLayout,g.visualElement=b(h,x,f,n,t.ProjectionNode)}return(0,i.jsxs)(l.Provider,{value:g,children:[d&&g.visualElement?(0,i.jsx)(d,{visualElement:g.visualElement,...f}):null,o(h,t,y(x,g.visualElement,e),x,v,g.visualElement)]})}e&&(0,f.Y)(e),x.displayName=`motion.${"string"===typeof h?h:`create(${null!==(g=null!==(d=h.displayName)&&void 0!==d?d:h.name)&&void 0!==g?g:""})`}`;const P=(0,s.forwardRef)(x);return P[v]=h,P}function C(t){let{layoutId:e}=t;const n=(0,s.useContext)(o.L).id;return n&&void 0!==e?n+"-"+e:e}var D=n(2420),E=n(2769),k=n(2273);const M=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function R(t,e,n){for(const i in e)(0,E.S)(e[i])||(0,D.z)(i,n)||(t[i]=e[i])}function j(t,e){const n={};return R(n,t.style||{},t),Object.assign(n,function(t,e){let{transformTemplate:n}=t;return(0,s.useMemo)((()=>{const t=M();return(0,k.O)(t,e,n),Object.assign({},t.vars,t.style)}),[e])}(t,e)),n}function B(t,e){const n={},i=j(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const L=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function F(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||L.has(t)}let U=t=>!F(t);try{(O=require("@emotion/is-prop-valid").default)&&(U=t=>t.startsWith("on")?!F(t):O(t))}catch(rt){}var O;var I=n(2116),$=n(9524);const W=()=>({...M(),attrs:{}});var N=n(9420);function X(t,e,n,i){const o=(0,s.useMemo)((()=>{const n=W();return(0,$.B)(n,e,(0,N.n)(i),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};R(e,t.style,t),o.style={...e,...o.style}}return o}function G(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,n,i,o,r)=>{let{latestValues:a}=o;const l=((0,I.Q)(e)?X:B)(n,a,r,e),u=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"===typeof t.values||(U(s)||!0===n&&F(s)||!e&&!F(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(n,"string"===typeof e,t),h=e!==s.Fragment?{...u,...l,ref:i}:{},{children:c}=n,d=(0,s.useMemo)((()=>(0,E.S)(c)?c.get():c),[c]);return(0,s.createElement)(e,{...h,children:d})}}var q=n(9615),K=n(8240),H=n(4930),Y=n(6061);const z=t=>(e,n)=>{const i=(0,s.useContext)(l),o=(0,s.useContext)(x.t),r=()=>function(t,e,n,i){let{scrapeMotionValuesFromProps:s,createRenderState:o,onUpdate:r}=t;const a={latestValues:Q(e,n,i,s),renderState:o()};return r&&(a.onMount=t=>r({props:e,current:t,...a}),a.onUpdate=t=>r(t)),a}(t,e,i,o);return n?r():(0,H.M)(r)};function Q(t,e,n,i){const s={},o=i(t,{});for(const u in o)s[u]=(0,Y.u)(o[u]);let{initial:r,animate:a}=t;const l=(0,u.e)(t),h=(0,u.O)(t);e&&h&&!l&&!1!==t.inherit&&(void 0===r&&(r=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial;c=c||!1===r;const d=c?a:r;if(d&&"boolean"!==typeof d&&!(0,q.N)(d)){const e=Array.isArray(d)?d:[d];for(let n=0;n<e.length;n++){const i=(0,K.a)(t,e[n]);if(i){const{transitionEnd:t,transition:e,...n}=i;for(const i in n){let t=n[i];if(Array.isArray(t)){t=t[c?t.length-1:0]}null!==t&&(s[i]=t)}for(const i in t)s[i]=t[i]}}}return s}const _={useVisualState:z({scrapeMotionValuesFromProps:n(7457).x,createRenderState:M})};var Z=n(8721),J=n(6124),tt=n(7442),et=n(5370),nt=n(1248);const it=["x","y","width","height","cx","cy","r"],st={useVisualState:z({scrapeMotionValuesFromProps:nt.x,createRenderState:W,onUpdate:t=>{let{props:e,prevProps:n,current:i,renderState:s,latestValues:o}=t;if(!i)return;let r=!!e.drag;if(!r)for(const l in o)if(J.f.has(l)){r=!0;break}if(!r)return;let a=!n;if(n)for(let l=0;l<it.length;l++){const t=it[l];e[t]!==n[t]&&(a=!0)}a&&Z.Gt.read((()=>{(0,tt.H)(i,s),Z.Gt.render((()=>{(0,$.B)(s,o,(0,N.n)(i.tagName),e.transformTemplate),(0,et.d)(i,s)}))}))}})};function ot(t,e){return function(n){let{forwardMotionProps:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1};return V({...(0,I.Q)(n)?st:_,preloadedFeatures:t,useRender:G(i),createVisualElement:e,Component:n})}}},6032:(t,e,n)=>{n.d(e,{Q:()=>i});const i={value:null,addProjectionMetrics:null}},6061:(t,e,n)=>{n.d(e,{u:()=>
1o});var i=n(6992),s=n(2769);function o(t){const e=(0,s.S)(t)?t.get():t;return(0,i.B)(e)?e.toValue():e}},6124:(t,e,n)=>{n.d(e,{U:()=>i,f:()=>s});const i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(i)},6129:(t,e,n)=>{n.d(e,{I:()=>a});var i=n(5211);const s=["read","resolveKeyframes","update","preRender","render","postRender"];var o=n(6032);const r=40;function a(t,e){let n=!1,a=!0;const l={delta:0,timestamp:0,isProcessing:!1},u=()=>n=!0,h=s.reduce(((t,n)=>(t[n]=function(t,e){let n=new Set,i=new Set,s=!1,r=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},u=0;function h(e){a.has(e)&&(c.schedule(e),t()),u++,e(l)}const c={schedule:function(t){const e=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&s?n:i;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&a.add(t),e.has(t)||e.add(t),t},cancel:t=>{i.delete(t),a.delete(t)},process:t=>{l=t,s?r=!0:(s=!0,[n,i]=[i,n],n.forEac
1h(h),e&&o.Q.value&&o.Q.value.frameloop[e].push(u),u=0,n.clear(),s=!1,r&&(r=!1,c.process(t)))}};return c}(u,e?n:void 0),t)),{}),{read:c,resolveKeyframes:d,update:p,preRender:m,render:f,postRender:v}=h,g=()=>{const s=i.W.useManualTiming?l.timestamp:performance.now();n=!1,i.W.useManualTiming||(l.delta=a?1e3/60:Math.max(Math.min(s-l.timestamp,r),1)),l.timestamp=s,l.isProcessing=!0,c.process(l),d.process(l),p.process(l),m.process(l),f.process(l),v.process(l),l.isProcessing=!1,n&&e&&(a=!1,t(g))},y=s.reduce(((e,i)=>{const s=h[i];return e[i]=function(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,a=!0,l.isProcessing||t(g)),s.schedule(e,i,o)},e}),{});return{schedule:y,cancel:t=>{for(let e=0;e<s.length;e++)h[s[e]].cancel(t)},state:l,steps:h}}},6268:(t,e,n)=>{n.d(e,{g:()=>s});var i=n(2769);function s(t,e){const n=t.getValue("willChange");if(s=n,Boolean((0,i.S)(s)&&s.add))return n.add(e);var s}},6358:(t,e,n)=>{n.d(e,{L:()=>r,m:()=>o});var i=n(4391),s=n(7664);function o(t,e){return(0,i.FY)((0,i.bS)(t.getBoundingClientRect(),e))}function r(t,e,n){const i=o(t,n),{scroll:r}=e;return r&&((0,s.Ql)(i.x,r.offset.x),(0,s.Ql)(i.y,r.offset.y)),i}},6485:(t,e,n)=>{n.d(e,{P:()=>s});var i=n(971);function s(t){return t.props[i.n]}},6822:(t,e,n)=>{n.d(e,{q:()=>i});const i={layout:0,mainThread:0,waapi:0}},6841:(t,e,n)=>{n.d(e,{Y:()=>i});const i=(0,n(5043).createContext)({strict:!1})},6992:(t,e,n)=>{n.d(e,{B:()=>s,K:()=>o});var i=n(1485);const s=t=>Boolean(t&&"object"===typeof t&&t.mix&&t.toValue),o=t=>(0,i.p)(t)?t[t.length-1]||0:t},7343:(t,e,n)=>{n.d(e,{j:()=>s,p:()=>r});const i=t=>e=>"string"===typeof e&&e.startsWith(t),s=i("--"),o=i("var(--"),r=t=>!!o(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},7380:(t,e,n)=>{function i(t){return t&&"object"===typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}n.d(e,{X:()=>i})},7442:(t,e,n)=>{function i(t,e){try{e.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(n){e.dimensions={x:0,y:0,width:0,height:0}}}n.d(e,{H:()=>i})},7457:(t,e,n)=>{n.d(e,{x:()=>o});var i=n(2420),s=n(2769);function o(t,e,n){var o;const{style:r}=t,a={};for(const l in r)((0,s.S)(r[l])||e.style&&(0,s.S)(e.style[l])||(0,i.z)(l,t)||void 0!==(null===(o=null===n||void 0===n?void 0:n.getValue(l))||void 0===o?void 0:o.liveStyle))&&(a[l]=r[l]);return a}},7517:(t,e,n)=>{n.d(e,{$:()=>s});var i=n(6124);const s=new Set(["width","height","top","left","right","bottom",...i.U])},7639:(t,e,n)=>{n.d(e,{p:()=>l});var i=n(3945),s=n(4568);const o=new Set(["brightness","contrast","saturate","opacity"]);function r(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(s.S)||[];if(!i)return t;const r=n.replace(i,"");let a=o.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+r+")"}const a=/\b([a-z-]*)\(.*?\)/gu,l={...i.f,getAnimatableNone:t=>{const e=t.match(a);return e?e.map(r).join(" "):t}}},7644:(t,e,n)=>{n.d(e,{W:()=>l});var i=n(8189),s=n(2852);const o={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,backgroundPositionX:s.px,backgroundPositionY:s.px},r={rotate:s.uj,rotateX:s.uj,rotateY:s.uj,rotateZ:s.uj,scale:i.hs,scaleX:i.hs,scaleY:i.hs,scaleZ:i.hs,skew:s.uj,skewX:s.uj,skewY:s.uj,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:i.X4,originX:s.gQ,originY:s.gQ,originZ:s.px},a={...i.ai,transform:Math.round},l={...o,...r,zIndex:a,size:s.px,fillOpacity:i.X4,strokeOpacity:i.X4,numOctaves:a}},7664:(t,e,n)=>{n.d(e,{OU:()=>c,Ql:()=>d,Ww:()=>m,hq:()=>o,o4:()=>l});var i=n(8842),s=n(4077);function o(t,e,n){return n+e*(t-n)}function r(t,e,n,i,s){return void 0!==s&&(t=o(t,s,i)),o(t,n,i)+e}function a(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;t.min=r(t.min,e,n,i,s),t.max=r(t.max,e,n,i,s)}function l(t,e){let{x:n,y:i}=e;a(t.x,n.translate,n.scale,n.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}const u=.999999999999,h=1.0000000000001;function c(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=n.length;if(!o)return;let r,a;e.x=e.y=1;for(let u=0;u<o;u++){r=n[u],a=r.projectionDelta;const{visualElement:o}=r.options;o&&o.props.style&&"contents"===o.props.style.display||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&m(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,l(t,a)),i&&(0,s.HD)(r.latestValues)&&m(t,r.latestValues))}e.x<h&&e.x>u&&(e.x=1),e.y<h&&e.y>u&&(e.y=1)}function d(t,e){t.min=t.min+e,t.max=t.max+e}function p(t,e,n,s){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5;a(t,e,n,(0,i.k)(t.min,t.max,o),s)}function m(t,e){p(t.x,e.x,e.scaleX,e.scale,e.originX),p(t.y,e.y,e.scaleY,e.scale,e.originY)}},7852:(t,e,n)=>{function i(t,e){return e?t*(1e3/e):0}n.d(e,{f:()=>i})},8066:(t,e,n)=>{n.d(e,{y:()=>r});var i=n(5449),s=n(2848),o=n(8636);const r={test:t=>o.B.test(t)||i.u.test(t)||s.V.test(t),parse:t=>o.B.test(t)?o.B.parse(t):s.V.test(t)?s.V.parse(t):i.u.parse(t),transform:t=>"string"===typeof t?t:t.hasOwnProperty("red")?o.B.transform(t):s.V.transform(t)}},8093:(t,e,n)=>{n.d(e,{ge:()=>s,xU:()=>i});const i=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),s=()=>({x:{min:0,max:0},y:{min:0,max:0}})},8120:(t,e,n)=>{n.d(e,{m:()=>
1o});var i=n(1199);const s=(0,n(5988).C)(),o=(0,i.I)(s)},8130:(t,e,n)=>{n.d(e,{e:()=>i});const i=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"])},8133:(t,e,n)=>{n.d(e,{a:()=>i});const i=t=>Math.round(1e5*t)/1e5},8160:(t,e,n)=>{n.d(e,{OQ:()=>u});var i=n(4175),s=n(553),o=n(7852),r=n(8721);const a={current:void 0};class l{constructor(t){var e=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.version="12.4.5",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const s=i.k.now();e.updatedAt!==s&&e.setPrevFrameValue(),e.prev=e.current,e.setCurrent(t),e.current!==e.prev&&e.events.change&&e.events.change.notify(e.current),n&&e.events.renderRequest&&e.events.renderRequest.notify(e.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){var e;this.current=t,this.updatedAt=i.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new s.v);const n=this.events[t].add(e);return"change"===t?()=>{n(),r.Gt.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=i.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,o.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(t,e){return new l(t,e)}},8189:(t,e,n)=>{n.d(e,{X4:()=>o,ai:()=>s,hs:()=>r});var i=n(4773);const s={test:t=>"number"===typeof t,parse:parseFloat,transform:t=>t},o={...s,transform:t=>(0,i.q)(0,1,t)},r={...s,default:1}},8240:(t,e,n)=>{function i(t){const e=[{},{}];return null===t||void 0===t||t.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function s(t,e,n,s){if("function"===typeof e){const[o,r]=i(s);e=e(void 0!==n?n:t.custom,o,r)}if("string"===typeof e&&(e=t.variants&&t.variants[e]),"function"===typeof e){const[o,r]=i(s);e=e(void 0!==n?n:t.custom,o,r)}return e}n.d(e,{a:()=>s})},8636:(t,e,n)=>{n.d(e,{B:()=>l});var i=n(4773),s=n(8189),o=n(8133),r=n(5975);const a={...s.ai,transform:t=>Math.round((t=>(0,i.q)(0,255,t))(t))},l={test:(0,r.$)("rgb","red"),parse:(0,r.q)("red","green","blue"),transform:t=>{let{red:e,green:n,blue:i,alpha:r=1}=t;return"rgba("+a.transform(e)+", "+a.transform(n)+", "+a.transform(i)+", "+(0,o.a)(s.X4.transform(r))+")"}}},8721:(t,e,n)=>{n.d(e,{Gt:()=>o,PP:()=>l,WG:()=>r,uv:()=>a});var i=n(4760),s=n(6129);const{schedule:o,cancel:r,state:a,steps:l}=(0,s.I)("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:i.l,!0)},8842:(t,e,n)=>{n.d(e,{k:()=>i});const i=(t,e,n)=>t+(e-t)*n},8876:(t,e,n)=>{n.d(e,{h:()=>c,q:()=>h});var i=n(4931),s=n(8721);const o=new Set;let r=!1,a=!1;function l(){if(a){const t=Array.from(o).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=(0,i.W9)(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((e=>{let[n,i]=e;var s;null===(s=t.getValue(n))||void 0===s||s.set(i)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}a=!1,r=!1,o.forEach((t=>t.complete())),o.clear()}function u(){o.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)}))}function h(){u(),l()}class c{constructor(t,e,n,i,s){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(o.add(this),r||(r=!0,s.Gt.read(u),s.Gt.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){const s=null===i||void 0===i?void 0:i.get(),o=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,o);void 0!==i&&null!==i&&(t[0]=i)}void 0===t[0]&&(t[0]=o),i&&void 0===s&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),o.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,o.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}},8917:(t,e,n)=>{n.d(e,{xQ:()=>o});var i=n(5043),s=n(9674);function o(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=(0,i.useContext)(s.t);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=e,a=(0,i.useId)();(0,i.useEffect)((()=>{t&&r(a)}),[t]);const l=(0,i.useCallback)((()=>t&&o&&o(a)),[a,o,t]);return!n&&o?[!1,l]:[!0]}},8945:(t,e,n)=>{n.d(e,{F:()=>o,e:()=>s});var i=n(9908);function s(t){return{point:{x:t.pageX,y:t.pageY}}}const o=t=>e=>(0,i.Mc)(e)&&t(e,s(e))},9333:(t,e,n)=>{n.d(e,{G:()=>i});const i=t=>e=>1-t(1-e)},9420:(t,e,n)=>{n.d(e,{n:()=>i});const i=t=>"string"===typeof t&&"svg"===t.toLowerCase()},9426:(t,e,n)=>{n.d(e,{O:()=>a,e:()=>r});var i=n(9615),s=n(9742),o=n(3223);function r(t){return(0,i.N)(t.animate)||o._.some((e=>(0,s.w)(t[e])))}function a(t){return Boolean(r(t)||t.variants)}},9524:(t,e,n)=>{n.d(e,{B:()=>l});var i=n(2273),s=n(2852);const o={offset:"stroke-dashoffset",array:"stroke-dasharray"},r={offset:"strokeDashoffset",array:"strokeDasharray"};function a(t,e,n){return"string"===typeof t?t:s.px.transform(e+n*t)}function l(t,e,n,l){let{attrX:u,attrY:h,attrScale:c,originX:d,originY:p,pathLength:m,pathSpacing:f=1,pathOffset:v=0,...g}=e;
1if((0,i.O)(t,g,l),n)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:y,style:x,dimensions:P}=t;y.transform&&(P&&(x.transform=y.transform),delete y.transform),P&&(void 0!==d||void 0!==p||x.transform)&&(x.transformOrigin=function(t,e,n){return`${a(e,t.x,t.width)} ${a(n,t.y,t.height)}`}(P,void 0!==d?d:.5,void 0!==p?p:.5)),void 0!==u&&(y.x=u),void 0!==h&&(y.y=h),void 0!==c&&(y.scale=c),void 0!==m&&function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];t.pathLength=1;const l=a?o:r;t[l.offset]=s.px.transform(-i);const u=s.px.transform(e),h=s.px.transform(n);t[l.array]=`${u} ${h}`}(y,m,f,v,!1)}},9601:(t,e,n)=>{n.d(e,{B:()=>s});const i={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},s={};for(const o in i)s[o]={isEnabled:t=>i[o].some((e=>!!t[e]))}},9611:(t,e,n)=>{n.d(e,{$:()=>i});const i=t=>/^0[^.\s]+$/u.test(t)},9615:(t,e,n)=>{function i(t){return null!==t&&"object"===typeof t&&"function"===typeof t.start}n.d(e,{N:()=>i})},9674:(t,e,n)=>{n.d(e,{t:()=>i});const i=(0,n(5043).createContext)(null)},9742:(t,e,n)=>{function i(t){return"string"===typeof t||Array.isArray(t)}n.d(e,{w:()=>i})},9796:(t,e,n)=>{n.d(e,{w:()=>i});const i=t=>e=>e.test(t)},9914:(t,e,n)=>{n.d(e,{J:()=>H});var i=n(5043),s=n(6358),o=n(4175),r=n(9601),a=n(8093),l=n(3665),u=n(9611),h=n(4735);const c={current:null},d={current:!1};var p=n(553),m=n(8160),f=n(3945),v=n(2769),g=n(4459),y=n(8066),x=n(2201),P=n(9796);const S=[...x.T,y.y,f.f];var T=n(6124);const w=new WeakMap;var b=n(9426),A=n(8876);var V=n(8240),C=n(8721);const D=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class E{scrapeMotionValuesFromProps(t,e,n){return{}}constructor(t){let{parent:e,props:n,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:r,visualState:a}=t,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=A.h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=o.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,C.Gt.render(this.render,!1,!0))};const{latestValues:u,renderState:h,onUpdate:c}=a;this.onUpdate=c,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=h,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=l,this.blockInitialAnimation=Boolean(r),this.isControllingVariants=(0,b.e)(n),this.isVariantNode=(0,b.O)(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const o in p){const t=p[o];void 0!==u[o]&&(0,v.S)(t)&&t.set(u[o],!1)}}mount(t){this.current=t,w.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),d.current||function(){if(d.current=!0,h.B)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>c.current=t.matches;t.addListener(e),e()}else c.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||c.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),(0,C.WG)(this.notifyUpdate),(0,C.WG)(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=T.f.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&C.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{i(),s(),o&&o(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in r.B){const e=r.B[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,a.ge)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<D.length;n++){const e=D[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const i=t["on"+e];i&&(this.propEventSubscriptions[e]=this.on(e,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const s=e[i],o=n[i];if((0,v.S)(s))t.addValue(i,s);else if((0,v.S)(o))t.addValue(i,(0,m.OQ)(s,{owner:t}));else if(o!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,(0,m.OQ)(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,m.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return void 0!==i&&null!==i&&("string"===typeof i&&((0,l.i)(i)||(0,u.$)(i))?i=parseFloat(i):(s=i,!S.find((0,P.w)(s))&&f.f.test(e)&&(i=(0,g.J)(t,e))),this.setBaseTarget(t,(0,v.S)(i)?i.get():i)),(0,v.S)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"===typeof n||"object"===typeof n){const s=(0,V.a)(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,v.S)(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new p.v),this.events[t].add(e)}notify(t){if(this.events[t]){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.events[t].notify(...n)}}}var k=n(2248);class M extends E{constructor(){super(...arguments),this.KeyframeResolver=k.K}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,e){let{vars:n,style:i}=e;delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;(0,v.S)(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}var R=n(7343),j=n(5030),B=n(2273),L=n(2783),F=n(7457);class U extends M{constructor(){super(...arguments),this.type="html",this.renderInstance=L.e}readValueFromInstance(t,e){if(T.f.has(e)){const t=(0,j.D)(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),s=((0,R.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"===typeof s?s.trim():s}var n}measureInstanceViewportBox(t,e){let{transformPagePoint:n}=e;return(0,s.m)(t,n)}build(t,e,n){(0,B.O)(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return(0,F.x)(t,e,n)}}var O=n(2093),I=n(9524),$=n(8130),W=n(9420),N=n(7442),X=n(5370),G=n(1248);class q extends M{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=a.ge,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&(0,N.H)(this.current,this.renderState)}}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(T.f.has(e)){const t=(0,j.D)(e);return t&&t.default||0}return e=$.e.has(e)?e:(0,O.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return(0,G.x)(t,e,n)}onBindTransform(){this.current&&!this.renderState.dimensions&&C.Gt.postRender(this.updateDimensions)}
1build(t,e,n){(0,I.B)(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){(0,X.d)(t,e,n,i)}mount(t){this.isSVGTag=(0,W.n)(t.tagName),super.mount(t)}}var K=n(2116);const H=(t,e)=>(0,K.Q)(t)?new q(e):new U(e,{allowProjection:t!==i.Fragment})}}]);
2//# sourceMappingURL=vendor-framer.8eac9d0a.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.