1var t=Object.defineProperty,e=Object.defineProperties,i=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,o=Math.pow,a=(e,i,n)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,l=(t,e)=>{for(var i in e||(e={}))s.call(e,i)&&a(t,i,e[i]);if(n)for(var i of n(e))r.call(e,i)&&a(t,i,e[i]);return t},u=(t,n)=>e(t,i(n)),h=(t,e)=>{var i={};for(var o in t)s.call(t,o)&&e.indexOf(o)<0&&(i[o]=t[o]);if(null!=t&&n)for(var o of n(t))e.indexOf(o)<0&&r.call(t,o)&&(i[o]=t[o]);return i},c=(t,e,i)=>a(t,"symbol"!=typeof e?e+"":e,i);import{r as d}from"./react-vendor-Cp73DXeI.js";var p,f,m={exports:{}},g={};var v=(f||(f=1,m.exports=function(){if(p)return g;p=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function i(e,i,n){var s=null;if(void 0!==n&&(s=""+n),void 0!==i.key&&(s=""+i.key),"key"in i)for(var r in n={},i)"key"!==r&&(n[r]=i[r]);else n=i;return i=n.ref,{$$typeof:t,type:e,key:s,ref:void 0!==i?i:null,props:n}}return g.Fragment=e,g.jsx=i,g.jsxs=i,g}()),m.exports);const y=d.createContext({});function _(t){const e=d.useRef(null);return null===e.current&&(e.current=t()),e.current}const x="undefined"!=typeof window,w=x?d.useLayoutEffect:d.useEffect,T=d.createContext(null);function S(t,e){-1===t.indexOf(e)&&t.push(e)}function b(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const E=(t,e,i)=>i>e?e:i<t?t:i;const P={},A=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function M(t){return"object"==typeof t&&null!==t}const C=t=>/^0[^.\s]+$/u.test(t);function k(t){let e;return()=>(void 0===e&&(e=t()),e)}const D=t=>t,R=(t,e)=>i=>e(t(i)),O=(...t)=>t.reduce(R),V=(t,e,i)=>{const n=e-t;return 0===n?1:(i-t)/n};class L{constructor(){this.subscriptions=[]}add(t){return S(this.subscriptions,t),()=>b(this.subscriptions,t)}notify(t,e,i){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){const n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const F=t=>1e3*t,B=t=>t/1e3;function j(t,e){return e?t*(1e3/e):0}const I=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function z(t,e,i,n){if(t===e&&i===n)return D;const s=e=>function(t,e,i,n,s){let r,o,a=0;do{o=e+(i-e)/2,r=I(o,n,s)-t,r>0?i=o:e=o}while(Math.abs(r)>1e-7&&++a<12);return o}(e,0,1,t,i);return t=>0===t||1===t?t:I(s(t),e,n)}const N=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,W=t=>e=>1-t(1-e),U=z(.33,1.53,.69,.99),Y=W(U),X=N(Y),H=t=>(t*=2)<1?.5*Y(t):.5*(2-Math.pow(2,-10*(t-1))),$=t=>1-Math.sin(Math.acos(t)),q=W($),K=N($),G=z(.42,0,1,1),Z=z(0,0,.58,1),Q=z(.42,0,.58,1),J=t=>Array.isArray(t)&&"number"!=typeof t[0];function tt(t,e){return J(t)?t[((t,e,i)=>{const n=e-t;return((i-t)%n+n)%n+t})(0,t.length,e)]:t}const et=t=>Array.isArray(t)&&"number"==typeof t[0],it={linear:D,easeIn:G,easeInOut:Q,easeOut:Z,circIn:$,circInOut:K,circOut:q,backIn:Y,backInOut:X,backOut:U,anticipate:H},nt=t=>{if(et(t)){t.length;const[e,i,n,s]=t;return z(e,i,n,s)}return"string"==typeof t?it[t]:t},st=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function rt(t,e){let i=!1,n=!0;const s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=st.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,s=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(l.schedule(e),t()),e(o)}const l={schedule:(t,s=!1,o=!1)=>{const a=o&&n?e:i;return s&&r.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{o=t,n?s=!0:(n=!0,[e,i]=[i,e],e.forEach(a),e.clear(),n=!1,s&&(s=!1,l.process(t)))}};return l}(r),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:f}=o,m=()=>{const r=P.useManualTiming?s.timestamp:performance.now();i=!1,P.useManualTiming||(s.delta=n?1e3/60:Math.max(Math.min(r-s.timestamp,40),1)),s.timestamp=r,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),h.process(s),c.process(s),d.process(s),p.process(s),f.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(m))};return{schedule:st.reduce((e,r)=>{const a=o[r];return e[r]=(e,r=!1,o=!1)=>(i||(i=!0,n=!0,s.isProcessing||t(m)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<st.length;e++)o[st[e]].cancel(t)},state:s,steps:o}}const{schedule:ot,cancel:at,state:lt,steps:ut}=rt("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:D,!0);let ht;function ct(){ht=void 0}const dt={now:()=>(void 0===ht&&dt.set(lt.isProcessing||P.useManualTiming?lt.timestamp:performance.now()),ht),set:t=>{ht=t,queueMicrotask(ct)}},pt=t=>e=>"string"==typeof e&&e.startsWith(t),ft=pt("--"),mt=pt("var(--"),gt=t=>!!mt(t)&&vt.test(t.split("/*")[0].trim()),vt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function yt(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}const _t={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},xt=u(l({},_t),{transform:t=>E(0,1,t)}),wt=u(l({},_t),{default:1}),Tt=t=>Math.round(1e5*t)/1e5,St=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const bt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Et=(t,e)=>i=>Boolean("string"==typeof i&&bt.test(i)&&i.startsWith(t)||e&&!function(t){return null==t}(i)&&Object.prototype.hasOwnProperty.call(i,e)),Pt=(t,e,i)=>n=>{if("string"!=typeof n)return n;const[s,r,o,a]=n.match(St);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},At=u(l({},_t),{transform:t=>Math.round((t=>E(0,255,t))(t))}),Mt={test:Et("rgb","red"),parse:Pt("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+At.transform(t)+", "+At.transform(e)+", "+At.transform(i)+", "+Tt(xt.transform(n))+")"};const Ct={test:Et("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alph
1a:s?parseInt(s,16)/255:1}},transform:Mt.transform},kt=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Dt=kt("deg"),Rt=kt("%"),Ot=kt("px"),Vt=kt("vh"),Lt=kt("vw"),Ft=(()=>u(l({},Rt),{parse:t=>Rt.parse(t)/100,transform:t=>Rt.transform(100*t)}))(),Bt={test:Et("hsl","hue"),parse:Pt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+Rt.transform(Tt(e))+", "+Rt.transform(Tt(i))+", "+Tt(xt.transform(n))+")"},jt={test:t=>Mt.test(t)||Ct.test(t)||Bt.test(t),parse:t=>Mt.test(t)?Mt.parse(t):Bt.test(t)?Bt.parse(t):Ct.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?Mt.transform(t):Bt.transform(t),getAnimatableNone:t=>{const e=jt.parse(t);return e.alpha=0,jt.transform(e)}},It=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const zt="number",Nt="color",Wt=/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 Ut(t){const e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[];let r=0;const o=e.replace(Wt,t=>(jt.test(t)?(n.color.push(r),s.push(Nt),i.push(jt.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(zt),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function Yt(t){return Ut(t).values}function Xt(t){const{split:e,types:i}=Ut(t),n=e.length;return t=>{let s="";for(let r=0;r<n;r++)if(s+=e[r],void 0!==t[r]){const e=i[r];s+=e===zt?Tt(t[r]):e===Nt?jt.transform(t[r]):t[r]}return s}}const Ht=t=>"number"==typeof t?0:jt.test(t)?jt.getAnimatableNone(t):t;const $t={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(St))?void 0:e.length)||0)+((null==(i=t.match(It))?void 0:i.length)||0)>0},parse:Yt,createTransformer:Xt,getAnimatableNone:function(t){const e=Yt(t);return Xt(t)(e.map(Ht))}};function qt(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function Kt(t,e){return i=>i>0?e:t}const Gt=(t,e,i)=>t+(e-t)*i,Zt=(t,e,i)=>{const n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},Qt=[Ct,Mt,Bt];function Jt(t){const e=(i=t,Qt.find(t=>t.test(i)));var i;if(!Boolean(e))return!1;let n=e.parse(t);return e===Bt&&(n=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,o=0;if(e/=100){const n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;s=qt(a,n,t+1/3),r=qt(a,n,t),o=qt(a,n,t-1/3)}else s=r=o=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:n}}(n)),n}const te=(t,e)=>{const i=Jt(t),n=Jt(e);if(!i||!n)return Kt(t,e);const s=l({},i);return t=>(s.red=Zt(i.red,n.red,t),s.green=Zt(i.green,n.green,t),s.blue=Zt(i.blue,n.blue,t),s.alpha=Gt(i.alpha,n.alpha,t),Mt.transform(s))},ee=new Set(["none","hidden"]);function ie(t,e){return i=>Gt(t,e,i)}function ne(t){return"number"==typeof t?ie:"string"==typeof t?gt(t)?Kt:jt.test(t)?te:oe:Array.isArray(t)?se:"object"==typeof t?jt.test(t)?te:re:Kt}function se(t,e){const i=[...t],n=i.length,s=t.map((t,i)=>ne(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function re(t,e){const i=l(l({},t),e),n={};for(const s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=ne(t[s])(t[s],e[s]));return t=>{for(const e in n)i[e]=n[e](t);return i}}const oe=(t,e)=>{const i=$t.createTransformer(e),n=Ut(t),s=Ut(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?ee.has(t)&&!s.values.length||ee.has(e)&&!n.values.length?function(t,e){return ee.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):O(se(function(t,e){var i;const n=[],s={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],a=t.indexes[o][s[o]],l=null!=(i=t.values[a])?i:0;n[r]=l,s[o]++}return n}(n,s),s.values),i):Kt(t,e)};function ae(t,e,i){if("number"==typeof t&&"number"==typeof e&&"number"==typeof i)return Gt(t,e,i);return ne(t)(t,e)}const le=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>ot.update(e,t),stop:()=>at(e),now:()=>lt.isProcessing?lt.timestamp:dt.now()}},ue=(t,e,i=10)=>{let n="";const s=Math.max(Math.round(e/i),2);for(let r=0;r<s;r++)n+=Math.round(1e4*t(r/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},he=2e4;function ce(t){let e=0;let i=t.next(e);for(;!i.done&&e<he;)e+=50,i=t.next(e);return e>=he?1/0:e}function de(t,e=100,i){const n=i(u(l({},t),{keyframes:[0,e]})),s=Math.min(ce(n),he);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:B(s)}}function pe(t,e,i){const n=Math.max(e-5,0);return j(i-t(n),e-n)}const fe=100,me=10,ge=1,ve=0,ye=800,_e=.3,xe=.3,we={granular:.01,default:2},Te={granular:.005,default:.5},Se=.01,be=10,Ee=.05,Pe=1,Ae=.001;function Me({duration:t=ye,bounce:e=_e,velocity:i=ve,mass:n=ge}){let s,r,o=1-e;o=E(Ee,Pe,o),t=E(Se,be,B(t)),o<1?(s=e=>{const n=e*o,s=n*t,r=n-i,a=ke(e,o),l=Math.exp(-s);return Ae-r/a*l},r=e=>{const n=e*o*t,r=n*i+i,a=Math.pow(o,2)*Math.pow(e,2)*t,l=Math.exp(-n),u=ke(Math.pow(e,2),o);return(-s(e)+Ae>0?-1:1)*((r-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-i)*t+1)-.001,r=e=>Math.exp(-e*t)*(t*t*(i-e)));
1const a=function(t,e,i){let n=i;for(let s=1;s<Ce;s++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=F(t),isNaN(a))return{stiffness:fe,damping:me,duration:t};{const e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}const Ce=12;function ke(t,e){return t*Math.sqrt(1-e*e)}const De=["duration","bounce"],Re=["stiffness","damping","mass"];function Oe(t,e){return e.some(e=>void 0!==t[e])}function Ve(t=xe,e=_e){const i="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:s}=i;const r=i.keyframes[0],o=i.keyframes[i.keyframes.length-1],a={done:!1,value:r},{stiffness:h,damping:c,mass:d,duration:p,velocity:f,isResolvedFromDuration:m}=function(t){let e=l({velocity:ve,stiffness:fe,damping:me,mass:ge,isResolvedFromDuration:!1},t);if(!Oe(t,Re)&&Oe(t,De))if(t.visualDuration){const i=t.visualDuration,n=2*Math.PI/(1.2*i),s=n*n,r=2*E(.05,1,1-(t.bounce||0))*Math.sqrt(s);e=u(l({},e),{mass:ge,stiffness:s,damping:r})}else{const i=Me(t);e=u(l(l({},e),i),{mass:ge}),e.isResolvedFromDuration=!0}return e}(u(l({},i),{velocity:-B(i.velocity||0)})),g=f||0,v=c/(2*Math.sqrt(h*d)),y=o-r,_=B(Math.sqrt(h/d)),x=Math.abs(y)<5;let w;if(n||(n=x?we.granular:we.default),s||(s=x?Te.granular:Te.default),v<1){const t=ke(_,v);w=e=>{const i=Math.exp(-v*_*e);return o-i*((g+v*_*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}}else if(1===v)w=t=>o-Math.exp(-_*t)*(y+(g+_*y)*t);else{const t=_*Math.sqrt(v*v-1);w=e=>{const i=Math.exp(-v*_*e),n=Math.min(t*e,300);return o-i*((g+v*_*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}const T={calculatedDuration:m&&p||null,next:t=>{const e=w(t);if(m)a.done=t>=p;else{let i=0===t?g:0;v<1&&(i=0===t?F(g):pe(w,t,e));const r=Math.abs(i)<=n,l=Math.abs(o-e)<=s;a.done=r&&l}return a.value=a.done?o:e,a},toString:()=>{const t=Math.min(ce(T),he),e=ue(e=>T.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return T}function Le({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){const c=t[0],d={done:!1,value:c},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let f=i*e;const m=c+f,g=void 0===o?m:o(m);g!==m&&(f=g-c);const v=t=>-f*Math.exp(-t/n),y=t=>g+v(t),_=t=>{const e=v(t),i=y(t);d.done=Math.abs(e)<=u,d.value=d.done?g:i};let x,w;const T=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==l&&e>l)&&(x=t,w=Ve({keyframes:[d.value,p(d.value)],velocity:pe(y,t,d.value),damping:s,stiffness:r,restDelta:u,restSpeed:h}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return w||void 0!==x||(e=!0,_(t),T(t)),void 0!==x&&t>=x?w.next(t-x):(!e&&_(t),d)}}}function Fe(t,e,{clamp:i=!0,ease:n,mixer:s}={}){const r=t.length;if(e.length,1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,i){const n=[],s=i||P.mix||ae,r=t.length-1;for(let o=0;o<r;o++){let i=s(t[o],t[o+1]);if(e){const t=Array.isArray(e)?e[o]||D:e;i=O(t,i)}n.push(i)}return n}(e,n,s),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);const s=V(t[n],t[n+1],i);return a[n](s)};return i?e=>u(E(t[0],t[r-1],e)):u}function Be(t,e){const i=t[t.length-1];for(let n=1;n<=e;n++){const s=V(0,e,n);t.push(Gt(i,1,s))}}function je(t){const e=[0];return Be(e,t.length-1),e}function Ie({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){const s=J(n)?n.map(nt):nt(n),r={done:!1,value:e[0]},o=function(t,e){return t.map(t=>t*e)}(i&&i.length===e.length?i:je(e),t),a=Fe(o,e,{ease:Array.isArray(s)?s:(l=e,u=s,l.map(()=>u||Q).splice(0,l.length-1))});var l,u;return{calculatedDuration:t,next:e=>(r.value=a(e),r.done=e>=t,r)}}Ve.applyToOptions=t=>{const e=de(t,100,Ve);return t.ease=e.ease,t.duration=F(e.duration),t.type="keyframes",t};const ze=t=>null!==t;function Ne(t,{repeat:e,repeatType:i="loop"},n,s=1){const r=t.filter(ze),o=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==n?n:r[o]}const We={decay:Le,inertia:Le,tween:Ie,keyframes:Ie,spring:Ve};function Ue(t){"string"==typeof t.type&&(t.type=We[t.type])}class Ye{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const Xe=t=>t/100;class He extends Ye{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var t,e;const{motionValue:i}=this.options;i&&i.updatedAt!==dt.now()&&this.tick(dt.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(e=(t=this.options).onStop)||e.call(t))},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;Ue(t);const{type:e=Ie,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t;let{keyframes:o}=t;const a=e||Ie;a!==Ie&&"number"!=typeof o[0]&&(this.mixKeyframes=O(Xe,ae(o[0],o[1])),o=[0,100]);const h=a(u(l({},t),{keyframes:o}));"mirror"===s&&(this.mirroredGenerator=a(u(l({},t),{keyframes:[...o].reverse(),velocity:-r}))),null===h.calculatedDuration&&(h.calculatedDuration=ce(h));const{calculatedDuration:c}=h;this.calculatedDuration=c,this.resolvedDuration=c+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=h}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);const{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:p,onUpdate:f,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let y=this.currentTime,_=i;if(h){const t=Math.min(this.currentTime,n)/o;let e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,e=Math.min(e,h+1);
1Boolean(e%2)&&("reverse"===c?(i=1-i,d&&(i-=d/o)):"mirror"===c&&(_=r)),y=E(0,1,i)*o}const x=v?{done:!1,value:u[0]}:_.next(y);s&&(x.value=s(x.value));let{done:w}=x;v||null===a||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);const T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return T&&p!==Le&&(x.value=Ne(u,this.options,m,this.speed)),f&&f(x.value),T&&this.finish(),x}then(t,e){return this.finished.then(t,e)}get duration(){return B(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+B(t)}get time(){return B(this.currentTime)}set time(t){var e;t=F(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),null==(e=this.driver)||e.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(dt.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=B(this.currentTime))}play(){var t,e;if(this.isStopped)return;const{driver:i=le,startTime:n}=this.options;this.driver||(this.driver=i(t=>this.tick(t))),null==(e=(t=this.options).onPlay)||e.call(t);const s=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=s):null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime||(this.startTime=null!=n?n:s),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(dt.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",null==(e=(t=this.options).onComplete)||e.call(t)}cancel(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(e=(t=this.options).onCancel)||e.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(e=this.driver)||e.stop(),t.observe(this)}}const $e=t=>180*t/Math.PI,qe=t=>{const e=$e(Math.atan2(t[1],t[0]));return Ge(e)},Ke={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:qe,rotateZ:qe,skewX:t=>$e(Math.atan(t[1])),skewY:t=>$e(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ge=t=>((t%=360)<0&&(t+=360),t),Ze=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Qe=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Je={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ze,scaleY:Qe,scale:t=>(Ze(t)+Qe(t))/2,rotateX:t=>Ge($e(Math.atan2(t[6],t[5]))),rotateY:t=>Ge($e(Math.atan2(-t[2],t[0]))),rotateZ:qe,rotate:qe,skewX:t=>$e(Math.atan(t[4])),skewY:t=>$e(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ti(t){return t.includes("scale")?1:0}function ei(t,e){if(!t||"none"===t)return ti(e);const i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,s;if(i)n=Je,s=i;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Ke,s=e}if(!s)return ti(e);const r=n[e],o=s[1].split(",").map(ii);return"function"==typeof r?r(o):o[r]}function ii(t){return parseFloat(t.trim())}const ni=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],si=(()=>new Set(ni))(),ri=t=>t===_t||t===Ot,oi=new Set(["x","y","z"]),ai=ni.filter(t=>!oi.has(t));const li={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ei(e,"x"),y:(t,{transform:e})=>ei(e,"y")};li.translateX=li.x,li.translateY=li.y;const ui=new Set;let hi=!1,ci=!1,di=!1;function pi(){if(ci){const t=Array.from(ui).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{const e=function(t){const e=[];return ai.forEach(i=>
1{const n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=i.get(t);e&&e.forEach(([e,i])=>{var n;null==(n=t.getValue(e))||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}ci=!1,hi=!1,ui.forEach(t=>t.complete(di)),ui.clear()}function fi(){ui.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ci=!0)})}class mi{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(ui.add(this),hi||(hi=!0,ot.read(fi),ot.resolveKeyframes(pi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){const s=null==n?void 0:n.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){const n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}!function(t){for(let e=1;e<t.length;e++)null!=t[e]||(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ui.delete(this)}cancel(){"scheduled"===this.state&&(ui.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const gi=k(()=>void 0!==window.ScrollTimeline),vi={};function yi(t,e){const i=k(t);return()=>{var t;return null!=(t=vi[e])?t:i()}}const _i=yi(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),xi=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,wi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xi([0,.65,.55,1]),circOut:xi([.55,0,1,.45]),backIn:xi([.31,.01,.66,-.59]),backOut:xi([.33,1.53,.69,.99])};function Ti(t,e){return t?"function"==typeof t?_i()?ue(t,e):"ease-out":et(t)?xi(t):Array.isArray(t)?t.map(t=>Ti(t,e)||wi.easeOut):wi[t]:void 0}function Si(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const h={[e]:i};l&&(h.offset=l);const c=Ti(a,s);Array.isArray(c)&&(h.easing=c);const d={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);return t.animate(h,d)}function bi(t){return"function"==typeof t&&"applyToOptions"in t}class Ei extends Ye{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=Boolean(s),this.allowFlatten=r,this.options=t,t.type;const l=function(t){var e=t,{type:i}=e,n=h(e,["type"]);return bi(i)&&_i()?i.applyToOptions(n):(null!=n.duration||(n.duration=300),null!=n.ease||(n.ease="easeOut"),n)}(t);this.animation=Si(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const t=Ne(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){(t=>t.startsWith("--"))(e)?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}null==a||a(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,e;null==(e=(t=this.animation).finish)||e.call(t)}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,e;this.isPseudoElement||null==(e=(t=this.animation).commitStyles)||e.call(t)}get duration(){var t,e;const i=(null==(e=null==(t=this.animation.effect)?void 0:t.getComputedTiming)?void 0:e.call(t).duration)||0;return B(Number(i))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+B(t)}get time(){return B(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=F(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){var t;return null!=(t=this.manualStartTime)?t:Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){var i;return this.allowFlatten&&(null==(i=this.animation.effect)||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&gi()?(this.animation.timeline=t,D):e(this)}}const Pi={anticipate:H,backInOut:X,circInOut:K};function Ai(t){"string"==typeof t.ease&&t.ease in Pi&&(t.ease=Pi[t.ease])}class Mi extends Ei{constructor(t){Ai(t),Ue(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const e=this.options,{motionValue:i,onUpdate:n,onComplete:s,element:r}=e,o=h(e,["motionValue","onUpdate","onComplete","element"]);if(!i)return;if(void 0!==t)return void i.set(t);const a=new He(u(l({},o),{autoplay:!1})),c=Math.max(10,dt.now()-this.startTime),d=E(0,10,c-10);i.setWithVelocity(a.sample(Math.max(0,c-d)).value,a.sample(c).value,d),a.stop()}}const Ci=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!$t.test(t)&&"0"!==t||t.startsWith("url(")));function ki(t){t.duration=0,t.type="keyframes"}const Di=new Set(["opacity","clipPath","filter","transform"]),Ri=k(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class Oi extends Ye{constructor(t){var e,i=t,{autoplay:n=!0,delay:s=0,type:r="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:u="loop",keyframes:c,name:d,motionValue:p,element:f}=i,m=h(i,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);super(),this.stop=()=>{var t,e;this._animation&&(this._animation.stop(),null==(t=this.stopTimeline)||t.call(this)),null==(e=this.keyframeResolver)||e.cancel()},this.createdAt=dt.now();const g=l({autoplay:n,delay:s,type:r,repeat:o,repeatDelay:a,repeatType:u,name:d,motionValue:p,element:f},m),v=(null==f?void 0:f.KeyframeResolver)||mi;this.keyframeResolver=new v(c,(t,e,i)=>this.onKeyframesResolved(t,e,g,!i),d,p,f),null==(e=this.keyframeResolver)||e.scheduleResolve()}onKeyframesResolved(t,e,i,n){var s,r;this.keyframeResolver=void 0;const{name:o,type:a,velocity:h,delay:c,isHandoff:d,onUpdate:p}=i;
1this.resolvedAt=dt.now(),function(t,e,i,n){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const r=t[t.length-1],o=Ci(s,e),a=Ci(r,e);return!(!o||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||bi(i))&&n)}(t,o,a,h)||(!P.instantAnimations&&c||null==p||p(Ne(t,i,e)),t[0]=t[t.length-1],ki(i),i.repeat=0);const f=n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,m=u(l({startTime:f,finalKeyframe:e},i),{keyframes:t}),g=!d&&function(t){var e;const{motionValue:i,name:n,repeatDelay:s,repeatType:r,damping:o,type:a}=t;if(!((null==(e=null==i?void 0:i.owner)?void 0:e.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=i.owner.getProps();return Ri()&&n&&Di.has(n)&&("transform"!==n||!u)&&!l&&!s&&"mirror"!==r&&0!==o&&"inertia"!==a}(m),v=null==(r=null==(s=m.motionValue)?void 0:s.owner)?void 0:r.current,y=g?new Mi(u(l({},m),{element:v})):new He(m);y.finished.then(()=>{this.notifyFinished()}).catch(D),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||(null==(t=this.keyframeResolver)||t.resume(),di=!0,fi(),pi(),di=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),null==(t=this.keyframeResolver)||t.cancel()}}class Vi{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){const e=this.animations.map(e=>e.attachTimeline(t));return()=>{e.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Li(this.animations,"duration")}get iterationDuration(){return Li(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Li(t,e){let i=0;for(let n=0;n<t.length;n++){const s=t[n][e];null!==s&&s>i&&(i=s)}return i}class Fi extends Vi{then(t,e){return this.finished.finally(t).then(()=>{})}}function Bi(t,e,i,n=0,s=1){const r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(r,o):1===s?r*n:a-r*n}const ji=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ii(t,e,i=1){const[n,s]=function(t){const e=ji.exec(t);if(!e)return[,];const[,i,n,s]=e;return[`--${null!=i?i:n}`,s]}(t);if(!n)return;const r=window.getComputedStyle(e).getPropertyValue(n);if(r){const t=r.trim();return A(t)?parseFloat(t):t}return gt(s)?Ii(s,e,i+1):s}const zi={type:"spring",stiffness:500,damping:25,restSpeed:10},Ni={type:"keyframes",duration:.8},Wi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ui=(t,{keyframes:e})=>e.length>2?Ni:si.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:zi:Wi,Yi=t=>null!==t;function Xi(t,e){var i,n;return null!=(n=null!=(i=null==t?void 0:t[e])?i:null==t?void 0:t.default)?n:t}const Hi=(t,e,i,n={},s,r)=>o=>{const a=Xi(n,t)||{},c=a.delay||n.delay||0;let{elapsed:d=0}=n;d-=F(c);const p=u(l({keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity()},a),{delay:-d,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s});(function(t){var e=t,{when:i,delay:n,delayChildren:s,staggerChildren:r,staggerDirection:o,repeat:a,repeatType:l,repeatDelay:u,from:c,elapsed:d}=e,p=h(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(p).length})(a)||Object.assign(p,Ui(t,p)),p.duration&&(p.duration=F(p.duration)),p.repeatDelay&&(p.repeatDelay=F(p.repeatDelay)),void 0!==p.from&&(p.keyframes[0]=p.from);let f=!1;if((!1===p.type||0===p.duration&&!p.repeatDelay)&&(ki(p),0===p.delay&&(f=!0)),(P.instantAnimations||P.skipAnimations)&&(f=!0,ki(p),p.delay=0),p.allowFlatten=!a.type&&!a.ease,f&&!r&&void 0!==e.get()){const t=function(t,{repeat:e,repeatType:i="loop"}){const n=t.filter(Yi);return n[e&&"loop"!==i&&e%2==1?0:n.length-1]}(p.keyframes,a);if(void 0!==t)return void ot.update(()=>{p.onUpdate(t),p.onComplete()})}return a.isSync?new He(p):new Oi(p)};function $i(t){const e=[{},{}];
1return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function qi(t,e,i,n){if("function"==typeof e){const[s,r]=$i(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[s,r]=$i(n);e=e(void 0!==i?i:t.custom,s,r)}return e}function Ki(t,e,i){const n=t.getProps();return qi(n,e,void 0!==i?i:n.custom,t)}const Gi=new Set(["width","height","top","left","right","bottom",...ni]),Zi={current:void 0};class Qi{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{var e;const i=dt.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(null==(e=this.events.change)||e.notify(this.current),this.dependents))for(const n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=dt.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=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 L);const i=this.events[t].add(e);return"change"===t?()=>{i(),ot.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;null==(t=this.events.change)||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Zi.current&&Zi.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=dt.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return j(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(){var t,e;null==(t=this.dependents)||t.clear(),null==(e=this.events.destroy)||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ji(t,e){return new Qi(t,e)}const tn=t=>Array.isArray(t);function en(t,e,i){t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,Ji(i))}function nn(t){return tn(t)?t[t.length-1]||0:t}const sn=t=>Boolean(t&&t.getVelocity);function rn(t,e){const i=t.getValue("willChange");if(n=i,Boolean(sn(n)&&n.add))return i.add(e);if(!i&&P.WillChange){const i=new P.WillChange("auto");t.addValue("willChange",i),i.add(e)}var n}function on(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const an="data-"+on("framerAppearId");function ln(t){return t.props[an]}function un({protectedKeys:t,needsAnimating:e},i){const n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}function hn(t,e,{delay:i=0,transitionOverride:n,type:s}={}){var r;let o=e,{transition:a=t.getDefaultTransition(),transitionEnd:u}=o,c=h(o,["transition","transitionEnd"]);n&&(a=n);const d=[],p=s&&t.animationState&&t.animationState.getState()[s];for(const h in c){const e=t.getValue(h,null!=(r=t.latestValues[h])?r:null),n=c[h];if(void 0===n||p&&un(p,h))continue;const s=l({delay:i},Xi(a||{},h)),o=e.get();if(void 0!==o&&!e.isAnimating&&!Array.isArray(n)&&n===o&&!s.velocity)continue;let u=!1;if(window.MotionHandoffAnimation){const e=ln(t);if(e){const t=window.MotionHandoffAnimation(e,h,ot);null!==t&&(s.startTime=t,u=!0)}}rn(t,h),e.start(Hi(h,e,n,t.shouldReduceMotion&&Gi.has(h)?{type:!1}:s,t,u));const f=e.animation;f&&d.push(f)}return u&&Promise.all(d).then(()=>{ot.update(()=>{u&&function(t,e){let i=Ki(t,e)||{},{transitionEnd:n={},transition:s={}}=i,r=h(i,["transitionEnd","transition"]);r=l(l({},r),n);for(const o in r)en(t,o,nn(r[o]))}(t,u)})}),d}function cn(t,e,i={}){var n;const s=Ki(t,e,"exit"===i.type?null==(n=t.presenceContext)?void 0:n.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);const o=s?()=>Promise.all(hn(t,s,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{const{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;
1return function(t,e,i=0,n=0,s=0,r=1,o){const a=[];for(const h of t.variantChildren)h.notify("AnimationStart",e),a.push(cn(h,e,u(l({},o),{delay:i+("function"==typeof n?0:n)+Bi(t.variantChildren,h,n,s,r)})).then(()=>h.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:h}=r;if(h){const[t,e]="beforeChildren"===h?[o,a]:[a,o];return t().then(()=>e())}return Promise.all([o(),a(i.delay)])}const dn=t=>e=>e.test(t),pn=[_t,Ot,Rt,Dt,Lt,Vt,{test:t=>"auto"===t,parse:t=>t}],fn=t=>pn.find(dn(t));function mn(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||C(t))}const gn=new Set(["brightness","contrast","saturate","opacity"]);function vn(t){const[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[n]=i.match(St)||[];if(!n)return t;const s=i.replace(n,"");let r=gn.has(e)?1:0;return n!==i&&(r*=100),e+"("+r+s+")"}const yn=/\b([a-z-]*)\(.*?\)/gu,_n=u(l({},$t),{getAnimatableNone:t=>{const e=t.match(yn);return e?e.map(vn).join(" "):t}}),xn=u(l({},_t),{transform:Math.round}),wn=u(l({borderWidth:Ot,borderTopWidth:Ot,borderRightWidth:Ot,borderBottomWidth:Ot,borderLeftWidth:Ot,borderRadius:Ot,radius:Ot,borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomRightRadius:Ot,borderBottomLeftRadius:Ot,width:Ot,maxWidth:Ot,height:Ot,maxHeight:Ot,top:Ot,right:Ot,bottom:Ot,left:Ot,inset:Ot,insetBlock:Ot,insetBlockStart:Ot,insetBlockEnd:Ot,insetInline:Ot,insetInlineStart:Ot,insetInlineEnd:Ot,padding:Ot,paddingTop:Ot,paddingRight:Ot,paddingBottom:Ot,paddingLeft:Ot,paddingBlock:Ot,paddingBlockStart:Ot,paddingBlockEnd:Ot,paddingInline:Ot,paddingInlineStart:Ot,paddingInlineEnd:Ot,margin:Ot,marginTop:Ot,marginRight:Ot,marginBottom:Ot,marginLeft:Ot,marginBlock:Ot,marginBlockStart:Ot,marginBlockEnd:Ot,marginInline:Ot,marginInlineStart:Ot,marginInlineEnd:Ot,backgroundPositionX:Ot,backgroundPositionY:Ot},{rotate:Dt,rotateX:Dt,rotateY:Dt,rotateZ:Dt,scale:wt,scaleX:wt,scaleY:wt,scaleZ:wt,skew:Dt,skewX:Dt,skewY:Dt,distance:Ot,translateX:Ot,translateY:Ot,translateZ:Ot,x:Ot,y:Ot,z:Ot,perspective:Ot,transformPerspective:Ot,opacity:xt,originX:Ft,originY:Ft,originZ:Ot}),{zIndex:xn,fillOpacity:xt,strokeOpacity:xt,numOctaves:xn}),Tn=u(l({},wn),{color:jt,backgroundColor:jt,outlineColor:jt,fill:jt,stroke:jt,borderColor:jt,borderTopColor:jt,borderRightColor:jt,borderBottomColor:jt,borderLeftColor:jt,filter:_n,WebkitFilter:_n}),Sn=t=>Tn[t];function bn(t,e){let i=Sn(t);return i!==_n&&(i=$t),i.getAnimatableNone?i.getAnimatableNone(e):void 0}const En=new Set(["auto","none","0"]);class Pn extends mi{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let i=t[a];if("string"==typeof i&&(i=i.trim(),gt(i))){const n=Ii(i,e.current);void 0!==n&&(t[a]=n),a===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!Gi.has(i)||2!==t.length)return;const[n,s]=t,r=fn(n),o=fn(s);if(yt(n)!==yt(s)&&li[i])this.needsMeasurement=!0;else if(r!==o)if(ri(r)&&ri(o))for(let a=0;a<t.length;a++){const e=t[a];"string"==typeof e&&(t[a]=parseFloat(e))}else li[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,i=[];for(let n=0;n<t.length;n++)(null===t[n]||mn(t[n]))&&i.push(n);i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){const e=t[s];"string"==typeof e&&!En.has(e)&&Ut(e).values.length&&(n=t[s]),s++}if(n&&i)for(const r of e)t[r]=bn(i,n)}(t,i,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=li[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;const{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const s=e.getValue(i);s&&s.jump(this.measuredOrigin,!1);const r=n.length-1,o=n[r];n[r]=li[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}function An(t,e,i){var n;if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document;const s=null!=(n=null==i?void 0:i[t])?n:e.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}const Mn=(t,e)=>e&&"number"==typeof t?e.transform(t):t;function Cn(t){return M(t)&&"offsetHeight"in t}const{schedule:kn}=rt(queueMicrotask,!1),Dn={x:!1,y:!1};function Rn(){return Dn.x||Dn.y}function On(t,e){const i=An(t),n=new AbortController;return[i,u(l({passive:!0},e),{signal:n.signal}),()=>n.abort()]}function Vn(t){return!("touch"===t.pointerType||Rn())}const Ln=(t,e)=>!!e&&(t===e||Ln(t,e.parentElement)),Fn=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,Bn=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jn(t){return Bn.has(t.tagName)||!0===t.isContentEditable}const In=new WeakSet;function zn(t){return e=>{"Enter"===e.key&&t(e)}}function Nn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function Wn(t){return Fn(t)&&!Rn()}function Un(t,e,i={}){const[n,s,r]=On(t,i),o=t=>{const n=t.currentTarget;if(!Wn(t))return;In.add(n);const r=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),In.has(n)&&In.delete(n),Wn(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||Ln(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),Cn(t)&&(t.addEventListener("focus",t=>((t,e)=>{const i=t.currentTarget;if(!i)return;const n=zn(()=>{if(In.has(i))return;Nn(i,"down");const t=zn(()=>{Nn(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>Nn(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),jn(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}function Yn(t){return M(t)&&"ownerSVGElement"in t}const Xn=new WeakMap;let Hn;const $n=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:Yn(n)&&"getBBox"in n?n.getBBox()[e]:n[i],qn=$n("inline","width","offsetWidth"),Kn=$n("block","height","offsetHeight");function Gn({target:t,borderBoxSize:e}){var i;null==(i=Xn.get(t))||i.forEach(i=>{i(t,{get width(){return qn(t,e)},get height(){return Kn(t,e)}})})}function Zn(t){t.forEach(Gn)}function Qn(t,e){Hn||"undefined"!=typeof ResizeObserver&&(Hn=new ResizeObserver(Zn));const i=An(t);return i.forEach(t=>{let i=Xn.get(t);i||(i=new Set,Xn.set(t,i)),i.add(e),null==Hn||Hn.observe(t)}),()=>{i.forEach(t=>{const i=Xn.get(t);null==i||i.delete(e),(null==i?void 0:i.size)||null==Hn||Hn.unobserve(t)})}}const Jn=new Set;let ts;function es(t){return Jn.add(t),ts||(ts=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Jn.forEach(e=>e(t))},window.addEventListener("resize",ts)),()=>{Jn.delete(t),Jn.size||"function"!=typeof ts||(window.removeEventListener("resize",ts),ts=void 0)}}function is(t,e){let i;const n=()=>{const{currentTime:n}=e,s=(null===n?0:n.value)/100;i!==s&&t(s),i=s};return ot.preUpdate(n,!0),()=>at(n)}function ns(t){return Yn(t)&&"svg"===t.tagName}
1function ss(t,e,i){const n=t.get();let s,r=null,o=n;const a="string"==typeof n?n.replace(/[\d.-]/g,""):void 0,h=()=>{r&&(r.stop(),r=null)};if(t.attach((e,n)=>{o=e,s=t=>n(rs(t,a)),ot.postRender(()=>{var e;h(),r=new He(u(l({keyframes:[os(t.get()),os(o)],velocity:t.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01},i),{onUpdate:s})),null==(e=t.events.animationStart)||e.notify(),null==r||r.then(()=>{var e;null==(e=t.events.animationComplete)||e.notify()})})},h),sn(e)){const i=e.on("change",e=>t.set(rs(e,a))),n=t.on("destroy",i);return()=>{i(),n()}}return h}function rs(t,e){return e?t+e:t}function os(t){return"number"==typeof t?t:parseFloat(t)}const as=[...pn,jt,$t],ls=()=>({x:{min:0,max:0},y:{min:0,max:0}}),us={current:null},hs={current:!1},cs="undefined"!=typeof window;const ds=new WeakMap;function ps(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function fs(t){return"string"==typeof t||Array.isArray(t)}const ms=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gs=["initial",...ms];function vs(t){return ps(t.animate)||gs.some(e=>fs(t[e]))}function ys(t){return Boolean(vs(t)||t.variants)}const _s=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let xs={};function ws(t){xs=t}class Ts{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=mi,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=dt.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,ot.render(this.render,!1,!0))};const{latestValues:a,renderState:u}=r;this.latestValues=a,this.baseTarget=l({},a),this.initialValues=e.initial?l({},a):{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=vs(e),this.isVariantNode=ys(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const c=this.scrapeMotionValuesFromProps(e,{},this),{willChange:d}=c,p=h(c,["willChange"]);for(const l in p){const t=p[l];void 0!==a[l]&&sn(t)&&t.set(a[l])}}mount(t){var e;this.current=t,ds.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)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(hs.current||function(){if(hs.current=!0,cs)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>us.current=t.matches;t.addEventListener("change",e),e()}else us.current=!1}(),this.shouldReduceMotion=us.current),null==(e=this.parent)||e.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),at(this.notifyUpdate),at(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null==(t=this.parent)||t.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),null!=this.enteringChildren||(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=si.has(t);i&&this.onBindTransform&&this.onBindTransform();const n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&ot.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;"undefined"!=typeof window&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),s&&s(),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 xs){const e=xs[t];if(!e)continue;const{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){const e=this.features[t];
vendor: 4,285 bytes, line 1
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):{x:{min:0,max:0},y:{min:0,max:0}}}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 i=0;i<_s.length;i++){const e=_s[i];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const n=t["on"+e];n&&(this.propEventSubscriptions[e]=this.on(e,n))}this.prevMotionValues=function(t,e,i){for(const n in e){const s=e[n],r=i[n];if(sn(s))t.addValue(n,s);else if(sn(r))t.addValue(n,Ji(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){const e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(n);t.addValue(n,Ji(void 0!==e?e:s,{owner:t}))}}for(const n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const i=this.values.get(t);e!==i&&(i&&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 i=this.values.get(t);return void 0===i&&void 0!==e&&(i=Ji(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return null!=n&&("string"==typeof n&&(A(n)||C(n))?n=parseFloat(n):(s=n,!as.find(dn(s))&&$t.test(e)&&(n=bn(t,e))),this.setBaseTarget(t,sn(n)?n.get():n)),sn(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:i}=this.props;let n;if("string"==typeof i||"object"==typeof i){const s=qi(this.props,i,null==(e=this.presenceContext)?void 0:e.custom);s&&(n=s[t])}if(i&&void 0!==n)return n;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||sn(s)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){kn.render(this.render)}}class Ss extends Ts{constructor(){super(...arguments),this.KeyframeResolver=Pn}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){const i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;sn(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class bs{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Es({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function Ps(t){return void 0===t||1===t}function As({scale:t,scaleX:e,scaleY:i}){return!Ps(t)||!Ps(e)||!Ps(i)}function Ms(t){return As(t)||Cs(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Cs(t){return ks(t.x)||ks(t.y)}function ks(t){return t&&"0%"!==t}function Ds(t,e,i){return i+e*(t-i)}
1function Rs(t,e,i,n,s){return void 0!==s&&(t=Ds(t,s,n)),Ds(t,i,n)+e}function Os(t,e=0,i=1,n,s){t.min=Rs(t.min,e,i,n,s),t.max=Rs(t.max,e,i,n,s)}function Vs(t,{x:e,y:i}){Os(t.x,e.translate,e.scale,e.originPoint),Os(t.y,i.translate,i.scale,i.originPoint)}const Ls=.999999999999,Fs=1.0000000000001;function Bs(t,e){t.min=t.min+e,t.max=t.max+e}function js(t,e,i,n,s=.5){Os(t,e,i,Gt(t.min,t.max,s),n)}function Is(t,e){js(t.x,e.x,e.scaleX,e.scale,e.originX),js(t.y,e.y,e.scaleY,e.scale,e.originY)}function zs(t,e){return Es(function(t,e){if(!e)return t;const i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}const Ns={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ws=ni.length;function Us(t,e,i){const{style:n,vars:s,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const t=e[l];if(si.has(l))o=!0;else if(ft(l))s[l]=t;else{const e=Mn(t,wn[l]);l.startsWith("origin")?(a=!0,r[l]=e):n[l]=e}}if(e.transform||(o||i?n.transform=function(t,e,i){let n="",s=!0;for(let r=0;r<Ws;r++){const o=ni[r],a=t[o];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(o.startsWith("scale")?1:0):0===parseFloat(a),!l||i){const t=Mn(a,wn[o]);l||(s=!1,n+=`${Ns[o]||o}(${t}) `),i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:i=0}=r;n.transformOrigin=`${t} ${e} ${i}`}}function Ys(t,{style:e,vars:i},n,s){const r=t.style;let o;for(o in e)r[o]=e[o];for(o in null==s||s.applyProjectionStyles(r,n),i)r.setProperty(o,i[o])}function Xs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Hs={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Ot.test(t))return t;t=parseFloat(t)}return`${Xs(t,e.target.x)}% ${Xs(t,e.target.y)}%`}},$s={correct:(t,{treeScale:e,projectionDelta:i})=>{const n=t,s=$t.parse(t);if(s.length>5)return n;const r=$t.createTransformer(t),o="number"!=typeof s[0]?1:0,a=i.x.scale*e.x,l=i.y.scale*e.y;s[0+o]/=a,s[1+o]/=l;const u=Gt(a,l,.5);return"number"==typeof s[2+o]&&(s[2+o]/=u),"number"==typeof s[3+o]&&(s[3+o]/=u),r(s)}},qs={borderRadius:u(l({},Hs),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Hs,borderTopRightRadius:Hs,borderBottomLeftRadius:Hs,borderBottomRightRadius:Hs,boxShadow:$s};function Ks(t,{layout:e,layoutId:i}){return si.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!qs[t]||"opacity"===t)}function Gs(t,e,i){var n;const s=t.style,r=null==e?void 0:e.style,o={};if(!s)return o;for(const a in s)(sn(s[a])||r&&sn(r[a])||Ks(a,t)||void 0!==(null==(n=null==i?void 0:i.getValue(a))?void 0:n.liveStyle))&&(o[a]=s[a]);return o}class Zs extends Ss{constructor(){super(...arguments),this.type="html",this.renderInstance=Ys}readValueFromInstance(t,e){var i,n;if(si.has(e))return(null==(i=this.projection)?void 0:i.isProjecting)?ti(e):((t,e)=>{const{transform:i="none"}=getComputedStyle(t);return ei(i,e)})(t,e);{const i=(n=t,window.getComputedStyle(n)),s=(ft(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return zs(t,e)}build(t,e,i){Us(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return Gs(t,e,i)}}class Qs extends Ts{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(function(t,e){return t in e}(e,t)){const i=t[e];if("string"==typeof i||"number"==typeof i)return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}const Js={offset:"stroke-dashoffset",array:"stroke-dasharray"},tr={offset:"strokeDashoffset",array:"strokeDasharray"};const er=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ir(t,e,i,n,s){var r,o,a=e,{attrX:l,attrY:u,attrScale:c,pathLength:d,pathSpacing:p=1,pathOffset:f=0}=a;if(Us(t,h(a,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]),n),i)return void(t.style.viewBox&&(t.attrs.viewB
1ox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:m,style:g}=t;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=null!=(r=m.transformOrigin)?r:"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=null!=(o=null==s?void 0:s.transformBox)?o:"fill-box",delete m.transformBox);for(const h of er)void 0!==m[h]&&(g[h]=m[h],delete m[h]);void 0!==l&&(m.x=l),void 0!==u&&(m.y=u),void 0!==c&&(m.scale=c),void 0!==d&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;const r=s?Js:tr;t[r.offset]=Ot.transform(-n);const o=Ot.transform(e),a=Ot.transform(i);t[r.array]=`${o} ${a}`}(m,d,p,f,!1)}const nr=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"]),sr=t=>"string"==typeof t&&"svg"===t.toLowerCase();function rr(t,e,i){const n=Gs(t,e,i);for(const s in t)if(sn(t[s])||sn(e[s])){n[-1!==ni.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]}return n}class or extends Ss{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ls}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(si.has(e)){const t=Sn(e);return t&&t.default||0}return e=nr.has(e)?e:on(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return rr(t,e,i)}build(t,e,i){ir(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){!function(t,e,i,n){Ys(t,e,void 0,n);for(const s in e.attrs)t.setAttribute(nr.has(s)?s:on(s),e.attrs[s])}(t,e,0,n)}mount(t){this.isSVGTag=sr(t.tagName),super.mount(t)}}const ar=gs.length;function lr(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&lr(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let i=0;i<ar;i++){const n=gs[i],s=t.props[n];(fs(s)||!1===s)&&(e[n]=s)}return e}function ur(t,e){if(!Array.isArray(e))return!1;const i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}const hr=[...ms].reverse(),cr=ms.length;function dr(t){return e=>Promise.all(e.map(({animation:e,options:i})=>function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map(e=>cn(t,e,i));n=Promise.all(s)}else if("string"==typeof e)n=cn(t,e,i);else{const s="function"==typeof e?Ki(t,e,i.custom):e;n=Promise.all(hn(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})}(t,e,i)))}function pr(t){let e=dr(t),i=gr(),n=!0;const s=e=>(i,n)=>{var s;const r=Ki(t,n,"exit"===e?null==(s=t.presenceContext)?void 0:s.custom:void 0);if(r){const t=r,{transition:e,transitionEnd:n}=t,s=h(t,["transition","transitionEnd"]);i=l(l(l({},i),s),n)}return i};function r(r){const{props:o}=t,a=lr(t.parent)||{},u=[],h=new Set;let c={},d=1/0;for(let e=0;e<cr;e++){const p=hr[e],f=i[p],m=void 0!==o[p]?o[p]:a[p],g=fs(m),v=p===r?f.isActive:null;!1===v&&(d=e);let y=m===a[p]&&m!==o[p]&&g;if(y&&n&&t.manuallyAnimateOnMount&&(y=!1),f.protectedKeys=l({},c),!f.isActive&&null===v||!m&&!f.prevProp||ps(m)||"boolean"==typeof m)continue;const _=fr(f.prevProp,m);let x=_||p===r&&f.isActive&&!y&&g||e>d&&g,w=!1;const T=Array.isArray(m)?m:[m];let S=T.reduce(s(p),{});!1===v&&(S={});const{prevResolvedValues:b={}}=f,E=l(l({},b),S),P=e=>{x=!0,h.has(e)&&(w=!0,h.delete(e)),f.needsAnimating[e]=!0;const i=t.getValue(e);i&&(i.liveStyle=!1)};for(const t in E){const e=S[t],i=b[t];if(c.hasOwnProperty(t))continue;let n=!1;n=tn(e)&&tn(i)?!ur(e,i):e!==i,n?null!=e?P(t):h.add(t):void 0!==e&&h.has(t)?P(t):f.protectedKeys[t]=!0}f.prevProp=m,f.prevResolvedValues=S,f.isActive&&(c=l(l({},c),S)),n&&t.blockInitialAnimation&&(x=!1);const A=y&&_;x&&(!A||w)&&u.push(...T.map(e=>{const i={type:p};if("string"==typeof e&&n&&!A&&t.manuallyAnimateOnMount&&t.parent){const{parent:n}=t,s=Ki(n,e);if(n.enteringChildren&&s){const{delayChildren:e}=s.transition||{};i.delay=Bi(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){const e={};if("boolean"!=typeof o.initial){const i=Ki(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}
vendor: 4,221 bytes, line 1
1h.forEach(i=>{const n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=null!=n?n:null}),u.push({animation:e})}let p=Boolean(u.length);return!n||!1!==o.initial&&o.initial!==o.animate||t.manuallyAnimateOnMount||(p=!1),n=!1,p?e(u):Promise.resolve()}return{animateChanges:r,setActive:function(e,n){var s;if(i[e].isActive===n)return Promise.resolve();null==(s=t.variantChildren)||s.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,n)}),i[e].isActive=n;const o=r(e);for(const t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=gr()}}}function fr(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!ur(e,t)}function mr(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gr(){return{animate:mr(!0),whileInView:mr(),whileHover:mr(),whileTap:mr(),whileDrag:mr(),whileFocus:mr(),exit:mr()}}function vr(t,e){t.min=e.min,t.max=e.max}function yr(t,e){vr(t.x,e.x),vr(t.y,e.y)}function _r(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function xr(t){return t.max-t.min}function wr(t,e,i,n=.5){t.origin=n,t.originPoint=Gt(e.min,e.max,t.origin),t.scale=xr(i)/xr(e),t.translate=Gt(i.min,i.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 Tr(t,e,i,n){wr(t.x,e.x,i.x,n?n.originX:void 0),wr(t.y,e.y,i.y,n?n.originY:void 0)}function Sr(t,e,i){t.min=i.min+e.min,t.max=t.min+xr(e)}function br(t,e,i){t.min=e.min-i.min,t.max=t.min+xr(e)}function Er(t,e,i){br(t.x,e.x,i.x),br(t.y,e.y,i.y)}function Pr(t,e,i,n,s){return t=Ds(t-=e,1/i,n),void 0!==s&&(t=Ds(t,1/s,n)),t}function Ar(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){Rt.test(e)&&(e=parseFloat(e),e=Gt(o.min,o.max,e/100)-o.min);if("number"!=typeof e)return;let a=Gt(r.min,r.max,n);t===r&&(a-=e),t.min=Pr(t.min,e,i,a,s),t.max=Pr(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}const Mr=["x","scaleX","originX"],Cr=["y","scaleY","originY"];function kr(t,e,i,n){Ar(t.x,e,Mr,i?i.x:void 0,n?n.x:void 0),Ar(t.y,e,Cr,i?i.y:void 0,n?n.y:void 0)}function Dr(t){return 0===t.translate&&1===t.scale}function Rr(t){return Dr(t.x)&&Dr(t.y)}function Or(t,e){return t.min===e.min&&t.max===e.max}function Vr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Lr(t,e){return Vr(t.x,e.x)&&Vr(t.y,e.y)}function Fr(t){return xr(t.x)/xr(t.y)}function Br(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function jr(t){return[t("x"),t("y")]}const Ir=["TopLeft","TopRight","BottomLeft","BottomRight"],zr=Ir.length,Nr=t=>"string"==typeof t?parseFloat(t):t,Wr=t=>"number"==typeof t||Ot.test(t);function Ur(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Yr=Hr(0,.5,q),Xr=Hr(.5,.95,D);function Hr(t,e,i){return n=>n<t?0:n>e?1:i(V(t,e,n))}function $r(t,e,i){const n=sn(t)?t:Ji(t);return n.start(Hi("",n,e,i)),n.animation}function qr(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}const Kr=(t,e)=>t.depth-e.depth;class Gr{constructor(){this.children=[],this.isDirty=!1}add(t){S(this.children,t),this.isDirty=!0}remove(t){b(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Kr),this.isDirty=!1,this.children.forEach(t)}}function Zr(t){return sn(t)?t.get():t}class Qr{constructor(){this.members=[]}add(t){S(this.members,t),t.scheduleRender()}remove(t){if(b(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 i;for(let n=e;n>=0;n--){const t=this.members[n];if(!1!==t.isPresent){i=t;break}}return!!i&&(this.promote(i),!0)}promote(t,e){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:n}=t.options;!1===n&&i.hide()}}
1exitAnimationComplete(){this.members.forEach(t=>{const{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Jr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},to=["","X","Y","Z"];let eo=0;function io(t,e,i,n){const{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function no(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const i=ln(e);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",ot,!(e||n))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&no(n)}function so({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=(null==e?void 0:e())){this.id=eo++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ao),this.nodes.forEach(mo),this.nodes.forEach(go),this.nodes.forEach(lo)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Gr)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){const i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=Yn(e)&&!ns(e),this.instance=e;const{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0;const s=()=>this.root.updateBlockedByResize=!1;ot.read(()=>{n=window.innerWidth}),t(e,()=>{const t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){const i=dt.now(),n=({timestamp:s})=>{const r=s-i;r>=e&&(at(n),t(r-e))};return ot.setup(n,!0),()=>at(n)}(s,250),Jr.hasAnimatedSinceResize&&(Jr.hasAnimatedSinceResize=!1,this.nodes.forEach(fo)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||s.getDefaultTransition()||To,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),h=!this.targetLayout||!Lr(this.targetLayout,n),c=!e&&i;if(this.options.layoutRoot||this.resumeFrom||c||e&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e=u(l({},Xi(r,"layout")),{onPlay:o,onComplete:a});(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,c)}else e||fo(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}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,this.eventHandlers.clear(),at(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.forEac
1h(vo),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&no(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:i}=this.options;if(void 0===e&&!i)return;const n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(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(ho);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(co);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(po),this.nodes.forEach(ro),this.nodes.forEach(oo)):this.nodes.forEach(co),this.clearAllSnapshots();const t=dt.now();lt.delta=E(0,1e3/60,t-lt.timestamp),lt.timestamp=t,lt.isProcessing=!0,ut.update.process(lt),ut.preRender.process(lt),ut.render.process(lt),lt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,kn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(uo),this.sharedNodes.forEach(yo)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ot.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ot.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||xr(this.snapshot.measuredBox.x)||xr(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 i=0;i<this.path.length;i++){this.path[i].updateScroll()}const t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){const e=n(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(!s)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!Rr(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||Ms(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){const e=this.measurePageBox();let i=this.removeElementScroll(e);var n;return t&&(i=this.removeTransform(i)),Eo((n=i).x),Eo(n.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(Ao))){const{scroll:t}=this.root;t&&(Bs(i.x,t.offset.x),Bs(i.y,t.offset.y))}return i}removeElementScroll(t){var e;const i={x:{min:0,max:0},y:{min:0,max:0}};if(yr(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let n=0;n<this.path.length;n++){const e=this.path[n],{scroll:s,options:r}=e;e!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&yr(i,t),Bs(i.x,s.offset.x),Bs(i.y,s.offset.y))}return i}applyTransform(t,e=!1){const i={x:{min:0,max:0},y:{min:0,max:0}};yr(i,t);for(let n=0;n<this.path.length;n++){const t=this.path[n];!e&&t.options.layoutScroll&&t.scroll&&t!==t.root&&Is(i,{x:-t.scroll.offset.x,y:-t.scroll.offset.y}),Ms(t.latestValues)&&Is(i,t.latestValues)}return Ms(this.latestValues)&&Is(i,this.latestValues),i}removeTransform(t){const e={x:{min:0,max:0},y:{min:0,max:0}};yr(e,t);for(let i=0;i<this.path.length;i++){const t=this.path[i];if(!t.instance)continue;if(!Ms(t.latestValues))continue;As(t.latestValues)&&t.updateSnapshot();const n=ls();yr(n,t.measurePageBox()),kr(e,t.latestValues,t.snapshot?t.snapshot.layoutBox:void 0,n)}return Ms(this.latestValues)&&kr(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options=u(l(l({},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!==lt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;const i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==i;if(!(t||n&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:r}=this.options;if(!this.layout||!s&&!r)return;this.resolvedRelativeTargetAt=lt.timestamp;const o=this.getClosestProjectingParent();var a,l,u;(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,l=this.relativeTarget,u=this.relativeParent.target,Sr(a.x,l.x,u.x),Sr(a.y,l.y,u.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):yr(this.target,this.layout.layoutBox),Vs(this.target,this.targetDelta)):yr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&Boolean(o.resumingFrom)===Boolean(this.resumingFrom)&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(this.parent&&!As(this.parent.latestValues)&&!Cs(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Er(this.relativeTargetOrigin,e,i),yr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var t;const e=this.getLead(),i=Boolean(this.resumingFrom)||this!==e;let n=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===lt.timestamp&&(n=!1),n)return;const{layout:s,layoutId:r}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!r)return;yr(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,a=this.treeScale.y;
1!function(t,e,i,n=!1){const s=i.length;if(!s)return;let r,o;e.x=e.y=1;for(let a=0;a<s;a++){r=i[a],o=r.projectionDelta;const{visualElement:s}=r.options;s&&s.props.style&&"contents"===s.props.style.display||(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Is(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Vs(t,o)),n&&Ms(r.latestValues)&&Is(t,r.latestValues))}e.x<Fs&&e.x>Ls&&(e.x=1),e.y<Fs&&e.y>Ls&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,i),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(_r(this.prevProjectionDelta.x,this.projectionDelta.x),_r(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Tr(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&Br(this.projectionDelta.x,this.prevProjectionDelta.x)&&Br(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const i=this.snapshot,n=i?i.latestValues:{},s=l({},this.latestValues),r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const o={x:{min:0,max:0},y:{min:0,max:0}},a=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=Boolean(a&&!h&&!0===this.options.crossfade&&!this.path.some(wo));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const i=e/1e3;var l,u,p,f,m,g;_o(r.x,t.x,i),_o(r.y,t.y,i),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Er(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=o,g=i,xo(p.x,f.x,m.x,g),xo(p.y,f.y,m.y,g),d&&(l=this.relativeTarget,u=d,Or(l.x,u.x)&&Or(l.y,u.y))&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),yr(d,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,i,n,s,r){var o,a,l,u;s?(t.opacity=Gt(0,null!=(o=i.opacity)?o:1,Yr(n)),t.opacityExit=Gt(null!=(a=e.opacity)?a:1,0,Xr(n))):r&&(t.opacity=Gt(null!=(l=e.opacity)?l:1,null!=(u=i.opacity)?u:1,n));for(let h=0;h<zr;h++){const s=`border${Ir[h]}Radius`;let r=Ur(e,s),o=Ur(i,s);void 0===r&&void 0===o||(r||(r=0),o||(o=0),0===r||0===o||Wr(r)===Wr(o)?(t[s]=Math.max(Gt(Nr(r),Nr(o),n),0),(Rt.test(o)||Rt.test(r))&&(t[s]+="%")):t[s]=o)}(e.rotate||i.rotate)&&(t.rotate=Gt(e.rotate||0,i.rotate||0,n))}(s,n,this.latestValues,i,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){var e,i,n;this.notifyListeners("animationStart"),null==(e=this.currentAnimation)||e.stop(),null==(n=null==(i=this.resumingFrom)?void 0:i.currentAnimation)||n.stop(),this.pendingAnimation&&(at(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ot.update(()=>{Jr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ji(0)),this.currentAnimation=$r(this.motionValue,[0,1e3],u(l({},t),{velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&Po(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=xr(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;const n=xr(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}yr(e,i),Is(e,s),Tr(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new Qr);this.sharedNodes.get(t).add(e);const i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.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.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){const n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}
1resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;const n={};i.z&&io("z",t,n,this.animationValues);for(let s=0;s<to.length;s++)io(`rotate${to[s]}`,t,n,this.animationValues),io(`skew${to[s]}`,t,n,this.animationValues);t.render();for(const s in n)t.setStaticValue(s,n[s]),this.animationValues&&(this.animationValues[s]=n[s]);t.scheduleRender()}applyProjectionStyles(t,e){var i,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(t.visibility="hidden");const s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=Zr(null==e?void 0:e.pointerEvents)||"",void(t.transform=s?s(this.latestValues,""):"none");const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target)return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Zr(null==e?void 0:e.pointerEvents)||""),void(this.hasProjected&&!Ms(this.latestValues)&&(t.transform=s?s({},""):"none",this.hasProjected=!1));t.visibility="";const o=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=function(t,e,i){let n="";const s=t.x.translate/e.x,r=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((s||r||o)&&(n=`translate3d(${s}px, ${r}px, ${o}px) `),1===e.x&&1===e.y||(n+=`scale(${1/e.x}, ${1/e.y}) `),i){const{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return 1===a&&1===l||(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);s&&(a=s(o,a)),t.transform=a;const{x:l,y:u}=this.projectionDelta;t.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,r.animationValues?t.opacity=r===this?null!=(n=null!=(i=o.opacity)?i:this.latestValues.opacity)?n:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:t.opacity=r===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const h in qs){if(void 0===o[h])continue;const{correct:e,applyTo:i,isCSSVariable:n}=qs[h],s="none"===a?o[h]:e(o[h],r);if(i){const e=i.length;for(let n=0;n<e;n++)t[i[n]]=s}else n?this.options.visualElement.renderState.vars[h]=s:t[h]=s}this.options.layoutId&&(t.pointerEvents=r===this?Zr(null==e?void 0:e.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(ho),this.root.sharedNodes.clear()}}}function ro(t){t.updateLayout()}function oo(t){var e;const i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:n}=t.layout,{animationType:s}=t.options,r=i.source!==t.layout.source;"size"===s?jr(t=>{const n=r?i.measuredBox[t]:i.layoutBox[t],s=xr(n);n.min=e[t].min,n.max=n.min+s}):Po(s,i.layoutBox,e)&&jr(n=>{const s=r?i.measuredBox[n]:i.layoutBox[n],o=xr(e[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});const o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Tr(o,e,i.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};r?Tr(a,t.applyTransform(n,!0),i.measuredBox):Tr(a,e,i.layoutBox);const l=!Rr(o);let u=!1;if(!t.resumeFrom){const n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:s,layout:r}=n;if(s&&r){const o={x:{min:0,max:0},y:{min:0,max:0}};Er(o,i.layoutBox,s.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Er(a,e,r.layoutBox),Lr(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ao(t){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 lo(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function uo(t){t.clearSnapshot()}function ho(t){t.clearMeasurements()}function co(t){t.isLayoutDirty=!1}function po(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function fo(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function mo(t){t.resolveTargetDelta()}function go(t){t.calcProjection()}
1function vo(t){t.resetSkewAndRotation()}function yo(t){t.removeLeadSnapshot()}function _o(t,e,i){t.translate=Gt(e.translate,0,i),t.scale=Gt(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function xo(t,e,i,n){t.min=Gt(e.min,i.min,n),t.max=Gt(e.max,i.max,n)}function wo(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const To={duration:.45,ease:[.4,0,.1,1]},So=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),bo=So("applewebkit/")&&!So("chrome/")?Math.round:D;function Eo(t){t.min=bo(t.min),t.max=bo(t.max)}function Po(t,e,i){return"position"===t||"preserve-aspect"===t&&(n=Fr(e),s=Fr(i),r=.2,!(Math.abs(n-s)<=r));var n,s,r}function Ao(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}const Mo=so({attachResizeListener:(t,e)=>qr(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Co={current:void 0},ko=so({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Co.current){const t=new Mo({});t.mount(window),t.setOptions({layoutScroll:!0}),Co.current=t}return Co.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Do=d.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Ro(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function Oo(...t){return d.useCallback(function(...t){return e=>{let i=!1;const n=t.map(t=>{const n=Ro(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){const i=n[e];"function"==typeof i?i():Ro(t[e],null)}}}}(...t),t)}class Vo extends d.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){const t=e.offsetParent,i=Cn(t)&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Lo({children:t,isPresent:e,anchorX:i,root:n}){var s,r;const o=d.useId(),a=d.useRef(null),l=d.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=d.useContext(Do),h=null!=(r=null==(s=t.props)?void 0:s.ref)?r:null==t?void 0:t.ref,c=Oo(a,h);return d.useInsertionEffect(()=>{const{width:t,height:s,top:r,left:h,right:c}=l.current;if(e||!a.current||!t||!s)return;const d="left"===i?`left: ${h}`:`right: ${c}`;a.current.dataset.motionPopId=o;const p=document.createElement("style");u&&(p.nonce=u);const f=null!=n?n:document.head;return f.appendChild(p),p.sheet&&p.sheet.insertRule(`\n [data-motion-pop-id="${o}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${s}px !important;\n ${d}px !important;\n top: ${r}px !important;\n }\n `),()=>{f.contains(p)&&f.removeChild(p)}},[e]),v.jsx(Vo,{isPresent:e,childRef:a,sizeRef:l,children:d.cloneElement(t,{ref:c})})}const Fo=({children:t,initial:e,isPresent:i,onExitComplete:n,custom:s,presenceAffectsLayout:r,mode:o,anchorX:a,root:u})=>{const h=_(Bo),c=d.useId();let p=!0,f=d.useMemo(()=>(p=!1,{id:c,initial:e,isPresent:i,custom:s,onExitComplete:t=>{h.set(t,!0);for(const e of h.values())if(!e)return;n&&n()},register:t=>(h.set(t,!1),()=>h.delete(t))}),[i,h,n]);return r&&p&&(f=l({},f)),d.useMemo(()=>{h.forEach((t,e)=>h.set(e,!1))},[i]),d.useEffect(()=>{!i&&!h.size&&n&&n()},[i]),"popLayout"===o&&(t=v.jsx(Lo,{isPresent:i,anchorX:a,root:u,children:t})),v.jsx(T.Provider,{value:f,children:t})};function Bo(){return new Map}function jo(t=!0){const e=d.useContext(T);if(null===e)return[!0,null];const{isPresent:i,onExitComplete:n,register:s}=e,r=d.useId();d.useEffect(()=>{if(t)return s(r)},[t]);const o=d.useCallback(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,o]:[!0]}const Io=t=>t.key||"";function zo(t){const e=[];return d.Children.forEach(t,t=>{d.isValidElement(t)&&e.push(t)}),e}const No=({children:t,custom:e,initial:i=!0,onExitComplete:n,presenceAffectsLayout:s=!0,mode:r="sync",propagate:o=!1,anchorX:a="left",root:l})=>{const[u,h]=jo(o),c=d.useMemo(()=>zo(t),[t]),p=o&&!u?[]:c.map(Io),f=d.useRef(!0),m=d.useRef(c),g=_(()=>
1new Map),x=d.useRef(new Set),[T,S]=d.useState(c),[b,E]=d.useState(c);w(()=>{f.current=!1,m.current=c;for(let t=0;t<b.length;t++){const e=Io(b[t]);p.includes(e)?(g.delete(e),x.current.delete(e)):!0!==g.get(e)&&g.set(e,!1)}},[b,p.length,p.join("-")]);const P=[];if(c!==T){let t=[...c];for(let e=0;e<b.length;e++){const i=b[e],n=Io(i);p.includes(n)||(t.splice(e,0,i),P.push(i))}return"wait"===r&&P.length&&(t=P),E(zo(t)),S(c),null}const{forceRender:A}=d.useContext(y);return v.jsx(v.Fragment,{children:b.map(t=>{const d=Io(t),y=!(o&&!u)&&(c===b||p.includes(d));return v.jsx(Fo,{isPresent:y,initial:!(f.current&&!i)&&void 0,custom:e,presenceAffectsLayout:s,mode:r,root:l,onExitComplete:y?void 0:()=>{if(x.current.has(d))return;if(x.current.add(d),!g.has(d))return;g.set(d,!0);let t=!0;g.forEach(e=>{e||(t=!1)}),t&&(null==A||A(),E(m.current),o&&(null==h||h()),n&&n())},anchorX:a,children:t},d)})})},Wo=d.createContext({strict:!1}),Uo={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"]};let Yo=!1;function Xo(){return function(){if(Yo)return;const t={};for(const e in Uo)t[e]={isEnabled:t=>Uo[e].some(e=>!!t[e])};ws(t),Yo=!0}(),xs}const Ho=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 $o(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ho.has(t)}let qo=t=>!$o(t);try{"function"==typeof(Ko=require("@emotion/is-prop-valid").default)&&(qo=t=>t.startsWith("on")?!$o(t):Ko(t))}catch(yf){}var Ko;const Go=d.createContext({});function Zo(t){const{initial:e,animate:i}=function(t,e){if(vs(t)){const{initial:e,animate:i}=t;return{initial:!1===e||fs(e)?e:void 0,animate:fs(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,d.useContext(Go));return d.useMemo(()=>({initial:e,animate:i}),[Qo(e),Qo(i)])}function Qo(t){return Array.isArray(t)?t.join(" "):t}const Jo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ta(t,e,i){for(const n in e)sn(e[n])||Ks(n,i)||(t[n]=e[n])}function ea(t,e){const i={};return ta(i,t.style||{},t),Object.assign(i,function({transformTemplate:t},e){return d.useMemo(()=>{const i={style:{},transform:{},transformOrigin:{},vars:{}};return Us(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),i}function ia(t,e){const i={},n=ea(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i}const na=()=>u(l({},{style:{},transform:{},transformOrigin:{},vars:{}}),{attrs:{}});function sa(t,e,i,n){const s=d.useMemo(()=>{const i=na();return ir(i,e,sr(n),t.transformTemplate,t.style),u(l({},i.attrs),{style:l({},i.style)})},[e]);if(t.style){const e={};ta(e,t.style,t),s.style=l(l({},e),s.style)}return s}const ra=["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 oa(t){return"string"==typeof t&&!t.includes("-")&&!!(ra.indexOf(t)>-1||/[A-Z]/u.test(t))}function aa(t,e,i,{latestValues:n},s,r=!1,o){const a=((null!=o?o:oa(t))?sa:ia)(e,n,s,t),h=function(t,e,i){const n={};for(const s in t)"values"===s&&"object"==typeof t.values||(qo(s)||!0===i&&$o(s)||
1!e&&!$o(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,r),c=t!==d.Fragment?u(l(l({},h),a),{ref:i}):{},{children:p}=e,f=d.useMemo(()=>sn(p)?p.get():p,[p]);return d.createElement(t,u(l({},c),{children:f}))}function la(t,e,i,n){const s={},r=n(t,{});for(const h in r)s[h]=Zr(r[h]);let{initial:o,animate:a}=t;const l=vs(t),u=ys(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let c=!!i&&!1===i.initial;c=c||!1===o;const d=c?a:o;if(d&&"boolean"!=typeof d&&!ps(d)){const e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){const n=qi(t,e[i]);if(n){const t=n,{transitionEnd:e,transition:i}=t,r=h(t,["transitionEnd","transition"]);for(const n in r){let t=r[n];if(Array.isArray(t)){t=t[c?t.length-1:0]}null!==t&&(s[n]=t)}for(const n in e)s[n]=e[n]}}}return s}const ua=t=>(e,i)=>{const n=d.useContext(Go),s=d.useContext(T),r=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:la(i,n,s,t),renderState:e()}}(t,e,n,s);return i?r():_(r)},ha=ua({scrapeMotionValuesFromProps:Gs,createRenderState:Jo}),ca=ua({scrapeMotionValuesFromProps:rr,createRenderState:na}),da=Symbol.for("motionComponentSymbol");function pa(t,e,i){const n=d.useRef(i);d.useInsertionEffect(()=>{n.current=i});const s=d.useRef(null);return d.useCallback(i=>{var r;i&&(null==(r=t.onMount)||r.call(t,i)),e&&(i?e.mount(i):e.unmount());const o=n.current;if("function"==typeof o)if(i){const t=o(i);"function"==typeof t&&(s.current=t)}else s.current?(s.current(),s.current=null):o(i);else o&&(o.current=i)},[e])}const fa=d.createContext({});function ma(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function ga(t,e,i,n,s,r){var o,a;const{visualElement:l}=d.useContext(Go),u=d.useContext(Wo),h=d.useContext(T),c=d.useContext(Do).reducedMotion,p=d.useRef(null);n=n||u.renderer,!p.current&&n&&(p.current=n(t,{visualState:e,parent:l,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:c,isSVG:r}));const f=p.current,m=d.useContext(fa);!f||f.projection||!s||"html"!==f.type&&"svg"!==f.type||function(t,e,i,n){const{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:va(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:Boolean(o)||a&&ma(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(p.current,i,s,m);const g=d.useRef(!1);d.useInsertionEffect(()=>{f&&g.current&&f.update(i,h)});const v=i[an],y=d.useRef(Boolean(v)&&!(null==(o=window.MotionHandoffIsComplete)?void 0:o.call(window,v))&&(null==(a=window.MotionHasOptimisedAnimation)?void 0:a.call(window,v)));return w(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),y.current&&f.animationState&&f.animationState.animateChanges())}),d.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,v)}),y.current=!1),f.enteringChildren=void 0)}),f}function va(t){if(t)return!1!==t.options.allowProjection?t.projection:va(t.parent)}function ya(t,{forwardMotionProps:e=!1,type:i}={},n,s){var r,o;n&&function(t){const e=Xo();for(const i in t)e[i]=l(l({},e[i]),t[i]);ws(e)}(n);const a=i?"svg"===i:oa(t),h=a?ca:ha;function c(i,n){let r;const o=u(l(l({},d.useContext(Do)),i),{layoutId:_a(i)}),{isStatic:c}=o,p=Zo(i),f=h(i,c);if(!c&&x){d.useContext(Wo).strict;const e=function(t){const e=Xo(),{drag:i,layout:n}=e;if(!i&&!n)return{};const s=l(l({},i),n);return{MeasureLayout:(null==i?void 0:i.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(o);r=e.MeasureLayout,p.visualElement=ga(t,f,o,s,e.ProjectionNode,a)}return v.jsxs(Go.Provider,{value:p,children:[r&&p.visualElement?v.jsx(r,l({visualElement:p.visualElement},o)):null,aa(t,i,pa(f,p.visualElement,n),f,c,e,a)]})}c.displayName=`motion.${"string"==typeof t?t:`create(${null!=(o=null!=(r=t.displayName)?r:t.name)?o:""})`}`;const p=d.forwardRef(c);return p[da]=t,p}function _a({layoutId:t}){const e=d.useContext(y).id;return e&&void 0!==t?e+"-"+t:t}function xa(t,e){if("undefined"==typeof Proxy)return ya;const i=new Map,n=(i,n)=>ya(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,ya(r,void 0,t,e)),i.get(r))})}const wa=(t,e)=>{var i;return(null!=(i=e.isSVG)?i:oa(t))?new or(e):new Zs(e,{allowProjection:t!==d.Fragment})};let Ta=0;const Sa={animation:{Feature:class extends bs{constructor(t){super(t),t.animationState||(t.animationState=pr(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ps(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)||t.call(this)}}},exit:{Feature:class extends bs{constructor(){super(...arguments),this.id=Ta++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
vendor: 8,875 bytes, line 1
1{e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function ba(t){return{point:{x:t.pageX,y:t.pageY}}}function Ea(t,e,i,n){return qr(t,e,(t=>e=>Fn(e)&&t(e,ba(e)))(i),n)}const Pa=({current:t})=>t?t.ownerDocument.defaultView:null,Aa=(t,e)=>Math.abs(t-e);const Ma=new Set(["auto","scroll"]);class Ca{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Ra(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){const i=Aa(t.x,e.x),n=Aa(t.y,e.y);return Math.sqrt(o(i,2)+o(n,2))}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;const{point:n}=t,{timestamp:s}=lt;this.history.push(u(l({},n),{timestamp:s}));const{onStart:r,onMove:a}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ka(e,this.transformPagePoint),ot.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(!this.dragSnapToOrigin&&this.startEvent||s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const r=Ra("pointercancel"===t.type?this.lastMoveEventInfo:ka(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!Fn(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const h=ka(ba(t),this.transformPagePoint),{point:c}=h,{timestamp:d}=lt;this.history=[u(l({},c),{timestamp:d})];const{onSessionStart:p}=e;p&&p(t,Ra(h,this.history)),this.removeListeners=O(Ea(this.contextWindow,"pointermove",this.handlePointerMove),Ea(this.contextWindow,"pointerup",this.handlePointerUp),Ea(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){const t=getComputedStyle(e);(Ma.has(t.overflowX)||Ma.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const e=this.scrollPositions.get(t);if(!e)return;const i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s=n.x-e.x,r=n.y-e.y;0===s&&0===r||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s,this.lastMoveEventInfo.point.y+=r):this.history.length>0&&(this.history[0].x-=s,this.history[0].y-=r),this.scrollPositions.set(t,n),ot.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),at(this.updatePoint)}}function ka(t,e){return e?{point:e(t.point)}:t}function Da(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ra({point:t},e){return{point:t,delta:Da(t,Va(e)),offset:Da(t,Oa(e)),velocity:La(e,.1)}}function Oa(t){return t[0]}function Va(t){return t[t.length-1]}function La(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null;const s=Va(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>F(e)));)i--;if(!n)return{x:0,y:0};const r=B(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};const o={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Fa(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function Ba(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}const ja=.35;function Ia(t,e,i){return{min:za(t,e),max:za(t,i)}}function za(t,e){return"number"==typeof t?t:t[e]||0}const Na=new WeakMap;class Wa{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={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:s}=this.getProps();this.panSession=new Ca(t,{onSessionStart:t=>{e?(this.stopAnimation(),this.snapToCursor(ba(t).point)):this.pauseAnimation()},onStart:(t,e)=>{this.stopAnimation();const{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(r=i)||"y"===r?Dn[r]?null:(Dn[r]=!0,()=>{Dn[r]=!1}):Dn.x||Dn.y?null:(Dn.x=Dn.y=!0,()=>{Dn.x=Dn.y=!1}),!this.openDragLock))return;var r;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),jr(t=>{let e=this.getAxisMotionValue(t).get()||0;if(Rt.test(e)){const{projection:i}=this.visualElement;if(i&&i.layout){const n=i.layout.layoutBox[t];if(n){e=xr(n)*(parseFloat(e)/100)}}}this.originPoint[t]=e}),s&&ot.postRender(()=>s(t,e)),rn(this.visualElement,"transform");const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;const{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;const{offset:o}=e;if(n&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let i=null;Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x");return i}(o),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>jr(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,distanceThreshold:i,contextWindow:Pa(this.visualElement),element:this.visualElement.current})}stop(t,e){const i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&ot.postRender(()=>o(i,n))}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:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){const{drag:n}=this.getProps();if(!i||!Ua(t,n,this.currentDirection))return;const s=this.getAxisMotionValue(t);let r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?Gt(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?Gt(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,s=this.constraints;e&&ma(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(t,{top:e,left:i,bottom:n,right:s}){return{x:Fa(t.x,i,s),y:Fa(t.y,e,n)}}(n.layoutBox,e),this.elastic=function(t=ja){return!1===t?t=0:!0===t&&(t=ja),{x:Ia(t,"left","right"),y:Ia(t,"top","bottom")}}(i),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&jr(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!ma(t))return!1;const i=t.current,{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
1const s=function(t,e,i){const n=zs(t,i),{scroll:s}=e;return s&&(Bs(n.x,s.offset.x),Bs(n.y,s.offset.y)),n}(i,n.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:Ba(t.x,e.x),y:Ba(t.y,e.y)}}(n.layout.layoutBox,s);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(r));this.hasMutatedConstraints=!!t,t&&(r=Es(t))}return r}startAnimation(t){const{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{},u=jr(o=>{if(!Ua(o,e,this.currentDirection))return;let u=a&&a[o]||{};r&&(u={min:0,max:0});const h=n?200:1e6,c=n?40:1e7,d=l(l({type:"inertia",velocity:i?t[o]:0,bounceStiffness:h,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10},s),u);return this.startAxisValueAnimation(o,d)});return Promise.all(u).then(o)}startAxisValueAnimation(t,e){const i=this.getAxisMotionValue(t);return rn(this.visualElement,t),i.start(Hi(t,i,0,e,this.visualElement,!1))}stopAnimation(){jr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){jr(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),n=i[e];return n||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){jr(e=>{const{drag:i}=this.getProps();if(!Ua(e,i,this.currentDirection))return;const{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){const{min:i,max:r}=n.layout.layoutBox[e],o=s.get()||0;s.set(t[e]-Gt(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!ma(e)||!i||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};jr(t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const i=e.get();n[t]=function(t,e){let i=.5;const n=xr(t),s=xr(e);return s>n?i=V(e.min,e.max-n,t.min):n>s&&(i=V(t.min,t.max-s,e.min)),E(0,1,i)}({min:i,max:i},this.constraints[t])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),jr(e=>{if(!Ua(e,t,null))return;const i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(Gt(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;Na.set(this.visualElement,this);const t=Ea(this.visualElement.current,"pointerdown",t=>{const{drag:e,dragListener:i=!0}=this.getProps();e&&i&&!jn(t.target)&&this.start(t)}),e=()=>{const{dragConstraints:t}=this.getProps();ma(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ot.read(e);const s=qr(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(jr(e=>{const i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=ja,dragMomentum:o=!0}=t;return u(l({},t),{drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o})}}function Ua(t,e,i){return!(!0!==e&&e!==t||null!==i&&i!==t)}const Ya=t=>(e,i)=>{t&&ot.postRender(()=>t(e,i))};let Xa=!1;class Ha extends d.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),Xa&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions(u(l({},s.options),{onExitComplete:()=>this.safeToRemove()}))),Jr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r?(r.isPresent=s,Xa=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||ot.postRender(()=>{const t=r.getStack();t&&t.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),kn.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;Xa=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $a(t){const[e,i]=jo(),n=d.useContext(y);return v.jsx(Ha,u(l({},t),{layoutGroup:n,switchLayoutGroup:d.useContext(fa),isPresent:e,safeToRemove:i}))}const qa={pan:{Feature:class extends bs{constructor(){super(...arguments),this.removePointerDownListener=D}onPointerDown(t){this.session=new Ca(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Pa(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:Ya(t),onStart:Ya(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&ot.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=Ea(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends bs{constructor(t){super(t),this.removeGroupControls=D,this.removeListeners=D,this.controls=new Wa(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||D}update(){const{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ko,MeasureLayout:$a}};function Ka(t,e,i){const{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);const s=n["onHover"+i];s&&ot.postRender(()=>s(e,ba(e)))}function Ga(t,e,i){const{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);const s=n["onTap"+("End"===i?"":i)];s&&ot.postRender(()=>s(e,ba(e)))}const Za=new WeakMap,Qa=new WeakMap,Ja=t=>{const e=Za.get(t.target);e&&e(t)}
1,tl=t=>{t.forEach(Ja)};function el(t,e,i){const n=function(t){var e=t,{root:i}=e,n=h(e,["root"]);const s=i||document;Qa.has(s)||Qa.set(s,{});const r=Qa.get(s),o=JSON.stringify(n);return r[o]||(r[o]=new IntersectionObserver(tl,l({root:i},n))),r[o]}(e);return Za.set(t,i),n.observe(t),()=>{Za.delete(t),n.unobserve(t)}}const il={some:0,all:1};const nl={inView:{Feature:class extends bs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:il[n]};return el(this.node.current,r,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:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends bs{mount(){const{current:t}=this.node;t&&(this.unmount=Un(t,(t,e)=>(Ga(this.node,e,"Start"),(t,{success:e})=>Ga(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends bs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(yf){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=O(qr(this.node.current,"focus",()=>this.onFocus()),qr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends bs{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){const[n,s,r]=On(t,i),o=t=>{if(!Vn(t))return;const{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;const r=t=>{Vn(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",o,s)}),r}(t,(t,e)=>(Ka(this.node,e,"Start"),t=>Ka(this.node,t,"End"))))}unmount(){}}}},sl={layout:{ProjectionNode:ko,MeasureLayout:$a}},rl=xa(l(l(l(l({},Sa),nl),qa),sl),wa),ol={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function al(t,e,i,n){const s=i[e],{length:r,position:o}=ol[e],a=s.current,l=i.time;s.current=t[`scroll${o}`],s.scrollLength=t[`scroll${r}`]-t[`client${r}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=V(0,s.scrollLength,s.current);const u=n-l;s.velocity=u>50?0:j(s.current-a,u)}const ll={start:0,center:.5,end:1};function ul(t,e,i=0){let n=0;if(t in ll&&(t=ll[t]),"string"==typeof t){const e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}const hl=[0,0];function cl(t,e,i,n){let s=Array.isArray(t)?t:hl,r=0,o=0;return"number"==typeof t?s=[t,t]:"string"==typeof t&&(s=(t=t.trim()).includes(" ")?t.split(" "):[t,ll[t]?t:"0"]),r=ul(s[0],i,n),o=ul(s[1],e),r-o}const dl={All:[[0,0],[1,1]]},pl={x:0,y:0};function fl(t,e,i){const{offset:n=dl.All}=i,{target:s=t,axis:r="y"}=i,o="y"===r?"height":"width",a=s!==t?function(t,e){const i={x:0,y:0};let n=t;for(;n&&n!==e;)if(Cn(n))i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){const t=n.getBoundingClientRect();n=n.parentElement;const e=n.getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else{if(!(n instanceof SVGGraphicsElement))break;{const{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let s=null,r=n.parentNode;for(;!s;)"svg"===r.tagName&&(s=r),r=n.parentNode;n=s}}return i}(s,t):pl,l=s===t?{width:t.scrollWidth,height:t.scrollHeight}:function(t){return"getBBox"in t&&"svg"!==t.tagName?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}(s),u={width:t.clientWidth,height:t.clientHeight};e[r].offset.length=0;let h=!e[r].interpolate;const c=n.length;for(let d=0;d<c;d++){const t=cl(n[d],u[o],l[o],a[r]);
1h||t===e[r].interpolatorOffsets[d]||(h=!0),e[r].offset[d]=t}h&&(e[r].interpolate=Fe(e[r].offset,je(n),{clamp:!1}),e[r].interpolatorOffsets=[...e[r].offset]),e[r].progress=E(0,1,e[r].interpolate(e[r].current))}function ml(t,e,i,n={}){return{measure:e=>{!function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight}(t,n.target,i),function(t,e,i){al(t,"x",e,i),al(t,"y",e,i),e.time=i}(t,i,e),(n.offset||n.target)&&fl(t,i,n)},notify:()=>e(i)}}const gl=new WeakMap,vl=new WeakMap,yl=new WeakMap,_l=t=>t===document.scrollingElement?window:t;function xl(t,e={}){var i=e,{container:n=document.scrollingElement}=i,s=h(i,["container"]);if(!n)return D;let r=yl.get(n);r||(r=new Set,yl.set(n,r));const o=ml(n,t,{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}},s);if(r.add(o),!gl.has(n)){const t=()=>{for(const t of r)t.measure(lt.timestamp);ot.preUpdate(e)},e=()=>{for(const t of r)t.notify()},i=()=>ot.read(t);gl.set(n,i);const s=_l(n);window.addEventListener("resize",i,{passive:!0}),n!==document.documentElement&&vl.set(n,(l=i,"function"==typeof(a=n)?es(a):Qn(a,l))),s.addEventListener("scroll",i,{passive:!0}),i()}var a,l;const u=gl.get(n);return ot.read(u,!1,!0),()=>{var t;at(u);const e=yl.get(n);if(!e)return;if(e.delete(o),e.size)return;const i=gl.get(n);gl.delete(n),i&&(_l(n).removeEventListener("scroll",i),null==(t=vl.get(n))||t(),window.removeEventListener("resize",i))}}const wl=new Map;function Tl(t){var e,i,n,s,r=t,{source:o,container:a}=r,u=h(r,["source","container"]);const{axis:c}=u;o&&(a=o);const d=null!=(e=wl.get(a))?e:new Map;wl.set(a,d);const p=null!=(i=u.target)?i:"self",f=null!=(n=d.get(p))?n:{},m=c+(null!=(s=u.offset)?s:[]).join(",");return f[m]||(f[m]=!u.target&&gi()?new ScrollTimeline({source:a,axis:c}):function(t){const e={value:0},i=xl(i=>{e.value=100*i[t.axis].progress},t);return{currentTime:e,cancel:i}}(l({container:a},u))),f[m]}function Sl(t,e={}){var i=e,{axis:n="y",container:s=document.scrollingElement}=i,r=h(i,["axis","container"]);if(!s)return D;const o=l({axis:n,container:s},r);return"function"==typeof t?function(t,e){return function(t){return 2===t.length}(t)?xl(i=>{t(i[e.axis].progress,i)},e):is(t,Tl(e))}(t,o):function(t,e){const i=Tl(e);return t.attachTimeline({timeline:e.target?void 0:i,observe:t=>(t.pause(),is(e=>{t.time=t.iterationDuration*e},i))})}(t,o)}const bl=()=>({scrollX:Ji(0),scrollY:Ji(0),scrollXProgress:Ji(0),scrollYProgress:Ji(0)}),El=t=>!!t&&!t.current;function Pl(t={}){var e=t,{container:i,target:n}=e,s=h(e,["container","target"]);const r=_(bl),o=d.useRef(null),a=d.useRef(!1),c=d.useCallback(()=>(o.current=Sl((t,{x:e,y:i})=>{r.scrollX.set(e.current),r.scrollXProgress.set(e.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},u(l({},s),{container:(null==i?void 0:i.current)||void 0,target:(null==n?void 0:n.current)||void 0})),()=>{var t;null==(t=o.current)||t.call(o)}),[i,n,JSON.stringify(s.offset)]);return w(()=>(a.current=!1,El(i)||El(n)?void(a.current=!0):c()),[c]),d.useEffect(()=>a.current?(El(i),El(n),c()):void 0,[c]),r}function Al(t){const e=_(()=>Ji(t)),{isStatic:i}=d.useContext(Do);if(i){const[,i]=d.useState(t);d.useEffect(()=>e.on("change",i),[])}return e}function Ml(t,e){const i=Al(e()),n=()=>i.set(e());return n(),w(()=>{const e=()=>ot.preRender(n,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),at(n)}}),i}function Cl(t,e,i,n){if("function"==typeof t)return function(t){Zi.current=[],t();const e=Ml(Zi.current,t);return Zi.current=void 0,e}(t);if(void 0!==i&&!Array.isArray(i)&&"function"!=typeof e)return function(t,e,i,n){const s=_(()=>Object.keys(i)),r=_(()=>({}));for(const o of s)r[o]=Cl(t,e,i[o],n);return r}
1(t,e,i,n);const s="function"==typeof e?e:function(...t){const e=!Array.isArray(t[0]),i=e?0:-1,n=t[0+i],s=Fe(t[1+i],t[2+i],t[3+i]);return e?s(n):s}(e,i,n);return Array.isArray(t)?kl(t,s):kl([t],([t])=>s(t))}function kl(t,e){const i=_(()=>[]);return Ml(t,()=>{i.length=0;const n=t.length;for(let e=0;e<n;e++)i[e]=t[e].get();return e(i)})}function Dl(t,e={}){const{isStatic:i}=d.useContext(Do),n=()=>sn(t)?t.get():t;if(i)return Cl(n);const s=Al(n());return d.useInsertionEffect(()=>ss(s,t,e),[s,JSON.stringify(e)]),s}function Rl(t){return"object"==typeof t&&!Array.isArray(t)}function Ol(t,e,i,n){return"string"==typeof t&&Rl(e)?An(t,0,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function Vl(t,e,i){return t*(e+1)}function Ll(t,e,i,n){var s;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?i:e.startsWith("<")?Math.max(0,i+parseFloat(e.slice(1))):null!=(s=n.get(e))?s:t}function Fl(t,e,i,n,s,r){!function(t,e,i){for(let n=0;n<t.length;n++){const s=t[n];s.at>e&&s.at<i&&(b(t,s),n--)}}(t,s,r);for(let o=0;o<e.length;o++)t.push({value:e[o],at:Gt(s,r,n[o]),easing:tt(i,o)})}function Bl(t,e){for(let i=0;i<t.length;i++)t[i]=t[i]/(e+1)}function jl(t,e){return t.at===e.at?null===t.value?1:null===e.value?-1:0:t.at-e.at}function Il(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function zl(t,e){return e[t]||(e[t]=[]),e[t]}function Nl(t){return Array.isArray(t)?t:[t]}function Wl(t,e){return t&&t[e]?l(l({},t),t[e]):l({},t)}const Ul=t=>"number"==typeof t,Yl=t=>t.every(Ul);function Xl(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},i=Yn(t)&&!ns(t)?new or(e):new Zs(e);i.mount(t),ds.set(t,i)}function Hl(t){const e=new Qs({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),ds.set(t,e)}function $l(t,e,i,n){const s=[];if(function(t,e){return sn(t)||"number"==typeof t||"string"==typeof t&&!Rl(e)}(t,e))s.push($r(t,Rl(e)&&e.default||e,i&&i.default||i));else{const n=Ol(t,e),r=n.length;for(let t=0;t<r;t++){const o=n[t],a=o instanceof Element?Xl:Hl;ds.has(o)||a(o);const h=ds.get(o),c=l({},i);"delay"in c&&"function"==typeof c.delay&&(c.delay=c.delay(t,r)),s.push(...hn(h,u(l({},e),{transition:c}),{}))}}return s}function ql(t,e,i){const n=[],s=function(t,e={},i,n){var s=e,{defaultTransition:r={}}=s,o=h(s,["defaultTransition"]);const a=r.duration||.3,c=new Map,d=new Map,p={},f=new Map;let m=0,g=0,v=0;for(let u=0;u<t.length;u++){const e=t[u];if("string"==typeof e){f.set(e,g);continue}if(!Array.isArray(e)){f.set(e.name,Ll(g,e.at,m,f));continue}let[i,s,o={}]=e;void 0!==o.at&&(g=Ll(g,o.at,m,f));let c=0;const y=(t,e,i,s=0,o=0)=>{const u=Nl(t),d=e,{delay:p=0,times:f=je(u),type:m="keyframes",repeat:y,repeatType:_,repeatDelay:x=0}=d,w=h(d,["delay","times","type","repeat","repeatType","repeatDelay"]);let{ease:T=r.ease||"easeOut",duration:S}=e;const b="function"==typeof p?p(s,o):p,E=u.length,P=bi(m)?m:null==n?void 0:n[m||"keyframes"];if(E<=2&&P){let t=100;if(2===E&&Yl(u)){const e=u[1]-u[0];t=Math.abs(e)}const e=l({},w);void 0!==S&&(e.duration=F(S));const i=de(e,t,P);T=i.ease,S=i.duration}null!=S||(S=a);const A=g+b;1===f.length&&0===f[0]&&(f[1]=1);const M=f.length-u.length;if(M>0&&Be(f,M),1===u.length&&u.unshift(null),y){S=Vl(S,y);const t=[...u],e=[...f];T=Array.isArray(T)?[...T]:[T];const i=[...T];for(let n=0;n<y;n++){u.push(...t);for(let s=0;s<t.length;s++)f.push(e[s]+(n+1)),T.push(0===s?"linear":tt(i,s-1))}Bl(f,y)}const C=A+S;Fl(i,u,T,f,A,C),c=Math.max(b+S,c),v=Math.max(C,v)};if(sn(i))y(s,o,zl("default",Il(i,d)));else{const t=Ol(i,s,0,p),e=t.length;for(let i=0;i<e;i++){const n=Il(t[i],d);for(const t in s)y(s[t],Wl(o,t),zl(t,n),i,e)}}m=g,g+=c}return d.forEach((t,e)=>{for(const i in t){const n=t[i];n.sort(jl);const s=[],a=[],h=[];for(let t=0;t<n.length;t++){const{at:e,value:i,easing:r}=n[t];s.push(i),a.push(V(0,v,e)),h.push(r||"easeOut")}0!==a[0]&&(a.unshift(0),s.unshift(s[0]),h.unshift("easeInOut")),1!==a[a.length-1]&&(a.push(1),s.push(null)),c.has(e)||c.set(e,{keyframes:{},transition:{}});const d=c.get(e);d.keyframes[i]=s,d.transition[i]=l(u(l({},r),{duration:v,ease:h,times:a}),o)}}),c}(t,e,0,{spring:Ve});
vendor: 8,416 bytes, lines 1-9
1return s.forEach(({keyframes:t,transition:e},i)=>{n.push(...$l(i,t,e))}),n}const Kl=function(t,e,i){let n,s=[];if(r=t,Array.isArray(r)&&r.some(Array.isArray))s=ql(t,e);else{const r=i||{},{onComplete:o}=r;"function"==typeof o&&(n=o),s=$l(t,e,h(r,["onComplete"]))}var r;const o=new Fi(s);return n&&o.finished.then(n),o};function Gl(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zl(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e} 2/*! 3 * GSAP 3.14.2 4 * https://gsap.com 5 * 6 * @license Copyright 2008-2025, GreenSock. All rights reserved. 7 * Subject to the terms at https://gsap.com/standard-license 8 * @author: Jack Doyle, [email protected] 9*/var Ql,Jl,tu,eu,iu,nu,su,ru,ou,au,lu,uu,hu,cu,du,pu,fu,mu,gu,vu,yu,_u,xu,wu,Tu,Su,bu,Eu,Pu,Au,Mu,Cu,ku={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Du={duration:.5,overwrite:!1,delay:0},Ru=1e8,Ou=1e-8,Vu=2*Math.PI,Lu=Vu/4,Fu=0,Bu=Math.sqrt,ju=Math.cos,Iu=Math.sin,zu=function(t){return"string"==typeof t},Nu=function(t){return"function"==typeof t},Wu=function(t){return"number"==typeof t},Uu=function(t){return void 0===t},Yu=function(t){return"object"==typeof t},Xu=function(t){return!1!==t},Hu=function(){return"undefined"!=typeof window},$u=function(t){return Nu(t)||zu(t)},qu="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Ku=Array.isArray,Gu=/random\([^)]+\)/g,Zu=/,\s*/g,Qu=/(?:-?\.?\d|\.)+/gi,Ju=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,th=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,eh=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ih=/[+-]=-?[.\d]+/,nh=/[^,'"\[\]\s]+/gi,sh=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,rh={},oh={},ah=function(t){return(oh=Bh(t,rh))&&Bd},lh=function(t,e){},uh=function(t,e){return!e&&void 0},hh=function(t,e){return t&&(rh[t]=e)&&oh&&(oh[t]=e)||rh},ch=function(){return 0},dh={suppressEvents:!0,isStart:!0,kill:!1},ph={suppressEvents:!0,kill:!1},fh={suppressEvents:!0},mh={},gh=[],vh={},yh={},_h={},xh=30,wh=[],Th="",Sh=function(t){var e,i,n=t[0];if(Yu(n)||Nu(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=wh.length;i--&&!wh[i].targetTest(n););e=wh[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Zc(t[i],e)))||t.splice(i,1);return t},bh=function(t){return t._gsap||Sh(fc(t))[0]._gsap},Eh=function(t,e,i){return(i=t[e])&&Nu(i)?t[e]():Uu(i)&&t.getAttribute&&t.getAttribute(e)||i},Ph=function(t,e){return(t=t.split(",")).forEach(e)||t},Ah=function(t){return Math.round(1e5*t)/1e5||0},Mh=function(t){return Math.round(1e7*t)/1e7||0},Ch=function(t,e){var i=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),"+"===i?t+n:"-"===i?t-n:"*"===i?t*n:t/n},kh=function(t,e){for(var i=e.length,n=0;t.indexOf(e[n])<0&&++n<i;);return n<i},Dh=function(){var t,e,i=gh.length,n=gh.slice(0);for(vh={},gh.length=0,t=0;t<i;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Rh=function(t){return!!(t._initted||t._startAt||t.add)},Oh=function(t,e,i,n){gh.length&&!Jl&&Dh(),t.render(e,i,!!(Jl&&e<0&&Rh(t))),gh.length&&!Jl&&Dh()},Vh=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(nh).length<2?e:zu(t)?t.trim():t},Lh=function(t){return t},Fh=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},Bh=function(t,e){for(var i in e)t[i]=e[i];return t},jh=function t(e,i){for(var n in i)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=Yu(i[n])?t(e[n]||(e[n]={}),i[n]):i[n]);return e},Ih=function(t,e){var i,n={};for(i in t)i in e||(n[i]=t[i]);return n},zh=function(t){var e,i=t.parent||eu,n=t.keyframes?(e=Ku(t.keyframes),function(t,i){for(var n in i)n in t||"duration"===n&&e||"ease"===n||(t[n]=i[n])}):Fh;if(Xu(t.inherit))for(;i;)n(t,i.vars.defaults),i=i.parent||i._dp;return t},Nh=function(t,e,i,n,s){var r,o=t[n];if(s)for(r=e[s];o&&o[s]>r;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Wh=function(t,e,i,n){void 0===i&&(i="_first"),void 0===n&&(n="_last");var s=e._prev,r=e._next;s?s._next=r:t[i]===e&&(t[i]=r),r?r._prev=s:t[n]===e&&(t[n]=s),e._next=e._prev=e.parent=null},Uh=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Yh=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},Xh=function(t,e,i,n){return t._startAt&&(Jl?t._startAt.revert(ph):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},Hh=function t(e){return!e||e._ts&&t(e.parent)},$h=function(t){return t._repeat?qh(t._tTime,t=t.duration()+t._rDelay)*t:0},qh=function(t,e){var i=Math.floor(t=Mh(t/e));return t&&i===t?i-1:i},Kh=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Gh=function(t){return t._end=Mh(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ou)||0))},Zh=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=Mh(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Gh(t),i._dirty||Yh(i,t)),t},Qh=function(t,e){var i;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(i=Kh(t.rawTime(),e),(!e._dur||hc(0,e.totalDuration(),i)-e._tTime>Ou)&&e.render(i,!0)),Yh(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-1e-8}},Jh=function(t,e,i,n){return e.parent&&Uh(e),e._start=Mh((Wu(i)?i:i||t!==eu?ac(t,i,e):t._time)+e._delay),e._end=Mh(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Nh(t,e,"_first","_last",t._sort?"_start":0),nc(e)||(t._recent=e),n||Qh(t,e),t._ts<0&&Zh(t,t._tTime),t},tc=function(t,e){return rh.ScrollTrigger?rh.ScrollTrigger.create(e,t):void 0},ec=function(t,e,i,n,s){return rd(t,e,s),t._initted?!i&&t._pt&&!Jl&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&ou!==jc.frame?(gh.push(t),t._lazy=[s,n],1):void 0:1},ic=function t(e){var i=e.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||t(i))},nc=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},sc=function(t,e,i,n){var s=t._repeat,r=Mh(e)||0,o=t._tTime/t._tDur;return o&&!n&&(t._time*=r/t._dur),t._dur=r,t._tDur=s?s<0?1e10:Mh(r*(s+1)+t._rDelay*s):r,o>0&&!n&&Zh(t,t._tTime=t._tDur*o),t.parent&&Gh(t),i||Yh(t.parent,t),t},rc=function(t){return t instanceof Jc?Yh(t):sc(t,t._dur)},oc={_start:0,endTime:ch,totalDuration:ch},ac=function t(e,i,n){var s,r,o,a=e.labels,l=e._recent||oc,u=e.duration()>=Ru?l.endTime(!1):e._dur;return zu(i)&&(isNaN(i)||i in a)?(r=i.charAt(0),o="%"===i.substr(-1),s=i.indexOf("="),"<"===r||">"===r?(s>=0&&(i=i.replace(/=/,"")),("<"===r?l._start:l.endTime(l._repeat>=0))+(parseFloat(i.substr(1))||0)*(o?(s<0?l:n).totalDuration()/100:1)):s<0?(i in a||(a[i]=u),a[i]):(r=parseFloat(i.charAt(s-1)+i.substr(s+1)),o&&n&&(r=r/100*(Ku(n)?n[0]:n).totalDuration()),s>1?t(e,i.substr(0,s-1),n)+r:u+r)):null==i?u:+i},lc=function(t,e,i){var n,s,r=Wu(e[1]),o=(r?2:1)+(t<2?0:1),a=e[o];if(r&&(a.duration=e[1]),a.parent=i,t){for(n=a,s=i;s&&!("immediateRender"in n);)n=s.vars.defaults||{},s=Xu(s.vars.inherit)&&s.parent;a.immediateRender=Xu(n.immediateRender),t<2?a.runBackwards=1:a.startAt=e[o-1]}return new hd(e[0],a,e[o+1])},uc=function(t,e){return t||0===t?e(t):e},hc=function(t,e,i){return i<t?t:i>e?e:i},cc=function(t,e){return zu(t)&&(e=sh.exec(t))?e[1]:""},dc=[].slice,pc=function(t,e){return t&&Yu(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Yu(t[0]))&&!t.nodeType&&t!==iu},fc=function(t,e,i){return tu&&!e&&tu.selector?tu.selector(t):!zu(t)||i||!nu&&Ic()?Ku(t)?function(t,e,i){return void 0===i&&(i=[]),t.forEach(function(t){var n;return zu(t)&&!e||pc(t,1)?(n=i).push.apply(n,fc(t)):i.push(t)})||i}(t,i):pc(t)?dc.call(t,0):t?[t]:[]:dc.call((e||su).querySelectorAll(t),0)},mc=function(t){return t=fc(t)[0]||uh()||{},function(e){var i=t.current||t.nativeElement||t;return fc(e,i.querySelectorAll?i:i===t?uh()||su.createElement("div"):t)}},gc=function(t){return t.sort(function(){return.5-Math.random()})},vc=function(t){if(Nu(t))return t;var e=Yu(t)?t:{each:t},i=Hc(e.ease),n=e.from||0,s=parseFloat(e.base)||0,r={},o=n>0&&n<1,a=isNaN(n)||o,l=e.axis,u=n,h=n;return zu(n)?u=h={center:.5,edges:.5,end:1}[n]||0:!o&&a&&(u=n[0],h=n[1]),function(t,o,c){var d,p,f,m,g,v,y,_,x,w=(c||e).length,T=r[w];if(!T){if(!(x="auto"===e.grid?0:(e.grid||[1,Ru])[1])){for(y=-1e8;y<(y=c[x++].getBoundingClientRect().left)&&x<w;);x<w&&x--}for(T=r[w]=[],d=a?Math.min(x,w)*u-.5:n%x,p=x===Ru?0:a?w*h/x-.5:n/
vendor: 5,020 bytes, line 9
9x|0,y=0,_=Ru,v=0;v<w;v++)f=v%x-d,m=p-(v/x|0),T[v]=g=l?Math.abs("y"===l?m:f):Bu(f*f+m*m),g>y&&(y=g),g<_&&(_=g);"random"===n&&gc(T),T.max=y-_,T.min=_,T.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(x>w?w-1:l?"y"===l?w/x:x:Math.max(x,w/x))||0)*("edges"===n?-1:1),T.b=w<0?s-w:s,T.u=cc(e.amount||e.each)||0,i=i&&w<0?Yc(i):i}return w=(T[t]-T.min)/T.max||0,Mh(T.b+(i?i(w):w)*T.v)+T.u}},yc=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var n=Mh(Math.round(parseFloat(i)/t)*t*e);return(n-n%1)/e+(Wu(i)?0:cc(i))}},_c=function(t,e){var i,n,s=Ku(t);return!s&&Yu(t)&&(i=s=t.radius||Ru,t.values?(t=fc(t.values),(n=!Wu(t[0]))&&(i*=i)):t=yc(t.increment)),uc(e,s?Nu(t)?function(e){return n=t(e),Math.abs(n-e)<=i?n:e}:function(e){for(var s,r,o=parseFloat(n?e.x:e),a=parseFloat(n?e.y:0),l=Ru,u=0,h=t.length;h--;)(s=n?(s=t[h].x-o)*s+(r=t[h].y-a)*r:Math.abs(t[h]-o))<l&&(l=s,u=h);return u=!i||l<=i?t[u]:e,n||u===e||Wu(e)?u:u+cc(e)}:yc(t))},xc=function(t,e,i,n){return uc(Ku(t)?!e:!0===i?!!(i=0):!n,function(){return Ku(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(n=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(e-t+.99*i))/i)*i*n)/n})},wc=function(t,e,i){return uc(i,function(i){return t[~~e(i)]})},Tc=function(t){return t.replace(Gu,function(t){var e=t.indexOf("[")+1,i=t.substring(e||7,e?t.indexOf("]"):t.length-1).split(Zu);return xc(e?i:+i[0],e?0:+i[1],+i[2]||1e-5)})},Sc=function(t,e,i,n,s){var r=e-t,o=n-i;return uc(s,function(e){return i+((e-t)/r*o||0)})},bc=function(t,e,i){var n,s,r,o=t.labels,a=Ru;for(n in o)(s=o[n]-e)<0==!!i&&s&&a>(s=Math.abs(s))&&(r=n,a=s);return r},Ec=function(t,e,i){var n,s,r,o=t.vars,a=o[e],l=tu,u=t._ctx;if(a)return n=o[e+"Params"],s=o.callbackScope||t,i&&gh.length&&Dh(),u&&(tu=u),r=n?a.apply(s,n):a.call(s),tu=l,r},Pc=function(t){return Uh(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Jl),t.progress()<1&&Ec(t,"onInterrupt"),t},Ac=[],Mc=function(t){if(t)if(t=!t.name&&t.default||t,Hu()||t.headless){var e=t.name,i=Nu(t),n=e&&!i&&t.init?function(){this._props=[]}:t,s={init:ch,render:_d,add:nd,kill:wd,modifier:xd,rawVars:0},r={targetTest:0,get:0,getSetter:md,aliases:{},register:0};if(Ic(),t!==n){if(yh[e])return;Fh(n,Fh(Ih(t,s),r)),Bh(n.prototype,Bh(s,Ih(t,r))),yh[n.prop=e]=n,t.targetTest&&(wh.push(n),mh[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}hh(e,n),t.register&&t.register(Bd,n,bd)}else Ac.push(t)},Cc=255,kc={aqua:[0,Cc,Cc],lime:[0,Cc,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Cc],navy:[0,0,128],white:[Cc,Cc,Cc],olive:[128,128,0],yellow:[Cc,Cc,0],orange:[Cc,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Cc,0,0],pink:[Cc,192,203],cyan:[0,Cc,Cc],transparent:[Cc,Cc,Cc,0]},Dc=function(t,e,i){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)*Cc+.5|0},Rc=function(t,e,i){var n,s,r,o,a,l,u,h,c,d,p=t?Wu(t)?[t>>16,t>>8&Cc,t&Cc]:0:kc.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),kc[t])p=kc[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),s=t.charAt(2),r=t.charAt(3),t="#"+n+n+s+s+r+r+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&Cc,p&Cc,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&Cc,t&Cc]}else if("hsl"===t.substr(0,3))if(p=d=t.match(Qu),e){if(~t.indexOf("="))return p=t.match(Ju),i&&p.length<4&&(p[3]=1),p}else o=+p[0]%360/360,a=+p[1]/100,n=2*(l=+p[2]/100)-(s=l<=.5?l*(a+1):l+a-l*a),p.length>3&&(p[3]*=1),p[0]=Dc(o+1/3,n,s),p[1]=Dc(o,n,s),p[2]=Dc(o-1/3,n,s);else p=t.match(Qu)||kc.transparent;p=p.map(Number)}return e&&!d&&(n=p[0]/Cc,s=p[1]/Cc,r=p[2]/Cc,l=((u=Math.max(n,s,r))+(h=Math.min(n,s,r)))/2,u===h?o=a=0:(c=u-h,a=l>.5?c/(2-u-h):c/(u+h),o=u===n?(s-r)/c+(s<r?6:0):u===s?(r-n)/c+2:(n-s)/c+4,o*=60),p[0]=~~(o+.5),p[1]=~~(100*a+.5),p[2]=~~(100*l+.5)),i&&p.length<4&&(p[3]=1),p},Oc=function(t){var e=[],i=[],n=-1;return t.split(Lc).forEach(function(t){var s=t.match(th)||[];e.push.apply(e,s),i.push(n+=s.length+1)}),e.c=i,e},Vc=function(t,e,i){var n,s,r,o,a="",l=(t+a).match(Lc),u=e?"hsla(":"rgba(",h=0;if(!l)return t;if(l=l.map(function(t){return(t=Rc(t,e,1))&&u+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),i&&(r=Oc(t),(n=i.c).join(a)!==r.c.join(a)))for(o=(s=t.replace(Lc,"1").split(th)).length-1;h<o;h++)a+=s[h]+(~n.indexOf(h)?l.shift()||u+"0,0,0,0)":(r.length?r:l.length?l:i).shift());if(!s)for(o=(s=t.split(Lc)).length-1;h<o;h++)a+=s[h]+l[h];return a+s[o]},Lc=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in kc)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Fc=/hsl[a]?\(/,Bc=function(t){var e,i=t.join(" ");if(Lc.lastIndex=0,Lc.test(i))return e=Fc.test(i),t[1]=Vc(t[1],e),t[0]=Vc(t[0],e,Oc(t[1])),!0},jc=(mu=Date.now,gu=500,vu=33,yu=mu(),_u=yu,wu=xu=1e3/240,Su=function t(e){var i,n,s,r,o=mu()-_u,a=!0===e;if((o>gu||o<0)&&(yu+=o-vu),((i=(s=(_u+=o)-yu)-wu)>0||a)&&(r=++du.frame,pu=s-1e3*du.time,du.time=s/=1e3,wu+=i+(i>
vendor: 8,658 bytes, line 9
9=xu?4:xu-i),n=1),a||(uu=hu(t)),n)for(fu=0;fu<Tu.length;fu++)Tu[fu](s,pu,r,e)},du={time:0,frame:0,tick:function(){Su(!0)},deltaRatio:function(t){return pu/(1e3/(t||60))},wake:function(){ru&&(!nu&&Hu()&&(iu=nu=window,su=iu.document||{},rh.gsap=Bd,(iu.gsapVersions||(iu.gsapVersions=[])).push(Bd.version),ah(oh||iu.GreenSockGlobals||!iu.gsap&&iu||{}),Ac.forEach(Mc)),cu="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,uu&&du.sleep(),hu=cu||function(t){return setTimeout(t,wu-1e3*du.time+1|0)},lu=1,Su(2))},sleep:function(){(cu?cancelAnimationFrame:clearTimeout)(uu),lu=0,hu=ch},lagSmoothing:function(t,e){gu=t||1/0,vu=Math.min(e||33,gu)},fps:function(t){xu=1e3/(t||240),wu=1e3*du.time+xu},add:function(t,e,i){var n=e?function(e,i,s,r){t(e,i,s,r),du.remove(n)}:t;return du.remove(t),Tu[i?"unshift":"push"](n),Ic(),n},remove:function(t,e){~(e=Tu.indexOf(t))&&Tu.splice(e,1)&&fu>=e&&fu--},_listeners:Tu=[]}),Ic=function(){return!lu&&jc.wake()},zc={},Nc=/^[\d.\-M][\d.\-,\s]/,Wc=/["']/g,Uc=function(t){for(var e,i,n,s={},r=t.substr(1,t.length-3).split(":"),o=r[0],a=1,l=r.length;a<l;a++)i=r[a],e=a!==l-1?i.lastIndexOf(","):i.length,n=i.substr(0,e),s[o]=isNaN(n)?n.replace(Wc,"").trim():+n,o=i.substr(e+1).trim();return s},Yc=function(t){return function(e){return 1-t(1-e)}},Xc=function t(e,i){for(var n,s=e._first;s;)s instanceof Jc?t(s,i):!s.vars.yoyoEase||s._yoyo&&s._repeat||s._yoyo===i||(s.timeline?t(s.timeline,i):(n=s._ease,s._ease=s._yEase,s._yEase=n,s._yoyo=i)),s=s._next},Hc=function(t,e){return t&&(Nu(t)?t:zc[t]||function(t){var e,i,n,s,r=(t+"").split("("),o=zc[r[0]];return o&&r.length>1&&o.config?o.config.apply(null,~t.indexOf("{")?[Uc(r[1])]:(e=t,i=e.indexOf("(")+1,n=e.indexOf(")"),s=e.indexOf("(",i),e.substring(i,~s&&s<n?e.indexOf(")",n+1):n)).split(",").map(Vh)):zc._CE&&Nc.test(t)?zc._CE("",t):o}(t))||e},$c=function(t,e,i,n){void 0===i&&(i=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var s,r={easeIn:e,easeOut:i,easeInOut:n};return Ph(t,function(t){for(var e in zc[t]=rh[t]=r,zc[s=t.toLowerCase()]=i,r)zc[s+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=zc[t+"."+e]=r[e]}),r},qc=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Kc=function t(e,i,n){var s=i>=1?i:1,r=(n||(e?.3:.45))/(i<1?i:1),o=r/Vu*(Math.asin(1/s)||0),a=function(t){return 1===t?1:s*Math.pow(2,-10*t)*Iu((t-o)*r)+1},l="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:qc(a);return r=Vu/r,l.config=function(i,n){return t(e,i,n)},l},Gc=function t(e,i){void 0===i&&(i=1.70158);var n=function(t){return t?--t*t*((i+1)*t+i)+1:0},s="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:qc(n);return s.config=function(i){return t(e,i)},s};Ph("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var i=e<5?e+1:e;$c(t+",Power"+(i-1),e?function(t){return Math.pow(t,i)}:function(t){return t},function(t){return 1-Math.pow(1-t,i)},function(t){return t<.5?Math.pow(2*t,i)/2:1-Math.pow(2*(1-t),i)/2})}),zc.Linear.easeNone=zc.none=zc.Linear.easeIn,$c("Elastic",Kc("in"),Kc("out"),Kc()),bu=7.5625,Au=2*(Pu=1/(Eu=2.75)),Mu=2.5*Pu,$c("Bounce",function(t){return 1-Cu(1-t)},Cu=function(t){return t<Pu?bu*t*t:t<Au?bu*Math.pow(t-1.5/Eu,2)+.75:t<Mu?bu*(t-=2.25/Eu)*t+.9375:bu*Math.pow(t-2.625/Eu,2)+.984375}),$c("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),$c("Circ",function(t){return-(Bu(1-t*t)-1)}),$c("Sine",function(t){return 1===t?1:1-ju(t*Lu)}),$c("Back",Gc("in"),Gc("out"),Gc()),zc.SteppedEase=zc.steps=rh.SteppedEase={config:function(t,e){void 0===t&&(t=1);var i=1/t,n=t+(e?0:1),s=e?1:0;return function(t){return((n*hc(0,.99999999,t)|0)+s)*i}}},Du.ease=zc["quad.out"],Ph("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Th+=t+","+t+"Params,"});var Zc=function(t,e){this.id=Fu++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Eh,this.set=e?e.getSetter:md},Qc=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,sc(this,+t.duration,1,1),this.data=t.data,tu&&(this._ctx=tu,tu.data.push(this)),lu||jc.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,sc(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ic(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Zh(this,t),!i._dp||i.parent||Qh(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Jh(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Ou||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Oh(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+$h(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+$h(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*i,e):this._repeat?qh(this._tTime,i)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var i=this.parent&&this._ts?Kh(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(hc(-Math.abs(this._delay),this.totalDuration(),i),!1!==e),Gh(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ic(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Ou&&(this._tTime-=Ou)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=Mh(t);var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Jh(e,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Xu(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Kh(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=fh);var e=Jl;return Jl=t,Rh(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),Jl=e,this},e.globalTime=function(t){for(var e=this,i=arguments.length?t:e.rawTime();e;)i=e._start+i/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):i},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,rc(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,rc(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(ac(this,t),Xu(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Xu(e)),this._dur||(this._zTime=-1e-8),this},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0}
vendor: 8,914 bytes, line 9
9,e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,i=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<this.endTime(!0)-Ou))},e.eventCallback=function(t,e,i){var n=this.vars;return arguments.length>1?(e?(n[t]=e,i&&(n[t+"Params"]=i),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this,i=e._prom;return new Promise(function(n){var s=Nu(t)?t:Lh,r=function(){var t=e.then;e.then=null,i&&i(),Nu(s)&&(s=s(e))&&(s.then||s===e)&&(e.then=t),n(s),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?r():e._prom=r})},e.kill=function(){Pc(this)},t}();Fh(Qc.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Jc=function(t){function e(e,i){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=Xu(e.sortChildren),eu&&Jh(e.parent||eu,Gl(n),i),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&tc(Gl(n),e.scrollTrigger),n}Zl(e,t);var i=e.prototype;return i.to=function(t,e,i){return lc(0,arguments,this),this},i.from=function(t,e,i){return lc(1,arguments,this),this},i.fromTo=function(t,e,i,n){return lc(2,arguments,this),this},i.set=function(t,e,i){return e.duration=0,e.parent=this,zh(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new hd(t,e,ac(this,i),1),this},i.call=function(t,e,i){return Jh(this,hd.delayedCall(0,t,e),i)},i.staggerTo=function(t,e,i,n,s,r,o){return i.duration=e,i.stagger=i.stagger||n,i.onComplete=r,i.onCompleteParams=o,i.parent=this,new hd(t,i,ac(this,s)),this},i.staggerFrom=function(t,e,i,n,s,r,o){return i.runBackwards=1,zh(i).immediateRender=Xu(i.immediateRender),this.staggerTo(t,e,i,n,s,r,o)},i.staggerFromTo=function(t,e,i,n,s,r,o,a){return n.startAt=i,zh(n).immediateRender=Xu(n.immediateRender),this.staggerTo(t,e,n,s,r,o,a)},i.render=function(t,e,i){var n,s,r,o,a,l,u,h,c,d,p,f,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,y=t<=0?0:Mh(t),_=this._zTime<0!=t<0&&(this._initted||!v);if(this!==eu&&y>g&&t>=0&&(y=g),y!==this._tTime||i||_){if(m!==this._time&&v&&(y+=this._time-m,t+=this._time-m),n=y,c=this._start,l=!(h=this._ts),_&&(v||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(p=this._yoyo,a=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,i);if(n=Mh(y%a),y===g?(o=this._repeat,n=v):((o=~~(d=Mh(y/a)))&&o===d&&(n=v,o--),n>v&&(n=v)),d=qh(this._tTime,a),!m&&this._tTime&&d!==o&&this._tTime-d*a-this._dur<=0&&(d=o),p&&1&o&&(n=v-n,f=1),o!==d&&!this._lock){var x=p&&1&d,w=x===(p&&1&o);if(o<d&&(x=!x),m=x?0:y%v?v:y,this._lock=1,this.render(m||(f?0:Mh(o*a)),e,!v)._lock=0,this._tTime=y,!e&&this.parent&&Ec(this,"onRepeat"),this.vars.repeatRefresh&&!f&&(this.invalidate()._lock=1,d=o),m&&m!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,g=this._tDur,w&&(this._lock=2,m=x?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!f&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;Xc(this,f)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=function(t,e,i){var n;if(i>e)for(n=t._first;n&&n._start<=i;){if("isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=i;){if("isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,Mh(m),Mh(n)),u&&(y-=n-(n=u._start))),this._tTime=y,this._time=n,this._act=!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&y&&v&&!e&&!d&&(Ec(this,"onStart"),this._tTime!==y))return this;if(n>=m&&t>=0)for(s=this._first;s;){if(r=s._next,(s._act||n>=s._start)&&s._ts&&u!==s){if(s.parent!==this)return this.render(t,e,i);if(s.render(s._ts>0?(n-s._start)*s._ts:(s._dirty?s.totalDuration():s._tDur)+(n-s._start)*s._ts,e,i),n!==this._time||!this._ts&&!l){u=0,r&&(y+=this._zTime=-1e-8);break}}s=r}else{s=this._last;for(var T=t<0?t:n;s;){if(r=s._prev,(s._act||T<=s._end)&&s._ts&&u!==s){if(s.parent!==this)return this.render(t,e,i);if(s.render(s._ts>0?(T-s._start)*s._ts:(s._dirty?s.totalDuration():s._tDur)+(T-s._start)*s._ts,e,i||Jl&&Rh(s)),n!==this._time||!this._ts&&!l){u=0,r&&(y+=this._zTime=T?-1e-8:Ou);break}}s=r}}if(u&&!e&&(this.pause(),u.render(n>=m?0:-1e-8)._zTime=n>=m?1:-1,this._ts))return this._start=c,Gh(this),this.render(t,e,i);this._onUpdate&&!e&&Ec(this,"onUpdate",!0),(y===g&&this._tTime>=this.totalDuration()||!y&&m)&&(c!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||((t||!v)&&(y===g&&this._ts>0||!y&&this._ts<0)&&Uh(this,1),e||t<0&&!m||!y&&!m&&g||(Ec(this,y===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<g&&this.timeScale()>0)&&this._prom())))}return this},i.add=function(t,e){var i=this;if(Wu(e)||(e=ac(this,e,t)),!(t instanceof Qc)){if(Ku(t))return t.forEach(function(t){return i.add(t,e)}),this;if(zu(t))return this.addLabel(t,e);if(!Nu(t))return this;t=hd.delayedCall(0,t)}return this!==t?Jh(this,t,e):this},i.getChildren=function(t,e,i,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===n&&(n=-1e8);for(var s=[],r=this._first;r;)r._start>=n&&(r instanceof hd?e&&s.push(r):(i&&s.push(r),t&&s.push.apply(s,r.getChildren(!0,e,i)))),r=r._next;return s},i.getById=function(t){for(var e=this.getChildren(1,1,1),i=e.length;i--;)if(e[i].vars.id===t)return e[i]},i.remove=function(t){return zu(t)?this.removeLabel(t):Nu(t)?this.killTweensOf(t):(t.parent===this&&Wh(this,t),t===this._recent&&(this._recent=this._last),Yh(this))},i.totalTime=function(e,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Mh(jc.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,i),this._forcing=0,this):this._tTime},i.addLabel=function(t,e){return this.labels[t]=ac(this,e),this},i.removeLabel=function(t){return delete this.labels[t],this},i.addPause=function(t,e,i){var n=hd.delayedCall(0,e||ch,i);return n.data="isPause",this._hasPause=1,Jh(this,n,ac(this,t))},i.removePause=function(t){var e=this._first;for(t=ac(this,t);e;)e._start===t&&"isPause"===e.data&&Uh(e),e=e._next},i.killTweensOf=function(t,e,i){for(var n=this.getTweensOf(t,i),s=n.length;s--;)td!==n[s]&&n[s].kill(t,e);return this},i.getTweensOf=function(t,e){for(var i,n=[],s=fc(t),r=this._first,o=Wu(e);r;)r instanceof hd?kh(r._targets,s)&&(o?(!td||r._initted&&r._ts)&&r.globalTime(0)<=e&&r.globalTime(r.totalDuration())>e:!e||r.isActive())&&n.push(r):(i=r.getTweensOf(s,e)).length&&n.push.apply(n,i),r=r._next;return n},i.tweenTo=function(t,e){e=e||{};var i,n=this,s=ac(n,t),r=e,o=r.startAt,a=r.onStart,l=r.onStartParams,u=r.immediateRender,h=hd.to(n,Fh({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:e.duration||Math.abs((s-(o&&"time"in o?o.time:n._time))/n.timeScale())||Ou,onStart:function(){if(n.pause(),!i){var t=e.duration||Math.abs((s-(o&&"time"in o?o.time:n._time))/n.timeScale());h._dur!==t&&sc(h,t,0,1).render(h._time,!0,!0),i=1}a&&a.apply(h,l||[])}},e));return u?h.render(0):h},i.tweenFromTo=function(t,e,i){return this.tweenTo(e,Fh({startAt:{time:ac(this,t)}},i))},i.recent=function(){return this._recent},i.nextLabel=function(t){return void 0===t&&(t=this._time),bc(this,ac(this,t))},i.previousLabel=function(t){return void 0===t&&(t=this._time),bc(this,ac(this,t),1)},i.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Ou)},i.shiftChildren=function(t,e,i){void 0===i&&(i=0);var n,s=this._first,r=this.labels;for(t=Mh(t);s;)s._start>=i&&(s._start+=t,s._end+=t),s=s._next;if(e)for(n in r)r[n]>=i&&(r[n]+=t);return Yh(this)},i.invalidate=function(e){var i=this._first;for(this._lock=0;i;)i.invalidate(e),i=i._next;return t.prototype.invalidate.call(this,e)},i.clear=function(t){void 0===t&&(t=!0);for(var e,i=this._first;i;)e=i._next,this.remove(i),i=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Yh(this)},i.totalDuration=function(t){var e,i,n,s=0,r=this,o=r._last,a=Ru;if(arguments.length)return r.timeScale((r._repeat<0?r.duration():r.totalDuration())/(r.reversed()?-t:t));if(r._dirty){for(n=r.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(i=o._start)>a&&r._sort&&o._ts&&!r._lock?(r._lock=1,Jh(r,o,i-o._delay,1)._lock=0):a=i,i<0&&o._ts&&(s-=i,(!n&&!r._dp||n&&n.smoothChildTiming)&&(r._start+=Mh(i/r._ts),r._time-=i,r._tTime-=i),r.shiftChildren(-i,!1,-1/0),a=0),o._end>s&&o._ts&&(s=o._end),o=e;sc(r,r===eu&&r._time>s?r._time:s,1,1),r._dirty=0}return r._tDur},e.updateRoot=function(t){if(eu._ts&&(Oh(eu,Kh(t,eu)),ou=jc.frame),jc.frame>=xh){xh+=ku.autoSleep||120;var e=eu._first;if((!e||!e._ts)&&ku.autoSleep&&jc._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||jc.sleep()}}},e}(Qc);Fh(Jc.prototype,{_lock:0,_hasPause:0,_forcing:0});
vendor: 8,443 bytes, line 9
9var td,ed,id=function(t,e,i,n,s,r,o){var a,l,u,h,c,d,p,f,m=new bd(this._pt,t,e,0,1,yd,null,s),g=0,v=0;for(m.b=i,m.e=n,i+="",(p=~(n+="").indexOf("random("))&&(n=Tc(n)),r&&(r(f=[i,n],t,e),i=f[0],n=f[1]),l=i.match(eh)||[];a=eh.exec(n);)h=a[0],c=n.substring(g,a.index),u?u=(u+1)%5:"rgba("===c.substr(-5)&&(u=1),h!==l[v++]&&(d=parseFloat(l[v-1])||0,m._pt={_next:m._pt,p:c||1===v?c:",",s:d,c:"="===h.charAt(1)?Ch(d,h)-d:parseFloat(h)-d,m:u&&u<4?Math.round:0},g=eh.lastIndex);return m.c=g<n.length?n.substring(g,n.length):"",m.fp=o,(ih.test(n)||p)&&(m.e=0),this._pt=m,m},nd=function(t,e,i,n,s,r,o,a,l,u){Nu(n)&&(n=n(s||0,t,r));var h,c=t[e],d="get"!==i?i:Nu(c)?l?t[e.indexOf("set")||!Nu(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():c,p=Nu(c)?l?pd:dd:cd;if(zu(n)&&(~n.indexOf("random(")&&(n=Tc(n)),"="===n.charAt(1)&&((h=Ch(d,n)+(cc(d)||0))||0===h)&&(n=h)),!u||d!==n||ed)return isNaN(d*n)||""===n?id.call(this,t,e,d,n,p,a||ku.stringFilter,l):(h=new bd(this._pt,t,e,+d||0,n-(d||0),"boolean"==typeof c?vd:gd,0,p),l&&(h.fp=l),o&&h.modifier(o,this,t),this._pt=h)},sd=function(t,e,i,n,s,r){var o,a,l,u;if(yh[t]&&!1!==(o=new yh[t]).init(s,o.rawVars?e[t]:function(t,e,i,n,s){if(Nu(t)&&(t=ad(t,s,e,i,n)),!Yu(t)||t.style&&t.nodeType||Ku(t)||qu(t))return zu(t)?ad(t,s,e,i,n):t;var r,o={};for(r in t)o[r]=ad(t[r],s,e,i,n);return o}(e[t],n,s,r,i),i,n,r)&&(i._pt=a=new bd(i._pt,s,t,0,1,o.render,o,0,o.priority),i!==au))for(l=i._ptLookup[i._targets.indexOf(s)],u=o._props.length;u--;)l[o._props[u]]=a;return o},rd=function t(e,i,n){var s,r,o,a,l,u,h,c,d,p,f,m,g,v=e.vars,y=v.ease,_=v.startAt,x=v.immediateRender,w=v.lazy,T=v.onUpdate,S=v.runBackwards,b=v.yoyoEase,E=v.keyframes,P=v.autoRevert,A=e._dur,M=e._startAt,C=e._targets,k=e.parent,D=k&&"nested"===k.data?k.vars.targets:C,R="auto"===e._overwrite&&!Ql,O=e.timeline;if(O&&(!E||!y)&&(y="none"),e._ease=Hc(y,Du.ease),e._yEase=b?Yc(Hc(!0===b?y:b,Du.ease)):0,b&&e._yoyo&&!e._repeat&&(b=e._yEase,e._yEase=e._ease,e._ease=b),e._from=!O&&!!v.runBackwards,!O||E&&!v.stagger){if(m=(c=C[0]?bh(C[0]).harness:0)&&v[c.prop],s=Ih(v,mh),M&&(M._zTime<0&&M.progress(1),i<0&&S&&x&&!P?M.render(-1,!0):M.revert(S&&A?ph:dh),M._lazy=0),_){if(Uh(e._startAt=hd.set(C,Fh({data:"isStart",overwrite:!1,parent:k,immediateRender:!0,lazy:!M&&Xu(w),startAt:null,delay:0,onUpdate:T&&function(){return Ec(e,"onUpdate")},stagger:0},_))),e._startAt._dp=0,e._startAt._sat=e,i<0&&(Jl||!x&&!P)&&e._startAt.revert(ph),x&&A&&i<=0&&n<=0)return void(i&&(e._zTime=i))}else if(S&&A&&!M)if(i&&(x=!1),o=Fh({overwrite:!1,data:"isFromStart",lazy:x&&!M&&Xu(w),immediateRender:x,stagger:0,parent:k},s),m&&(o[c.prop]=m),Uh(e._startAt=hd.set(C,o)),e._startAt._dp=0,e._startAt._sat=e,i<0&&(Jl?e._startAt.revert(ph):e._startAt.render(-1,!0)),e._zTime=i,x){if(!i)return}else t(e._startAt,Ou,Ou);for(e._pt=e._ptCache=0,w=A&&Xu(w)||w&&!A,r=0;r<C.length;r++){if(h=(l=C[r])._gsap||Sh(C)[r]._gsap,e._ptLookup[r]=p={},vh[h.id]&&gh.length&&Dh(),f=D===C?r:D.indexOf(l),c&&!1!==(d=new c).init(l,m||s,e,f,D)&&(e._pt=a=new bd(e._pt,l,d.name,0,1,d.render,d,0,d.priority),d._props.forEach(function(t){p[t]=a}),d.priority&&(u=1)),!c||m)for(o in s)yh[o]&&(d=sd(o,s,e,f,l,D))?d.priority&&(u=1):p[o]=a=nd.call(e,l,o,"get",s[o],f,D,0,v.stringFilter);e._op&&e._op[r]&&e.kill(l,e._op[r]),R&&e._pt&&(td=e,eu.killTweensOf(l,p,e.globalTime(i)),g=!e.parent,td=0),e._pt&&w&&(vh[h.id]=1)}u&&Sd(e),e._onInit&&e._onInit(e)}e._onUpdate=T,e._initted=(!e._op||e._pt)&&!g,E&&i<=0&&O.render(Ru,!0,!0)},od=function(t,e,i,n){var s,r,o=e.ease||n||"power1.inOut";if(Ku(e))r=i[t]||(i[t]=[]),e.forEach(function(t,i){return r.push({t:i/(e.length-1)*100,v:t,e:o})});else for(s in e)r=i[s]||(i[s]=[]),"ease"===s||r.push({t:parseFloat(t),v:e[s],e:o})},ad=function(t,e,i,n,s){return Nu(t)?t.call(e,i,n,s):zu(t)&&~t.indexOf("random(")?Tc(t):t},ld=Th+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",ud={};Ph(ld+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return ud[t]=1});var hd=function(t){function e(e,i,n,s){var r;"number"==typeof i&&(n.duration=i,i=n,n=null);var o,a,l,u,h,c,d,p,f=(r=t.call(this,s?i:zh(i))||this).vars,m=f.duration,g=f.delay,v=f.immediateRender,y=f.stagger,_=f.overwrite,x=f.keyframes,w=f.defaults,T=f.scrollTrigger,S=f.yoyoEase,b=i.parent||eu,E=(Ku(e)||qu(e)?Wu(e[0]):"length"in i)?[e]:fc(e);if(r._targets=E.length?Sh(E):uh(0,!ku.nullTargetWarn)||[],r._ptLookup=[],r._overwrite=_,x||y||$u(m)||$u(g)){if(i=r.vars,(o=r.timeline=new Jc({data:"nested",defaults:w||{},targets:b&&"nested"===b.data?b.vars.targets:E})).kill(),o.parent=o._dp=Gl(r),o._start=0,y||$u(m)||$u(g)){if(u=E.length,d=y&&vc(y),Yu(y))for(h in y)~ld.indexOf(h)&&(p||(p={}),p[h]=y[h]);for(a=0;a<u;a++)(l=Ih(i,ud)).stagger=0,S&&(l.yoyoEase=S),p&&Bh(l,p),c=E[a],l.duration=+ad(m,Gl(r),a,c,E),l.delay=(+ad(g,Gl(r),a,c,E)||0)-r._delay,!y&&1===u&&l.delay&&(r._delay=g=l.delay,r._start+=g,l.delay=0),o.to(c,l,d?d(a,c,E):0),o._ease=zc.none;o.duration()?m=g=0:r.timeline=0}else if(x){zh(Fh(o.vars.defaults,{ease:"none"})),o._ease=Hc(x.ease||i.ease||"none");var P,A,M,C=0;if(Ku(x))x.forEach(function(t){return o.to(E,t,">")}),o.duration();else{for(h in l={},x)"ease"===h||"easeEach"===h||od(h,x[h],l,x.easeEach);for(h in l)for(P=l[h].sort(function(t,e){return t.t-e.t}),C=0,a=0;a<P.length;a++)(M={ease:(A=P[a]).e,duration:(A.t-(a?P[a-1].t:0))/100*m})[h]=A.v,o.to(E,M,C),C+=M.duration;o.duration()<m&&o.to({},{duration:m-o.duration()})}}m||r.duration(m=o.duration())}else r.timeline=0;return!0!==_||Ql||(td=Gl(r),eu.killTweensOf(E),td=0),Jh(b,Gl(r),n),i.reversed&&r.reverse(),i.paused&&r.paused(!0),(v||!m&&!x&&r._start===Mh(b._time)&&Xu(v)&&Hh(Gl(r))&&"nested"!==b.data)&&(r._tTime=-1e-8,r.render(Math.max(0,-g)||0)),T&&tc(Gl(r),T),r}Zl(e,t);var i=e.prototype;return i.render=function(t,e,i){var n,s,r,o,a,l,u,h,c,d=this._time,p=this._tDur,f=this._dur,m=t<0,g=t>p-Ou&&!m?p:t<Ou?0:t;if(f){if(g!==this._tTime||!t||i||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(n=g,h=this.timeline,this._repeat){if(o=f+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*o+t,e,i);if(n=Mh(g%o),g===p?(r=this._repeat,n=f):(r=~~(a=Mh(g/o)))&&r===a?(n=f,r--):n>f&&(n=f),(l=this._yoyo&&1&r)&&(c=this._yEase,n=f-n),a=qh(this._tTime,o),n===d&&!i&&this._initted&&r===a)return this._tTime=g,this;r!==a&&(h&&this._yEase&&Xc(h,l),this.vars.repeatRefresh&&!l&&!this._lock&&n!==o&&this._initted&&(this._lock=i=1,this.render(Mh(o*r),!0).invalidate()._lock=0))}if(!this._initted){if(ec(this,m?t:n,i,e,g))return this._tTime=0,this;if(!(d===this._time||i&&this.vars.repeatRefresh&&r!==a))return this;if(f!==this._dur)return this.render(t,e,i)}if(this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=u=(c||this._ease)(n/f),this._from&&(this.ratio=u=1-u),!d&&g&&!e&&!a&&(Ec(this,"onStart"),this._tTime!==g))return this;for(s=this._pt;s;)s.r(u,s.d),s=s._next;h&&h.render(t<0?t:h._dur*h._ease(n/this._dur),e,i)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&Xh(this,t,0,i),Ec(this,"onUpdate")),this._repeat&&r!==a&&this.vars.onRepeat&&!e&&this.parent&&Ec(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Xh(this,t,0,!0),(t||!f)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Uh(this,1),e||m&&!d||!(g||d||l)||(Ec(this,g===p?"onComplete":"onReverseComplete",!0),this._prom&&!(g<p&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,i,n){var s,r,o,a=t.ratio,l=e<0||!e&&(!t._start&&ic(t)&&(t._initted||!nc(t))||(t._ts<0||t._dp._ts<0)&&!nc(t))?0:1,u=t._rDelay,h=0;if(u&&t._repeat&&(h=hc(0,t._tDur,e),r=qh(h,u),t._yoyo&&1&r&&(l=1-l),r!==qh(t._tTime,u)&&(a=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==a||Jl||n||t._zTime===Ou||!e&&t._zTime){if(!t._initted&&ec(t,e,n,i,h))return;for(o=t._zTime,t._zTime=e||(i?Ou:0),i||(i=e&&!o),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=h,s=t._pt;s;)s.r(l,s.d),s=s._next;e<0&&Xh(t,e,0,!0),t._onUpdate&&!i&&Ec(t,"onUpdate"),h&&t._repeat&&!i&&t.parent&&Ec(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Uh(t,1),i||Jl||(Ec(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,i);return this},i.targets=function(){return this._targets},i.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},i.resetTo=function(t,e,i,n,s){lu||jc.wake(),this._ts||this.play();
vendor: 31,445 bytes, lines 9-18
9var r=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||rd(this,r),function(t,e,i,n,s,r,o,a){var l,u,h,c,d=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!d)for(d=t._ptCache[e]=[],h=t._ptLookup,c=t._targets.length;c--;){if((l=h[c][e])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return ed=1,t.vars[e]="+=0",rd(t,o),ed=0,a?uh():1;d.push(l)}for(c=d.length;c--;)(l=(u=d[c])._pt||u).s=!n&&0!==n||s?l.s+(n||0)+r*l.c:n,l.c=i-l.s,u.e&&(u.e=Ah(i)+cc(u.e)),u.b&&(u.b=l.s+cc(u.b))}(this,t,e,i,n,this._ease(r/this._dur),r,s)?this.resetTo(t,e,i,n,1):(Zh(this,0),this.parent||Nh(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},i.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Pc(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Jl),this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,td&&!0!==td.vars.overwrite)._first||Pc(this),this.parent&&i!==this.timeline.totalDuration()&&sc(this,this._dur*this.timeline._tDur/i,0,1),this}var n,s,r,o,a,l,u,h=this._targets,c=t?fc(t):h,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var i=t.length,n=i===e.length;n&&i--&&t[i]===e[i];);return i<0}(h,c))return"all"===e&&(this._pt=0),Pc(this);for(n=this._op=this._op||[],"all"!==e&&(zu(e)&&(a={},Ph(e,function(t){return a[t]=1}),e=a),e=function(t,e){var i,n,s,r,o=t[0]?bh(t[0]).harness:0,a=o&&o.aliases;if(!a)return e;for(n in i=Bh({},e),a)if(n in i)for(s=(r=a[n].split(",")).length;s--;)i[r[s]]=i[n];return i}(h,e)),u=h.length;u--;)if(~c.indexOf(h[u]))for(a in s=d[u],"all"===e?(n[u]=e,o=s,r={}):(r=n[u]=n[u]||{},o=e),o)(l=s&&s[a])&&("kill"in l.d&&!0!==l.d.kill(a)||Wh(this,l,"_pt"),delete s[a]),"all"!==r&&(r[a]=1);return this._initted&&!this._pt&&p&&Pc(this),this},e.to=function(t,i){return new e(t,i,arguments[2])},e.from=function(t,e){return lc(1,arguments)},e.delayedCall=function(t,i,n,s){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:i,onReverseComplete:i,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:s})},e.fromTo=function(t,e,i){return lc(2,arguments)},e.set=function(t,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(t,i)},e.killTweensOf=function(t,e,i){return eu.killTweensOf(t,e,i)},e}(Qc);Fh(hd.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ph("staggerTo,staggerFrom,staggerFromTo",function(t){hd[t]=function(){var e=new Jc,i=dc.call(arguments,0);return i.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,i)}});var cd=function(t,e,i){return t[e]=i},dd=function(t,e,i){return t[e](i)},pd=function(t,e,i,n){return t[e](n.fp,i)},fd=function(t,e,i){return t.setAttribute(e,i)},md=function(t,e){return Nu(t[e])?dd:Uu(t[e])&&t.setAttribute?fd:cd},gd=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},vd=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},yd=function(t,e){var i=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;i;)n=i.p+(i.m?i.m(i.s+i.c*t):Math.round(1e4*(i.s+i.c*t))/1e4)+n,i=i._next;n+=e.c}e.set(e.t,e.p,n,e)},_d=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},xd=function(t,e,i,n){for(var s,r=this._pt;r;)s=r._next,r.p===n&&r.modifier(t,e,i),r=s},wd=function(t){for(var e,i,n=this._pt;n;)i=n._next,n.p===t&&!n.op||n.op===t?Wh(this,n,"_pt"):n.dep||(e=1),n=i;return!e},Td=function(t,e,i,n){n.mSet(t,e,n.m.call(n.tween,i,n.mt),n)},Sd=function(t){for(var e,i,n,s,r=t._pt;r;){for(e=r._next,i=n;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:s)?r._prev._next=r:n=r,(r._next=i)?i._prev=r:s=r,r=e}t._pt=n},bd=function(){function t(t,e,i,n,s,r,o,a,l){this.t=e,this.s=n,this.c=s,this.p=i,this.r=r||gd,this.d=o||this,this.set=a||cd,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,i){this.mSet=this.mSet||this.set,this.set=Td,this.m=t,this.mt=i,this.tween=e},t}();Ph(Th+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return mh[t]=1}),rh.TweenMax=rh.TweenLite=hd,rh.TimelineLite=rh.TimelineMax=Jc,eu=new Jc({sortChildren:!1,defaults:Du,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),ku.stringFilter=Bc;var Ed=[],Pd={},Ad=[],Md=0,Cd=0,kd=function(t){return(Pd[t]||Ad).map(function(t){return t()})},Dd=function(){var t=Date.now(),e=[];t-Md>2&&(kd("matchMediaInit"),Ed.forEach(function(t){var i,n,s,r,o=t.queries,a=t.conditions;for(n in o)(i=iu.matchMedia(o[n]).matches)&&(s=1),i!==a[n]&&(a[n]=i,r=1);r&&(t.revert(),s&&e.push(t))}),kd("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),Md=t,kd("matchMedia"))},Rd=function(){function t(t,e){this.selector=e&&mc(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Cd++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,i){Nu(t)&&(i=e,e=t,t=Nu);var n=this,s=function(){var t,s=tu,r=n.selector;return s&&s!==n&&s.data.push(n),i&&(n.selector=mc(i)),tu=n,t=e.apply(n,arguments),Nu(t)&&n._r.push(t),tu=s,n.selector=r,n.isReverted=!1,t};return n.last=s,t===Nu?s(n,function(t){return n.add(null,t)}):t?n[t]=s:s},e.ignore=function(t){var e=tu;tu=null,t(this),tu=e},e.getTweens=function(){var e=[];return this.data.forEach(function(i){return i instanceof t?e.push.apply(e,i.getTweens()):i instanceof hd&&!(i.parent&&"nested"===i.parent.data)&&e.push(i)}),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var i=this;if(t?function(){for(var e,n=i.getTweens(),s=i.data.length;s--;)"isFlip"===(e=i.data[s]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach(function(t){return n.splice(n.indexOf(t),1)}));for(n.map(function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}}).sort(function(t,e){return e.g-t.g||-1/0}).forEach(function(e){return e.t.revert(t)}),s=i.data.length;s--;)(e=i.data[s])instanceof Jc?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof hd)&&e.revert&&e.revert(t);i._r.forEach(function(e){return e(t,i)}),i.isReverted=!0}():this.data.forEach(function(t){return t.kill&&t.kill()}),this.clear(),e)for(var n=Ed.length;n--;)Ed[n].id===this.id&&Ed.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),Od=function(){function t(t){this.contexts=[],this.scope=t,tu&&tu.data.push(this)}var e=t.prototype;return e.add=function(t,e,i){Yu(t)||(t={matches:t});var n,s,r,o=new Rd(0,i||this.scope),a=o.conditions={};for(s in tu&&!o.selector&&(o.selector=tu.selector),this.contexts.push(o),e=o.add("onMatch",e),o.queries=t,t)"all"===s?r=1:(n=iu.matchMedia(t[s]))&&(Ed.indexOf(o)<0&&Ed.push(o),(a[s]=n.matches)&&(r=1),n.addListener?n.addListener(Dd):n.addEventListener("change",Dd));return r&&e(o,function(t){return o.add(null,t)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(e){return e.kill(t,!0)})},t}(),Vd={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach(function(t){return Mc(t)})},timeline:function(t){return new Jc(t)},getTweensOf:function(t,e){return eu.getTweensOf(t,e)},getProperty:function(t,e,i,n){zu(t)&&(t=fc(t)[0]);var s=bh(t||{}).get,r=i?Lh:Vh;return"native"===i&&(i=""),t?e?r((yh[e]&&yh[e].get||s)(t,e,i,n)):function(e,i,n){return r((yh[e]&&yh[e].get||s)(t,e,i,n))}:t},quickSetter:function(t,e,i){if((t=fc(t)).length>1){var n=t.map(function(t){return Bd.quickSetter(t,e,i)}),s=n.length;return function(t){for(var e=s;e--;)n[e](t)}}t=t[0]||{};var r=yh[e],o=bh(t),a=o.harness&&(o.harness.aliases||{})[e]||e,l=r?function(e){var n=new r;au._pt=0,n.init(t,i?e+i:e,au,0,[t]),n.render(1,n),au._pt&&_d(1,au)}:o.set(t,a);return r?l:function(e){return l(t,a,i?e+i:e,o,1)}},quickTo:function(t,e,i){var n,s=Bd.to(t,Fh(((n={})[e]="+=0.1",n.paused=!0,n.stagger=0,n),i||{})),r=function(t,i,n){return s.resetTo(e,t,i,n)};return r.tween=s,r},isTweening:function(t){return eu.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Hc(t.ease,Du.ease)),jh(Du,t||{})},config:function(t){return jh(ku,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,n=t.plugins,s=t.defaults,r=t.extendTimeline;(n||"").split(",").forEach(function(t){return t&&!yh[t]&&!rh[t]&&uh()}),_h[e]=function(t,e,n){return i(fc(t),Fh(e||{},s),n)},r&&(Jc.prototype[e]=function(t,i,n){return this.add(_h[e](t,Yu(i)?i:(n=i)&&{},this),n)})},registerEase:function(t,e){zc[t]=Hc(e)},parseEase:function(t,e){return arguments.length?Hc(t,e):zc},getById:function(t){return eu.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var i,n,s=new Jc(t);for(s.smoothChildTiming=Xu(t.smoothChildTiming),eu.remove(s),s._dp=0,s._time=s._tTime=eu._time,i=eu._first;i;)n=i._next,!e&&!i._dur&&i instanceof hd&&i.vars.onComplete===i._targets[0]||Jh(s,i,i._start-i._delay),i=n;return Jh(eu,s,0),s},context:function(t,e){return t?new Rd(t,e):tu},matchMedia:function(t){return new Od(t)},matchMediaRefresh:function(){return Ed.forEach(function(t){var e,i,n=t.conditions;for(i in n)n[i]&&(n[i]=!1,e=1);e&&t.revert()})||Dd()},addEventListener:function(t,e){var i=Pd[t]||(Pd[t]=[]);~i.indexOf(e)||i.push(e)},removeEventListener:function(t,e){var i=Pd[t],n=i&&i.indexOf(e);n>=0&&i.splice(n,1)},utils:{wrap:function t(e,i,n){var s=i-e;return Ku(e)?wc(e,t(0,e.length),i):uc(n,function(t){return(s+(t-e)%s)%s+e})},wrapYoyo:function t(e,i,n){var s=i-e,r=2*s;return Ku(e)?wc(e,t(0,e.length-1),i):uc(n,function(t){return e+((t=(r+(t-e)%r)%r||0)>s?r-t:t)})},distribute:vc,random:xc,snap:_c,normalize:function(t,e,i){return Sc(t,e,0,1,i)},getUnit:cc,clamp:function(t,e,i){return uc(i,function(i){return hc(t,e,i)})},splitColor:Rc,toArray:fc,selector:mc,mapRange:Sc,pipe:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function(t,e){return function(i){return t(parseFloat(i))+(e||cc(i))}},interpolate:function t(e,i,n,s){var r=isNaN(e+i)?0:function(t){return(1-t)*e+t*i};if(!r){var o,a,l,u,h,c=zu(e),d={};if(!0===n&&(s=1)&&(n=null),c)e={p:e},i={p:i};else if(Ku(e)&&!Ku(i)){for(l=[],u=e.length,h=u-2,a=1;a<u;a++)l.push(t(e[a-1],e[a]));u--,r=function(t){t*=u;var e=Math.min(h,~~t);return l[e](t-e)},n=i}else s||(e=Bh(Ku(e)?[]:{},e));if(!l){for(o in i)nd.call(d,e,o,"get",i[o]);r=function(t){return _d(t,d)||(c?e.p:e)}}}return uc(n,r)},shuffle:gc},install:ah,effects:_h,ticker:jc,updateRoot:Jc.updateRoot,plugins:yh,globalTimeline:eu,core:{PropTween:bd,globals:hh,Tween:hd,Timeline:Jc,Animation:Qc,getCache:bh,_removeLinkedListItem:Wh,reverting:function(){return Jl},context:function(t){return t&&tu&&(tu.data.push(t),t._ctx=tu),tu},suppressOverwrites:function(t){return Ql=t}}};Ph("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Vd[t]=hd[t]}),jc.add(Jc.updateRoot),au=Vd.to({},{duration:0});var Ld=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},Fd=function(t,e){return{name:t,headless:1,rawVars:1,init:function(t,i,n){n._onInit=function(t){var n,s;if(zu(i)&&(n={},Ph(i,function(t){return n[t]=1}),i=n),e){for(s in n={},i)n[s]=e(i[s]);i=n}!function(t,e){var i,n,s,r=t._targets;for(i in e)for(n=r.length;n--;)(s=t._ptLookup[n][i])&&(s=s.d)&&(s._pt&&(s=Ld(s,i)),s&&s.modifier&&s.modifier(e[i],t,r[n],i))}(t,i)}}}},Bd=Vd.registerPlugin({name:"attr",init:function(t,e,i,n,s){var r,o,a;for(r in this.tween=i,e)a=t.getAttribute(r)||"",(o=this.add(t,"setAttribute",(a||0)+"",e[r],n,s,0,0,r)).op=r,o.b=a,this._props.push(r)},render:function(t,e){for(var i=e._pt;i;)Jl?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",headless:1,init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i],0,0,0,0,0,1)}},Fd("roundProps",yc),Fd("modifiers"),Fd("snap",_c))||Vd;hd.version=Jc.version=Bd.version="3.14.2",ru=1,Hu()&&Ic(),zc.Power0,zc.Power1,zc.Power2,zc.Power3,zc.Power4,zc.Linear,zc.Quad,zc.Cubic,zc.Quart,zc.Quint,zc.Strong,zc.Elastic,zc.Back,zc.SteppedEase,zc.Bounce,zc.Sine,zc.Expo,zc.Circ; 10/*! 11 * CSSPlugin 3.14.2 12 * https://gsap.com 13 * 14 * Copyright 2008-2025, GreenSock. All rights reserved. 15 * Subject to the terms at https://gsap.com/standard-license 16 * @author: Jack Doyle, [email protected] 17*/ 18var jd,Id,zd,Nd,Wd,Ud,Yd,Xd,Hd={},$d=180/Math.PI,qd=Math.PI/180,Kd=Math.atan2,Gd=/([A-Z])/g,Zd=/(left|right|width|margin|padding|x)/i,Qd=/[\s,\(]\S/,Jd={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},tp=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},ep=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},ip=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},np=function(t,e){return e.set(e.t,e.p,1===t?e.e:t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},sp=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},rp=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},op=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},ap=function(t,e,i){return t.style[e]=i},lp=function(t,e,i){return t.style.setProperty(e,i)},up=function(t,e,i){return t._gsap[e]=i},hp=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},cp=function(t,e,i,n,s){var r=t._gsap;r.scaleX=r.scaleY=i,r.renderTransform(s,r)},dp=function(t,e,i,n,s){var r=t._gsap;r[e]=i,r.renderTransform(s,r)},pp="transform",fp=pp+"Origin",mp=function t(e,i){var n=this,s=this.target,r=s.style,o=s._gsap;if(e in Hd&&r){if(this.tfm=this.tfm||{},"transform"===e)return Jd.transform.split(",").forEach(function(e){return t.call(n,e,i)});if(~(e=Jd[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=Op(s,t)}):this.tfm[e]=o.x?o[e]:Op(s,e),e===fp&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(pp)>=0)return;o.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(fp,i,"")),e=pp}(r||i)&&this.props.push(e,i,r[e])},gp=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},vp=function(){var t,e,i=this.props,n=this.target,s=n.style,r=n._gsap;for(t=0;t<i.length;t+=3)i[t+1]?2===i[t+1]?n[i[t]](i[t+2]):n[i[t]]=i[t+2]:i[t+2]?s[i[t]]=i[t+2]:s.removeProperty("--"===i[t].substr(0,2)?i[t]:i[t].replace(Gd,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)r[e]=this.tfm[e];r.svg&&(r.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(t=Yd())&&t.isStart||s[pp]||(gp(s),r.zOrigin&&s[fp]&&(s[fp]+=" "+r.zOrigin+"px",r.zOrigin=0,r.renderTransform()),r.uncache=1)}},yp=function(t,e){var i={target:t,props:[],revert:vp,save:mp};return t._gsap||Bd.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(t){return i.save(t)}),i},_p=function(t,e){var i=Id.createElementNS?Id.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Id.createElement(t);return i&&i.style?i:Id.createElement(t)},xp=function t(e,i,n){var s=getComputedStyle(e);return s[i]||s.getPropertyValue(i.replace(Gd,"-$1").toLowerCase())||s.getPropertyValue(i)||!n&&t(e,Tp(i)||i,1)||""},wp="O,Moz,ms,Ms,Webkit".split(","),Tp=function(t,e,i){var n=(e||Wd).style,s=5;if(t in n&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(wp[s]+t in n););return s<0?null:(3===s?"ms":s>=0?wp[s]:"")+t},Sp=function(){"undefined"!=typeof window&&window.document&&(jd=window,Id=jd.document,zd=Id.documentElement,Wd=_p("div")||{style:{}},_p("div"),pp=Tp(pp),fp=pp+"Origin",Wd.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Xd=!!Tp("perspective"),Yd=Bd.core.reverting,Nd=1)},bp=function(t){var e,i=t.ownerSVGElement,n=_p("svg",i&&i.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=t.cloneNode(!0);s.style.display="block",n.appendChild(s),zd.appendChild(n);try{e=s.getBBox()}catch(yf){}return n.removeChild(s),zd.removeChild(n),e},Ep=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},Pp=function(t){var e,i;try{e=t.getBBox()}catch(n){e=bp(t),i=1}return e&&(e.width||e.height)||i||(e=bp(t)),!e||e.width||e.x||e.y?e:{x:+Ep(t,["x","cx","x1"])||0,y:+Ep(t,["y","cy","y1"])||0,width:0,height:0}},Ap=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Pp(t))},Mp=function(t,e){if(e){var i,n=t.style;e in Hd&&e!==fp&&(e=pp),n.removeProperty?("ms"!==(i=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===i?e:e.replace(Gd,"-$1").toLowerCase())):n.removeAttribute(e)}},Cp=function(t,e,i,n,s,r){var o=new bd(t._pt,e,i,0,1,r?op:rp);return t._pt=o,o.b=n,o.e=s,t._props.push(i),o},kp={deg:1,rad:1,turn:1},Dp={grid:1,flex:1},Rp=function t(e,i,n,s){var r,o,a,l,u=parseFloat(n)||0,h=(n+"").trim().substr((u+"").length)||"px",c=Wd.style,d=Zd.test(i),p="svg"===e.tagName.toLowerCase(),f=(p?"client":"offset")+(d?"Width":"Height"),m=100,g="px"===s,v="%"===s;if(s===h||!u||kp[s]||kp[h])return u;if("px"!==h&&!g&&(u=t(e,i,n,"px")),l=e.getCTM&&Ap(e),(v||"%"===h)&&(Hd[i]||~i.indexOf("adius")))return r=l?e.getBBox()[d?"width":"height"]:e[f],Ah(v?u/r*m:u/100*r);if(c[d?"width":"height"]=m+(g?h:s),o="rem"!==s&&~i.indexOf("adius")||"em"===s&&e.appendChild&&!p?e:e.parentNode,l&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==Id&&o.appendChild||(o=Id.body),(a=o._gsap)&&v&&a.width&&d&&a.time===jc.time&&!a.uncache)return Ah(u/a.width*m);if(!v||"height"!==i&&"width"!==i)(v||"%"===h)&&!Dp[xp(o,"display")]&&(c.position=xp(e,"position")),o===e&&(c.position="static"),o.appendChild(Wd),r=Wd[f],o.removeChild(Wd),c.position="absolute";else{var y=e.style[i];e.style[i]=m+s,r=e[f],y?e.style[i]=y:Mp(e,i)}return d&&v&&((a=bh(o)).time=jc.time,a.width=o[f]),Ah(g?r*u/m:r&&u?m/r*u:0)},Op=function(t,e,i,n){var s;return Nd||Sp(),e in Jd&&"transform"!==e&&~(e=Jd[e]).indexOf(",")&&(e=e.split(",")[0]),Hd[e]&&"transform"!==e?(s=Xp(t,n),s="transformOrigin"!==e?s[e]:s.svg?s.origin:Hp(xp(t,fp))+" "+s.zOrigin+"px"):(!(s=t.style[e])||"auto"===s||n||~(s+"").indexOf("calc("))&&(s=jp[e]&&jp[e](t,e,i)||xp(t,e)||Eh(t,e)||("opacity"===e?1:0)),i&&!~(s+"").trim().indexOf(" ")?Rp(t,e,s,i)+i:s},Vp=function(t,e,i,n){if(!i||"none"===i){var s=Tp(e,t,1),r=s&&xp(t,s,1);r&&r!==i?(e=s,i=r):"borderColor"===e&&(i=xp(t,"borderTopColor"))}var o,a,l,u,h,c,d,p,f,m,g,v=new bd(this._pt,t.style,e,0,1,yd),y=0,_=0;if(v.b=i,v.e=n,i+="","var(--"===(n+="").substring(0,6)&&(n=xp(t,n.substring(4,n.indexOf(")")))),"auto"===n&&(c=t.style[e],t.style[e]=n,n=xp(t,e)||n,c?t.style[e]=c:Mp(t,e)),Bc(o=[i,n]),n=o[1],l=(i=o[0]).match(th)||[],(n.match(th)||[]).length){for(;a=th.exec(n);)d=a[0],f=n.substring(y,a.index),h?h=(h+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(h=1),d!==(c=l[_++]||"")&&(u=parseFloat(c)||0,g=c.substr((u+"").length),"="===d.charAt(1)&&(d=Ch(u,d)+g),p=parseFloat(d),m=d.substr((p+"").length),y=th.lastIndex-m.length,m||(m=m||ku.units[e]||g,y===n.length&&(n+=m,v.e+=m)),g!==m&&(u=Rp(t,e,c,m)||0),v._pt={_next:v._pt,p:f||1===_?f:",",s:u,c:p-u,m:h&&h<4||"zIndex"===e?Math.round:0});v.c=y<n.length?n.substring(y,n.length):""}else v.r="display"===e&&"none"===n?op:rp;return ih.test(n)&&(v.e=0),this._pt=v,v},Lp={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Fp=function(t){var e=t.split(" "),i=e[0],n=e[1]||"50%";return"top"!==i&&"bottom"!==i&&"left"!==n&&"right"!==n||(t=i,i=n,n=t),e[0]=Lp[i]||i,e[1]=Lp[n]||n,e.join(" ")},Bp=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i,n,s,r=e.t,o=r.style,a=e.u,l=r._gsap;if("all"===a||!0===a)o.cssText="",n=1;else for(s=(a=a.split(",")).length;--s>-1;)i=a[s],Hd[i]&&(n=1,i="transformOrigin"===i?fp:pp),Mp(r,i);n&&(Mp(r,pp),l&&(l.svg&&r.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",Xp(r,1),l.uncache=1,gp(o)))}},jp={clearProps:function(t,e,i,n,s){if("isFromStart"!==s.data){var r=t._pt=new bd(t._pt,e,i,0,0,Bp);return r.u=n,r.pr=-10,r.tween=s,t._props.push(i),1}}},Ip=[1,0,0,1,0,0],zp={},Np=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Wp=function(t){var e=xp(t,pp);return Np(e)?Ip:e.substr(7).match(Ju).map(Ah)},Up=function(t,e){var i,n,s,r,o=t._gsap||bh(t),a=t.style,l=Wp(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(s=t.transform.baseVal.consolidate().matrix).a,s.b,s.c,s.d,s.e,s.f]).join(",")?Ip:l:(l!==Ip||t.offsetParent||t===zd||o.svg||(s=a.display,a.display="block",(i=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(r=1,n=t.nextElementSibling,zd.appendChild(t)),l=Wp(t),s?a.display=s:Mp(t,"display"),r&&(n?i.insertBefore(t,n):i?i.appendChild(t):zd.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Yp=function(t,e,i,n,s,r){var o,a,l,u=t._gsap,h=s||Up(t,!0),c=u.xOrigin||0,d=u.yOrigin||0,p=u.xOffset||0,f=u.yOffset||0,m=h[0],g=h[1],v=h[2],y=h[3],_=h[4],x=h[5],w=e.split(" "),T=parseFloat(w[0])||0,S=parseFloat(w[1])||0;i?h!==Ip&&(a=m*y-g*v)&&(l=T*(-g/a)+S*(m/a)-(m*x-g*_)/a,T=T*(y/a)+S*(-v/a)+(v*x-y*_)/a,S=l):(T=(o=Pp(t)).x+(~w[0].indexOf("%")?T/100*o.width:T),S=o.y+(~(w[1]||w[0]).indexOf("%")?S/100*o.height:S)),n||!1!==n&&u.smooth?(_=T-c,x=S-d,u.xOffset=p+(_*m+x*v)-_,u.yOffset=f+(_*g+x*y)-x):u.xOffset=u.yOffset=0,u.xOrigin=T,u.yOrigin=S,u.smooth=!!n,u.origin=e,u.originIsAbsolute=!!i,t.style[fp]="0px 0px",r&&(Cp(r,u,"xOrigin",c,T),Cp(r,u,"yOrigin",d,S),Cp(r,u,"xOffset",p,u.xOffset),Cp(r,u,"yOffset",f,u.yOffset)),t.setAttribute("data-svg-origin",T+" "+S)},Xp=function(t,e){var i=t._gsap||new Zc(t);if("x"in i&&!e&&!i.uncache)return i;var n,s,r,o,a,l,u,h,c,d,p,f,m,g,v,y,_,x,w,T,S,b,E,P,A,M,C,k,D,R,O,V,L=t.style,F=i.scaleX<0,B="px",j="deg",I=getComputedStyle(t),z=xp(t,fp)||"0";return n=s=r=l=u=h=c=d=p=0,o=a=1,i.svg=!(!t.getCTM||!Ap(t)),I.translate&&("none"===I.translate&&"none"===I.scale&&"none"===I.rotate||(L[pp]=("none"!==I.translate?"translate3d("+(I.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==I.rotate?"rotate("+I.rotate+") ":"")+("none"!==I.scale?"scale("+I.scale.split(" ").join(",")+") ":"")+("none"!==I[pp]?I[pp]:"")),L.scale=L.rotate=L.translate="none"),g=Up(t,i.svg),i.svg&&(i.uncache?(A=t.getBBox(),z=i.xOrigin-A.x+"px "+(i.yOrigin-A.y)+"px",P=""):P=!e&&t.getAttribute("data-svg-origin"),Yp(t,P||z,!!P||i.originIsAbsolute,!1!==i.smooth,g)),f=i.xOrigin||0,m=i.yOrigin||0,g!==Ip&&(x=g[0],w=g[1],T=g[2],S=g[3],n=b=g[4],s=E=g[5],6===g.length?(o=Math.sqrt(x*x+w*w),a=Math.sqrt(S*S+T*T),l=x||w?Kd(w,x)*$d:0,(c=T||S?Kd(T,S)*$d+l:0)&&(a*=Math.abs(Math.cos(c*qd))),i.svg&&(n-=f-(f*x+m*T),s-=m-(f*w+m*S))):(V=g[6],R=g[7],C=g[8],k=g[9],D=g[10],O=g[11],n=g[12],s=g[13],r=g[14],u=(v=Kd(V,D))*$d,v&&(P=b*(y=Math.cos(-v))+C*(_=Math.sin(-v)),A=E*y+k*_,M=V*y+D*_,C=b*-_+C*y,k=E*-_+k*y,D=V*-_+D*y,O=R*-_+O*y,b=P,E=A,V=M),h=(v=Kd(-T,D))*$d,v&&(y=Math.cos(-v),O=S*(_=Math.sin(-v))+O*y,x=P=x*y-C*_,w=A=w*y-k*_,T=M=T*y-D*_),l=(v=Kd(w,x))*$d,v&&(P=x*(y=Math.cos(v))+w*(_=Math.sin(v)),A=b*y+E*_,w=w*y-x*_,E=E*y-b*_,x=P,b=A),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,h=180-h),o=Ah(Math.sqrt(x*x+w*w+T*T)),a=Ah(Math.sqrt(E*E+V*V)),v=Kd(b,E),c=Math.abs(v)>2e-4?v*$d:0,p=O?1/(O<0?-O:O):0),i.svg&&(P=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!Np(xp(t,pp)),P&&t.setAttribute("transform",P))),Math.abs(c)>90&&Math.abs(c)<270&&(F?(o*=-1,c+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,c+=c<=0?180:-180)),e=e||i.uncache,i.x=n-((i.xPercent=n&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+B,i.y=s-((i.yPercent=s&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-s)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+B,i.z=r+B,i.scaleX=Ah(o),i.scaleY=Ah(a),i.rotation=Ah(l)+j,i.rotationX=Ah(u)+j,i.rotationY=Ah(h)+j,i.skewX=c+j,i.skewY=d+j,i.transformPerspective=p+B,(i.zOrigin=parseFloat(z.split(" ")[2])||!e&&i.zOrigin||0)&&(L[fp]=Hp(z)),i.xOffset=i.yOffset=0,i.force3D=ku.force3D,i.renderTransform=i.svg?Jp:Xd?Qp:qp,i.uncache=0,i},Hp=function(t){return(t=t.split(" "))[0]+" "+t[1]},$p=function(t,e,i){var n=cc(e);return Ah(parseFloat(e)+parseFloat(Rp(t,"x",i+"px",n)))+n},qp=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Qp(t,e)},Kp="0deg",Gp="0px",Zp=") ",Qp=function(t,e){var i=e||this,n=i.xPercent,s=i.yPercent,r=i.x,o=i.y,a=i.z,l=i.rotation,u=i.rotationY,h=i.rotationX,c=i.skewX,d=i.skewY,p=i.scaleX,f=i.scaleY,m=i.transformPerspective,g=i.force3D,v=i.target,y=i.zOrigin,_="",x="auto"===g&&t&&1!==t||!0===g;if(y&&(h!==Kp||u!==Kp)){var w,T=parseFloat(u)*qd,S=Math.sin(T),b=Math.cos(T);T=parseFloat(h)*qd,w=Math.cos(T),r=$p(v,r,S*w*-y),o=$p(v,o,-Math.sin(T)*-y),a=$p(v,a,b*w*-y+y)}m!==Gp&&(_+="perspective("+m+Zp),(n||s)&&(_+="translate("+n+"%, "+s+"%) "),(x||r!==Gp||o!==Gp||a!==Gp)&&(_+=a!==Gp||x?"translate3d("+r+", "+o+", "+a+") ":"translate("+r+", "+o+Zp),l!==Kp&&(_+="rotate("+l+Zp),u!==Kp&&(_+="rotateY("+u+Zp),h!==Kp&&(_+="rotateX("+h+Zp),c===Kp&&d===Kp||(_+="skew("+c+", "+d+Zp),1===p&&1===f||(_+="scale("+p+", "+f+Zp),v.style[pp]=_||"translate(0, 0)"},Jp=function(t,e){var i,n,s,r,o,a=e||this,l=a.xPercent,u=a.yPercent,h=a.x,c=a.y,d=a.rotation,p=a.skewX,f=a.skewY,m=a.scaleX,g=a.scaleY,v=a.target,y=a.xOrigin,_=a.yOrigin,x=a.xOffset,w=a.yOffset,T=a.forceCSS,S=parseFloat(h),b=parseFloat(c);d=parseFloat(d),p=parseFloat(p),(f=parseFloat(f))&&(p+=f=parseFloat(f),d+=f),d||p?(d*=qd,p*=qd,i=Math.cos(d)*m,n=Math.sin(d)*m,s=Math.sin(d-p)*-g,r=Math.cos(d-p)*g,p&&(f*=qd,o=Math.tan(p-f),s*=o=Math.sqrt(1+o*o),r*=o,f&&(o=Math.tan(f),i*=o=Math.sqrt(1+o*o),n*=o)),i=Ah(i),n=Ah(n),s=Ah(s),r=Ah(r)):(i=m,r=g,n=s=0),(S&&!~(h+"").indexOf("px")||b&&!~(c+"").indexOf("px"))&&(S=Rp(v,"x",h,"px"),b=Rp(v,"y",c,"px")),(y||_||x||w)&&(S=Ah(S+y-(y*i+_*s)+x),b=Ah(b+_-(y*n+_*r)+w)),(l||u)&&(o=v.getBBox(),S=Ah(S+l/100*o.width),b=Ah(b+u/100*o.height)),o="matrix("+i+","+n+","+s+","+r+","+S+","+b+")",v.setAttribute("transform",o),T&&(v.style[pp]=o)},tf=function(t,e,i,n,s){var r,o,a=360,l=zu(s),u=parseFloat(s)*(l&&~s.indexOf("rad")?$d:1)-n,h=n+u+"deg";return l&&("short"===(r=s.split("_")[1])&&(u%=a)!==u%180&&(u+=u<0?a:-360),"cw"===r&&u<0?u=(u+36e9)%a-~~(u/a)*a:"ccw"===r&&u>0&&(u=(u-36e9)%a-~~(u/a)*a)),t._pt=o=new bd(t._pt,e,i,n,u,ep),o.e=h,o.u="deg",t._props.push(i),o},ef=function(t,e){for(var i in e)t[i]=e[i];return t},nf=function(t,e,i){var n,s,r,o,a,l,u,h=ef({},i._gsap),c=i.style;for(s in h.svg?(r=i.getAttribute("transform"),i.setAttribute("transform",""),c[pp]=e,n=Xp(i,1),Mp(i,pp),i.setAttribute("transform",r)):(r=getComputedStyle(i)[pp],c[pp]=e,n=Xp(i,1),c[pp]=r),Hd)(r=h[s])!==(o=n[s])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(s)<0&&(a=cc(r)!==(u=cc(o))?Rp(i,s,r,u):parseFloat(r),l=parseFloat(o),t._pt=new bd(t._pt,n,s,a,l-a,tp),t._pt.u=u||0,t._props.push(s));ef(n,h)};Ph("padding,margin,Width,Radius",function(t,e){var i="Top",n="Right",s="Bottom",r="Left",o=(e<3?[i,n,s,r]:[i+r,i+n,s+n,s+r]).map(function(i){return e<2?t+i:"border"+i+t});jp[e>1?"border"+t:t]=function(t,e,i,n,s){var r,a;if(arguments.length<4)return r=o.map(function(e){return Op(t,e,i)}),5===(a=r.join(" ")).split(r[0]).length?r[0]:a;r=(n+"").split(" "),a={},o.forEach(function(t,e){return a[t]=r[e]=r[e]||r[(e-1)/2|0]}),t.init(e,a,s)}});var sf,rf,of,af={name:"css",register:Sp,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,n,s){var r,o,a,l,u,h,c,d,p,f,m,g,v,y,_,x,w,T=this._props,S=t.style,b=i.vars.startAt;for(c in Nd||Sp(),this.styles=this.styles||yp(t),x=this.styles.props,this.tween=i,e)if("autoRound"!==c&&(o=e[c],!yh[c]||!sd(c,e,i,n,t,s)))if(u=typeof o,h=jp[c],"function"===u&&(u=typeof(o=o.call(i,n,t,s))),"string"===u&&~o.indexOf("random(")&&(o=Tc(o)),h)h(this,t,c,o,i)&&(_=1);else if("--"===c.substr(0,2))r=(getComputedStyle(t).getPropertyValue(c)+"").trim(),o+="",Lc.lastIndex=0,Lc.test(r)||(d=cc(r),(p=cc(o))?d!==p&&(r=Rp(t,c,r,p)+p):d&&(o+=d)),this.add(S,"setProperty",r,o,n,s,0,0,c),T.push(c),x.push(c,0,S[c]);else if("undefined"!==u){if(b&&c in b?(r="function"==typeof b[c]?b[c].call(i,n,t,s):b[c],zu(r)&&~r.indexOf("random(")&&(r=Tc(r)),cc(r+"")||"auto"===r||(r+=ku.units[c]||cc(Op(t,c))||""),"="===(r+"").charAt(1)&&(r=Op(t,c))):r=Op(t,c),l=parseFloat(r),(f="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),a=parseFloat(o),c in Jd&&("autoAlpha"===c&&(1===l&&"hidden"===Op(t,"visibility")&&a&&(l=0),x.push("visibility",0,S.visibility),Cp(this,S,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==c&&"transform"!==c&&~(c=Jd[c]).indexOf(",")&&(c=c.split(",")[0])),m=c in Hd){if(this.styles.save(c),w=o,"string"===u&&"var(--"===o.substring(0,6)){if("calc("===(o=xp(t,o.substring(4,o.indexOf(")")))).substring(0,5)){var E=t.style.perspective;t.style.perspective=o,o=xp(t,"perspective"),E?t.style.perspective=E:Mp(t,"perspective")}a=parseFloat(o)}if(g||((v=t._gsap).renderTransform&&!e.parseTransform||Xp(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new bd(this._pt,S,pp,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===c)this._pt=new bd(this._pt,v,"scaleY",v.scaleY,(f?Ch(v.scaleY,f+a):a)-v.scaleY||0,tp),this._pt.u=0,T.push("scaleY",c),c+="X";else{if("transformOrigin"===c){x.push(fp,0,S[fp]),o=Fp(o),v.svg?Yp(t,o,0,y,0,this):((p=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&Cp(this,v,"zOrigin",v.zOrigin,p),Cp(this,S,c,Hp(r),Hp(o)));continue}if("svgOrigin"===c){Yp(t,o,1,y,0,this);continue}if(c in zp){tf(this,v,c,l,f?Ch(l,f+o):o);continue}if("smoothOrigin"===c){Cp(this,v,"smooth",v.smooth,o);continue}if("force3D"===c){v[c]=o;continue}if("transform"===c){nf(this,o,t);continue}}}else c in S||(c=Tp(c)||c);if(m||(a||0===a)&&(l||0===l)&&!Qd.test(o)&&c in S)a||(a=0),(d=(r+"").substr((l+"").length))!==(p=cc(o)||(c in ku.units?ku.units[c]:d))&&(l=Rp(t,c,r,p)),this._pt=new bd(this._pt,m?v:S,c,l,(f?Ch(l,f+a):a)-l,m||"px"!==p&&"zIndex"!==c||!1===e.autoRound?tp:sp),this._pt.u=p||0,m&&w!==o?(this._pt.b=r,this._pt.e=w,this._pt.r=np):d!==p&&"%"!==p&&(this._pt.b=r,this._pt.r=ip);else if(c in S)Vp.call(this,t,c,r,f?f+o:o);else if(c in t)this.add(t,c,r||t[c],f?f+o:o,n,s);else if("parseTransform"!==c){lh();continue}m||(c in S?x.push(c,0,S[c]):"function"==typeof t[c]?x.push(c,2,t[c]()):x.push(c,1,r||t[c])),T.push(c)}_&&Sd(this)},render:function(t,e){if(e.tween._time||!Yd())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()},get:Op,aliases:Jd,getSetter:function(t,e,i){var n=Jd[e];return n&&n.indexOf(",")<0&&(e=n),e in Hd&&e!==fp&&(t._gsap.x||Op(t,"x"))?i&&Ud===i?"scale"===e?hp:up:(Ud=i||{})&&("scale"===e?cp:dp):t.style&&!Uu(t.style[e])?ap:~e.indexOf("-")?lp:md(t,e)},core:{_removeProperty:Mp,_getMatrix:Up}};Bd.utils.checkPrefix=Tp,Bd.core.getStyleSaver=yp,of=Ph((sf="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(rf="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Hd[t]=1}),Ph(rf,function(t){ku.units[t]="deg",zp[t]=1}),Jd[of[13]]=sf+","+rf,Ph("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Jd[e[1]]=of[e[0]]}),Ph("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){ku.units[t]="px"}),Bd.registerPlugin(af);var lf=Bd.registerPlugin(af)||Bd;lf.core.Tween;function uf(t,e,i){return Math.max(t,Math.min(e,i))}var hf=class{constructor(){c(this,"isRunning",!1),c(this,"value",0),c(this,"from",0),c(this,"to",0),c(this,"currentTime",0),c(this,"lerp"),c(this,"duration"),c(this,"easing"),c(this,"onUpdate")}advance(t){var e;if(!this.isRunning)return;let i=!1;if(this.duration&&this.easing){this.currentTime+=t;const e=uf(0,this.currentTime/this.duration,1);i=e>=1;const n=i?1:this.easing(e);this.value=this.from+(this.to-this.from)*n}
18else this.lerp?(this.value=function(t,e,i,n){return function(t,e,i){return(1-i)*t+i*e}(t,e,1-Math.exp(-i*n))}(this.value,this.to,60*this.lerp,t),Math.round(this.value)===this.to&&(this.value=this.to,i=!0)):(this.value=this.to,i=!0);i&&this.stop(),null==(e=this.onUpdate)||e.call(this,this.value,i)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:i,duration:n,easing:s,onStart:r,onUpdate:o}){this.from=this.value=t,this.to=e,this.lerp=i,this.duration=n,this.easing=s,this.currentTime=0,this.isRunning=!0,null==r||r(),this.onUpdate=o}};var cf=class{constructor(t,e,{autoResize:i=!0,debounce:n=250}={}){c(this,"width",0),c(this,"height",0),c(this,"scrollHeight",0),c(this,"scrollWidth",0),c(this,"debouncedResize"),c(this,"wrapperResizeObserver"),c(this,"contentResizeObserver"),c(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()}),c(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)}),c(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)}),this.wrapper=t,this.content=e,i&&(this.debouncedResize=function(t,e){let i;return function(...n){let s=this;clearTimeout(i),i=setTimeout(()=>{i=void 0,t.apply(s,n)},e)}}(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var t,e;null==(t=this.wrapperResizeObserver)||t.disconnect(),null==(e=this.contentResizeObserver)||e.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},df=class{constructor(){c(this,"events",{})}emit(t,...e){var i;let n=this.events[t]||[];for(let s=0,r=n.length;s<r;s++)null==(i=n[s])||i.call(n,...e)}on(t,e){var i;return(null==(i=this.events[t])?void 0:i.push(e))||(this.events[t]=[e]),()=>{var i;this.events[t]=null==(i=this.events[t])?void 0:i.filter(t=>e!==t)}}off(t,e){var i;this.events[t]=null==(i=this.events[t])?void 0:i.filter(t=>e!==t)}destroy(){this.events={}}},pf=100/6,ff={passive:!1},mf=class{constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){c(this,"touchStart",{x:0,y:0}),c(this,"lastDelta",{x:0,y:0}),c(this,"window",{width:0,height:0}),c(this,"emitter",new df),c(this,"onTouchStart",t=>{const{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})}),c(this,"onTouchMove",t=>{const{clientX:e,clientY:i}=t.targetTouches?t.targetTouches[0]:t,n=-(e-this.touchStart.x)*this.options.touchMultiplier,s=-(i-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=i,this.lastDelta={x:n,y:s},this.emitter.emit("scroll",{deltaX:n,deltaY:s,event:t})}),c(this,"onTouchEnd",t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})}),c(this,"onWheel",t=>{let{deltaX:e,deltaY:i,deltaMode:n}=t;e*=1===n?pf:2===n?this.window.width:1,i*=1===n?pf:2===n?this.window.height:1,e*=this.options.wheelMultiplier,i*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:i,event:t})}),c(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}}),this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,ff),this.element.addEventListener("touchstart",this.onTouchStart,ff),this.element.addEventListener("touchmove",this.onTouchMove,ff),this.element.addEventListener("touchend",this.onTouchEnd,ff)}on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,ff),this.element.removeEventListener("touchstart",this.onTouchStart,ff),this.element.removeEventListener("touchmove",this.onTouchMove,ff),this.element.removeEventListener("touchend",this.onTouchEnd,ff)}},gf=t=>Math.min(1,1.001-Math.pow(2,-10*t)),vf=class{constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:i=t,smoothWheel:n=!0,syncTouch:s=!1,syncTouchLerp:r=.075,touchInertiaExponent:o=1.7,duration:a,easing:u,lerp:h=.1,infinite:d=!1,orientation:p="vertical",gestureOrientation:f=("horizontal"===p?"both":"vertical"),touchMultiplier:m=1,wheelMultiplier:g=1,autoResize:v=!0,prevent:y,virtualScroll:_,overscroll:x=!0,autoRaf:w=!1,anchors:T=!1,autoToggle:S=!1,allowNestedScroll:b=!1,__experimental__naiveDimensions:E=!1,naiveDimensions:P=E,stopInertiaOnNavigate:A=!1}={}){c(this,"_isScrolling",!1),c(this,"_isStopped",!1),c(this,"_isLocked",!1),c(this,"_preventNextNativeScrollEvent",!1),c(this,"_resetVelocityTimeout",null),c(this,"_rafId",null),c(this,"isTouching"),c(this,"time",0),c(this,"userData",{}),c(this,"lastVelocity",0),c(this,"velocity",0),c(this,"direction",0),c(this,"options"),c(this,"targetScroll"),c(this,"animatedScroll"),c(this,"animate",new hf),
18c(this,"emitter",new df),c(this,"dimensions"),c(this,"virtualScroll"),c(this,"onScrollEnd",t=>{t instanceof CustomEvent||"smooth"!==this.isScrolling&&!1!==this.isScrolling||t.stopPropagation()}),c(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))}),c(this,"onTransitionEnd",t=>{t.propertyName.includes("overflow")&&this.checkOverflow()}),c(this,"onClick",t=>{const e=t.composedPath().filter(t=>t instanceof HTMLAnchorElement&&t.getAttribute("href"));if(this.options.anchors){const t=e.find(t=>{var e;return null==(e=t.getAttribute("href"))?void 0:e.includes("#")});if(t){const e=t.getAttribute("href");if(e){const t="object"==typeof this.options.anchors&&this.options.anchors?this.options.anchors:void 0,i=`#${e.split("#")[1]}`;this.scrollTo(i,t)}}}if(this.options.stopInertiaOnNavigate){e.find(t=>t.host===window.location.host)&&this.reset()}}),c(this,"onPointerDown",t=>{1===t.button&&this.reset()}),c(this,"onVirtualScroll",t=>{if("function"==typeof this.options.virtualScroll&&!1===this.options.virtualScroll(t))return;const{deltaX:e,deltaY:i,event:n}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:i,event:n}),n.ctrlKey)return;if(n.lenisStopPropagation)return;const s=n.type.includes("touch"),r=n.type.includes("wheel");this.isTouching="touchstart"===n.type||"touchmove"===n.type;const o=0===e&&0===i;if(this.options.syncTouch&&s&&"touchstart"===n.type&&o&&!this.isStopped&&!this.isLocked)return void this.reset();const a="vertical"===this.options.gestureOrientation&&0===i||"horizontal"===this.options.gestureOrientation&&0===e;if(o||a)return;let u=n.composedPath();u=u.slice(0,u.indexOf(this.rootElement));const h=this.options.prevent;if(u.find(t=>{var n,o,a;return t instanceof HTMLElement&&("function"==typeof h&&(null==h?void 0:h(t))||(null==(n=t.hasAttribute)?void 0:n.call(t,"data-lenis-prevent"))||s&&(null==(o=t.hasAttribute)?void 0:o.call(t,"data-lenis-prevent-touch"))||r&&(null==(a=t.hasAttribute)?void 0:a.call(t,"data-lenis-prevent-wheel"))||this.options.allowNestedScroll&&this.checkNestedScroll(t,{deltaX:e,deltaY:i}))}))return;if(this.isStopped||this.isLocked)return void(n.cancelable&&n.preventDefault());if(!(this.options.syncTouch&&s||this.options.smoothWheel&&r))return this.isScrolling="native",this.animate.stop(),void(n.lenisStopPropagation=!0);let c=i;"both"===this.options.gestureOrientation?c=Math.abs(i)>Math.abs(e)?i:e:"horizontal"===this.options.gestureOrientation&&(c=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||0===this.animatedScroll&&i>0||this.animatedScroll===this.limit&&i<0))&&(n.lenisStopPropagation=!0),n.cancelable&&n.preventDefault();const d=s&&this.options.syncTouch,p=s&&"touchend"===n.type;p&&(c=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+c,l({programmatic:!1},d?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}))}),c(this,"onNativeScroll",()=>{if(null!==this._resetVelocityTimeout&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent)this._preventNextNativeScrollEvent=!1;else if(!1===this.isScrolling||"native"===this.isScrolling){const t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),this.isStopped||(this.isScrolling="native"),this.emit(),0!==this.velocity&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}}),c(this,"raf",t=>{const e=t-(this.time||t);this.time=t,this.animate.advance(.001*e),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}),window.lenisVersion="1.3.17",t&&t!==document.documentElement||(t=window),"number"==typeof a&&"function"!=typeof u?u=gf:"function"==typeof u&&"number"!=typeof a&&(a=1),this.options={wrapper:t,content:e,eventsTarget:i,smoothWheel:n,syncTouch:s,syncTouchLerp:r,touchInertiaExponent:o,duration:a,easing:u,lerp:h,infinite:d,gestureOrientation:f,orientation:p,touchMultiplier:m,wheelMultiplier:g,autoResize:v,prevent:y,virtualScroll:_,overscroll:x,autoRaf:w,anchors:T,autoToggle:S,allowNestedScroll:b,naiveDimensions:P,stopInertiaOnNavigate:A},this.dimensions=new cf(t,e,{autoResize:v}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=ne
18w mf(i,{touchMultiplier:m,wheelMultiplier:g}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0})),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}get overflow(){const t=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[t]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.options.autoToggle?this.rootElement.style.removeProperty("overflow"):this.internalStart())}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){this.isStopped||(this.options.autoToggle?this.rootElement.style.setProperty("overflow","clip"):this.internalStop())}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}scrollTo(t,{offset:e=0,immediate:i=!1,lock:n=!1,programmatic:s=!0,lerp:r=(s?this.options.lerp:void 0),duration:o=(s?this.options.duration:void 0),easing:a=(s?this.options.easing:void 0),onStart:l,onComplete:u,force:h=!1,userData:c}={}){if(!this.isStopped&&!this.isLocked||h){if("string"==typeof t&&["top","left","start","#"].includes(t))t=0;else if("string"==typeof t&&["bottom","right","end"].includes(t))t=this.limit;else{let i;if("string"==typeof t?(i=document.querySelector(t),i||"#top"===t&&(t=0)):t instanceof HTMLElement&&(null==t?void 0:t.nodeType)&&(i=t),i){if(this.options.wrapper!==window){const t=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?t.left:t.top}const n=i.getBoundingClientRect();t=(this.isHorizontal?n.left:n.top)+this.animatedScroll}}if("number"==typeof t){if(t+=e,t=Math.round(t),this.options.infinite){if(s){this.targetScroll=this.animatedScroll=this.scroll;const e=t-this.animatedScroll;e>this.limit/2?t-=this.limit:e<-this.limit/2&&(t+=this.limit)}}else t=uf(0,t,this.limit);if(t===this.targetScroll)return null==l||l(this),void(null==u||u(this));if(this.userData=null!=c?c:{},i)return this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),null==u||u(this),this.userData={},void requestAnimationFrame(()=>{this.dispatchScrollendEvent()});s||(this.targetScroll=t),"number"==typeof o&&"function"!=typeof a?a=gf:"function"==typeof a&&"number"!=typeof o&&(o=1),this.animate.fromTo(this.animatedScroll,t,{duration:o,easing:a,lerp:r,onStart:()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",null==l||l(this)},onUpdate:(t,e)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=t-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=t,this.setScroll(this.scroll),s&&(this.targetScroll=t),e||this.emit(),e&&(this.reset(),this.emit(),null==u||u(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(t,{deltaX:e,deltaY:i}
18){var n,s;const r=Date.now(),o=null!=(n=t._lenis)?n:t._lenis={};let a,l,u,h,c,d,p,f;const m=this.options.gestureOrientation;if(r-(null!=(s=o.time)?s:0)>2e3){o.time=Date.now();const e=window.getComputedStyle(t);o.computedStyle=e;const i=e.overflowX,n=e.overflowY;if(a=["auto","overlay","scroll"].includes(i),l=["auto","overlay","scroll"].includes(n),o.hasOverflowX=a,o.hasOverflowY=l,!a&&!l)return!1;if("vertical"===m&&!l)return!1;if("horizontal"===m&&!a)return!1;c=t.scrollWidth,d=t.scrollHeight,p=t.clientWidth,f=t.clientHeight,u=c>p,h=d>f,o.isScrollableX=u,o.isScrollableY=h,o.scrollWidth=c,o.scrollHeight=d,o.clientWidth=p,o.clientHeight=f}else u=o.isScrollableX,h=o.isScrollableY,a=o.hasOverflowX,l=o.hasOverflowY,c=o.scrollWidth,d=o.scrollHeight,p=o.clientWidth,f=o.clientHeight;if(!a&&!l||!u&&!h)return!1;if(!("vertical"!==m||l&&h))return!1;if(!("horizontal"!==m||a&&u))return!1;let g,v,y,_,x,w;if("horizontal"===m)g="x";else if("vertical"===m)g="y";else{0!==e&&a&&u&&(g="x"),0!==i&&l&&h&&(g="y")}if(!g)return!1;if("x"===g)v=t.scrollLeft,y=c-p,_=e,x=a,w=u;else{if("y"!==g)return!1;v=t.scrollTop,y=d-f,_=i,x=l,w=h}return(_>0?v<y:v>0)&&x&&w}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return"horizontal"===this.options.orientation}get actualScroll(){var t,e;const i=this.options.wrapper;return this.isHorizontal?null!=(t=i.scrollX)?t:i.scrollLeft:null!=(e=i.scrollY)?e:i.scrollTop}get scroll(){return this.options.infinite?function(t,e){return(t%e+e)%e}(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return 0===this.limit?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return"smooth"===this.isScrolling}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),"smooth"===this.isScrolling&&(t+=" lenis-smooth"),t}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};export{No as A,vf as L,Cl as a,Kl as b,Pl as c,Dl as d,lf as g,v as j,rl as m,Al as u};
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.