PageSourceSearch

https://newpulselabs.com/wp-content/uploads/motionpage-sdk/sdk-bundle.js?ver=54bfbdb614c3

js newpulselabs.com collected 2026-09-29 15:11:19 UTC 140,699 bytes, 115 lines download raw bytes

1(function(_g_){"use strict";
2var __SDK__={};
3(function(){var e={color:null,filter:null,drawSVG:null,clipPath:null,stagger:null,textSplitter:null,textFlapper:null,triggerManager:null,styleReset:null,fit:null,responsive:null};__SDK__.SDKRegistry=e;
4})();
5(function(){var A=n=>n,_=A,s={in:n=>n*n,out:n=>n*(2-n),inOut:n=>n<.5?2*n*n:-1+(4-2*n)*n},p={in:n=>n*n*n,out:n=>--n*n*n+1,inOut:n=>n<.5?4*n*n*n:(n-1)*(2*n-2)*(2*n-2)+1},l={in:n=>n*n*n*n,out:n=>1- --n*n*n*n,inOut:n=>n<.5?8*n*n*n*n:1-8*--n*n*n*n},b={in:n=>n*n*n*n*n,out:n=>1+--n*n*n*n*n,inOut:n=>n<.5?16*n*n*n*n*n:1+16*--n*n*n*n*n},v=s,z=p,B=l,V=b,$=b,g={in:n=>1-Math.cos(n*Math.PI/2),out:n=>Math.sin(n*Math.PI/2),inOut:n=>-(Math.cos(Math.PI*n)-1)/2},f={in:n=>2**(10*(n-1))*n+n*n*n*n*n*n*(1-n),out:n=>1-(2**(10*-n)*(1-n)+(1-n)*(1-n)*(1-n)*(1-n)*(1-n)*(1-n)*n),inOut:n=>{if(n<.5){let e=n*2;return(2**(10*(e-1))*e+e*e*e*e*e*e*(1-e))/2}let u=(1-n)*2;return 1-(2**(10*(u-1))*u+u*u*u*u*u*u*(1-u))/2}},x={in:n=>1-Math.sqrt(1-n*n),out:n=>Math.sqrt(1- --n*n),inOut:n=>(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},L=1.70158,S=(n=L)=>{let u=e=>e?--e*e*((n+1)*e+n)+1:0;return{in:e=>1-u(1-e),out:u,inOut:e=>e<.5?(1-u(1-e*2))/2:.5+u((e-.5)*2)/2}},M=S(),D=1,N=.3,T=(n=D,u=N)=>{let e=Math.max(1,n),t=u/(2*Math.PI)*Math.asin(1/e),m=u*1.5,c=m/(2*Math.PI)*Math.asin(1/e);return{in:o=>o===0?0:o===1?1:-(e*Math.pow(2,10*(o-=1))*Math.sin((o-t)*(2*Math.PI)/u)),out:o=>o===0?0:o===1?1:e*Math.pow(2,-10*o)*Math.sin((o-t)*(2*Math.PI)/u)+1,inOut:o=>o===0?0:o===1?1:(o*=2)<1?-.5*(e*Math.pow(2,10*(o-=1))*Math.sin((o-c)*(2*Math.PI)/m)):e*Math.pow(2,-10*(o-=1))*Math.sin((o-c)*(2*Math.PI)/m)*.5+1}},E=T(),F=n=>n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375,O={in:n=>1-F(1-n),out:F,inOut:n=>n<.5?O.in(n*2)*.5:O.out(n*2-1)*.5+.5},h=(n=.7,u=.7,e=!1)=>{let t=n!==1?u:0,m=(1-n)/2,c=m+n,o=e;return a=>{let i=a+(.5-a)*t;if(a<m){let r=1-a/m;return o?1-r*r:i-r*r*r*r*i}else if(a>c){let r=(a-c)/m;return o?a===1?0:1-r*r:i+(a-i)*r*r*r*r}return o?1:i}},k={in:h(.7,.7,!1),out:h(.7,.7,!1),inOut:h(.7,.7,!1)},d=(n=1,u=20,e=!1)=>{let t=[],m=1/u;for(let c=0;c<u;c++){let o=c*m,i=((c*1327+531)%1e3/1e3-.5)*n*.4,r=o+i;t.push({x:o,y:e?Math.max(0,Math.min(1,r)):r})}return t[0]={x:0,y:0},t.push({x:1,y:1}),c=>{if(c<=0)return 0;if(c>=1)return 1;let o=0,a=t.length-1;for(;o<a-1;){let w=o+a>>1;t[w].x<=c?o=w:a=w}let i=t[o],r=t[a],I=(c-i.x)/(r.x-i.x);return i.y+(r.y-i.y)*I}},R={in:d(1,20,!0),out:d(1,20,!0),inOut:d(1,20,!0)},y=n=>u=>u>=1?1:Math.floor(u*n)/n,q={in:y(12),out:y(12),inOut:y(12)},P={linear:A,none:_,power1:s.out,"power1.in":s.in,"power1.out":s.out,"power1.inout":s.inOut,power2:p.out,"power2.in":p.in,"power2.out":p.out,"power2.inout":p.inOut,power3:l.out,"power3.in":l.in,"power3.out":l.out,"power3.inout":l.inOut,power4:b.out,"power4.in":b.in,"power4.out":b.out,"power4.inout":b.inOut,quad:s.out,"quad.in":s.in,"quad.out":s.out,"quad.inout":s.inOut,cubic:p.out,"cubic.in":p.in,"cubic.out":p.out,"cubic.inout":p.inOut,quart:l.out,"quart.in":l.in,"quart.out":l.out,"quart.inout":l.inOut,quint:b.out,"quint.in":b.in,"quint.out":b.out,"quint.inout":b.inOut,strong:b.out,"strong.in":b.in,"strong.out":b.out,"strong.inout":b.inOut,sine:g.out,"sine.in":g.in,"sine.out":g.out,"sine.inout":g.inOut,expo:f.out,"expo.in":f.in,"expo.out":f.out,"expo.inout":f.inOut,circ:x.out,"circ.in":x.in,"circ.out":x.out,"circ.inout":x.inOut,back:M.out,"back.in":M.in,"back.out":M.out,"back.inout":M.inOut,elastic:E.out,"elastic.in":E.in,"elastic.out":E.out,"elastic.inout":E.inOut,bounce:O.out,"bounce.in":O.in,"bounce.out":O.out,"bounce.inout":O.inOut,slow:k.inOut,"slow.in":s.out,"slow.out":s.out,"slow.inout":s.out,slowmo:k.inOut,"slowmo.in":s.out,"slowmo.out":s.out,"slowmo.inout":s.out,rough:R.inOut,"rough.in":s.out,"rough.out":s.out,"rough.inout":s.out,steps:q.inOut,"steps.in":q.in,"steps.out":q.out,"steps.inout":q.inOut},U={back:n=>S(n),elastic:(n,u)=>T(n,u),slow:(n,u,e)=>{let t=h(n,u,e===1);return{in:t,out:t,inOut:t}},slowmo:(n,u,e)=>{let t=h(n,u,e===1);return{in:t,out:t,inOut:t}},rough:(n,u,e)=>{let t=d(n,u,e===1);return{in:t,out:t,inOut:t}},steps:n=>{let u=y(n??12);return{in:u,out:u,inOut:u}}},C=/^(\w+)(?:\.(\w+))?\(([^)]*)\)$/;function G(n){let u=n.toLowerCase();if(P[u])return P[u];let e=C.exec(u);if(e){let[,t,m,c]=e,o=U[t];if(o){let a=c.split(",").map(i=>i.trim()).filter(i=>i.length>0).map(Number);if(a.every(i=>
5!isNaN(i))){let i=o(...a),r=m||"out",w=i[r==="inout"?"inOut":r];if(w)return w}}}return console.warn(`[Motion] Unknown easing "${n}". Falling back to "power1.out". Valid easings: linear, power1-4.in/out/inOut, quad, cubic, quart, quint, strong, sine, expo, circ, back, elastic, bounce, slow, rough, steps. Parameterized: back.out(overshoot), elastic.out(amplitude, period), steps(n), slow(ratio, power, yoyo), rough(strength, points, clamp)`),s.out}__SDK__.back=M;__SDK__.bounce=O;__SDK__.circ=x;__SDK__.cubic=z;__SDK__.elastic=E;__SDK__.expo=f;__SDK__.getEasing=G;__SDK__.linear=A;__SDK__.none=_;__SDK__.power1=s;__SDK__.power2=p;__SDK__.power3=l;__SDK__.power4=b;__SDK__.quad=v;__SDK__.quart=B;__SDK__.quint=V;__SDK__.rough=R;__SDK__.sine=g;__SDK__.slow=k;__SDK__.steps=q;__SDK__.strong=$;
6})();
7(function(){var Y={perspective:0,x:1,y:2,z:3,rotate:4,rotateX:5,rotateY:6,rotateZ:7,scale:8,scaleX:9,scaleY:10,scaleZ:11,skewX:12,skewY:13},k=["px","px","px","px","deg","deg","deg","deg","","","","","deg","deg"],S=new WeakMap,X=new WeakMap,f=[],N=1e-6;function T(s){let e=s.trim().match(/([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z%]*)/i);return e?{value:parseFloat(e[1]),unit:e[2]||""}:{value:0,unit:""}}function A(s,e){switch(e){case"rad":return s*180/Math.PI;case"turn":return s*360;case"grad":return s*.9;default:return s}}function p(s){let e=T(s);return A(e.value,e.unit||"deg")}function o(s,e,r,n){let a=Y[e];if(a===void 0)return;s.values[a]=r;let t=n&&n.length>0?n:k[a]||"";s.units[a]=t,s.used|=1<<a}function q(s,e){let r=/([a-zA-Z0-9]+)\(([^)]+)\)/g,n;for(;(n=r.exec(s))!==null;){let a=n[1],t=n[2].match(/[-+]?\d*\.?\d+(?:e[-+]?\d+)?[a-z%]*/gi)||[];switch(a){case"translate":{let i=t[0]?T(t[0]):{value:0,unit:""},c=t[1]?T(t[1]):{value:0,unit:""};o(e,"x",i.value,i.unit),o(e,"y",c.value,c.unit);break}case"translate3d":{let i=t[0]?T(t[0]):{value:0,unit:""},c=t[1]?T(t[1]):{value:0,unit:""},l=t[2]?T(t[2]):{value:0,unit:""};o(e,"x",i.value,i.unit),o(e,"y",c.value,c.unit),o(e,"z",l.value,l.unit);break}case"translateX":{let i=t[0]?T(t[0]):{value:0,unit:""};o(e,"x",i.value,i.unit);break}case"translateY":{let i=t[0]?T(t[0]):{value:0,unit:""};o(e,"y",i.value,i.unit);break}case"translateZ":{let i=t[0]?T(t[0]):{value:0,unit:""};o(e,"z",i.value,i.unit);break}case"scale":{let i=t[0]?parseFloat(t[0]):1,c=t[1]?parseFloat(t[1]):i;o(e,"scaleX",i),o(e,"scaleY",c);break}case"scale3d":{let i=t[0]?parseFloat(t[0]):1,c=t[1]?parseFloat(t[1]):1,l=t[2]?parseFloat(t[2]):1;o(e,"scaleX",i),o(e,"scaleY",c),o(e,"scaleZ",l);break}case"scaleX":{let i=t[0]?parseFloat(t[0]):1;o(e,"scaleX",i);break}case"scaleY":{let i=t[0]?parseFloat(t[0]):1;o(e,"scaleY",i);break}case"scaleZ":{let i=t[0]?parseFloat(t[0]):1;o(e,"scaleZ",i);break}case"rotate":o(e,"rotate",t[0]?p(t[0]):0,"deg");break;case"rotateX":o(e,"rotateX",t[0]?p(t[0]):0,"deg");break;case"rotateY":o(e,"rotateY",t[0]?p(t[0]):0,"deg");break;case"rotateZ":o(e,"rotateZ",t[0]?p(t[0]):0,"deg");break;case"skew":{let i=t[0]?p(t[0]):0,c=t[1]?p(t[1]):0;o(e,"skewX",i,"deg"),o(e,"skewY",c,"deg");break}case"skewX":o(e,"skewX",t[0]?p(t[0]):0,"deg");break;case"skewY":o(e,"skewY",t[0]?p(t[0]):0,"deg");break;case"perspective":{let i=t[0]?T(t[0]):{value:0,unit:""};o(e,"perspective",i.value,i.unit);break}default:break}}}function R(s,e,r,n,a,t,i,c,l,x,g,I,b,u){if(b){let h=Math.hypot(s,e),H=s*a-e*n,G=h!==0?H/h:0,j=h!==0?Math.atan2(e,s):0,P=h!==0?Math.atan2(s*n+e*a,h*h):0;o(u,"x",x,"px"),o(u,"y",g,"px"),o(u,"scaleX",h||1),o(u,"scaleY",G||1),o(u,"rotate",A(j,"rad"),"deg"),Math.abs(P)>N&&o(u,"skewX",A(P,"rad"),"deg");return}let m=Math.hypot(s,e,r)||1,E=Math.hypot(n,a,t)||1,O=Math.hypot(i,c,l)||1,_=s/m,w=e/m,v=r/m,d=n/E,U=a/E,W=t/E,D=i/O,F=c/O,V=l/O,y=Math.sqrt(_*_+d*d),K=y<N,C=0,L=0,$=0;K?(C=Math.atan2(-W,U),L=Math.atan2(-D,y),$=0):(C=Math.atan2(F,V),L=Math.atan2(-D,y),$=Math.atan2(d,_)),o(u,"x",x,"px"),o(u,"y",g,"px"),o(u,"z",I,"px"),o(u,"scaleX",m),o(u,"scaleY",E),o(u,"scaleZ",O),o(u,"rotateX",A(C,"rad"),"deg"),o(u,"rotateY",A(L,"rad"),"deg"),o(u,"rotateZ",A($,"rad"),"deg")}function B(s,e){if(!s||s==="none")return;if(typeof DOMMatrixReadOnly<"u"){let n=new DOMMatrixReadOnly(s);R(n.m11,n.m12,n.m13,n.m21,n.m22,n.m23,n.m31,n.m32,n.m33,n.m41,n.m42,n.m43,n.is2D,e);return}let r=s.match(/[-+]?\d*\.?\d+(?:e[-+]?\d+)?/gi)||[];if(s.startsWith("matrix3d")&&r.length>=16){let n=r.map(Number);R(n[0],n[1],n[2],n[4],n[5],n[6],n[8],n[9],n[10],n[12],n[13],n[14],!1,e);return}if(s.startsWith("matrix")&&r.length>=6){let n=r.map(Number);R(n[0],n[1],0,n[2],n[3],0,0,0,1,n[4],n[5],0,!0,e)}}function J(s,e){if(!(s instanceof HTMLElement)&&!(s instanceof SVGElement))return;let n=s.style.transform;if(n&&n!=="none"){q(n,e),e.cachedString=n;return}try{if(typeof window<"u"&&window.getComputedStyle){let a=window.getComputedStyle(s),t=a.transform||a.getPropertyValue("transform");t&&t!=="none"&&(B(t,e),e.cachedString=t)}}catch{}}function M(s){let e=S.get(s);if(!e){let r=new Float32Array(14);r[8]=1,r[9]=1,r[10]=1,r[11]=1,e={values:r,units:[...k],dirty:0,used:0,cachedString:"",pinDirty:!1},J(s,e),S.set(s,e)}return e}function Q(s,e,r,n){let a=M(s),t=Y[e];t!==void 0&&(a.values[t]=r,n!==void 0&&(a.units[t]=n),a.used|=1<<t,e==="scale"?(a.values[9]=r,a.values[10]=r,a.dirty|=1536):(e==="scaleX"||e==="scaleY")&&(a.values[8]=1,a.dirty|=256),e==="rotate"?(a.values[7]=0,a.dirty|=128):e==="rotateZ"&&(a.values[4]=0,a.dirty|=16),a.dirty|=1<<t)}function ee(s,e){let r=M(s),n=Y[e];if(n===void 0)return e.startsWith("scale")?1:0;if(e==="scale"){if(r.values[n]!==1)return r.values[n];let a=r.values[9],t=r.values[10];return Math.abs(a-t)<N&&a!==1?a:r.values[n]}if(e==="rotate"){if(r.values[n]!==0)return r.values[n];let a=r.values[7];return a!==0&&r.values[5]===0&&r.values[6]===0?a:r.values[n]}return r.values[n]}function ne(s,e){let r=M(s),n=Y[e];return n===void 0?"":r.units[n]||k[n]||""}function Z(s){return s===0?"0":`${Math.round(s)}px`}function z(s,e,r){return`translate3d(${Z(s)}, ${Z(e)}, ${Z(r)})`}function te(s,e,r,n){X.set(s,{x:e,y:r,z:n});let a=S.get(s);a&&(a.pinDirty=!0)}function se(s){let e=X.has(s);if(X.delete(s),e){let r=S.get(s);r&&(r.pinDirty=!0)}}function re(s){let e=S.get(s),r=X.get(s);if(!e)return r&&(r.x!==0||r.y!==0||r.z!==0)?z(r.x,r.y,r.z):"";if(e.dirty===0&&!e.pinDirty&&e.cachedString)return e.cachedString;let n=e.values,a=e.units;f.length=0;let t=e.used,i=n[0];if(i!==0){let d=a[0];f.push(`perspective(${i}${d})`)}let c=n[1],l=n[2],x=n[3],g=a[1],I=a[2],b=a[3],u=t&2,m=t&4,E=t&8;if(c!==0||l!==0||x!==0||u||m||E){let d=g===I&&(x===0&&!E||I===b);x!==0||E?d?f.push(`translate3d(${c}${g}, ${l}${I}, ${x}${b})`):((c!==0||u)&&f.push(`translateX(${c}${g}
7)`),(l!==0||m)&&f.push(`translateY(${l}${I})`),f.push(`translateZ(${x}${b})`)):d&&(c!==0||u)&&(l!==0||m)?f.push(`translate(${c}${g}, ${l}${I})`):((c!==0||u)&&f.push(`translateX(${c}${g})`),(l!==0||m)&&f.push(`translateY(${l}${I})`))}(n[4]!==0||t&16)&&f.push(`rotate(${n[4]}deg)`),(n[5]!==0||t&32)&&f.push(`rotateX(${n[5]}deg)`),(n[6]!==0||t&64)&&f.push(`rotateY(${n[6]}deg)`),(n[7]!==0||t&128)&&f.push(`rotateZ(${n[7]}deg)`);let O=t&256,_=t&512,w=t&1024;n[8]!==1||O?f.push(`scale(${n[8]})`):(n[9]!==1||n[10]!==1||_||w)&&(f.push(`scaleX(${n[9]})`),f.push(`scaleY(${n[10]})`)),(n[11]!==1||t&2048)&&f.push(`scaleZ(${n[11]})`),(n[12]!==0||t&4096)&&f.push(`skewX(${n[12]}deg)`),(n[13]!==0||t&8192)&&f.push(`skewY(${n[13]}deg)`);let v=f.join(" ");if(r&&(r.x!==0||r.y!==0||r.z!==0)){let d=z(r.x,r.y,r.z);e.cachedString=v?`${d} ${v}`:d}else e.cachedString=v;return e.dirty=0,e.pinDirty=!1,e.cachedString}function ae(s,e=!1){S.delete(s),e&&s instanceof HTMLElement&&(s.style.transform="")}__SDK__.buildTransformString=re;__SDK__.clearPinOffset=se;__SDK__.clearTransformCache=ae;__SDK__.getTransformData=M;__SDK__.getTransformUnit=ne;__SDK__.getTransformValue=ee;__SDK__.setPinOffset=te;__SDK__.setTransformValue=Q;
8})();
9(function(){const{buildTransformString: a}=__SDK__;var l=new Set,s=new Map,o=!1;function m(e){l.add(e),o=!0}
9function c(e,r,n){let t=s.get(e);t||(t=new Map,s.set(e,t)),t.set(r,n),o=!0}function p(){if(o){for(let e of l){let r=e;if(r.style){let n=a(e);r.style.transform=n}}l.clear();for(let[e,r]of s){let n=e;if(n.style)for(let[t,i]of r)try{t.startsWith("--")?n.style.setProperty(t,i):n.style[t]=i}catch{}}s.clear(),o=!1}}__SDK__.flush=p;__SDK__.queueStyle=c;__SDK__.queueTransform=m;
10})();
11(function(){var m=Object.defineProperty;var f=(s,e,i)=>e in s?m(s,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):s[e]=i;var t=(s,e,i)=>f(s,typeof e!="symbol"?e+"":e,i);const{flush: u}=__SDK__;var l=!1;function d(){return l}function v(s){if(l){s();return}l=!0;try{s(),u()}finally{l=!1}}var a=class a{constructor(){t(this,"listeners",[]);t(this,"_listenersDirty",!0);t(this,"_listenersSnapshot",[]);t(this,"_isRunning",!1);t(this,"rafId",null);t(this,"lastTime",0);t(this,"elapsedTime",0);t(this,"lagThreshold",500);t(this,"maxDelta",33);t(this,"fpsFrames",0);t(this,"fpsTime",0);t(this,"currentFPS",60);t(this,"lastFrameTime",0);t(this,"tick",()=>{if(!this._isRunning)return;let e=performance.now(),i=e-this.lastTime;i>this.lagThreshold?(i=this.maxDelta,this.lastTime=e-i):this.lastTime=e;let n=i/1e3;this.elapsedTime+=n,this.lastFrameTime=i,this.updateFPS(i),l=!0,this._listenersDirty&&(this._listenersSnapshot=[...this.listeners],this._listenersDirty=!1);for(let r of this._listenersSnapshot)try{r.callback(n,this.elapsedTime)}catch(h){console.error("[Motion] Uncaught error in animation callback:",h)}try{u()}catch(r){console.error("[Motion] Uncaught error in render batch flush:",r)}l=!1,this._isRunning&&typeof requestAnimationFrame<"u"?this.rafId=requestAnimationFrame(this.tick):this.rafId=null})}static getInstance(){return a.instance||(a.instance=new a),a.instance}add(e,i=0){let n=this.listeners.findIndex(r=>r.callback===e);n!==-1?this.listeners[n].priority=i:this.listeners.push({callback:e,priority:i}),this.listeners.sort((r,h)=>h.priority-r.priority),this._listenersDirty=!0,!this._isRunning&&this.listeners.length>0&&this.start()}remove(e){let i=this.listeners.findIndex(n=>n.callback===e);i!==-1&&(this.listeners.splice(i,1),this._listenersDirty=!0),this.listeners.length===0&&this._isRunning&&this.stop()}start(){if(!this._isRunning){if(typeof requestAnimationFrame>"u"){this._isRunning=!1;return}this._isRunning=!0,this.lastTime=performance.now(),this.rafId=requestAnimationFrame(this.tick)}}stop(){this._isRunning&&(this._isRunning=!1,this.rafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.rafId),this.rafId=null))}pause(){this.stop()}resume(){this.listeners.length>0&&this.start()}updateFPS(e){this.fpsFrames++,this.fpsTime+=e,this.fpsTime>=1e3&&(this.currentFPS=Math.round(this.fpsFrames*1e3/this.fpsTime),this.fpsFrames=0,this.fpsTime=0)}getFPS(){return this.currentFPS}getLastDelta(){return this.lastFrameTime}isRunning(){return this._isRunning}isInTick(){return l}getListenerCount(){return this.listeners.length}removeAll(){this.listeners=[],this.stop()}};t(a,"instance");var o=a;__SDK__.Ticker=o;__SDK__.isInTick=d;__SDK__.runBatched=v;
12})();
13(function(){function t(n){if(typeof document>"u"){n();return}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",n,{once:!0}):n()}function o(n){if(n===null||typeof n!="object"||n instanceof Element||"nodeType"in n||"style"in n)return!1;let e=n;return"x"in e&&typeof e.x=="number"?!0:!("length"in n)}function f(n){return n instanceof Element||typeof n=="object"&&n!==null&&("nodeType"in n||"style"in n)}function u(n){if(o(n))return[n];if(typeof n=="string"){if(typeof document<"u")try{return Array.from(document.querySelectorAll(n))}catch(e){return console.warn(`[Motion] Invalid selector "${n}":`,e),[]}return[]}if(n instanceof Element)return[n];if(n&&typeof n=="object"&&"style"in n&&!Array.isArray(n))return[n];if(n instanceof NodeList)return Array.from(n);if(Array.isArray(n)){if(n.length===0)return[];if(typeof n[0]=="string"){if(typeof document>"u")return[];let e=[];for(let r of n)try{e.push(...Array.from(document.querySelectorAll(r)))}catch(i){console.warn(`[Motion] Invalid selector "${r}":`,i)}return e}return o(n[0]),n}return n&&typeof n=="object"&&"length"in n?Array.from(n):[]}__SDK__.isElement=f;__SDK__.resolveTargets=u;__SDK__.whenDOMReady=t;
14})();
15(function(){var e=new Set(["perspective","x","y","z","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skewX","skewY"]),o=new Set(["perspective","x","y","z","width","height","top","left","right","bottom","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","borderRadius","fontSize","lineHeight"]),t=new Set(["rotate","rotateX","rotateY","rotateZ","skewX","skewY"]),r=new Set(["opacity","scale","scaleX","scaleY","scaleZ","z-index","zIndex"]),a=new Set(["color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor","textDecorationColor","caretColor","fill","stroke"]),n=new Set(["red","green","blue","yellow","orange","purple","pink","cyan","magenta","white","black","gray","grey","transparent","crimson","gold","silver","navy","teal","maroon","olive","lime","aqua","fuchsia","coral","salmon","tomato","indigo"]),i=new Set(["width","height"]);__SDK__.AUTO_PROPS=i;__SDK__.COLOR_PROPS=a;__SDK__.DEG_PROPS=t;__SDK__.NAMED_COLORS=n;
15__SDK__.PX_PROPS=o;__SDK__.TRANSFORM_PROPS=e;__SDK__.UNITLESS_PROPS=r;
16})();
17(function(){const{SDKRegistry: e}=__SDK__;const{TRANSFORM_PROPS: n, COLOR_PROPS: i, NAMED_COLORS: s}=__SDK__;function p(r){return n.has(r)}function u(r){return i.has(r)}function f(r){return r==="filter"}function P(r){return r==="drawSVG"}function c(r){return r==="path"}function h(r){return r==="clip-path"||r==="clipPath"}function b(r){return r.startsWith("--")}function g(r){if(typeof r!="string")return!1;let t=r.trim().toLowerCase();if(t.startsWith("#")||/^(rgb|rgba|hsl|hsla)\s*\(/.test(t))return!0;let o=e.color;return o?o.parseColor(t)!==null:s.has(t)}__SDK__.isCSSVariable=b;__SDK__.isClipPathProp=h;__SDK__.isColorProp=u;__SDK__.isDrawSVGProp=P;__SDK__.isFilterProp=f;__SDK__.isPathProp=c;__SDK__.isTransformProp=p;__SDK__.looksLikeColor=g;
18})();
19(function(){const{clearTransformCache: c, getTransformValue: m}=__SDK__;const{UNITLESS_PROPS: g, DEG_PROPS: P, PX_PROPS: w}=__SDK__;const{isTransformProp: y}=__SDK__;function d(t){if(typeof t=="number")return isNaN(t)||!isFinite(t)?(console.warn(`[Motion] Property value is ${t}. This property will not animate correctly.`),{value:0,unit:""}):{value:t,unit:""};if(typeof t=="string"){let e=t.match(/^([+\-*/])=(.+)/);if(e){let r=e[2].match(/([-+]?[\d.]+(?:e[-+]?\d+)?)([a-z%]*)/i);if(r)return{value:parseFloat(r[1]),unit:r[2]||""}}let n=t.match(/([-+]?[\d.]+(?:e[-+]?\d+)?)([a-z%]*)/i);if(n)return{value:parseFloat(n[1]),unit:n[2]||""}}return{value:0,unit:""}}function f(t){return g.has(t)?"":P.has(t)?"deg":w.has(t)?"px":""}function p(t){return t==="opacity"||t.startsWith("scale")?1:0}function h(t,e){if(!(t instanceof Element)){let n=t;return e in n?n[e]:T(e)}if(y(e))return m(t,e);try{if(typeof window<"u"&&window.getComputedStyle){let r=window.getComputedStyle(t).getPropertyValue(l(e));if(r)return d(r).value}}catch{}return p(e)}function b(t,e,n,r){if(!r||r==="px"||typeof window>"u"||!window.getComputedStyle)return n;let i=t,o=l(e);try{let u=i.style.getPropertyValue(o);i.style.setProperty(o,`100${r}`);let s=window.getComputedStyle(t),a=parseFloat(s.getPropertyValue(o));if(u?i.style.setProperty(o,u):i.style.removeProperty(o),a&&isFinite(a)&&a!==0)return n/a*100}catch{}return n}function C(t,e,n){let r=h(t,e);return t instanceof Element&&n&&n!=="px"?b(t,e,r,n):r}function x(t,e){let n=t,r=l(e);if(y(e)){let i=n.style.transform;c(t),n.style.transform="";let o=m(t,e);return n.style.transform=i,c(t),{value:o,unit:f(e)}}try{if(typeof window<"u"&&window.getComputedStyle){let i=n.style.getPropertyValue(r);n.style.removeProperty(r);let u=window.getComputedStyle(t).getPropertyValue(r);if(i&&n.style.setProperty(r,i),u){let s=d(u);return{value:s.value,unit:s.unit}}}}catch{}return{value:p(e),unit:f(e)}}function T(t){return t.startsWith("scale")?1:0}function l(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}__SDK__.camelToKebab=l;__SDK__.convertPxToUnit=b;__SDK__.getCurrentValue=h;__SDK__.getCurrentValueInUnit=C;__SDK__.getDefaultUnit=f;__SDK__.getOriginalCSSValueWithUnit=x;__SDK__.parseValue=d;
20})();
21(function(){function e(n){return typeof n=="string"?/^[+\-*/]=/.test(n):!1}function o(n){let r=n.match(/^([+\-*/])=/);return r?r[0]:null}function c(n,r,t){switch(t){case"+=":return n+r;case"-=":return n-r;case"*=":return n*r;case"/=":return r!==0?n/r:n;default:return r}}__SDK__.calculateRelativeValue=c;__SDK__.getRelativeOperator=o;__SDK__.isRelativeValue=e;
22})();
23(function(){var l=null,a=null,p=100,s=new Map;function P(t){let r=s.get(t);return r!==void 0&&(s.delete(t),s.set(t,r)),r}function w(t,r){for(s.has(t)&&s.delete(t);s.size>=p;){let e=s.keys().next().value;if(e!==void 0)s.delete(e);else break}s.set(t,r)}function m(t){return/^\s*[Mm]/.test(t)}function y(){if(a)return a;if(typeof document>"u")throw new Error("PathParser requires a browser environment");return l=document.createElementNS("http://www.w3.org/2000/svg","svg"),l.style.cssText="position:absolute;width:0;height:0;overflow:hidden;visibility:hidden;",l.setAttribute("aria-hidden","true"),a=document.createElementNS("http://www.w3.org/2000/svg","path"),l.appendChild(a),document.body.appendChild(l),a}function E(t){if(t instanceof Element)return t.getAttribute("d");if(typeof t=="string"){if(m(t))return t;if(typeof document<"u"){let r=document.querySelector(t);if(r)return r.getAttribute("d")}}return null}function M(t){let r=P(t);if(r!==void 0)return r;try{let e=y();e.setAttribute("d",t);let n=e.getTotalLength();return w(t,n),n}catch{return 0}}function v(){s.clear()}function S(t,r,e=!1){try{let n=y();n.setAttribute("d",t);let i=n.getTotalLength(),o=Math.max(0,Math.min(1,r)),c=i*o,u=n.getPointAtLength(c),f=0;return e&&(f=C(n,c,i)),{x:u.x,y:u.y,angle:f}}catch{return{x:0,y:0,angle:0}}}function C(t,r,e){let n=Math.min(.1,e*.001),i=Math.max(0,r-n),o=Math.min(e,r+n),c=t.getPointAtLength(i),u=t.getPointAtLength(o),f=u.x-c.x,h=u.y-c.y;return Math.atan2(h,f)*(180/Math.PI)}function A(t,r=[50,50]){if(!t)return{x:0,y:0};let e=null;if(t instanceof Element?e=t:typeof t=="string"&&typeof document<"u"&&(e=document.querySelector(t)),!e||typeof e.getBoundingClientRect!="function")return{x:0,y:0};let n=e.getBoundingClientRect(),i=n.width*r[0]/100,o=n.height*r[1]/100;return{x:i,y:o}}function B(t){let r=null;if(t instanceof Element?r=t:typeof t=="string"&&!m(t)&&typeof document<"u"&&(r=document.querySelector(t)),!r)return{x:1,y:1};let e=r;if(typeof e.getScreenCTM=="function"){let n=e.getScreenCTM();if(n){let i=Math.hypot(n.a,n.b),o=Math.hypot(n.c,n.d);if(i>0&&o>0&&isFinite(i)&&isFinite(o))return{x:i,y:o}}}if(typeof e.getBBox=="function"&&typeof e.getBoundingClientRect=="function")try{let n=e.getBBox(),i=e.getBoundingClientRect();if(n.width>0&&n.height>0)return{x:i.width/n.width,y:i.height/n.height}}catch{}return{x:1,y:1}}function T(t,r,e,n={x:1,y:1}){if(!t)return{x:0,y:0};let i=null;if(t instanceof Element?i=t:typeof t=="string"&&typeof document<"u"&&(i=document.querySelector(t)),!i)return{x:0,y:0};let o=S(r,0,!1),c={x:o.x*n.x,y:o.y*n.y};if(e&&e instanceof HTMLElement){let u=e.style.transform,f=u&&u!=="none"&&u!=="";f&&(e.style.transform="none");let h=e.getBoundingClientRect(),d=i.getScreenCTM?.();if(d&&isFinite(d.e)&&isFinite(d.f))return f&&(e.style.transform=u),{x:d.e-h.left,y:d.f-h.top};let g=i.getBoundingClientRect();f&&(e.style.transform=u);let x=g.left+g.width/2-(h.left+h.width/2),b=g.top+g.height/2-(h.top+h.height/2);return{x:x-c.x,y:b-c.y}}return{x:-c.x,y:-c.y}}function L(t,r,e=[50,50]){let n=E(t);if(!n)return null;let i=M(n);return i===0?null:{pathData:n,length:i}}function R(){l&&l.parentNode&&l.parentNode.removeChild(l),l=null,a=null,s.clear()}__SDK__.calculateElementOffset=A;__SDK__.calculatePathAlignOffset=T;__SDK__.cleanupPathParser=R;__SDK__.clearPathLengthCache=v;__SDK__.getPathLength=M;__SDK__.getPointAtProgress=S;__SDK__.isPathData=m;__SDK__.parsePath=L;
23__SDK__.resolvePathData=E;__SDK__.resolvePathScreenScale=B;
24})();
25(function(){const{SDKRegistry: C}=__SDK__;const{resolvePathData: z, getPathLength: K, calculateElementOffset: N, calculatePathAlignOffset: $, resolvePathScreenScale: B}=__SDK__;const{AUTO_PROPS: L}=__SDK__;const{looksLikeColor: w, isTransformProp: G, isCSSVariable: O, isColorProp: R, isFilterProp: k, isDrawSVGProp: I, isClipPathProp: U, isPathProp: V}=__SDK__;const{parseValue: f, getCurrentValue: W, getCurrentValueInUnit: b, getDefaultUnit: S, camelToKebab: H}=__SDK__;const{isRelativeValue: j, getRelativeOperator: q, calculateRelativeValue: J}=__SDK__;function F(t){return typeof t=="string"&&t.trim().toLowerCase()==="auto"}function Q(t,e){if(!L.has(e))return 0;let s=t,r=H(e);try{let n=s.style.getPropertyValue(r);s.style.setProperty(r,"auto");let i=e==="width"?s.offsetWidth:s.offsetHeight;return n?s.style.setProperty(r,n):s.style.removeProperty(r),i}catch{return 0}}function x(t){return typeof t=="string"&&/(?:^|[^a-z])(var|calc|clamp|min|max|env)\s*\(/i.test(t)}function X(t){return!R(t)&&!k(t)&&!I(t)&&!U(t)&&!V(t)&&!G(t)}var Y="letter-spacing";function T(t,e,s){if(typeof window>"u"||!window.getComputedStyle)return null;let r=t,n=O(e)?Y:H(e);try{let i=r.style.getPropertyValue(n),u=r.style.getPropertyPriority(n);r.style.setProperty(n,s);let l=window.getComputedStyle(t).getPropertyValue(n);i?r.style.setProperty(n,i,u):r.style.removeProperty(n);let a=parseFloat(l);return isFinite(a)?a:null}catch{return null}}function Z(t,e,s,r){let n=C.color;if(!n)return null;let i=String(s),u=i===""?n.getCurrentColor(t,e):n.parseColor(i,t),l=r!==void 0?n.parseColor(String(r),t):n.getCurrentColor(t,e);return{type:"color",property:e,isTransform:!1,startColor:l||new Float32Array([0,0,0,1]),endColor:u||new Float32Array([0,0,0,1])}}function tt(t,e,s,r){let n=C.filter;if(!n)return null;let i=String(s),u=i===""?n.getCurrentFilter(t):n.parseFilter(i),l=r!==void 0?n.parseFilter(String(r)):n.getCurrentFilter(t);l=l||[],u=u||[];let a=n.mergeFilterArrays(l,u);return{type:"filter",property:e,isTransform:!1,startFilters:a.start,endFilters:a.end}}function et(t,e,s,r){if(w(s)||r!==void 0&&w(r)){let a=C.color;if(a){let c=String(s),P=a.parseColor(c,t),d=r!==void 0?a.parseColor(String(r),t):nt(t,e);return{type:"color",property:e,isTransform:!1,startColor:d||new Float32Array([0,0,0,1]),endColor:P||new Float32Array([0,0,0,1])}}}let i,u,l;if(r!==void 0&&s!==void 0){let a=f(r),c=f(s);i=a.value,u=c.value,l=c.unit||a.unit}else if(r!==void 0){let a=f(r);i=a.value,u=E(t,e),l=a.unit}else{let a=f(s);i=E(t,e),u=a.value,l=a.unit}return{type:"scalar",property:e,isTransform:!1,startValue:i,endValue:u,unit:l}}function nt(t,e){let s=C.color;if(!s)return null;try{if(typeof window<"u"&&window.getComputedStyle){let n=window.getComputedStyle(t).getPropertyValue(e).trim();if(n)return s.parseColor(n,t)}}catch{}return null}function E(t,e){try{if(typeof window<"u"&&window.getComputedStyle){let r=window.getComputedStyle(t).getPropertyValue(e).trim();if(r)return f(r).value}}catch{}return 0}function rt(t,e,s,r){let n=C.drawSVG;if(!n)return null;let i=n.getPathLength(t),u=n.parseDrawSVG(s,t)||{start:0,end:1},l=r!==void 0?n.parseDrawSVG(r,t)||{start:0,end:1}:n.getCurrentDrawSVG(t);return{type:"drawSVG",property:e,isTransform:!1,startDraw:l,endDraw:u,length:i}}function m(t,e="%"){return{value:0,unit:t?.unit||e}}function A(t){switch(t.shape){case"inset":return{shape:"inset",components:[m(t.components[0]),m(t.components[1]),m(t.components[2]),m(t.components[3]),...t.components.slice(4)],extras:t.extras};case"circle":return{shape:"circle",components:[{value:150,unit:"%"},t.components[1]??{value:50,unit:"%"},t.components[2]??{value:50,unit:"%"}],extras:t.extras};case"ellipse":return{shape:"ellipse",components:[{value:150,unit:"%"},{value:150,unit:"%"},t.components[2]??{value:50,unit:"%"},t.components[3]??{value:50,unit:"%"}],extras:t.extras};case"rect":return{shape:"rect",components:[m(t.components[0]),{value:100,unit:t.components[1]?.unit||"%"},{value:100,unit:t.components[2]?.unit||"%"},m(t.components[3]),...t.components.slice(4)],extras:t.extras};case"xywh":return{shape:"xywh",components:[m(t.components[0]),m(t.components[1]),{value:100,unit:t.components[2]?.unit||"%"},{value:100,unit:t.components[3]?.unit||"%"},...t.components.slice(4)],extras:t.extras};default:return t}}function st(t,e,s,r){let n=C.clipPath;if(!n)return null;let i;s===void 0||s===""?i=n.getCurrentClipPath(t):i=n.parseClipPath(String(s));let u;r!==void 0?u=n.parseClipPath(String(r)):u=n.getCurrentClipPath(t);let l=u,a=i;return!l&&!a?null:(l||(l=A(a)),a||(a=A(l)),{type:"clipPath",property:e,isTransform:!1,startClipPath:l,endClipPath:a})}function ot(t,e,s,r){let n=s,i=r,u=n?.target?n:i;if(!u?.target)return null;let l=z(u.target);if(!l)return null;let a=K(l);if(a===0)return null;
25let c,P;n?.target&&i?.target?(c=i.start??0,P=n.end??1):n?.target?(c=n.start??0,P=n.end??1):(c=i.start??0,P=i.end??1);let d=n?.rotate??i?.rotate??!1,g=n?.alignAt??i?.alignAt??[50,50],v=N(t,g),o=n?.align??i?.align,p=o?B(u.target):{x:1,y:1},y=$(o,l,t,p);return{type:"path",property:e,isTransform:!1,pathData:l,pathLength:a,startProgress:c,endProgress:P,rotate:d,alignOffset:v,pathOffset:y,pathScale:p}}function D(t,e,s,r){let n=t instanceof Element;if(n&&X(e)){let o=x(s)&&!w(s),p=r!==void 0&&x(r)&&!w(r);if(o||p){let y=o?T(t,e,s):null,h=p?T(t,e,r):null;if(y!==null||h!==null){let M=y!==null?`${y}px`:s,_=h!==null?`${h}px`:r;return D(t,e,M,_)}}}if(n&&O(e))return et(t,e,s,r);if(n&&R(e)){let o=Z(t,e,s,r);if(o)return o}if(n&&k(e)){let o=tt(t,e,s,r);if(o)return o}if(n&&I(e)){let o=rt(t,e,s,r);if(o)return o}if(n&&U(e)){let o=st(t,e,s,r);if(o)return o}if(n&&V(e)){let o=ot(t,e,s,r);if(o)return o}let i=F(s),u=r!==void 0&&F(r);if(n&&(i||u)&&L.has(e)){let o=Q(t,e);return D(t,e,i?o:s,u?o:r)}let l=G(e),a=r===void 0&&j(s),c,P,d,g,v;if(r!==void 0){let o=f(r);if(s!==void 0){let p=f(s);c=o.value,P=p.value,d=p.unit||o.unit||S(e);let y=o.unit||d,h=p.unit||d;!l&&y!==h&&(g=y,v=h)}else c=o.value,d=o.unit||S(e),P=b(t,e,d)}else if(a){let o=q(s),p=W(t,e),y=f(s);c=p,P=J(p,y.value,o),d=y.unit||S(e)}else{let o=f(s);d=o.unit||S(e),c=b(t,e,d),P=o.value}return{type:"scalar",property:e,isTransform:l,startValue:c,endValue:P,unit:d,startUnit:g,endUnit:v}}__SDK__.parseProperty=D;
26})();
27(function(){const{isTransformProp: t, isColorProp: o, isFilterProp: a, isDrawSVGProp: i, isPathProp: l, isClipPathProp: p, isCSSVariable: s, looksLikeColor: P}=__SDK__;const{parseValue: n, getDefaultUnit: V, getCurrentValue: f, convertPxToUnit: m, getCurrentValueInUnit: C, getOriginalCSSValueWithUnit: g, camelToKebab: x}=__SDK__;const{isRelativeValue: S, getRelativeOperator: c, calculateRelativeValue: v}=__SDK__;const{parseProperty: b}=__SDK__;__SDK__.calculateRelativeValue=v;__SDK__.camelToKebab=x;__SDK__.convertPxToUnit=m;__SDK__.getCurrentValue=f;__SDK__.getCurrentValueInUnit=C;__SDK__.getDefaultUnit=V;__SDK__.getOriginalCSSValueWithUnit=g;__SDK__.getRelativeOperator=c;__SDK__.isCSSVariable=s;__SDK__.isClipPathProp=p;__SDK__.isColorProp=o;__SDK__.isDrawSVGProp=i;__SDK__.isFilterProp=a;__SDK__.isPathProp=l;__SDK__.isRelativeValue=S;__SDK__.isTransformProp=t;__SDK__.looksLikeColor=P;__SDK__.parseProperty=b;__SDK__.parseValue=n;
28})();
29(function(){const{setTransformValue: h, buildTransformString: d}=__SDK__;const{queueTransform: g, queueStyle: a}=__SDK__;const{isTransformProp: p, isCSSVariable: P, camelToKebab: y}=__SDK__;const{isInTick: u}=__SDK__;const{SDKRegistry: S}=__SDK__;var f=null,m=null;function T(e,t,n,l,i){if(i<=0)return`${e}${t}`;if(i>=1)return`${n}${l}`;let o=e*(1-i),r=n*i,s=r<0?"-":"+";return`calc(${o}${t} ${s} ${Math.abs(r)}${l})`}function F(e,t,n,l){let i=e;if(!i.style)return;let o=u();if(p(t))h(e,t,n,l),o?g(e):i.style.transform=d(e);else{let r=l?`${n}${l}`:`${n}`;if(o)a(e,t,r);else try{P(t)?i.style.setProperty(t,r):t in i.style?i.style[t]=r:i.style.setProperty(y(t),r)}catch{}}}function x(e,t,n,l,i,o,r){let s=e;if(!s.style)return;let c=T(n,l,i,o,r);if(u())a(e,t,c);else try{P(t)?s.style.setProperty(t,c):t in s.style?s.style[t]=c:s.style.setProperty(y(t),c)}catch{}}function V(e,t,n,l,i,o){let r=e;if(!r.style)return;let s=o===1?`rgb(${Math.round(n)}, ${Math.round(l)}, ${Math.round(i)})`:`rgba(${Math.round(n)}, ${Math.round(l)}, ${Math.round(i)}, ${o})`;if(u())a(e,t,s);else try{P(t)?r.style.setProperty(t,s):t in r.style?r.style[t]=s:r.style.setProperty(y(t),s)}catch{}}function D(e,t){let n=window.getComputedStyle(e),l=y(t);return n.getPropertyValue(l)}function R(e,t,n,l){let i=e;if(i.style&&(f||(f=S.filter))){let o=f.interpolateFilters(t,n,l),r=f.filterToString(o);u()?a(e,"filter",r):i.style.filter=r}}function H(e,t,n,l,i){let o=e;if(o.style&&(m||(m=S.clipPath))){let r=m.interpolateClipPaths(n,l,i),s=m.clipPathToString(r);u()?(a(e,"clip-path",s),a(e,"-webkit-clip-path",s)):(o.style.setProperty("clip-path",s),o.style.setProperty("-webkit-clip-path",s))}}__SDK__.getCSSProperty=D;
29__SDK__.setCSSClipPathProperty=H;__SDK__.setCSSColorProperty=V;__SDK__.setCSSFilterProperty=R;__SDK__.setCSSMixedUnitProperty=x;__SDK__.setCSSProperty=F;
30})();
31(function(){const{setTransformValue: i, buildTransformString: P}=__SDK__;const{queueTransform: g}=__SDK__;const{isInTick: T}=__SDK__;function M(n,o,r){let{pathLUT:t,alignOffset:m,pathOffset:l,pathRotate:p}=r;if(!t||t.length===0)return;let h=o*(t.length-1),a=Math.floor(h),u=Math.min(a+1,t.length-1),f=h-a,e=t[a],s=t[u],c=e.x+(s.x-e.x)*f,x=e.y+(s.y-e.y)*f,b=(l?.x??0)+c-(m?.x??0),y=(l?.y??0)+x-(m?.y??0);if(i(n,"x",b,"px"),i(n,"y",y,"px"),p){let d=I(e.angle,s.angle,f);i(n,"rotate",d,"deg")}T()?g(n):n.style.transform=P(n)}function I(n,o,r){let t=o-n;return t>180&&(t-=360),t<-180&&(t+=360),n+t*r}__SDK__.renderPath=M;
32})();
33(function(){var F=Object.defineProperty;var U=(a,t,e)=>t in a?F(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var i=(a,t,e)=>U(a,typeof t!="symbol"?t+"":t,e);const{setCSSProperty: L, setCSSColorProperty: D, setCSSFilterProperty: A, setCSSClipPathProperty: V, setCSSMixedUnitProperty: _}=__SDK__;const{clearTransformCache: v}=__SDK__;const{SDKRegistry: x}=__SDK__;const{getPointAtProgress: M}=__SDK__;const{renderPath: G}=__SDK__;var y=null,O=100,R=500,I=.5,m=[],H=50;function X(a){for(let t=0;t<m.length;t++)if(m[t].length>=a){let e=m.splice(t,1)[0];return e.length=a,e}return new Array(a)}function K(a){m.length<H&&m.push(a)}var C=class{constructor(){i(this,"target",null);i(this,"property","");i(this,"startValue",0);i(this,"endValue",0);i(this,"change",0);i(this,"unit","");i(this,"startUnit",null);i(this,"endUnit",null);i(this,"next",null);i(this,"valueType","scalar");i(this,"startColor",null);i(this,"endColor",null);i(this,"changeColor",new Float32Array(4));i(this,"startFilters",null);i(this,"endFilters",null);i(this,"startDraw",null);i(this,"endDraw",null);i(this,"pathLength",0);i(this,"startClipPath",null);i(this,"endClipPath",null);i(this,"pathData",null);i(this,"motionPathLength",0);i(this,"startProgress",0);i(this,"endProgress",0);i(this,"pathRotate",!1);i(this,"alignOffset",null);i(this,"pathOffset",null);i(this,"pathLUT",null);i(this,"_isElement",!1)}init(t,e,s,n,r="",u,p){return this.target=t,this.property=e,this.startValue=s,this.endValue=n,this.change=n-s,this.unit=r,this.startUnit=u??null,this.endUnit=p??null,this.valueType="scalar",this._isElement=t instanceof Element,this}initColor(t,e,s,n){return this.target=t,this.property=e,this.valueType="color",this.startColor=s,this.endColor=n,this.changeColor[0]=n[0]-s[0],this.changeColor[1]=n[1]-s[1],this.changeColor[2]=n[2]-s[2],this.changeColor[3]=n[3]-s[3],this._isElement=t instanceof Element,this}initFilter(t,e,s,n){return this.target=t,this.property=e,this.valueType="filter",this.startFilters=s,this.endFilters=n,this._isElement=t instanceof Element,this}initClipPath(t,e,s,n){return this.target=t,this.property=e,this.valueType="clipPath",this.startClipPath=s,this.endClipPath=n,this._isElement=t instanceof Element,this}initDrawSVG(t,e,s,n,r){return this.target=t,this.property=e,this.valueType="drawSVG",this.startDraw=s,this.endDraw=n,this.pathLength=r,this._isElement=t instanceof Element,this}initPath(t,e,s,n,r,u,p,E,S,d={x:1,y:1}){t instanceof Element&&v(t,!0),this.target=t,this.property=e,this.valueType="path",this.pathData=s,this.motionPathLength=n,this.startProgress=r,this.endProgress=u,this.pathRotate=p,this.alignOffset=E,this.pathOffset=S,this._isElement=t instanceof Element;let b=Math.abs(u-r),w=n*b,P=Math.min(R,Math.max(O,Math.ceil(w*I))),f=d?.x??1,g=d?.y??1,T=f!==1||g!==1;this.pathLUT=X(P+1);for(let h=0;h<=P;h++){let l=h/P,c=r+(u-r)*l,o=M(s,c,p);T&&(o.x*=f,o.y*=g),this.pathLUT[h]=o}if(p&&T&&f!==g){let h=this.pathLUT.length-1;for(let l=0;l<=h;l++){let c=this.pathLUT[Math.max(0,l-1)],o=this.pathLUT[Math.min(h,l+1)];this.pathLUT[l].angle=Math.atan2(o.y-c.y,o.x-c.x)*(180/Math.PI)}}return this}render(t){if(this.target)if(this.valueType==="color"&&this.startColor){let e=this.startColor[0]+this.changeColor[0]*t,s=this.startColor[1]+this.changeColor[1]*t,n=this.startColor[2]+this.changeColor[2]*t,r=this.startColor[3]+this.changeColor[3]*t;this._isElement&&D(this.target,this.property,e,s,n,r)}else if(this.valueType==="filter"&&this.startFilters&&this.endFilters)this._isElement&&A(this.target,this.startFilters,this.endFilters,t);else if(this.valueType==="clipPath"&&this.startClipPath&&this.endClipPath)this._isElement&&V(this.target,this.property,this.startClipPath,this.endClipPath,t);else if(this.valueType==="drawSVG"&&this.startDraw&&this.endDraw){if(this._isElement&&this.pathLength>0){let e=this.startDraw.start+(this.endDraw.start-this.startDraw.start)*t,s=this.startDraw.end+(this.endDraw.end-this.startDraw.end)*t;(y||(y=x.drawSVG))&&y.applyDrawSVG(this.target,e,s,this.pathLength)}}else if(this.valueType==="path"&&this.pathLUT&&this.pathLUT.length>0)this._isElement&&G(this.target,t,{pathLUT:this.pathLUT,alignOffset:this.alignOffset??{x:0,y:0},pathOffset:this.pathOffset??{x:0,y:0},pathRotate:this.pathRotate});else{let e=this.startValue+this.change*t;this._isElement?this.startUnit&&this.endUnit&&this.startUnit!==this.endUnit?_(this.target,this.property,this.startValue,this.startUnit,this.endValue,this.endUnit,t):L(this.target,this.property,e,this.unit):this.target[this.property]=e}}reset(){this.target=null,this.property="",this.startValue=0,this.endValue=0,this.change=0,this.unit="",this.startUnit=null,this.endUnit=null,this.next=null,this.valueType="scalar",this.startColor=null,this.endColor=null,this.startFilters=null,this.endFilters=null,this.startDraw=null,this.endDraw=null,this.pathLength=0,this.startClipPath=null,this.endClipPath=null,this.pathData=null,this.motionPathLength=0,this.startProgress=0,this.endProgress=0,this.pathRotate=!1,this.alignOffset=null,this.pathOffset=null,this.pathLUT&&K(this.pathLUT),this.pathLUT=null,this._isElement=!1}};__SDK__.PropTween=C;
34})();
35(function(){var a=Object.defineProperty;var l=(t,e,r)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var o=(t,e,r)=>l(t,typeof e!="symbol"?e+"":e,r);var i=class{constructor(e,r){o(this,"pool",[]);o(this,"totalCreated",0);o(this,"factory");o(this,"maxSize");this.factory=e,this.maxSize=r}acquire(){return this.pool.length>0?this.pool.pop():(this.totalCreated++,this.factory())}release(e){e.reset(),(this.maxSize===void 0||this.pool.length<this.maxSize)&&this.pool.push(e)}getPoolSize(){return this.pool.length}getTotalCreated(){return this.totalCreated}clear(){this.pool=[]}};__SDK__.ObjectPool=i;
36})();
37(function(){const{PropTween: r}=__SDK__;const{ObjectPool: t}=__SDK__;var e=new t(()=>new r,500),P={acquire:()=>e.acquire(),release:o=>e.release(o),getPoolSize:()=>e.getPoolSize(),getTotalCreated:()=>e.getTotalCreated(),clear:()=>e.clear()};__SDK__.PropTweenPool=P;
38})();
39(function(){var w=Object.defineProperty;var P=(g,t,l)=>t in g?w(g,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):g[t]=l;var i=(g,t,l)=>P(g,typeof t!="symbol"?t+"":t,l);const{resolveTargets: F}=__SDK__;const{PropTweenPool: j}=__SDK__;const{clearTransformCache: C}=__SDK__;const{SDKRegistry: m}=__SDK__;const{isColorProp: A, isFilterProp: v, isTransformProp: U, getCurrentValueInUnit: O, isCSSVariable: V, parseValue: c, getDefaultUnit: R}=__SDK__;var k={x:0,y:0,z:0,rotate:0,rotateX:0,rotateY:0,rotateZ:0,scale:1,scaleX:1,scaleY:1,scaleZ:1,skewX:0,skewY:0,opacity:1},_=class _{constructor(t,l){i(this,"_targets");i(this,"_originalTargets");i(this,"_fromVars");i(this,"_toVars");i(this,"_setVars");i(this,"_duration",.5);i(this,"_delay",0);i(this,"_ease","power1.out");i(this,"_animation",null);i(this,"_animations",[]);i(this,"_built",!1);i(this,"_splitType");i(this,"_mask");i(this,"_repeat");i(this,"_repeatDelay");i(this,"_yoyo");i(this,"_stagger");i(this,"_axis");i(this,"_fitConfig");i(this,"_flapConfig");i(this,"_onStart");i(this,"_onUpdate");i(this,"_onComplete");i(this,"_onRepeat");i(this,"_onReverseComplete");i(this,"_skipInitialFromRender",!1);i(this,"_plainObjectInitialValues",new Map);i(this,"_expectedAnimationIds",[]);i(this,"_propsToAnimate",[]);this._targets=F(t),this._originalTargets=this._targets,l&&this._applyAnimationConfig(l)}static setCreateAnimationCallback(t){_._createAnimationCallback=t}_applyAnimationConfig(t){t.from&&(this._fromVars=t.from),t.to&&(this._toVars=t.to),t.set&&(this._setVars=t.set),t.duration!==void 0&&(typeof t.duration!="number"||!isFinite(t.duration)||t.duration<0?console.warn(`[Motion] Invalid duration: ${t.duration}. Must be a finite number >= 0. Using default.`):this._duration=t.duration),t.delay!==void 0&&(typeof t.delay!="number"||isNaN(t.delay)?console.warn(`[Motion] Invalid delay: ${t.delay}. Must be a number. Using default 0.`):isFinite(t.delay)?this._delay=t.delay:console.warn(`[Motion] Invalid delay: ${t.delay}. Infinity is not a valid delay. Using default 0.`)),t.ease&&(this._ease=t.ease),t.split&&(this._splitType=t.split),t.mask&&(this._mask=t.mask),t.stagger!==void 0&&(this._stagger=t.stagger),t.axis&&(this._axis=t.axis),t.fit&&(this._fitConfig=t.fit),t.flap&&(this._flapConfig=t.flap,this._splitType?this._splitType.includes("chars")||(this._splitType="chars,"+this._splitType):this._splitType="chars",this._stagger===void 0&&(this._stagger={each:0,from:"start"})),t.repeat&&(typeof t.repeat=="number"?this._repeat=t.repeat:(this._repeat=t.repeat.times,this._repeatDelay=t.repeat.delay,this._yoyo=t.repeat.yoyo)),t.onStart&&(this._onStart=t.onStart),t.onUpdate&&(this._onUpdate=t.onUpdate),t.onComplete&&(this._onComplete=t.onComplete),t.onRepeat&&(this._onRepeat=t.onRepeat),t.onReverseComplete&&(this._onReverseComplete=t.onReverseComplete)}_capturePlainObjectValues(t){for(let l of this._targets){if(l instanceof Element)continue;let r=l,f={};for(let d of t)d in r&&typeof r[d]=="number"&&(f[d]=r[d]);Object.keys(f).length>0&&this._plainObjectInitialValues.set(l,f)}}_restorePlainObjectValues(){for(let[t,l]of this._plainObjectInitialValues){let r=t;for(let[f,d]of Object.entries(l))r[f]=d}}_ensureBuilt(){this._built||this._build()}_isInvalidated(){return this._animations.length===0?!1:this._animations.some((t,l)=>{let r=t.getId(),f=this._expectedAnimationIds[l];return r===0||r!==f})}rebuildIfPooled(){if(this._isInvalidated()){this._restorePlainObjectValues();for(let t of this._targets)t instanceof Element&&(C(t),m.styleReset?.clearAnimationStylesForProps?.(t,this._propsToAnimate));this._resetBuildState(),this._ensureBuilt()}}_build(){if(this._built||this._targets.length===0||!this._fromVars&&!this._toVars&&!this._setVars&&!this._fitConfig&&this._duration<=0)return;if(this._fitConfig){if(!m.fit){console.warn("[Motion] FitResolver not loaded. Did you import the SDK?");return}if(this._built=!0,!_._createAnimationCallback)throw new Error("AnimationBuilder: Engine not initialized. Call Engine.init() first.");let e={};this._repeat!==void 0&&(e.repeat=this._repeat),this._repeatDelay!==void 0&&(e.repeatDelay=this._repeatDelay),this._yoyo&&(e.yoyo=this._yoyo),this._onStart&&(e.onStart=this._onStart),this._onUpdate&&(e.onUpdate=this._onUpdate),this._onComplete&&(e.onComplete=this._onComplete),this._onRepeat&&(e.onRepeat=this._onRepeat),this._onReverseComplete&&(e.onReverseComplete=this._onReverseComplete),this._stagger!==void 0&&(e.stagger=this._stagger);let s=[];for(let o of this._targets){if(!(o instanceof Element))continue;let p=_._createAnimationCallback([o],{},this._duration,this._delay,this._ease,!1,void 0,e);Array.isArray(p)?s.push(...p):s.push(p)}let n=this._fitConfig;for(let o of s)for(let p of o.getTargets())p instanceof Element&&m.fit.registerPendingSetup(o,p,n,j);this._animation=s[0]??null,this._animations=s,this._expectedAnimationIds=s.map(o=>o.getId());return}this._built=!0,this._setVars&&Object.keys(this._setVars).length>0&&this._toVars&&!this._fromVars&&(this._fromVars={...this._setVars},this._setVars=void 0);let t={},l=!1,r;if(this._fromVars&&this._toVars){t={...this._toVars},r={...this._fromVars},l=!0;for(let e of Object.keys(r))if(!(e in t))if(e in k)t[e]=k[e];else if(A(e))t[e]="";else if(v(e))t[e]="";else{let s=r[e];if(s==null)continue;let o=c(s).unit||R(e),p;for(let h of this._targets)if(h instanceof Element){if(V(e))try{let u=window.getComputedStyle(h).getPropertyValue(e).trim();u&&(p=c(u).value)}catch{}else p=O(h,e,o);break}let a=p??0;t[e]=o?`${a}${o}`:`${a}`}}else this._fromVars?(t={...this._fromVars},l=!0):this._toVars&&(t={...this._toVars});if(this._splitType&&m.textSplitter?.split){let e={mask:!!this._mask,consumer:this},s=[];for(let n of this._originalTargets)if(n instanceof Element){let o=m.textSplitter?.split(n,this._splitType,e);s.push(...o)}s.length>0&&(this._targets=s)}let f,d;if(this._flapConfig&&m.textFlapper?.prepare&&_._createAnimationCallback){if(r&&Object.keys(r).length>0){let s=[];for(let n of Object.keys(r)){let o=r[n],p=t[n];if(o===void 0||p===void 0||A(n)||v(n)||V(n)||n==="drawSVG"||n==="path"||n==="clip-path"||n==="clipPath")continue;let a=c(o),h=c(p),y=a.unit||h.unit||R(n);s.push({prop:n,from:a.value,to:h.value,unit:y,isTransform:U(n)})}s.length>0&&(d=s)}let e=this._targets.filter(s=>s instanceof HTMLElement);if(e.length>0){let s=this._repeat!==void 0&&this._repeat!==0,n=m.textFlapper.prepare(e,this._flapConfig,s,d),o=this._stagger&&m.stagger?m.stagger.resolve(e,this._stagger):void 0;f=[];let p=0;for(let a=0;a<e.length;a++){let h=e[a].textContent??"";if(h===""||h===" "||h==="\xA0"||h===`
40`||h==="	")continue;if(p>=n.length)break;let u=n[p],S=o?o[a]:0,b=_._createAnimationCallback([u.el],{},this._duration,S,this._ease??"power1.out",!1,void 0,{onUpdate:u.render,onComplete:u.finalize,repeat:s?Math.ceil(60/this._duration):0,_skipInitialRender:this._skipInitialFromRender||void 0}),x=Array.isArray(b)?b:[b];f.push(...x),p++}}}if(f?.length&&this._flapConfig){let e=this._flapConfig.type??"flip",s=new Set(d?.map(a=>a.prop)??[]),n=a=>
40{if(s.has(a))return!0;switch(e){case"fade":return a==="opacity";case"blur":return v(a);default:return!1}},o=[];for(let a of Object.keys(t))n(a)&&(o.push(a),delete t[a]);if(r)for(let a of Object.keys(r))n(a)&&!o.includes(a)&&(o.push(a),delete r[a]);let p=o.filter(a=>!s.has(a));p.length>0&&console.warn(`[Motion.page] Flap type '${e}' owns '${p.join(", ")}' \u2014 user-defined values for these properties were removed. Use a different flap type to avoid this conflict.`)}if(this._propsToAnimate=Object.keys(t),r)for(let e of Object.keys(r))this._propsToAnimate.includes(e)||this._propsToAnimate.push(e);if(this._plainObjectInitialValues.size===0&&this._capturePlainObjectValues(this._propsToAnimate),l)for(let e of this._targets)e instanceof Element&&(C(e),m.styleReset?.clearAnimationStylesForProps?.(e,this._propsToAnimate));if(m.styleReset?.registerAnimatedProps)for(let e of this._targets)e instanceof Element&&m.styleReset?.registerAnimatedProps(e,this._propsToAnimate);let I={repeat:this._repeat,repeatDelay:this._repeatDelay,yoyo:this._yoyo,stagger:this._stagger,onStart:this._onStart,onUpdate:this._onUpdate,onComplete:this._onComplete,onRepeat:this._onRepeat,onReverseComplete:this._onReverseComplete,_skipInitialRender:this._skipInitialFromRender||void 0};if(!_._createAnimationCallback)throw new Error("AnimationBuilder: Engine not initialized. Call AnimationBuilder.setCreateAnimationCallback first.");if(Object.keys(t).length>0||r&&Object.keys(r).length>0||!f?.length){let e=_._createAnimationCallback(this._targets,t,this._duration,this._delay,this._ease,l,r,I);Array.isArray(e)?(this._animations=e,this._animation=e[0]||null):(this._animation=e,this._animations=[e])}if(f&&f.length>0&&(this._animations.push(...f),this._animation||(this._animation=f[0])),this._expectedAnimationIds=this._animations.map(e=>e.getId()),this._setVars&&Object.keys(this._setVars).length>0&&_._createAnimationCallback){let e=_._createAnimationCallback(this._targets,{...this._setVars},0,0,"none",!1,void 0,{_skipInitialRender:this._skipInitialFromRender||void 0}),s=Array.isArray(e)?e:[e];this._animations=[...s,...this._animations],this._expectedAnimationIds=this._animations.map(n=>n.getId())}}getAnimation(){return this._ensureBuilt(),this._animation}getAnimations(){return this._ensureBuilt(),this._animations}getTargets(){return this._targets}getOriginalTargets(){return this._originalTargets}hasSplit(){return!!this._splitType}hasFlap(){return!!this._flapConfig}_resetBuildState(){this._built=!1,this._animations=[],this._animation=null,this._expectedAnimationIds=[]}getConfig(){return{fromVars:this._fromVars?{...this._fromVars}:void 0,toVars:this._toVars?{...this._toVars}:void 0,setVars:this._setVars?{...this._setVars}:void 0,duration:this._duration,delay:this._delay,ease:this._ease,axis:this._axis,fit:this._fitConfig?{...this._fitConfig}:void 0,flap:this._flapConfig?{...this._flapConfig}:void 0,split:this._splitType,mask:this._mask,stagger:this._stagger,repeat:this._repeat,repeatDelay:this._repeatDelay,yoyo:this._yoyo,onStart:this._onStart,onUpdate:this._onUpdate,onComplete:this._onComplete,onRepeat:this._onRepeat,onReverseComplete:this._onReverseComplete}}setAxis(t){this._axis=t}getAxis(){return this._axis}setSkipInitialFromRender(t){this._skipInitialFromRender=t}};i(_,"_createAnimationCallback",null);var T=_;__SDK__.AnimationBuilder=T;
41})();
42(function(){var a=class{static parse(s,e,n,f){if(s===void 0)return e;if(typeof s=="number")return s;let t=s.trim();if(t==="<")return n;if(t===">")return f;if(t.startsWith("<")){let r=parseFloat(t.substring(1));if(!isNaN(r))return n+r}if(t.startsWith(">")){let r=parseFloat(t.substring(1));if(!isNaN(r))return f+r}if(t.startsWith("+=")){let r=parseFloat(t.substring(2));return e+r}if(t.startsWith("-=")){let r=parseFloat(t.substring(2));return e-r}return console.warn(`Invalid position parameter: "${t}", using current end`),e}};__SDK__.PositionParser=a;
43})();
44(function(){var k=Object.defineProperty;var D=(C,e,s)=>e in C?k(C,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):C[e]=s;var c=(C,e,s)=>D(C,typeof e!="symbol"?e+"":e,s);const{AnimationBuilder: T}=__SDK__;const{PositionParser: E}=__SDK__;const{SDKRegistry: _}=__SDK__;const{isElement: b}=__SDK__;const{getOriginalCSSValueWithUnit: w, isTransformProp: A, isColorProp: P, isFilterProp: F, isPathProp: V, isDrawSVGProp: M}=__SDK__;const{clearTransformCache: x}=__SDK__;var O=1e-6,p=class p{constructor(e,s){c(this,"_name");c(this,"_children",[]);c(this,"_initialRenderStartTimes",null);c(this,"_duration",0);c(this,"_time",0);c(this,"_progress",0);c(this,"_timeScale",1);c(this,"_isActive",!1);c(this,"_isReversed",!1);c(this,"_killed",!1);c(this,"_atZeroState",!1);c(this,"_repeat",0);c(this,"_repeatDelay",0);c(this,"_yoyo",!1);c(this,"_currentRepeat",0);c(this,"_completeFired",!1);c(this,"_inRepeatDelay",!1);c(this,"_repeatDelayCounter",0);c(this,"_onStart");c(this,"_onUpdate");c(this,"_onComplete");c(this,"_onRepeat");c(this,"_startFired",!1);c(this,"_trigger");c(this,"_unregisterCallback");c(this,"_previousStart",0);c(this,"_previousEnd",0);c(this,"_eachInstances");c(this,"_eachDuration");c(this,"_initialValues",new Map);c(this,"_initialTransforms",new Map);c(this,"_transformElements",new Set);c(this,"_savedTransitions",new Map);c(this,"_transitionsDisabled",!1);c(this,"_splitParentOverrides",new Map);this._name=e,s?.repeat!==void 0&&(typeof s.repeat=="number"?this._repeat=s.repeat:(this._repeat=s.repeat.times,this._repeatDelay=s.repeat.delay??0,this._yoyo=s.repeat.yoyo??!1)),s?.onStart&&(this._onStart=s.onStart),s?.onUpdate&&(this._onUpdate=s.onUpdate),s?.onComplete&&(this._onComplete=s.onComplete),s?.onRepeat&&(this._onRepeat=s.onRepeat),e&&p._registerWithEngine&&p._registerWithEngine(e,this)}static setEngineRegisterCallback(e){p._registerWithEngine=e}static setEngineActivationCallback(e){p._activateEngine=e}setUnregisterCallback(e){this._unregisterCallback=e}_notifyActivated(){p._activateEngine?.()}duration(){return this._eachDuration!==void 0?this._eachDuration:this._duration}totalDuration(){return this._repeat===-1?1/0:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat}clear(){for(let e of this._children)(e.type==="animation"||e.type==="timeline")&&e.child.kill();return this._children=[],this._initialRenderStartTimes=null,this._duration=0,this._time=0,this._progress=0,this._isActive=!1,this._isReversed=!1,this._startFired=!1,this._previousStart=0,this._previousEnd=0,this._initialValues.clear(),this._initialTransforms.clear(),this._transformElements.clear(),this._splitParentOverrides.clear(),this._clearTransitionData(),this._currentRepeat=0,this._completeFired=!1,this._inRepeatDelay=!1,this._repeatDelayCounter=0,this}_captureInitialValues(e){let s=e.getTargets(),i=e.getFirstPropTween();for(;i;){let t=i.property;for(let r of s){if(!(r instanceof Element))continue;let a=this._initialValues.get(r);if(a||(a=new Map,this._initialValues.set(r,a)),!a.has(t)){let n=r;if(A(t)||V(t)){if(this._transformElements.add(r),!this._initialTransforms.has(r)){let o=n.style.transform;this._initialTransforms.set(r,o||null)}a.set(t,{removeInline:!0})}else if(P(t)||F(t))a.set(t,{removeInline:!0});else if(M(t))a.set(t,{removeInline:!0});else{let o=t.replace(/([A-Z])/g,"-$1").toLowerCase();if(n.style.getPropertyValue(o)!==""){let f=w(r,t);a.set(t,{removeInline:!1,value:f.value,unit:f.unit})}else a.set(t,{removeInline:!0})}}}i=i.next}}_restoreInitialValues(){for(let e of this._transformElements){let s=e;x(e);let i=this._initialTransforms.get(e);i?s.style.transform=i:s.style.removeProperty("transform")}for(let[e,s]of this._initialValues){let i=e;for(let[t,r]of s){if(A(t))continue;if(M(t)){i.style.removeProperty("stroke-dasharray"),i.style.removeProperty("stroke-dashoffset");continue}let a=t.replace(/([A-Z])/g,"-$1").toLowerCase();if(r.removeInline)i.style.removeProperty(a);else{let n=`${r.value}${r.unit}`;i.style.setProperty(a,n)}}}}_disableTransitions(){if(!this._transitionsDisabled){for(let e of this._savedTransitions.keys())e.style.transition="none";this._transitionsDisabled=!0}}_restoreTransitions(){if(this._transitionsDisabled){for(let[e,s]of this._savedTransitions)e.style.transition=s;this._transitionsDisabled=!1}}_clearTransitionData(){this._restoreTransitions(),this._savedTransitions.clear(),this._transitionsDisabled=!1}_addEntry(e,s,i){let t=E.parse(i,this._duration,this._previousStart,this._previousEnd),r=new T(e,s);return this._addBuilder(r,t)}_addBuilder(e,s){e.setSkipInitialFromRender(!0);let i=e.getAnimations();if(i.length===0)return this;this._initialRenderStartTimes=null;let t=s;for(let r of i){let a=r.getDelay(),n=s+a;r.clearDelay();let o=r.totalDuration(),h={type:"animation",child:r,builder:e,startTime:n,duration:o};this._children.push(h),r.setTimelineChild(!0),r.pause(),this._captureInitialValues(r);for(let l of r.getTargets())l instanceof HTMLElement&&!this._savedTransitions.has(l)&&this._savedTransitions.set(l,l.style.transition);let f=!!e.getConfig().fromVars;if(n>0&&!f&&r.setLazyStartCapture(!0),e.hasSplit()){for(let l of e.getOriginalTargets())if(l instanceof Element){let u=l;this._splitParentOverrides.has(u)||this._splitParentOverrides.set(u,u.style.opacity),u.style.opacity="1"}}let m=n+o;m>t&&(t=m)}return this._previousStart=s,this._previousEnd=t,t>this._duration&&(this._duration=t),!this._isActive&&this._time===0&&this._renderInitialTimelineState(),this}_getInitialRenderStartTimes(){if(this._initialRenderStartTimes)return this._initialRenderStartTimes;let e=new Map;for(let s of this._children){if(s.type!=="animation")continue;let i=s.child;if(i.isLazyCapture())continue;let t=i.getFirstPropTween();for(;t;){let r=t.target;if(r){let a=e.get(r);a||(a=new Map,e.set(r,a));let n=a.get(t.property);(n===void 0||s.startTime<n)&&a.set(t.property,s.startTime)}t=t.next}}return this._initialRenderStartTimes=e,e}_renderAnimationInitialBoundary(e,s){let i=this._getInitialRenderStartTimes();s.renderAtTime(0,t=>{let r=t.target;if(!r)return!1;let n=i.get(r)?.get(t.property);return n!==void 0&&Math.abs(n-e.startTime)<O})}_renderInitialTimelineState(){this._restoreInitialValues(),this._renderPositionZeroAnimations(),this._atZeroState=!0}call(e,s,i){let t=E.parse(i,this._duration,this._previousStart,this._previousEnd),r={type:"callback",child:e,startTime:t,duration:0,params:s};return this._children.push(r),this._previousStart=t,this._previousEnd=t,t>this._duration&&(this._duration=t),this}_getFirstAnimationTarget(){let e=this._children[0];if(e?.type==="animation"&&e.builder){let i=e.builder,t=i.hasSplit()?i.getOriginalTargets():i.getTargets();for(let r of t)if(b(r))return r}let s=this.getFirstChildAnimation();if(s){let i=s.getTargets();for(let t of i)if(b(t))return t}}_getAllAnimationTargets(){let e=[],s=new Set,i=new Set;for(let t of this._children)if(t.type==="animation"&&t.builder){if(i.has(t.builder))continue;i.add(t.builder);let r=t.builder.hasSplit()?t.builder.getOriginalTargets():t.builder.getTargets();for(let a of r)b(a)&&!s.has(a)&&(s.add(a),e.push(a))}return e}_createInstanceForElement(e,s){let t=`${this._name||"__each"}__each_${s}_${p._eachCounter++}`,r=new p(t),a=new Set;for(let n of this._children)if(n.type==="animation"&&n.builder){if(a.has(n.builder)||(a.add(n.builder),!(n.builder.hasSplit()?n.builder.getOriginalTargets():n.builder.getTargets()).filter(u=>b(u)).includes(e)))continue;let h=n.builder.getConfig(),f=h.repeat!=null?{times:h.repeat,delay:h.repeatDelay,yoyo:h.yoyo}:void 0,m=n.builder.hasSplit(),l=new T(e,{from:h.fromVars,to:h.toVars,set:h.setVars,duration:h.duration,delay:h.delay,ease:h.ease,repeat:f,...m&&h.split?{split:h.split}:{},...m&&h.mask?{mask:h.mask}:{},...m&&h.stagger!==void 0?{stagger:h.stagger}:{},...h.flap?{flap:h.flap}:{},...h.fit?{fit:h.fit}:{},onStart:h.onStart,onUpdate:h.onUpdate,onComplete:h.onComplete,onRepeat:h.onRepeat,onReverseComplete:h.onReverseComplete});h.axis&&l.setAxis(h.axis),r._addBuilder(l,n.startTime)}else n.type==="callback"&&r.call(n.child,n.params,n.startTime);return r}_createInstanceForElements(e,s){let t=`${this._name||"__each"}__each_${s}_${p._eachCounter++}`,r=new p(t),a=new Set;for(let n of this._children)if(n.type==="animation"&&n.builder){if(a.has(n.builder))continue;a.add(n.builder);let o=n.builder.getConfig(),h=(n.builder.hasSplit()?n.builder.getOriginalTargets():n.builder.getTargets()).filter(d=>b(d)),f=e.filter(d=>h.includes(d));if(f.length===0)continue;let m=o.repeat!=null?{times:o.repeat,delay:o.repeatDelay,yoyo:o.yoyo}:void 0,l=n.builder.hasSplit(),u=new T(f,{from:o.fromVars,to:o.toVars,set:o.setVars,duration:o.duration,delay:o.delay,ease:o.ease,repeat:m,...l&&o.split?{split:o.split}:{},...l&&o.mask?{mask:o.mask}:{},...(l||f.length>1)&&o.stagger!==void 0?{stagger:o.stagger}:{},...o.flap?{flap:o.flap}:{},...o.fit?{fit:o.fit}:{}
44,onStart:o.onStart,onUpdate:o.onUpdate,onComplete:o.onComplete,onRepeat:o.onRepeat,onReverseComplete:o.onReverseComplete});o.axis&&u.setAxis(o.axis),r._addBuilder(u,n.startTime)}else n.type==="callback"&&r.call(n.child,n.params,n.startTime);return r}_findScopedTargetsForContainer(e,s,i){let t=s.filter(a=>e.contains(a));if(t.length>0)return t;let r=e.parentElement;if(r){let a=s.filter(n=>n!==e&&r.contains(n)&&!i.some(o=>o!==e&&o.contains(n)));if(a.length>0)return a}return[]}_resolveTargetElements(e){if(typeof e!="string")return[e];if(typeof document<"u")try{return Array.from(document.querySelectorAll(e))}catch(s){console.warn(`[Motion] Invalid selector "${e}":`,s)}return[]}_setupEachModeGeneric(e,s){if(e.length===0)return;this._eachInstances=[];let i=new Set(this._children.filter(t=>t.type==="animation"&&t.builder?.hasSplit()).map(t=>t.builder));if(i.size>0)for(let t of e)for(let r of i)_.textSplitter?.revert?.(t,r);this._clearTransitionData();for(let t=0;t<e.length;t++){let r=e[t],a=this._createInstanceForElement(r,t);s(a,r),this._eachInstances.push(a)}{let t=null,r=this._onUpdate,a=this._onStart,n=this._onComplete;for(let o of this._eachInstances)r&&o.onUpdate((h,f)=>{let m=h>0&&h<1;m&&(t=o),t===o&&(r(h,f),m||(t=null))}),a&&o.onStart(()=>{t=o,a()}),n&&o.onComplete(()=>{t===o&&(t=null,n())})}this._eachDuration=this._duration;for(let t of this._children)if(t.type==="animation"){let r=t.child;r.setTimelineChild(!1),r.kill()}else t.type==="timeline"&&t.child.kill();this._children=[],this._duration=0,this._initialValues.clear(),this._initialTransforms.clear(),this._transformElements.clear(),this._splitParentOverrides.clear(),this._isActive=!1,this._time=0,this._progress=0,this._isReversed=!1,this._startFired=!1}_setupEachMode(e,s){let i=_.triggerManager?.getInstance?.();if(!i)return;let{each:t,...r}=s;if(s.target){let n=this._resolveTargetElements(s.target);if(n.length===0)return;let o=this._getAllAnimationTargets(),h=new Set;for(let l of n){let u=o.filter(g=>l.contains(g));if(u.length>0){for(let g of u)h.add(g);continue}let d=l.parentElement;if(d){let g=o.filter(v=>v!==l&&d.contains(v)&&!n.some(y=>y!==l&&y.contains(v)));for(let v of g)h.add(v)}}if(!o.every(l=>h.has(l))&&e==="scroll"){let l=new Set(this._children.filter(u=>u.type==="animation"&&u.builder?.hasSplit()).map(u=>u.builder));if(l.size>0)for(let u of o)for(let d of l)_.textSplitter?.revert?.(u,d);this._setupEachModeGeneric(o,(u,d)=>{e==="scroll"?i.registerScroll(u,{...r,target:d}):e==="hover"?i.registerHover(u,{...r,target:d}):i.registerClick(u,{...r,target:d})});return}let m=new Set(this._children.filter(l=>l.type==="animation"&&l.builder?.hasSplit()).map(l=>l.builder));if(m.size>0)for(let l of o)for(let u of m)_.textSplitter?.revert?.(l,u);this._clearTransitionData(),this._eachInstances=[];for(let l=0;l<n.length;l++){let u=n[l],d=this._findScopedTargetsForContainer(u,o,n);if(d.length===0)continue;let g=this._createInstanceForElements(d,l);e==="scroll"?i.registerScroll(g,{...r,target:u}):e==="hover"?i.registerHover(g,{...r,target:u}):i.registerClick(g,{...r,target:u}),this._eachInstances.push(g)}{let l=null,u=this._onUpdate,d=this._onStart,g=this._onComplete;for(let v of this._eachInstances)u&&v.onUpdate((y,R)=>{let S=y>0&&y<1;S&&(l=v),l===v&&(u(y,R),S||(l=null))}),d&&v.onStart(()=>{l=v,d()}),g&&v.onComplete(()=>{l===v&&(l=null,g())})}this._eachDuration=this._duration;for(let l of this._children)if(l.type==="animation"){let u=l.child;u.setTimelineChild(!1),u.kill()}else l.type==="timeline"&&l.child.kill();this._children=[],this._duration=0,this._initialValues.clear(),this._initialTransforms.clear(),this._transformElements.clear(),this._splitParentOverrides.clear(),this._isActive=!1,this._time=0,this._progress=0,this._isReversed=!1,this._startFired=!1;return}let a=this._getAllAnimationTargets();this._setupEachModeGeneric(a,(n,o)=>{e==="scroll"?i.registerScroll(n,{...r,target:o}):e==="hover"?i.registerHover(n,{...r,target:o}):i.registerClick(n,{...r,target:o})})}onHover(e){if(e?.each)return this._setupEachMode("hover",e),this;let s=e?.target??this._getFirstAnimationTarget();return _.triggerManager?.getInstance?.().registerHover(this,{target:s,onEnter:e?.onEnter,onLeave:e?.onLeave,leaveDelay:e?.leaveDelay}),this}onClick(e){if(e?.each)return this._setupEachMode("click",e),this;let s=e?.target??this._getFirstAnimationTarget();return _.triggerManager?.getInstance?.().registerClick(this,{target:s,secondTarget:e?.secondTarget,toggle:e?.toggle,preventDefault:e?.preventDefault}),this}onScroll(e){if(e?.each)return this._setupEachMode("scroll",e),this;let s=e?.target??this._getFirstAnimationTarget();return _.triggerManager?.getInstance?.().registerScroll(this,{...e,target:s}),this}onMouseMove(e){return e?.each&&e.target?(this._setupMouseMoveEachMode(e),this):(_.triggerManager?.getInstance?.().registerMouseMove(this,{type:e?.type??"distance",target:e?.target,smooth:e?.smooth,startProgress:e?.startProgress,leaveProgress:e?.leaveProgress}),this)}_setupMouseMoveEachMode(e){if(!e.target)return;let s=[];typeof e.target=="string"?typeof document<"u"&&(s=Array.from(document.querySelectorAll(e.target))):s=[e.target];let i=_.triggerManager?.getInstance?.();i&&this._setupEachModeGeneric(s,(t,r)=>{i.registerMouseMove(t,{type:e.type??"distance",target:r,smooth:e.smooth,startProgress:e.startProgress,leaveProgress:e.leaveProgress})})}onPageLoad(e){return _.triggerManager?.getInstance?.().registerPageLoad(this,e||{}),this}onPageExit(e){return _.triggerManager?.getInstance?.().registerPageExit(this,e||{}),this}onGesture(e){return e.each?(this._setupGestureEachMode(e),this):(_.triggerManager?.getInstance?.().registerGesture(this,e),this)}_setupGestureEachMode(e){let s=[];if(e.target?typeof e.target=="string"?typeof document<"u"&&(s=Array.from(document.querySelectorAll(e.target))):s=[e.target]:s=this._getAllAnimationTargets(),this._setupEachModeGeneric(s,()=>{}),!this._eachInstances||this._eachInstances.length===0)return;let i=_.triggerManager?.getInstance?.();if(i)for(let t=0;t<s.length;t++){let r=s[t],a=this._eachInstances[t];i.registerGesture(a,{...e,target:r,each:!1,_siblings:this._eachInstances,_index:t})}}onCursor(e){return _.triggerManager?.getInstance?.().registerCursor(this,e),this}_updateCallbackChild(e,s,i){let t=e.startTime,r=s<t&&this._time>=t,a=s>t&&this._time<=t,n=Math.abs(this._time-t)<.001;
44if(r||a||n&&i===0){let o=e.child,h=e.params||[];o(...h)}}_updateAnimationChild(e,s){let i=e.child,t=Math.abs(i.getTimeScale())||1,r=i.totalDuration()/t,a=this._time-e.startTime,n=a*t;a>=0&&a<=r?(i.isActive()||(i.captureStartValues(),i.play()),i.renderAtTime(n)):a<0?(i.isLazyCapture()||this._renderAnimationInitialBoundary(e,i),i.isActive()&&(i.pause(),i.fireReverseComplete())):i.isActive()?(i.renderAtTime(i.totalDuration()),i.pause()):s===0&&(i.needsStartCapture()&&i.captureStartValues(),i.renderAtTime(i.totalDuration()))}_updateTimelineChild(e,s){let i=e.child,t=i.duration(),r=this._time-e.startTime;r>=0&&r<=t?(i.isActive()||i.play(),i.time(r)):i.isActive()?r<0?(i.time(0),i.pause()):(i.time(t),i.pause()):s===0&&(r<0||i.time(t))}update(e){if(this._eachInstances){for(let t of this._eachInstances)t.update(e);return}let s=this._time;if(!(!this._isActive&&e===0)){if(!this._isActive)return}let i=e*this._timeScale;if(this._inRepeatDelay&&e>0){if(this._repeatDelayCounter-=i,this._repeatDelayCounter>0)return;if(this._inRepeatDelay=!1,this._repeatDelayCounter=0,this._isReversed){this._time=this._duration;for(let t of this._children)t.type==="animation"&&t.child.resetForReplay()}else this._time=0,this._startFired=!1,this._resetChildrenForCycle()}else if(!this._inRepeatDelay&&(this._time+=this._isReversed?-i:i,e>0)){if(!this._isReversed&&this._time>=this._duration&&this._repeat!==0){if(this._repeat===-1||this._currentRepeat<this._repeat){this._time=this._duration,this._currentRepeat++;try{this._onRepeat?.(this._currentRepeat)}catch(r){console.error("[Motion] onRepeat callback error:",r)}if(this._yoyo){this._isReversed=!0;for(let r of this._children)r.type==="animation"&&r.child.resetForReplay()}else{let r=this._time-this._duration;this._time=Math.max(0,r),this._startFired=!1,this._resetChildrenForCycle()}this._repeatDelay>0&&(this._inRepeatDelay=!0,this._repeatDelayCounter=this._repeatDelay)}}else if(this._isReversed&&this._time<=0&&this._yoyo&&this._repeat!==0&&(this._repeat===-1||this._currentRepeat<this._repeat)){this._time=0,this._currentRepeat++;try{this._onRepeat?.(this._currentRepeat)}catch(r){console.error("[Motion] onRepeat callback error:",r)}this._isReversed=!1,this._startFired=!1,this._resetChildrenForCycle(),this._repeatDelay>0&&(this._inRepeatDelay=!0,this._repeatDelayCounter=this._repeatDelay)}}this._time<0?this._time=0:this._time>this._duration&&(this._time=this._duration),this._progress=this._duration>0?this._time/this._duration:0,!this._startFired&&this._isActive&&this._time>0&&(this._startFired=!0,this._disableTransitions(),this._onStart?.()),this._isActive&&this._onUpdate?.(this._progress,this._time);for(let t of this._children)t.type==="callback"?this._updateCallbackChild(t,s,e):t.type==="animation"?this._updateAnimationChild(t,e):t.type==="timeline"&&this._updateTimelineChild(t,e);if(!this._completeFired){let t=!this._isReversed&&this._time>=this._duration,r=this._isReversed&&this._time<=0,a=this._repeat!==-1&&this._currentRepeat>=this._repeat;t&&(this._repeat===0||a)?(this._completeFired=!0,this._isActive=!1,this._startFired=!1,this._restoreTransitions(),this._onComplete?.()):r&&(this._repeat===0||this._yoyo&&a)&&(this._completeFired=!0,this._isActive=!1,this._startFired=!1,this._restoreTransitions(),this._onComplete?.())}}play(e){if(this._killed)return console.warn("[Motion] Cannot play a killed timeline. Create a new one with Motion(name)."),this;if(this._eachInstances){for(let s of this._eachInstances)s.play(e);return this}if(e!==void 0)this._time=e,this._progress=this._duration>0?this._time/this._duration:0,e===0&&(this._currentRepeat=0,this._inRepeatDelay=!1,this._repeatDelayCounter=0);else if(this._time>=this._duration&&!this._isReversed)return this;return this._completeFired=!1,this._isReversed=!1,this._isActive=!0,this._atZeroState=!1,this._notifyActivated(),this}pause(e){if(this._killed)return console.warn("[Motion] Cannot pause a killed timeline. Create a new one with Motion(name)."),this;if(this._eachInstances){for(let s of this._eachInstances)s.pause(e);return this}e!==void 0&&(this._time=e,this._progress=this._duration>0?this._time/this._duration:0),this._isActive=!1;for(let s of this._children)if(s.type!=="callback"){let i=s.child;"pause"in i&&i.pause()}return this}reverse(e){if(this._killed)return console.warn("[Motion] Cannot reverse a killed timeline. Create a new one with Motion(name)."),this;if(this._eachInstances){for(let s of this._eachInstances)s.reverse(e);return this}if(e!==void 0)this._time=e,this._progress=this._duration>0?this._time/this._duration:0;else if(this._time<=0&&this._isReversed)return this;return this._completeFired=!1,this._inRepeatDelay=!1,this._repeatDelayCounter=0,this._isReversed=!0,this._isActive=!0,this._atZeroState=!1,this._notifyActivated(),this}
44restart(){if(this._killed)return console.warn("[Motion] Cannot restart a killed timeline. Create a new one with Motion(name)."),this;if(this._eachInstances){for(let e of this._eachInstances)e.restart();return this}this._time=0,this._progress=0,this._isActive=!0,this._isReversed=!1,this._startFired=!1,this._atZeroState=!1,this._currentRepeat=0,this._completeFired=!1,this._inRepeatDelay=!1,this._repeatDelayCounter=0;for(let e of this._children)e.type==="animation"&&e.child.resetForReplay();return this._restoreInitialValues(),this._renderPositionZeroAnimations(),this._notifyActivated(),this}_resetChildrenForCycle(){for(let e of this._children)e.type==="animation"&&e.child.resetForReplay();this._restoreInitialValues(),this._renderPositionZeroAnimations()}_renderPositionZeroAnimations(){for(let e of this._children)if(e.type==="animation"){let s=e.child;s.isLazyCapture()||this._renderAnimationInitialBoundary(e,s),s.isActive()&&s.pause()}else e.type==="timeline"&&e.child.progress(0)}seek(e){if(this._killed)return console.warn("[Motion] Cannot seek a killed timeline. Create a new one with Motion(name)."),this;if(this._eachInstances){for(let s of this._eachInstances)s.seek(e);return this}if(this._time=Math.max(0,Math.min(e,this._duration)),this._progress=this._duration>0?this._time/this._duration:0,this._atZeroState=!1,this._repeat!==0)for(let s of this._children)s.type==="animation"&&s.child.resetForReplay();return this.update(0),this}setAxisProgress(e,s){let i=Math.max(0,Math.min(1,s));for(let t of this._children)if(t.type==="animation"&&t.builder&&t.builder.getConfig().axis===e){let a=t.child,n=a.totalDuration();a.isActive()||(a.captureStartValues(),a.play()),a.renderAtTime(i*n)}return this}onStart(e){return this._onStart=e,this}onUpdate(e){return this._onUpdate=e,this}onComplete(e){return this._onComplete=e,this}onRepeat(e){return this._onRepeat=e,this}withRepeat(e){return typeof e=="number"?(this._repeat=e,this._repeatDelay=0,this._yoyo=!1):(this._repeat=e.times,this._repeatDelay=e.delay??0,this._yoyo=e.yoyo??!1),this}progress(e){if(e===void 0){if(this._eachInstances&&this._eachInstances.length>0){let i=0;for(let t of this._eachInstances){let r=t.progress();r>i&&(i=r)}return i}return this._progress}if(this._eachInstances){for(let i of this._eachInstances)i.progress(e);return this}let s=Math.max(0,Math.min(1,e));if(!this._transitionsDisabled&&this._savedTransitions.size>0&&this._disableTransitions(),s===0)for(let i of this._children)i.type==="animation"&&i.child.resetForReplay();return this._time=s*this._duration,this._progress=s,s===0?this._atZeroState||(this._restoreInitialValues(),this._renderPositionZeroAnimations(),this._atZeroState=!0):(this._atZeroState=!1,this.update(0)),this._onUpdate?.(this._progress,this._time),this}time(e){if(e===void 0){if(this._eachInstances&&this._eachInstances.length>0){let s=0;for(let i of this._eachInstances){let t=i.time();t>s&&(s=t)}return s}return this._time}if(this._eachInstances){for(let s of this._eachInstances)s.time(e);return this}return this._time=Math.max(0,Math.min(e,this._duration)),this._progress=this._duration>0?this._time/this._duration:0,this._atZeroState=this._time===0?this._atZeroState:!1,this.update(0),this}timeScale(e){return e===void 0?this._timeScale:(this._timeScale=e,this)}kill(e=!0){if(this._killed=!0,this._isActive=!1,this._atZeroState=!1,_.triggerManager?.getInstance?.().unregister(this),this._eachInstances){for(let i of this._eachInstances)i.kill(e);this._eachInstances=void 0}if(this._clearTransitionData(),e&&(this._initialValues.size>0||this._transformElements.size>0)&&this._restoreInitialValues(),e&&this._splitParentOverrides.size>0){for(let[i,t]of this._splitParentOverrides)t?i.style.opacity=t:i.style.removeProperty("opacity");this._splitParentOverrides.clear()}let s=new Set(this._children.filter(i=>i.type==="animation"&&i.builder?.hasSplit()).map(i=>i.builder));if(s.size>0)for(let i of s)for(let t of i.getOriginalTargets())t instanceof Element&&_.textSplitter?.revert?.(t,i);for(let i of this._children)if(i.type==="animation"){let t=i.child;t.setTimelineChild(!1),t.kill()}else i.type==="timeline"&&i.child.kill(e);this._unregisterCallback&&(this._unregisterCallback(),this._unregisterCallback=void 0),this._children=[],this._initialValues.clear(),this._initialTransforms.clear(),this._transformElements.clear(),this._savedTransitions.clear(),this._splitParentOverrides.clear(),this._transitionsDisabled=!1,this._duration=0,this._time=0,this._progress=0,this._previousStart=0,this._previousEnd=0,this._isReversed=!1,this._startFired=!1,this._currentRepeat=0,this._completeFired=!1,this._inRepeatDelay=!1,this._repeatDelayCounter=0}isActive(){return this._eachInstances?this._eachInstances.some(e=>e.isActive()):this._isActive}reversed(){return this._eachInstances?this._eachInstances.some(e=>e.reversed()):this._isReversed}getName(){return this._name}getFirstChildAnimation(){let e=this._children[0];return e?.type==="animation"?e.child:null}getFirstChildBuilder(){let e=this._children[0];return e?.type==="animation"&&e.builder?e.builder:null}};c(p,"_eachCounter",0),c(p,"_registerWithEngine",null),c(p,"_activateEngine",null);var I=p;__SDK__.Timeline=I;
45})();
46(function(){var y=Object.defineProperty;var T=(l,e,t)=>e in l?y(l,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[e]=t;var r=(l,e,t)=>T(l,typeof e!="symbol"?e+"":e,t);const{PropTweenPool: c}=__SDK__;const{getEasing: F}=__SDK__;const{getCurrentValue: R, isColorProp: S, isFilterProp: P, isClipPathProp: w}=__SDK__;const{SDKRegistry: u}=__SDK__;var b=class{constructor(){r(this,"_id",0);r(this,"_targets",[]);r(this,"_duration",.5);r(this,"_delay",0);r(this,"_time",0);r(this,"_progress",0);r(this,"_timeScale",1);r(this,"_isActive",!1);r(this,"_isReversed",!1);r(this,"_propTweens",null);r(this,"_lastPropTween",null);r(this,"_easingFn",null);r(this,"_repeat",0);r(this,"_repeatDelay",0);r(this,"_yoyo",!1);r(this,"_currentRepeat",0);r(this,"_onStart");r(this,"_onUpdate");r(this,"_onComplete");r(this,"_onRepeat");r(this,"_onReverseComplete");r(this,"_startFired",!1);r(this,"_completeFired",!1);r(this,"_timelineChild",!1);r(this,"_needsStartCapture",!1);r(this,"_startCaptured",!1);r(this,"_fitSetupFn",null);r(this,"_pendingFitSetup",null);r(this,"_fitCleanupFn",null);r(this,"_unregisterCallback",null);r(this,"_activationCallback",null)}init(e,t,s,i,n,o){return this._id=e,this._targets=t,this._duration=s,this._delay=i,this._easingFn=F(n),this._time=0,this._progress=0,this._timeScale=1,this._isActive=!1,this._isReversed=!1,this._startFired=!1,this._completeFired=!1,this._currentRepeat=0,this._repeat=o?.repeat??0,this._repeatDelay=o?.repeatDelay??0,this._yoyo=o?.yoyo??!1,this._onStart=o?.onStart,this._onUpdate=o?.onUpdate,this._onComplete=o?.onComplete,this._onRepeat=o?.onRepeat,this._onReverseComplete=o?.onReverseComplete,this}update(e){if(!this._isActive)return;let t=e*this._timeScale;if(this._time+=this._isReversed?-t:t,!this._isReversed&&this._time<0){this._time=0;return}let s=Math.max(0,this._time-this._delay);this._progress=this._duration>0?Math.min(1,s/this._duration):1,!this._startFired&&this._progress>0&&(this._startFired=!0,this._onStart?.()),this.render(this._progress),this._onUpdate?.(this._progress),this._isReversed?this._time<=0&&this.handleComplete():this._progress>=1&&this.handleComplete()}render(e,t){let s=this.applyEasing(e),i=this._propTweens;for(;i;)(!t||t(i))&&i.render(s),i=i.next}renderAtTime(e,t){let s=Math.max(0,e),i=this._duration,n=this._delay,o=this._currentRepeat;if(i===0){let a=s>=n?1:0;this._time=s,this._progress=a,this.render(a,t)}else{let a=Math.max(0,s-n);if(this._repeat===0){let p=Math.min(1,a/i);this._time=Math.min(i,a),this._progress=p,this.render(p,t)}else{let p=this._repeatDelay,d=i+p,C=this._repeat===-1?1/0:i*(this._repeat+1)+p*this._repeat,v=this._repeat===-1?a:Math.min(a,C),_=d>0?Math.floor(v/d):0,f=v-_*d,g=f>i,h=i>0?Math.min(1,f/i):1,m=this._yoyo&&_%2===1;g?h=m?0:1:m&&(h=1-h),this._currentRepeat=this._repeat===-1?_:Math.min(_,this._repeat),this._isReversed=m,this._progress=h,this._time=i*h,this.render(h,t)}}if(this._isActive){if(!this._startFired){this._startFired=!0;try{this._onStart?.()}catch(a){console.error("[Motion] onStart callback error:",a)}}try{this._onUpdate?.(this._progress)}catch(a){console.error("[Motion] onUpdate callback error:",a)}if(this._currentRepeat>o)try{this._onRepeat?.(this._currentRepeat)}catch(a){console.error("[Motion] onRepeat callback error:",a)}if(!this._completeFired&&this._repeat!==-1&&s>=this.totalDuration()){this._completeFired=!0;try{this._onComplete?.()}catch(a){console.error("[Motion] onComplete callback error:",a)}}}}applyEasing(e){return this._easingFn?this._easingFn(e):e}handleComplete(){if(this._repeat===-1||this._currentRepeat<this._repeat){this._currentRepeat++,this._onRepeat?.(this._currentRepeat),this._yoyo?(this._isReversed=!this._isReversed,this._time=this._isReversed?this._duration+this._delay:0):(this._time=0,this._startFired=!1),this._time-=this._repeatDelay;return}this._isReversed?this._onReverseComplete?.():this._onComplete?.(),this._isActive=!1}play(e){return e!==void 0?(this.seek(e),this._isActive=!0,this._isReversed=!1,this._activationCallback?.(),this):this._isActive&&!this._isReversed?this:(this._isActive=!0,this._isReversed=!1,this._activationCallback?.(),this)}pause(e){if(e!==void 0){this._time=e;let t=Math.max(0,this._time-this._delay);this._progress=this._duration>0?Math.min(1,t/this._duration):1,this.render(this._progress)}return this._isActive=!1,this}reverse(e){return e!==void 0&&this.seek(e),this._isActive=!0,this._isReversed=!0,this._activationCallback?.(),this}restart(e=!0){return this._time=e?0:this._delay,this._progress=0,this._isActive=!0,this._isReversed=!1,this._startFired=!1,this._currentRepeat=0,this.render(0),this._activationCallback?.(),this}seek(e){this._time=e;let t=Math.max(0,this._time-this._delay);return this._progress=this._duration>0?Math.min(1,t/this._duration):1,this.render(this._progress),this}progress(e){return e===void 0?this._progress:(this._progress=Math.max(0,Math.min(1,e)),this._progress===0?this._time=0:this._time=this._progress*this._duration+this._delay,this.render(this._progress),this)}time(e){if(e===void 0)return this._time;this._time=e;let t=Math.max(0,this._time-this._delay);return this._progress=this._duration>0?Math.min(1,t/this._duration):1,this.render(this._progress),this}timeScale(e){return e===void 0?this._timeScale:(this._timeScale=e,this)}getTimeScale(){return this._timeScale}kill(){this._isActive=!1,this._unregisterCallback?.()}isActive(){return this._isActive}isTimelineChild(){return this._timelineChild}setTimelineChild(e){this._timelineChild=e}setLazyStartCapture(e){this._needsStartCapture=e,this._startCaptured=!1}setPendingFitSetup(e){this._fitSetupFn=e,this._pendingFitSetup=e}setFitCleanup(e){this._fitCleanupFn=e}resetForReplay(){this._fitSetupFn&&(this._fitCleanupFn?.(),this._pendingFitSetup=this._fitSetupFn,this._startCaptured=!1),this._startFired=!1,this._completeFired=!1}needsStartCapture(){return this._needsStartCapture&&!this._startCaptured}isLazyCapture(){return this._needsStartCapture}fireReverseComplete(){try{this._onReverseComplete?.()}catch(e){console.error("[Motion] onReverseComplete callback error:",e)}this._startFired=!1,this._completeFired=!1}setUnregisterCallback(e){this._unregisterCallback=e}setActivationCallback(e){this._activationCallback=e}captureStartValues(){if(!this._needsStartCapture||this._startCaptured)return;
46if(this._pendingFitSetup){let t=this._propTweens;for(;t;){let s=t.next;c.release(t),t=s}this._propTweens=null,this._lastPropTween=null,this._pendingFitSetup(c),this._pendingFitSetup=null,this._startCaptured=!0;return}let e=this._propTweens;for(;e;){if(e.target instanceof Element){let t=e.target,s=e.property;if(e.valueType==="color"&&S(s)){let i=u.color?.getCurrentColor(t,s);i&&e.endColor&&(e.startColor=i,e.changeColor=new Float32Array([e.endColor[0]-i[0],e.endColor[1]-i[1],e.endColor[2]-i[2],e.endColor[3]-i[3]]))}else if(e.valueType==="filter"&&P(s)){let i=u.filter?.getCurrentFilter(t);if(i&&e.endFilters){let n=u.filter.mergeFilterArrays(i,e.endFilters);e.startFilters=n.start,e.endFilters=n.end}}else if(e.valueType==="clipPath"&&w(s)){let i=u.clipPath;if(i&&e.endClipPath){let n=i.getCurrentClipPath(t);n&&i.canInterpolate(n,e.endClipPath)&&(e.startClipPath=n)}}else{let i=R(t,s);e.startValue=i,e.change=e.endValue-e.startValue}}e=e.next}this._startCaptured=!0}getId(){return this._id}getTargets(){return this._targets}getDuration(){return this._duration}getDelay(){return this._delay}clearDelay(){this._delay=0}getFirstPropTween(){return this._propTweens}addPropTween(e){this._lastPropTween?this._lastPropTween.next=e:this._propTweens=e,this._lastPropTween=e}totalDuration(){if(this._repeat===-1)return 1/0;let t=this._duration*(this._repeat+1)+this._repeatDelay*this._repeat;return this._delay+t}reset(){this._id=0,this._targets=[],this._duration=.5,this._delay=0,this._time=0,this._progress=0,this._timeScale=1,this._isActive=!1,this._isReversed=!1,this._easingFn=null,this._repeat=0,this._repeatDelay=0,this._yoyo=!1,this._currentRepeat=0,this._onStart=void 0,this._onUpdate=void 0,this._onComplete=void 0,this._onRepeat=void 0,this._onReverseComplete=void 0,this._startFired=!1,this._completeFired=!1,this._timelineChild=!1,this._needsStartCapture=!1,this._startCaptured=!1,this._fitSetupFn=null,this._pendingFitSetup=null,this._fitCleanupFn=null,this._unregisterCallback=null,this._activationCallback=null;let e=c,t=this._propTweens;for(;t;){let s=t.next;e.release(t),t=s}this._propTweens=null,this._lastPropTween=null}};__SDK__.Animation=b;
47})();
48(function(){const{Animation: t}=__SDK__;const{ObjectPool: i}=__SDK__;var o=new i(()=>new t,100),r={acquire:()=>o.acquire(),release:e=>o.release(e),getPoolSize:()=>o.getPoolSize(),getTotalCreated:()=>o.getTotalCreated(),clear:()=>o.clear()};__SDK__.AnimationPool=r;
49})();
50(function(){var R=Object.defineProperty;var z=(a,e,t)=>e in a?R(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var d=(a,e,t)=>z(a,typeof e!="symbol"?e+"":e,t);const{Ticker: X}=__SDK__;const{Timeline: v}=__SDK__;const{AnimationBuilder: Y}=__SDK__;const{AnimationPool: D}=__SDK__;const{PropTweenPool: F}=__SDK__;const{parseProperty: U}=__SDK__;const{setTransformValue: E, buildTransformString: Z}=__SDK__;const{SDKRegistry: I}=__SDK__;const{cleanupPathParser: K}=__SDK__;var b=class b{constructor(){d(this,"animations",[]);d(this,"animationIdToIndex",new Map);d(this,"nextAnimationId",1);d(this,"totalCreated",0);d(this,"_animationSnapshot",[]);d(this,"timelines",new Map);d(this,"_captureTarget",null);d(this,"ticker");d(this,"_tickerSubscribed",!1);d(this,"animationPool");d(this,"propTweenPool");d(this,"update",e=>{let t=this._animationSnapshot,s=this.animations.length;t.length=s;for(let i=0;i<s;i++)t[i]=this.animations[i];let r=[];for(let i=0,c=t.length;i<c;i++){let l=t[i];l.isTimelineChild()||l.isActive()&&(l.update(e),!l.isActive()&&!l.isTimelineChild()&&r.push(l.getId()))}for(let i of r)this.unregisterAnimation(i);for(let i of this.timelines.values())i.isActive()&&i.update(e);this._releaseTickerIfIdle()});this.ticker=X.getInstance(),this.animationPool=D,this.propTweenPool=F}static getInstance(){return b.instance||(b.instance=new b,v.setEngineRegisterCallback((e,t)=>{let s=b.instance;s.hasTimeline(e)||s.registerTimeline(e,t)}),v.setEngineActivationCallback(()=>{b.instance._ensureTickerSubscription()}),Y.setCreateAnimationCallback((e,t,s,r,i,c,l,p)=>b.instance.createAnimation(e,t,s,r,i,c,l,p))),b.instance}_ensureTickerSubscription(){this._tickerSubscribed||(this.ticker.add(this.update,0),this._tickerSubscribed=!0)}_hasActiveWork(){for(let e=0,t=this.animations.length;e<t;e++){let s=this.animations[e];if(!s.isTimelineChild()&&s.isActive())return!0}for(let e of this.timelines.values())if(e.isActive())return!0;return!1}_releaseTickerIfIdle(){!this._tickerSubscribed||this._hasActiveWork()||(this.ticker.remove(this.update),this._tickerSubscribed=!1)}createAnimation(e,t,s,r,i,c,l,p){let n=p?.stagger;if(n&&e.length>1)return this.createStaggeredAnimations(e,t,s,r,i,c,l,n,p);let T=this.animationPool.acquire(),P=this.registerAnimation(T);return T.init(P,e,s,r,i,p),this.setupPropertyTweens(T,e,t,c,l),s===0?T.render(1):c&&!p?._skipInitialRender&&T.render(0),T}
50createStaggeredAnimations(e,t,s,r,i,c,l,p,n){if(!I.stagger){let u=this.animationPool.acquire(),A=this.registerAnimation(u);return u.init(A,e,s,r,i,n),this.setupPropertyTweens(u,e,t,c,l),s===0?u.render(1):c&&!n?._skipInitialRender&&u.render(0),[u]}let T=I.stagger.resolve(e,p),P=[];for(let u=0;u<e.length;u++){let A=e[u],f=T[u],m=this.animationPool.acquire(),y=this.registerAnimation(m);m.init(y,[A],s,r+f,i,n),this.setupPropertyTweens(m,[A],t,c,l),s===0?m.render(1):c&&!n?._skipInitialRender&&m.render(0),P.push(m)}return P}setupPropertyTweens(e,t,s,r,i){let c=V(S(s)),l=i?V(S(i)):void 0,p=Object.keys(c),n=l?Object.keys(l):[],T=[...new Set([...p,...n])],P="perspective"in c,u=l&&"perspective"in l,A=P&&u;for(let f of t){if(!A&&(P||u)&&f instanceof Element){let m=P?c.perspective:l.perspective,y=typeof m=="number"?m:parseFloat(String(m))||0;y>0&&(E(f,"perspective",y,"px"),f.style.transform=Z(f))}for(let m of T){if(m==="perspective"&&!A)continue;let y=c[m],o=U(f,m,y,l?l[m]:void 0),w=this.propTweenPool.acquire(),h=r&&!i;switch(o.type){case"color":{let g=h?o.endColor:o.startColor,k=h?o.startColor:o.endColor;w.initColor(f,m,g,k);break}case"filter":{let g=h?o.endFilters:o.startFilters,k=h?o.startFilters:o.endFilters;w.initFilter(f,m,g,k);break}case"clipPath":{let g=h?o.endClipPath:o.startClipPath,k=h?o.startClipPath:o.endClipPath;w.initClipPath(f,m,g,k);break}case"scalar":{let g=h?o.endValue:o.startValue,k=h?o.startValue:o.endValue,x=h?o.endUnit:o.startUnit,_=h?o.startUnit:o.endUnit;w.init(f,m,g,k,o.unit,x,_);break}case"drawSVG":{let g=h?o.endDraw:o.startDraw,k=h?o.startDraw:o.endDraw;w.initDrawSVG(f,m,g,k,o.length);break}case"path":{let g=h?o.endProgress:o.startProgress,k=h?o.startProgress:o.endProgress;w.initPath(f,m,o.pathData,o.pathLength,g,k,o.rotate,o.alignOffset,o.pathOffset,o.pathScale);break}}e.addPropTween(w)}}}registerAnimation(e){let t=this.nextAnimationId++,s=this.animations.length;return this.animations.push(e),this.animationIdToIndex.set(t,s),this.totalCreated++,e.setUnregisterCallback(()=>this.unregisterAnimation(t)),e.setActivationCallback(()=>this._ensureTickerSubscription()),t}unregisterAnimation(e){let t=this.animationIdToIndex.get(e);if(t===void 0)return;let s=this.animations[t],r=this.animations.length-1;if(t!==r){let i=this.animations[r];this.animations[t]=i,this.animationIdToIndex.set(i.getId(),t)}this.animations.pop(),this.animationIdToIndex.delete(e),this.animationPool.release(s),this._releaseTickerIfIdle()}getAnimation(e){let t=this.animationIdToIndex.get(e);return t!==void 0?this.animations[t]:void 0}killAll(){let e=[...this.animations];for(let t=0,s=e.length;t<s;t++)e[t].kill();this.animations.length=0,this.animationIdToIndex.clear(),this._releaseTickerIfIdle()}killAnimationsForTargets(e){if(e.length===0)return;let t=new Set(e),s=[];for(let r=0,i=this.animations.length;r<i;r++){let c=this.animations[r],l=c.getTargets();for(let p of l)if(p instanceof Element&&t.has(p)){s.push(c);break}}for(let r of s)r.kill()}getActiveCount(){let e=0;for(let t=0,s=this.animations.length;t<s;t++)this.animations[t].isActive()&&e++;return e}getTotalCreated(){return this.totalCreated}getTimeline(e){this._captureTarget&&this._captureTarget.add(e);let t=this.timelines.get(e);return t||(t=new v(e),this.timelines.has(e)||(this.timelines.set(e,t),t.setUnregisterCallback(()=>this.removeTimeline(e)))),t}startCapture(e){this._captureTarget=e}stopCapture(){this._captureTarget=null}hasTimeline(e){return this.timelines.has(e)}registerTimeline(e,t){this.timelines.set(e,t),t.setUnregisterCallback(()=>this.removeTimeline(e))}getTimelineCount(){return this.timelines.size}getTimelineNames(){return Array.from(this.timelines.keys())}removeTimeline(e){this.timelines.delete(e),this._releaseTickerIfIdle()}killAllTimelines(){for(let e of this.timelines.values())e.kill();this.timelines.clear(),this._releaseTickerIfIdle()}killEverything(){this.killAllTimelines(),this.killAll(),K()}getAnimationPool(){return this.animationPool}getPropTweenPool(){return this.propTweenPool}getPoolStats(){return{animations:this.animationPool.getPoolSize(),propTweens:this.propTweenPool.getPoolSize()}}clearPools(){this.animationPool.clear(),this.propTweenPool.clear()}getMemoryEstimate(){let e=this.animations.length,t=this.animationPool.getPoolSize(),s=this.propTweenPool.getPoolSize();return(e+t)*500+s*100}getTicker(){return this.ticker}};d(b,"instance");var C=b;function S(a){if(!("transform"in a))return a;let e=a.transform;if(typeof e!="string")return a;let t=/([a-zA-Z0-9]+)\(([^)]+)\)/g,s,r={},i=!1;for(;(s=t.exec(e))!==null;){let l=s[1],n=s[2].match(/[-+]?\d*\.?\d+(?:e[-+]?\d+)?[a-z%]*/gi)||[];switch(l){case"perspective":{"perspective"in a||(r.perspective=n[0]||"0px",i=!0);break}case"translate":{n[0]&&!("x"in a)&&(r.x=n[0],i=!0),n[1]&&!("y"in a)&&(r.y=n[1],i=!0);break}case"translate3d":{n[0]&&!("x"in a)&&(r.x=n[0],i=!0),n[1]&&!("y"in a)&&(r.y=n[1],i=!0),n[2]&&!("z"in a)&&(r.z=n[2],i=!0);break}
50case"translateX":{n[0]&&!("x"in a)&&(r.x=n[0],i=!0);break}case"translateY":{n[0]&&!("y"in a)&&(r.y=n[0],i=!0);break}case"translateZ":{n[0]&&!("z"in a)&&(r.z=n[0],i=!0);break}case"rotate":{n[0]&&!("rotate"in a)&&(r.rotate=n[0],i=!0);break}case"rotateX":{n[0]&&!("rotateX"in a)&&(r.rotateX=n[0],i=!0);break}case"rotateY":{n[0]&&!("rotateY"in a)&&(r.rotateY=n[0],i=!0);break}case"rotateZ":{n[0]&&!("rotateZ"in a)&&(r.rotateZ=n[0],i=!0);break}case"scale":{n[0]&&!("scale"in a)&&(r.scale=parseFloat(n[0]),i=!0);break}case"scaleX":{n[0]&&!("scaleX"in a)&&(r.scaleX=parseFloat(n[0]),i=!0);break}case"scaleY":{n[0]&&!("scaleY"in a)&&(r.scaleY=parseFloat(n[0]),i=!0);break}case"scaleZ":{n[0]&&!("scaleZ"in a)&&(r.scaleZ=parseFloat(n[0]),i=!0);break}case"skew":{n[0]&&!("skewX"in a)&&(r.skewX=n[0],i=!0),n[1]&&!("skewY"in a)&&(r.skewY=n[1],i=!0);break}case"skewX":{n[0]&&!("skewX"in a)&&(r.skewX=n[0],i=!0);break}case"skewY":{n[0]&&!("skewY"in a)&&(r.skewY=n[0],i=!0);break}default:break}}if(!i)return a;let c={...r};for(let[l,p]of Object.entries(a))l!=="transform"&&(c[l]=p);return c}function V(a){let e=!1;for(let s of Object.keys(a))if(s.includes("-")&&!s.startsWith("--")){e=!0;break}if(!e)return a;let t={};for(let[s,r]of Object.entries(a))if(s.includes("-")&&!s.startsWith("--")){let i=s.replace(/-([a-z])/g,(c,l)=>l.toUpperCase());t[i]=r}else t[s]=r;return t}__SDK__.Engine=C;
51})();
52(function(){var a=Object.defineProperty;var o=(r,e,t)=>e in r?a(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var i=(r,e,t)=>o(r,typeof e!="symbol"?e+"":e,t);const{Engine: s}=__SDK__;var n=class{constructor(e){i(this,"_fn");i(this,"_timelineNames",new Set);i(this,"_reverted",!1);this._fn=e,this._execute()}revert(){if(this._reverted)return;let e=s.getInstance();for(let t of this._timelineNames)e.hasTimeline(t)&&e.getTimeline(t).kill();typeof document<"u"&&(document.querySelectorAll("[data-scrolltrigger-spacer]").forEach(t=>t.remove()),document.querySelectorAll("[data-scrolltrigger-markers]").forEach(t=>t.remove())),this._timelineNames.clear(),this._reverted=!0}refresh(){this.revert(),this._reverted=!1,this._execute()}add(e){this._reverted=!1,this._execute(e)}getTimelineNames(){return Array.from(this._timelineNames)}_execute(e){let t=s.getInstance();t.startCapture(this._timelineNames);try{(e||this._fn)()}finally{t.stopCapture()}}};__SDK__.MotionContext=n;
53})();
54(function(){function a(n,u){if(typeof n=="string"){let e=u||(typeof document<"u"?document:null);if(!e)return[];try{return Array.from(e.querySelectorAll(n))}catch{return[]}}return typeof Element<"u"&&n instanceof Element?[n]:typeof NodeList<"u"&&n instanceof NodeList||typeof HTMLCollection<"u"&&n instanceof HTMLCollection?Array.from(n):Array.isArray(n)?n:n&&typeof n=="object"&&"length"in n?Array.from(n):[]}function f(n,u,e){return e===void 0?r=>Math.min(u,Math.max(n,r)):Math.min(u,Math.max(n,e))}function c(n,u,e){let r=n+Math.random()*(u-n);return e&&e>0?Math.round(r/e)*e:r}function l(n,u){let e=r=>{if(typeof n=="number")return n<=0?r:Math.round(r/n)*n;let m=n,t=m[0],o=Math.abs(r-t);for(let b=1;b<m.length;b++){let i=Math.abs(r-m[b]);i<o&&(o=i,t=m[b])}return t};return u===void 0?e:e(u)}function p(n,u,e){return n+(u-n)*e}function s(n,u,e,r,m){let t=o=>{let b=(o-n)/(u-n);return e+b*(r-e)};return m===void 0?t:t(m)}function x(n,u,e){let r=m=>(m-n)/(u-n);return e===void 0?r:r(e)}function d(n,u,e){let r=u-n,m=t=>((t-n)%r+r)%r+n;return e===void 0?m:m(e)}var M={toArray:a,clamp:f,random:c,snap:l,interpolate:p,mapRange:s,normalize:x,wrap:d};__SDK__.MotionUtils=M;__SDK__.clamp=f;__SDK__.interpolate=p;__SDK__.mapRange=s;__SDK__.normalize=x;__SDK__.random=c;__SDK__.snap=l;__SDK__.toArray=a;__SDK__.wrap=d;
55})();
56(function(){const{Timeline: c}=__SDK__;const{Engine: r}=__SDK__;const{MotionContext: f}=__SDK__;const{resolveTargets: g}=__SDK__;const{clearTransformCache: u}=__SDK__;const{SDKRegistry: a}=__SDK__;const{MotionUtils: m}=__SDK__;function i(n,e,o){let s=r.getInstance().getTimeline(n);if(e!==void 0&&s.duration()>0&&console.warn(`[Motion] Timeline "${n}" already has animations. New entries will be appended. Call Motion("${n}").kill() first to rebuild from scratch.`),Array.isArray(e)&&e.length>0&&typeof e[0]=="object"&&e[0]!==null&&"target"in e[0])for(let l of e)s._addEntry(l.target,l,l.position);else e!==void 0&&o!==void 0&&s._addEntry(e,o);return s}i.reset=function(n){r.getInstance();let e=g(n),o=[];for(let t of e)t instanceof Element&&o.push(t);o.length>0&&r.getInstance().killAnimationsForTargets(o);for(let t of e)t instanceof Element&&(a.textSplitter?.isSplit?.(t)&&a.textSplitter?.revert?.(t),u(t),a.styleReset?.clearAnimationStylesAndUnregister?.(t),a.styleReset?.clearPinStylesAndUnregister?.(t))};i.set=function(n,e){r.getInstance();let o=new c;o._addEntry(n,{to:e,duration:0}),o.kill(!1)};i.get=function(n){let e=r.getInstance();return e.hasTimeline(n)?e.getTimeline(n):void 0};i.has=function(n){return r.getInstance().hasTimeline(n)};i.getNames=function(){return r.getInstance().getTimelineNames()};i.kill=function(n){let e=r.getInstance();e.hasTimeline(n)&&e.getTimeline(n).kill()};i.killAll=function(){r.getInstance().killEverything()};i.refreshScrollTriggers=function(){a.triggerManager?.getInstance?.()?.refreshScrollTriggers()};i.cleanup=function(){typeof document>
56"u"||(document.querySelectorAll("[data-scrolltrigger-spacer]").forEach(n=>n.remove()),document.querySelectorAll("[data-scrolltrigger-markers]").forEach(n=>n.remove()))};i.context=function(n){return new f(n)};i.utils=m;i.responsive=function(n,e,o){r.getInstance();let t=a.responsive?.create();if(!t){let s=e.desktop;if(typeof s=="function")try{s()}catch(l){console.error("[Motion] responsive fallback build failed",l)}return}return t.register(e,o),t};var M=i;__SDK__.Motion=M;
57})();
58(function(){function n(r,e){switch(r){case"play":case"resume":e.play();break;case"pause":e.pause();break;case"reverse":e.reverse();break;case"restart":e.restart();break;case"reset":e.pause(),e.progress(0);break;case"complete":e.progress(1),e.pause();break;case"none":break;default:console.warn(`[Motion] Unknown timeline action: "${r}". Valid actions: play, pause, resume, reverse, restart, reset, complete, none`)}}__SDK__.executeTimelineAction=n;
59})();
60(function(){var c=Object.defineProperty;var d=(a,e,i)=>e in a?c(a,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[e]=i;var s=(a,e,i)=>d(a,typeof e!="symbol"?e+"":e,i);const{SDKRegistry: T}=__SDK__;var t=class t{constructor(){s(this,"_pageLoadTrigger",null);s(this,"_scrollTriggers",new Map);s(this,"_eventTriggers",new Map);s(this,"_mouseMoveTriggers",new Map);s(this,"_gestureTriggers",new Map);s(this,"_cursorTriggers",new Map);s(this,"_pageExitTriggers",new Map);s(this,"_resizeHandler",null);s(this,"_resizeTimer",null);s(this,"_bodyResizeObserver",null);s(this,"_lastBodyHeight",0);s(this,"_bodyResizeTimer",null)}get _allTriggerMaps(){return[this._scrollTriggers,this._eventTriggers,this._mouseMoveTriggers,this._gestureTriggers,this._cursorTriggers,this._pageExitTriggers]}static getInstance(){return t._instance||(t._instance=new t),t._instance}static registerTrigger(e,i){t._triggerRegistry.set(e,i)}static registerPageLoadTrigger(e){t._pageLoadTriggerFactory=e}_getPageLoadTrigger(){return!this._pageLoadTrigger&&t._pageLoadTriggerFactory&&(this._pageLoadTrigger=new t._pageLoadTriggerFactory),this._pageLoadTrigger}_createTrigger(e,...i){let r=t._triggerRegistry.get(e);if(!r){let g=Array.from(t._triggerRegistry.keys());return console.warn(`[Motion SDK] Trigger type '${e}' is not available in this bundle. Available triggers: ${g.join(", ")||"none"}. Animations using .on${e.charAt(0).toUpperCase()+e.slice(1)}() will be skipped.`),null}return new r(...i)}registerPageLoad(e,i){this.unregister(e);let r=this._getPageLoadTrigger();r&&r.register(e,i)}_attachResizeListener(){this._resizeHandler||typeof window>"u"||(this._resizeHandler=()=>{this._resizeTimer!==null&&clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(()=>{this._resizeTimer=null,this.refreshScrollTriggers()},t._RESIZE_DEBOUNCE_MS)},window.addEventListener("resize",this._resizeHandler,{passive:!0}))}_detachResizeListener(){!this._resizeHandler||typeof window>"u"||(window.removeEventListener("resize",this._resizeHandler),this._resizeTimer!==null&&(clearTimeout(this._resizeTimer),this._resizeTimer=null),this._resizeHandler=null)}_attachBodyResizeObserver(){this._bodyResizeObserver||typeof window>"u"||typeof document>"u"||typeof ResizeObserver>"u"||(this._lastBodyHeight=document.body.offsetHeight,this._bodyResizeObserver=new ResizeObserver(e=>{for(let i of e){let r=i.borderBoxSize?.[0]?i.borderBoxSize[0].blockSize:i.contentRect.height;Math.abs(r-this._lastBodyHeight)<1||(this._lastBodyHeight=r,this._bodyResizeTimer!==null&&clearTimeout(this._bodyResizeTimer),this._bodyResizeTimer=setTimeout(()=>{this._bodyResizeTimer=null,this.refreshScrollTriggers()},t._BODY_RESIZE_DEBOUNCE_MS))}}),this._bodyResizeObserver.observe(document.body))}_detachBodyResizeObserver(){this._bodyResizeObserver&&(this._bodyResizeObserver.disconnect(),this._bodyResizeObserver=null,this._bodyResizeTimer!==null&&(clearTimeout(this._bodyResizeTimer),this._bodyResizeTimer=null),this._lastBodyHeight=0)}registerScroll(e,i){this.unregister(e);let r=this._createTrigger("scroll",e,i);r&&(this._scrollTriggers.set(e,r),e._trigger=r,r.enable(),this._attachResizeListener(),this._attachBodyResizeObserver())}
60registerHover(e,i){this.unregister(e);let r=this._createTrigger("event",e,{type:"hover",target:i.target,onEnter:i.onEnter,onLeave:i.onLeave,leaveDelay:i.leaveDelay});r&&(this._eventTriggers.set(e,r),e._trigger=r,r.enable())}registerClick(e,i){this.unregister(e);let r=this._createTrigger("event",e,{type:"click",target:i.target,secondTarget:i.secondTarget,toggle:i.toggle,preventDefault:i.preventDefault});r&&(this._eventTriggers.set(e,r),e._trigger=r,r.enable())}registerMouseMove(e,i){this.unregister(e);let r=this._createTrigger("mouseMove",e,i);r&&(this._mouseMoveTriggers.set(e,r),e._trigger=r,r.enable())}registerGesture(e,i){this.unregister(e);let r=this._createTrigger("gesture",e,i);r&&(this._gestureTriggers.set(e,r),e._trigger=r,r.enable())}registerCursor(e,i){this.unregister(e);let r=this._createTrigger("cursor",e,i);r&&(this._cursorTriggers.set(e,r),e._trigger=r,r.enable())}registerPageExit(e,i){this.unregister(e);let r=this._createTrigger("pageExit",e,i);r&&(this._pageExitTriggers.set(e,r),e._trigger=r,r.enable())}unregister(e){let i=this._getPageLoadTrigger();i&&i.unregister(e);for(let r of this._allTriggerMaps){let g=r.get(e);g&&(g.disable(),r.delete(e))}e._trigger=void 0,this._scrollTriggers.size===0&&(this._detachResizeListener(),this._detachBodyResizeObserver())}refreshScrollTriggers(){let e=Array.from(this._scrollTriggers.values()),i=typeof window<"u"?window.scrollY:0;e.sort((r,g)=>{let n=r._pinManager?.getLayoutRect?.(),o=g._pinManager?.getLayoutRect?.();return!n&&!o?0:n?o?n.top+i-(o.top+i):-1:1}),e.forEach(r=>r.refresh?.()),this._eventTriggers.forEach(r=>r.refresh?.()),this._gestureTriggers.forEach(r=>r.refresh?.()),this._mouseMoveTriggers.forEach(r=>r.refresh?.())}killAll(){let e=this._getPageLoadTrigger();e&&e.clear();for(let i of this._allTriggerMaps)i.forEach(r=>r.disable()),i.clear();this._detachResizeListener(),this._detachBodyResizeObserver()}static _reset(){t._instance&&(t._instance._pageLoadTrigger&&t._instance._pageLoadTrigger._reset(),t._instance.killAll(),t._instance=void 0)}};s(t,"_instance"),s(t,"_triggerRegistry",new Map),s(t,"_pageLoadTriggerFactory",null),s(t,"_RESIZE_DEBOUNCE_MS",200),s(t,"_BODY_RESIZE_DEBOUNCE_MS",250);var l=t;T.triggerManager={getInstance:l.getInstance};__SDK__.TriggerManager=l;
61})();
62(function(){var d=Object.defineProperty;var u=(t,e,n)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var r=(t,e,n)=>u(t,typeof e!="symbol"?e+"":e,n);const{whenDOMReady: f}=__SDK__;var o=class{constructor(e,n){r(this,"_timeline");r(this,"_config");r(this,"_enabled",!1);this._timeline=e,this._config=n}enable(){this._enabled||(this._enabled=!0,f(()=>{this._enabled&&this._onEnable()}))}disable(){this._enabled&&(this._enabled=!1,this._onDisable())}_resolveElement(e,n){if(e==null)return n??null;if(typeof e!="string")return e;if(typeof document<"u")try{let i=document.querySelector(e);if(i!==null)return i}catch(i){console.warn(`[Motion] Invalid selector "${e}":`,i)}return n??null}_resolveElements(e){if(e==null)return[];if(typeof e!="string")return[e];if(typeof document<"u")try{let n=document.querySelectorAll(e);return Array.from(n)}catch(n){return console.warn(`[Motion] Invalid selector "${e}":`,n),[]}return[]}_cleanupListenerMap(e){e.forEach((n,i)=>{n.forEach((l,a)=>{i.removeEventListener(a,l)})}),e.clear()}};__SDK__.BaseTrigger=o;
63})();
64(function(){function r(n){let t=n,o=t.style.transform,i=t.style.transition;t.style.transition="none",t.style.transform="none";let e=!1,s=t.style.position,l=t.style.top,d=t.style.left,y=t.style.width;(s==="fixed"||(s===""||s===void 0)&&typeof window<"u"&&typeof window.getComputedStyle=="function"&&window.getComputedStyle(t).position==="fixed")&&(e=!0),e&&(t.style.position="",t.style.top="",t.style.left="",t.style.width="");let f=t.getBoundingClientRect();return t.style.transform=o,t.style.transition=i,e&&(t.style.position=s,t.style.top=l,t.style.left=d,t.style.width=y),f}__SDK__.getLayoutRect=r;
65})();
66(function(){var o=new Map;function l(){return typeof window<"u"?window:null}function u(t,e){let n=typeof window<"u"?window.requestAnimationFrame:void 0;if(typeof n!="function"){e();return}t.rafId===null&&(t.rafId=n(()=>{t.rafId=null,e()}))}function d(t,e=l()){if(!e)return;let n=o.get(e);n||(n={callbacks:new Set,lastEvent:null,rafId:null,listener:a=>{let r=o.get(e);!r||r.callbacks.size===0||(r.lastEvent=a,u(r,()=>{let i=r.lastEvent;if(!i)return;let c=Array.from(r.callbacks);for(let s of c)try{s(i)}catch(f){console.error("[Motion] Uncaught error in pointer callback:",f)}}))}},o.set(e,n),e.addEventListener("mousemove",n.listener,{passive:!0})),n.callbacks.add(t)}function v(t,e=l()){if(!e)return;let n=o.get(e);n&&(n.callbacks.delete(t),n.callbacks.size===0&&(n.rafId!==null&&typeof window<"u"&&typeof window.cancelAnimationFrame=="function"&&window.cancelAnimationFrame(n.rafId),e.removeEventListener("mousemove",n.listener),o.delete(e)))}function w(){for(let[t,e]of o)e.rafId!==null&&typeof window<"u"&&typeof window.cancelAnimationFrame=="function"&&window.cancelAnimationFrame(e.rafId),t.removeEventListener("mousemove",e.listener);o.clear()}__SDK__._resetGlobalPointerListener=w;__SDK__.addPointerMoveCallback=d;__SDK__.removePointerMoveCallback=v;
67})();
68(function(){var _=Object.defineProperty;var f=(c,a,e)=>a in c?_(c,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):c[a]=e;var r=(c,a,e)=>f(c,typeof a!="symbol"?a+"":a,e);const{executeTimelineAction: v}=__SDK__;const{TriggerManager: p}=__SDK__;const{BaseTrigger: d}=__SDK__;const{getLayoutRect: u}=__SDK__;const{addPointerMoveCallback: g, removePointerMoveCallback: m}=__SDK__;var h=class extends d{constructor(e,n){super(e,n);r(this,"_targets",[]);r(this,"_secondTargets",[]);r(this,"_listeners",new Map);r(this,"_isForward",!0);r(this,"_frozenRects",new Map);r(this,"_snapshotScrollX",0);r(this,"_snapshotScrollY",0);r(this,"_wasHovering",!1);r(this,"_hoverLeaveTimeout",null);r(this,"_boundPointerMoveHandler",null)}_onEnable(){this._resolveTargets(),this._config.type==="hover"?this._addHoverListeners():this._config.type==="click"&&this._addClickListeners()}_onDisable(){this._boundPointerMoveHandler&&(m(this._boundPointerMoveHandler),this._boundPointerMoveHandler=null),this._hoverLeaveTimeout!==null&&(clearTimeout(this._hoverLeaveTimeout),this._hoverLeaveTimeout=null),this._frozenRects.clear(),this._wasHovering=!1,this._cleanupListenerMap(this._listeners)}refresh(){this._config.type==="hover"&&this._snapshotRects()}_snapshotRects(){if(!(typeof window>"u")){this._snapshotScrollX=window.scrollX||0,this._snapshotScrollY=window.scrollY||0;for(let e of this._targets)this._frozenRects.set(e,u(e))}}_isInsideFrozenRects(e,n){if(typeof window>"u")return!1;let o=(window.scrollX||0)-this._snapshotScrollX,t=(window.scrollY||0)-this._snapshotScrollY,i=e+o,s=n+t;
68for(let l of this._frozenRects.values())if(i>=l.left&&i<=l.right&&s>=l.top&&s<=l.bottom)return!0;return!1}_isOverLiveTarget(e,n){if(typeof document>"u"||typeof document.elementsFromPoint!="function")return null;let o=document.elementsFromPoint(e,n);for(let t of o)for(let i of this._targets)if(t===i||typeof i.contains=="function"&&i.contains(t))return!0;return!1}_resolveTargets(){this._targets=this._resolveElements(this._config.target),this._config.secondTarget?this._secondTargets=this._resolveElements(this._config.secondTarget):this._secondTargets=this._targets}_addHoverListeners(){let e=this._config.onEnter||"play",n=this._config.onLeave||"reverse",o=this._config.leaveDelay||0;this._snapshotRects(),this._boundPointerMoveHandler=t=>{let i;if(this._wasHovering?i=this._isInsideFrozenRects(t.clientX,t.clientY):i=this._isOverLiveTarget(t.clientX,t.clientY)??this._isInsideFrozenRects(t.clientX,t.clientY),i&&!this._wasHovering)if(this._wasHovering=!0,this._snapshotRects(),this._hoverLeaveTimeout!==null&&(clearTimeout(this._hoverLeaveTimeout),this._hoverLeaveTimeout=null),e==="restart"){let s=this._timeline.progress();(s>=1||s===0)&&this._timeline.restart()}else this._timeline.play();else if(!i&&this._wasHovering){if(this._wasHovering=!1,n==="none")return;let s=()=>{this._handleLeaveAction(n),this._hoverLeaveTimeout=null};o>0?this._hoverLeaveTimeout=window.setTimeout(s,o*1e3):s()}},g(this._boundPointerMoveHandler)}_handleLeaveAction(e){v(e==="stop"?"reset":e,this._timeline)}_addClickListeners(){let e=this._config.toggle||"play",n=this._config.preventDefault||!1,o=this._config.secondTarget&&this._config.secondTarget!==this._config.target;this._targets.forEach(t=>{let i=this._listeners.get(t)||new Map,s=l=>{n&&l.preventDefault(),o?this._timeline.restart():this._isForward?(this._timeline.restart(),e!=="play"&&(this._isForward=!1)):(this._handleSecondClick(e),this._isForward=!0)};t.addEventListener("click",s),i.set("click",s),this._listeners.set(t,i)}),o&&this._secondTargets.forEach(t=>{if(this._listeners.has(t))return;let i=new Map,s=l=>{n&&l.preventDefault(),this._handleSecondClick(e)};t.addEventListener("click",s),i.set("click",s),this._listeners.set(t,i)})}_handleSecondClick(e){v(e,this._timeline)}};p.registerTrigger("event",h);__SDK__.EventTrigger=h;
69})();
70(function(){const{runBatched: i}=__SDK__;var n=new Map;function s(e){return typeof window<"u"&&e===window?window.scrollY||window.pageYOffset||0:typeof Element<"u"&&e instanceof Element?e.scrollTop:0}function f(e,l){let t=n.get(e);if(!t){let o=()=>{let r=n.get(e);if(!r||r.callbacks.size===0)return;let c=s(e);i(()=>{for(let a of r.callbacks)a(c)})};t={callbacks:new Set,listener:o},n.set(e,t),e.addEventListener("scroll",o,{passive:!0})}t.callbacks.add(l)}function b(e,l){let t=n.get(e);t&&(t.callbacks.delete(l),t.callbacks.size===0&&(e.removeEventListener("scroll",t.listener),n.delete(e)))}function v(){for(let[e,l]of n)e.removeEventListener("scroll",l.listener);n.clear()}__SDK__._resetGlobalScrollListener=v;__SDK__.addScrollCallback=f;__SDK__.removeScrollCallback=b;
71})();
72(function(){const{isTransformProp: f, isFilterProp: d, isCSSVariable: a, isDrawSVGProp: m}=__SDK__;const{SDKRegistry: u}=__SDK__;function c(){let t=new WeakMap;return{register(e,n){let r=t.get(e);r||(r=new Set,t.set(e,r)),r.add(n)},registerMany(e,n){for(let r of n)this.register(e,r)},get(e){return t.get(e)},clearRegistry(e){t.delete(e)}}}var i=c(),s=new WeakMap,o=c();function g(t){return f(t)?["transform"]:d(t)?["filter"]:m(t)?["strokeDasharray","strokeDashoffset"]:[t]}function P(t,e){if(f(e)&&!s.has(t)&&(t instanceof HTMLElement||t instanceof SVGElement)){let r=t.style.transform;s.set(t,r||null)}let n=g(e);for(let r of n)i.register(t,r)}function y(t,e){for(let n of e)P(t,n)}function T(t){return i.get(t)||new Set}function E(t){i.clearRegistry(t),s.delete(t)}function S(t,e){if(!(t instanceof HTMLElement)&&!(t instanceof SVGElement))return;let n=new Set;for(let r of e)for(let p of g(r))n.add(p);for(let r of n)a(r)?t.style.removeProperty(r):t.style[r]=""}function l(t){if(!(t instanceof HTMLElement)&&!(t instanceof SVGElement))return;let e=i.get(t);if(!(!e||e.size===0))for(let n of e){if(n==="transform"){let r=s.get(t);if(r!==void 0){r?t.style.transform=r:t.style.removeProperty("transform");continue}}a(n)?t.style.removeProperty(n):t.style[n]=""}}function v(t){l(t),E(t)}function k(t){for(let e of t)l(e)}function V(t,e){o.register(t,e)}function G(t,e){o.registerMany(t,e)}function H(t){return o.get(t)||new Set}function R(t){o.clearRegistry(t)}function x(t){if(!(t instanceof HTMLElement)&&!(t instanceof SVGElement))return;let e=o.get(t);if(!(!e||e.size===0))for(let n of e)t.style[n]=""}function A(t){x(t),R(t)}u.styleReset={registerAnimatedProps:y,clearAnimationStylesForProps:S,clearAnimationStylesAndUnregister:v,clearPinStylesAndUnregister:A};__SDK__.clearAnimatedPropsRegistry=E;__SDK__.clearAnimationStyles=l;__SDK__.clearAnimationStylesAll=k;
72__SDK__.clearAnimationStylesAndUnregister=v;__SDK__.clearAnimationStylesForProps=S;__SDK__.clearPinStyles=x;__SDK__.clearPinStylesAndUnregister=A;__SDK__.clearPinnedPropsRegistry=R;__SDK__.getAnimatedProps=T;__SDK__.getPinnedProps=H;__SDK__.registerAnimatedProp=P;__SDK__.registerAnimatedProps=y;__SDK__.registerPinnedProp=V;__SDK__.registerPinnedProps=G;
73})();
74(function(){var F=Object.defineProperty;var L=(h,e,t)=>e in h?F(h,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):h[e]=t;var s=(h,e,t)=>L(h,typeof e!="symbol"?e+"":e,t);const{registerPinnedProps: f, clearPinnedPropsRegistry: z}=__SDK__;const{setPinOffset: _, clearPinOffset: m, buildTransformString: a}=__SDK__;var r=class r{constructor(e){s(this,"_id");s(this,"_element",null);s(this,"_originalStyles",null);s(this,"_spacer",null);s(this,"_currentState","before");s(this,"_pinStart",0);s(this,"_pinEnd",0);s(this,"_pinDistance",0);s(this,"_useFixedPin",!1);s(this,"_pinSpacing");s(this,"_elementHeight",0);s(this,"_fixedTop",0);s(this,"_fixedLeft",0);s(this,"_width",0);s(this,"_fixedBreakingAncestors",[]);s(this,"_isBodyPin",!1);s(this,"_originalHtmlHeight","");s(this,"_originalHtmlOverflow","");this._id=e}static getOrCreate(e,t){let i=r._registry.get(t);i||(i=new r(e),r._registry.set(t,i));let n=r._users.get(t);return n||(n=new Set,r._users.set(t,n)),n.add(e),i}static release(e,t){let i=r._users.get(t);if(i&&(i.delete(e),i.size===0)){let n=r._registry.get(t);r._registry.delete(t),r._users.delete(t),n?.cleanup()}}setup(e,t,i,n,g,o){if(typeof document>"u")return;this._isBodyPin=e===document.body,this._element=e,this._pinStart=t,this._pinEnd=i;let H=this._pinDistance;this._pinDistance=i-t,this._useFixedPin=g,this._pinSpacing=o;let l=this._isBodyPin?this._originalStyles!==null:this._spacer!==null;l&&this._currentState==="pinned"&&g&&this._applyFixedState("before"),l&&this._spacer&&(this._spacer.style.width="");let y=l&&this._isBodyPin?document.documentElement.style.height:null;y!==null&&(document.documentElement.style.height=this._originalHtmlHeight);let d=e.getBoundingClientRect();y!==null&&(document.documentElement.style.height=y);let p=l&&this._spacer?window.getComputedStyle(this._spacer):window.getComputedStyle(e);if(this._elementHeight=d.height,l||(this._originalStyles={position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,marginTop:e.style.marginTop,marginBottom:e.style.marginBottom,marginLeft:e.style.marginLeft,marginRight:e.style.marginRight,zIndex:e.style.zIndex}),g)if(this._fixedTop=n,this._isBodyPin)this._fixedLeft=d.left,this._width=d.width,l||(this._originalHtmlHeight=document.documentElement.style.height,this._originalHtmlOverflow=document.documentElement.style.overflow,this._detectFixedBreakingAncestors(e)),document.documentElement.style.height=`${this._elementHeight+this._pinDistance}px`;else{let u=this._resolvePinSpacing(),v=window.getComputedStyle(e),x=v.display,P=v.flexDirection,S=l&&this._spacer?.parentElement?this._spacer.parentElement:e.parentElement,T=S?/^(inline-)?flex$/.test(getComputedStyle(S).display):!1,E=/^(inline-)?flex$/.test(x),c=`
75          display: ${x};
76          ${E?`flex-direction: ${P};`:""}
77          box-sizing: content-box;
78          width: ${d.width}px;
79          height: ${d.height}px;
80          margin-top: ${p.marginTop};
81          margin-left: ${p.marginLeft};
82          margin-right: ${p.marginRight};
83          overflow: visible;
84          ${T?"flex-shrink: 0;":""}
85        `;if(u==="padding")c+=`padding-bottom: ${this._pinDistance}px;`,c+=`margin-bottom: ${p.marginBottom};`;else if(u==="margin"){let b=parseFloat(p.marginBottom)||0,k=l?b-H:b;c+=`margin-bottom: ${k+this._pinDistance}px;`}else c+=`margin-bottom: ${p.marginBottom};`;this._spacer||(this._detectFixedBreakingAncestors(e),this._spacer=document.createElement("div"),e.parentNode?.insertBefore(this._spacer,e),this._spacer.appendChild(e),e.style.marginTop="0",e.style.marginBottom="0",e.style.marginLeft="0",e.style.marginRight="0"),this._spacer.style.cssText=c,this._spacer.setAttribute("data-scrolltrigger-spacer",String(this._id));let w=this._spacer.getBoundingClientRect();this._fixedLeft=w.left,this._width=w.width}this._currentState="before"}update(e){if(!this._element)return;let t=e<this._pinStart?"before":e<this._pinEnd?"pinned":"after";this._useFixedPin?t!==this._currentState&&(this._applyFixedState(t),this._currentState=t):(t!==this._currentState||t==="pinned")&&(this._updateTransform(t,e),this._currentState=t)}cleanup(){if(this._element&&r._registry.get(this._element)===this&&(r._registry.delete(this._element),r._users.delete(this._element)),this._element&&this._originalStyles){let e=this._element;m(e),e.style.position=this._originalStyles.position,e.style.top=this._originalStyles.top,e.style.left=this._originalStyles.left,e.style.width=this._originalStyles.width,e.style.marginTop=this._originalStyles.marginTop,e.style.marginBottom=this._originalStyles.marginBottom,e.style.marginLeft=this._originalStyles.marginLeft,e.style.marginRight=this._originalStyles.marginRight,e.style.zIndex=this._originalStyles.zIndex,e.style.transform="",z(e)}this._isBodyPin?typeof document<"u"&&(document.documentElement.style.height=this._originalHtmlHeight,document.documentElement.style.overflow=this._originalHtmlOverflow):this._spacer?.parentNode&&this._element&&(this._spacer.parentNode.insertBefore(this._element,this._spacer),this._spacer.parentNode.removeChild(this._spacer)),this._restoreFixedBreakingAncestors(),this._fixedBreakingAncestors=[],this._element=null,this._originalStyles=null,this._spacer=null,this._currentState="before",this._pinSpacing=void 0,this._isBodyPin=!1,this._originalHtmlHeight="",this._originalHtmlOverflow=""}getElement(){return this._element}getPinDistance(){return this._pinDistance}getState(){return this._currentState}getLayoutRect(){if(this._spacer?.parentNode){let e=this._spacer.getBoundingClientRect();
85return{top:e.top,left:e.left,width:e.width,height:this._elementHeight,bottom:e.top+this._elementHeight,right:e.left+e.width}}return null}isBodyPin(){return this._isBodyPin}suspendHtmlHeight(){if(!this._isBodyPin)return null;let e=document.documentElement.style.height;return document.documentElement.style.height=this._originalHtmlHeight,()=>{document.documentElement.style.height=e}}isFixedPin(){return this._useFixedPin}_detectFixedBreakingAncestors(e){this._fixedBreakingAncestors=[];let t=e.parentElement;for(;t&&t!==document.documentElement;){let i=window.getComputedStyle(t),n=[];i.filter&&i.filter!=="none"&&n.push({property:"filter",originalValue:""}),i.transform&&i.transform!=="none"&&n.push({property:"transform",originalValue:""}),i.perspective&&i.perspective!=="none"&&n.push({property:"perspective",originalValue:""}),i.willChange&&i.willChange!=="auto"&&i.willChange.split(",").map(o=>o.trim()).some(o=>o==="transform"||o==="filter"||o==="perspective")&&n.push({property:"willChange",originalValue:""}),i.contain&&i.contain!=="none"&&["paint","layout","strict","content"].some(o=>i.contain.includes(o))&&n.push({property:"contain",originalValue:""}),i.backdropFilter&&i.backdropFilter!=="none"&&n.push({property:"backdropFilter",originalValue:""}),(i.overflow==="clip"||i.overflowX==="clip"||i.overflowY==="clip")&&(i.overflowY==="clip"&&n.push({property:"overflowY",originalValue:""}),i.overflowX==="clip"&&n.push({property:"overflowX",originalValue:""})),n.length>0&&this._fixedBreakingAncestors.push({element:t,overrides:n}),t=t.parentElement}}_overrideFixedBreakingAncestors(){for(let{element:e,overrides:t}of this._fixedBreakingAncestors)for(let i of t)switch(i.originalValue=e.style[i.property]||"",i.property){case"filter":case"backdropFilter":case"transform":case"perspective":e.style[i.property]="none";break;case"willChange":e.style.willChange="auto";break;case"contain":e.style.contain="none";break;case"overflowY":e.style.overflowY="visible";break;case"overflowX":e.style.overflowX="hidden";break}}_restoreFixedBreakingAncestors(){for(let{element:e,overrides:t}of this._fixedBreakingAncestors)for(let{property:i,originalValue:n}of t)e.style[i]=n}_resolvePinSpacing(){return this._pinSpacing===!1?!1:this._pinSpacing==="margin"?"margin":(this._pinSpacing===void 0||this._pinSpacing===!0)&&this._isBodyPin?!1:"padding"}_applyFixedState(e){let t=this._element;if(!t)return;let i=t.style.transition;t.style.transition="none",t.offsetHeight;try{this._updateFixed(e),t.offsetHeight}finally{t.style.transition=i}}_updateFixed(e){let t=this._element;e==="before"?(t.style.position=this._originalStyles?.position||"",t.style.top=this._originalStyles?.top||"",t.style.left=this._originalStyles?.left||"",t.style.width=this._originalStyles?.width||"",this._isBodyPin?t.style.marginTop=this._originalStyles?.marginTop||"":(t.style.marginTop="0",t.style.marginLeft="0"),t.style.zIndex=this._originalStyles?.zIndex||"",m(t),t.style.transform=a(t),this._restoreFixedBreakingAncestors()):e==="pinned"?(this._overrideFixedBreakingAncestors(),t.style.position="fixed",t.style.top=`${this._fixedTop}px`,t.style.left=`${this._fixedLeft}px`,t.style.width=`${this._width}px`,this._isBodyPin?t.style.marginTop=this._originalStyles?.marginTop||"":(t.style.marginTop="0",t.style.marginLeft="0"),t.style.zIndex="100",m(t),t.style.transform=a(t),this._isBodyPin?f(t,["position","top","left","width","zIndex","transform","marginTop"]):f(t,["position","top","left","width","marginTop","marginLeft","zIndex","transform"])):(t.style.position=this._originalStyles?.position||"",t.style.top=this._originalStyles?.top||"",t.style.left=this._originalStyles?.left||"",t.style.width=this._originalStyles?.width||"",this._isBodyPin?(m(t),t.style.transform=a(t),t.style.marginTop=`${this._pinDistance}px`):(t.style.marginTop="0",t.style.marginLeft="0",_(t,0,this._pinDistance,0),t.style.transform=a(t)),t.style.zIndex=this._originalStyles?.zIndex||"",this._restoreFixedBreakingAncestors())}_updateTransform(e,t){let i=this._element;if(e==="before")i.style.zIndex=this._originalStyles?.zIndex||"",m(i),i.style.transform=a(i);else if(e==="pinned"){let n=Math.round(t-this._pinStart);
85i.style.zIndex="100",_(i,0,n,0),i.style.transform=a(i),f(i,["transform","zIndex"])}else i.style.zIndex=this._originalStyles?.zIndex||"",_(i,0,this._pinDistance,0),i.style.transform=a(i),f(i,["transform","zIndex"])}};s(r,"_registry",new Map),s(r,"_users",new Map);var B=r;__SDK__.PinManager=B;
86})();
87(function(){function f(t,n,o,e){if(!t)return 0;let r=t.trim().toLowerCase(),s=r.match(/^(top|center|bottom)([+-])(-?\d+(?:\.\d+)?)(px|%|vh|vw)?$/);if(s){let u=s[1],b=s[2]==="-"?-1:1,i=parseFloat(s[3]),p=s[4]||"px",c=0;switch(u){case"top":c=0;break;case"center":c=n/2;break;case"bottom":c=n;break}let d=m(i,p,n,o,e);return c+b*d}switch(r){case"top":return 0;case"center":return n/2;case"bottom":return n}let a=r.match(/^(-?\d+(?:\.\d+)?)(px|%|vh|vw)?$/);if(a){let u=parseFloat(a[1]),b=a[2]||"px";return m(u,b,n,o,e)}return 0}function m(t,n,o,e,r){switch(n){case"px":return t;case"%":return t/100*o;case"vh":return t/100*e;case"vw":return t/100*(r??(typeof window<"u"?window.innerWidth:0));default:return t}}__SDK__.parseScrollPosition=f;
88})();
89(function(){var v=Object.defineProperty;var T=(o,e,t)=>e in o?v(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var r=(o,e,t)=>T(o,typeof e!="symbol"?e+"":e,t);const{parseScrollPosition: _}=__SDK__;const{getLayoutRect: x}=__SDK__;var S=class{constructor(e){r(this,"_id");r(this,"_markers");r(this,"_markerContainer");r(this,"_triggerElement");r(this,"_scrollerStartOffset",0);r(this,"_scrollerEndOffset",0);r(this,"_scroller",window);r(this,"_startConfig","top top");r(this,"_endConfig","bottom top");r(this,"_cachedElStartDocTop",0);r(this,"_cachedElEndDocTop",0);r(this,"_cachedElPositionValid",!1);this._id=e}setup(e){if(typeof document>"u")return;this._scroller=e.scroller,this._triggerElement=e.triggerElement||void 0,this._startConfig=e.startConfig,this._endConfig=e.endConfig;let t=e.markerConfig,n=(typeof t=="object"?t.startColor:null)||"lime",i=(typeof t=="object"?t.endColor:null)||"red",a=(typeof t=="object"?t.fontSize:null)||"10px",c=this._scroller!==window,s=e.viewportHeight,d=this._startConfig.split(" "),C=_(d[1]||"top",s,s),b=this._endConfig.startsWith("+=")?C:_(this._endConfig.split(" ")[1]||"top",s,s);this._markerContainer=document.createElement("div"),this._markerContainer.setAttribute("data-scrolltrigger-markers",String(this._id)),this._markerContainer.style.cssText="position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 9999;";let m=(l,h,y)=>{let p=document.createElement("div");p.setAttribute("data-marker",l),p.style.cssText=`
90        position: absolute;
91        ${y}: 0;
92        height: 1px;
93        width: 50px;
94        background: ${h};
95        pointer-events: none;
96      `;let g=document.createElement("span");return g.textContent=l,g.style.cssText=`
97        position: absolute;
98        ${y}: 0;
99        top: 2px;
100        background: ${h};
101        color: ${h==="lime"?"#000":"#fff"};
102        padding: 1px 3px;
103        font-size: ${a};
104        font-family: monospace;
105        white-space: nowrap;
106        border-radius: 2px;
107        line-height: 1.2;
108      `,p.appendChild(g),p},u=m("scroller-start",n,"right"),k=m("scroller-end",i,"right"),f=m("start",n,"left"),E=m("end",i,"left");if(this._triggerElement||(f.style.display="none",E.style.display="none"),this._markerContainer.appendChild(u),this._markerContainer.appendChild(k),this._markerContainer.appendChild(f),this._markerContainer.appendChild(E),this._markers={scrollerStart:u,scrollerEnd:k,elementStart:f,elementEnd:E},c){let l=this._scroller;window.getComputedStyle(l).position==="static"&&(l.style.position="relative"),l.appendChild(this._markerContainer)}else document.body.appendChild(this._markerContainer),this._markerContainer.style.position="fixed";this._scrollerStartOffset=C,this._scrollerEndOffset=b,this._cacheElementPositions(s)}_cacheElementPositions(e){if(!this._triggerElement){this._cachedElPositionValid=!1;return}let t=x(this._triggerElement),n=_(this._startConfig.split(" ")[0]||"top",t.height,e),i=this._endConfig.startsWith("+=")?n:_(this._endConfig.split(" ")[0]||"bottom",t.height,e);if(this._scroller!==window){let c=this._scroller.getBoundingClientRect(),s=this._scroller.scrollTop,d=t.top-c.top+s;this._cachedElStartDocTop=d+n,this._cachedElEndDocTop=d+i}else{let c=window.scrollY||window.pageYOffset||0,s=t.top+c;this._cachedElStartDocTop=s+n,this._cachedElEndDocTop=s+i}this._cachedElPositionValid=!0}update(e,t,n){if(!this._markers||!this._markerContainer)return;let i=this._triggerElement;this._triggerElement=t||void 0,this._triggerElement!==i&&this._cacheElementPositions(n);let a=this._scroller!==window;a?(this._markers.scrollerStart.style.top=`${e+this._scrollerStartOffset}px`,this._markers.scrollerEnd.style.top=`${e+this._scrollerEndOffset}px`):(this._markers.scrollerStart.style.top=`${this._scrollerStartOffset}px`,this._markers.scrollerEnd.style.top=`${this._scrollerEndOffset}px`),this._triggerElement&&this._cachedElPositionValid?(this._markers.elementStart.style.display="",this._markers.elementEnd.style.display="",a?(this._markers.elementStart.style.top=`${this._cachedElStartDocTop}px`,this._markers.elementEnd.style.top=`${this._cachedElEndDocTop}px`):(this._markers.elementStart.style.top=`${this._cachedElStartDocTop-e}px`,this._markers.elementEnd.style.top=`${this._cachedElEndDocTop-e}px`)):(this._markers.elementStart.style.display="none",this._markers.elementEnd.style.display="none")}recachePositions(e){this._cacheElementPositions(e)}cleanup(){this._markerContainer&&this._markerContainer.parentNode&&this._markerContainer.parentNode.removeChild(this._markerContainer),this._markerContainer=void 0,this._markers=void 0,this._triggerElement=void 0}};__SDK__.MarkerManager=S;
109})();
110(function(){var A=Object.defineProperty;var H=(_,g,t)=>g in _?A(_,g,{enumerable:!0,configurable:!0,writable:!0,value:t}):_[g]=t;var n=(_,g,t)=>H(_,typeof g!="symbol"?g+"":g,t);const{Ticker: v, runBatched: S}=__SDK__;const{PinManager: b}=__SDK__;const{MarkerManager: k}=__SDK__;const{parseScrollPosition: a}=__SDK__;const{executeTimelineAction: c}=__SDK__;const{getLayoutRect: C}=__SDK__;const{TriggerManager: R}=__SDK__;const{BaseTrigger: I}=__SDK__;const{addScrollCallback: O, removeScrollCallback: x}=__SDK__;var o=class o extends I{constructor(t,i){super(t,i);n(this,"_id");n(this,"_scrollListener");n(this,"_scrubTickListener",null);n(this,"_currentProgress",0);n(this,"_targetProgress",0);n(this,"_scrubLag",0);n(this,"_scroller");n(this,"_triggerStart",0);n(this,"_triggerEnd",0);n(this,"_pinManager",null);n(this,"_markerManager",null);n(this,"_triggerState","before");n(this,"_toggleActions",["play","none","none","none"]);n(this,"_initializing",!1);this._id=o._nextId++,this._scrubLag=typeof i.scrub=="number"?i.scrub:0}static _ensureLoadListener(){o._loadListenerAdded||typeof window>"u"||(o._loadListenerAdded=!0,document.readyState!=="complete"&&window.addEventListener("load",()=>{setTimeout(()=>{for(let t of o._activeInstances)t.refresh()},100)},{once:!0}))}_resolveScroller(){if(this._config.scroller)if(typeof this._config.scroller=="string"){if(typeof document>"u"){this._scroller=window;return}try{let t=document.querySelector(this._config.scroller);this._scroller=t??window}catch(t){console.warn(`[Motion] Invalid scroller selector "${this._config.scroller}":`,t),this._scroller=window}}else this._scroller=this._config.scroller;else this._scroller=window}
110_resolvePinElement(){if(!this._config.pin||typeof document>"u")return null;let t=null;if(typeof this._config.pin=="string")t=document.querySelector(this._config.pin);else if(this._config.pin===!0){let i=this._getFirstAnimatedElement();i instanceof HTMLElement&&(t=i)}return t}_defaultStart(){return this._config.start||(this._config.pin?"top top":"top bottom")}_defaultEnd(){return this._config.end||"bottom top"}_getFirstAnimatedElement(){let t=this._timeline.getFirstChildBuilder();if(t){let e=t.hasSplit()?t.getOriginalTargets():t.getTargets();for(let r of e)if(r instanceof Element)return r}let i=this._timeline.getFirstChildAnimation();if(i){let e=i.getTargets();if(e.length>0&&e[0]instanceof Element)return e[0]}return null}_resolveTriggerElement(){if(this._config.target instanceof Element)return this._config.target;if(typeof this._config.target=="string"&&typeof document<"u"){let t=document.querySelector(this._config.target);if(t instanceof Element)return t}return this._getFirstAnimatedElement()}_calculateTriggerPositions(t){let i=t||this._resolveTriggerElement(),e=this._getViewportHeight(),r=this._getScrollTop();if(!i){this._triggerStart=0,this._triggerEnd=this._getScrollHeight();return}let s=this._pinManager?.getLayoutRect()??C(i),l;if(this._scroller instanceof Element){let h=this._scroller.getBoundingClientRect();l=s.top-h.top+r}else l=s.top+r;let p=this._defaultStart().split(" "),f=p[0]||"top",E=p[1]||"top",w=a(f,s.height,e),T=a(E,e,e);this._triggerStart=l+w-T;let m=this._defaultEnd();if(m.startsWith("+=")){let h=a(m.slice(2),e,e);this._triggerEnd=this._triggerStart+h}else{let h=m.split(" "),M=h[0]||"bottom",L=h[1]||"top",P=a(M,s.height,e),y=a(L,e,e);this._triggerEnd=l+P-y}this._triggerEnd<=this._triggerStart&&(this._triggerEnd=this._triggerStart+Math.max(e,100))}_onEnable(){this._resolveScroller();let t=this._resolvePinElement();this._calculateTriggerPositions(t),o._activeInstances.add(this),o._ensureLoadListener();let e=(this._config.toggleActions||"play none none none").trim().split(/\s+/);if(this._toggleActions=[e[0],e[1],e[2],e[3]],t){let s=this._defaultStart().split(" "),l=this._getViewportHeight(),u=a(s[0]||"top",t.getBoundingClientRect().height,l),f=a(s[1]||"top",l,l)-u;this._pinManager=b.getOrCreate(this._id,t),this._pinManager.setup(t,this._triggerStart,this._triggerEnd,f,this._scroller===window,this._config.pinSpacing)}if(this._config.markers&&typeof document<"u"){let r=this._pinManager?.getElement()||this._resolveTriggerElement();this._markerManager=new k(this._id),this._markerManager.setup({scroller:this._scroller,triggerElement:r,startConfig:this._defaultStart(),endConfig:this._defaultEnd(),markerConfig:this._config.markers,viewportHeight:this._getViewportHeight()})}this._scrollListener=r=>this._onScroll(r),this._scroller&&(O(this._scroller,this._scrollListener),this._initializing=!0,this._onScroll(),this._initializing=!1,(this._config.scrub===!1||this._config.scrub===void 0)&&(this._triggerState==="active"?c(this._toggleActions[0],this._timeline):this._triggerState==="after"&&(this._timeline.progress(1),this._timeline.pause())))}_onDisable(){if(this._scrollListener&&this._scroller&&(x(this._scroller,this._scrollListener),this._scrollListener=void 0),this._markerManager?.cleanup(),this._markerManager=null,this._pinManager){let t=this._pinManager.getElement();t?b.release(this._id,t):this._pinManager.cleanup(),this._pinManager=null}this._stopSmoothScrollLoop(),o._activeInstances.delete(this)}refresh(){if(!this._enabled)return;let t=this._pinManager?.getElement()||null,i=this._pinManager?.suspendHtmlHeight?.()??null;if(this._calculateTriggerPositions(t),i?.(),this._pinManager&&t){let r=this._defaultStart().split(" "),s=this._getViewportHeight(),l=this._pinManager.getLayoutRect()?.height??t.getBoundingClientRect().height,u=a(r[0]||"top",l,s),f=a(r[1]||"top",s,s)-u;this._pinManager.setup(t,this._triggerStart,this._triggerEnd,f,this._scroller===window,this._config.pinSpacing)}this._markerManager&&this._markerManager.recachePositions(this._getViewportHeight()),this._onScroll()}_getViewportHeight(){return this._scroller===window?typeof window<"u"?window.innerHeight:0:this._scroller instanceof Element?this._scroller.clientHeight:0}_getScrollTop(){return this._scroller===window?typeof window<"u"?window.scrollY||window.pageYOffset:0:this._scroller instanceof Element?this._scroller.scrollTop:0}_getScrollHeight(){return this._scroller===window?typeof document<"u"&&document.documentElement?document.documentElement.scrollHeight-window.innerHeight:0:this._scroller instanceof Element?this._scroller.scrollHeight-this._scroller.clientHeight:0}_onScroll(t=this._getScrollTop()){if(!this._enabled)return;let i=this._triggerEnd-this._triggerStart,e=i>0?(t-this._triggerStart)/i:0;if(e=Math.max(0,Math.min(1,e)),e=this._applySnap(e),this._targetProgress=e,this._pinManager?.update(t),this._markerManager){let r=this._pinManager?.getElement()||this._resolveTriggerElement();
110this._markerManager.update(t,r,this._getViewportHeight())}if(this._config.scrub!==!1&&this._config.scrub!==void 0)this._scrubLag===0?(this._currentProgress=this._targetProgress,S(()=>this._timeline.progress(this._currentProgress))):this._startSmoothScrollLoop();else{let r;if(e<=0?r="before":e>=1?r="after":r="active",r!==this._triggerState){let s=this._triggerState;if(this._triggerState=r,this._initializing)return;S(()=>{r==="active"&&s==="before"?c(this._toggleActions[0],this._timeline):r==="after"&&s==="active"?c(this._toggleActions[1],this._timeline):r==="active"&&s==="after"?c(this._toggleActions[2],this._timeline):r==="before"&&s==="active"?c(this._toggleActions[3],this._timeline):r==="after"&&s==="before"?(c(this._toggleActions[0],this._timeline),this._timeline.progress(1),c(this._toggleActions[1],this._timeline)):r==="before"&&s==="after"&&(c(this._toggleActions[2],this._timeline),this._timeline.progress(0),c(this._toggleActions[3],this._timeline))})}}}_applySnap(t){let i=this._config.snap;if(i==null)return t;if(typeof i=="function")return i(t);if(Array.isArray(i)){let e=i[0]??t,r=Math.abs(t-e);for(let s=1;s<i.length;s++){let l=Math.abs(t-i[s]);l<r&&(r=l,e=i[s])}return e}return typeof i=="number"&&i>0?Math.round(t/i)*i:t}_startSmoothScrollLoop(){this._scrubTickListener||(this._scrubTickListener=(t,i)=>{if(!this._enabled){this._stopSmoothScrollLoop();return}let e=this._targetProgress-this._currentProgress,r=1-Math.exp(-t*3/this._scrubLag);if(this._currentProgress+=e*r,Math.abs(this._targetProgress-this._currentProgress)<1e-4){this._currentProgress=this._targetProgress,this._timeline.progress(this._currentProgress),this._stopSmoothScrollLoop();return}this._timeline.progress(this._currentProgress)},v.getInstance().add(this._scrubTickListener,o._SCRUB_TICKER_PRIORITY))}_stopSmoothScrollLoop(){this._scrubTickListener&&(v.getInstance().remove(this._scrubTickListener),this._scrubTickListener=null)}};n(o,"_nextId",0),n(o,"_SCRUB_TICKER_PRIORITY",1),n(o,"_activeInstances",new Set),n(o,"_loadListenerAdded",!1);var d=o;R.registerTrigger("scroll",d);__SDK__.ScrollTrigger=d;
111})();
112(function(){const{SDKRegistry: h}=__SDK__;var m=class{static resolve(n,s){return n.length===0?[]:n.length===1?[0]:typeof s=="number"?n.map((t,i)=>i*s):this.resolveComplexStagger(n,s)}static resolveComplexStagger(n,s){let t=n.length;if(t===1)return[0];let i;s.each!==void 0?i=s.each:s.amount!==void 0?i=s.amount/(t-1):i=.1;let o=this.getOrdering(n,s),e=new Array(t);for(let a=0;a<t;a++)e[o[a].originalIndex]=o[a].order*i;return e}static getOrdering(n,s){let t=n.length,i=s.from??"start";if(s.grid)return this.getGridOrdering(n,s);switch(i){case"start":return n.map((o,e)=>({originalIndex:e,order:e}));case"end":return n.map((o,e)=>({originalIndex:e,order:t-1-e}));case"center":{let o=Math.floor(t/2);return n.map((e,a)=>{let r=Math.abs(a-o);return{originalIndex:a,order:r}})}case"edges":return n.map((o,e)=>{let a=Math.min(e,t-1-e);return{originalIndex:e,order:a}});case"random":{let o=n.map((e,a)=>({originalIndex:a,order:Math.random()}));return o.sort((e,a)=>e.order-a.order),o.forEach((e,a)=>{e.order=a}),o}default:if(typeof i=="number"){let o=Math.max(0,Math.min(t-1,i));return n.map((e,a)=>{let r=Math.abs(a-o);return{originalIndex:a,order:r}})}return n.map((o,e)=>({originalIndex:e,order:e}))}}static getGridOrdering(n,s){let t,i;if(s.grid==="auto"){let r=this.detectGrid(n);t=r.cols,i=r.rows}else[t,i]=s.grid;let o=s.from??"start",e=s.axis??"x",a=n.map((r,d)=>{let c=d%t,l=Math.floor(d/t);return{originalIndex:d,col:c,row:l}});if(o==="random"){let r=a.map(d=>({originalIndex:d.originalIndex,order:Math.random()}));return r.sort((d,c)=>d.order-c.order),r.forEach((d,c)=>{d.order=c}),r}return a.map(r=>{let d;if(typeof o=="number"){let c=o%t,l=Math.floor(o/t);d=e==="x"?Math.abs(r.col-c)+Math.abs(r.row-l)*.5:Math.abs(r.row-l)+Math.abs(r.col-c)*.5}else if(o==="center"){let c=(t-1)/2,l=(i-1)/2;d=Math.abs(r.col-c)+Math.abs(r.row-l)}else if(o==="edges"){let c=Math.min(r.col,t-1-r.col),l=Math.min(r.row,i-1-r.row);d=Math.min(c,l)}else o==="end"?d=e==="x"?(i-1-r.row)*t+(t-1-r.col):(t-1-r.col)*i+(i-1-r.row):d=e==="x"?r.row*t+r.col:r.col*i+r.row;return{originalIndex:r.originalIndex,order:d}})}
112static detectGrid(n){if(n.length===0)return{cols:0,rows:0};let s=n.filter(e=>e instanceof Element);if(s.length===0)return{cols:n.length,rows:1};let t=new Map;s.forEach(e=>{let a=e.getBoundingClientRect(),r=Math.round(a.top);t.set(r,(t.get(r)||0)+1)});let i=t.size;return{cols:Math.ceil(n.length/i),rows:i}}};h.stagger={resolve:(u,n)=>m.resolve(u,n)};__SDK__.StaggerResolver=m;
113})();
114_g_.Motion=__SDK__.Motion;
115})(typeof window!=="undefined"?window:this);

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