import{d as vu}from"./DGspl-Mk.js";import{u as xu,g as ao,a as wu}from"./BXQiC7tv.js";import{H as bu,u as Tu,c as pe,D as uo,a5 as lo,X as Su,a6 as Pu,a7 as ku}from"./CQ5rtXCu.js";const fo=100;function Li(...a){for(const e of a){if(typeof e=="number"&&Number.isFinite(e))return String(e);if(typeof e=="string"&&e.trim())return e}return""}function Cu(a){if(!a)return"";if(Array.isArray(a))return Li(a[0]);if(typeof a=="string"){const e=a.trim();try{const r=JSON.parse(e);if(Array.isArray(r))return Li(r[0])}catch{}return e.includes(";")?e.split(";")[0].trim():e}return typeof a=="object"?Li(a.src,a.url):""}const Ou=800;function co(a){return a.map((e,r)=>{const t=Cu(e.images??e.image),i=Date.now()+r;return{id:Number(e.id)||i,name:e.name,nameDisplay:e.name_display||e.nameDisplay,image:Su(t,Ou),description:Li(e.description)||"",descriptionDisplay:e.description_display||"",date:e.created_at?vu(e.created_at).format("YYYY-MM-DD"):Li(e.createdAt,e.updatedAt),sku:e.sku||"",slug:e.slug||""}})}function Du(a,e){if(a&&typeof a=="object"){const r=Number(a.limit);if(Number.isSafeInteger(r)&&r>0)return Math.min(Math.floor(r),fo)}return e&&e>0?Math.min(Math.floor(e),fo):10}function xf(a,e,r,t={}){const i=bu(),n=Tu(),{navigateFromModuleContent:s}=xu(),o=pe(()=>n.value?.id||0),{listKey:u,defaultLimit:l}=t,f=t.pageParamKey?.trim()||"",_=t.instanceKey?String(t.instanceKey).trim():"",d=_?`${a}-${_}`:a,c=pe(()=>{const D=Array.isArray(lo(e))?lo(e):[];if(u){const z=D.find(X=>X?.key===u);if(z)return z}return D.find(z=>z?.key==="newsList")??D.find(z=>z?.type==="list"||z?.type==="table")}),p=pe(()=>Du(c.value?.config?.pagination,l)),h=pe(()=>{const D=c.value?.config?.pagination?.page||1;if(f){const te=i.query[f],dt=Array.isArray(te)?te[0]:te,oe=Number(dt);return Number.isFinite(oe)&&oe>0?oe:D}const z=i.path.split("/").find(te=>/^page-(\d+)$/i.test(te));if(z){const te=Number(z.replace(/page-/i,""));if(Number.isFinite(te)&&te>0)return te}const X=Number(i.query.page);return Number.isFinite(X)&&X>0?X:D}),m=pe(()=>c.value?.config?.filter||[]),b=pe(()=>(m.value.find(z=>z.key==="name")?.value??"").toString().trim()),w=pe(()=>{const D=m.value.find(te=>te.key==="categoriesId")?.value,z=D&&typeof D=="object"?D.value:D,X=Number(z);return Number.isFinite(X)?X:0}),S=pe(()=>ao(m.value,"exclusion")),v=pe(()=>ao(m.value,"include")),T=pe(()=>wu(m.value)),k=pe(()=>{const D=c.value?.dataSource;if(Array.isArray(D)){const X=Number(D[0]);if(!Number.isNaN(X))return X}const z=Number(D);return Number.isNaN(z)?1:z}),x=pe(()=>k.value===3),O=pe(()=>c.value?.customData?.type||"product"),P=pe(()=>{const D=c.value?.customData?.data;if(!Array.isArray(D))return[];const z=O.value==="content"?"slug":"sku";return D.map(X=>(X?.[z]||"").toString().trim()).filter(Boolean)}),C=pe(()=>!x.value&&!!c.value?.config?.pagination?.showPagination),L=pe(()=>P.value.join(",")),{data:M,pending:V}=uo(()=>`${d}-custom-${O.value}-${L.value}`,async()=>{if(!x.value)return[];if(!o.value)return[];const D=P.value;if(!D.length)return[];try{const z=await $fetch("/api/custom-data/batch",{method:"POST",body:{ids:D,type:O.value,subdomainId:o.value}});return Array.isArray(z?.data)?z.data:[]}catch{return[]}},{server:!0,watch:[x,L,O,o]}),$=pe(()=>k.value===2?"/api/content/filter":"/api/product/filter"),{data:K,pending:W}=uo(()=>`${d}-${k.value}-${h.value}-${p.value}-${w.value}-${b.value}-${v.value.join(",")}-${S.value.join(",")}-${T.value.join(",")}`,async()=>{if(!c.value)return{list:[],total:0};if(x.value)return{list:[],total:0};if(!o.value)return{list:[],total:0};try{const D=await $fetch($.value,{query:{name:b.value,categoriesId:w.value,include:v.value.join(","),exclusion:S.value.join(","),tag:T.value.join(","),page:h.value,size:p.value,subdomainId:o.value}}),z=D?.data?.list||[],X=co(z),te=D?.data?.total??X.length;return{list:X,total:te}}catch{return{list:[],total:0}}},{server:!0,watch:[$,h,p,b,w,v,S,T,o]}),F=pe(()=>x.value?co(M.value||[]):K.value?.list||[]),Z=pe(()=>{if(x.value)return F.value;const D=p.value;return D>0&&F.value.length>D?F.value.slice(0,D):F.value}),ne=pe(()=>x.value?Z.value.length:K.value?.total||0),g=pe(()=>x.value?V.value:W.value),se=pe(()=>({page:x.value?1:h.value,limit:p.value,total:ne.value,showPagination:C.value})),Be=pe(()=>r==="news"?Z.value.map(D=>({key:String(D.id),title:D.nameDisplay||D.name||"未命名",description:D.description||"",descriptionDisplay:D.descriptionDisplay||"",date:D.date||"",image:D.image||"",id:D.id,name:D.name,nameDisplay:D.nameDisplay,slug:D.slug,sku:D.sku})):Z.value.map(D=>({key:String(D.id),title:D.nameDisplay||D.name||"未命名",description:D.description||"",descriptionDisplay:D.descriptionDisplay||"",image:D.image||"",id:D.id,name:D.name,nameDisplay:D.nameDisplay,sku:D.sku,slug:D.slug}))),_t=D=>{const z=i.path.replace(/\/page-\d+\/?$/i,"").replace(/\/+$/,"")||"/",X=new URLSearchParams;if(Object.entries(i.query||{}).forEach(([oe,Ce])=>{oe!=="page"&&(f&&oe===f||(Array.isArray(Ce)?Ce.forEach(Q=>X.append(oe,String(Q))):Ce!=null&&X.set(oe,String(Ce))))}),f){X.set(f,String(D));const oe=X.toString();return oe?`${z}?${oe}`:z}const te=z==="/"?`/page-${D}`:`${z}/page-${D}`,dt=X.toString();return dt?`${te}?${dt}`:te};return{items:Be,pagination:se,loading:g,onPageChange:async(D,z)=>{if(x.value)return;const X=_t(D);{window.location.href=X;return}},onItemClick:async D=>{await s(e,D)}}}function nr(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function jo(a,e){a.prototype=Object.create(e.prototype),a.prototype.constructor=a,a.__proto__=e}var Ct={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},gi={duration:.5,overwrite:!1,delay:0},Fs,Ve,he,Ft=1e8,le=1/Ft,fs=Math.PI*2,Mu=fs/4,Au=0,Zo=Math.sqrt,Ru=Math.cos,Eu=Math.sin,Ye=function(e){return typeof e=="string"},we=function(e){return typeof e=="function"},lr=function(e){return typeof e=="number"},zs=function(e){return typeof e>"u"},Qt=function(e){return typeof e=="object"},ut=function(e){return e!==!1},Is=function(){return typeof window<"u"},cn=function(e){return we(e)||Ye(e)},Qo=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Qe=Array.isArray,Fu=/random\([^)]+\)/g,zu=/,\s*/g,ho=/(?:-?\.?\d|\.)+/gi,Jo=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ai=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Kn=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ea=/[+-]=-?[.\d]+/,Iu=/[^,'"\[\]\s]+/gi,Lu=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,me,qt,cs,Ls,Ot={},En={},ta,ra=function(e){return(En=mi(e,Ot))&&ht},Ns=function(e,r){return console.warn("Invalid property",e,"set to",r,"Missing plugin? gsap.registerPlugin()")},Zi=function(e,r){return!r&&console.warn(e)},ia=function(e,r){return e&&(Ot[e]=r)&&En&&(En[e]=r)||Ot},Qi=function(){return 0},Nu={suppressEvents:!0,isStart:!0,kill:!1},Sn={suppressEvents:!0,kill:!1},Yu={suppressEvents:!0},Ys={},br=[],hs={},na,xt={},jn={},_o=30,Pn=[],Bs="",$s=function(e){var r=e[0],t,i;if(Qt(r)||we(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(i=Pn.length;i--&&!Pn[i].targetTest(r););t=Pn[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Oa(e[i],t)))||e.splice(i,1);return e},Xr=function(e){return e._gsap||$s(zt(e))[0]._gsap},sa=function(e,r,t){return(t=e[r])&&we(t)?e[r]():zs(t)&&e.getAttribute&&e.getAttribute(r)||t},lt=function(e,r){return(e=e.split(",")).forEach(r)||e},Pe=function(e){return Math.round(e*1e5)/1e5||0},ge=function(e){return Math.round(e*1e7)/1e7||0},fi=function(e,r){var t=r.charAt(0),i=parseFloat(r.substr(2));return e=parseFloat(e),t==="+"?e+i:t==="-"?e-i:t==="*"?e*i:e/i},Bu=function(e,r){for(var t=r.length,i=0;e.indexOf(r[i])<0&&++i<t;);return i<t},Fn=function(){var e=br.length,r=br.slice(0),t,i;for(hs={},br.length=0,t=0;t<e;t++)i=r[t],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Xs=function(e){return!!(e._initted||e._startAt||e.add)},oa=function(e,r,t,i){br.length&&!Ve&&Fn(),e.render(r,t,!!(Ve&&r<0&&Xs(e))),br.length&&!Ve&&Fn()},aa=function(e){var r=parseFloat(e);return(r||r===0)&&(e+"").match(Iu).length<2?r:Ye(e)?e.trim():e},ua=function(e){return e},Dt=function(e,r){for(var t in r)t in e||(e[t]=r[t]);return e},$u=function(e){return function(r,t){for(var i in t)i in r||i==="duration"&&e||i==="ease"||(r[i]=t[i])}},mi=function(e,r){for(var t in r)e[t]=r[t];return e},po=function a(e,r){for(var t in r)t!=="__proto__"&&t!=="constructor"&&t!=="prototype"&&(e[t]=Qt(r[t])?a(e[t]||(e[t]={}),r[t]):r[t]);return e},zn=function(e,r){var t={},i;for(i in e)i in r||(t[i]=e[i]);return t},Ni=function(e){var r=e.parent||me,t=e.keyframes?$u(Qe(e.keyframes)):Dt;if(ut(e.inherit))for(;r;)t(e,r.vars.defaults),r=r.parent||r._dp;return e},Xu=function(e,r){for(var t=e.length,i=t===r.length;i&&t--&&e[t]===r[t];);return t<0},la=function(e,r,t,i,n){var s=e[i],o;if(n)for(o=r[n];s&&s[n]>o;)s=s._prev;return s?(r._next=s._next,s._next=r):(r._next=e[t],e[t]=r),r._next?r._next._prev=r:e[i]=r,r._prev=s,r.parent=r._dp=e,r},Vn=function(e,r,t,i){t===void 0&&(t="_first"),i===void 0&&(i="_last");var n=r._prev,s=r._next;n?n._next=s:e[t]===r&&(e[t]=s),s?s._prev=n:e[i]===r&&(e[i]=n),r._next=r._prev=r.parent=null},Pr=function(e,r){e.parent&&(!r||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ur=function(e,r){if(e&&(!r||r._end>e._dur||r._start<0))for(var t=e;t;)t._dirty=1,t=t.parent;return e},Uu=function(e){for(var r=e.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return e},_s=function(e,r,t,i){return e._startAt&&(Ve?e._startAt.revert(Sn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(r,!0,i))},Vu=function a(e){return!e||e._ts&&a(e.parent)},go=function(e){return e._repeat?yi(e._tTime,e=e.duration()+e._rDelay)*e:0},yi=function(e,r){var t=Math.floor(e=ge(e/r));return e&&t===e?t-1:t},In=function(e,r){return(e-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},Wn=function(e){return e._end=ge(e._start+(e._tDur/Math.abs(e._ts||e._rts||le)||0))},qn=function(e,r){var t=e._dp;return t&&t.smoothChildTiming&&e._ts&&(e._start=ge(t._time-(e._ts>0?r/e._ts:((e._dirty?e.totalDuration():e._tDur)-r)/-e._ts)),Wn(e),t._dirty||Ur(t,e)),e},fa=function(e,r){var t;if((r._time||!r._dur&&r._initted||r._start<e._time&&(r._dur||!r.add))&&(t=In(e.rawTime(),r),(!r._dur||an(0,r.totalDuration(),t)-r._tTime>le)&&r.render(t,!0)),Ur(e,r)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(t=e;t._dp;)t.rawTime()>=0&&t.totalTime(t._tTime),t=t._dp;e._zTime=-le}},Ht=function(e,r,t,i){return r.parent&&Pr(r),r._start=ge((lr(t)?t:t||e!==me?At(e,t,r):e._time)+r._delay),r._end=ge(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),la(e,r,"_first","_last",e._sort?"_start":0),ds(r)||(e._recent=r),i||fa(e,r),e._ts<0&&qn(e,e._tTime),e},ca=function(e,r){return(Ot.ScrollTrigger||Ns("scrollTrigger",r))&&Ot.ScrollTrigger.create(r,e)},ha=function(e,r,t,i,n){if(Vs(e,r,n),!e._initted)return 1;if(!t&&e._pt&&!Ve&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&na!==Tt.frame)return br.push(e),e._lazy=[n,i],1},Wu=function a(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||a(r))},ds=function(e){var r=e.data;return r==="isFromStart"||r==="isStart"},qu=function(e,r,t,i){var n=e.ratio,s=r<0||!r&&(!e._start&&Wu(e)&&!(!e._initted&&ds(e))||(e._ts<0||e._dp._ts<0)&&!ds(e))?0:1,o=e._rDelay,u=0,l,f,_;if(o&&e._repeat&&(u=an(0,e._tDur,r),f=yi(u,o),e._yoyo&&f&1&&(s=1-s),f!==yi(e._tTime,o)&&(n=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==n||Ve||i||e._zTime===le||!r&&e._zTime){if(!e._initted&&ha(e,r,i,t,u))return;for(_=e._zTime,e._zTime=r||(t?le:0),t||(t=r&&!_),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=u,l=e._pt;l;)l.r(s,l.d),l=l._next;r<0&&_s(e,r,t,!0),e._onUpdate&&!t&&Pt(e,"onUpdate"),u&&e._repeat&&!t&&e.parent&&Pt(e,"onRepeat"),(r>=e._tDur||r<0)&&e.ratio===s&&(s&&Pr(e,1),!t&&!Ve&&(Pt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=r)},Gu=function(e,r,t){var i;if(t>r)for(i=e._first;i&&i._start<=t;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=e._last;i&&i._start>=t;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},vi=function(e,r,t,i){var n=e._repeat,s=ge(r)||0,o=e._tTime/e._tDur;return o&&!i&&(e._time*=s/e._dur),e._dur=s,e._tDur=n?n<0?1e10:ge(s*(n+1)+e._rDelay*n):s,o>0&&!i&&qn(e,e._tTime=e._tDur*o),e.parent&&Wn(e),t||Ur(e.parent,e),e},mo=function(e){return e instanceof nt?Ur(e):vi(e,e._dur)},Hu={_start:0,endTime:Qi,totalDuration:Qi},At=function a(e,r,t){var i=e.labels,n=e._recent||Hu,s=e.duration()>=Ft?n.endTime(!1):e._dur,o,u,l;return Ye(r)&&(isNaN(r)||r in i)?(u=r.charAt(0),l=r.substr(-1)==="%",o=r.indexOf("="),u==="<"||u===">"?(o>=0&&(r=r.replace(/=/,"")),(u==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(r.substr(1))||0)*(l?(o<0?n:t).totalDuration()/100:1)):o<0?(r in i||(i[r]=s),i[r]):(u=parseFloat(r.charAt(o-1)+r.substr(o+1)),l&&t&&(u=u/100*(Qe(t)?t[0]:t).totalDuration()),o>1?a(e,r.substr(0,o-1),t)+u:s+u)):r==null?s:+r},Yi=function(e,r,t){var i=lr(r[1]),n=(i?2:1)+(e<2?0:1),s=r[n],o,u;if(i&&(s.duration=r[1]),s.parent=t,e){for(o=s,u=t;u&&!("immediateRender"in o);)o=u.vars.defaults||{},u=ut(u.vars.inherit)&&u.parent;s.immediateRender=ut(o.immediateRender),e<2?s.runBackwards=1:s.startAt=r[n-1]}return new Me(r[0],s,r[n+1])},Dr=function(e,r){return e||e===0?r(e):r},an=function(e,r,t){return t<e?e:t>r?r:t},je=function(e,r){return!Ye(e)||!(r=Lu.exec(e))?"":r[1]},Ku=function(e,r,t){return Dr(t,function(i){return an(e,r,i)})},ps=[].slice,_a=function(e,r){return e&&Qt(e)&&"length"in e&&(!r&&!e.length||e.length-1 in e&&Qt(e[0]))&&!e.nodeType&&e!==qt},ju=function(e,r,t){return t===void 0&&(t=[]),e.forEach(function(i){var n;return Ye(i)&&!r||_a(i,1)?(n=t).push.apply(n,zt(i)):t.push(i)})||t},zt=function(e,r,t){return he&&!r&&he.selector?he.selector(e):Ye(e)&&!t&&(cs||!xi())?ps.call((r||Ls).querySelectorAll(e),0):Qe(e)?ju(e,t):_a(e)?ps.call(e,0):e?[e]:[]},gs=function(e){return e=zt(e)[0]||Zi("Invalid scope")||{},function(r){var t=e.current||e.nativeElement||e;return zt(r,t.querySelectorAll?t:t===e?Zi("Invalid scope")||Ls.createElement("div"):e)}},da=function(e){return e.sort(function(){return .5-Math.random()})},pa=function(e){if(we(e))return e;var r=Qt(e)?e:{each:e},t=Vr(r.ease),i=r.from||0,n=parseFloat(r.base)||0,s={},o=i>0&&i<1,u=isNaN(i)||o,l=r.axis,f=i,_=i;return Ye(i)?f=_={center:.5,edges:.5,end:1}[i]||0:!o&&u&&(f=i[0],_=i[1]),function(d,c,p){var h=(p||r).length,m=s[h],b,w,S,v,T,k,x,O,P;if(!m){if(P=r.grid==="auto"?0:(r.grid||[1,Ft])[1],!P){for(x=-Ft;x<(x=p[P++].getBoundingClientRect().left)&&P<h;);P<h&&P--}for(m=s[h]=[],b=u?Math.min(P,h)*f-.5:i%P,w=P===Ft?0:u?h*_/P-.5:i/P|0,x=0,O=Ft,k=0;k<h;k++)S=k%P-b,v=w-(k/P|0),m[k]=T=l?Math.abs(l==="y"?v:S):Zo(S*S+v*v),T>x&&(x=T),T<O&&(O=T);i==="random"&&da(m),m.max=x-O,m.min=O,m.v=h=(parseFloat(r.amount)||parseFloat(r.each)*(P>h?h-1:l?l==="y"?h/P:P:Math.max(P,h/P))||0)*(i==="edges"?-1:1),m.b=h<0?n-h:n,m.u=je(r.amount||r.each)||0,t=t&&h<0?Pa(t):t}return h=(m[d]-m.min)/m.max||0,ge(m.b+(t?t(h):h)*m.v)+m.u}},ms=function(e){var r=Math.pow(10,((e+"").split(".")[1]||"").length);return function(t){var i=ge(Math.round(parseFloat(t)/e)*e*r);return(i-i%1)/r+(lr(t)?0:je(t))}},ga=function(e,r){var t=Qe(e),i,n;return!t&&Qt(e)&&(i=t=e.radius||Ft,e.values?(e=zt(e.values),(n=!lr(e[0]))&&(i*=i)):e=ms(e.increment)),Dr(r,t?we(e)?function(s){return n=e(s),Math.abs(n-s)<=i?n:s}:function(s){for(var o=parseFloat(n?s.x:s),u=parseFloat(n?s.y:0),l=Ft,f=0,_=e.length,d,c;_--;)n?(d=e[_].x-o,c=e[_].y-u,d=d*d+c*c):d=Math.abs(e[_]-o),d<l&&(l=d,f=_);return f=!i||l<=i?e[f]:s,n||f===s||lr(s)?f:f+je(s)}:ms(e))},ma=function(e,r,t,i){return Dr(Qe(e)?!r:t===!0?!!(t=0):!i,function(){return Qe(e)?e[~~(Math.random()*e.length)]:(t=t||1e-5)&&(i=t<1?Math.pow(10,(t+"").length-2):1)&&Math.floor(Math.round((e-t/2+Math.random()*(r-e+t*.99))/t)*t*i)/i})},Zu=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(i){return r.reduce(function(n,s){return s(n)},i)}},Qu=function(e,r){return function(t){return e(parseFloat(t))+(r||je(t))}},Ju=function(e,r,t){return va(e,r,0,1,t)},ya=function(e,r,t){return Dr(t,function(i){return e[~~r(i)]})},el=function a(e,r,t){var i=r-e;return Qe(e)?ya(e,a(0,e.length),r):Dr(t,function(n){return(i+(n-e)%i)%i+e})},tl=function a(e,r,t){var i=r-e,n=i*2;return Qe(e)?ya(e,a(0,e.length-1),r):Dr(t,function(s){return s=(n+(s-e)%n)%n||0,e+(s>i?n-s:s)})},Ji=function(e){return e.replace(Fu,function(r){var t=r.indexOf("[")+1,i=r.substring(t||7,t?r.indexOf("]"):r.length-1).split(zu);return ma(t?i:+i[0],t?0:+i[1],+i[2]||1e-5)})},va=function(e,r,t,i,n){var s=r-e,o=i-t;return Dr(n,function(u){return t+((u-e)/s*o||0)})},rl=function a(e,r,t,i){var n=isNaN(e+r)?0:function(c){return(1-c)*e+c*r};if(!n){var s=Ye(e),o={},u,l,f,_,d;if(t===!0&&(i=1)&&(t=null),s)e={p:e},r={p:r};else if(Qe(e)&&!Qe(r)){for(f=[],_=e.length,d=_-2,l=1;l<_;l++)f.push(a(e[l-1],e[l]));_--,n=function(p){p*=_;var h=Math.min(d,~~p);return f[h](p-h)},t=r}else i||(e=mi(Qe(e)?[]:{},e));if(!f){for(u in r)Us.call(o,e,u,"get",r[u]);n=function(p){return Gs(p,o)||(s?e.p:e)}}}return Dr(t,n)},yo=function(e,r,t){var i=e.labels,n=Ft,s,o,u;for(s in i)o=i[s]-r,o<0==!!t&&o&&n>(o=Math.abs(o))&&(u=s,n=o);return u},Pt=function(e,r,t){var i=e.vars,n=i[r],s=he,o=e._ctx,u,l,f;if(n)return u=i[r+"Params"],l=i.callbackScope||e,t&&br.length&&Fn(),o&&(he=o),f=u?n.apply(l,u):n.call(l),he=s,f},Mi=function(e){return Pr(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Ve),e.progress()<1&&Pt(e,"onInterrupt"),e},ui,xa=[],wa=function(e){if(e)if(e=!e.name&&e.default||e,Is()||e.headless){var r=e.name,t=we(e),i=r&&!t&&e.init?function(){this._props=[]}:e,n={init:Qi,render:Gs,add:Us,kill:yl,modifier:ml,rawVars:0},s={targetTest:0,get:0,getSetter:qs,aliases:{},register:0};if(xi(),e!==i){if(xt[r])return;Dt(i,Dt(zn(e,n),s)),mi(i.prototype,mi(n,zn(e,s))),xt[i.prop=r]=i,e.targetTest&&(Pn.push(i),Ys[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}ia(r,i),e.register&&e.register(ht,i,ft)}else xa.push(e)},ue=255,Ai={aqua:[0,ue,ue],lime:[0,ue,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ue],navy:[0,0,128],white:[ue,ue,ue],olive:[128,128,0],yellow:[ue,ue,0],orange:[ue,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ue,0,0],pink:[ue,192,203],cyan:[0,ue,ue],transparent:[ue,ue,ue,0]},Zn=function(e,r,t){return e+=e<0?1:e>1?-1:0,(e*6<1?r+(t-r)*e*6:e<.5?t:e*3<2?r+(t-r)*(2/3-e)*6:r)*ue+.5|0},ba=function(e,r,t){var i=e?lr(e)?[e>>16,e>>8&ue,e&ue]:0:Ai.black,n,s,o,u,l,f,_,d,c,p;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Ai[e])i=Ai[e];else if(e.charAt(0)==="#"){if(e.length<6&&(n=e.charAt(1),s=e.charAt(2),o=e.charAt(3),e="#"+n+n+s+s+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&ue,i&ue,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&ue,e&ue]}else if(e.substr(0,3)==="hsl"){if(i=p=e.match(ho),!r)u=+i[0]%360/360,l=+i[1]/100,f=+i[2]/100,s=f<=.5?f*(l+1):f+l-f*l,n=f*2-s,i.length>3&&(i[3]*=1),i[0]=Zn(u+1/3,n,s),i[1]=Zn(u,n,s),i[2]=Zn(u-1/3,n,s);else if(~e.indexOf("="))return i=e.match(Jo),t&&i.length<4&&(i[3]=1),i}else i=e.match(ho)||Ai.transparent;i=i.map(Number)}return r&&!p&&(n=i[0]/ue,s=i[1]/ue,o=i[2]/ue,_=Math.max(n,s,o),d=Math.min(n,s,o),f=(_+d)/2,_===d?u=l=0:(c=_-d,l=f>.5?c/(2-_-d):c/(_+d),u=_===n?(s-o)/c+(s<o?6:0):_===s?(o-n)/c+2:(n-s)/c+4,u*=60),i[0]=~~(u+.5),i[1]=~~(l*100+.5),i[2]=~~(f*100+.5)),t&&i.length<4&&(i[3]=1),i},Ta=function(e){var r=[],t=[],i=-1;return e.split(Tr).forEach(function(n){var s=n.match(ai)||[];r.push.apply(r,s),t.push(i+=s.length+1)}),r.c=t,r},vo=function(e,r,t){var i="",n=(e+i).match(Tr),s=r?"hsla(":"rgba(",o=0,u,l,f,_;if(!n)return e;if(n=n.map(function(d){return(d=ba(d,r,1))&&s+(r?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),t&&(f=Ta(e),u=t.c,u.join(i)!==f.c.join(i)))for(l=e.replace(Tr,"1").split(ai),_=l.length-1;o<_;o++)i+=l[o]+(~u.indexOf(o)?n.shift()||s+"0,0,0,0)":(f.length?f:n.length?n:t).shift());if(!l)for(l=e.split(Tr),_=l.length-1;o<_;o++)i+=l[o]+n[o];return i+l[_]},Tr=(function(){var a="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Ai)a+="|"+e+"\\b";return new RegExp(a+")","gi")})(),il=/hsl[a]?\(/,Sa=function(e){var r=e.join(" "),t;if(Tr.lastIndex=0,Tr.test(r))return t=il.test(r),e[1]=vo(e[1],t),e[0]=vo(e[0],t,Ta(e[1])),!0},en,Tt=(function(){var a=Date.now,e=500,r=33,t=a(),i=t,n=1e3/240,s=n,o=[],u,l,f,_,d,c,p=function h(m){var b=a()-i,w=m===!0,S,v,T,k;if((b>e||b<0)&&(t+=b-r),i+=b,T=i-t,S=T-s,(S>0||w)&&(k=++_.frame,d=T-_.time*1e3,_.time=T=T/1e3,s+=S+(S>=n?4:n-S),v=1),w||(u=l(h)),v)for(c=0;c<o.length;c++)o[c](T,d,k,m)};return _={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(m){return d/(1e3/(m||60))},wake:function(){ta&&(!cs&&Is()&&(qt=cs=window,Ls=qt.document||{},Ot.gsap=ht,(qt.gsapVersions||(qt.gsapVersions=[])).push(ht.version),ra(En||qt.GreenSockGlobals||!qt.gsap&&qt||{}),xa.forEach(wa)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&_.sleep(),l=f||function(m){return setTimeout(m,s-_.time*1e3+1|0)},en=1,p(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(u),en=0,l=Qi},lagSmoothing:function(m,b){e=m||1/0,r=Math.min(b||33,e)},fps:function(m){n=1e3/(m||240),s=_.time*1e3+n},add:function(m,b,w){var S=b?function(v,T,k,x){m(v,T,k,x),_.remove(S)}:m;return _.remove(m),o[w?"unshift":"push"](S),xi(),S},remove:function(m,b){~(b=o.indexOf(m))&&o.splice(b,1)&&c>=b&&c--},_listeners:o},_})(),xi=function(){return!en&&Tt.wake()},ee={},nl=/^[\d.\-M][\d.\-,\s]/,sl=/["']/g,ol=function(e){for(var r={},t=e.substr(1,e.length-3).split(":"),i=t[0],n=1,s=t.length,o,u,l;n<s;n++)u=t[n],o=n!==s-1?u.lastIndexOf(","):u.length,l=u.substr(0,o),r[i]=isNaN(l)?l.replace(sl,"").trim():+l,i=u.substr(o+1).trim();return r},al=function(e){var r=e.indexOf("(")+1,t=e.indexOf(")"),i=e.indexOf("(",r);return e.substring(r,~i&&i<t?e.indexOf(")",t+1):t)},ul=function(e){var r=(e+"").split("("),t=ee[r[0]];return t&&r.length>1&&t.config?t.config.apply(null,~e.indexOf("{")?[ol(r[1])]:al(e).split(",").map(aa)):ee._CE&&nl.test(e)?ee._CE("",e):t},Pa=function(e){return function(r){return 1-e(1-r)}},ka=function a(e,r){for(var t=e._first,i;t;)t instanceof nt?a(t,r):t.vars.yoyoEase&&(!t._yoyo||!t._repeat)&&t._yoyo!==r&&(t.timeline?a(t.timeline,r):(i=t._ease,t._ease=t._yEase,t._yEase=i,t._yoyo=r)),t=t._next},Vr=function(e,r){return e&&(we(e)?e:ee[e]||ul(e))||r},Qr=function(e,r,t,i){t===void 0&&(t=function(u){return 1-r(1-u)}),i===void 0&&(i=function(u){return u<.5?r(u*2)/2:1-r((1-u)*2)/2});var n={easeIn:r,easeOut:t,easeInOut:i},s;return lt(e,function(o){ee[o]=Ot[o]=n,ee[s=o.toLowerCase()]=t;for(var u in n)ee[s+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=ee[o+"."+u]=n[u]}),n},Ca=function(e){return function(r){return r<.5?(1-e(1-r*2))/2:.5+e((r-.5)*2)/2}},Qn=function a(e,r,t){var i=r>=1?r:1,n=(t||(e?.3:.45))/(r<1?r:1),s=n/fs*(Math.asin(1/i)||0),o=function(f){return f===1?1:i*Math.pow(2,-10*f)*Eu((f-s)*n)+1},u=e==="out"?o:e==="in"?function(l){return 1-o(1-l)}:Ca(o);return n=fs/n,u.config=function(l,f){return a(e,l,f)},u},Jn=function a(e,r){r===void 0&&(r=1.70158);var t=function(s){return s?--s*s*((r+1)*s+r)+1:0},i=e==="out"?t:e==="in"?function(n){return 1-t(1-n)}:Ca(t);return i.config=function(n){return a(e,n)},i};lt("Linear,Quad,Cubic,Quart,Quint,Strong",function(a,e){var r=e<5?e+1:e;Qr(a+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(t*2,r)/2:1-Math.pow((1-t)*2,r)/2})});ee.Linear.easeNone=ee.none=ee.Linear.easeIn;Qr("Elastic",Qn("in"),Qn("out"),Qn());(function(a,e){var r=1/e,t=2*r,i=2.5*r,n=function(o){return o<r?a*o*o:o<t?a*Math.pow(o-1.5/e,2)+.75:o<i?a*(o-=2.25/e)*o+.9375:a*Math.pow(o-2.625/e,2)+.984375};Qr("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75);Qr("Expo",function(a){return Math.pow(2,10*(a-1))*a+a*a*a*a*a*a*(1-a)});Qr("Circ",function(a){return-(Zo(1-a*a)-1)});Qr("Sine",function(a){return a===1?1:-Ru(a*Mu)+1});Qr("Back",Jn("in"),Jn("out"),Jn());ee.SteppedEase=ee.steps=Ot.SteppedEase={config:function(e,r){e===void 0&&(e=1);var t=1/e,i=e+(r?0:1),n=r?1:0,s=1-le;return function(o){return((i*an(0,s,o)|0)+n)*t}}};gi.ease=ee["quad.out"];lt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(a){return Bs+=a+","+a+"Params,"});var Oa=function(e,r){this.id=Au++,e._gsap=this,this.target=e,this.harness=r,this.get=r?r.get:sa,this.set=r?r.getSetter:qs},tn=(function(){function a(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,vi(this,+r.duration,1,1),this.data=r.data,he&&(this._ctx=he,he.data.push(this)),en||Tt.wake()}var e=a.prototype;return e.delay=function(t){return t||t===0?(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,vi(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,i){if(xi(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(qn(this,t),!n._dp||n.parent||fa(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Ht(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===le||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),oa(this,t,i)),this},e.time=function(t,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+go(this))%(this._dur+this._rDelay)||(t?this._dur:0),i):this._time},e.totalProgress=function(t,i){return arguments.length?this.totalTime(this.totalDuration()*t,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-t:t)+go(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,i):this._repeat?yi(this._tTime,n)+1:1},e.timeScale=function(t,i){if(!arguments.length)return this._rts===-le?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?In(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-le?0:this._rts,this.totalTime(an(-Math.abs(this._delay),this.totalDuration(),n),i!==!1),Wn(this),Uu(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):(xi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==le&&(this._tTime-=le)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=ge(t);var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Ht(i,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(ut(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var i=this.parent||this._dp;return i?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?In(i.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){t===void 0&&(t=Yu);var i=Ve;return Ve=t,Xs(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),this.data!=="nested"&&t.kill!==!1&&this.kill(),Ve=i,this},e.globalTime=function(t){for(var i=this,n=arguments.length?t:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,mo(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var i=this._time;return this._rDelay=t,mo(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,i){return this.totalTime(At(this,t),ut(i))},e.restart=function(t,i){return this.play().totalTime(t?-this._delay:0,ut(i)),this._dur||(this._zTime=-le),this},e.play=function(t,i){return t!=null&&this.seek(t,i),this.reversed(!1).paused(!1)},e.reverse=function(t,i){return t!=null&&this.seek(t||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(t,i){return t!=null&&this.seek(t,i),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?-le:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-le,this},e.isActive=function(){var t=this.parent||this._dp,i=this._start,n;return!!(!t||this._ts&&this._initted&&t.isActive()&&(n=t.rawTime(!0))>=i&&n<this.endTime(!0)-le)},e.eventCallback=function(t,i,n){var s=this.vars;return arguments.length>1?(i?(s[t]=i,n&&(s[t+"Params"]=n),t==="onUpdate"&&(this._onUpdate=i)):delete s[t],this):s[t]},e.then=function(t){var i=this,n=i._prom;return new Promise(function(s){var o=we(t)?t:ua,u=function(){var f=i.then;i.then=null,n&&n(),we(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=f),s(o),i.then=f};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?u():i._prom=u})},e.kill=function(){Mi(this)},a})();Dt(tn.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:-le,_prom:0,_ps:!1,_rts:1});var nt=(function(a){jo(e,a);function e(t,i){var n;return t===void 0&&(t={}),n=a.call(this,t)||this,n.labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=ut(t.sortChildren),me&&Ht(t.parent||me,nr(n),i),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&ca(nr(n),t.scrollTrigger),n}var r=e.prototype;return r.to=function(i,n,s){return Yi(0,arguments,this),this},r.from=function(i,n,s){return Yi(1,arguments,this),this},r.fromTo=function(i,n,s,o){return Yi(2,arguments,this),this},r.set=function(i,n,s){return n.duration=0,n.parent=this,Ni(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new Me(i,n,At(this,s),1),this},r.call=function(i,n,s){return Ht(this,Me.delayedCall(0,i,n),s)},r.staggerTo=function(i,n,s,o,u,l,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=l,s.onCompleteParams=f,s.parent=this,new Me(i,s,At(this,u)),this},r.staggerFrom=function(i,n,s,o,u,l,f){return s.runBackwards=1,Ni(s).immediateRender=ut(s.immediateRender),this.staggerTo(i,n,s,o,u,l,f)},r.staggerFromTo=function(i,n,s,o,u,l,f,_){return o.startAt=s,Ni(o).immediateRender=ut(o.immediateRender),this.staggerTo(i,n,o,u,l,f,_)},r.render=function(i,n,s){var o=this._time,u=this._dirty?this.totalDuration():this._tDur,l=this._dur,f=i<=0?0:ge(i),_=this._zTime<0!=i<0&&(this._initted||!l),d,c,p,h,m,b,w,S,v,T,k,x;if(this!==me&&f>u&&i>=0&&(f=u),f!==this._tTime||s||_){if(o!==this._time&&l&&(f+=this._time-o,i+=this._time-o),d=f,v=this._start,S=this._ts,b=!S,_&&(l||(o=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(k=this._yoyo,m=l+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(m*100+i,n,s);if(d=ge(f%m),f===u?(h=this._repeat,d=l):(T=ge(f/m),h=~~T,h&&h===T&&(d=l,h--),d>l&&(d=l)),T=yi(this._tTime,m),!o&&this._tTime&&T!==h&&this._tTime-T*m-this._dur<=0&&(T=h),k&&h&1&&(d=l-d,x=1),h!==T&&!this._lock){var O=k&&T&1,P=O===(k&&h&1);if(h<T&&(O=!O),o=O?0:f%l?l:f,this._lock=1,this.render(o||(x?0:ge(h*m)),n,!l)._lock=0,this._tTime=f,!n&&this.parent&&Pt(this,"onRepeat"),this.vars.repeatRefresh&&!x&&(this.invalidate()._lock=1,T=h),o&&o!==this._time||b!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,u=this._tDur,P&&(this._lock=2,o=O?l:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!x&&this.invalidate()),this._lock=0,!this._ts&&!b)return this;ka(this,x)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=Gu(this,ge(o),ge(d)),w&&(f-=d-(d=w._start))),this._tTime=f,this._time=d,this._act=!S,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&f&&l&&!n&&!T&&(Pt(this,"onStart"),this._tTime!==f))return this;if(d>=o&&i>=0)for(c=this._first;c;){if(p=c._next,(c._act||d>=c._start)&&c._ts&&w!==c){if(c.parent!==this)return this.render(i,n,s);if(c.render(c._ts>0?(d-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(d-c._start)*c._ts,n,s),d!==this._time||!this._ts&&!b){w=0,p&&(f+=this._zTime=-le);break}}c=p}else{c=this._last;for(var C=i<0?i:d;c;){if(p=c._prev,(c._act||C<=c._end)&&c._ts&&w!==c){if(c.parent!==this)return this.render(i,n,s);if(c.render(c._ts>0?(C-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(C-c._start)*c._ts,n,s||Ve&&Xs(c)),d!==this._time||!this._ts&&!b){w=0,p&&(f+=this._zTime=C?-le:le);break}}c=p}}if(w&&!n&&(this.pause(),w.render(d>=o?0:-le)._zTime=d>=o?1:-1,this._ts))return this._start=v,Wn(this),this.render(i,n,s);this._onUpdate&&!n&&Pt(this,"onUpdate",!0),(f===u&&this._tTime>=this.totalDuration()||!f&&o)&&(v===this._start||Math.abs(S)!==Math.abs(this._ts))&&(this._lock||((i||!l)&&(f===u&&this._ts>0||!f&&this._ts<0)&&Pr(this,1),!n&&!(i<0&&!o)&&(f||o||!u)&&(Pt(this,f===u&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<u&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(i,n){var s=this;if(lr(n)||(n=At(this,n,i)),!(i instanceof tn)){if(Qe(i))return i.forEach(function(o){return s.add(o,n)}),this;if(Ye(i))return this.addLabel(i,n);if(we(i))i=Me.delayedCall(0,i);else return this}return this!==i?Ht(this,i,n):this},r.getChildren=function(i,n,s,o){i===void 0&&(i=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-Ft);for(var u=[],l=this._first;l;)l._start>=o&&(l instanceof Me?n&&u.push(l):(s&&u.push(l),i&&u.push.apply(u,l.getChildren(!0,n,s)))),l=l._next;return u},r.getById=function(i){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===i)return n[s]},r.remove=function(i){return Ye(i)?this.removeLabel(i):we(i)?this.killTweensOf(i):(i.parent===this&&Vn(this,i),i===this._recent&&(this._recent=this._last),Ur(this))},r.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ge(Tt.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),a.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},r.addLabel=function(i,n){return this.labels[i]=At(this,n),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,n,s){var o=Me.delayedCall(0,n||Qi,s);return o.data="isPause",this._hasPause=1,Ht(this,o,At(this,i))},r.removePause=function(i){var n=this._first;for(i=At(this,i);n;)n._start===i&&n.data==="isPause"&&Pr(n),n=n._next},r.killTweensOf=function(i,n,s){for(var o=this.getTweensOf(i,s),u=o.length;u--;)mr!==o[u]&&o[u].kill(i,n);return this},r.getTweensOf=function(i,n){for(var s=[],o=zt(i),u=this._first,l=lr(n),f;u;)u instanceof Me?Bu(u._targets,o)&&(l?(!mr||u._initted&&u._ts)&&u.globalTime(0)<=n&&u.globalTime(u.totalDuration())>n:!n||u.isActive())&&s.push(u):(f=u.getTweensOf(o,n)).length&&s.push.apply(s,f),u=u._next;return s},r.tweenTo=function(i,n){n=n||{};var s=this,o=At(s,i),u=n,l=u.startAt,f=u.onStart,_=u.onStartParams,d=u.immediateRender,c,p=Me.to(s,Dt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale())||le,onStart:function(){if(s.pause(),!c){var m=n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale());p._dur!==m&&vi(p,m,0,1).render(p._time,!0,!0),c=1}f&&f.apply(p,_||[])}},n));return d?p.render(0):p},r.tweenFromTo=function(i,n,s){return this.tweenTo(n,Dt({startAt:{time:At(this,i)}},s))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),yo(this,At(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),yo(this,At(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+le)},r.shiftChildren=function(i,n,s){s===void 0&&(s=0);var o=this._first,u=this.labels,l;for(i=ge(i);o;)o._start>=s&&(o._start+=i,o._end+=i),o=o._next;if(n)for(l in u)u[l]>=s&&(u[l]+=i);return Ur(this)},r.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return a.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Ur(this)},r.totalDuration=function(i){var n=0,s=this,o=s._last,u=Ft,l,f,_;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(_=s.parent;o;)l=o._prev,o._dirty&&o.totalDuration(),f=o._start,f>u&&s._sort&&o._ts&&!s._lock?(s._lock=1,Ht(s,o,f-o._delay,1)._lock=0):u=f,f<0&&o._ts&&(n-=f,(!_&&!s._dp||_&&_.smoothChildTiming)&&(s._start+=ge(f/s._ts),s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),u=0),o._end>n&&o._ts&&(n=o._end),o=l;vi(s,s===me&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(me._ts&&(oa(me,In(i,me)),na=Tt.frame),Tt.frame>=_o){_o+=Ct.autoSleep||120;var n=me._first;if((!n||!n._ts)&&Ct.autoSleep&&Tt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||Tt.sleep()}}},e})(tn);Dt(nt.prototype,{_lock:0,_hasPause:0,_forcing:0});var ll=function(e,r,t,i,n,s,o){var u=new ft(this._pt,e,r,0,1,Fa,null,n),l=0,f=0,_,d,c,p,h,m,b,w;for(u.b=t,u.e=i,t+="",i+="",(b=~i.indexOf("random("))&&(i=Ji(i)),s&&(w=[t,i],s(w,e,r),t=w[0],i=w[1]),d=t.match(Kn)||[];_=Kn.exec(i);)p=_[0],h=i.substring(l,_.index),c?c=(c+1)%5:h.substr(-5)==="rgba("&&(c=1),p!==d[f++]&&(m=parseFloat(d[f-1])||0,u._pt={_next:u._pt,p:h||f===1?h:",",s:m,c:p.charAt(1)==="="?fi(m,p)-m:parseFloat(p)-m,m:c&&c<4?Math.round:0},l=Kn.lastIndex);return u.c=l<i.length?i.substring(l,i.length):"",u.fp=o,(ea.test(i)||b)&&(u.e=0),this._pt=u,u},Us=function(e,r,t,i,n,s,o,u,l,f){we(i)&&(i=i(n||0,e,s));var _=e[r],d=t!=="get"?t:we(_)?l?e[r.indexOf("set")||!we(e["get"+r.substr(3)])?r:"get"+r.substr(3)](l):e[r]():_,c=we(_)?l?dl:Ra:Ws,p;if(Ye(i)&&(~i.indexOf("random(")&&(i=Ji(i)),i.charAt(1)==="="&&(p=fi(d,i)+(je(d)||0),(p||p===0)&&(i=p))),!f||d!==i||ys)return!isNaN(d*i)&&i!==""?(p=new ft(this._pt,e,r,+d||0,i-(d||0),typeof _=="boolean"?gl:Ea,0,c),l&&(p.fp=l),o&&p.modifier(o,this,e),this._pt=p):(!_&&!(r in e)&&Ns(r,i),ll.call(this,e,r,d,i,c,u||Ct.stringFilter,l))},fl=function(e,r,t,i,n){if(we(e)&&(e=Bi(e,n,r,t,i)),!Qt(e)||e.style&&e.nodeType||Qe(e)||Qo(e))return Ye(e)?Bi(e,n,r,t,i):e;var s={},o;for(o in e)s[o]=Bi(e[o],n,r,t,i);return s},Da=function(e,r,t,i,n,s){var o,u,l,f;if(xt[e]&&(o=new xt[e]).init(n,o.rawVars?r[e]:fl(r[e],i,n,s,t),t,i,s)!==!1&&(t._pt=u=new ft(t._pt,n,e,0,1,o.render,o,0,o.priority),t!==ui))for(l=t._ptLookup[t._targets.indexOf(n)],f=o._props.length;f--;)l[o._props[f]]=u;return o},mr,ys,Vs=function a(e,r,t){var i=e.vars,n=i.ease,s=i.startAt,o=i.immediateRender,u=i.lazy,l=i.onUpdate,f=i.runBackwards,_=i.yoyoEase,d=i.keyframes,c=i.autoRevert,p=e._dur,h=e._startAt,m=e._targets,b=e.parent,w=b&&b.data==="nested"?b.vars.targets:m,S=e._overwrite==="auto"&&!Fs,v=e.timeline,T,k,x,O,P,C,L,M,V,$,K,W,F;if(v&&(!d||!n)&&(n="none"),e._ease=Vr(n,gi.ease),e._yEase=_?Pa(Vr(_===!0?n:_,gi.ease)):0,_&&e._yoyo&&!e._repeat&&(_=e._yEase,e._yEase=e._ease,e._ease=_),e._from=!v&&!!i.runBackwards,!v||d&&!i.stagger){if(M=m[0]?Xr(m[0]).harness:0,W=M&&i[M.prop],T=zn(i,Ys),h&&(h._zTime<0&&h.progress(1),r<0&&f&&o&&!c?h.render(-1,!0):h.revert(f&&p?Sn:Nu),h._lazy=0),s){if(Pr(e._startAt=Me.set(m,Dt({data:"isStart",overwrite:!1,parent:b,immediateRender:!0,lazy:!h&&ut(u),startAt:null,delay:0,onUpdate:l&&function(){return Pt(e,"onUpdate")},stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(Ve||!o&&!c)&&e._startAt.revert(Sn),o&&p&&r<=0&&t<=0){r&&(e._zTime=r);return}}else if(f&&p&&!h){if(r&&(o=!1),x=Dt({overwrite:!1,data:"isFromStart",lazy:o&&!h&&ut(u),immediateRender:o,stagger:0,parent:b},T),W&&(x[M.prop]=W),Pr(e._startAt=Me.set(m,x)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(Ve?e._startAt.revert(Sn):e._startAt.render(-1,!0)),e._zTime=r,!o)a(e._startAt,le,le);else if(!r)return}for(e._pt=e._ptCache=0,u=p&&ut(u)||u&&!p,k=0;k<m.length;k++){if(P=m[k],L=P._gsap||$s(m)[k]._gsap,e._ptLookup[k]=$={},hs[L.id]&&br.length&&Fn(),K=w===m?k:w.indexOf(P),M&&(V=new M).init(P,W||T,e,K,w)!==!1&&(e._pt=O=new ft(e._pt,P,V.name,0,1,V.render,V,0,V.priority),V._props.forEach(function(Z){$[Z]=O}),V.priority&&(C=1)),!M||W)for(x in T)xt[x]&&(V=Da(x,T,e,K,P,w))?V.priority&&(C=1):$[x]=O=Us.call(e,P,x,"get",T[x],K,w,0,i.stringFilter);e._op&&e._op[k]&&e.kill(P,e._op[k]),S&&e._pt&&(mr=e,me.killTweensOf(P,$,e.globalTime(r)),F=!e.parent,mr=0),e._pt&&u&&(hs[L.id]=1)}C&&za(e),e._onInit&&e._onInit(e)}e._onUpdate=l,e._initted=(!e._op||e._pt)&&!F,d&&r<=0&&v.render(Ft,!0,!0)},cl=function(e,r,t,i,n,s,o,u){var l=(e._pt&&e._ptCache||(e._ptCache={}))[r],f,_,d,c;if(!l)for(l=e._ptCache[r]=[],d=e._ptLookup,c=e._targets.length;c--;){if(f=d[c][r],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==r&&f.fp!==r;)f=f._next;if(!f)return ys=1,e.vars[r]="+=0",Vs(e,o),ys=0,u?Zi(r+" not eligible for reset"):1;l.push(f)}for(c=l.length;c--;)_=l[c],f=_._pt||_,f.s=(i||i===0)&&!n?i:f.s+(i||0)+s*f.c,f.c=t-f.s,_.e&&(_.e=Pe(t)+je(_.e)),_.b&&(_.b=f.s+je(_.b))},hl=function(e,r){var t=e[0]?Xr(e[0]).harness:0,i=t&&t.aliases,n,s,o,u;if(!i)return r;n=mi({},r);for(s in i)if(s in n)for(u=i[s].split(","),o=u.length;o--;)n[u[o]]=n[s];return n},_l=function(e,r,t,i){var n=r.ease||i||"power1.inOut",s,o;if(Qe(r))o=t[e]||(t[e]=[]),r.forEach(function(u,l){return o.push({t:l/(r.length-1)*100,v:u,e:n})});else for(s in r)o=t[s]||(t[s]=[]),s==="ease"||o.push({t:parseFloat(e),v:r[s],e:n})},Bi=function(e,r,t,i,n){return we(e)?e.call(r,t,i,n):Ye(e)&&~e.indexOf("random(")?Ji(e):e},Ma=Bs+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Aa={};lt(Ma+",id,stagger,delay,duration,paused,scrollTrigger",function(a){return Aa[a]=1});var Me=(function(a){jo(e,a);function e(t,i,n,s){var o;typeof i=="number"&&(n.duration=i,i=n,n=null),o=a.call(this,s?i:Ni(i))||this;var u=o.vars,l=u.duration,f=u.delay,_=u.immediateRender,d=u.stagger,c=u.overwrite,p=u.keyframes,h=u.defaults,m=u.scrollTrigger,b=u.yoyoEase,w=i.parent||me,S=(Qe(t)||Qo(t)?lr(t[0]):"length"in i)?[t]:zt(t),v,T,k,x,O,P,C,L;if(o._targets=S.length?$s(S):Zi("GSAP target "+t+" not found. https://gsap.com",!Ct.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=c,p||d||cn(l)||cn(f)){if(i=o.vars,v=o.timeline=new nt({data:"nested",defaults:h||{},targets:w&&w.data==="nested"?w.vars.targets:S}),v.kill(),v.parent=v._dp=nr(o),v._start=0,d||cn(l)||cn(f)){if(x=S.length,C=d&&pa(d),Qt(d))for(O in d)~Ma.indexOf(O)&&(L||(L={}),L[O]=d[O]);for(T=0;T<x;T++)k=zn(i,Aa),k.stagger=0,b&&(k.yoyoEase=b),L&&mi(k,L),P=S[T],k.duration=+Bi(l,nr(o),T,P,S),k.delay=(+Bi(f,nr(o),T,P,S)||0)-o._delay,!d&&x===1&&k.delay&&(o._delay=f=k.delay,o._start+=f,k.delay=0),v.to(P,k,C?C(T,P,S):0),v._ease=ee.none;v.duration()?l=f=0:o.timeline=0}else if(p){Ni(Dt(v.vars.defaults,{ease:"none"})),v._ease=Vr(p.ease||i.ease||"none");var M=0,V,$,K;if(Qe(p))p.forEach(function(W){return v.to(S,W,">")}),v.duration();else{k={};for(O in p)O==="ease"||O==="easeEach"||_l(O,p[O],k,p.easeEach);for(O in k)for(V=k[O].sort(function(W,F){return W.t-F.t}),M=0,T=0;T<V.length;T++)$=V[T],K={ease:$.e,duration:($.t-(T?V[T-1].t:0))/100*l},K[O]=$.v,v.to(S,K,M),M+=K.duration;v.duration()<l&&v.to({},{duration:l-v.duration()})}}l||o.duration(l=v.duration())}else o.timeline=0;return c===!0&&!Fs&&(mr=nr(o),me.killTweensOf(S),mr=0),Ht(w,nr(o),n),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(_||!l&&!p&&o._start===ge(w._time)&&ut(_)&&Vu(nr(o))&&w.data!=="nested")&&(o._tTime=-le,o.render(Math.max(0,-f)||0)),m&&ca(nr(o),m),o}var r=e.prototype;return r.render=function(i,n,s){var o=this._time,u=this._tDur,l=this._dur,f=i<0,_=i>u-le&&!f?u:i<le?0:i,d,c,p,h,m,b,w,S,v;if(!l)qu(this,i,n,s);else if(_!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(d=_,S=this.timeline,this._repeat){if(h=l+this._rDelay,this._repeat<-1&&f)return this.totalTime(h*100+i,n,s);if(d=ge(_%h),_===u?(p=this._repeat,d=l):(m=ge(_/h),p=~~m,p&&p===m?(d=l,p--):d>l&&(d=l)),b=this._yoyo&&p&1,b&&(v=this._yEase,d=l-d),m=yi(this._tTime,h),d===o&&!s&&this._initted&&p===m)return this._tTime=_,this;p!==m&&(S&&this._yEase&&ka(S,b),this.vars.repeatRefresh&&!b&&!this._lock&&d!==h&&this._initted&&(this._lock=s=1,this.render(ge(h*p),!0).invalidate()._lock=0))}if(!this._initted){if(ha(this,f?i:d,s,n,_))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&p!==m))return this;if(l!==this._dur)return this.render(i,n,s)}if(this._tTime=_,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(v||this._ease)(d/l),this._from&&(this.ratio=w=1-w),!o&&_&&!n&&!m&&(Pt(this,"onStart"),this._tTime!==_))return this;for(c=this._pt;c;)c.r(w,c.d),c=c._next;S&&S.render(i<0?i:S._dur*S._ease(d/this._dur),n,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(f&&_s(this,i,n,s),Pt(this,"onUpdate")),this._repeat&&p!==m&&this.vars.onRepeat&&!n&&this.parent&&Pt(this,"onRepeat"),(_===this._tDur||!_)&&this._tTime===_&&(f&&!this._onUpdate&&_s(this,i,!0,!0),(i||!l)&&(_===this._tDur&&this._ts>0||!_&&this._ts<0)&&Pr(this,1),!n&&!(f&&!o)&&(_||o||b)&&(Pt(this,_===u?"onComplete":"onReverseComplete",!0),this._prom&&!(_<u&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),a.prototype.invalidate.call(this,i)},r.resetTo=function(i,n,s,o,u){en||Tt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||Vs(this,l),f=this._ease(l/this._dur),cl(this,i,n,s,o,f,l,u)?this.resetTo(i,n,s,o,1):(qn(this,0),this.parent||la(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?Mi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Ve),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,mr&&mr.vars.overwrite!==!0)._first||Mi(this),this.parent&&s!==this.timeline.totalDuration()&&vi(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,u=i?zt(i):o,l=this._ptLookup,f=this._pt,_,d,c,p,h,m,b;if((!n||n==="all")&&Xu(o,u))return n==="all"&&(this._pt=0),Mi(this);for(_=this._op=this._op||[],n!=="all"&&(Ye(n)&&(h={},lt(n,function(w){return h[w]=1}),n=h),n=hl(o,n)),b=o.length;b--;)if(~u.indexOf(o[b])){d=l[b],n==="all"?(_[b]=n,p=d,c={}):(c=_[b]=_[b]||{},p=n);for(h in p)m=d&&d[h],m&&((!("kill"in m.d)||m.d.kill(h)===!0)&&Vn(this,m,"_pt"),delete d[h]),c!=="all"&&(c[h]=1)}return this._initted&&!this._pt&&f&&Mi(this),this},e.to=function(i,n){return new e(i,n,arguments[2])},e.from=function(i,n){return Yi(1,arguments)},e.delayedCall=function(i,n,s,o){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},e.fromTo=function(i,n,s){return Yi(2,arguments)},e.set=function(i,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(i,n)},e.killTweensOf=function(i,n,s){return me.killTweensOf(i,n,s)},e})(tn);Dt(Me.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});lt("staggerTo,staggerFrom,staggerFromTo",function(a){Me[a]=function(){var e=new nt,r=ps.call(arguments,0);return r.splice(a==="staggerFromTo"?5:4,0,0),e[a].apply(e,r)}});var Ws=function(e,r,t){return e[r]=t},Ra=function(e,r,t){return e[r](t)},dl=function(e,r,t,i){return e[r](i.fp,t)},pl=function(e,r,t){return e.setAttribute(r,t)},qs=function(e,r){return we(e[r])?Ra:zs(e[r])&&e.setAttribute?pl:Ws},Ea=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e6)/1e6,r)},gl=function(e,r){return r.set(r.t,r.p,!!(r.s+r.c*e),r)},Fa=function(e,r){var t=r._pt,i="";if(!e&&r.b)i=r.b;else if(e===1&&r.e)i=r.e;else{for(;t;)i=t.p+(t.m?t.m(t.s+t.c*e):Math.round((t.s+t.c*e)*1e4)/1e4)+i,t=t._next;i+=r.c}r.set(r.t,r.p,i,r)},Gs=function(e,r){for(var t=r._pt;t;)t.r(e,t.d),t=t._next},ml=function(e,r,t,i){for(var n=this._pt,s;n;)s=n._next,n.p===i&&n.modifier(e,r,t),n=s},yl=function(e){for(var r=this._pt,t,i;r;)i=r._next,r.p===e&&!r.op||r.op===e?Vn(this,r,"_pt"):r.dep||(t=1),r=i;return!t},vl=function(e,r,t,i){i.mSet(e,r,i.m.call(i.tween,t,i.mt),i)},za=function(e){for(var r=e._pt,t,i,n,s;r;){for(t=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=t}e._pt=n},ft=(function(){function a(r,t,i,n,s,o,u,l,f){this.t=t,this.s=n,this.c=s,this.p=i,this.r=o||Ea,this.d=u||this,this.set=l||Ws,this.pr=f||0,this._next=r,r&&(r._prev=this)}var e=a.prototype;return e.modifier=function(t,i,n){this.mSet=this.mSet||this.set,this.set=vl,this.m=t,this.mt=n,this.tween=i},a})();lt(Bs+"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(a){return Ys[a]=1});Ot.TweenMax=Ot.TweenLite=Me;Ot.TimelineLite=Ot.TimelineMax=nt;me=new nt({sortChildren:!1,defaults:gi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ct.stringFilter=Sa;var Wr=[],kn={},xl=[],xo=0,wl=0,es=function(e){return(kn[e]||xl).map(function(r){return r()})},vs=function(){var e=Date.now(),r=[];e-xo>2&&(es("matchMediaInit"),Wr.forEach(function(t){var i=t.queries,n=t.conditions,s,o,u,l;for(o in i)s=qt.matchMedia(i[o]).matches,s&&(u=1),s!==n[o]&&(n[o]=s,l=1);l&&(t.revert(),u&&r.push(t))}),es("matchMediaRevert"),r.forEach(function(t){return t.onMatch(t,function(i){return t.add(null,i)})}),xo=e,es("matchMedia"))},Ia=(function(){function a(r,t){this.selector=t&&gs(t),this.data=[],this._r=[],this.isReverted=!1,this.id=wl++,r&&this.add(r)}var e=a.prototype;return e.add=function(t,i,n){we(t)&&(n=i,i=t,t=we);var s=this,o=function(){var l=he,f=s.selector,_;return l&&l!==s&&l.data.push(s),n&&(s.selector=gs(n)),he=s,_=i.apply(s,arguments),we(_)&&s._r.push(_),he=l,s.selector=f,s.isReverted=!1,_};return s.last=o,t===we?o(s,function(u){return s.add(null,u)}):t?s[t]=o:o},e.ignore=function(t){var i=he;he=null,t(this),he=i},e.getTweens=function(){var t=[];return this.data.forEach(function(i){return i instanceof a?t.push.apply(t,i.getTweens()):i instanceof Me&&!(i.parent&&i.parent.data==="nested")&&t.push(i)}),t},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,i){var n=this;if(t?(function(){for(var o=n.getTweens(),u=n.data.length,l;u--;)l=n.data[u],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(f){return o.splice(o.indexOf(f),1)}));for(o.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,_){return _.g-f.g||-1/0}).forEach(function(f){return f.t.revert(t)}),u=n.data.length;u--;)l=n.data[u],l instanceof nt?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof Me)&&l.revert&&l.revert(t);n._r.forEach(function(f){return f(t,n)}),n.isReverted=!0})():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var s=Wr.length;s--;)Wr[s].id===this.id&&Wr.splice(s,1)},e.revert=function(t){this.kill(t||{})},a})(),bl=(function(){function a(r){this.contexts=[],this.scope=r,he&&he.data.push(this)}var e=a.prototype;return e.add=function(t,i,n){Qt(t)||(t={matches:t});var s=new Ia(0,n||this.scope),o=s.conditions={},u,l,f;he&&!s.selector&&(s.selector=he.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=t;for(l in t)l==="all"?f=1:(u=qt.matchMedia(t[l]),u&&(Wr.indexOf(s)<0&&Wr.push(s),(o[l]=u.matches)&&(f=1),u.addListener?u.addListener(vs):u.addEventListener("change",vs)));return f&&i(s,function(_){return s.add(null,_)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(i){return i.kill(t,!0)})},a})(),Ln={registerPlugin:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];r.forEach(function(i){return wa(i)})},timeline:function(e){return new nt(e)},getTweensOf:function(e,r){return me.getTweensOf(e,r)},getProperty:function(e,r,t,i){Ye(e)&&(e=zt(e)[0]);var n=Xr(e||{}).get,s=t?ua:aa;return t==="native"&&(t=""),e&&(r?s((xt[r]&&xt[r].get||n)(e,r,t,i)):function(o,u,l){return s((xt[o]&&xt[o].get||n)(e,o,u,l))})},quickSetter:function(e,r,t){if(e=zt(e),e.length>1){var i=e.map(function(f){return ht.quickSetter(f,r,t)}),n=i.length;return function(f){for(var _=n;_--;)i[_](f)}}e=e[0]||{};var s=xt[r],o=Xr(e),u=o.harness&&(o.harness.aliases||{})[r]||r,l=s?function(f){var _=new s;ui._pt=0,_.init(e,t?f+t:f,ui,0,[e]),_.render(1,_),ui._pt&&Gs(1,ui)}:o.set(e,u);return s?l:function(f){return l(e,u,t?f+t:f,o,1)}},quickTo:function(e,r,t){var i,n=ht.to(e,Dt((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),t||{})),s=function(u,l,f){return n.resetTo(r,u,l,f)};return s.tween=n,s},isTweening:function(e){return me.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Vr(e.ease,gi.ease)),po(gi,e||{})},config:function(e){return po(Ct,e||{})},registerEffect:function(e){var r=e.name,t=e.effect,i=e.plugins,n=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!xt[o]&&!Ot[o]&&Zi(r+" effect requires "+o+" plugin.")}),jn[r]=function(o,u,l){return t(zt(o),Dt(u||{},n),l)},s&&(nt.prototype[r]=function(o,u,l){return this.add(jn[r](o,Qt(u)?u:(l=u)&&{},this),l)})},registerEase:function(e,r){ee[e]=Vr(r)},parseEase:function(e,r){return arguments.length?Vr(e,r):ee},getById:function(e){return me.getById(e)},exportRoot:function(e,r){e===void 0&&(e={});var t=new nt(e),i,n;for(t.smoothChildTiming=ut(e.smoothChildTiming),me.remove(t),t._dp=0,t._time=t._tTime=me._time,i=me._first;i;)n=i._next,(r||!(!i._dur&&i instanceof Me&&i.vars.onComplete===i._targets[0]))&&Ht(t,i,i._start-i._delay),i=n;return Ht(me,t,0),t},context:function(e,r){return e?new Ia(e,r):he},matchMedia:function(e){return new bl(e)},matchMediaRefresh:function(){return Wr.forEach(function(e){var r=e.conditions,t,i;for(i in r)r[i]&&(r[i]=!1,t=1);t&&e.revert()})||vs()},addEventListener:function(e,r){var t=kn[e]||(kn[e]=[]);~t.indexOf(r)||t.push(r)},removeEventListener:function(e,r){var t=kn[e],i=t&&t.indexOf(r);i>=0&&t.splice(i,1)},utils:{wrap:el,wrapYoyo:tl,distribute:pa,random:ma,snap:ga,normalize:Ju,getUnit:je,clamp:Ku,splitColor:ba,toArray:zt,selector:gs,mapRange:va,pipe:Zu,unitize:Qu,interpolate:rl,shuffle:da},install:ra,effects:jn,ticker:Tt,updateRoot:nt.updateRoot,plugins:xt,globalTimeline:me,core:{PropTween:ft,globals:ia,Tween:Me,Timeline:nt,Animation:tn,getCache:Xr,_removeLinkedListItem:Vn,reverting:function(){return Ve},context:function(e){return e&&he&&(he.data.push(e),e._ctx=he),he},suppressOverwrites:function(e){return Fs=e}}};lt("to,from,fromTo,delayedCall,set,killTweensOf",function(a){return Ln[a]=Me[a]});Tt.add(nt.updateRoot);ui=Ln.to({},{duration:0});var Tl=function(e,r){for(var t=e._pt;t&&t.p!==r&&t.op!==r&&t.fp!==r;)t=t._next;return t},Sl=function(e,r){var t=e._targets,i,n,s;for(i in r)for(n=t.length;n--;)s=e._ptLookup[n][i],s&&(s=s.d)&&(s._pt&&(s=Tl(s,i)),s&&s.modifier&&s.modifier(r[i],e,t[n],i))},ts=function(e,r){return{name:e,headless:1,rawVars:1,init:function(i,n,s){s._onInit=function(o){var u,l;if(Ye(n)&&(u={},lt(n,function(f){return u[f]=1}),n=u),r){u={};for(l in n)u[l]=r(n[l]);n=u}Sl(o,n)}}}},ht=Ln.registerPlugin({name:"attr",init:function(e,r,t,i,n){var s,o,u;this.tween=t;for(s in r)u=e.getAttribute(s)||"",o=this.add(e,"setAttribute",(u||0)+"",r[s],i,n,0,0,s),o.op=s,o.b=u,this._props.push(s)},render:function(e,r){for(var t=r._pt;t;)Ve?t.set(t.t,t.p,t.b,t):t.r(e,t.d),t=t._next}},{name:"endArray",headless:1,init:function(e,r){for(var t=r.length;t--;)this.add(e,t,e[t]||0,r[t],0,0,0,0,0,1)}},ts("roundProps",ms),ts("modifiers"),ts("snap",ga))||Ln;Me.version=nt.version=ht.version="3.14.2";ta=1;Is()&&xi();ee.Power0;ee.Power1;ee.Power2;ee.Power3;ee.Power4;ee.Linear;ee.Quad;ee.Cubic;ee.Quart;ee.Quint;ee.Strong;ee.Elastic;ee.Back;ee.SteppedEase;ee.Bounce;ee.Sine;ee.Expo;ee.Circ;var wo,yr,ci,Hs,Br,bo,Ks,Pl=function(){return typeof window<"u"},fr={},Lr=180/Math.PI,hi=Math.PI/180,ri=Math.atan2,To=1e8,js=/([A-Z])/g,kl=/(left|right|width|margin|padding|x)/i,Cl=/[\s,\(]\S/,Kt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},xs=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},Ol=function(e,r){return r.set(r.t,r.p,e===1?r.e:Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},Dl=function(e,r){return r.set(r.t,r.p,e?Math.round((r.s+r.c*e)*1e4)/1e4+r.u:r.b,r)},Ml=function(e,r){return r.set(r.t,r.p,e===1?r.e:e?Math.round((r.s+r.c*e)*1e4)/1e4+r.u:r.b,r)},Al=function(e,r){var t=r.s+r.c*e;r.set(r.t,r.p,~~(t+(t<0?-.5:.5))+r.u,r)},La=function(e,r){return r.set(r.t,r.p,e?r.e:r.b,r)},Na=function(e,r){return r.set(r.t,r.p,e!==1?r.b:r.e,r)},Rl=function(e,r,t){return e.style[r]=t},El=function(e,r,t){return e.style.setProperty(r,t)},Fl=function(e,r,t){return e._gsap[r]=t},zl=function(e,r,t){return e._gsap.scaleX=e._gsap.scaleY=t},Il=function(e,r,t,i,n){var s=e._gsap;s.scaleX=s.scaleY=t,s.renderTransform(n,s)},Ll=function(e,r,t,i,n){var s=e._gsap;s[r]=t,s.renderTransform(n,s)},ye="transform",ct=ye+"Origin",Nl=function a(e,r){var t=this,i=this.target,n=i.style,s=i._gsap;if(e in fr&&n){if(this.tfm=this.tfm||{},e!=="transform")e=Kt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return t.tfm[o]=sr(i,o)}):this.tfm[e]=s.x?s[e]:sr(i,e),e===ct&&(this.tfm.zOrigin=s.zOrigin);else return Kt.transform.split(",").forEach(function(o){return a.call(t,o,r)});if(this.props.indexOf(ye)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ct,r,"")),e=ye}(n||r)&&this.props.push(e,r,n[e])},Ya=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Yl=function(){var e=this.props,r=this.target,t=r.style,i=r._gsap,n,s;for(n=0;n<e.length;n+=3)e[n+1]?e[n+1]===2?r[e[n]](e[n+2]):r[e[n]]=e[n+2]:e[n+2]?t[e[n]]=e[n+2]:t.removeProperty(e[n].substr(0,2)==="--"?e[n]:e[n].replace(js,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),n=Ks(),(!n||!n.isStart)&&!t[ye]&&(Ya(t),i.zOrigin&&t[ct]&&(t[ct]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Ba=function(e,r){var t={target:e,props:[],revert:Yl,save:Nl};return e._gsap||ht.core.getCache(e),r&&e.style&&e.nodeType&&r.split(",").forEach(function(i){return t.save(i)}),t},$a,ws=function(e,r){var t=yr.createElementNS?yr.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):yr.createElement(e);return t&&t.style?t:yr.createElement(e)},kt=function a(e,r,t){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(js,"-$1").toLowerCase())||i.getPropertyValue(r)||!t&&a(e,wi(r)||r,1)||""},So="O,Moz,ms,Ms,Webkit".split(","),wi=function(e,r,t){var i=r||Br,n=i.style,s=5;if(e in n&&!t)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(So[s]+e in n););return s<0?null:(s===3?"ms":s>=0?So[s]:"")+e},bs=function(){Pl()&&window.document&&(wo=window,yr=wo.document,ci=yr.documentElement,Br=ws("div")||{style:{}},ws("div"),ye=wi(ye),ct=ye+"Origin",Br.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",$a=!!wi("perspective"),Ks=ht.core.reverting,Hs=1)},Po=function(e){var r=e.ownerSVGElement,t=ws("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),n;i.style.display="block",t.appendChild(i),ci.appendChild(t);try{n=i.getBBox()}catch{}return t.removeChild(i),ci.removeChild(t),n},ko=function(e,r){for(var t=r.length;t--;)if(e.hasAttribute(r[t]))return e.getAttribute(r[t])},Xa=function(e){var r,t;try{r=e.getBBox()}catch{r=Po(e),t=1}return r&&(r.width||r.height)||t||(r=Po(e)),r&&!r.width&&!r.x&&!r.y?{x:+ko(e,["x","cx","x1"])||0,y:+ko(e,["y","cy","y1"])||0,width:0,height:0}:r},Ua=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Xa(e))},kr=function(e,r){if(r){var t=e.style,i;r in fr&&r!==ct&&(r=ye),t.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),t.removeProperty(i==="--"?r:r.replace(js,"-$1").toLowerCase())):t.removeAttribute(r)}},vr=function(e,r,t,i,n,s){var o=new ft(e._pt,r,t,0,1,s?Na:La);return e._pt=o,o.b=i,o.e=n,e._props.push(t),o},Co={deg:1,rad:1,turn:1},Bl={grid:1,flex:1},Cr=function a(e,r,t,i){var n=parseFloat(t)||0,s=(t+"").trim().substr((n+"").length)||"px",o=Br.style,u=kl.test(r),l=e.tagName.toLowerCase()==="svg",f=(l?"client":"offset")+(u?"Width":"Height"),_=100,d=i==="px",c=i==="%",p,h,m,b;if(i===s||!n||Co[i]||Co[s])return n;if(s!=="px"&&!d&&(n=a(e,r,t,"px")),b=e.getCTM&&Ua(e),(c||s==="%")&&(fr[r]||~r.indexOf("adius")))return p=b?e.getBBox()[u?"width":"height"]:e[f],Pe(c?n/p*_:n/100*p);if(o[u?"width":"height"]=_+(d?s:i),h=i!=="rem"&&~r.indexOf("adius")||i==="em"&&e.appendChild&&!l?e:e.parentNode,b&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===yr||!h.appendChild)&&(h=yr.body),m=h._gsap,m&&c&&m.width&&u&&m.time===Tt.time&&!m.uncache)return Pe(n/m.width*_);if(c&&(r==="height"||r==="width")){var w=e.style[r];e.style[r]=_+i,p=e[f],w?e.style[r]=w:kr(e,r)}else(c||s==="%")&&!Bl[kt(h,"display")]&&(o.position=kt(e,"position")),h===e&&(o.position="static"),h.appendChild(Br),p=Br[f],h.removeChild(Br),o.position="absolute";return u&&c&&(m=Xr(h),m.time=Tt.time,m.width=h[f]),Pe(d?p*n/_:p&&n?_/p*n:0)},sr=function(e,r,t,i){var n;return Hs||bs(),r in Kt&&r!=="transform"&&(r=Kt[r],~r.indexOf(",")&&(r=r.split(",")[0])),fr[r]&&r!=="transform"?(n=nn(e,i),n=r!=="transformOrigin"?n[r]:n.svg?n.origin:Yn(kt(e,ct))+" "+n.zOrigin+"px"):(n=e.style[r],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=Nn[r]&&Nn[r](e,r,t)||kt(e,r)||sa(e,r)||(r==="opacity"?1:0))),t&&!~(n+"").trim().indexOf(" ")?Cr(e,r,n,t)+t:n},$l=function(e,r,t,i){if(!t||t==="none"){var n=wi(r,e,1),s=n&&kt(e,n,1);s&&s!==t?(r=n,t=s):r==="borderColor"&&(t=kt(e,"borderTopColor"))}var o=new ft(this._pt,e.style,r,0,1,Fa),u=0,l=0,f,_,d,c,p,h,m,b,w,S,v,T;if(o.b=t,o.e=i,t+="",i+="",i.substring(0,6)==="var(--"&&(i=kt(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(h=e.style[r],e.style[r]=i,i=kt(e,r)||i,h?e.style[r]=h:kr(e,r)),f=[t,i],Sa(f),t=f[0],i=f[1],d=t.match(ai)||[],T=i.match(ai)||[],T.length){for(;_=ai.exec(i);)m=_[0],w=i.substring(u,_.index),p?p=(p+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(p=1),m!==(h=d[l++]||"")&&(c=parseFloat(h)||0,v=h.substr((c+"").length),m.charAt(1)==="="&&(m=fi(c,m)+v),b=parseFloat(m),S=m.substr((b+"").length),u=ai.lastIndex-S.length,S||(S=S||Ct.units[r]||v,u===i.length&&(i+=S,o.e+=S)),v!==S&&(c=Cr(e,r,h,S)||0),o._pt={_next:o._pt,p:w||l===1?w:",",s:c,c:b-c,m:p&&p<4||r==="zIndex"?Math.round:0});o.c=u<i.length?i.substring(u,i.length):""}else o.r=r==="display"&&i==="none"?Na:La;return ea.test(i)&&(o.e=0),this._pt=o,o},Oo={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Xl=function(e){var r=e.split(" "),t=r[0],i=r[1]||"50%";return(t==="top"||t==="bottom"||i==="left"||i==="right")&&(e=t,t=i,i=e),r[0]=Oo[t]||t,r[1]=Oo[i]||i,r.join(" ")},Ul=function(e,r){if(r.tween&&r.tween._time===r.tween._dur){var t=r.t,i=t.style,n=r.u,s=t._gsap,o,u,l;if(n==="all"||n===!0)i.cssText="",u=1;else for(n=n.split(","),l=n.length;--l>-1;)o=n[l],fr[o]&&(u=1,o=o==="transformOrigin"?ct:ye),kr(t,o);u&&(kr(t,ye),s&&(s.svg&&t.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",nn(t,1),s.uncache=1,Ya(i)))}},Nn={clearProps:function(e,r,t,i,n){if(n.data!=="isFromStart"){var s=e._pt=new ft(e._pt,r,t,0,0,Ul);return s.u=i,s.pr=-10,s.tween=n,e._props.push(t),1}}},rn=[1,0,0,1,0,0],Va={},Wa=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Do=function(e){var r=kt(e,ye);return Wa(r)?rn:r.substr(7).match(Jo).map(Pe)},Zs=function(e,r){var t=e._gsap||Xr(e),i=e.style,n=Do(e),s,o,u,l;return t.svg&&e.getAttribute("transform")?(u=e.transform.baseVal.consolidate().matrix,n=[u.a,u.b,u.c,u.d,u.e,u.f],n.join(",")==="1,0,0,1,0,0"?rn:n):(n===rn&&!e.offsetParent&&e!==ci&&!t.svg&&(u=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(l=1,o=e.nextElementSibling,ci.appendChild(e)),n=Do(e),u?i.display=u:kr(e,"display"),l&&(o?s.insertBefore(e,o):s?s.appendChild(e):ci.removeChild(e))),r&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Ts=function(e,r,t,i,n,s){var o=e._gsap,u=n||Zs(e,!0),l=o.xOrigin||0,f=o.yOrigin||0,_=o.xOffset||0,d=o.yOffset||0,c=u[0],p=u[1],h=u[2],m=u[3],b=u[4],w=u[5],S=r.split(" "),v=parseFloat(S[0])||0,T=parseFloat(S[1])||0,k,x,O,P;t?u!==rn&&(x=c*m-p*h)&&(O=v*(m/x)+T*(-h/x)+(h*w-m*b)/x,P=v*(-p/x)+T*(c/x)-(c*w-p*b)/x,v=O,T=P):(k=Xa(e),v=k.x+(~S[0].indexOf("%")?v/100*k.width:v),T=k.y+(~(S[1]||S[0]).indexOf("%")?T/100*k.height:T)),i||i!==!1&&o.smooth?(b=v-l,w=T-f,o.xOffset=_+(b*c+w*h)-b,o.yOffset=d+(b*p+w*m)-w):o.xOffset=o.yOffset=0,o.xOrigin=v,o.yOrigin=T,o.smooth=!!i,o.origin=r,o.originIsAbsolute=!!t,e.style[ct]="0px 0px",s&&(vr(s,o,"xOrigin",l,v),vr(s,o,"yOrigin",f,T),vr(s,o,"xOffset",_,o.xOffset),vr(s,o,"yOffset",d,o.yOffset)),e.setAttribute("data-svg-origin",v+" "+T)},nn=function(e,r){var t=e._gsap||new Oa(e);if("x"in t&&!r&&!t.uncache)return t;var i=e.style,n=t.scaleX<0,s="px",o="deg",u=getComputedStyle(e),l=kt(e,ct)||"0",f,_,d,c,p,h,m,b,w,S,v,T,k,x,O,P,C,L,M,V,$,K,W,F,Z,ne,g,se,Be,_t,_e,Fe;return f=_=d=h=m=b=w=S=v=0,c=p=1,t.svg=!!(e.getCTM&&Ua(e)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(i[ye]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[ye]!=="none"?u[ye]:"")),i.scale=i.rotate=i.translate="none"),x=Zs(e,t.svg),t.svg&&(t.uncache?(Z=e.getBBox(),l=t.xOrigin-Z.x+"px "+(t.yOrigin-Z.y)+"px",F=""):F=!r&&e.getAttribute("data-svg-origin"),Ts(e,F||l,!!F||t.originIsAbsolute,t.smooth!==!1,x)),T=t.xOrigin||0,k=t.yOrigin||0,x!==rn&&(L=x[0],M=x[1],V=x[2],$=x[3],f=K=x[4],_=W=x[5],x.length===6?(c=Math.sqrt(L*L+M*M),p=Math.sqrt($*$+V*V),h=L||M?ri(M,L)*Lr:0,w=V||$?ri(V,$)*Lr+h:0,w&&(p*=Math.abs(Math.cos(w*hi))),t.svg&&(f-=T-(T*L+k*V),_-=k-(T*M+k*$))):(Fe=x[6],_t=x[7],g=x[8],se=x[9],Be=x[10],_e=x[11],f=x[12],_=x[13],d=x[14],O=ri(Fe,Be),m=O*Lr,O&&(P=Math.cos(-O),C=Math.sin(-O),F=K*P+g*C,Z=W*P+se*C,ne=Fe*P+Be*C,g=K*-C+g*P,se=W*-C+se*P,Be=Fe*-C+Be*P,_e=_t*-C+_e*P,K=F,W=Z,Fe=ne),O=ri(-V,Be),b=O*Lr,O&&(P=Math.cos(-O),C=Math.sin(-O),F=L*P-g*C,Z=M*P-se*C,ne=V*P-Be*C,_e=$*C+_e*P,L=F,M=Z,V=ne),O=ri(M,L),h=O*Lr,O&&(P=Math.cos(O),C=Math.sin(O),F=L*P+M*C,Z=K*P+W*C,M=M*P-L*C,W=W*P-K*C,L=F,K=Z),m&&Math.abs(m)+Math.abs(h)>359.9&&(m=h=0,b=180-b),c=Pe(Math.sqrt(L*L+M*M+V*V)),p=Pe(Math.sqrt(W*W+Fe*Fe)),O=ri(K,W),w=Math.abs(O)>2e-4?O*Lr:0,v=_e?1/(_e<0?-_e:_e):0),t.svg&&(F=e.getAttribute("transform"),t.forceCSS=e.setAttribute("transform","")||!Wa(kt(e,ye)),F&&e.setAttribute("transform",F))),Math.abs(w)>90&&Math.abs(w)<270&&(n?(c*=-1,w+=h<=0?180:-180,h+=h<=0?180:-180):(p*=-1,w+=w<=0?180:-180)),r=r||t.uncache,t.x=f-((t.xPercent=f&&(!r&&t.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-f)?-50:0)))?e.offsetWidth*t.xPercent/100:0)+s,t.y=_-((t.yPercent=_&&(!r&&t.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-_)?-50:0)))?e.offsetHeight*t.yPercent/100:0)+s,t.z=d+s,t.scaleX=Pe(c),t.scaleY=Pe(p),t.rotation=Pe(h)+o,t.rotationX=Pe(m)+o,t.rotationY=Pe(b)+o,t.skewX=w+o,t.skewY=S+o,t.transformPerspective=v+s,(t.zOrigin=parseFloat(l.split(" ")[2])||!r&&t.zOrigin||0)&&(i[ct]=Yn(l)),t.xOffset=t.yOffset=0,t.force3D=Ct.force3D,t.renderTransform=t.svg?Wl:$a?qa:Vl,t.uncache=0,t},Yn=function(e){return(e=e.split(" "))[0]+" "+e[1]},rs=function(e,r,t){var i=je(r);return Pe(parseFloat(r)+parseFloat(Cr(e,"x",t+"px",i)))+i},Vl=function(e,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,qa(e,r)},zr="0deg",Ci="0px",Ir=") ",qa=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,s=t.x,o=t.y,u=t.z,l=t.rotation,f=t.rotationY,_=t.rotationX,d=t.skewX,c=t.skewY,p=t.scaleX,h=t.scaleY,m=t.transformPerspective,b=t.force3D,w=t.target,S=t.zOrigin,v="",T=b==="auto"&&e&&e!==1||b===!0;if(S&&(_!==zr||f!==zr)){var k=parseFloat(f)*hi,x=Math.sin(k),O=Math.cos(k),P;k=parseFloat(_)*hi,P=Math.cos(k),s=rs(w,s,x*P*-S),o=rs(w,o,-Math.sin(k)*-S),u=rs(w,u,O*P*-S+S)}m!==Ci&&(v+="perspective("+m+Ir),(i||n)&&(v+="translate("+i+"%, "+n+"%) "),(T||s!==Ci||o!==Ci||u!==Ci)&&(v+=u!==Ci||T?"translate3d("+s+", "+o+", "+u+") ":"translate("+s+", "+o+Ir),l!==zr&&(v+="rotate("+l+Ir),f!==zr&&(v+="rotateY("+f+Ir),_!==zr&&(v+="rotateX("+_+Ir),(d!==zr||c!==zr)&&(v+="skew("+d+", "+c+Ir),(p!==1||h!==1)&&(v+="scale("+p+", "+h+Ir),w.style[ye]=v||"translate(0, 0)"},Wl=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,s=t.x,o=t.y,u=t.rotation,l=t.skewX,f=t.skewY,_=t.scaleX,d=t.scaleY,c=t.target,p=t.xOrigin,h=t.yOrigin,m=t.xOffset,b=t.yOffset,w=t.forceCSS,S=parseFloat(s),v=parseFloat(o),T,k,x,O,P;u=parseFloat(u),l=parseFloat(l),f=parseFloat(f),f&&(f=parseFloat(f),l+=f,u+=f),u||l?(u*=hi,l*=hi,T=Math.cos(u)*_,k=Math.sin(u)*_,x=Math.sin(u-l)*-d,O=Math.cos(u-l)*d,l&&(f*=hi,P=Math.tan(l-f),P=Math.sqrt(1+P*P),x*=P,O*=P,f&&(P=Math.tan(f),P=Math.sqrt(1+P*P),T*=P,k*=P)),T=Pe(T),k=Pe(k),x=Pe(x),O=Pe(O)):(T=_,O=d,k=x=0),(S&&!~(s+"").indexOf("px")||v&&!~(o+"").indexOf("px"))&&(S=Cr(c,"x",s,"px"),v=Cr(c,"y",o,"px")),(p||h||m||b)&&(S=Pe(S+p-(p*T+h*x)+m),v=Pe(v+h-(p*k+h*O)+b)),(i||n)&&(P=c.getBBox(),S=Pe(S+i/100*P.width),v=Pe(v+n/100*P.height)),P="matrix("+T+","+k+","+x+","+O+","+S+","+v+")",c.setAttribute("transform",P),w&&(c.style[ye]=P)},ql=function(e,r,t,i,n){var s=360,o=Ye(n),u=parseFloat(n)*(o&&~n.indexOf("rad")?Lr:1),l=u-i,f=i+l+"deg",_,d;return o&&(_=n.split("_")[1],_==="short"&&(l%=s,l!==l%(s/2)&&(l+=l<0?s:-s)),_==="cw"&&l<0?l=(l+s*To)%s-~~(l/s)*s:_==="ccw"&&l>0&&(l=(l-s*To)%s-~~(l/s)*s)),e._pt=d=new ft(e._pt,r,t,i,l,Ol),d.e=f,d.u="deg",e._props.push(t),d},Mo=function(e,r){for(var t in r)e[t]=r[t];return e},Gl=function(e,r,t){var i=Mo({},t._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=t.style,o,u,l,f,_,d,c,p;i.svg?(l=t.getAttribute("transform"),t.setAttribute("transform",""),s[ye]=r,o=nn(t,1),kr(t,ye),t.setAttribute("transform",l)):(l=getComputedStyle(t)[ye],s[ye]=r,o=nn(t,1),s[ye]=l);for(u in fr)l=i[u],f=o[u],l!==f&&n.indexOf(u)<0&&(c=je(l),p=je(f),_=c!==p?Cr(t,u,l,p):parseFloat(l),d=parseFloat(f),e._pt=new ft(e._pt,o,u,_,d-_,xs),e._pt.u=p||0,e._props.push(u));Mo(o,i)};lt("padding,margin,Width,Radius",function(a,e){var r="Top",t="Right",i="Bottom",n="Left",s=(e<3?[r,t,i,n]:[r+n,r+t,i+t,i+n]).map(function(o){return e<2?a+o:"border"+o+a});Nn[e>1?"border"+a:a]=function(o,u,l,f,_){var d,c;if(arguments.length<4)return d=s.map(function(p){return sr(o,p,l)}),c=d.join(" "),c.split(d[0]).length===5?d[0]:c;d=(f+"").split(" "),c={},s.forEach(function(p,h){return c[p]=d[h]=d[h]||d[(h-1)/2|0]}),o.init(u,c,_)}});var Ga={name:"css",register:bs,targetTest:function(e){return e.style&&e.nodeType},init:function(e,r,t,i,n){var s=this._props,o=e.style,u=t.vars.startAt,l,f,_,d,c,p,h,m,b,w,S,v,T,k,x,O,P;Hs||bs(),this.styles=this.styles||Ba(e),O=this.styles.props,this.tween=t;for(h in r)if(h!=="autoRound"&&(f=r[h],!(xt[h]&&Da(h,r,t,i,e,n)))){if(c=typeof f,p=Nn[h],c==="function"&&(f=f.call(t,i,e,n),c=typeof f),c==="string"&&~f.indexOf("random(")&&(f=Ji(f)),p)p(this,e,h,f,t)&&(x=1);else if(h.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(h)+"").trim(),f+="",Tr.lastIndex=0,Tr.test(l)||(m=je(l),b=je(f),b?m!==b&&(l=Cr(e,h,l,b)+b):m&&(f+=m)),this.add(o,"setProperty",l,f,i,n,0,0,h),s.push(h),O.push(h,0,o[h]);else if(c!=="undefined"){if(u&&h in u?(l=typeof u[h]=="function"?u[h].call(t,i,e,n):u[h],Ye(l)&&~l.indexOf("random(")&&(l=Ji(l)),je(l+"")||l==="auto"||(l+=Ct.units[h]||je(sr(e,h))||""),(l+"").charAt(1)==="="&&(l=sr(e,h))):l=sr(e,h),d=parseFloat(l),w=c==="string"&&f.charAt(1)==="="&&f.substr(0,2),w&&(f=f.substr(2)),_=parseFloat(f),h in Kt&&(h==="autoAlpha"&&(d===1&&sr(e,"visibility")==="hidden"&&_&&(d=0),O.push("visibility",0,o.visibility),vr(this,o,"visibility",d?"inherit":"hidden",_?"inherit":"hidden",!_)),h!=="scale"&&h!=="transform"&&(h=Kt[h],~h.indexOf(",")&&(h=h.split(",")[0]))),S=h in fr,S){if(this.styles.save(h),P=f,c==="string"&&f.substring(0,6)==="var(--"){if(f=kt(e,f.substring(4,f.indexOf(")"))),f.substring(0,5)==="calc("){var C=e.style.perspective;e.style.perspective=f,f=kt(e,"perspective"),C?e.style.perspective=C:kr(e,"perspective")}_=parseFloat(f)}if(v||(T=e._gsap,T.renderTransform&&!r.parseTransform||nn(e,r.parseTransform),k=r.smoothOrigin!==!1&&T.smooth,v=this._pt=new ft(this._pt,o,ye,0,1,T.renderTransform,T,0,-1),v.dep=1),h==="scale")this._pt=new ft(this._pt,T,"scaleY",T.scaleY,(w?fi(T.scaleY,w+_):_)-T.scaleY||0,xs),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){O.push(ct,0,o[ct]),f=Xl(f),T.svg?Ts(e,f,0,k,0,this):(b=parseFloat(f.split(" ")[2])||0,b!==T.zOrigin&&vr(this,T,"zOrigin",T.zOrigin,b),vr(this,o,h,Yn(l),Yn(f)));continue}else if(h==="svgOrigin"){Ts(e,f,1,k,0,this);continue}else if(h in Va){ql(this,T,h,d,w?fi(d,w+f):f);continue}else if(h==="smoothOrigin"){vr(this,T,"smooth",T.smooth,f);continue}else if(h==="force3D"){T[h]=f;continue}else if(h==="transform"){Gl(this,f,e);continue}}else h in o||(h=wi(h)||h);if(S||(_||_===0)&&(d||d===0)&&!Cl.test(f)&&h in o)m=(l+"").substr((d+"").length),_||(_=0),b=je(f)||(h in Ct.units?Ct.units[h]:m),m!==b&&(d=Cr(e,h,l,b)),this._pt=new ft(this._pt,S?T:o,h,d,(w?fi(d,w+_):_)-d,!S&&(b==="px"||h==="zIndex")&&r.autoRound!==!1?Al:xs),this._pt.u=b||0,S&&P!==f?(this._pt.b=l,this._pt.e=P,this._pt.r=Ml):m!==b&&b!=="%"&&(this._pt.b=l,this._pt.r=Dl);else if(h in o)$l.call(this,e,h,l,w?w+f:f);else if(h in e)this.add(e,h,l||e[h],w?w+f:f,i,n);else if(h!=="parseTransform"){Ns(h,f);continue}S||(h in o?O.push(h,0,o[h]):typeof e[h]=="function"?O.push(h,2,e[h]()):O.push(h,1,l||e[h])),s.push(h)}}x&&za(this)},render:function(e,r){if(r.tween._time||!Ks())for(var t=r._pt;t;)t.r(e,t.d),t=t._next;else r.styles.revert()},get:sr,aliases:Kt,getSetter:function(e,r,t){var i=Kt[r];return i&&i.indexOf(",")<0&&(r=i),r in fr&&r!==ct&&(e._gsap.x||sr(e,"x"))?t&&bo===t?r==="scale"?zl:Fl:(bo=t||{})&&(r==="scale"?Il:Ll):e.style&&!zs(e.style[r])?Rl:~r.indexOf("-")?El:qs(e,r)},core:{_removeProperty:kr,_getMatrix:Zs}};ht.utils.checkPrefix=wi;ht.core.getStyleSaver=Ba;(function(a,e,r,t){var i=lt(a+","+e+","+r,function(n){fr[n]=1});lt(e,function(n){Ct.units[n]="deg",Va[n]=1}),Kt[i[13]]=a+","+e,lt(t,function(n){var s=n.split(":");Kt[s[1]]=i[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");lt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){Ct.units[a]="px"});ht.registerPlugin(Ga);var wt=ht.registerPlugin(Ga)||ht;wt.core.Tween;function Hl(a,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}function Kl(a,e,r){return e&&Hl(a.prototype,e),a}var Ue,Cn,St,xr,wr,_i,Ha,Nr,$i,Ka,ar,Xt,ja,Za=function(){return Ue||typeof window<"u"&&(Ue=window.gsap)&&Ue.registerPlugin&&Ue},Qa=1,li=[],G=[],Zt=[],Xi=Date.now,Ss=function(e,r){return r},jl=function(){var e=$i.core,r=e.bridge||{},t=e._scrollers,i=e._proxies;t.push.apply(t,G),i.push.apply(i,Zt),G=t,Zt=i,Ss=function(s,o){return r[s](o)}},Sr=function(e,r){return~Zt.indexOf(e)&&Zt[Zt.indexOf(e)+1][r]},Ui=function(e){return!!~Ka.indexOf(e)},et=function(e,r,t,i,n){return e.addEventListener(r,t,{passive:i!==!1,capture:!!n})},Je=function(e,r,t,i){return e.removeEventListener(r,t,!!i)},hn="scrollLeft",_n="scrollTop",Ps=function(){return ar&&ar.isPressed||G.cache++},Bn=function(e,r){var t=function i(n){if(n||n===0){Qa&&(St.history.scrollRestoration="manual");var s=ar&&ar.isPressed;n=i.v=Math.round(n)||(ar&&ar.iOS?1:0),e(n),i.cacheID=G.cache,s&&Ss("ss",n)}else(r||G.cache!==i.cacheID||Ss("ref"))&&(i.cacheID=G.cache,i.v=e());return i.v+i.offset};return t.offset=0,e&&t},st={s:hn,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Bn(function(a){return arguments.length?St.scrollTo(a,Ee.sc()):St.pageXOffset||xr[hn]||wr[hn]||_i[hn]||0})},Ee={s:_n,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:st,sc:Bn(function(a){return arguments.length?St.scrollTo(st.sc(),a):St.pageYOffset||xr[_n]||wr[_n]||_i[_n]||0})},at=function(e,r){return(r&&r._ctx&&r._ctx.selector||Ue.utils.toArray)(e)[0]||(typeof e=="string"&&Ue.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},Zl=function(e,r){for(var t=r.length;t--;)if(r[t]===e||r[t].contains(e))return!0;return!1},Or=function(e,r){var t=r.s,i=r.sc;Ui(e)&&(e=xr.scrollingElement||wr);var n=G.indexOf(e),s=i===Ee.sc?1:2;!~n&&(n=G.push(e)-1),G[n+s]||et(e,"scroll",Ps);var o=G[n+s],u=o||(G[n+s]=Bn(Sr(e,t),!0)||(Ui(e)?i:Bn(function(l){return arguments.length?e[t]=l:e[t]})));return u.target=e,o||(u.smooth=Ue.getProperty(e,"scrollBehavior")==="smooth"),u},ks=function(e,r,t){var i=e,n=e,s=Xi(),o=s,u=r||50,l=Math.max(500,u*3),f=function(p,h){var m=Xi();h||m-s>u?(n=i,i=p,o=s,s=m):t?i+=p:i=n+(p-n)/(m-o)*(s-o)},_=function(){n=i=t?0:i,o=s=0},d=function(p){var h=o,m=n,b=Xi();return(p||p===0)&&p!==i&&f(p),s===o||b-o>l?0:(i+(t?m:-m))/((t?b:s)-h)*1e3};return{update:f,reset:_,getVelocity:d}},Oi=function(e,r){return r&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Ao=function(e){var r=Math.max.apply(Math,e),t=Math.min.apply(Math,e);return Math.abs(r)>=Math.abs(t)?r:t},Ja=function(){$i=Ue.core.globals().ScrollTrigger,$i&&$i.core&&jl()},eu=function(e){return Ue=e||Za(),!Cn&&Ue&&typeof document<"u"&&document.body&&(St=window,xr=document,wr=xr.documentElement,_i=xr.body,Ka=[St,xr,wr,_i],Ue.utils.clamp,ja=Ue.core.context||function(){},Nr="onpointerenter"in _i?"pointer":"mouse",Ha=ke.isTouch=St.matchMedia&&St.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in St||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Xt=ke.eventTypes=("ontouchstart"in wr?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in wr?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Qa=0},500),Ja(),Cn=1),Cn};st.op=Ee;G.cache=0;var ke=(function(){function a(r){this.init(r)}var e=a.prototype;return e.init=function(t){Cn||eu(Ue)||console.warn("Please gsap.registerPlugin(Observer)"),$i||Ja();var i=t.tolerance,n=t.dragMinimum,s=t.type,o=t.target,u=t.lineHeight,l=t.debounce,f=t.preventDefault,_=t.onStop,d=t.onStopDelay,c=t.ignore,p=t.wheelSpeed,h=t.event,m=t.onDragStart,b=t.onDragEnd,w=t.onDrag,S=t.onPress,v=t.onRelease,T=t.onRight,k=t.onLeft,x=t.onUp,O=t.onDown,P=t.onChangeX,C=t.onChangeY,L=t.onChange,M=t.onToggleX,V=t.onToggleY,$=t.onHover,K=t.onHoverEnd,W=t.onMove,F=t.ignoreCheck,Z=t.isNormalizer,ne=t.onGestureStart,g=t.onGestureEnd,se=t.onWheel,Be=t.onEnable,_t=t.onDisable,_e=t.onClick,Fe=t.scrollSpeed,D=t.capture,z=t.allowClicks,X=t.lockAxis,te=t.onLockAxis;this.target=o=at(o)||wr,this.vars=t,c&&(c=Ue.utils.toArray(c)),i=i||1e-9,n=n||0,p=p||1,Fe=Fe||1,s=s||"wheel,touch,pointer",l=l!==!1,u||(u=parseFloat(St.getComputedStyle(_i).lineHeight)||22);var dt,oe,Ce,Q,be,ot,pt,y=this,gt=0,Jt=0,cr=t.passive||!f&&t.passive!==!1,ve=Or(o,st),er=Or(o,Ee),hr=ve(),Mr=er(),ze=~s.indexOf("touch")&&!~s.indexOf("pointer")&&Xt[0]==="pointerdown",_r=Ui(o),Te=o.ownerDocument||xr,Lt=[0,0,0],Mt=[0,0,0],tr=0,Ti=function(){return tr=Xi()},Oe=function(I,re){return(y.event=I)&&c&&Zl(I.target,c)||re&&ze&&I.pointerType!=="touch"||F&&F(I,re)},un=function(){y._vx.reset(),y._vy.reset(),oe.pause(),_&&_(y)},rr=function(){var I=y.deltaX=Ao(Lt),re=y.deltaY=Ao(Mt),A=Math.abs(I)>=i,N=Math.abs(re)>=i;L&&(A||N)&&L(y,I,re,Lt,Mt),A&&(T&&y.deltaX>0&&T(y),k&&y.deltaX<0&&k(y),P&&P(y),M&&y.deltaX<0!=gt<0&&M(y),gt=y.deltaX,Lt[0]=Lt[1]=Lt[2]=0),N&&(O&&y.deltaY>0&&O(y),x&&y.deltaY<0&&x(y),C&&C(y),V&&y.deltaY<0!=Jt<0&&V(y),Jt=y.deltaY,Mt[0]=Mt[1]=Mt[2]=0),(Q||Ce)&&(W&&W(y),Ce&&(m&&Ce===1&&m(y),w&&w(y),Ce=0),Q=!1),ot&&!(ot=!1)&&te&&te(y),be&&(se(y),be=!1),dt=0},Jr=function(I,re,A){Lt[A]+=I,Mt[A]+=re,y._vx.update(I),y._vy.update(re),l?dt||(dt=requestAnimationFrame(rr)):rr()},ei=function(I,re){X&&!pt&&(y.axis=pt=Math.abs(I)>Math.abs(re)?"x":"y",ot=!0),pt!=="y"&&(Lt[2]+=I,y._vx.update(I,!0)),pt!=="x"&&(Mt[2]+=re,y._vy.update(re,!0)),l?dt||(dt=requestAnimationFrame(rr)):rr()},dr=function(I){if(!Oe(I,1)){I=Oi(I,f);var re=I.clientX,A=I.clientY,N=re-y.x,E=A-y.y,Y=y.isDragging;y.x=re,y.y=A,(Y||(N||E)&&(Math.abs(y.startX-re)>=n||Math.abs(y.startY-A)>=n))&&(Ce||(Ce=Y?2:1),Y||(y.isDragging=!0),ei(N,E))}},Ar=y.onPress=function(B){Oe(B,1)||B&&B.button||(y.axis=pt=null,oe.pause(),y.isPressed=!0,B=Oi(B),gt=Jt=0,y.startX=y.x=B.clientX,y.startY=y.y=B.clientY,y._vx.reset(),y._vy.reset(),et(Z?o:Te,Xt[1],dr,cr,!0),y.deltaX=y.deltaY=0,S&&S(y))},j=y.onRelease=function(B){if(!Oe(B,1)){Je(Z?o:Te,Xt[1],dr,!0);var I=!isNaN(y.y-y.startY),re=y.isDragging,A=re&&(Math.abs(y.x-y.startX)>3||Math.abs(y.y-y.startY)>3),N=Oi(B);!A&&I&&(y._vx.reset(),y._vy.reset(),f&&z&&Ue.delayedCall(.08,function(){if(Xi()-tr>300&&!B.defaultPrevented){if(B.target.click)B.target.click();else if(Te.createEvent){var E=Te.createEvent("MouseEvents");E.initMouseEvent("click",!0,!0,St,1,N.screenX,N.screenY,N.clientX,N.clientY,!1,!1,!1,!1,0,null),B.target.dispatchEvent(E)}}})),y.isDragging=y.isGesturing=y.isPressed=!1,_&&re&&!Z&&oe.restart(!0),Ce&&rr(),b&&re&&b(y),v&&v(y,A)}},Rr=function(I){return I.touches&&I.touches.length>1&&(y.isGesturing=!0)&&ne(I,y.isDragging)},Nt=function(){return(y.isGesturing=!1)||g(y)},Yt=function(I){if(!Oe(I)){var re=ve(),A=er();Jr((re-hr)*Fe,(A-Mr)*Fe,1),hr=re,Mr=A,_&&oe.restart(!0)}},Bt=function(I){if(!Oe(I)){I=Oi(I,f),se&&(be=!0);var re=(I.deltaMode===1?u:I.deltaMode===2?St.innerHeight:1)*p;Jr(I.deltaX*re,I.deltaY*re,0),_&&!Z&&oe.restart(!0)}},Er=function(I){if(!Oe(I)){var re=I.clientX,A=I.clientY,N=re-y.x,E=A-y.y;y.x=re,y.y=A,Q=!0,_&&oe.restart(!0),(N||E)&&ei(N,E)}},ti=function(I){y.event=I,$(y)},ir=function(I){y.event=I,K(y)},Si=function(I){return Oe(I)||Oi(I,f)&&_e(y)};oe=y._dc=Ue.delayedCall(d||.25,un).pause(),y.deltaX=y.deltaY=0,y._vx=ks(0,50,!0),y._vy=ks(0,50,!0),y.scrollX=ve,y.scrollY=er,y.isDragging=y.isGesturing=y.isPressed=!1,ja(this),y.enable=function(B){return y.isEnabled||(et(_r?Te:o,"scroll",Ps),s.indexOf("scroll")>=0&&et(_r?Te:o,"scroll",Yt,cr,D),s.indexOf("wheel")>=0&&et(o,"wheel",Bt,cr,D),(s.indexOf("touch")>=0&&Ha||s.indexOf("pointer")>=0)&&(et(o,Xt[0],Ar,cr,D),et(Te,Xt[2],j),et(Te,Xt[3],j),z&&et(o,"click",Ti,!0,!0),_e&&et(o,"click",Si),ne&&et(Te,"gesturestart",Rr),g&&et(Te,"gestureend",Nt),$&&et(o,Nr+"enter",ti),K&&et(o,Nr+"leave",ir),W&&et(o,Nr+"move",Er)),y.isEnabled=!0,y.isDragging=y.isGesturing=y.isPressed=Q=Ce=!1,y._vx.reset(),y._vy.reset(),hr=ve(),Mr=er(),B&&B.type&&Ar(B),Be&&Be(y)),y},y.disable=function(){y.isEnabled&&(li.filter(function(B){return B!==y&&Ui(B.target)}).length||Je(_r?Te:o,"scroll",Ps),y.isPressed&&(y._vx.reset(),y._vy.reset(),Je(Z?o:Te,Xt[1],dr,!0)),Je(_r?Te:o,"scroll",Yt,D),Je(o,"wheel",Bt,D),Je(o,Xt[0],Ar,D),Je(Te,Xt[2],j),Je(Te,Xt[3],j),Je(o,"click",Ti,!0),Je(o,"click",Si),Je(Te,"gesturestart",Rr),Je(Te,"gestureend",Nt),Je(o,Nr+"enter",ti),Je(o,Nr+"leave",ir),Je(o,Nr+"move",Er),y.isEnabled=y.isPressed=y.isDragging=!1,_t&&_t(y))},y.kill=y.revert=function(){y.disable();var B=li.indexOf(y);B>=0&&li.splice(B,1),ar===y&&(ar=0)},li.push(y),Z&&Ui(o)&&(ar=y),y.enable(h)},Kl(a,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),a})();ke.version="3.14.2";ke.create=function(a){return new ke(a)};ke.register=eu;ke.getAll=function(){return li.slice()};ke.getById=function(a){return li.filter(function(e){return e.vars.id===a})[0]};Za()&&Ue.registerPlugin(ke);var R,si,q,fe,bt,ie,Qs,$n,sn,Vi,Ri,dn,He,Gn,Cs,rt,Ro,Eo,oi,tu,is,ru,tt,Os,iu,nu,gr,Ds,Js,di,eo,Wi,Ms,ns,pn=1,Ke=Date.now,ss=Ke(),It=0,Ei=0,Fo=function(e,r,t){var i=vt(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return t["_"+r+"Clamp"]=i,i?e.substr(6,e.length-7):e},zo=function(e,r){return r&&(!vt(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},Ql=function a(){return Ei&&requestAnimationFrame(a)},Io=function(){return Gn=1},Lo=function(){return Gn=0},Gt=function(e){return e},Fi=function(e){return Math.round(e*1e5)/1e5||0},su=function(){return typeof window<"u"},ou=function(){return R||su()&&(R=window.gsap)&&R.registerPlugin&&R},Kr=function(e){return!!~Qs.indexOf(e)},au=function(e){return(e==="Height"?eo:q["inner"+e])||bt["client"+e]||ie["client"+e]},uu=function(e){return Sr(e,"getBoundingClientRect")||(Kr(e)?function(){return Rn.width=q.innerWidth,Rn.height=eo,Rn}:function(){return or(e)})},Jl=function(e,r,t){var i=t.d,n=t.d2,s=t.a;return(s=Sr(e,"getBoundingClientRect"))?function(){return s()[i]}:function(){return(r?au(n):e["client"+n])||0}},ef=function(e,r){return!r||~Zt.indexOf(e)?uu(e):function(){return Rn}},jt=function(e,r){var t=r.s,i=r.d2,n=r.d,s=r.a;return Math.max(0,(t="scroll"+i)&&(s=Sr(e,t))?s()-uu(e)()[n]:Kr(e)?(bt[t]||ie[t])-au(i):e[t]-e["offset"+i])},gn=function(e,r){for(var t=0;t<oi.length;t+=3)(!r||~r.indexOf(oi[t+1]))&&e(oi[t],oi[t+1],oi[t+2])},vt=function(e){return typeof e=="string"},Ze=function(e){return typeof e=="function"},zi=function(e){return typeof e=="number"},Yr=function(e){return typeof e=="object"},Di=function(e,r,t){return e&&e.progress(r?0:1)&&t&&e.pause()},os=function(e,r){if(e.enabled){var t=e._ctx?e._ctx.add(function(){return r(e)}):r(e);t&&t.totalTime&&(e.callbackAnimation=t)}},ii=Math.abs,lu="left",fu="top",to="right",ro="bottom",qr="width",Gr="height",qi="Right",Gi="Left",Hi="Top",Ki="Bottom",De="padding",Rt="margin",bi="Width",io="Height",Re="px",Et=function(e){return q.getComputedStyle(e)},tf=function(e){var r=Et(e).position;e.style.position=r==="absolute"||r==="fixed"?r:"relative"},No=function(e,r){for(var t in r)t in e||(e[t]=r[t]);return e},or=function(e,r){var t=r&&Et(e)[Cs]!=="matrix(1, 0, 0, 1, 0, 0)"&&R.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return t&&t.progress(0).kill(),i},Xn=function(e,r){var t=r.d2;return e["offset"+t]||e["client"+t]||0},cu=function(e){var r=[],t=e.labels,i=e.duration(),n;for(n in t)r.push(t[n]/i);return r},rf=function(e){return function(r){return R.utils.snap(cu(e),r)}},no=function(e){var r=R.utils.snap(e),t=Array.isArray(e)&&e.slice(0).sort(function(i,n){return i-n});return t?function(i,n,s){s===void 0&&(s=.001);var o;if(!n)return r(i);if(n>0){for(i-=s,o=0;o<t.length;o++)if(t[o]>=i)return t[o];return t[o-1]}else for(o=t.length,i+=s;o--;)if(t[o]<=i)return t[o];return t[0]}:function(i,n,s){s===void 0&&(s=.001);var o=r(i);return!n||Math.abs(o-i)<s||o-i<0==n<0?o:r(n<0?i-e:i+e)}},nf=function(e){return function(r,t){return no(cu(e))(r,t.direction)}},mn=function(e,r,t,i){return t.split(",").forEach(function(n){return e(r,n,i)})},Ne=function(e,r,t,i,n){return e.addEventListener(r,t,{passive:!i,capture:!!n})},Le=function(e,r,t,i){return e.removeEventListener(r,t,!!i)},yn=function(e,r,t){t=t&&t.wheelHandler,t&&(e(r,"wheel",t),e(r,"touchmove",t))},Yo={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},vn={toggleActions:"play",anticipatePin:0},Un={top:0,left:0,center:.5,bottom:1,right:1},On=function(e,r){if(vt(e)){var t=e.indexOf("="),i=~t?+(e.charAt(t-1)+1)*parseFloat(e.substr(t+1)):0;~t&&(e.indexOf("%")>t&&(i*=r/100),e=e.substr(0,t-1)),e=i+(e in Un?Un[e]*r:~e.indexOf("%")?parseFloat(e)*r/100:parseFloat(e)||0)}return e},xn=function(e,r,t,i,n,s,o,u){var l=n.startColor,f=n.endColor,_=n.fontSize,d=n.indent,c=n.fontWeight,p=fe.createElement("div"),h=Kr(t)||Sr(t,"pinType")==="fixed",m=e.indexOf("scroller")!==-1,b=h?ie:t,w=e.indexOf("start")!==-1,S=w?l:f,v="border-color:"+S+";font-size:"+_+";color:"+S+";font-weight:"+c+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return v+="position:"+((m||u)&&h?"fixed;":"absolute;"),(m||u||!h)&&(v+=(i===Ee?to:ro)+":"+(s+parseFloat(d))+"px;"),o&&(v+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),p._isStart=w,p.setAttribute("class","gsap-marker-"+e+(r?" marker-"+r:"")),p.style.cssText=v,p.innerText=r||r===0?e+"-"+r:e,b.children[0]?b.insertBefore(p,b.children[0]):b.appendChild(p),p._offset=p["offset"+i.op.d2],Dn(p,0,i,w),p},Dn=function(e,r,t,i){var n={display:"block"},s=t[i?"os2":"p2"],o=t[i?"p2":"os2"];e._isFlipped=i,n[t.a+"Percent"]=i?-100:0,n[t.a]=i?"1px":0,n["border"+s+bi]=1,n["border"+o+bi]=0,n[t.p]=r+"px",R.set(e,n)},U=[],As={},on,Bo=function(){return Ke()-It>34&&(on||(on=requestAnimationFrame(ur)))},ni=function(){(!tt||!tt.isPressed||tt.startX>ie.clientWidth)&&(G.cache++,tt?on||(on=requestAnimationFrame(ur)):ur(),It||Zr("scrollStart"),It=Ke())},as=function(){nu=q.innerWidth,iu=q.innerHeight},Ii=function(e){G.cache++,(e===!0||!He&&!ru&&!fe.fullscreenElement&&!fe.webkitFullscreenElement&&(!Os||nu!==q.innerWidth||Math.abs(q.innerHeight-iu)>q.innerHeight*.25))&&$n.restart(!0)},jr={},sf=[],hu=function a(){return Le(H,"scrollEnd",a)||$r(!0)},Zr=function(e){return jr[e]&&jr[e].map(function(r){return r()})||sf},yt=[],_u=function(e){for(var r=0;r<yt.length;r+=5)(!e||yt[r+4]&&yt[r+4].query===e)&&(yt[r].style.cssText=yt[r+1],yt[r].getBBox&&yt[r].setAttribute("transform",yt[r+2]||""),yt[r+3].uncache=1)},du=function(){return G.forEach(function(e){return Ze(e)&&++e.cacheID&&(e.rec=e())})},so=function(e,r){var t;for(rt=0;rt<U.length;rt++)t=U[rt],t&&(!r||t._ctx===r)&&(e?t.kill(1):t.revert(!0,!0));Wi=!0,r&&_u(r),r||Zr("revert")},pu=function(e,r){G.cache++,(r||!it)&&G.forEach(function(t){return Ze(t)&&t.cacheID++&&(t.rec=0)}),vt(e)&&(q.history.scrollRestoration=Js=e)},it,Hr=0,$o,of=function(){if($o!==Hr){var e=$o=Hr;requestAnimationFrame(function(){return e===Hr&&$r(!0)})}},gu=function(){ie.appendChild(di),eo=!tt&&di.offsetHeight||q.innerHeight,ie.removeChild(di)},Xo=function(e){return sn(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(r){return r.style.display=e?"none":"block"})},$r=function(e,r){if(bt=fe.documentElement,ie=fe.body,Qs=[q,fe,bt,ie],It&&!e&&!Wi){Ne(H,"scrollEnd",hu);return}gu(),it=H.isRefreshing=!0,Wi||du();var t=Zr("refreshInit");tu&&H.sort(),r||so(),G.forEach(function(i){Ze(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),U.slice(0).forEach(function(i){return i.refresh()}),Wi=!1,U.forEach(function(i){if(i._subPinOffset&&i.pin){var n=i.vars.horizontal?"offsetWidth":"offsetHeight",s=i.pin[n];i.revert(!0,1),i.adjustPinSpacing(i.pin[n]-s),i.refresh()}}),Ms=1,Xo(!0),U.forEach(function(i){var n=jt(i.scroller,i._dir),s=i.vars.end==="max"||i._endClamp&&i.end>n,o=i._startClamp&&i.start>=n;(s||o)&&i.setPositions(o?n-1:i.start,s?Math.max(o?n:i.start+1,n):i.end,!0)}),Xo(!1),Ms=0,t.forEach(function(i){return i&&i.render&&i.render(-1)}),G.forEach(function(i){Ze(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),pu(Js,1),$n.pause(),Hr++,it=2,ur(2),U.forEach(function(i){return Ze(i.vars.onRefresh)&&i.vars.onRefresh(i)}),it=H.isRefreshing=!1,Zr("refresh")},Rs=0,Mn=1,ji,ur=function(e){if(e===2||!it&&!Wi){H.isUpdating=!0,ji&&ji.update(0);var r=U.length,t=Ke(),i=t-ss>=50,n=r&&U[0].scroll();if(Mn=Rs>n?-1:1,it||(Rs=n),i&&(It&&!Gn&&t-It>200&&(It=0,Zr("scrollEnd")),Ri=ss,ss=t),Mn<0){for(rt=r;rt-- >0;)U[rt]&&U[rt].update(0,i);Mn=1}else for(rt=0;rt<r;rt++)U[rt]&&U[rt].update(0,i);H.isUpdating=!1}on=0},Es=[lu,fu,ro,to,Rt+Ki,Rt+qi,Rt+Hi,Rt+Gi,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],An=Es.concat([qr,Gr,"boxSizing","max"+bi,"max"+io,"position",Rt,De,De+Hi,De+qi,De+Ki,De+Gi]),af=function(e,r,t){pi(t);var i=e._gsap;if(i.spacerIsNative)pi(i.spacerState);else if(e._gsap.swappedIn){var n=r.parentNode;n&&(n.insertBefore(e,r),n.removeChild(r))}e._gsap.swappedIn=!1},us=function(e,r,t,i){if(!e._gsap.swappedIn){for(var n=Es.length,s=r.style,o=e.style,u;n--;)u=Es[n],s[u]=t[u];s.position=t.position==="absolute"?"absolute":"relative",t.display==="inline"&&(s.display="inline-block"),o[ro]=o[to]="auto",s.flexBasis=t.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[qr]=Xn(e,st)+Re,s[Gr]=Xn(e,Ee)+Re,s[De]=o[Rt]=o[fu]=o[lu]="0",pi(i),o[qr]=o["max"+bi]=t[qr],o[Gr]=o["max"+io]=t[Gr],o[De]=t[De],e.parentNode!==r&&(e.parentNode.insertBefore(r,e),r.appendChild(e)),e._gsap.swappedIn=!0}},uf=/([A-Z])/g,pi=function(e){if(e){var r=e.t.style,t=e.length,i=0,n,s;for((e.t._gsap||R.core.getCache(e.t)).uncache=1;i<t;i+=2)s=e[i+1],n=e[i],s?r[n]=s:r[n]&&r.removeProperty(n.replace(uf,"-$1").toLowerCase())}},wn=function(e){for(var r=An.length,t=e.style,i=[],n=0;n<r;n++)i.push(An[n],t[An[n]]);return i.t=e,i},lf=function(e,r,t){for(var i=[],n=e.length,s=t?8:0,o;s<n;s+=2)o=e[s],i.push(o,o in r?r[o]:e[s+1]);return i.t=e.t,i},Rn={left:0,top:0},Uo=function(e,r,t,i,n,s,o,u,l,f,_,d,c,p){Ze(e)&&(e=e(u)),vt(e)&&e.substr(0,3)==="max"&&(e=d+(e.charAt(4)==="="?On("0"+e.substr(3),t):0));var h=c?c.time():0,m,b,w;if(c&&c.seek(0),isNaN(e)||(e=+e),zi(e))c&&(e=R.utils.mapRange(c.scrollTrigger.start,c.scrollTrigger.end,0,d,e)),o&&Dn(o,t,i,!0);else{Ze(r)&&(r=r(u));var S=(e||"0").split(" "),v,T,k,x;w=at(r,u)||ie,v=or(w)||{},(!v||!v.left&&!v.top)&&Et(w).display==="none"&&(x=w.style.display,w.style.display="block",v=or(w),x?w.style.display=x:w.style.removeProperty("display")),T=On(S[0],v[i.d]),k=On(S[1]||"0",t),e=v[i.p]-l[i.p]-f+T+n-k,o&&Dn(o,k,i,t-k<20||o._isStart&&k>20),t-=t-k}if(p&&(u[p]=e||-.001,e<0&&(e=0)),s){var O=e+t,P=s._isStart;m="scroll"+i.d2,Dn(s,O,i,P&&O>20||!P&&(_?Math.max(ie[m],bt[m]):s.parentNode[m])<=O+1),_&&(l=or(o),_&&(s.style[i.op.p]=l[i.op.p]-i.op.m-s._offset+Re))}return c&&w&&(m=or(w),c.seek(d),b=or(w),c._caScrollDist=m[i.p]-b[i.p],e=e/c._caScrollDist*d),c&&c.seek(h),c?e:Math.round(e)},ff=/(webkit|moz|length|cssText|inset)/i,Vo=function(e,r,t,i){if(e.parentNode!==r){var n=e.style,s,o;if(r===ie){e._stOrig=n.cssText,o=Et(e);for(s in o)!+s&&!ff.test(s)&&o[s]&&typeof n[s]=="string"&&s!=="0"&&(n[s]=o[s]);n.top=t,n.left=i}else n.cssText=e._stOrig;R.core.getCache(e).uncache=1,r.appendChild(e)}},mu=function(e,r,t){var i=r,n=i;return function(s){var o=Math.round(e());return o!==i&&o!==n&&Math.abs(o-i)>3&&Math.abs(o-n)>3&&(s=o,t&&t()),n=i,i=Math.round(s),i}},bn=function(e,r,t){var i={};i[r.p]="+="+t,R.set(e,i)},Wo=function(e,r){var t=Or(e,r),i="_scroll"+r.p2,n=function s(o,u,l,f,_){var d=s.tween,c=u.onComplete,p={};l=l||t();var h=mu(t,l,function(){d.kill(),s.tween=0});return _=f&&_||0,f=f||o-l,d&&d.kill(),u[i]=o,u.inherit=!1,u.modifiers=p,p[i]=function(){return h(l+f*d.ratio+_*d.ratio*d.ratio)},u.onUpdate=function(){G.cache++,s.tween&&ur()},u.onComplete=function(){s.tween=0,c&&c.call(d)},d=s.tween=R.to(e,u),d};return e[i]=t,t.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},Ne(e,"wheel",t.wheelHandler),H.isTouch&&Ne(e,"touchmove",t.wheelHandler),n},H=(function(){function a(r,t){si||a.register(R)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Ds(this),this.init(r,t)}var e=a.prototype;return e.init=function(t,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Ei){this.update=this.refresh=this.kill=Gt;return}t=No(vt(t)||zi(t)||t.nodeType?{trigger:t}:t,vn);var n=t,s=n.onUpdate,o=n.toggleClass,u=n.id,l=n.onToggle,f=n.onRefresh,_=n.scrub,d=n.trigger,c=n.pin,p=n.pinSpacing,h=n.invalidateOnRefresh,m=n.anticipatePin,b=n.onScrubComplete,w=n.onSnapComplete,S=n.once,v=n.snap,T=n.pinReparent,k=n.pinSpacer,x=n.containerAnimation,O=n.fastScrollEnd,P=n.preventOverlaps,C=t.horizontal||t.containerAnimation&&t.horizontal!==!1?st:Ee,L=!_&&_!==0,M=at(t.scroller||q),V=R.core.getCache(M),$=Kr(M),K=("pinType"in t?t.pinType:Sr(M,"pinType")||$&&"fixed")==="fixed",W=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],F=L&&t.toggleActions.split(" "),Z="markers"in t?t.markers:vn.markers,ne=$?0:parseFloat(Et(M)["border"+C.p2+bi])||0,g=this,se=t.onRefreshInit&&function(){return t.onRefreshInit(g)},Be=Jl(M,$,C),_t=ef(M,$),_e=0,Fe=0,D=0,z=Or(M,C),X,te,dt,oe,Ce,Q,be,ot,pt,y,gt,Jt,cr,ve,er,hr,Mr,ze,_r,Te,Lt,Mt,tr,Ti,Oe,un,rr,Jr,ei,dr,Ar,j,Rr,Nt,Yt,Bt,Er,ti,ir;if(g._startClamp=g._endClamp=!1,g._dir=C,m*=45,g.scroller=M,g.scroll=x?x.time.bind(x):z,oe=z(),g.vars=t,i=i||t.animation,"refreshPriority"in t&&(tu=1,t.refreshPriority===-9999&&(ji=g)),V.tweenScroll=V.tweenScroll||{top:Wo(M,Ee),left:Wo(M,st)},g.tweenTo=X=V.tweenScroll[C.p],g.scrubDuration=function(A){Rr=zi(A)&&A,Rr?j?j.duration(A):j=R.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Rr,paused:!0,onComplete:function(){return b&&b(g)}}):(j&&j.progress(1).kill(),j=0)},i&&(i.vars.lazy=!1,i._initted&&!g.isReverted||i.vars.immediateRender!==!1&&t.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),g.animation=i.pause(),i.scrollTrigger=g,g.scrubDuration(_),dr=0,u||(u=i.vars.id)),v&&((!Yr(v)||v.push)&&(v={snapTo:v}),"scrollBehavior"in ie.style&&R.set($?[ie,bt]:M,{scrollBehavior:"auto"}),G.forEach(function(A){return Ze(A)&&A.target===($?fe.scrollingElement||bt:M)&&(A.smooth=!1)}),dt=Ze(v.snapTo)?v.snapTo:v.snapTo==="labels"?rf(i):v.snapTo==="labelsDirectional"?nf(i):v.directional!==!1?function(A,N){return no(v.snapTo)(A,Ke()-Fe<500?0:N.direction)}:R.utils.snap(v.snapTo),Nt=v.duration||{min:.1,max:2},Nt=Yr(Nt)?Vi(Nt.min,Nt.max):Vi(Nt,Nt),Yt=R.delayedCall(v.delay||Rr/2||.1,function(){var A=z(),N=Ke()-Fe<500,E=X.tween;if((N||Math.abs(g.getVelocity())<10)&&!E&&!Gn&&_e!==A){var Y=(A-Q)/ve,Ie=i&&!L?i.totalProgress():Y,J=N?0:(Ie-Ar)/(Ke()-Ri)*1e3||0,Se=R.utils.clamp(-Y,1-Y,ii(J/2)*J/.185),We=Y+(v.inertia===!1?0:Se),xe,ce,ae=v,$t=ae.onStart,de=ae.onInterrupt,mt=ae.onComplete;if(xe=dt(We,g),zi(xe)||(xe=We),ce=Math.max(0,Math.round(Q+xe*ve)),A<=be&&A>=Q&&ce!==A){if(E&&!E._initted&&E.data<=ii(ce-A))return;v.inertia===!1&&(Se=xe-Y),X(ce,{duration:Nt(ii(Math.max(ii(We-Ie),ii(xe-Ie))*.185/J/.05||0)),ease:v.ease||"power3",data:ii(ce-A),onInterrupt:function(){return Yt.restart(!0)&&de&&de(g)},onComplete:function(){g.update(),_e=z(),i&&!L&&(j?j.resetTo("totalProgress",xe,i._tTime/i._tDur):i.progress(xe)),dr=Ar=i&&!L?i.totalProgress():g.progress,w&&w(g),mt&&mt(g)}},A,Se*ve,ce-A-Se*ve),$t&&$t(g,X.tween)}}else g.isActive&&_e!==A&&Yt.restart(!0)}).pause()),u&&(As[u]=g),d=g.trigger=at(d||c!==!0&&c),ir=d&&d._gsap&&d._gsap.stRevert,ir&&(ir=ir(g)),c=c===!0?d:at(c),vt(o)&&(o={targets:d,className:o}),c&&(p===!1||p===Rt||(p=!p&&c.parentNode&&c.parentNode.style&&Et(c.parentNode).display==="flex"?!1:De),g.pin=c,te=R.core.getCache(c),te.spacer?er=te.pinState:(k&&(k=at(k),k&&!k.nodeType&&(k=k.current||k.nativeElement),te.spacerIsNative=!!k,k&&(te.spacerState=wn(k))),te.spacer=ze=k||fe.createElement("div"),ze.classList.add("pin-spacer"),u&&ze.classList.add("pin-spacer-"+u),te.pinState=er=wn(c)),t.force3D!==!1&&R.set(c,{force3D:!0}),g.spacer=ze=te.spacer,ei=Et(c),Ti=ei[p+C.os2],Te=R.getProperty(c),Lt=R.quickSetter(c,C.a,Re),us(c,ze,ei),Mr=wn(c)),Z){Jt=Yr(Z)?No(Z,Yo):Yo,y=xn("scroller-start",u,M,C,Jt,0),gt=xn("scroller-end",u,M,C,Jt,0,y),_r=y["offset"+C.op.d2];var Si=at(Sr(M,"content")||M);ot=this.markerStart=xn("start",u,Si,C,Jt,_r,0,x),pt=this.markerEnd=xn("end",u,Si,C,Jt,_r,0,x),x&&(ti=R.quickSetter([ot,pt],C.a,Re)),!K&&!(Zt.length&&Sr(M,"fixedMarkers")===!0)&&(tf($?ie:M),R.set([y,gt],{force3D:!0}),un=R.quickSetter(y,C.a,Re),Jr=R.quickSetter(gt,C.a,Re))}if(x){var B=x.vars.onUpdate,I=x.vars.onUpdateParams;x.eventCallback("onUpdate",function(){g.update(0,0,1),B&&B.apply(x,I||[])})}if(g.previous=function(){return U[U.indexOf(g)-1]},g.next=function(){return U[U.indexOf(g)+1]},g.revert=function(A,N){if(!N)return g.kill(!0);var E=A!==!1||!g.enabled,Y=He;E!==g.isReverted&&(E&&(Bt=Math.max(z(),g.scroll.rec||0),D=g.progress,Er=i&&i.progress()),ot&&[ot,pt,y,gt].forEach(function(Ie){return Ie.style.display=E?"none":"block"}),E&&(He=g,g.update(E)),c&&(!T||!g.isActive)&&(E?af(c,ze,er):us(c,ze,Et(c),Oe)),E||g.update(E),He=Y,g.isReverted=E)},g.refresh=function(A,N,E,Y){if(!((He||!g.enabled)&&!N)){if(c&&A&&It){Ne(a,"scrollEnd",hu);return}!it&&se&&se(g),He=g,X.tween&&!E&&(X.tween.kill(),X.tween=0),j&&j.pause(),h&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren?i.getChildren(!0,!0,!1).forEach(function(pr){return pr.vars.immediateRender&&pr.render(0,!0,!0)}):i.vars.immediateRender&&i.render(0,!0,!0)),g.isReverted||g.revert(!0,!0),g._subPinOffset=!1;var Ie=Be(),J=_t(),Se=x?x.duration():jt(M,C),We=ve<=.01||!ve,xe=0,ce=Y||0,ae=Yr(E)?E.end:t.end,$t=t.endTrigger||d,de=Yr(E)?E.start:t.start||(t.start===0||!d?0:c?"0 0":"0 100%"),mt=g.pinnedContainer=t.pinnedContainer&&at(t.pinnedContainer,g),Ut=d&&Math.max(0,U.indexOf(g))||0,$e=Ut,Xe,qe,Fr,ln,Ge,Ae,Vt,Hn,oo,Pi,Wt,ki,fn;for(Z&&Yr(E)&&(ki=R.getProperty(y,C.p),fn=R.getProperty(gt,C.p));$e-- >0;)Ae=U[$e],Ae.end||Ae.refresh(0,1)||(He=g),Vt=Ae.pin,Vt&&(Vt===d||Vt===c||Vt===mt)&&!Ae.isReverted&&(Pi||(Pi=[]),Pi.unshift(Ae),Ae.revert(!0,!0)),Ae!==U[$e]&&(Ut--,$e--);for(Ze(de)&&(de=de(g)),de=Fo(de,"start",g),Q=Uo(de,d,Ie,C,z(),ot,y,g,J,ne,K,Se,x,g._startClamp&&"_startClamp")||(c?-.001:0),Ze(ae)&&(ae=ae(g)),vt(ae)&&!ae.indexOf("+=")&&(~ae.indexOf(" ")?ae=(vt(de)?de.split(" ")[0]:"")+ae:(xe=On(ae.substr(2),Ie),ae=vt(de)?de:(x?R.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,Q):Q)+xe,$t=d)),ae=Fo(ae,"end",g),be=Math.max(Q,Uo(ae||($t?"100% 0":Se),$t,Ie,C,z()+xe,pt,gt,g,J,ne,K,Se,x,g._endClamp&&"_endClamp"))||-.001,xe=0,$e=Ut;$e--;)Ae=U[$e]||{},Vt=Ae.pin,Vt&&Ae.start-Ae._pinPush<=Q&&!x&&Ae.end>0&&(Xe=Ae.end-(g._startClamp?Math.max(0,Ae.start):Ae.start),(Vt===d&&Ae.start-Ae._pinPush<Q||Vt===mt)&&isNaN(de)&&(xe+=Xe*(1-Ae.progress)),Vt===c&&(ce+=Xe));if(Q+=xe,be+=xe,g._startClamp&&(g._startClamp+=xe),g._endClamp&&!it&&(g._endClamp=be||-.001,be=Math.min(be,jt(M,C))),ve=be-Q||(Q-=.01)&&.001,We&&(D=R.utils.clamp(0,1,R.utils.normalize(Q,be,Bt))),g._pinPush=ce,ot&&xe&&(Xe={},Xe[C.a]="+="+xe,mt&&(Xe[C.p]="-="+z()),R.set([ot,pt],Xe)),c&&!(Ms&&g.end>=jt(M,C)))Xe=Et(c),ln=C===Ee,Fr=z(),Mt=parseFloat(Te(C.a))+ce,!Se&&be>1&&(Wt=($?fe.scrollingElement||bt:M).style,Wt={style:Wt,value:Wt["overflow"+C.a.toUpperCase()]},$&&Et(ie)["overflow"+C.a.toUpperCase()]!=="scroll"&&(Wt.style["overflow"+C.a.toUpperCase()]="scroll")),us(c,ze,Xe),Mr=wn(c),qe=or(c,!0),Hn=K&&Or(M,ln?st:Ee)(),p?(Oe=[p+C.os2,ve+ce+Re],Oe.t=ze,$e=p===De?Xn(c,C)+ve+ce:0,$e&&(Oe.push(C.d,$e+Re),ze.style.flexBasis!=="auto"&&(ze.style.flexBasis=$e+Re)),pi(Oe),mt&&U.forEach(function(pr){pr.pin===mt&&pr.vars.pinSpacing!==!1&&(pr._subPinOffset=!0)}),K&&z(Bt)):($e=Xn(c,C),$e&&ze.style.flexBasis!=="auto"&&(ze.style.flexBasis=$e+Re)),K&&(Ge={top:qe.top+(ln?Fr-Q:Hn)+Re,left:qe.left+(ln?Hn:Fr-Q)+Re,boxSizing:"border-box",position:"fixed"},Ge[qr]=Ge["max"+bi]=Math.ceil(qe.width)+Re,Ge[Gr]=Ge["max"+io]=Math.ceil(qe.height)+Re,Ge[Rt]=Ge[Rt+Hi]=Ge[Rt+qi]=Ge[Rt+Ki]=Ge[Rt+Gi]="0",Ge[De]=Xe[De],Ge[De+Hi]=Xe[De+Hi],Ge[De+qi]=Xe[De+qi],Ge[De+Ki]=Xe[De+Ki],Ge[De+Gi]=Xe[De+Gi],hr=lf(er,Ge,T),it&&z(0)),i?(oo=i._initted,is(1),i.render(i.duration(),!0,!0),tr=Te(C.a)-Mt+ve+ce,rr=Math.abs(ve-tr)>1,K&&rr&&hr.splice(hr.length-2,2),i.render(0,!0,!0),oo||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),is(0)):tr=ve,Wt&&(Wt.value?Wt.style["overflow"+C.a.toUpperCase()]=Wt.value:Wt.style.removeProperty("overflow-"+C.a));else if(d&&z()&&!x)for(qe=d.parentNode;qe&&qe!==ie;)qe._pinOffset&&(Q-=qe._pinOffset,be-=qe._pinOffset),qe=qe.parentNode;Pi&&Pi.forEach(function(pr){return pr.revert(!1,!0)}),g.start=Q,g.end=be,oe=Ce=it?Bt:z(),!x&&!it&&(oe<Bt&&z(Bt),g.scroll.rec=0),g.revert(!1,!0),Fe=Ke(),Yt&&(_e=-1,Yt.restart(!0)),He=0,i&&L&&(i._initted||Er)&&i.progress()!==Er&&i.progress(Er||0,!0).render(i.time(),!0,!0),(We||D!==g.progress||x||h||i&&!i._initted)&&(i&&!L&&(i._initted||D||i.vars.immediateRender!==!1)&&i.totalProgress(x&&Q<-.001&&!D?R.utils.normalize(Q,be,0):D,!0),g.progress=We||(oe-Q)/ve===D?0:D),c&&p&&(ze._pinOffset=Math.round(g.progress*tr)),j&&j.invalidate(),isNaN(ki)||(ki-=R.getProperty(y,C.p),fn-=R.getProperty(gt,C.p),bn(y,C,ki),bn(ot,C,ki-(Y||0)),bn(gt,C,fn),bn(pt,C,fn-(Y||0))),We&&!it&&g.update(),f&&!it&&!cr&&(cr=!0,f(g),cr=!1)}},g.getVelocity=function(){return(z()-Ce)/(Ke()-Ri)*1e3||0},g.endAnimation=function(){Di(g.callbackAnimation),i&&(j?j.progress(1):i.paused()?L||Di(i,g.direction<0,1):Di(i,i.reversed()))},g.labelToScroll=function(A){return i&&i.labels&&(Q||g.refresh()||Q)+i.labels[A]/i.duration()*ve||0},g.getTrailing=function(A){var N=U.indexOf(g),E=g.direction>0?U.slice(0,N).reverse():U.slice(N+1);return(vt(A)?E.filter(function(Y){return Y.vars.preventOverlaps===A}):E).filter(function(Y){return g.direction>0?Y.end<=Q:Y.start>=be})},g.update=function(A,N,E){if(!(x&&!E&&!A)){var Y=it===!0?Bt:g.scroll(),Ie=A?0:(Y-Q)/ve,J=Ie<0?0:Ie>1?1:Ie||0,Se=g.progress,We,xe,ce,ae,$t,de,mt,Ut;if(N&&(Ce=oe,oe=x?z():Y,v&&(Ar=dr,dr=i&&!L?i.totalProgress():J)),m&&c&&!He&&!pn&&It&&(!J&&Q<Y+(Y-Ce)/(Ke()-Ri)*m?J=1e-4:J===1&&be>Y+(Y-Ce)/(Ke()-Ri)*m&&(J=.9999)),J!==Se&&g.enabled){if(We=g.isActive=!!J&&J<1,xe=!!Se&&Se<1,de=We!==xe,$t=de||!!J!=!!Se,g.direction=J>Se?1:-1,g.progress=J,$t&&!He&&(ce=J&&!Se?0:J===1?1:Se===1?2:3,L&&(ae=!de&&F[ce+1]!=="none"&&F[ce+1]||F[ce],Ut=i&&(ae==="complete"||ae==="reset"||ae in i))),P&&(de||Ut)&&(Ut||_||!i)&&(Ze(P)?P(g):g.getTrailing(P).forEach(function(Fr){return Fr.endAnimation()})),L||(j&&!He&&!pn?(j._dp._time-j._start!==j._time&&j.render(j._dp._time-j._start),j.resetTo?j.resetTo("totalProgress",J,i._tTime/i._tDur):(j.vars.totalProgress=J,j.invalidate().restart())):i&&i.totalProgress(J,!!(He&&(Fe||A)))),c){if(A&&p&&(ze.style[p+C.os2]=Ti),!K)Lt(Fi(Mt+tr*J));else if($t){if(mt=!A&&J>Se&&be+1>Y&&Y+1>=jt(M,C),T)if(!A&&(We||mt)){var $e=or(c,!0),Xe=Y-Q;Vo(c,ie,$e.top+(C===Ee?Xe:0)+Re,$e.left+(C===Ee?0:Xe)+Re)}else Vo(c,ze);pi(We||mt?hr:Mr),rr&&J<1&&We||Lt(Mt+(J===1&&!mt?tr:0))}}v&&!X.tween&&!He&&!pn&&Yt.restart(!0),o&&(de||S&&J&&(J<1||!ns))&&sn(o.targets).forEach(function(Fr){return Fr.classList[We||S?"add":"remove"](o.className)}),s&&!L&&!A&&s(g),$t&&!He?(L&&(Ut&&(ae==="complete"?i.pause().totalProgress(1):ae==="reset"?i.restart(!0).pause():ae==="restart"?i.restart(!0):i[ae]()),s&&s(g)),(de||!ns)&&(l&&de&&os(g,l),W[ce]&&os(g,W[ce]),S&&(J===1?g.kill(!1,1):W[ce]=0),de||(ce=J===1?1:3,W[ce]&&os(g,W[ce]))),O&&!We&&Math.abs(g.getVelocity())>(zi(O)?O:2500)&&(Di(g.callbackAnimation),j?j.progress(1):Di(i,ae==="reverse"?1:!J,1))):L&&s&&!He&&s(g)}if(Jr){var qe=x?Y/x.duration()*(x._caScrollDist||0):Y;un(qe+(y._isFlipped?1:0)),Jr(qe)}ti&&ti(-Y/x.duration()*(x._caScrollDist||0))}},g.enable=function(A,N){g.enabled||(g.enabled=!0,Ne(M,"resize",Ii),$||Ne(M,"scroll",ni),se&&Ne(a,"refreshInit",se),A!==!1&&(g.progress=D=0,oe=Ce=_e=z()),N!==!1&&g.refresh())},g.getTween=function(A){return A&&X?X.tween:j},g.setPositions=function(A,N,E,Y){if(x){var Ie=x.scrollTrigger,J=x.duration(),Se=Ie.end-Ie.start;A=Ie.start+Se*A/J,N=Ie.start+Se*N/J}g.refresh(!1,!1,{start:zo(A,E&&!!g._startClamp),end:zo(N,E&&!!g._endClamp)},Y),g.update()},g.adjustPinSpacing=function(A){if(Oe&&A){var N=Oe.indexOf(C.d)+1;Oe[N]=parseFloat(Oe[N])+A+Re,Oe[1]=parseFloat(Oe[1])+A+Re,pi(Oe)}},g.disable=function(A,N){if(A!==!1&&g.revert(!0,!0),g.enabled&&(g.enabled=g.isActive=!1,N||j&&j.pause(),Bt=0,te&&(te.uncache=1),se&&Le(a,"refreshInit",se),Yt&&(Yt.pause(),X.tween&&X.tween.kill()&&(X.tween=0)),!$)){for(var E=U.length;E--;)if(U[E].scroller===M&&U[E]!==g)return;Le(M,"resize",Ii),$||Le(M,"scroll",ni)}},g.kill=function(A,N){g.disable(A,N),j&&!N&&j.kill(),u&&delete As[u];var E=U.indexOf(g);E>=0&&U.splice(E,1),E===rt&&Mn>0&&rt--,E=0,U.forEach(function(Y){return Y.scroller===g.scroller&&(E=1)}),E||it||(g.scroll.rec=0),i&&(i.scrollTrigger=null,A&&i.revert({kill:!1}),N||i.kill()),ot&&[ot,pt,y,gt].forEach(function(Y){return Y.parentNode&&Y.parentNode.removeChild(Y)}),ji===g&&(ji=0),c&&(te&&(te.uncache=1),E=0,U.forEach(function(Y){return Y.pin===c&&E++}),E||(te.spacer=0)),t.onKill&&t.onKill(g)},U.push(g),g.enable(!1,!1),ir&&ir(g),i&&i.add&&!ve){var re=g.update;g.update=function(){g.update=re,G.cache++,Q||be||g.refresh()},R.delayedCall(.01,g.update),ve=.01,Q=be=0}else g.refresh();c&&of()},a.register=function(t){return si||(R=t||ou(),su()&&window.document&&a.enable(),si=Ei),si},a.defaults=function(t){if(t)for(var i in t)vn[i]=t[i];return vn},a.disable=function(t,i){Ei=0,U.forEach(function(s){return s[i?"kill":"disable"](t)}),Le(q,"wheel",ni),Le(fe,"scroll",ni),clearInterval(dn),Le(fe,"touchcancel",Gt),Le(ie,"touchstart",Gt),mn(Le,fe,"pointerdown,touchstart,mousedown",Io),mn(Le,fe,"pointerup,touchend,mouseup",Lo),$n.kill(),gn(Le);for(var n=0;n<G.length;n+=3)yn(Le,G[n],G[n+1]),yn(Le,G[n],G[n+2])},a.enable=function(){if(q=window,fe=document,bt=fe.documentElement,ie=fe.body,R&&(sn=R.utils.toArray,Vi=R.utils.clamp,Ds=R.core.context||Gt,is=R.core.suppressOverwrites||Gt,Js=q.history.scrollRestoration||"auto",Rs=q.pageYOffset||0,R.core.globals("ScrollTrigger",a),ie)){Ei=1,di=document.createElement("div"),di.style.height="100vh",di.style.position="absolute",gu(),Ql(),ke.register(R),a.isTouch=ke.isTouch,gr=ke.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Os=ke.isTouch===1,Ne(q,"wheel",ni),Qs=[q,fe,bt,ie],R.matchMedia?(a.matchMedia=function(l){var f=R.matchMedia(),_;for(_ in l)f.add(_,l[_]);return f},R.addEventListener("matchMediaInit",function(){du(),so()}),R.addEventListener("matchMediaRevert",function(){return _u()}),R.addEventListener("matchMedia",function(){$r(0,1),Zr("matchMedia")}),R.matchMedia().add("(orientation: portrait)",function(){return as(),as})):console.warn("Requires GSAP 3.11.0 or later"),as(),Ne(fe,"scroll",ni);var t=ie.hasAttribute("style"),i=ie.style,n=i.borderTopStyle,s=R.core.Animation.prototype,o,u;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",o=or(ie),Ee.m=Math.round(o.top+Ee.sc())||0,st.m=Math.round(o.left+st.sc())||0,n?i.borderTopStyle=n:i.removeProperty("border-top-style"),t||(ie.setAttribute("style",""),ie.removeAttribute("style")),dn=setInterval(Bo,250),R.delayedCall(.5,function(){return pn=0}),Ne(fe,"touchcancel",Gt),Ne(ie,"touchstart",Gt),mn(Ne,fe,"pointerdown,touchstart,mousedown",Io),mn(Ne,fe,"pointerup,touchend,mouseup",Lo),Cs=R.utils.checkPrefix("transform"),An.push(Cs),si=Ke(),$n=R.delayedCall(.2,$r).pause(),oi=[fe,"visibilitychange",function(){var l=q.innerWidth,f=q.innerHeight;fe.hidden?(Ro=l,Eo=f):(Ro!==l||Eo!==f)&&Ii()},fe,"DOMContentLoaded",$r,q,"load",$r,q,"resize",Ii],gn(Ne),U.forEach(function(l){return l.enable(0,1)}),u=0;u<G.length;u+=3)yn(Le,G[u],G[u+1]),yn(Le,G[u],G[u+2])}},a.config=function(t){"limitCallbacks"in t&&(ns=!!t.limitCallbacks);var i=t.syncInterval;i&&clearInterval(dn)||(dn=i)&&setInterval(Bo,i),"ignoreMobileResize"in t&&(Os=a.isTouch===1&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(gn(Le)||gn(Ne,t.autoRefreshEvents||"none"),ru=(t.autoRefreshEvents+"").indexOf("resize")===-1)},a.scrollerProxy=function(t,i){var n=at(t),s=G.indexOf(n),o=Kr(n);~s&&G.splice(s,o?6:2),i&&(o?Zt.unshift(q,i,ie,i,bt,i):Zt.unshift(n,i))},a.clearMatchMedia=function(t){U.forEach(function(i){return i._ctx&&i._ctx.query===t&&i._ctx.kill(!0,!0)})},a.isInViewport=function(t,i,n){var s=(vt(t)?at(t):t).getBoundingClientRect(),o=s[n?qr:Gr]*i||0;return n?s.right-o>0&&s.left+o<q.innerWidth:s.bottom-o>0&&s.top+o<q.innerHeight},a.positionInViewport=function(t,i,n){vt(t)&&(t=at(t));var s=t.getBoundingClientRect(),o=s[n?qr:Gr],u=i==null?o/2:i in Un?Un[i]*o:~i.indexOf("%")?parseFloat(i)*o/100:parseFloat(i)||0;return n?(s.left+u)/q.innerWidth:(s.top+u)/q.innerHeight},a.killAll=function(t){if(U.slice(0).forEach(function(n){return n.vars.id!=="ScrollSmoother"&&n.kill()}),t!==!0){var i=jr.killAll||[];jr={},i.forEach(function(n){return n()})}},a})();H.version="3.14.2";H.saveStyles=function(a){return a?sn(a).forEach(function(e){if(e&&e.style){var r=yt.indexOf(e);r>=0&&yt.splice(r,5),yt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),R.core.getCache(e),Ds())}}):yt};H.revert=function(a,e){return so(!a,e)};H.create=function(a,e){return new H(a,e)};H.refresh=function(a){return a?Ii(!0):(si||H.register())&&$r(!0)};H.update=function(a){return++G.cache&&ur(a===!0?2:0)};H.clearScrollMemory=pu;H.maxScroll=function(a,e){return jt(a,e?st:Ee)};H.getScrollFunc=function(a,e){return Or(at(a),e?st:Ee)};H.getById=function(a){return As[a]};H.getAll=function(){return U.filter(function(a){return a.vars.id!=="ScrollSmoother"})};H.isScrolling=function(){return!!It};H.snapDirectional=no;H.addEventListener=function(a,e){var r=jr[a]||(jr[a]=[]);~r.indexOf(e)||r.push(e)};H.removeEventListener=function(a,e){var r=jr[a],t=r&&r.indexOf(e);t>=0&&r.splice(t,1)};H.batch=function(a,e){var r=[],t={},i=e.interval||.016,n=e.batchMax||1e9,s=function(l,f){var _=[],d=[],c=R.delayedCall(i,function(){f(_,d),_=[],d=[]}).pause();return function(p){_.length||c.restart(!0),_.push(p.trigger),d.push(p),n<=_.length&&c.progress(1)}},o;for(o in e)t[o]=o.substr(0,2)==="on"&&Ze(e[o])&&o!=="onRefreshInit"?s(o,e[o]):e[o];return Ze(n)&&(n=n(),Ne(H,"refresh",function(){return n=e.batchMax()})),sn(a).forEach(function(u){var l={};for(o in t)l[o]=t[o];l.trigger=u,r.push(H.create(l))}),r};var qo=function(e,r,t,i){return r>i?e(i):r<0&&e(0),t>i?(i-r)/(t-r):t<0?r/(r-t):1},ls=function a(e,r){r===!0?e.style.removeProperty("touch-action"):e.style.touchAction=r===!0?"auto":r?"pan-"+r+(ke.isTouch?" pinch-zoom":""):"none",e===bt&&a(ie,r)},Tn={auto:1,scroll:1},cf=function(e){var r=e.event,t=e.target,i=e.axis,n=(r.changedTouches?r.changedTouches[0]:r).target,s=n._gsap||R.core.getCache(n),o=Ke(),u;if(!s._isScrollT||o-s._isScrollT>2e3){for(;n&&n!==ie&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(Tn[(u=Et(n)).overflowY]||Tn[u.overflowX]));)n=n.parentNode;s._isScroll=n&&n!==t&&!Kr(n)&&(Tn[(u=Et(n)).overflowY]||Tn[u.overflowX]),s._isScrollT=o}(s._isScroll||i==="x")&&(r.stopPropagation(),r._gsapAllow=!0)},yu=function(e,r,t,i){return ke.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:r,onWheel:i=i&&cf,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return t&&Ne(fe,ke.eventTypes[0],Ho,!1,!0)},onDisable:function(){return Le(fe,ke.eventTypes[0],Ho,!0)}})},hf=/(input|label|select|textarea)/i,Go,Ho=function(e){var r=hf.test(e.target.tagName);(r||Go)&&(e._gsapAllow=!0,Go=r)},_f=function(e){Yr(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var r=e,t=r.normalizeScrollX,i=r.momentum,n=r.allowNestedScroll,s=r.onRelease,o,u,l=at(e.target)||bt,f=R.core.globals().ScrollSmoother,_=f&&f.get(),d=gr&&(e.content&&at(e.content)||_&&e.content!==!1&&!_.smooth()&&_.content()),c=Or(l,Ee),p=Or(l,st),h=1,m=(ke.isTouch&&q.visualViewport?q.visualViewport.scale*q.visualViewport.width:q.outerWidth)/q.innerWidth,b=0,w=Ze(i)?function(){return i(o)}:function(){return i||2.8},S,v,T=yu(l,e.type,!0,n),k=function(){return v=!1},x=Gt,O=Gt,P=function(){u=jt(l,Ee),O=Vi(gr?1:0,u),t&&(x=Vi(0,jt(l,st))),S=Hr},C=function(){d._gsap.y=Fi(parseFloat(d._gsap.y)+c.offset)+"px",d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(d._gsap.y)+", 0, 1)",c.offset=c.cacheID=0},L=function(){if(v){requestAnimationFrame(k);var Z=Fi(o.deltaY/2),ne=O(c.v-Z);if(d&&ne!==c.v+c.offset){c.offset=ne-c.v;var g=Fi((parseFloat(d&&d._gsap.y)||0)-c.offset);d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+g+", 0, 1)",d._gsap.y=g+"px",c.cacheID=G.cache,ur()}return!0}c.offset&&C(),v=!0},M,V,$,K,W=function(){P(),M.isActive()&&M.vars.scrollY>u&&(c()>u?M.progress(1)&&c(u):M.resetTo("scrollY",u))};return d&&R.set(d,{y:"+=0"}),e.ignoreCheck=function(F){return gr&&F.type==="touchmove"&&L()||h>1.05&&F.type!=="touchstart"||o.isGesturing||F.touches&&F.touches.length>1},e.onPress=function(){v=!1;var F=h;h=Fi((q.visualViewport&&q.visualViewport.scale||1)/m),M.pause(),F!==h&&ls(l,h>1.01?!0:t?!1:"x"),V=p(),$=c(),P(),S=Hr},e.onRelease=e.onGestureStart=function(F,Z){if(c.offset&&C(),!Z)K.restart(!0);else{G.cache++;var ne=w(),g,se;t&&(g=p(),se=g+ne*.05*-F.velocityX/.227,ne*=qo(p,g,se,jt(l,st)),M.vars.scrollX=x(se)),g=c(),se=g+ne*.05*-F.velocityY/.227,ne*=qo(c,g,se,jt(l,Ee)),M.vars.scrollY=O(se),M.invalidate().duration(ne).play(.01),(gr&&M.vars.scrollY>=u||g>=u-1)&&R.to({},{onUpdate:W,duration:ne})}s&&s(F)},e.onWheel=function(){M._ts&&M.pause(),Ke()-b>1e3&&(S=0,b=Ke())},e.onChange=function(F,Z,ne,g,se){if(Hr!==S&&P(),Z&&t&&p(x(g[2]===Z?V+(F.startX-F.x):p()+Z-g[1])),ne){c.offset&&C();var Be=se[2]===ne,_t=Be?$+F.startY-F.y:c()+ne-se[1],_e=O(_t);Be&&_t!==_e&&($+=_e-_t),c(_e)}(ne||Z)&&ur()},e.onEnable=function(){ls(l,t?!1:"x"),H.addEventListener("refresh",W),Ne(q,"resize",W),c.smooth&&(c.target.style.scrollBehavior="auto",c.smooth=p.smooth=!1),T.enable()},e.onDisable=function(){ls(l,!0),Le(q,"resize",W),H.removeEventListener("refresh",W),T.kill()},e.lockAxis=e.lockAxis!==!1,o=new ke(e),o.iOS=gr,gr&&!c()&&c(1),gr&&R.ticker.add(Gt),K=o._dc,M=R.to(o,{ease:"power4",paused:!0,inherit:!1,scrollX:t?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:mu(c,c(),function(){return M.pause()})},onUpdate:ur,onComplete:K.vars.onComplete}),o};H.sort=function(a){if(Ze(a))return U.sort(a);var e=q.pageYOffset||0;return H.getAll().forEach(function(r){return r._sortY=r.trigger?e+r.trigger.getBoundingClientRect().top:r.start+q.innerHeight}),U.sort(a||function(r,t){return(r.vars.refreshPriority||0)*-1e6+(r.vars.containerAnimation?1e6:r._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})};H.observe=function(a){return new ke(a)};H.normalizeScroll=function(a){if(typeof a>"u")return tt;if(a===!0&&tt)return tt.enable();if(a===!1){tt&&tt.kill(),tt=a;return}var e=a instanceof ke?a:_f(a);return tt&&tt.target===e.target&&tt.kill(),Kr(e.target)&&(tt=e),e};H.core={_getVelocityProp:ks,_inputObserver:yu,_scrollers:G,_proxies:Zt,bridge:{ss:function(){It||Zr("scrollStart"),It=Ke()},ref:function(){return He}}};ou()&&R.registerPlugin(H);let Ko=!1;function df(){Ko||typeof window>"u"||(wt.registerPlugin(H),Ko=!0)}function pf(a,e){if(/hero|renovation|machinery|swiper|carousel/i.test(a))return"hero";if(/grid|product/i.test(a))return"fadeUp";if(/news|latest|article/i.test(a))return"staggerUp";if(/consulting|service|section|paragraph|text/i.test(a))return e%2===0?"slideLeft":"slideRight";if(/gallery|hexagon|materials|showcase/i.test(a)||/contact|form/i.test(a))return"scaleUp";if(/bread|crumb/i.test(a))return"fadeDown";const r=["fadeUp","slideLeft","slideRight","scaleUp"];return r[e%r.length]}function gf(a,e,r){const t={scrollTrigger:{trigger:a,start:"top 88%",once:!0},clearProps:"transform"};switch(e){case"slideLeft":return wt.fromTo(a,{autoAlpha:0,y:48,rotate:-1.2,transformOrigin:"center center"},{autoAlpha:1,y:0,rotate:0,duration:.85,ease:"power3.out",...t});case"slideRight":return wt.fromTo(a,{autoAlpha:0,y:48,rotate:1.2,transformOrigin:"center center"},{autoAlpha:1,y:0,rotate:0,duration:.85,ease:"power3.out",...t});case"scaleUp":return wt.fromTo(a,{autoAlpha:0,scale:.92,y:30,transformOrigin:"top center"},{autoAlpha:1,scale:1,y:0,duration:.9,ease:"back.out(1.2)",...t});case"fadeDown":return wt.fromTo(a,{autoAlpha:0,y:-24},{autoAlpha:1,y:0,duration:.5,ease:"power2.out",...t});case"staggerUp":{wt.set(a,{autoAlpha:1});const i=a.querySelectorAll('[class*="card"], [class*="item"], [class*="news"], article, li'),n=i.length>=2?Array.from(i):[a];return wt.fromTo(n,{autoAlpha:0,y:50},{autoAlpha:1,y:0,duration:.65,ease:"power3.out",stagger:{amount:.45,from:"start"},...t})}default:return wt.fromTo(a,{autoAlpha:0,y:60},{autoAlpha:1,y:0,duration:.75,ease:"power3.out",...t})}}function wf(a={}){const e=a.rootSelector||".ft-page-section";let r=null,t=!1;const i=()=>{if(t=!0,!!r){try{r.revert()}catch{}r=null}},n=async()=>{if(df(),i(),t=!1,await ku(),await new Promise(l=>requestAnimationFrame(()=>l())),document.readyState!=="complete"&&(await new Promise(l=>{window.addEventListener("load",()=>l(),{once:!0})}),await new Promise(l=>requestAnimationFrame(()=>l()))),t)return;const s=Array.from(document.querySelectorAll(e));if(!s.length)return;const o=window.innerHeight,u=l=>l.getBoundingClientRect().top<o;r=wt.context(()=>{u(s[0])?wt.set(s[0],{autoAlpha:1}):wt.fromTo(s[0],{autoAlpha:0,scale:1.04,transformOrigin:"top center"},{autoAlpha:1,scale:1,duration:1.1,ease:"power2.out",clearProps:"transform"}),s.slice(1).forEach((l,f)=>{if(u(l)){wt.set(l,{autoAlpha:1});return}const _=pf(l.id||"",f);gf(l,_)})}),typeof window<"u"&&window.requestAnimationFrame(()=>H.refresh())};return Pu(i),{initAnimations:n,clearAnimations:i}}export{fo as M,wf as a,xf as u};
