gsap-trial
Advanced tools
Comparing version 3.10.2 to 3.10.3
/*! | ||
* CSSPlugin 3.10.2 | ||
* CSSPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* CSSRulePlugin 3.10.2 | ||
* CSSRulePlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
let e,t,s,l,r=()=>"undefined"!=typeof window,n=()=>e||r()&&(e=window.gsap)&&e.registerPlugin&&e,i=()=>(t||(o(),l||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),t),o=i=>{e=i||n(),r()&&(s=document),e&&(l=e.plugins.css,l&&(t=1))};const u={version:"3.10.2",name:"cssRule",init(e,t,r,n,o){if(!i()||void 0===e.cssText)return!1;let u=e._gsProxy=e._gsProxy||s.createElement("div");this.ss=e,this.style=u.style,u.style.cssText=e.cssText,l.prototype.init.call(this,u,t,r,n,o)},render(e,t){let s,l=t._pt,r=t.style,n=t.ss;for(;l;)l.r(e,l.d),l=l._next;for(s=r.length;--s>-1;)n[r[s]]=r[r[s]]},getRule(e){i();let t,l,r,n,o=s.all?"rules":"cssRules",u=s.styleSheets,c=u.length,g=":"===e.charAt(0);for(e=(g?"":",")+e.split("::").join(":").toLowerCase()+",",g&&(n=[]);c--;){try{if(l=u[c][o],!l)continue;t=l.length}catch(e){console.warn(e);continue}for(;--t>-1;)if(r=l[t],r.selectorText&&-1!==(","+r.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)){if(!g)return r.style;n.push(r.style)}}return n},register:o};n()&&e.registerPlugin(u);export default u;export{u as CSSRulePlugin}; | ||
let e,t,s,l,r=()=>"undefined"!=typeof window,n=()=>e||r()&&(e=window.gsap)&&e.registerPlugin&&e,i=()=>(t||(o(),l||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),t),o=i=>{e=i||n(),r()&&(s=document),e&&(l=e.plugins.css,l&&(t=1))};const u={version:"3.10.3",name:"cssRule",init(e,t,r,n,o){if(!i()||void 0===e.cssText)return!1;let u=e._gsProxy=e._gsProxy||s.createElement("div");this.ss=e,this.style=u.style,u.style.cssText=e.cssText,l.prototype.init.call(this,u,t,r,n,o)},render(e,t){let s,l=t._pt,r=t.style,n=t.ss;for(;l;)l.r(e,l.d),l=l._next;for(s=r.length;--s>-1;)n[r[s]]=r[r[s]]},getRule(e){i();let t,l,r,n,o=s.all?"rules":"cssRules",u=s.styleSheets,c=u.length,g=":"===e.charAt(0);for(e=(g?"":",")+e.split("::").join(":").toLowerCase()+",",g&&(n=[]);c--;){try{if(l=u[c][o],!l)continue;t=l.length}catch(e){console.warn(e);continue}for(;--t>-1;)if(r=l[t],r.selectorText&&-1!==(","+r.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)){if(!g)return r.style;n.push(r.style)}}return n},register:o};n()&&e.registerPlugin(u);export default u;export{u as CSSRulePlugin}; |
/*! | ||
* CustomBounce 3.10.2 | ||
* CustomBounce 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
let e,n,t,o=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,i=i=>{e=o(),t=e&&e.parseEase("_CE"),t?(n=1,e.parseEase("bounce").config=e=>"object"==typeof e?d("",e):d("bounce("+e+")",{strength:+e})):i&&console.warn("Please gsap.registerPlugin(CustomEase, CustomBounce)")},s=e=>{let n,t=e.length,o=1/e[t-2];for(n=2;n<t;n+=2)e[n]=~~(e[n]*o*1e3)/1e3;e[t-2]=1},r=function(){return String.fromCharCode.apply(null,arguments)},a=r(103,114,101,101,110,115,111,99,107,46,99,111,109),u=function(e){var n="undefined"!=typeof window,t=0===(n?window.location.href:"").indexOf(r(102,105,108,101,58,47,47))||-1!==e.indexOf(r(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(r(49,50,55,46,48,32,48,46,49)),o=[a,r(99,111,100,101,112,101,110,46,105,111),r(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),r(99,111,100,101,112,101,110,46,100,101,118),r(99,111,100,101,112,101,110,46,97,112,112),r(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),r(112,101,110,115,46,99,108,111,117,100),r(99,115,115,45,116,114,105,99,107,115,46,99,111,109),r(99,100,112,110,46,105,111),r(112,101,110,115,46,105,111),r(103,97,110,110,111,110,46,116,118),r(99,111,100,101,99,97,110,121,111,110,46,110,101,116),r(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),r(99,101,114,101,98,114,97,120,46,99,111,46,117,107),r(116,121,109,112,97,110,117,115,46,110,101,116),r(116,119,101,101,110,109,97,120,46,99,111,109),r(116,119,101,101,110,108,105,116,101,46,99,111,109),r(112,108,110,107,114,46,99,111),r(104,111,116,106,97,114,46,99,111,109),r(119,101,98,112,97,99,107,98,105,110,46,99,111,109),r(97,114,99,104,105,118,101,46,111,114,103),r(99,111,100,101,115,97,110,100,98,111,120,46,105,111),r(99,115,98,46,97,112,112),r(115,116,97,99,107,98,108,105,116,122,46,99,111,109),r(115,116,97,99,107,98,108,105,116,122,46,105,111),r(99,111,100,105,101,114,46,105,111),r(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),r(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),r(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),r(106,115,102,105,100,100,108,101,46,110,101,116)],i=function(){n&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",i):(document.removeEventListener("readystatechange",i),n&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(r(37,99,87,97,114,110,105,110,103),r(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(r(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"CustomBounce"+r(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(r(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),r(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},s=o.length;for(setTimeout(i,50);--s>-1;)if(-1!==e.indexOf(o[s]))return!0;return t||!setTimeout((function(){n&&(window.location.href=r(104,116,116,112,115,58,47,47)+a+r(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=CustomBounce&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),d=(e,o)=>{if(n||i(1),o=o||{},u){let n,i,r,a,u,d,c,f=.999,l=Math.min(f,o.strength||.7),g=l,w=(o.squash||0)/100,h=w,p=1/.03,m=.2,y=1,C=.1,v=[0,0,.07,0,.1,1,.1,1],x=[0,0,0,0,.1,0,.1,0];for(u=0;u<200&&(m*=g*((g+1)/2),y*=l*l,d=C+m,r=C+.49*m,a=1-y,n=C+y/p,i=r+.8*(r-n),w&&(C+=w,n+=w,r+=w,i+=w,d+=w,c=w/h,x.push(C-w,0,C-w,c,C-w/2,c,C,c,C,0,C,0,C,-.6*c,C+(d-C)/6,0,d,0),v.push(C-w,1,C,1,C,1),w*=l*l),v.push(C,1,n,a,r,a,i,a,d,1,d,1),l*=.95,p=y/(d-i),C=d,!(a>f));u++);if(o.endAtStart&&"false"!==o.endAtStart){if(r=-.1,v.unshift(r,1,r,1,-.07,0),h)for(w=2.5*h,r-=w,v.unshift(r,1,r,1,r,1),x.splice(0,6),x.unshift(r,0,r,0,r,1,r+w/2,1,r+w,1,r+w,0,r+w,0,r+w,-.6,r+w+.033,0),u=0;u<x.length;u+=2)x[u]-=r;for(u=0;u<v.length;u+=2)v[u]-=r,v[u+1]=1-v[u+1]}return w&&(s(x),x[2]="C"+x[2],t(o.squashID||e+"-squash","M"+x.join(","))),s(v),v[2]="C"+v[2],t(e,"M"+v.join(","))}};class c{constructor(e,n){this.ease=d(e,n)}static create(e,n){return d(e,n)}static register(n){e=n,i()}}o()&&e.registerPlugin(c),c.version="3.10.2";export default c;export{c as CustomBounce}; | ||
let e,n,t,o=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,i=i=>{e=o(),t=e&&e.parseEase("_CE"),t?(n=1,e.parseEase("bounce").config=e=>"object"==typeof e?d("",e):d("bounce("+e+")",{strength:+e})):i&&console.warn("Please gsap.registerPlugin(CustomEase, CustomBounce)")},s=e=>{let n,t=e.length,o=1/e[t-2];for(n=2;n<t;n+=2)e[n]=~~(e[n]*o*1e3)/1e3;e[t-2]=1},r=function(){return String.fromCharCode.apply(null,arguments)},a=r(103,114,101,101,110,115,111,99,107,46,99,111,109),u=function(e){var n="undefined"!=typeof window,t=0===(n?window.location.href:"").indexOf(r(102,105,108,101,58,47,47))||-1!==e.indexOf(r(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(r(49,50,55,46,48,32,48,46,49)),o=[a,r(99,111,100,101,112,101,110,46,105,111),r(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),r(99,111,100,101,112,101,110,46,100,101,118),r(99,111,100,101,112,101,110,46,97,112,112),r(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),r(112,101,110,115,46,99,108,111,117,100),r(99,115,115,45,116,114,105,99,107,115,46,99,111,109),r(99,100,112,110,46,105,111),r(112,101,110,115,46,105,111),r(103,97,110,110,111,110,46,116,118),r(99,111,100,101,99,97,110,121,111,110,46,110,101,116),r(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),r(99,101,114,101,98,114,97,120,46,99,111,46,117,107),r(116,121,109,112,97,110,117,115,46,110,101,116),r(116,119,101,101,110,109,97,120,46,99,111,109),r(116,119,101,101,110,108,105,116,101,46,99,111,109),r(112,108,110,107,114,46,99,111),r(104,111,116,106,97,114,46,99,111,109),r(119,101,98,112,97,99,107,98,105,110,46,99,111,109),r(97,114,99,104,105,118,101,46,111,114,103),r(99,111,100,101,115,97,110,100,98,111,120,46,105,111),r(99,115,98,46,97,112,112),r(115,116,97,99,107,98,108,105,116,122,46,99,111,109),r(115,116,97,99,107,98,108,105,116,122,46,105,111),r(99,111,100,105,101,114,46,105,111),r(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),r(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),r(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),r(106,115,102,105,100,100,108,101,46,110,101,116)],i=function(){n&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",i):(document.removeEventListener("readystatechange",i),n&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(r(37,99,87,97,114,110,105,110,103),r(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(r(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"CustomBounce"+r(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(r(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),r(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},s=o.length;for(setTimeout(i,50);--s>-1;)if(-1!==e.indexOf(o[s]))return!0;return t||!setTimeout((function(){n&&(window.location.href=r(104,116,116,112,115,58,47,47)+a+r(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=CustomBounce&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),d=(e,o)=>{if(n||i(1),o=o||{},u){let n,i,r,a,u,d,c,f=.999,l=Math.min(f,o.strength||.7),g=l,w=(o.squash||0)/100,h=w,p=1/.03,m=.2,y=1,C=.1,v=[0,0,.07,0,.1,1,.1,1],x=[0,0,0,0,.1,0,.1,0];for(u=0;u<200&&(m*=g*((g+1)/2),y*=l*l,d=C+m,r=C+.49*m,a=1-y,n=C+y/p,i=r+.8*(r-n),w&&(C+=w,n+=w,r+=w,i+=w,d+=w,c=w/h,x.push(C-w,0,C-w,c,C-w/2,c,C,c,C,0,C,0,C,-.6*c,C+(d-C)/6,0,d,0),v.push(C-w,1,C,1,C,1),w*=l*l),v.push(C,1,n,a,r,a,i,a,d,1,d,1),l*=.95,p=y/(d-i),C=d,!(a>f));u++);if(o.endAtStart&&"false"!==o.endAtStart){if(r=-.1,v.unshift(r,1,r,1,-.07,0),h)for(w=2.5*h,r-=w,v.unshift(r,1,r,1,r,1),x.splice(0,6),x.unshift(r,0,r,0,r,1,r+w/2,1,r+w,1,r+w,0,r+w,0,r+w,-.6,r+w+.033,0),u=0;u<x.length;u+=2)x[u]-=r;for(u=0;u<v.length;u+=2)v[u]-=r,v[u+1]=1-v[u+1]}return w&&(s(x),x[2]="C"+x[2],t(o.squashID||e+"-squash","M"+x.join(","))),s(v),v[2]="C"+v[2],t(e,"M"+v.join(","))}};class c{constructor(e,n){this.ease=d(e,n)}static create(e,n){return d(e,n)}static register(n){e=n,i()}}o()&&e.registerPlugin(c),c.version="3.10.3";export default c;export{c as CustomBounce}; |
/*! | ||
* CustomEase 3.10.2 | ||
* CustomEase 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
let e=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,t=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,n=Math.PI/180,s=Math.sin,i=Math.cos,o=Math.abs,a=Math.sqrt,r=e=>Math.round(1e5*e)/1e5||0;function l(e,t,r,l,h,c,g,u,f){if(e===u&&t===f)return;r=o(r),l=o(l);let d=h%360*n,x=i(d),p=s(d),y=Math.PI,w=2*y,m=(e-u)/2,M=(t-f)/2,C=x*m+p*M,E=-p*m+x*M,b=C*C,v=E*E,S=b/(r*r)+v/(l*l);S>1&&(r=a(S)*r,l=a(S)*l);let N=r*r,L=l*l,O=(N*L-N*v-L*b)/(N*v+L*b);O<0&&(O=0);let P=(c===g?-1:1)*a(O),A=P*(r*E/l),D=P*(-l*C/r),V=(e+u)/2+(x*A-p*D),T=(t+f)/2+(p*A+x*D),_=(C-A)/r,q=(E-D)/l,G=(-C-A)/r,I=(-E-D)/l,R=_*_+q*q,W=(q<0?-1:1)*Math.acos(_/a(R)),j=(_*I-q*G<0?-1:1)*Math.acos((_*G+q*I)/a(R*(G*G+I*I)));isNaN(j)&&(j=y),!g&&j>0?j-=w:g&&j<0&&(j+=w),W%=w,j%=w;let z,H=Math.ceil(o(j)/(w/4)),Q=[],Z=j/H,U=4/3*s(Z/2)/(1+i(Z/2)),Y=x*r,k=p*r,B=p*-l,F=x*l;for(z=0;z<H;z++)C=i(h=W+z*Z),E=s(h),_=i(h+=Z),q=s(h),Q.push(C-U*E,E+U*C,_+U*q,q-U*_,_,q);for(z=0;z<Q.length;z+=2)C=Q[z],E=Q[z+1],Q[z]=C*Y+E*B+V,Q[z+1]=C*k+E*F+T;return Q[z-2]=u,Q[z-1]=f,Q}let h,c,g=()=>h||"undefined"!=typeof window&&(h=window.gsap)&&h.registerPlugin&&h,u=()=>{h=g(),h?(h.registerEase("_CE",M.create),c=1):console.warn("Please gsap.registerPlugin(CustomEase)")},f=e=>~~(1e3*e+(e<0?-.5:.5))/1e3,d=function(){return String.fromCharCode.apply(null,arguments)},x=d(103,114,101,101,110,115,111,99,107,46,99,111,109),p=function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(d(102,105,108,101,58,47,47))||-1!==e.indexOf(d(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(d(49,50,55,46,48,32,48,46,49)),s=[x,d(99,111,100,101,112,101,110,46,105,111),d(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),d(99,111,100,101,112,101,110,46,100,101,118),d(99,111,100,101,112,101,110,46,97,112,112),d(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),d(112,101,110,115,46,99,108,111,117,100),d(99,115,115,45,116,114,105,99,107,115,46,99,111,109),d(99,100,112,110,46,105,111),d(112,101,110,115,46,105,111),d(103,97,110,110,111,110,46,116,118),d(99,111,100,101,99,97,110,121,111,110,46,110,101,116),d(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),d(99,101,114,101,98,114,97,120,46,99,111,46,117,107),d(116,121,109,112,97,110,117,115,46,110,101,116),d(116,119,101,101,110,109,97,120,46,99,111,109),d(116,119,101,101,110,108,105,116,101,46,99,111,109),d(112,108,110,107,114,46,99,111),d(104,111,116,106,97,114,46,99,111,109),d(119,101,98,112,97,99,107,98,105,110,46,99,111,109),d(97,114,99,104,105,118,101,46,111,114,103),d(99,111,100,101,115,97,110,100,98,111,120,46,105,111),d(99,115,98,46,97,112,112),d(115,116,97,99,107,98,108,105,116,122,46,99,111,109),d(115,116,97,99,107,98,108,105,116,122,46,105,111),d(99,111,100,105,101,114,46,105,111),d(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),d(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),d(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),d(106,115,102,105,100,100,108,101,46,110,101,116)],i=function(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",i):(document.removeEventListener("readystatechange",i),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(d(37,99,87,97,114,110,105,110,103),d(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(d(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"CustomEase"+d(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(d(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),d(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},o=s.length;for(setTimeout(i,50);--o>-1;)if(-1!==e.indexOf(s[o]))return!0;return n||!setTimeout((function(){t&&(window.location.href=d(104,116,116,112,115,58,47,47)+x+d(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=CustomEase&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),y=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,w=/[cLlsSaAhHvVtTqQ]/g,m=function(e,t,n,s,i,o,a,r,l,h,c){let g,u=(e+n)/2,f=(t+s)/2,d=(n+i)/2,x=(s+o)/2,p=(i+a)/2,y=(o+r)/2,w=(u+d)/2,M=(f+x)/2,C=(d+p)/2,E=(x+y)/2,b=(w+C)/2,v=(M+E)/2,S=a-e,N=r-t,L=Math.abs((n-a)*N-(s-r)*S),O=Math.abs((i-a)*N-(o-r)*S);return h||(h=[{x:e,y:t},{x:a,y:r}],c=1),h.splice(c||h.length-1,0,{x:b,y:v}),(L+O)*(L+O)>l*(S*S+N*N)&&(g=h.length,m(e,t,u,f,w,M,b,v,l,h,c),m(b,v,C,E,p,y,a,r,l,h,c+1+(h.length-g))),h};class M{constructor(e,t,n){c||u(),this.id=e,p&&this.setData(t,n)}setData(n,s){s=s||{};let i,a,r,c,g,u,f,d,x,p=(n=n||"0,0,1,1").match(y),M=1,C=[],E=[],b=s.precision||1,v=b<=1;if(this.data=n,(w.test(n)||~n.indexOf("M")&&n.indexOf("C")<0)&&(p=function(n){let s,i,a,r,h,c,g,u,f,d,x,p,y,w,m,M=(n+"").replace(t,e=>{let t=+e;return t<1e-4&&t>-1e-4?0:t}).match(e)||[],C=[],E=0,b=0,v=M.length,S=0,N="ERROR: malformed path: "+n,L=function(e,t,n,s){d=(n-e)/3,x=(s-t)/3,g.push(e+d,t+x,n-d,s-x,n,s)};if(!n||!isNaN(M[0])||isNaN(M[1]))return console.log(N),C;for(s=0;s<v;s++)if(y=h,isNaN(M[s])?(h=M[s].toUpperCase(),c=h!==M[s]):s--,a=+M[s+1],r=+M[s+2],c&&(a+=E,r+=b),s||(u=a,f=r),"M"===h)g&&(g.length<8?C.length-=1:S+=g.length),E=u=a,b=f=r,g=[a,r],C.push(g),s+=2,h="L";else if("C"===h)g||(g=[0,0]),c||(E=b=0),g.push(a,r,E+1*M[s+3],b+1*M[s+4],E+=1*M[s+5],b+=1*M[s+6]),s+=6;else if("S"===h)d=E,x=b,"C"!==y&&"S"!==y||(d+=E-g[g.length-4],x+=b-g[g.length-3]),c||(E=b=0),g.push(d,x,a,r,E+=1*M[s+3],b+=1*M[s+4]),s+=4;else if("Q"===h)d=E+2/3*(a-E),x=b+2/3*(r-b),c||(E=b=0),E+=1*M[s+3],b+=1*M[s+4],g.push(d,x,E+2/3*(a-E),b+2/3*(r-b),E,b),s+=4;else if("T"===h)d=E-g[g.length-4],x=b-g[g.length-3],g.push(E+d,b+x,a+2/3*(E+1.5*d-a),r+2/3*(b+1.5*x-r),E=a,b=r),s+=2;else if("H"===h)L(E,b,E=a,b),s+=1;else if("V"===h)L(E,b,E,b=a+(c?b-E:0)),s+=1;else if("L"===h||"Z"===h)"Z"===h&&(a=u,r=f,g.closed=!0),("L"===h||o(E-a)>.5||o(b-r)>.5)&&(L(E,b,a,r),"L"===h&&(s+=2)),E=a,b=r;else if("A"===h){if(w=M[s+4],m=M[s+5],d=M[s+6],x=M[s+7],i=7,w.length>1&&(w.length<3?(x=d,d=m,i--):(x=m,d=w.substr(2),i-=2),m=w.charAt(1),w=w.charAt(0)),p=l(E,b,+M[s+1],+M[s+2],+M[s+3],+w,+m,(c?E:0)+1*d,(c?b:0)+1*x),s+=i,p)for(i=0;i<p.length;i++)g.push(p[i]);E=g[g.length-2],b=g[g.length-1]}else console.log(N);return s=g.length,s<6?(C.pop(),s=0):g[0]===g[s-2]&&g[1]===g[s-1]&&(g.closed=!0),C.totalPoints=S+s,C}(n)[0]),i=p.length,4===i)p.unshift(0,0),p.push(1,1),i=8;else if((i-2)%6)throw"Invalid CustomEase";for(0==+p[0]&&1==+p[i-2]||((e,t,n)=>{n||0===n||(n=Math.max(+e[e.length-1],+e[1]));let s,i=-1*+e[0],o=-n,a=e.length,r=1/(+e[a-2]+i),l=-t||(Math.abs(+e[a-1]-+e[1])<.01*(+e[a-2]-+e[0])?(e=>{let t,n=e.length,s=1e20;for(t=1;t<n;t+=6)+e[t]<s&&(s=+e[t]);return s})(e)+o:+e[a-1]+o);for(l=l?1/l:-r,s=0;s<a;s+=2)e[s]=(+e[s]+i)*r,e[s+1]=(+e[s+1]+o)*l})(p,s.height,s.originY),this.segment=p,c=2;c<i;c+=6)a={x:+p[c-2],y:+p[c-1]},r={x:+p[c+4],y:+p[c+5]},C.push(a,r),m(a.x,a.y,+p[c],+p[c+1],+p[c+2],+p[c+3],r.x,r.y,1/(2e5*b),C,C.length-1);for(i=C.length,c=0;c<i;c++)f=C[c],d=C[c-1]||f,(f.x>d.x||d.y!==f.y&&d.x===f.x||f===d)&&f.x<=1?(d.cx=f.x-d.x,d.cy=f.y-d.y,d.n=f,d.nx=f.x,v&&c>1&&Math.abs(d.cy/d.cx-C[c-2].cy/C[c-2].cx)>2&&(v=0),d.cx<M&&(d.cx?M=d.cx:(d.cx=.001,c===i-1&&(d.x-=.001,M=Math.min(M,.001),v=0)))):(C.splice(c--,1),i--);if(i=1/M+1|0,g=1/i,u=0,f=C[0],v){for(c=0;c<i;c++)x=c*g,f.nx<x&&(f=C[++u]),a=f.y+(x-f.x)/f.cx*f.cy,E[c]={x:x,cx:g,y:a,cy:0,nx:9},c&&(E[c-1].cy=a-E[c-1].y);E[i-1].cy=C[C.length-1].y-a}else{for(c=0;c<i;c++)f.nx<c*g&&(f=C[++u]),E[c]=f;u<C.length-1&&(E[c-1]=C[C.length-2])}return this.ease=e=>{let t=E[e*i|0]||E[i-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},this.ease.custom=this,this.id&&h&&h.registerEase(this.id,this.ease),this}getSVGData(e){return M.getSVGData(this,e)}static create(e,t,n){return new M(e,t,n).ease}static register(e){h=e,u()}static get(e){return h.parseEase(e)}static getSVGData(e,t){let n,s,i,o,a,l,c,g,u,d,x=(t=t||{}).width||100,p=t.height||100,y=t.x||0,w=(t.y||0)+p,m=h.utils.toArray(t.path)[0];if(t.invert&&(p=-p,w=0),"string"==typeof e&&(e=h.parseEase(e)),e.custom&&(e=e.custom),e instanceof M)n=function(e){"number"==typeof e[0]&&(e=[e]);let t,n,s,i,o="",a=e.length;for(n=0;n<a;n++){for(i=e[n],o+="M"+r(i[0])+","+r(i[1])+" C",t=i.length,s=2;s<t;s++)o+=r(i[s++])+","+r(i[s++])+" "+r(i[s++])+","+r(i[s++])+" "+r(i[s++])+","+r(i[s])+" ";i.closed&&(o+="z")}return o}(function(e,t,n,s,i,o,a){let r,l,h,c,g,u=e.length;for(;--u>-1;)for(r=e[u],l=r.length,h=0;h<l;h+=2)c=r[h],g=r[h+1],r[h]=c*t+g*s+o,r[h+1]=c*n+g*i+a;return e._dirty=1,e}([e.segment],x,0,0,-p,y,w));else{for(n=[y,w],c=Math.max(5,200*(t.precision||1)),o=1/c,c+=2,g=5/c,u=f(y+o*x),d=f(w+e(o)*-p),s=(d-w)/(u-y),i=2;i<c;i++)a=f(y+i*o*x),l=f(w+e(i*o)*-p),(Math.abs((l-d)/(a-u)-s)>g||i===c-1)&&(n.push(u,d),s=(l-d)/(a-u)),u=a,d=l;n="M"+n.join(",")}return m&&m.setAttribute("d",n),n}}g()&&h.registerPlugin(M),M.version="3.10.2";export default M;export{M as CustomEase}; | ||
let e=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,t=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,n=Math.PI/180,s=Math.sin,i=Math.cos,o=Math.abs,a=Math.sqrt,r=e=>Math.round(1e5*e)/1e5||0;function l(e,t,r,l,h,c,g,u,f){if(e===u&&t===f)return;r=o(r),l=o(l);let d=h%360*n,x=i(d),p=s(d),y=Math.PI,w=2*y,m=(e-u)/2,M=(t-f)/2,C=x*m+p*M,E=-p*m+x*M,b=C*C,v=E*E,S=b/(r*r)+v/(l*l);S>1&&(r=a(S)*r,l=a(S)*l);let N=r*r,L=l*l,O=(N*L-N*v-L*b)/(N*v+L*b);O<0&&(O=0);let P=(c===g?-1:1)*a(O),A=P*(r*E/l),D=P*(-l*C/r),V=(e+u)/2+(x*A-p*D),T=(t+f)/2+(p*A+x*D),_=(C-A)/r,q=(E-D)/l,G=(-C-A)/r,I=(-E-D)/l,R=_*_+q*q,W=(q<0?-1:1)*Math.acos(_/a(R)),j=(_*I-q*G<0?-1:1)*Math.acos((_*G+q*I)/a(R*(G*G+I*I)));isNaN(j)&&(j=y),!g&&j>0?j-=w:g&&j<0&&(j+=w),W%=w,j%=w;let z,H=Math.ceil(o(j)/(w/4)),Q=[],Z=j/H,U=4/3*s(Z/2)/(1+i(Z/2)),Y=x*r,k=p*r,B=p*-l,F=x*l;for(z=0;z<H;z++)C=i(h=W+z*Z),E=s(h),_=i(h+=Z),q=s(h),Q.push(C-U*E,E+U*C,_+U*q,q-U*_,_,q);for(z=0;z<Q.length;z+=2)C=Q[z],E=Q[z+1],Q[z]=C*Y+E*B+V,Q[z+1]=C*k+E*F+T;return Q[z-2]=u,Q[z-1]=f,Q}let h,c,g=()=>h||"undefined"!=typeof window&&(h=window.gsap)&&h.registerPlugin&&h,u=()=>{h=g(),h?(h.registerEase("_CE",M.create),c=1):console.warn("Please gsap.registerPlugin(CustomEase)")},f=e=>~~(1e3*e+(e<0?-.5:.5))/1e3,d=function(){return String.fromCharCode.apply(null,arguments)},x=d(103,114,101,101,110,115,111,99,107,46,99,111,109),p=function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(d(102,105,108,101,58,47,47))||-1!==e.indexOf(d(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(d(49,50,55,46,48,32,48,46,49)),s=[x,d(99,111,100,101,112,101,110,46,105,111),d(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),d(99,111,100,101,112,101,110,46,100,101,118),d(99,111,100,101,112,101,110,46,97,112,112),d(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),d(112,101,110,115,46,99,108,111,117,100),d(99,115,115,45,116,114,105,99,107,115,46,99,111,109),d(99,100,112,110,46,105,111),d(112,101,110,115,46,105,111),d(103,97,110,110,111,110,46,116,118),d(99,111,100,101,99,97,110,121,111,110,46,110,101,116),d(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),d(99,101,114,101,98,114,97,120,46,99,111,46,117,107),d(116,121,109,112,97,110,117,115,46,110,101,116),d(116,119,101,101,110,109,97,120,46,99,111,109),d(116,119,101,101,110,108,105,116,101,46,99,111,109),d(112,108,110,107,114,46,99,111),d(104,111,116,106,97,114,46,99,111,109),d(119,101,98,112,97,99,107,98,105,110,46,99,111,109),d(97,114,99,104,105,118,101,46,111,114,103),d(99,111,100,101,115,97,110,100,98,111,120,46,105,111),d(99,115,98,46,97,112,112),d(115,116,97,99,107,98,108,105,116,122,46,99,111,109),d(115,116,97,99,107,98,108,105,116,122,46,105,111),d(99,111,100,105,101,114,46,105,111),d(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),d(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),d(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),d(106,115,102,105,100,100,108,101,46,110,101,116)],i=function(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",i):(document.removeEventListener("readystatechange",i),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(d(37,99,87,97,114,110,105,110,103),d(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(d(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"CustomEase"+d(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(d(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),d(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},o=s.length;for(setTimeout(i,50);--o>-1;)if(-1!==e.indexOf(s[o]))return!0;return n||!setTimeout((function(){t&&(window.location.href=d(104,116,116,112,115,58,47,47)+x+d(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=CustomEase&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),y=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,w=/[cLlsSaAhHvVtTqQ]/g,m=function(e,t,n,s,i,o,a,r,l,h,c){let g,u=(e+n)/2,f=(t+s)/2,d=(n+i)/2,x=(s+o)/2,p=(i+a)/2,y=(o+r)/2,w=(u+d)/2,M=(f+x)/2,C=(d+p)/2,E=(x+y)/2,b=(w+C)/2,v=(M+E)/2,S=a-e,N=r-t,L=Math.abs((n-a)*N-(s-r)*S),O=Math.abs((i-a)*N-(o-r)*S);return h||(h=[{x:e,y:t},{x:a,y:r}],c=1),h.splice(c||h.length-1,0,{x:b,y:v}),(L+O)*(L+O)>l*(S*S+N*N)&&(g=h.length,m(e,t,u,f,w,M,b,v,l,h,c),m(b,v,C,E,p,y,a,r,l,h,c+1+(h.length-g))),h};class M{constructor(e,t,n){c||u(),this.id=e,p&&this.setData(t,n)}setData(n,s){s=s||{};let i,a,r,c,g,u,f,d,x,p=(n=n||"0,0,1,1").match(y),M=1,C=[],E=[],b=s.precision||1,v=b<=1;if(this.data=n,(w.test(n)||~n.indexOf("M")&&n.indexOf("C")<0)&&(p=function(n){let s,i,a,r,h,c,g,u,f,d,x,p,y,w,m,M=(n+"").replace(t,e=>{let t=+e;return t<1e-4&&t>-1e-4?0:t}).match(e)||[],C=[],E=0,b=0,v=M.length,S=0,N="ERROR: malformed path: "+n,L=function(e,t,n,s){d=(n-e)/3,x=(s-t)/3,g.push(e+d,t+x,n-d,s-x,n,s)};if(!n||!isNaN(M[0])||isNaN(M[1]))return console.log(N),C;for(s=0;s<v;s++)if(y=h,isNaN(M[s])?(h=M[s].toUpperCase(),c=h!==M[s]):s--,a=+M[s+1],r=+M[s+2],c&&(a+=E,r+=b),s||(u=a,f=r),"M"===h)g&&(g.length<8?C.length-=1:S+=g.length),E=u=a,b=f=r,g=[a,r],C.push(g),s+=2,h="L";else if("C"===h)g||(g=[0,0]),c||(E=b=0),g.push(a,r,E+1*M[s+3],b+1*M[s+4],E+=1*M[s+5],b+=1*M[s+6]),s+=6;else if("S"===h)d=E,x=b,"C"!==y&&"S"!==y||(d+=E-g[g.length-4],x+=b-g[g.length-3]),c||(E=b=0),g.push(d,x,a,r,E+=1*M[s+3],b+=1*M[s+4]),s+=4;else if("Q"===h)d=E+2/3*(a-E),x=b+2/3*(r-b),c||(E=b=0),E+=1*M[s+3],b+=1*M[s+4],g.push(d,x,E+2/3*(a-E),b+2/3*(r-b),E,b),s+=4;else if("T"===h)d=E-g[g.length-4],x=b-g[g.length-3],g.push(E+d,b+x,a+2/3*(E+1.5*d-a),r+2/3*(b+1.5*x-r),E=a,b=r),s+=2;else if("H"===h)L(E,b,E=a,b),s+=1;else if("V"===h)L(E,b,E,b=a+(c?b-E:0)),s+=1;else if("L"===h||"Z"===h)"Z"===h&&(a=u,r=f,g.closed=!0),("L"===h||o(E-a)>.5||o(b-r)>.5)&&(L(E,b,a,r),"L"===h&&(s+=2)),E=a,b=r;else if("A"===h){if(w=M[s+4],m=M[s+5],d=M[s+6],x=M[s+7],i=7,w.length>1&&(w.length<3?(x=d,d=m,i--):(x=m,d=w.substr(2),i-=2),m=w.charAt(1),w=w.charAt(0)),p=l(E,b,+M[s+1],+M[s+2],+M[s+3],+w,+m,(c?E:0)+1*d,(c?b:0)+1*x),s+=i,p)for(i=0;i<p.length;i++)g.push(p[i]);E=g[g.length-2],b=g[g.length-1]}else console.log(N);return s=g.length,s<6?(C.pop(),s=0):g[0]===g[s-2]&&g[1]===g[s-1]&&(g.closed=!0),C.totalPoints=S+s,C}(n)[0]),i=p.length,4===i)p.unshift(0,0),p.push(1,1),i=8;else if((i-2)%6)throw"Invalid CustomEase";for(0==+p[0]&&1==+p[i-2]||((e,t,n)=>{n||0===n||(n=Math.max(+e[e.length-1],+e[1]));let s,i=-1*+e[0],o=-n,a=e.length,r=1/(+e[a-2]+i),l=-t||(Math.abs(+e[a-1]-+e[1])<.01*(+e[a-2]-+e[0])?(e=>{let t,n=e.length,s=1e20;for(t=1;t<n;t+=6)+e[t]<s&&(s=+e[t]);return s})(e)+o:+e[a-1]+o);for(l=l?1/l:-r,s=0;s<a;s+=2)e[s]=(+e[s]+i)*r,e[s+1]=(+e[s+1]+o)*l})(p,s.height,s.originY),this.segment=p,c=2;c<i;c+=6)a={x:+p[c-2],y:+p[c-1]},r={x:+p[c+4],y:+p[c+5]},C.push(a,r),m(a.x,a.y,+p[c],+p[c+1],+p[c+2],+p[c+3],r.x,r.y,1/(2e5*b),C,C.length-1);for(i=C.length,c=0;c<i;c++)f=C[c],d=C[c-1]||f,(f.x>d.x||d.y!==f.y&&d.x===f.x||f===d)&&f.x<=1?(d.cx=f.x-d.x,d.cy=f.y-d.y,d.n=f,d.nx=f.x,v&&c>1&&Math.abs(d.cy/d.cx-C[c-2].cy/C[c-2].cx)>2&&(v=0),d.cx<M&&(d.cx?M=d.cx:(d.cx=.001,c===i-1&&(d.x-=.001,M=Math.min(M,.001),v=0)))):(C.splice(c--,1),i--);if(i=1/M+1|0,g=1/i,u=0,f=C[0],v){for(c=0;c<i;c++)x=c*g,f.nx<x&&(f=C[++u]),a=f.y+(x-f.x)/f.cx*f.cy,E[c]={x:x,cx:g,y:a,cy:0,nx:9},c&&(E[c-1].cy=a-E[c-1].y);E[i-1].cy=C[C.length-1].y-a}else{for(c=0;c<i;c++)f.nx<c*g&&(f=C[++u]),E[c]=f;u<C.length-1&&(E[c-1]=C[C.length-2])}return this.ease=e=>{let t=E[e*i|0]||E[i-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},this.ease.custom=this,this.id&&h&&h.registerEase(this.id,this.ease),this}getSVGData(e){return M.getSVGData(this,e)}static create(e,t,n){return new M(e,t,n).ease}static register(e){h=e,u()}static get(e){return h.parseEase(e)}static getSVGData(e,t){let n,s,i,o,a,l,c,g,u,d,x=(t=t||{}).width||100,p=t.height||100,y=t.x||0,w=(t.y||0)+p,m=h.utils.toArray(t.path)[0];if(t.invert&&(p=-p,w=0),"string"==typeof e&&(e=h.parseEase(e)),e.custom&&(e=e.custom),e instanceof M)n=function(e){"number"==typeof e[0]&&(e=[e]);let t,n,s,i,o="",a=e.length;for(n=0;n<a;n++){for(i=e[n],o+="M"+r(i[0])+","+r(i[1])+" C",t=i.length,s=2;s<t;s++)o+=r(i[s++])+","+r(i[s++])+" "+r(i[s++])+","+r(i[s++])+" "+r(i[s++])+","+r(i[s])+" ";i.closed&&(o+="z")}return o}(function(e,t,n,s,i,o,a){let r,l,h,c,g,u=e.length;for(;--u>-1;)for(r=e[u],l=r.length,h=0;h<l;h+=2)c=r[h],g=r[h+1],r[h]=c*t+g*s+o,r[h+1]=c*n+g*i+a;return e._dirty=1,e}([e.segment],x,0,0,-p,y,w));else{for(n=[y,w],c=Math.max(5,200*(t.precision||1)),o=1/c,c+=2,g=5/c,u=f(y+o*x),d=f(w+e(o)*-p),s=(d-w)/(u-y),i=2;i<c;i++)a=f(y+i*o*x),l=f(w+e(i*o)*-p),(Math.abs((l-d)/(a-u)-s)>g||i===c-1)&&(n.push(u,d),s=(l-d)/(a-u)),u=a,d=l;n="M"+n.join(",")}return m&&m.setAttribute("d",n),n}}g()&&h.registerPlugin(M),M.version="3.10.3";export default M;export{M as CustomEase}; |
/*! | ||
* CustomWiggle 3.10.2 | ||
* CustomWiggle 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
let e,t,n,o=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,i={easeOut:"M0,1,C0.7,1,0.6,0,1,0",easeInOut:"M0,0,C0.1,0,0.24,1,0.444,1,0.644,1,0.6,0,1,0",anticipate:"M0,0,C0,0.222,0.024,0.386,0,0.4,0.18,0.455,0.65,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1",uniform:"M0,0,C0,0.95,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0"},a=e=>e,s=a=>{if(!t)if(e=o(),n=e&&e.parseEase("_CE"),n){for(let e in i)i[e]=n("",i[e]);t=1,d("wiggle").config=e=>"object"==typeof e?d("",e):d("wiggle("+e+")",{wiggles:+e})}else a&&console.warn("Please gsap.registerPlugin(CustomEase, CustomWiggle)")},r=(t,o)=>("function"!=typeof t&&(t=e.parseEase(t)||n("",t)),t.custom||!o?t:e=>1-t(e)),g=function(){return String.fromCharCode.apply(null,arguments)},u=g(103,114,101,101,110,115,111,99,107,46,99,111,109),l=function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(g(102,105,108,101,58,47,47))||-1!==e.indexOf(g(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(g(49,50,55,46,48,32,48,46,49)),o=[u,g(99,111,100,101,112,101,110,46,105,111),g(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),g(99,111,100,101,112,101,110,46,100,101,118),g(99,111,100,101,112,101,110,46,97,112,112),g(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),g(112,101,110,115,46,99,108,111,117,100),g(99,115,115,45,116,114,105,99,107,115,46,99,111,109),g(99,100,112,110,46,105,111),g(112,101,110,115,46,105,111),g(103,97,110,110,111,110,46,116,118),g(99,111,100,101,99,97,110,121,111,110,46,110,101,116),g(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),g(99,101,114,101,98,114,97,120,46,99,111,46,117,107),g(116,121,109,112,97,110,117,115,46,110,101,116),g(116,119,101,101,110,109,97,120,46,99,111,109),g(116,119,101,101,110,108,105,116,101,46,99,111,109),g(112,108,110,107,114,46,99,111),g(104,111,116,106,97,114,46,99,111,109),g(119,101,98,112,97,99,107,98,105,110,46,99,111,109),g(97,114,99,104,105,118,101,46,111,114,103),g(99,111,100,101,115,97,110,100,98,111,120,46,105,111),g(99,115,98,46,97,112,112),g(115,116,97,99,107,98,108,105,116,122,46,99,111,109),g(115,116,97,99,107,98,108,105,116,122,46,105,111),g(99,111,100,105,101,114,46,105,111),g(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),g(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),g(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),g(106,115,102,105,100,100,108,101,46,110,101,116)],i=function(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",i):(document.removeEventListener("readystatechange",i),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(g(37,99,87,97,114,110,105,110,103),g(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(g(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"CustomWiggle"+g(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(g(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),g(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},a=o.length;for(setTimeout(i,50);--a>-1;)if(-1!==e.indexOf(o[a]))return!0;return n||!setTimeout((function(){t&&(window.location.href=g(104,116,116,112,115,58,47,47)+u+g(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=CustomWiggle&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),d=(e,o)=>{t||s(1);let g,u,d,c,f,p,w,h,m,y=0|((o=o||{}).wiggles||10),C=1/y,E=C/2,M="anticipate"===o.type,O=i[o.type]||i.easeOut,v=a;if(l){if(M&&(v=O,O=i.easeOut),o.timingEase&&(v=r(o.timingEase)),o.amplitudeEase&&(O=r(o.amplitudeEase,!0)),p=v(E),w=M?-O(E):O(E),h=[0,0,p/4,0,p/2,w,p,w],"random"===o.type){for(h.length=4,g=v(C),u=2*Math.random()-1,m=2;m<y;m++)E=g,w=u,g=v(C*m),u=2*Math.random()-1,d=Math.atan2(u-h[h.length-3],g-h[h.length-4]),c=Math.cos(d)*C,f=Math.sin(d)*C,h.push(E-c,w-f,E,w,E+c,w+f);h.push(g,0,1,0)}else{for(m=1;m<y;m++)h.push(v(E+C/2),w),E+=C,w=(w>0?-1:1)*O(m*C),p=v(E),h.push(v(E-C/2),w,p,w);h.push(v(E+C/4),w,v(E+C/4),0,1,0)}for(m=h.length;--m>-1;)h[m]=~~(1e3*h[m])/1e3;return h[2]="C"+h[2],n(e,"M"+h.join(","))}};class c{constructor(e,t){this.ease=d(e,t)}static create(e,t){return d(e,t)}static register(t){e=t,s()}}o()&&e.registerPlugin(c),c.version="3.10.2";export default c;export{c as CustomWiggle}; | ||
let e,t,n,o=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,i={easeOut:"M0,1,C0.7,1,0.6,0,1,0",easeInOut:"M0,0,C0.1,0,0.24,1,0.444,1,0.644,1,0.6,0,1,0",anticipate:"M0,0,C0,0.222,0.024,0.386,0,0.4,0.18,0.455,0.65,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1",uniform:"M0,0,C0,0.95,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0"},a=e=>e,s=a=>{if(!t)if(e=o(),n=e&&e.parseEase("_CE"),n){for(let e in i)i[e]=n("",i[e]);t=1,d("wiggle").config=e=>"object"==typeof e?d("",e):d("wiggle("+e+")",{wiggles:+e})}else a&&console.warn("Please gsap.registerPlugin(CustomEase, CustomWiggle)")},r=(t,o)=>("function"!=typeof t&&(t=e.parseEase(t)||n("",t)),t.custom||!o?t:e=>1-t(e)),g=function(){return String.fromCharCode.apply(null,arguments)},u=g(103,114,101,101,110,115,111,99,107,46,99,111,109),l=function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(g(102,105,108,101,58,47,47))||-1!==e.indexOf(g(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(g(49,50,55,46,48,32,48,46,49)),o=[u,g(99,111,100,101,112,101,110,46,105,111),g(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),g(99,111,100,101,112,101,110,46,100,101,118),g(99,111,100,101,112,101,110,46,97,112,112),g(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),g(112,101,110,115,46,99,108,111,117,100),g(99,115,115,45,116,114,105,99,107,115,46,99,111,109),g(99,100,112,110,46,105,111),g(112,101,110,115,46,105,111),g(103,97,110,110,111,110,46,116,118),g(99,111,100,101,99,97,110,121,111,110,46,110,101,116),g(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),g(99,101,114,101,98,114,97,120,46,99,111,46,117,107),g(116,121,109,112,97,110,117,115,46,110,101,116),g(116,119,101,101,110,109,97,120,46,99,111,109),g(116,119,101,101,110,108,105,116,101,46,99,111,109),g(112,108,110,107,114,46,99,111),g(104,111,116,106,97,114,46,99,111,109),g(119,101,98,112,97,99,107,98,105,110,46,99,111,109),g(97,114,99,104,105,118,101,46,111,114,103),g(99,111,100,101,115,97,110,100,98,111,120,46,105,111),g(99,115,98,46,97,112,112),g(115,116,97,99,107,98,108,105,116,122,46,99,111,109),g(115,116,97,99,107,98,108,105,116,122,46,105,111),g(99,111,100,105,101,114,46,105,111),g(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),g(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),g(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),g(106,115,102,105,100,100,108,101,46,110,101,116)],i=function(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",i):(document.removeEventListener("readystatechange",i),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(g(37,99,87,97,114,110,105,110,103),g(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(g(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"CustomWiggle"+g(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(g(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),g(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},a=o.length;for(setTimeout(i,50);--a>-1;)if(-1!==e.indexOf(o[a]))return!0;return n||!setTimeout((function(){t&&(window.location.href=g(104,116,116,112,115,58,47,47)+u+g(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=CustomWiggle&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),d=(e,o)=>{t||s(1);let g,u,d,c,f,p,w,h,m,y=0|((o=o||{}).wiggles||10),C=1/y,E=C/2,M="anticipate"===o.type,O=i[o.type]||i.easeOut,v=a;if(l){if(M&&(v=O,O=i.easeOut),o.timingEase&&(v=r(o.timingEase)),o.amplitudeEase&&(O=r(o.amplitudeEase,!0)),p=v(E),w=M?-O(E):O(E),h=[0,0,p/4,0,p/2,w,p,w],"random"===o.type){for(h.length=4,g=v(C),u=2*Math.random()-1,m=2;m<y;m++)E=g,w=u,g=v(C*m),u=2*Math.random()-1,d=Math.atan2(u-h[h.length-3],g-h[h.length-4]),c=Math.cos(d)*C,f=Math.sin(d)*C,h.push(E-c,w-f,E,w,E+c,w+f);h.push(g,0,1,0)}else{for(m=1;m<y;m++)h.push(v(E+C/2),w),E+=C,w=(w>0?-1:1)*O(m*C),p=v(E),h.push(v(E-C/2),w,p,w);h.push(v(E+C/4),w,v(E+C/4),0,1,0)}for(m=h.length;--m>-1;)h[m]=~~(1e3*h[m])/1e3;return h[2]="C"+h[2],n(e,"M"+h.join(","))}};class c{constructor(e,t){this.ease=d(e,t)}static create(e,t){return d(e,t)}static register(t){e=t,s()}}o()&&e.registerPlugin(c),c.version="3.10.3";export default c;export{c as CustomWiggle}; |
/*! | ||
* CSSRulePlugin 3.10.2 | ||
* CSSRulePlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function h(){return"undefined"!=typeof window}function i(){return t||h()&&(t=window.gsap)&&t.registerPlugin&&t}function j(){return n||(s(),o||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),n}var t,n,c,o,s=function _initCore(e){t=e||i(),h()&&(c=document),t&&(o=t.plugins.css)&&(n=1)},r={version:"3.10.2",name:"cssRule",init:function init(e,t,n,i,s){if(!j()||void 0===e.cssText)return!1;var r=e._gsProxy=e._gsProxy||c.createElement("div");this.ss=e,this.style=r.style,r.style.cssText=e.cssText,o.prototype.init.call(this,r,t,n,i,s)},render:function render(e,t){for(var n,i=t._pt,s=t.style,r=t.ss;i;)i.r(e,i.d),i=i._next;for(n=s.length;-1<--n;)r[s[n]]=s[s[n]]},getRule:function getRule(e){j();var t,n,i,s,r=c.all?"rules":"cssRules",o=c.styleSheets,l=o.length,u=":"===e.charAt(0);for(e=(u?"":",")+e.split("::").join(":").toLowerCase()+",",u&&(s=[]);l--;){try{if(!(n=o[l][r]))continue;t=n.length}catch(e){console.warn(e);continue}for(;-1<--t;)if((i=n[t]).selectorText&&-1!==(","+i.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)){if(!u)return i.style;s.push(i.style)}}return s},register:s};i()&&t.registerPlugin(r),e.CSSRulePlugin=r,e.default=r;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function h(){return"undefined"!=typeof window}function i(){return t||h()&&(t=window.gsap)&&t.registerPlugin&&t}function j(){return n||(s(),o||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),n}var t,n,c,o,s=function _initCore(e){t=e||i(),h()&&(c=document),t&&(o=t.plugins.css)&&(n=1)},r={version:"3.10.3",name:"cssRule",init:function init(e,t,n,i,s){if(!j()||void 0===e.cssText)return!1;var r=e._gsProxy=e._gsProxy||c.createElement("div");this.ss=e,this.style=r.style,r.style.cssText=e.cssText,o.prototype.init.call(this,r,t,n,i,s)},render:function render(e,t){for(var n,i=t._pt,s=t.style,r=t.ss;i;)i.r(e,i.d),i=i._next;for(n=s.length;-1<--n;)r[s[n]]=s[s[n]]},getRule:function getRule(e){j();var t,n,i,s,r=c.all?"rules":"cssRules",o=c.styleSheets,l=o.length,u=":"===e.charAt(0);for(e=(u?"":",")+e.split("::").join(":").toLowerCase()+",",u&&(s=[]);l--;){try{if(!(n=o[l][r]))continue;t=n.length}catch(e){console.warn(e);continue}for(;-1<--t;)if((i=n[t]).selectorText&&-1!==(","+i.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)){if(!u)return i.style;s.push(i.style)}}return s},register:s};i()&&t.registerPlugin(r),e.CSSRulePlugin=r,e.default=r;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* CustomBounce 3.10.2 | ||
* CustomBounce 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function g(){return n||"undefined"!=typeof window&&(n=window.gsap)&&n.registerPlugin&&n}function h(e){n=g(),(B=n&&n.parseEase("_CE"))?(x=1,n.parseEase("bounce").config=function(e){return"object"==typeof e?t("",e):t("bounce("+e+")",{strength:+e})}):e&&console.warn("Please gsap.registerPlugin(CustomEase, CustomBounce)")}function i(e){var n,t=e.length,o=1/e[t-2];for(n=2;n<t;n+=2)e[n]=~~(e[n]*o*1e3)/1e3;e[t-2]=1}function l(){return String.fromCharCode.apply(null,arguments)}var n,x,B,r="CustomBounce",u=l(103,114,101,101,110,115,111,99,107,46,99,111,109),b=function(e){var n="undefined"!=typeof window,t=0===(n?window.location.href:"").indexOf(l(102,105,108,101,58,47,47))||-1!==e.indexOf(l(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(l(49,50,55,46,48,32,48,46,49)),o=[u,l(99,111,100,101,112,101,110,46,105,111),l(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),l(99,111,100,101,112,101,110,46,100,101,118),l(99,111,100,101,112,101,110,46,97,112,112),l(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),l(112,101,110,115,46,99,108,111,117,100),l(99,115,115,45,116,114,105,99,107,115,46,99,111,109),l(99,100,112,110,46,105,111),l(112,101,110,115,46,105,111),l(103,97,110,110,111,110,46,116,118),l(99,111,100,101,99,97,110,121,111,110,46,110,101,116),l(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),l(99,101,114,101,98,114,97,120,46,99,111,46,117,107),l(116,121,109,112,97,110,117,115,46,110,101,116),l(116,119,101,101,110,109,97,120,46,99,111,109),l(116,119,101,101,110,108,105,116,101,46,99,111,109),l(112,108,110,107,114,46,99,111),l(104,111,116,106,97,114,46,99,111,109),l(119,101,98,112,97,99,107,98,105,110,46,99,111,109),l(97,114,99,104,105,118,101,46,111,114,103),l(99,111,100,101,115,97,110,100,98,111,120,46,105,111),l(99,115,98,46,97,112,112),l(115,116,97,99,107,98,108,105,116,122,46,99,111,109),l(115,116,97,99,107,98,108,105,116,122,46,105,111),l(99,111,100,105,101,114,46,105,111),l(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),l(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),l(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),l(106,115,102,105,100,100,108,101,46,110,101,116)],i=o.length;for(setTimeout(function checkWarn(){n&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),n&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(l(37,99,87,97,114,110,105,110,103),l(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(l(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+r+l(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(l(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),l(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--i;)if(-1!==e.indexOf(o[i]))return!0;return t||!setTimeout(function(){n&&(window.location.href=l(104,116,116,112,115,58,47,47)+u+l(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+r+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),t=function _create(e,n){if(x||h(1),n=n||{},b){var t,o,l,r,u,s,a,c=Math.min(.999,n.strength||.7),f=c,d=(n.squash||0)/100,g=d,w=1/.03,p=.2,m=1,y=.1,C=[0,0,.07,0,.1,1,.1,1],v=[0,0,0,0,.1,0,.1,0];for(u=0;u<200&&(s=y+(p*=f*((f+1)/2)),r=1-(m*=c*c),o=(l=y+.49*p)+.8*(l-(t=y+m/w)),d&&(y+=d,t+=d,l+=d,o+=d,s+=d,a=d/g,v.push(y-d,0,y-d,a,y-d/2,a,y,a,y,0,y,0,y,-.6*a,y+(s-y)/6,0,s,0),C.push(y-d,1,y,1,y,1),d*=c*c),C.push(y,1,t,r,l,r,o,r,s,1,s,1),c*=.95,w=m/(s-o),y=s,!(.999<r));u++);if(n.endAtStart&&"false"!==n.endAtStart){if(l=-.1,C.unshift(l,1,l,1,-.07,0),g)for(l-=d=2.5*g,C.unshift(l,1,l,1,l,1),v.splice(0,6),v.unshift(l,0,l,0,l,1,l+d/2,1,l+d,1,l+d,0,l+d,0,l+d,-.6,l+d+.033,0),u=0;u<v.length;u+=2)v[u]-=l;for(u=0;u<C.length;u+=2)C[u]-=l,C[u+1]=1-C[u+1]}return d&&(i(v),v[2]="C"+v[2],B(n.squashID||e+"-squash","M"+v.join(","))),i(C),C[2]="C"+C[2],B(e,"M"+C.join(","))}},o=(CustomBounce.create=function create(e,n){return t(e,n)},CustomBounce.register=function register(e){n=e,h()},CustomBounce);function CustomBounce(e,n){this.ease=t(e,n)}g()&&n.registerPlugin(o),o.version="3.10.2",e.CustomBounce=o,e.default=o;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function g(){return n||"undefined"!=typeof window&&(n=window.gsap)&&n.registerPlugin&&n}function h(e){n=g(),(B=n&&n.parseEase("_CE"))?(x=1,n.parseEase("bounce").config=function(e){return"object"==typeof e?t("",e):t("bounce("+e+")",{strength:+e})}):e&&console.warn("Please gsap.registerPlugin(CustomEase, CustomBounce)")}function i(e){var n,t=e.length,o=1/e[t-2];for(n=2;n<t;n+=2)e[n]=~~(e[n]*o*1e3)/1e3;e[t-2]=1}function l(){return String.fromCharCode.apply(null,arguments)}var n,x,B,r="CustomBounce",u=l(103,114,101,101,110,115,111,99,107,46,99,111,109),b=function(e){var n="undefined"!=typeof window,t=0===(n?window.location.href:"").indexOf(l(102,105,108,101,58,47,47))||-1!==e.indexOf(l(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(l(49,50,55,46,48,32,48,46,49)),o=[u,l(99,111,100,101,112,101,110,46,105,111),l(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),l(99,111,100,101,112,101,110,46,100,101,118),l(99,111,100,101,112,101,110,46,97,112,112),l(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),l(112,101,110,115,46,99,108,111,117,100),l(99,115,115,45,116,114,105,99,107,115,46,99,111,109),l(99,100,112,110,46,105,111),l(112,101,110,115,46,105,111),l(103,97,110,110,111,110,46,116,118),l(99,111,100,101,99,97,110,121,111,110,46,110,101,116),l(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),l(99,101,114,101,98,114,97,120,46,99,111,46,117,107),l(116,121,109,112,97,110,117,115,46,110,101,116),l(116,119,101,101,110,109,97,120,46,99,111,109),l(116,119,101,101,110,108,105,116,101,46,99,111,109),l(112,108,110,107,114,46,99,111),l(104,111,116,106,97,114,46,99,111,109),l(119,101,98,112,97,99,107,98,105,110,46,99,111,109),l(97,114,99,104,105,118,101,46,111,114,103),l(99,111,100,101,115,97,110,100,98,111,120,46,105,111),l(99,115,98,46,97,112,112),l(115,116,97,99,107,98,108,105,116,122,46,99,111,109),l(115,116,97,99,107,98,108,105,116,122,46,105,111),l(99,111,100,105,101,114,46,105,111),l(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),l(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),l(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),l(106,115,102,105,100,100,108,101,46,110,101,116)],i=o.length;for(setTimeout(function checkWarn(){n&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),n&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(l(37,99,87,97,114,110,105,110,103),l(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(l(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+r+l(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(l(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),l(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--i;)if(-1!==e.indexOf(o[i]))return!0;return t||!setTimeout(function(){n&&(window.location.href=l(104,116,116,112,115,58,47,47)+u+l(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+r+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),t=function _create(e,n){if(x||h(1),n=n||{},b){var t,o,l,r,u,s,a,c=Math.min(.999,n.strength||.7),f=c,d=(n.squash||0)/100,g=d,w=1/.03,p=.2,m=1,y=.1,C=[0,0,.07,0,.1,1,.1,1],v=[0,0,0,0,.1,0,.1,0];for(u=0;u<200&&(s=y+(p*=f*((f+1)/2)),r=1-(m*=c*c),o=(l=y+.49*p)+.8*(l-(t=y+m/w)),d&&(y+=d,t+=d,l+=d,o+=d,s+=d,a=d/g,v.push(y-d,0,y-d,a,y-d/2,a,y,a,y,0,y,0,y,-.6*a,y+(s-y)/6,0,s,0),C.push(y-d,1,y,1,y,1),d*=c*c),C.push(y,1,t,r,l,r,o,r,s,1,s,1),c*=.95,w=m/(s-o),y=s,!(.999<r));u++);if(n.endAtStart&&"false"!==n.endAtStart){if(l=-.1,C.unshift(l,1,l,1,-.07,0),g)for(l-=d=2.5*g,C.unshift(l,1,l,1,l,1),v.splice(0,6),v.unshift(l,0,l,0,l,1,l+d/2,1,l+d,1,l+d,0,l+d,0,l+d,-.6,l+d+.033,0),u=0;u<v.length;u+=2)v[u]-=l;for(u=0;u<C.length;u+=2)C[u]-=l,C[u+1]=1-C[u+1]}return d&&(i(v),v[2]="C"+v[2],B(n.squashID||e+"-squash","M"+v.join(","))),i(C),C[2]="C"+C[2],B(e,"M"+C.join(","))}},o=(CustomBounce.create=function create(e,n){return t(e,n)},CustomBounce.register=function register(e){n=e,h()},CustomBounce);function CustomBounce(e,n){this.ease=t(e,n)}g()&&n.registerPlugin(o),o.version="3.10.3",e.CustomBounce=o,e.default=o;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* CustomEase 3.10.2 | ||
* CustomEase 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function m(e){return Math.round(1e5*e)/1e5||0}var b=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,w=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Y=Math.PI/180,k=Math.sin,B=Math.cos,F=Math.abs,J=Math.sqrt;function arcToSegment(e,t,n,s,a,r,i,o,h){if(e!==o||t!==h){n=F(n),s=F(s);var u=a%360*Y,f=B(u),c=k(u),l=Math.PI,g=2*l,x=(e-o)/2,d=(t-h)/2,m=f*x+c*d,p=-c*x+f*d,y=m*m,M=p*p,v=y/(n*n)+M/(s*s);1<v&&(n=J(v)*n,s=J(v)*s);var C=n*n,E=s*s,b=(C*E-C*M-E*y)/(C*M+E*y);b<0&&(b=0);var w=(r===i?-1:1)*J(b),P=n*p/s*w,S=-s*m/n*w,N=f*P-c*S+(e+o)/2,D=c*P+f*S+(t+h)/2,T=(m-P)/n,V=(p-S)/s,_=(-m-P)/n,q=(-p-S)/s,A=T*T+V*V,R=(V<0?-1:1)*Math.acos(T/J(A)),G=(T*q-V*_<0?-1:1)*Math.acos((T*_+V*q)/J(A*(_*_+q*q)));isNaN(G)&&(G=l),!i&&0<G?G-=g:i&&G<0&&(G+=g),R%=g,G%=g;var L,O=Math.ceil(F(G)/(g/4)),j=[],z=G/O,I=4/3*k(z/2)/(1+B(z/2)),H=f*n,Q=c*n,Z=c*-s,U=f*s;for(L=0;L<O;L++)m=B(a=R+L*z),p=k(a),T=B(a+=z),V=k(a),j.push(m-I*p,p+I*m,T+I*V,V-I*T,T,V);for(L=0;L<j.length;L+=2)m=j[L],p=j[L+1],j[L]=m*H+p*Z+N,j[L+1]=m*Q+p*U+D;return j[L-2]=o,j[L-1]=h,j}}function stringToRawPath(e){function db(e,t,n,s){f=(n-e)/3,c=(s-t)/3,o.push(e+f,t+c,n-f,s-c,n,s)}var t,n,s,a,r,i,o,h,u,f,c,l,g,x,d,m=(e+"").replace(w,function(e){var t=+e;return t<1e-4&&-1e-4<t?0:t}).match(b)||[],p=[],y=0,M=0,v=m.length,C=0,E="ERROR: malformed path: "+e;if(!e||!isNaN(m[0])||isNaN(m[1]))return console.log(E),p;for(t=0;t<v;t++)if(g=r,isNaN(m[t])?i=(r=m[t].toUpperCase())!==m[t]:t--,s=+m[t+1],a=+m[t+2],i&&(s+=y,a+=M),t||(h=s,u=a),"M"===r)o&&(o.length<8?--p.length:C+=o.length),y=h=s,M=u=a,o=[s,a],p.push(o),t+=2,r="L";else if("C"===r)i||(y=M=0),(o=o||[0,0]).push(s,a,y+1*m[t+3],M+1*m[t+4],y+=1*m[t+5],M+=1*m[t+6]),t+=6;else if("S"===r)f=y,c=M,"C"!==g&&"S"!==g||(f+=y-o[o.length-4],c+=M-o[o.length-3]),i||(y=M=0),o.push(f,c,s,a,y+=1*m[t+3],M+=1*m[t+4]),t+=4;else if("Q"===r)f=y+2/3*(s-y),c=M+2/3*(a-M),i||(y=M=0),y+=1*m[t+3],M+=1*m[t+4],o.push(f,c,y+2/3*(s-y),M+2/3*(a-M),y,M),t+=4;else if("T"===r)f=y-o[o.length-4],c=M-o[o.length-3],o.push(y+f,M+c,s+2/3*(y+1.5*f-s),a+2/3*(M+1.5*c-a),y=s,M=a),t+=2;else if("H"===r)db(y,M,y=s,M),t+=1;else if("V"===r)db(y,M,y,M=s+(i?M-y:0)),t+=1;else if("L"===r||"Z"===r)"Z"===r&&(s=h,a=u,o.closed=!0),("L"===r||.5<F(y-s)||.5<F(M-a))&&(db(y,M,s,a),"L"===r&&(t+=2)),y=s,M=a;else if("A"===r){if(x=m[t+4],d=m[t+5],f=m[t+6],c=m[t+7],n=7,1<x.length&&(x.length<3?(c=f,f=d,n--):(c=d,f=x.substr(2),n-=2),d=x.charAt(1),x=x.charAt(0)),l=arcToSegment(y,M,+m[t+1],+m[t+2],+m[t+3],+x,+d,(i?y:0)+1*f,(i?M:0)+1*c),t+=n,l)for(n=0;n<l.length;n++)o.push(l[n]);y=o[o.length-2],M=o[o.length-1]}else console.log(E);return(t=o.length)<6?(p.pop(),t=0):o[0]===o[t-2]&&o[1]===o[t-1]&&(o.closed=!0),p.totalPoints=C+t,p}function p(){return M||"undefined"!=typeof window&&(M=window.gsap)&&M.registerPlugin&&M}function q(){(M=p())?(M.registerEase("_CE",n.create),a=1):console.warn("Please gsap.registerPlugin(CustomEase)")}function s(e){return~~(1e3*e+(e<0?-.5:.5))/1e3}function x(e,t,n,s,a,r,i,o,h,u,f){var c,l=(e+n)/2,g=(t+s)/2,d=(n+a)/2,m=(s+r)/2,p=(a+i)/2,y=(r+o)/2,M=(l+d)/2,v=(g+m)/2,C=(d+p)/2,E=(m+y)/2,b=(M+C)/2,w=(v+E)/2,P=i-e,S=o-t,N=Math.abs((n-i)*S-(s-o)*P),D=Math.abs((a-i)*S-(r-o)*P);return u||(u=[{x:e,y:t},{x:i,y:o}],f=1),u.splice(f||u.length-1,0,{x:b,y:w}),h*(P*P+S*S)<(N+D)*(N+D)&&(c=u.length,x(e,t,l,g,M,v,b,w,h,u,f),x(b,w,C,E,p,y,i,o,h,u,f+1+(u.length-c))),u}var M,a,t,y=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,v=/[cLlsSaAhHvVtTqQ]/g,n=((t=CustomEase.prototype).setData=function setData(e,t){t=t||{};var n,s,a,r,i,o,h,u,f,c=(e=e||"0,0,1,1").match(y),l=1,g=[],d=[],m=t.precision||1,p=m<=1;if(this.data=e,(v.test(e)||~e.indexOf("M")&&e.indexOf("C")<0)&&(c=stringToRawPath(e)[0]),4===(n=c.length))c.unshift(0,0),c.push(1,1),n=8;else if((n-2)%6)throw"Invalid CustomEase";for(0==+c[0]&&1==+c[n-2]||function _normalize(e,t,n){n||0===n||(n=Math.max(+e[e.length-1],+e[1]));var s,a=-1*e[0],r=-n,i=e.length,o=1/(+e[i-2]+a),h=-t||(Math.abs(e[i-1]-e[1])<.01*(e[i-2]-e[0])?function _findMinimum(e){var t,n=e.length,s=1e20;for(t=1;t<n;t+=6)+e[t]<s&&(s=+e[t]);return s}(e)+r:+e[i-1]+r);for(h=h?1/h:-o,s=0;s<i;s+=2)e[s]=(+e[s]+a)*o,e[s+1]=(+e[s+1]+r)*h}(c,t.height,t.originY),this.segment=c,r=2;r<n;r+=6)s={x:+c[r-2],y:+c[r-1]},a={x:+c[r+4],y:+c[r+5]},g.push(s,a),x(s.x,s.y,+c[r],+c[r+1],+c[r+2],+c[r+3],a.x,a.y,1/(2e5*m),g,g.length-1);for(n=g.length,r=0;r<n;r++)h=g[r],u=g[r-1]||h,(h.x>u.x||u.y!==h.y&&u.x===h.x||h===u)&&h.x<=1?(u.cx=h.x-u.x,u.cy=h.y-u.y,u.n=h,u.nx=h.x,p&&1<r&&2<Math.abs(u.cy/u.cx-g[r-2].cy/g[r-2].cx)&&(p=0),u.cx<l&&(u.cx?l=u.cx:(u.cx=.001,r===n-1&&(u.x-=.001,l=Math.min(l,.001),p=0)))):(g.splice(r--,1),n--);if(i=1/(n=1/l+1|0),h=g[o=0],p){for(r=0;r<n;r++)f=r*i,h.nx<f&&(h=g[++o]),s=h.y+(f-h.x)/h.cx*h.cy,d[r]={x:f,cx:i,y:s,cy:0,nx:9},r&&(d[r-1].cy=s-d[r-1].y);d[n-1].cy=g[g.length-1].y-s}else{for(r=0;r<n;r++)h.nx<r*i&&(h=g[++o]),d[r]=h;o<g.length-1&&(d[r-1]=g[g.length-2])}return this.ease=function(e){var t=d[e*n|0]||d[n-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},(this.ease.custom=this).id&&M&&M.registerEase(this.id,this.ease),this},t.getSVGData=function getSVGData(e){return CustomEase.getSVGData(this,e)},CustomEase.create=function create(e,t,n){return new CustomEase(e,t,n).ease},CustomEase.register=function register(e){M=e,q()},CustomEase.get=function get(e){return M.parseEase(e)},CustomEase.getSVGData=function getSVGData(e,t){var n,a,r,i,o,h,u,f,c,l,g=(t=t||{}).width||100,x=t.height||100,d=t.x||0,p=(t.y||0)+x,y=M.utils.toArray(t.path)[0];if(t.invert&&(x=-x,p=0),"string"==typeof e&&(e=M.parseEase(e)),e.custom&&(e=e.custom),e instanceof CustomEase)n=function rawPathToString(e){!function _isNumber(e){return"number"==typeof e}(e[0])||(e=[e]);var t,n,s,a,r="",i=e.length;for(n=0;n<i;n++){for(a=e[n],r+="M"+m(a[0])+","+m(a[1])+" C",t=a.length,s=2;s<t;s++)r+=m(a[s++])+","+m(a[s++])+" "+m(a[s++])+","+m(a[s++])+" "+m(a[s++])+","+m(a[s])+" ";a.closed&&(r+="z")}return r}(function transformRawPath(e,t,n,s,a,r,i){for(var o,h,u,f,c,l=e.length;-1<--l;)for(h=(o=e[l]).length,u=0;u<h;u+=2)f=o[u],c=o[u+1],o[u]=f*t+c*s+r,o[u+1]=f*n+c*a+i;return e._dirty=1,e}([e.segment],g,0,0,-x,d,p));else{for(n=[d,p],i=1/(u=Math.max(5,200*(t.precision||1))),f=5/(u+=2),c=s(d+i*g),a=((l=s(p+e(i)*-x))-p)/(c-d),r=2;r<u;r++)o=s(d+r*i*g),h=s(p+e(r*i)*-x),(Math.abs((h-l)/(o-c)-a)>f||r===u-1)&&(n.push(c,l),a=(h-l)/(o-c)),c=o,l=h;n="M"+n.join(",")}return y&&y.setAttribute("d",n),n},CustomEase);function CustomEase(e,t,n){a||q(),this.id=e,this.setData(t,n)}p()&&M.registerPlugin(n),n.version="3.10.2",e.CustomEase=n,e.default=n;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function m(e){return Math.round(1e5*e)/1e5||0}var b=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,w=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Y=Math.PI/180,k=Math.sin,B=Math.cos,F=Math.abs,J=Math.sqrt;function arcToSegment(e,t,n,s,a,r,i,o,h){if(e!==o||t!==h){n=F(n),s=F(s);var u=a%360*Y,f=B(u),c=k(u),l=Math.PI,g=2*l,x=(e-o)/2,d=(t-h)/2,m=f*x+c*d,p=-c*x+f*d,y=m*m,M=p*p,v=y/(n*n)+M/(s*s);1<v&&(n=J(v)*n,s=J(v)*s);var C=n*n,E=s*s,b=(C*E-C*M-E*y)/(C*M+E*y);b<0&&(b=0);var w=(r===i?-1:1)*J(b),P=n*p/s*w,S=-s*m/n*w,N=f*P-c*S+(e+o)/2,D=c*P+f*S+(t+h)/2,T=(m-P)/n,V=(p-S)/s,_=(-m-P)/n,q=(-p-S)/s,A=T*T+V*V,R=(V<0?-1:1)*Math.acos(T/J(A)),G=(T*q-V*_<0?-1:1)*Math.acos((T*_+V*q)/J(A*(_*_+q*q)));isNaN(G)&&(G=l),!i&&0<G?G-=g:i&&G<0&&(G+=g),R%=g,G%=g;var L,O=Math.ceil(F(G)/(g/4)),j=[],z=G/O,I=4/3*k(z/2)/(1+B(z/2)),H=f*n,Q=c*n,Z=c*-s,U=f*s;for(L=0;L<O;L++)m=B(a=R+L*z),p=k(a),T=B(a+=z),V=k(a),j.push(m-I*p,p+I*m,T+I*V,V-I*T,T,V);for(L=0;L<j.length;L+=2)m=j[L],p=j[L+1],j[L]=m*H+p*Z+N,j[L+1]=m*Q+p*U+D;return j[L-2]=o,j[L-1]=h,j}}function stringToRawPath(e){function db(e,t,n,s){f=(n-e)/3,c=(s-t)/3,o.push(e+f,t+c,n-f,s-c,n,s)}var t,n,s,a,r,i,o,h,u,f,c,l,g,x,d,m=(e+"").replace(w,function(e){var t=+e;return t<1e-4&&-1e-4<t?0:t}).match(b)||[],p=[],y=0,M=0,v=m.length,C=0,E="ERROR: malformed path: "+e;if(!e||!isNaN(m[0])||isNaN(m[1]))return console.log(E),p;for(t=0;t<v;t++)if(g=r,isNaN(m[t])?i=(r=m[t].toUpperCase())!==m[t]:t--,s=+m[t+1],a=+m[t+2],i&&(s+=y,a+=M),t||(h=s,u=a),"M"===r)o&&(o.length<8?--p.length:C+=o.length),y=h=s,M=u=a,o=[s,a],p.push(o),t+=2,r="L";else if("C"===r)i||(y=M=0),(o=o||[0,0]).push(s,a,y+1*m[t+3],M+1*m[t+4],y+=1*m[t+5],M+=1*m[t+6]),t+=6;else if("S"===r)f=y,c=M,"C"!==g&&"S"!==g||(f+=y-o[o.length-4],c+=M-o[o.length-3]),i||(y=M=0),o.push(f,c,s,a,y+=1*m[t+3],M+=1*m[t+4]),t+=4;else if("Q"===r)f=y+2/3*(s-y),c=M+2/3*(a-M),i||(y=M=0),y+=1*m[t+3],M+=1*m[t+4],o.push(f,c,y+2/3*(s-y),M+2/3*(a-M),y,M),t+=4;else if("T"===r)f=y-o[o.length-4],c=M-o[o.length-3],o.push(y+f,M+c,s+2/3*(y+1.5*f-s),a+2/3*(M+1.5*c-a),y=s,M=a),t+=2;else if("H"===r)db(y,M,y=s,M),t+=1;else if("V"===r)db(y,M,y,M=s+(i?M-y:0)),t+=1;else if("L"===r||"Z"===r)"Z"===r&&(s=h,a=u,o.closed=!0),("L"===r||.5<F(y-s)||.5<F(M-a))&&(db(y,M,s,a),"L"===r&&(t+=2)),y=s,M=a;else if("A"===r){if(x=m[t+4],d=m[t+5],f=m[t+6],c=m[t+7],n=7,1<x.length&&(x.length<3?(c=f,f=d,n--):(c=d,f=x.substr(2),n-=2),d=x.charAt(1),x=x.charAt(0)),l=arcToSegment(y,M,+m[t+1],+m[t+2],+m[t+3],+x,+d,(i?y:0)+1*f,(i?M:0)+1*c),t+=n,l)for(n=0;n<l.length;n++)o.push(l[n]);y=o[o.length-2],M=o[o.length-1]}else console.log(E);return(t=o.length)<6?(p.pop(),t=0):o[0]===o[t-2]&&o[1]===o[t-1]&&(o.closed=!0),p.totalPoints=C+t,p}function p(){return M||"undefined"!=typeof window&&(M=window.gsap)&&M.registerPlugin&&M}function q(){(M=p())?(M.registerEase("_CE",n.create),a=1):console.warn("Please gsap.registerPlugin(CustomEase)")}function s(e){return~~(1e3*e+(e<0?-.5:.5))/1e3}function x(e,t,n,s,a,r,i,o,h,u,f){var c,l=(e+n)/2,g=(t+s)/2,d=(n+a)/2,m=(s+r)/2,p=(a+i)/2,y=(r+o)/2,M=(l+d)/2,v=(g+m)/2,C=(d+p)/2,E=(m+y)/2,b=(M+C)/2,w=(v+E)/2,P=i-e,S=o-t,N=Math.abs((n-i)*S-(s-o)*P),D=Math.abs((a-i)*S-(r-o)*P);return u||(u=[{x:e,y:t},{x:i,y:o}],f=1),u.splice(f||u.length-1,0,{x:b,y:w}),h*(P*P+S*S)<(N+D)*(N+D)&&(c=u.length,x(e,t,l,g,M,v,b,w,h,u,f),x(b,w,C,E,p,y,i,o,h,u,f+1+(u.length-c))),u}var M,a,t,y=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,v=/[cLlsSaAhHvVtTqQ]/g,n=((t=CustomEase.prototype).setData=function setData(e,t){t=t||{};var n,s,a,r,i,o,h,u,f,c=(e=e||"0,0,1,1").match(y),l=1,g=[],d=[],m=t.precision||1,p=m<=1;if(this.data=e,(v.test(e)||~e.indexOf("M")&&e.indexOf("C")<0)&&(c=stringToRawPath(e)[0]),4===(n=c.length))c.unshift(0,0),c.push(1,1),n=8;else if((n-2)%6)throw"Invalid CustomEase";for(0==+c[0]&&1==+c[n-2]||function _normalize(e,t,n){n||0===n||(n=Math.max(+e[e.length-1],+e[1]));var s,a=-1*e[0],r=-n,i=e.length,o=1/(+e[i-2]+a),h=-t||(Math.abs(e[i-1]-e[1])<.01*(e[i-2]-e[0])?function _findMinimum(e){var t,n=e.length,s=1e20;for(t=1;t<n;t+=6)+e[t]<s&&(s=+e[t]);return s}(e)+r:+e[i-1]+r);for(h=h?1/h:-o,s=0;s<i;s+=2)e[s]=(+e[s]+a)*o,e[s+1]=(+e[s+1]+r)*h}(c,t.height,t.originY),this.segment=c,r=2;r<n;r+=6)s={x:+c[r-2],y:+c[r-1]},a={x:+c[r+4],y:+c[r+5]},g.push(s,a),x(s.x,s.y,+c[r],+c[r+1],+c[r+2],+c[r+3],a.x,a.y,1/(2e5*m),g,g.length-1);for(n=g.length,r=0;r<n;r++)h=g[r],u=g[r-1]||h,(h.x>u.x||u.y!==h.y&&u.x===h.x||h===u)&&h.x<=1?(u.cx=h.x-u.x,u.cy=h.y-u.y,u.n=h,u.nx=h.x,p&&1<r&&2<Math.abs(u.cy/u.cx-g[r-2].cy/g[r-2].cx)&&(p=0),u.cx<l&&(u.cx?l=u.cx:(u.cx=.001,r===n-1&&(u.x-=.001,l=Math.min(l,.001),p=0)))):(g.splice(r--,1),n--);if(i=1/(n=1/l+1|0),h=g[o=0],p){for(r=0;r<n;r++)f=r*i,h.nx<f&&(h=g[++o]),s=h.y+(f-h.x)/h.cx*h.cy,d[r]={x:f,cx:i,y:s,cy:0,nx:9},r&&(d[r-1].cy=s-d[r-1].y);d[n-1].cy=g[g.length-1].y-s}else{for(r=0;r<n;r++)h.nx<r*i&&(h=g[++o]),d[r]=h;o<g.length-1&&(d[r-1]=g[g.length-2])}return this.ease=function(e){var t=d[e*n|0]||d[n-1];return t.nx<e&&(t=t.n),t.y+(e-t.x)/t.cx*t.cy},(this.ease.custom=this).id&&M&&M.registerEase(this.id,this.ease),this},t.getSVGData=function getSVGData(e){return CustomEase.getSVGData(this,e)},CustomEase.create=function create(e,t,n){return new CustomEase(e,t,n).ease},CustomEase.register=function register(e){M=e,q()},CustomEase.get=function get(e){return M.parseEase(e)},CustomEase.getSVGData=function getSVGData(e,t){var n,a,r,i,o,h,u,f,c,l,g=(t=t||{}).width||100,x=t.height||100,d=t.x||0,p=(t.y||0)+x,y=M.utils.toArray(t.path)[0];if(t.invert&&(x=-x,p=0),"string"==typeof e&&(e=M.parseEase(e)),e.custom&&(e=e.custom),e instanceof CustomEase)n=function rawPathToString(e){!function _isNumber(e){return"number"==typeof e}(e[0])||(e=[e]);var t,n,s,a,r="",i=e.length;for(n=0;n<i;n++){for(a=e[n],r+="M"+m(a[0])+","+m(a[1])+" C",t=a.length,s=2;s<t;s++)r+=m(a[s++])+","+m(a[s++])+" "+m(a[s++])+","+m(a[s++])+" "+m(a[s++])+","+m(a[s])+" ";a.closed&&(r+="z")}return r}(function transformRawPath(e,t,n,s,a,r,i){for(var o,h,u,f,c,l=e.length;-1<--l;)for(h=(o=e[l]).length,u=0;u<h;u+=2)f=o[u],c=o[u+1],o[u]=f*t+c*s+r,o[u+1]=f*n+c*a+i;return e._dirty=1,e}([e.segment],g,0,0,-x,d,p));else{for(n=[d,p],i=1/(u=Math.max(5,200*(t.precision||1))),f=5/(u+=2),c=s(d+i*g),a=((l=s(p+e(i)*-x))-p)/(c-d),r=2;r<u;r++)o=s(d+r*i*g),h=s(p+e(r*i)*-x),(Math.abs((h-l)/(o-c)-a)>f||r===u-1)&&(n.push(c,l),a=(h-l)/(o-c)),c=o,l=h;n="M"+n.join(",")}return y&&y.setAttribute("d",n),n},CustomEase);function CustomEase(e,t,n){a||q(),this.id=e,this.setData(t,n)}p()&&M.registerPlugin(n),n.version="3.10.3",e.CustomEase=n,e.default=n;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* CustomWiggle 3.10.2 | ||
* CustomWiggle 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n=n||self).window=n.window||{})}(this,function(e){"use strict";function g(){return t||"undefined"!=typeof window&&(t=window.gsap)&&t.registerPlugin&&t}function i(n){return n}function j(n){if(!y)if(t=g(),C=t&&t.parseEase("_CE")){for(var e in W)W[e]=C("",W[e]);y=1,o("wiggle").config=function(n){return"object"==typeof n?o("",n):o("wiggle("+n+")",{wiggles:+n})}}else n&&console.warn("Please gsap.registerPlugin(CustomEase, CustomWiggle)")}function k(e,n){return"function"!=typeof e&&(e=t.parseEase(e)||C("",e)),e.custom||!n?e:function(n){return 1-e(n)}}function n(){return String.fromCharCode.apply(null,arguments)}var t,y,C,W={easeOut:"M0,1,C0.7,1,0.6,0,1,0",easeInOut:"M0,0,C0.1,0,0.24,1,0.444,1,0.644,1,0.6,0,1,0",anticipate:"M0,0,C0,0.222,0.024,0.386,0,0.4,0.18,0.455,0.65,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1",uniform:"M0,0,C0,0.95,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0"},a="CustomWiggle",u=n(103,114,101,101,110,115,111,99,107,46,99,111,109),M=function(e){var t="undefined"!=typeof window,i=0===(t?window.location.href:"").indexOf(n(102,105,108,101,58,47,47))||-1!==e.indexOf(n(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(n(49,50,55,46,48,32,48,46,49)),o=[u,n(99,111,100,101,112,101,110,46,105,111),n(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),n(99,111,100,101,112,101,110,46,100,101,118),n(99,111,100,101,112,101,110,46,97,112,112),n(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),n(112,101,110,115,46,99,108,111,117,100),n(99,115,115,45,116,114,105,99,107,115,46,99,111,109),n(99,100,112,110,46,105,111),n(112,101,110,115,46,105,111),n(103,97,110,110,111,110,46,116,118),n(99,111,100,101,99,97,110,121,111,110,46,110,101,116),n(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),n(99,101,114,101,98,114,97,120,46,99,111,46,117,107),n(116,121,109,112,97,110,117,115,46,110,101,116),n(116,119,101,101,110,109,97,120,46,99,111,109),n(116,119,101,101,110,108,105,116,101,46,99,111,109),n(112,108,110,107,114,46,99,111),n(104,111,116,106,97,114,46,99,111,109),n(119,101,98,112,97,99,107,98,105,110,46,99,111,109),n(97,114,99,104,105,118,101,46,111,114,103),n(99,111,100,101,115,97,110,100,98,111,120,46,105,111),n(99,115,98,46,97,112,112),n(115,116,97,99,107,98,108,105,116,122,46,99,111,109),n(115,116,97,99,107,98,108,105,116,122,46,105,111),n(99,111,100,105,101,114,46,105,111),n(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),n(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),n(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),n(106,115,102,105,100,100,108,101,46,110,101,116)],r=o.length;for(setTimeout(function checkWarn(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(n(37,99,87,97,114,110,105,110,103),n(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(n(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+a+n(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(n(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),n(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--r;)if(-1!==e.indexOf(o[r]))return!0;return i||!setTimeout(function(){t&&(window.location.href=n(104,116,116,112,115,58,47,47)+u+n(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+a+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),o=function _create(n,e){y||j(1);var t,o,r,a,u,s,f,g,c,d=0|((e=e||{}).wiggles||10),l=1/d,p=l/2,w="anticipate"===e.type,m=W[e.type]||W.easeOut,h=i;if(M){if(w&&(h=m,m=W.easeOut),e.timingEase&&(h=k(e.timingEase)),e.amplitudeEase&&(m=k(e.amplitudeEase,!0)),g=[0,0,(s=h(p))/4,0,s/2,f=w?-m(p):m(p),s,f],"random"===e.type){for(g.length=4,t=h(l),o=2*Math.random()-1,c=2;c<d;c++)p=t,f=o,t=h(l*c),o=2*Math.random()-1,r=Math.atan2(o-g[g.length-3],t-g[g.length-4]),a=Math.cos(r)*l,u=Math.sin(r)*l,g.push(p-a,f-u,p,f,p+a,f+u);g.push(t,0,1,0)}else{for(c=1;c<d;c++)g.push(h(p+l/2),f),p+=l,f=(0<f?-1:1)*m(c*l),s=h(p),g.push(h(p-l/2),f,s,f);g.push(h(p+l/4),f,h(p+l/4),0,1,0)}for(c=g.length;-1<--c;)g[c]=~~(1e3*g[c])/1e3;return g[2]="C"+g[2],C(n,"M"+g.join(","))}},r=(CustomWiggle.create=function create(n,e){return o(n,e)},CustomWiggle.register=function register(n){t=n,j()},CustomWiggle);function CustomWiggle(n,e){this.ease=o(n,e)}g()&&t.registerPlugin(r),r.version="3.10.2",e.CustomWiggle=r,e.default=r;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n=n||self).window=n.window||{})}(this,function(e){"use strict";function g(){return t||"undefined"!=typeof window&&(t=window.gsap)&&t.registerPlugin&&t}function i(n){return n}function j(n){if(!y)if(t=g(),C=t&&t.parseEase("_CE")){for(var e in W)W[e]=C("",W[e]);y=1,o("wiggle").config=function(n){return"object"==typeof n?o("",n):o("wiggle("+n+")",{wiggles:+n})}}else n&&console.warn("Please gsap.registerPlugin(CustomEase, CustomWiggle)")}function k(e,n){return"function"!=typeof e&&(e=t.parseEase(e)||C("",e)),e.custom||!n?e:function(n){return 1-e(n)}}function n(){return String.fromCharCode.apply(null,arguments)}var t,y,C,W={easeOut:"M0,1,C0.7,1,0.6,0,1,0",easeInOut:"M0,0,C0.1,0,0.24,1,0.444,1,0.644,1,0.6,0,1,0",anticipate:"M0,0,C0,0.222,0.024,0.386,0,0.4,0.18,0.455,0.65,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1",uniform:"M0,0,C0,0.95,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0"},a="CustomWiggle",u=n(103,114,101,101,110,115,111,99,107,46,99,111,109),M=function(e){var t="undefined"!=typeof window,i=0===(t?window.location.href:"").indexOf(n(102,105,108,101,58,47,47))||-1!==e.indexOf(n(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(n(49,50,55,46,48,32,48,46,49)),o=[u,n(99,111,100,101,112,101,110,46,105,111),n(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),n(99,111,100,101,112,101,110,46,100,101,118),n(99,111,100,101,112,101,110,46,97,112,112),n(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),n(112,101,110,115,46,99,108,111,117,100),n(99,115,115,45,116,114,105,99,107,115,46,99,111,109),n(99,100,112,110,46,105,111),n(112,101,110,115,46,105,111),n(103,97,110,110,111,110,46,116,118),n(99,111,100,101,99,97,110,121,111,110,46,110,101,116),n(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),n(99,101,114,101,98,114,97,120,46,99,111,46,117,107),n(116,121,109,112,97,110,117,115,46,110,101,116),n(116,119,101,101,110,109,97,120,46,99,111,109),n(116,119,101,101,110,108,105,116,101,46,99,111,109),n(112,108,110,107,114,46,99,111),n(104,111,116,106,97,114,46,99,111,109),n(119,101,98,112,97,99,107,98,105,110,46,99,111,109),n(97,114,99,104,105,118,101,46,111,114,103),n(99,111,100,101,115,97,110,100,98,111,120,46,105,111),n(99,115,98,46,97,112,112),n(115,116,97,99,107,98,108,105,116,122,46,99,111,109),n(115,116,97,99,107,98,108,105,116,122,46,105,111),n(99,111,100,105,101,114,46,105,111),n(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),n(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),n(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),n(106,115,102,105,100,100,108,101,46,110,101,116)],r=o.length;for(setTimeout(function checkWarn(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(n(37,99,87,97,114,110,105,110,103),n(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(n(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+a+n(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(n(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),n(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--r;)if(-1!==e.indexOf(o[r]))return!0;return i||!setTimeout(function(){t&&(window.location.href=n(104,116,116,112,115,58,47,47)+u+n(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+a+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),o=function _create(n,e){y||j(1);var t,o,r,a,u,s,f,g,c,d=0|((e=e||{}).wiggles||10),l=1/d,p=l/2,w="anticipate"===e.type,m=W[e.type]||W.easeOut,h=i;if(M){if(w&&(h=m,m=W.easeOut),e.timingEase&&(h=k(e.timingEase)),e.amplitudeEase&&(m=k(e.amplitudeEase,!0)),g=[0,0,(s=h(p))/4,0,s/2,f=w?-m(p):m(p),s,f],"random"===e.type){for(g.length=4,t=h(l),o=2*Math.random()-1,c=2;c<d;c++)p=t,f=o,t=h(l*c),o=2*Math.random()-1,r=Math.atan2(o-g[g.length-3],t-g[g.length-4]),a=Math.cos(r)*l,u=Math.sin(r)*l,g.push(p-a,f-u,p,f,p+a,f+u);g.push(t,0,1,0)}else{for(c=1;c<d;c++)g.push(h(p+l/2),f),p+=l,f=(0<f?-1:1)*m(c*l),s=h(p),g.push(h(p-l/2),f,s,f);g.push(h(p+l/4),f,h(p+l/4),0,1,0)}for(c=g.length;-1<--c;)g[c]=~~(1e3*g[c])/1e3;return g[2]="C"+g[2],C(n,"M"+g.join(","))}},r=(CustomWiggle.create=function create(n,e){return o(n,e)},CustomWiggle.register=function register(n){t=n,j()},CustomWiggle);function CustomWiggle(n,e){this.ease=o(n,e)}g()&&t.registerPlugin(r),r.version="3.10.3",e.CustomWiggle=r,e.default=r;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* Draggable 3.10.2 | ||
* Draggable 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function w(e,t){if(e.parentNode&&(h||T(e))){var n=C(e),o=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=n?t?"rect":"g":"div",i=2!==t?0:100,a=3===t?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",s=h.createElementNS?h.createElementNS(o.replace(/^https/,"http"),r):h.createElement(r);return t&&(n?(g=g||w(e),s.setAttribute("width",.01),s.setAttribute("height",.01),s.setAttribute("transform","translate("+i+","+a+")"),g.appendChild(s)):(f||((f=w(e)).style.cssText=l),s.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+i+"px",f.appendChild(s))),s}throw"Need document and parent."}function A(e,t,n,o,r,i,a){return e.a=t,e.b=n,e.c=o,e.d=r,e.e=i,e.f=a,e}var h,p,r,i,f,g,x,m,y,t,v="transform",b=v+"Origin",T=function _setDoc(e){var t=e.ownerDocument||e;!(v in e.style)&&"msTransform"in e.style&&(b=(v="msTransform")+"Origin");for(;t.parentNode&&(t=t.parentNode););if(p=window,x=new fe,t){r=(h=t).documentElement,i=t.body,(m=h.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=t.createElement("div"),o=t.createElement("div");i.appendChild(n),n.appendChild(o),n.style.position="static",n.style[v]="translate3d(0,0,1px)",y=o.offsetParent!==n,i.removeChild(n)}return t},D=function _forceNonZeroScale(e){for(var t,n;e&&e!==i;)(n=e._gsap)&&n.uncache&&n.get(e,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},E=[],M=[],L=function _getDocScrollTop(){return p.pageYOffset||h.scrollTop||r.scrollTop||i.scrollTop||0},S=function _getDocScrollLeft(){return p.pageXOffset||h.scrollLeft||r.scrollLeft||i.scrollLeft||0},C=function _svgOwner(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},N=function _isFixed(e){return"fixed"===p.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)},O=function _placeSiblings(e,t){var n,o,r,i,a,l,s=C(e),c=e===s,d=s?E:M,u=e.parentNode;if(e===p)return e;if(d.length||d.push(w(e,1),w(e,2),w(e,3)),n=s?g:f,s)c?(i=-(r=function _getCTM(e){var t,n=e.getCTM();return n||(t=e.style[v],e.style[v]="none",e.appendChild(m),n=m.getCTM(),e.removeChild(m),t?e.style[v]=t:e.style.removeProperty(v.replace(/([A-Z])/g,"-$1").toLowerCase())),n||x.clone()}(e)).e/r.a,a=-r.f/r.d,o=x):(r=e.getBBox(),i=(o=(o=e.transform?e.transform.baseVal:{}).numberOfItems?1<o.numberOfItems?function _consolidate(e){for(var t=new fe,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t}(o):o.getItem(0).matrix:x).a*r.x+o.c*r.y,a=o.b*r.x+o.d*r.y),t&&"g"===e.tagName.toLowerCase()&&(i=a=0),(c?s:u).appendChild(n),n.setAttribute("transform","matrix("+o.a+","+o.b+","+o.c+","+o.d+","+(o.e+i)+","+(o.f+a)+")");else{if(i=a=0,y)for(o=e.offsetParent,r=e;(r=r&&r.parentNode)&&r!==o&&r.parentNode;)4<(p.getComputedStyle(r)[v]+"").length&&(i=r.offsetLeft,a=r.offsetTop,r=0);if("absolute"!==(l=p.getComputedStyle(e)).position&&"fixed"!==l.position)for(o=e.offsetParent;u&&u!==o;)i+=u.scrollLeft||0,a+=u.scrollTop||0,u=u.parentNode;(r=n.style).top=e.offsetTop-a+"px",r.left=e.offsetLeft-i+"px",r[v]=l[v],r[b]=l[b],r.position="fixed"===l.position?"fixed":"absolute",e.parentNode.appendChild(n)}return n},fe=((t=Matrix2D.prototype).inverse=function inverse(){var e=this.a,t=this.b,n=this.c,o=this.d,r=this.e,i=this.f,a=e*o-t*n||1e-10;return A(this,o/a,-t/a,-n/a,e/a,(n*i-o*r)/a,-(e*i-t*r)/a)},t.multiply=function multiply(e){var t=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f,l=e.a,s=e.c,c=e.b,d=e.d,u=e.e,p=e.f;return A(this,l*t+c*o,l*n+c*r,s*t+d*o,s*n+d*r,i+u*t+p*o,a+u*n+p*r)},t.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function equals(e){var t=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f;return t===e.a&&n===e.b&&o===e.c&&r===e.d&&i===e.e&&a===e.f},t.apply=function apply(e,t){void 0===t&&(t={});var n=e.x,o=e.y,r=this.a,i=this.b,a=this.c,l=this.d,s=this.e,c=this.f;return t.x=n*r+o*a+s||0,t.y=n*i+o*l+c||0,t},Matrix2D);function Matrix2D(e,t,n,o,r,i){void 0===e&&(e=1),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=1),void 0===r&&(r=0),void 0===i&&(i=0),A(this,e,t,n,o,r,i)}function getGlobalMatrix(e,t,n,o){if(!e||!e.parentNode||(h||T(e)).documentElement===e)return new fe;var r=D(e),i=C(e)?E:M,a=O(e,n),l=i[0].getBoundingClientRect(),s=i[1].getBoundingClientRect(),c=i[2].getBoundingClientRect(),d=a.parentNode,u=!o&&N(e),p=new fe((s.left-l.left)/100,(s.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(u?0:S()),l.top+(u?0:L()));if(d.removeChild(a),r)for(l=r.length;l--;)(s=r[l]).scaleX=s.scaleY=0,s.renderTransform(1,s);return t?p.inverse():p}function V(){return"undefined"!=typeof window}function W(){return ge||V()&&(ge=window.gsap)&&ge.registerPlugin&&ge}function X(e){return"function"==typeof e}function Y(e){return"object"==typeof e}function Z(e){return void 0===e}function $(){return!1}function ba(e){return Math.round(1e4*e)/1e4}function da(e,t){var n=me.createElementNS?me.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):me.createElement(e);return n.style?n:me.createElement(e)}function pa(e,t){var n,o={};for(n in e)o[n]=t?e[n]*t:e[n];return o}function ra(e,t){for(var n,o=e.length;o--;)t?e[o].style.touchAction=t:e[o].style.removeProperty("touch-action"),(n=e[o].children)&&n.length&&ra(n,t)}function sa(){return _e.forEach(function(e){return e()})}function ua(){return!_e.length&&ge.ticker.remove(sa)}function va(e){for(var t=_e.length;t--;)_e[t]===e&&_e.splice(t,1);ge.to(ua,{overwrite:!0,delay:15,duration:0,onComplete:ua,data:"_draggable"})}function xa(e,t,n,o){if(e.addEventListener){var r=De[t];o=o||(d?{passive:!1}:null),e.addEventListener(r||t,n,o),r&&t!==r&&e.addEventListener(t,n,o)}}function ya(e,t,n){if(e.removeEventListener){var o=De[t];e.removeEventListener(o||t,n),o&&t!==o&&e.removeEventListener(t,n)}}function za(e){e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()}function Ba(e){Me=e.touches&&Ee<e.touches.length,ya(e.target,"touchend",Ba)}function Ca(e){Me=e.touches&&Ee<e.touches.length,xa(e.target,"touchend",Ba)}function Da(e){return xe.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0}function Ea(e){return xe.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0}function Fa(e,t){xa(e,"scroll",t),Fe(e.parentNode)||Fa(e.parentNode,t)}function Ga(e,t){ya(e,"scroll",t),Fe(e.parentNode)||Ga(e.parentNode,t)}function Ia(e,t){var n="x"===t?"Width":"Height",o="scroll"+n,r="client"+n;return Math.max(0,Fe(e)?Math.max(ye[o],l[o])-(xe["inner"+n]||ye[r]||l[r]):e[o]-e[r])}function Ja(e,t){var n=Ia(e,"x"),o=Ia(e,"y");Fe(e)?e=He:Ja(e.parentNode,t),e._gsMaxScrollX=n,e._gsMaxScrollY=o,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)}function Ka(e,t,n){var o=e.style;o&&(Z(o[t])&&(t=c(t,e)||t),null==n?o.removeProperty&&o.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):o[t]=n)}function La(e){return xe.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)}function Na(e){if(e===xe)return u.left=u.top=0,u.width=u.right=ye.clientWidth||e.innerWidth||l.clientWidth||0,u.height=u.bottom=(e.innerHeight||0)-20<ye.clientHeight?ye.clientHeight:e.innerHeight||l.clientHeight||0,u;var t=e.ownerDocument||me,n=Z(e.pageX)?e.nodeType||Z(e.left)||Z(e.top)?be(e)[0].getBoundingClientRect():e:{left:e.pageX-Ea(t),top:e.pageY-Da(t),right:e.pageX-Ea(t)+1,bottom:e.pageY-Da(t)+1};return Z(n.right)&&!Z(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):Z(n.width)&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n}function Oa(e,t,n){var o,r=e.vars,i=r[n],a=e._listeners[t];return X(i)&&(o=i.apply(r.callbackScope||e,r[n+"Params"]||[e.pointerEvent])),a&&!1===e.dispatchEvent(t)&&(o=!1),o}function Pa(e,t){var n,o,r,i=be(e)[0];return i.nodeType||i===xe?R(i,t):Z(e.left)?{left:o=e.min||e.minX||e.minRotation||0,top:n=e.min||e.minY||0,width:(e.max||e.maxX||e.maxRotation||0)-o,height:(e.max||e.maxY||0)-n}:(r={x:0,y:0},{left:e.left-r.x,top:e.top-r.y,width:e.width,height:e.height})}function Sa(r,i,e,t,a,n){var o,l,s,c={};if(i)if(1!==a&&i instanceof Array){if(c.end=o=[],s=i.length,Y(i[0]))for(l=0;l<s;l++)o[l]=pa(i[l],a);else for(l=0;l<s;l++)o[l]=i[l]*a;e+=1.1,t-=1.1}else X(i)?c.end=function(e){var t,n,o=i.call(r,e);if(1!==a)if(Y(o)){for(n in t={},o)t[n]=o[n]*a;o=t}else o*=a;return o}:c.end=i;return!e&&0!==e||(c.max=e),!t&&0!==t||(c.min=t),n&&(c.velocity=0),c}function Ta(e){var t;return!(!e||!e.getAttribute||e===l)&&(!("true"!==(t=e.getAttribute("data-clickable"))&&("false"===t||!e.onclick&&!o.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||Ta(e.parentNode))}function Ua(e,t){for(var n,o=e.length;o--;)(n=e[o]).ondragstart=n.onselectstart=t?null:$,ge.set(n,{lazy:!0,userSelect:t?"text":"none"})}function Ya(i,r){i=ge.utils.toArray(i)[0],r=r||{};var a,l,s,e,c,d,u=document.createElement("div"),p=u.style,t=i.firstChild,h=0,f=0,g=i.scrollTop,x=i.scrollLeft,m=i.scrollWidth,y=i.scrollHeight,v=0,w=0,b=0;P&&!1!==r.force3D?(c="translate3d(",d="px,0px)"):_&&(c="translate(",d="px)"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(e,t){if(!arguments.length)return-(i.scrollLeft+f);var n=i.scrollLeft-x,o=f;if((2<n||n<-2)&&!t)return x=i.scrollLeft,ge.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-x),void(r.onKill&&r.onKill());(e=-e)<0?(f=e-.5|0,e=0):w<e?(f=e-w|0,e=w):f=0,(f||o)&&(this._skip||(p[_]=c+-f+"px,"+-h+d),0<=f+v&&(p.paddingRight=f+v+"px")),i.scrollLeft=0|e,x=i.scrollLeft},this.top=function(e,t){if(!arguments.length)return-(i.scrollTop+h);var n=i.scrollTop-g,o=h;if((2<n||n<-2)&&!t)return g=i.scrollTop,ge.killTweensOf(this,{top:1,scrollTop:1}),this.top(-g),void(r.onKill&&r.onKill());(e=-e)<0?(h=e-.5|0,e=0):b<e?(h=e-b|0,e=b):h=0,(h||o)&&(this._skip||(p[_]=c+-f+"px,"+-h+d)),i.scrollTop=0|e,g=i.scrollTop},this.maxScrollTop=function(){return b},this.maxScrollLeft=function(){return w},this.disable=function(){for(t=u.firstChild;t;)e=t.nextSibling,i.appendChild(t),t=e;i===u.parentNode&&i.removeChild(u)},this.enable=function(){if((t=i.firstChild)!==u){for(;t;)e=t.nextSibling,u.appendChild(t),t=e;i.appendChild(u),this.calibrate()}},this.calibrate=function(e){var t,n,o,r=i.clientWidth===a;g=i.scrollTop,x=i.scrollLeft,r&&i.clientHeight===l&&u.offsetHeight===s&&m===i.scrollWidth&&y===i.scrollHeight&&!e||((h||f)&&(n=this.left(),o=this.top(),this.left(-i.scrollLeft),this.top(-i.scrollTop)),t=La(i),r&&!e||(p.display="block",p.width="auto",p.paddingRight="0px",(v=Math.max(0,i.scrollWidth-i.clientWidth))&&(v+=parseFloat(t.paddingLeft)+(k?parseFloat(t.paddingRight):0))),p.display="inline-block",p.position="relative",p.overflow="visible",p.verticalAlign="top",p.boxSizing="content-box",p.width="100%",p.paddingRight=v+"px",k&&(p.paddingBottom=t.paddingBottom),a=i.clientWidth,l=i.clientHeight,m=i.scrollWidth,y=i.scrollHeight,w=i.scrollWidth-a,b=i.scrollHeight-l,s=u.offsetHeight,p.display="block",(n||o)&&(this.left(n),this.top(o)))},this.content=u,this.element=i,this._skip=!1,this.enable()}function Za(e){if(V()&&document.body){var t=window&&window.navigator;xe=window,me=document,ye=me.documentElement,l=me.body,s=da("div"),Ye=!!window.PointerEvent,(ve=da("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Se="grab"===ve.style.cursor?"grab":"move",Xe=t&&-1!==t.userAgent.toLowerCase().indexOf("android"),Te="ontouchstart"in ye&&"orientation"in xe||t&&(0<t.MaxTouchPoints||0<t.msMaxTouchPoints),o=da("div"),r=da("div"),i=r.style,a=l,i.display="inline-block",i.position="relative",o.style.cssText=r.innerHTML="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",o.appendChild(r),a.appendChild(o),n=r.offsetHeight+18>o.scrollHeight,a.removeChild(o),k=n,De=function(e){for(var t=e.split(","),n=(("onpointerdown"in s?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in s?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":e).split(",")),o={},r=4;-1<--r;)o[t[r]]=n[r],o[n[r]]=t[r];try{ye.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){d=1}}))}catch(e){}return o}("touchstart,touchmove,touchend,touchcancel"),xa(me,"touchcancel",$),xa(xe,"touchmove",$),l&&l.addEventListener("touchstart",$),xa(me,"contextmenu",function(){for(var e in Re)Re[e].isPressed&&Re[e].endDrag()}),ge=we=W()}var n,o,r,i,a;ge?(Le=ge.plugins.inertia,c=ge.utils.checkPrefix,_=c(_),Ce=c(Ce),be=ge.utils.toArray,P=!!c("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")}var ge,xe,me,ye,l,s,ve,we,c,be,d,Te,De,Ee,Me,Xe,Le,Se,Ye,P,k,n,_="transform",Ce="transformOrigin",Ne=Array.isArray,Oe=180/Math.PI,Pe=1e20,a=new fe,ke=Date.now||function(){return(new Date).getTime()},_e=[],Re={},Ae=0,o=/^(?:a|input|textarea|button|select)$/i,Be=0,Ie={},He={},Fe=function _isRoot(e){return!(e&&e!==ye&&9!==e.nodeType&&e!==me.body&&e!==xe&&e.nodeType&&e.parentNode)},u={},ze={},R=function _getElementBounds(e,t){t=be(t)[0];var n,o,r,i,a,l,s,c,d,u,p,h,f,g,x=e.getBBox&&e.ownerSVGElement,m=e.ownerDocument||me;if(e===xe)r=Da(m),o=(n=Ea(m))+(m.documentElement.clientWidth||e.innerWidth||m.body.clientWidth||0),i=r+((e.innerHeight||0)-20<m.documentElement.clientHeight?m.documentElement.clientHeight:e.innerHeight||m.body.clientHeight||0);else{if(t===xe||Z(t))return e.getBoundingClientRect();n=r=0,x?(p=(u=e.getBBox()).width,h=u.height):(e.viewBox&&(u=e.viewBox.baseVal)&&(n=u.x||0,r=u.y||0,p=u.width,h=u.height),p||(u="border-box"===(f=La(e)).boxSizing,p=(parseFloat(f.width)||e.clientWidth||0)+(u?0:parseFloat(f.borderLeftWidth)+parseFloat(f.borderRightWidth)),h=(parseFloat(f.height)||e.clientHeight||0)+(u?0:parseFloat(f.borderTopWidth)+parseFloat(f.borderBottomWidth)))),o=p,i=h}return e===t?{left:n,top:r,width:o-n,height:i-r}:(l=(a=getGlobalMatrix(t,!0).multiply(getGlobalMatrix(e))).apply({x:n,y:r}),s=a.apply({x:o,y:r}),c=a.apply({x:o,y:i}),d=a.apply({x:n,y:i}),n=Math.min(l.x,s.x,c.x,d.x),r=Math.min(l.y,s.y,c.y,d.y),{left:n+((g=t.parentNode||{}).scrollLeft||0),top:r+(g.scrollTop||0),width:Math.max(l.x,s.x,c.x,d.x)-n,height:Math.max(l.y,s.y,c.y,d.y)-r})},B=((n=EventDispatcher.prototype).addEventListener=function addEventListener(e,t){var n=this._listeners[e]||(this._listeners[e]=[]);~n.indexOf(t)||n.push(t)},n.removeEventListener=function removeEventListener(e,t){var n=this._listeners[e],o=n&&n.indexOf(t)||-1;-1<o&&n.splice(o,1)},n.dispatchEvent=function dispatchEvent(t){var n,o=this;return(this._listeners[t]||[]).forEach(function(e){return!1===e.call(o,{type:t,target:o.target})&&(n=!1)}),n},EventDispatcher);function EventDispatcher(e){this._listeners={},this.target=e||this}var We,I=(function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(Draggable,We=B),Draggable.register=function register(e){ge=e,Za()},Draggable.create=function create(e,t){return we||Za(!0),be(e).map(function(e){return new Draggable(e,t)})},Draggable.get=function get(e){return Re[(be(e)[0]||{})._gsDragID]},Draggable.timeSinceDrag=function timeSinceDrag(){return(ke()-Be)/1e3},Draggable.hitTest=function hitTest(e,t,n){if(e===t)return!1;var o,r,i,a=Na(e),l=Na(t),s=a.top,c=a.left,d=a.right,u=a.bottom,p=a.width,h=a.height,f=l.left>d||l.right<c||l.top>u||l.bottom<s;return f||!n?!f:(i=-1!==(n+"").indexOf("%"),n=parseFloat(n)||0,(o={left:Math.max(c,l.left),top:Math.max(s,l.top)}).width=Math.min(d,l.right)-o.left,o.height=Math.min(u,l.bottom)-o.top,!(o.width<0||o.height<0)&&(i?p*h*(n*=.01)<=(r=o.width*o.height)||r>=l.width*l.height*n:o.width>n&&o.height>n))},Draggable);function Draggable(h,u){var e;e=We.call(this)||this,we||Za(1),h=be(h)[0],Le=Le||ge.plugins.inertia,e.vars=u=pa(u||{}),e.target=h,e.x=e.y=e.rotation=0,e.dragResistance=parseFloat(u.dragResistance)||0,e.edgeResistance=isNaN(u.edgeResistance)?1:parseFloat(u.edgeResistance)||0,e.lockAxis=u.lockAxis,e.autoScroll=u.autoScroll||0,e.lockedAxis=null,e.allowEventDefault=!!u.allowEventDefault,ge.getProperty(h,"x");function Og(e,t){return parseFloat(le.get(h,e,t))}function uh(e){return za(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1}function vh(e){if(J.autoScroll&&J.isDragging&&(ee||O)){var t,n,o,r,i,a,l,s,c=h,d=15*J.autoScroll;for(ee=!1,He.scrollTop=null!=xe.pageYOffset?xe.pageYOffset:null!=ce.documentElement.scrollTop?ce.documentElement.scrollTop:ce.body.scrollTop,He.scrollLeft=null!=xe.pageXOffset?xe.pageXOffset:null!=ce.documentElement.scrollLeft?ce.documentElement.scrollLeft:ce.body.scrollLeft,r=J.pointerX-He.scrollLeft,i=J.pointerY-He.scrollTop;c&&!n;)t=(n=Fe(c.parentNode))?He:c.parentNode,o=n?{bottom:Math.max(ye.clientHeight,xe.innerHeight||0),right:Math.max(ye.clientWidth,xe.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),a=l=0,$&&((s=t._gsMaxScrollY-t.scrollTop)<0?l=s:i>o.bottom-oe&&s?(ee=!0,l=Math.min(s,d*(1-Math.max(0,o.bottom-i)/oe)|0)):i<o.top+te&&t.scrollTop&&(ee=!0,l=-Math.min(t.scrollTop,d*(1-Math.max(0,i-o.top)/te)|0)),l&&(t.scrollTop+=l)),U&&((s=t._gsMaxScrollX-t.scrollLeft)<0?a=s:r>o.right-ne&&s?(ee=!0,a=Math.min(s,d*(1-Math.max(0,o.right-r)/ne)|0)):r<o.left+re&&t.scrollLeft&&(ee=!0,a=-Math.min(t.scrollLeft,d*(1-Math.max(0,r-o.left)/re)|0)),a&&(t.scrollLeft+=a)),n&&(a||l)&&(xe.scrollTo(t.scrollLeft,t.scrollTop),pe(J.pointerX+a,J.pointerY+l)),c=t}if(O){var u=J.x,p=J.y;G?(J.deltaX=u-parseFloat(le.rotation),J.rotation=u,le.rotation=u+"deg",le.renderTransform(1,le)):f?($&&(J.deltaY=p-f.top(),f.top(p)),U&&(J.deltaX=u-f.left(),f.left(u))):W?($&&(J.deltaY=p-parseFloat(le.y),le.y=p+"px"),U&&(J.deltaX=u-parseFloat(le.x),le.x=u+"px"),le.renderTransform(1,le)):($&&(J.deltaY=p-parseFloat(h.style.top||0),h.style.top=p+"px"),U&&(J.deltaX=u-parseFloat(h.style.left||0),h.style.left=u+"px")),!g||e||H||(!(H=!0)===Oa(J,"drag","onDrag")&&(U&&(J.x-=J.deltaX),$&&(J.y-=J.deltaY),vh(!0)),H=!1)}O=!1}function wh(e,t){var n,o,r=J.x,i=J.y;h._gsap||(le=ge.core.getCache(h)),le.uncache&&ge.getProperty(h,"x"),W?(J.x=parseFloat(le.x),J.y=parseFloat(le.y)):G?J.x=J.rotation=parseFloat(le.rotation):f?(J.y=f.top(),J.x=f.left()):(J.y=parseFloat(h.style.top||(o=La(h))&&o.top)||0,J.x=parseFloat(h.style.left||(o||{}).left)||0),(P||k||_)&&!t&&(J.isDragging||J.isThrowing)&&(_&&(Ie.x=J.x,Ie.y=J.y,(n=_(Ie)).x!==J.x&&(J.x=n.x,O=!0),n.y!==J.y&&(J.y=n.y,O=!0)),P&&(n=P(J.x))!==J.x&&(J.x=n,G&&(J.rotation=n),O=!0),k&&((n=k(J.y))!==J.y&&(J.y=n),O=!0)),O&&vh(!0),e||(J.deltaX=J.x-r,J.deltaY=J.y-i,Oa(J,"throwupdate","onThrowUpdate"))}function xh(a,l,s,n){return null==l&&(l=-Pe),null==s&&(s=Pe),X(a)?function(e){var t=J.isPressed?1-J.edgeResistance:1;return a.call(J,s<e?s+(e-s)*t:e<l?l+(e-l)*t:e)*n}:Ne(a)?function(e){for(var t,n,o=a.length,r=0,i=Pe;-1<--o;)(n=(t=a[o])-e)<0&&(n=-n),n<i&&l<=t&&t<=s&&(r=o,i=n);return a[r]}:isNaN(a)?function(e){return e}:function(){return a*n}}function zh(){var e,t,n,o;E=!1,f?(f.calibrate(),J.minX=L=-f.maxScrollLeft(),J.minY=C=-f.maxScrollTop(),J.maxX=M=J.maxY=S=0,E=!0):u.bounds&&(e=Pa(u.bounds,h.parentNode),G?(J.minX=L=e.left,J.maxX=M=e.left+e.width,J.minY=C=J.maxY=S=0):Z(u.bounds.maxX)&&Z(u.bounds.maxY)?(t=Pa(h,h.parentNode),J.minX=L=Math.round(Og(K,"px")+e.left-t.left),J.minY=C=Math.round(Og(V,"px")+e.top-t.top),J.maxX=M=Math.round(L+(e.width-t.width)),J.maxY=S=Math.round(C+(e.height-t.height))):(e=u.bounds,J.minX=L=e.minX,J.minY=C=e.minY,J.maxX=M=e.maxX,J.maxY=S=e.maxY),M<L&&(J.minX=M,J.maxX=M=L,L=J.minX),S<C&&(J.minY=S,J.maxY=S=C,C=J.minY),G&&(J.minRotation=L,J.maxRotation=M),E=!0),u.liveSnap&&(n=!0===u.liveSnap?u.snap||{}:u.liveSnap,o=Ne(n)||X(n),G?(P=xh(o?n:n.rotation,L,M,1),k=null):n.points?_=function buildPointSnapFunc(s,l,c,d,u,p,h){return p=p&&p<Pe?p*p:Pe,X(s)?function(e){var t,n,o,r=J.isPressed?1-J.edgeResistance:1,i=e.x,a=e.y;return e.x=i=c<i?c+(i-c)*r:i<l?l+(i-l)*r:i,e.y=a=u<a?u+(a-u)*r:a<d?d+(a-d)*r:a,(t=s.call(J,e))!==e&&(e.x=t.x,e.y=t.y),1!==h&&(e.x*=h,e.y*=h),p<Pe&&(n=e.x-i,o=e.y-a,p<n*n+o*o&&(e.x=i,e.y=a)),e}:Ne(s)?function(e){for(var t,n,o,r,i=s.length,a=0,l=Pe;-1<--i;)(r=(t=(o=s[i]).x-e.x)*t+(n=o.y-e.y)*n)<l&&(a=i,l=r);return l<=p?s[a]:e}:function(e){return e}}(o?n:n.points,L,M,C,S,n.radius,f?-1:1):(U&&(P=xh(o?n:n.x||n.left||n.scrollLeft,L,M,f?-1:1)),$&&(k=xh(o?n:n.y||n.top||n.scrollTop,C,S,f?-1:1))))}function Ah(){J.isThrowing=!1,Oa(J,"throwcomplete","onThrowComplete")}function Bh(){J.isThrowing=!1}function Ch(e,t){var n,o,r,i;e&&Le?(!0===e&&(n=u.snap||u.liveSnap||{},o=Ne(n)||X(n),e={resistance:(u.throwResistance||u.resistance||1e3)/(G?10:1)},G?e.rotation=Sa(J,o?n:n.rotation,M,L,1,t):(U&&(e[K]=Sa(J,o?n:n.points||n.x||n.left,M,L,f?-1:1,t||"x"===J.lockedAxis)),$&&(e[V]=Sa(J,o?n:n.points||n.y||n.top,S,C,f?-1:1,t||"y"===J.lockedAxis)),(n.points||Ne(n)&&Y(n[0]))&&(e.linkedProps=K+","+V,e.radius=n.radius))),J.isThrowing=!0,i=isNaN(u.overshootTolerance)?1===u.edgeResistance?0:1-J.edgeResistance+.2:u.overshootTolerance,e.duration||(e.duration={max:Math.max(u.minDuration||0,"maxDuration"in u?u.maxDuration:2),min:isNaN(u.minDuration)?0===i||Y(e)&&1e3<e.resistance?0:.5:u.minDuration,overshoot:i}),J.tween=r=ge.to(f||h,{inertia:e,data:"_draggable",onComplete:Ah,onInterrupt:Bh,onUpdate:u.fastMode?Oa:wh,onUpdateParams:u.fastMode?[J,"onthrowupdate","onThrowUpdate"]:n&&n.radius?[!1,!0]:[]}),u.fastMode||(f&&(f._skip=!0),r.render(1e9,!0,!0),wh(!0,!0),J.endX=J.x,J.endY=J.y,G&&(J.endRotation=J.x),r.play(0),wh(!0,!0),f&&(f._skip=!1))):E&&J.applyBounds()}function Dh(e){var t,n=R;R=getGlobalMatrix(h.parentNode,!0),e&&J.isPressed&&!R.equals(n||new fe)&&(t=n.inverse().apply({x:w,y:b}),R.apply(t,t),w=t.x,b=t.y),R.equals(a)&&(R=null)}function Eh(){var e,t,n,o=1-J.edgeResistance,r=se?Ea(ce):0,i=se?Da(ce):0;Dh(!1),ze.x=J.pointerX-r,ze.y=J.pointerY-i,R&&R.apply(ze,ze),w=ze.x,b=ze.y,O&&(pe(J.pointerX,J.pointerY),vh(!0)),d=getGlobalMatrix(h),f?(zh(),D=f.top(),T=f.left()):(de()?(wh(!0,!0),zh()):J.applyBounds(),G?(e=h.ownerSVGElement?[le.xOrigin-h.getBBox().x,le.yOrigin-h.getBBox().y]:(La(h)[Ce]||"0 0").split(" "),N=J.rotationOrigin=getGlobalMatrix(h).apply({x:parseFloat(e[0])||0,y:parseFloat(e[1])||0}),wh(!0,!0),t=J.pointerX-N.x-r,n=N.y-J.pointerY+i,T=J.x,D=J.y=Math.atan2(n,t)*Oe):(D=Og(V,"px"),T=Og(K,"px"))),E&&o&&(M<T?T=M+(T-M)/o:T<L&&(T=L-(L-T)/o),G||(S<D?D=S+(D-S)/o:D<C&&(D=C-(C-D)/o))),J.startX=T=ba(T),J.startY=D=ba(D)}function Gh(){!ve.parentNode||de()||J.isDragging||ve.parentNode.removeChild(ve)}function Hh(e,t){var n;if(!p||J.isPressed||!e||!("mousedown"!==e.type&&"pointerdown"!==e.type||t)&&ke()-ae<30&&De[J.pointerEvent.type])z&&e&&p&&za(e);else{if(A=de(),J.pointerEvent=e,De[e.type]?(v=~e.type.indexOf("touch")?e.currentTarget||e.target:ce,xa(v,"touchend",he),xa(v,"touchmove",ue),xa(v,"touchcancel",he),xa(ce,"touchstart",Ca)):(v=null,xa(ce,"mousemove",ue)),I=null,Ye&&v||(xa(ce,"mouseup",he),e&&e.target&&xa(e.target,"mouseup",he)),y=ie.call(J,e.target)&&!1===u.dragClickables&&!t)return xa(e.target,"change",he),Oa(J,"pressInit","onPressInit"),Oa(J,"press","onPress"),Ua(q,!0),void(z=!1);if(B=!(!v||U==$||!1===J.vars.allowNativeTouchScrolling||J.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which))&&(U?"y":"x"),(z=!B&&!J.allowEventDefault)&&(za(e),xa(xe,"touchforcechange",za)),e.changedTouches?(e=x=e.changedTouches[0],m=e.identifier):e.pointerId?m=e.pointerId:x=m=null,Ee++,function _addToRenderQueue(e){_e.push(e),1===_e.length&&ge.ticker.add(sa)}(vh),b=J.pointerY=e.pageY,w=J.pointerX=e.pageX,Oa(J,"pressInit","onPressInit"),(B||J.autoScroll)&&Ja(h.parentNode),!h.parentNode||!J.autoScroll||f||G||!h.parentNode._gsMaxScrollX||ve.parentNode||h.getBBox||(ve.style.width=h.parentNode.scrollWidth+"px",h.parentNode.appendChild(ve)),Eh(),J.tween&&J.tween.kill(),J.isThrowing=!1,ge.killTweensOf(f||h,o,!0),f&&ge.killTweensOf(h,{scrollTo:1},!0),J.tween=J.lockedAxis=null,!u.zIndexBoost&&(G||f||!1===u.zIndexBoost)||(h.style.zIndex=Draggable.zIndex++),J.isPressed=!0,g=!(!u.onDrag&&!J._listeners.drag),s=!(!u.onMove&&!J._listeners.move),!1!==u.cursor||u.activeCursor)for(n=q.length;-1<--n;)ge.set(q[n],{cursor:u.activeCursor||u.cursor||("grab"===Se?"grabbing":Se)});Oa(J,"press","onPress")}}function Lh(e){if(e&&J.isDragging&&!f){var t=e.target||h.parentNode,n=t.scrollLeft-t._gsScrollX,o=t.scrollTop-t._gsScrollY;(n||o)&&(R?(w-=n*R.a+o*R.c,b-=o*R.d+n*R.b):(w-=n,b-=o),t._gsScrollX+=n,t._gsScrollY+=o,pe(J.pointerX,J.pointerY))}}function Mh(e){var t=ke(),n=t-ae<100,o=t-Q<50,r=n&&F===ae,i=J.pointerEvent&&J.pointerEvent.defaultPrevented,a=n&&c===ae,l=e.isTrusted||null==e.isTrusted&&n&&r;if((r||o&&!1!==J.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),n&&(!J.pointerEvent||!J.pointerEvent.defaultPrevented)&&(!r||l&&!a))return l&&r&&(c=ae),void(F=ae);(J.isPressed||o||n)&&(l&&e.detail&&n&&!i||za(e)),n||o||(e&&e.target&&(J.pointerEvent=e),Oa(J,"click","onClick"))}function Nh(e){return R?{x:e.x*R.a+e.y*R.c+R.e,y:e.x*R.b+e.y*R.d+R.f}:{x:e.x,y:e.y}}var p,f,w,b,T,D,E,g,s,M,L,S,C,x,m,N,O,t,P,k,_,y,v,R,A,B,I,H,F,c,z,d,n=(u.type||"x,y").toLowerCase(),W=~n.indexOf("x")||~n.indexOf("y"),G=-1!==n.indexOf("rotation"),K=G?"rotation":W?"x":"left",V=W?"y":"top",U=!(!~n.indexOf("x")&&!~n.indexOf("left")&&"scroll"!==n),$=!(!~n.indexOf("y")&&!~n.indexOf("top")&&"scroll"!==n),j=u.minimumMovement||2,J=function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),q=be(u.trigger||u.handle||h),o={},Q=0,ee=!1,te=u.autoScrollMarginTop||40,ne=u.autoScrollMarginRight||40,oe=u.autoScrollMarginBottom||40,re=u.autoScrollMarginLeft||40,ie=u.clickableTest||Ta,ae=0,le=h._gsap||ge.core.getCache(h),se=function _isFixed(e){return"fixed"===La(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)}(h),ce=h.ownerDocument||me,de=function isTweening(){return J.tween&&J.tween.isActive()},ue=function onMove(e){var t,n,o,r,i,a,l=e;if(p&&!Me&&J.isPressed&&e){if(t=(J.pointerEvent=e).changedTouches){if((e=t[0])!==x&&e.identifier!==m){for(r=t.length;-1<--r&&(e=t[r]).identifier!==m&&e.target!==h;);if(r<0)return}}else if(e.pointerId&&m&&e.pointerId!==m)return;v&&B&&!I&&(ze.x=e.pageX-(se?Ea(ce):0),ze.y=e.pageY-(se?Da(ce):0),R&&R.apply(ze,ze),n=ze.x,o=ze.y,((i=Math.abs(n-w))!==(a=Math.abs(o-b))&&(j<i||j<a)||Xe&&B===I)&&(I=a<i&&U?"x":"y",B&&I!==B&&xa(xe,"touchforcechange",za),!1!==J.vars.lockAxisOnTouchScroll&&U&&$&&(J.lockedAxis="x"===I?"y":"x",X(J.vars.onLockAxis)&&J.vars.onLockAxis.call(J,l)),Xe&&B===I))?he(l):(z=J.allowEventDefault||B&&(!I||B===I)||!1===l.cancelable?z&&!1:(za(l),!0),J.autoScroll&&(ee=!0),pe(e.pageX,e.pageY,s))}else z&&e&&p&&za(e)},pe=function setPointerPosition(e,t,n){var o,r,i,a,l,s,c=1-J.dragResistance,d=1-J.edgeResistance,u=J.pointerX,p=J.pointerY,h=D,f=J.x,g=J.y,x=J.endX,m=J.endY,y=J.endRotation,v=O;J.pointerX=e,J.pointerY=t,se&&(e-=Ea(ce),t-=Da(ce)),G?(a=Math.atan2(N.y-t,e-N.x)*Oe,180<(l=J.y-a)?(D-=360,J.y=a):l<-180&&(D+=360,J.y=a),i=J.x!==T||Math.abs(D-a)>j?(J.y=a,T+(D-a)*c):T):(R&&(s=e*R.a+t*R.c+R.e,t=e*R.b+t*R.d+R.f,e=s),(r=t-b)<j&&-j<r&&(r=0),(o=e-w)<j&&-j<o&&(o=0),(J.lockAxis||J.lockedAxis)&&(o||r)&&((s=J.lockedAxis)||(J.lockedAxis=s=U&&Math.abs(o)>Math.abs(r)?"y":$?"x":null,s&&X(J.vars.onLockAxis)&&J.vars.onLockAxis.call(J,J.pointerEvent)),"y"===s?r=0:"x"===s&&(o=0)),i=ba(T+o*c),a=ba(D+r*c)),(P||k||_)&&(J.x!==i||J.y!==a&&!G)&&(_&&(Ie.x=i,Ie.y=a,s=_(Ie),i=ba(s.x),a=ba(s.y)),P&&(i=ba(P(i))),k&&(a=ba(k(a)))),E&&(M<i?i=M+Math.round((i-M)*d):i<L&&(i=L+Math.round((i-L)*d)),G||(S<a?a=Math.round(S+(a-S)*d):a<C&&(a=Math.round(C+(a-C)*d)))),J.x===i&&(J.y===a||G)||(G?(J.endRotation=J.x=J.endX=i,O=!0):($&&(J.y=J.endY=a,O=!0),U&&(J.x=J.endX=i,O=!0)),n&&!1===Oa(J,"move","onMove")?(J.pointerX=u,J.pointerY=p,D=h,J.x=f,J.y=g,J.endX=x,J.endY=m,J.endRotation=y,O=v):!J.isDragging&&J.isPressed&&(J.isDragging=!0,Oa(J,"dragstart","onDragStart")))},he=function onRelease(e,t){if(p&&J.isPressed&&(!e||null==m||t||!(e.pointerId&&e.pointerId!==m&&e.target!==h||e.changedTouches&&!function _hasTouchID(e,t){for(var n=e.length;n--;)if(e[n].identifier===t)return!0}(e.changedTouches,m)))){J.isPressed=!1;var n,o,r,i,a,l=e,s=J.isDragging,c=J.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which),d=ge.delayedCall(.001,Gh);if(v?(ya(v,"touchend",onRelease),ya(v,"touchmove",ue),ya(v,"touchcancel",onRelease),ya(ce,"touchstart",Ca)):ya(ce,"mousemove",ue),ya(xe,"touchforcechange",za),Ye&&v||(ya(ce,"mouseup",onRelease),e&&e.target&&ya(e.target,"mouseup",onRelease)),O=!1,s&&(Q=Be=ke(),J.isDragging=!1),y&&!c)return e&&(ya(e.target,"change",onRelease),J.pointerEvent=l),Ua(q,!1),Oa(J,"release","onRelease"),Oa(J,"click","onClick"),void(y=!1);for(va(vh),o=q.length;-1<--o;)Ka(q[o],"cursor",u.cursor||(!1!==u.cursor?Se:null));if(Ee--,e){if((n=e.changedTouches)&&(e=n[0])!==x&&e.identifier!==m){for(o=n.length;-1<--o&&(e=n[o]).identifier!==m&&e.target!==h;);if(o<0)return}J.pointerEvent=l,J.pointerX=e.pageX,J.pointerY=e.pageY}return c&&l?(za(l),z=!0,Oa(J,"release","onRelease")):l&&!s?(z=!1,A&&(u.snap||u.bounds)&&Ch(u.inertia||u.throwProps),Oa(J,"release","onRelease"),Xe&&"touchmove"===l.type||-1!==l.type.indexOf("cancel")||(Oa(J,"click","onClick"),ke()-ae<300&&Oa(J,"doubleclick","onDoubleClick"),i=l.target||h,ae=ke(),a=function syntheticClick(){ae===F||!J.enabled()||J.isPressed||l.defaultPrevented||(i.click?i.click():ce.createEvent&&((r=ce.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,xe,1,J.pointerEvent.screenX,J.pointerEvent.screenY,J.pointerX,J.pointerY,!1,!1,!1,!1,0,null),i.dispatchEvent(r)))},Xe||l.defaultPrevented||ge.delayedCall(.05,a))):(Ch(u.inertia||u.throwProps),J.allowEventDefault||!l||!1===u.dragClickables&&ie.call(J,l.target)||!s||B&&(!I||B!==I)||!1===l.cancelable?z=!1:(z=!0,za(l)),Oa(J,"release","onRelease")),de()&&d.duration(J.tween.duration()),s&&Oa(J,"dragend","onDragEnd"),!0}z&&e&&p&&za(e)};return(t=Draggable.get(h))&&t.kill(),e.startDrag=function(e,t){var n,o,r,i;Hh(e||J.pointerEvent,!0),t&&!J.hitTest(e||J.pointerEvent)&&(n=Na(e||J.pointerEvent),o=Na(h),r=Nh({x:n.left+n.width/2,y:n.top+n.height/2}),i=Nh({x:o.left+o.width/2,y:o.top+o.height/2}),w-=r.x-i.x,b-=r.y-i.y),J.isDragging||(J.isDragging=!0,Oa(J,"dragstart","onDragStart"))},e.drag=ue,e.endDrag=function(e){return he(e||J.pointerEvent,!0)},e.timeSinceDrag=function(){return J.isDragging?0:(ke()-Q)/1e3},e.timeSinceClick=function(){return(ke()-ae)/1e3},e.hitTest=function(e,t){return Draggable.hitTest(J.target,e,t)},e.getDirection=function(e,t){var n,o,r,i,a,l,s="velocity"===e&&Le?e:Y(e)&&!G?"element":"start";return"element"===s&&(a=Na(J.target),l=Na(e)),n="start"===s?J.x-T:"velocity"===s?Le.getVelocity(h,K):a.left+a.width/2-(l.left+l.width/2),G?n<0?"counter-clockwise":"clockwise":(t=t||2,o="start"===s?J.y-D:"velocity"===s?Le.getVelocity(h,V):a.top+a.height/2-(l.top+l.height/2),i=(r=Math.abs(n/o))<1/t?"":n<0?"left":"right",r<t&&(""!==i&&(i+="-"),i+=o<0?"up":"down"),i)},e.applyBounds=function(e,t){var n,o,r,i,a,l;if(e&&u.bounds!==e)return u.bounds=e,J.update(!0,t);if(wh(!0),zh(),E&&!de()){if(n=J.x,o=J.y,M<n?n=M:n<L&&(n=L),S<o?o=S:o<C&&(o=C),(J.x!==n||J.y!==o)&&(r=!0,J.x=J.endX=n,G?J.endRotation=n:J.y=J.endY=o,vh(O=!0),J.autoScroll&&!J.isDragging))for(Ja(h.parentNode),i=h,He.scrollTop=null!=xe.pageYOffset?xe.pageYOffset:null!=ce.documentElement.scrollTop?ce.documentElement.scrollTop:ce.body.scrollTop,He.scrollLeft=null!=xe.pageXOffset?xe.pageXOffset:null!=ce.documentElement.scrollLeft?ce.documentElement.scrollLeft:ce.body.scrollLeft;i&&!l;)a=(l=Fe(i.parentNode))?He:i.parentNode,$&&a.scrollTop>a._gsMaxScrollY&&(a.scrollTop=a._gsMaxScrollY),U&&a.scrollLeft>a._gsMaxScrollX&&(a.scrollLeft=a._gsMaxScrollX),i=a;J.isThrowing&&(r||J.endX>M||J.endX<L||J.endY>S||J.endY<C)&&Ch(u.inertia||u.throwProps,r)}return J},e.update=function(e,t,n){if(t&&J.isPressed){var o=getGlobalMatrix(h),r=d.apply({x:J.x-T,y:J.y-D}),i=getGlobalMatrix(h.parentNode,!0);i.apply({x:o.e-r.x,y:o.f-r.y},r),J.x-=r.x-i.e,J.y-=r.y-i.f,vh(!0),Eh()}var a=J.x,l=J.y;return Dh(!t),e?J.applyBounds():(O&&n&&vh(!0),wh(!0)),t&&(pe(J.pointerX,J.pointerY),O&&vh(!0)),J.isPressed&&!t&&(U&&.01<Math.abs(a-J.x)||$&&.01<Math.abs(l-J.y)&&!G)&&Eh(),J.autoScroll&&(Ja(h.parentNode,J.isDragging),ee=J.isDragging,vh(!0),Ga(h,Lh),Fa(h,Lh)),J},e.enable=function(e){var t,n,o,r={lazy:!0};if(!1!==u.cursor&&(r.cursor=u.cursor||Se),ge.utils.checkPrefix("touchCallout")&&(r.touchCallout="none"),"soft"!==e){for(ra(q,U==$?"none":u.allowNativeTouchScrolling&&h.scrollHeight===h.clientHeight==(h.scrollWidth===h.clientHeight)||u.allowEventDefault?"manipulation":U?"pan-y":"pan-x"),n=q.length;-1<--n;)o=q[n],Ye||xa(o,"mousedown",Hh),xa(o,"touchstart",Hh),xa(o,"click",Mh,!0),ge.set(o,r),o.getBBox&&o.ownerSVGElement&&ge.set(o.ownerSVGElement,{touchAction:U==$?"none":u.allowNativeTouchScrolling||u.allowEventDefault?"manipulation":U?"pan-y":"pan-x"}),u.allowContextMenu||xa(o,"contextmenu",uh);Ua(q,!1)}return Fa(h,Lh),p=!0,Le&&"soft"!==e&&Le.track(f||h,W?"x,y":G?"rotation":"top,left"),h._gsDragID=t="d"+Ae++,Re[t]=J,f&&(f.enable(),f.element._gsDragID=t),(u.bounds||G)&&Eh(),u.bounds&&J.applyBounds(),J},e.disable=function(e){for(var t,n=J.isDragging,o=q.length;-1<--o;)Ka(q[o],"cursor",null);if("soft"!==e){for(ra(q,null),o=q.length;-1<--o;)t=q[o],Ka(t,"touchCallout",null),ya(t,"mousedown",Hh),ya(t,"touchstart",Hh),ya(t,"click",Mh),ya(t,"contextmenu",uh);Ua(q,!0),v&&(ya(v,"touchcancel",he),ya(v,"touchend",he),ya(v,"touchmove",ue)),ya(ce,"mouseup",he),ya(ce,"mousemove",ue)}return Ga(h,Lh),p=!1,Le&&"soft"!==e&&Le.untrack(f||h,W?"x,y":G?"rotation":"top,left"),f&&f.disable(),va(vh),J.isDragging=J.isPressed=y=!1,n&&Oa(J,"dragend","onDragEnd"),J},e.enabled=function(e,t){return arguments.length?e?J.enable(t):J.disable(t):p},e.kill=function(){return J.isThrowing=!1,J.tween&&J.tween.kill(),J.disable(),ge.set(q,{clearProps:"userSelect"}),delete Re[h._gsDragID],J},~n.indexOf("scroll")&&(f=e.scrollProxy=new Ya(h,function _extend(e,t){for(var n in t)n in e||(e[n]=t[n]);return e}({onKill:function onKill(){J.isPressed&&he(null)}},u)),h.style.overflowY=$&&!Te?"auto":"hidden",h.style.overflowX=U&&!Te?"auto":"hidden",h=f.content),G?o.rotation=1:(U&&(o[K]=1),$&&(o[V]=1)),le.force3D=!("force3D"in u)||u.force3D,e.enable(),e}!function _setDefaults(e,t){for(var n in t)n in e||(e[n]=t[n])}(I.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),I.zIndex=1e3,I.version="3.10.2",W()&&ge.registerPlugin(I),e.Draggable=I,e.default=I;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function w(e,t){if(e.parentNode&&(h||T(e))){var n=C(e),o=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=n?t?"rect":"g":"div",i=2!==t?0:100,a=3===t?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",s=h.createElementNS?h.createElementNS(o.replace(/^https/,"http"),r):h.createElement(r);return t&&(n?(g=g||w(e),s.setAttribute("width",.01),s.setAttribute("height",.01),s.setAttribute("transform","translate("+i+","+a+")"),g.appendChild(s)):(f||((f=w(e)).style.cssText=l),s.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+i+"px",f.appendChild(s))),s}throw"Need document and parent."}function A(e,t,n,o,r,i,a){return e.a=t,e.b=n,e.c=o,e.d=r,e.e=i,e.f=a,e}var h,p,r,i,f,g,x,m,y,t,v="transform",b=v+"Origin",T=function _setDoc(e){var t=e.ownerDocument||e;!(v in e.style)&&"msTransform"in e.style&&(b=(v="msTransform")+"Origin");for(;t.parentNode&&(t=t.parentNode););if(p=window,x=new fe,t){r=(h=t).documentElement,i=t.body,(m=h.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=t.createElement("div"),o=t.createElement("div");i.appendChild(n),n.appendChild(o),n.style.position="static",n.style[v]="translate3d(0,0,1px)",y=o.offsetParent!==n,i.removeChild(n)}return t},D=function _forceNonZeroScale(e){for(var t,n;e&&e!==i;)(n=e._gsap)&&n.uncache&&n.get(e,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},E=[],M=[],L=function _getDocScrollTop(){return p.pageYOffset||h.scrollTop||r.scrollTop||i.scrollTop||0},S=function _getDocScrollLeft(){return p.pageXOffset||h.scrollLeft||r.scrollLeft||i.scrollLeft||0},C=function _svgOwner(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},N=function _isFixed(e){return"fixed"===p.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)},O=function _placeSiblings(e,t){var n,o,r,i,a,l,s=C(e),c=e===s,d=s?E:M,u=e.parentNode;if(e===p)return e;if(d.length||d.push(w(e,1),w(e,2),w(e,3)),n=s?g:f,s)c?(i=-(r=function _getCTM(e){var t,n=e.getCTM();return n||(t=e.style[v],e.style[v]="none",e.appendChild(m),n=m.getCTM(),e.removeChild(m),t?e.style[v]=t:e.style.removeProperty(v.replace(/([A-Z])/g,"-$1").toLowerCase())),n||x.clone()}(e)).e/r.a,a=-r.f/r.d,o=x):e.getBBox?(r=e.getBBox(),i=(o=(o=e.transform?e.transform.baseVal:{}).numberOfItems?1<o.numberOfItems?function _consolidate(e){for(var t=new fe,n=0;n<e.numberOfItems;n++)t.multiply(e.getItem(n).matrix);return t}(o):o.getItem(0).matrix:x).a*r.x+o.c*r.y,a=o.b*r.x+o.d*r.y):(o=new fe,i=a=0),t&&"g"===e.tagName.toLowerCase()&&(i=a=0),(c?s:u).appendChild(n),n.setAttribute("transform","matrix("+o.a+","+o.b+","+o.c+","+o.d+","+(o.e+i)+","+(o.f+a)+")");else{if(i=a=0,y)for(o=e.offsetParent,r=e;(r=r&&r.parentNode)&&r!==o&&r.parentNode;)4<(p.getComputedStyle(r)[v]+"").length&&(i=r.offsetLeft,a=r.offsetTop,r=0);if("absolute"!==(l=p.getComputedStyle(e)).position&&"fixed"!==l.position)for(o=e.offsetParent;u&&u!==o;)i+=u.scrollLeft||0,a+=u.scrollTop||0,u=u.parentNode;(r=n.style).top=e.offsetTop-a+"px",r.left=e.offsetLeft-i+"px",r[v]=l[v],r[b]=l[b],r.position="fixed"===l.position?"fixed":"absolute",e.parentNode.appendChild(n)}return n},fe=((t=Matrix2D.prototype).inverse=function inverse(){var e=this.a,t=this.b,n=this.c,o=this.d,r=this.e,i=this.f,a=e*o-t*n||1e-10;return A(this,o/a,-t/a,-n/a,e/a,(n*i-o*r)/a,-(e*i-t*r)/a)},t.multiply=function multiply(e){var t=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f,l=e.a,s=e.c,c=e.b,d=e.d,u=e.e,p=e.f;return A(this,l*t+c*o,l*n+c*r,s*t+d*o,s*n+d*r,i+u*t+p*o,a+u*n+p*r)},t.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function equals(e){var t=this.a,n=this.b,o=this.c,r=this.d,i=this.e,a=this.f;return t===e.a&&n===e.b&&o===e.c&&r===e.d&&i===e.e&&a===e.f},t.apply=function apply(e,t){void 0===t&&(t={});var n=e.x,o=e.y,r=this.a,i=this.b,a=this.c,l=this.d,s=this.e,c=this.f;return t.x=n*r+o*a+s||0,t.y=n*i+o*l+c||0,t},Matrix2D);function Matrix2D(e,t,n,o,r,i){void 0===e&&(e=1),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=1),void 0===r&&(r=0),void 0===i&&(i=0),A(this,e,t,n,o,r,i)}function getGlobalMatrix(e,t,n,o){if(!e||!e.parentNode||(h||T(e)).documentElement===e)return new fe;var r=D(e),i=C(e)?E:M,a=O(e,n),l=i[0].getBoundingClientRect(),s=i[1].getBoundingClientRect(),c=i[2].getBoundingClientRect(),d=a.parentNode,u=!o&&N(e),p=new fe((s.left-l.left)/100,(s.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(u?0:S()),l.top+(u?0:L()));if(d.removeChild(a),r)for(l=r.length;l--;)(s=r[l]).scaleX=s.scaleY=0,s.renderTransform(1,s);return t?p.inverse():p}function V(){return"undefined"!=typeof window}function W(){return ge||V()&&(ge=window.gsap)&&ge.registerPlugin&&ge}function X(e){return"function"==typeof e}function Y(e){return"object"==typeof e}function Z(e){return void 0===e}function $(){return!1}function ba(e){return Math.round(1e4*e)/1e4}function da(e,t){var n=me.createElementNS?me.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):me.createElement(e);return n.style?n:me.createElement(e)}function pa(e,t){var n,o={};for(n in e)o[n]=t?e[n]*t:e[n];return o}function ra(e,t){for(var n,o=e.length;o--;)t?e[o].style.touchAction=t:e[o].style.removeProperty("touch-action"),(n=e[o].children)&&n.length&&ra(n,t)}function sa(){return _e.forEach(function(e){return e()})}function ua(){return!_e.length&&ge.ticker.remove(sa)}function va(e){for(var t=_e.length;t--;)_e[t]===e&&_e.splice(t,1);ge.to(ua,{overwrite:!0,delay:15,duration:0,onComplete:ua,data:"_draggable"})}function xa(e,t,n,o){if(e.addEventListener){var r=De[t];o=o||(d?{passive:!1}:null),e.addEventListener(r||t,n,o),r&&t!==r&&e.addEventListener(t,n,o)}}function ya(e,t,n){if(e.removeEventListener){var o=De[t];e.removeEventListener(o||t,n),o&&t!==o&&e.removeEventListener(t,n)}}function za(e){e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()}function Ba(e){Me=e.touches&&Ee<e.touches.length,ya(e.target,"touchend",Ba)}function Ca(e){Me=e.touches&&Ee<e.touches.length,xa(e.target,"touchend",Ba)}function Da(e){return xe.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0}function Ea(e){return xe.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0}function Fa(e,t){xa(e,"scroll",t),Fe(e.parentNode)||Fa(e.parentNode,t)}function Ga(e,t){ya(e,"scroll",t),Fe(e.parentNode)||Ga(e.parentNode,t)}function Ia(e,t){var n="x"===t?"Width":"Height",o="scroll"+n,r="client"+n;return Math.max(0,Fe(e)?Math.max(ye[o],l[o])-(xe["inner"+n]||ye[r]||l[r]):e[o]-e[r])}function Ja(e,t){var n=Ia(e,"x"),o=Ia(e,"y");Fe(e)?e=He:Ja(e.parentNode,t),e._gsMaxScrollX=n,e._gsMaxScrollY=o,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)}function Ka(e,t,n){var o=e.style;o&&(Z(o[t])&&(t=c(t,e)||t),null==n?o.removeProperty&&o.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):o[t]=n)}function La(e){return xe.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)}function Na(e){if(e===xe)return u.left=u.top=0,u.width=u.right=ye.clientWidth||e.innerWidth||l.clientWidth||0,u.height=u.bottom=(e.innerHeight||0)-20<ye.clientHeight?ye.clientHeight:e.innerHeight||l.clientHeight||0,u;var t=e.ownerDocument||me,n=Z(e.pageX)?e.nodeType||Z(e.left)||Z(e.top)?be(e)[0].getBoundingClientRect():e:{left:e.pageX-Ea(t),top:e.pageY-Da(t),right:e.pageX-Ea(t)+1,bottom:e.pageY-Da(t)+1};return Z(n.right)&&!Z(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):Z(n.width)&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n}function Oa(e,t,n){var o,r=e.vars,i=r[n],a=e._listeners[t];return X(i)&&(o=i.apply(r.callbackScope||e,r[n+"Params"]||[e.pointerEvent])),a&&!1===e.dispatchEvent(t)&&(o=!1),o}function Pa(e,t){var n,o,r,i=be(e)[0];return i.nodeType||i===xe?R(i,t):Z(e.left)?{left:o=e.min||e.minX||e.minRotation||0,top:n=e.min||e.minY||0,width:(e.max||e.maxX||e.maxRotation||0)-o,height:(e.max||e.maxY||0)-n}:(r={x:0,y:0},{left:e.left-r.x,top:e.top-r.y,width:e.width,height:e.height})}function Sa(r,i,e,t,a,n){var o,l,s,c={};if(i)if(1!==a&&i instanceof Array){if(c.end=o=[],s=i.length,Y(i[0]))for(l=0;l<s;l++)o[l]=pa(i[l],a);else for(l=0;l<s;l++)o[l]=i[l]*a;e+=1.1,t-=1.1}else X(i)?c.end=function(e){var t,n,o=i.call(r,e);if(1!==a)if(Y(o)){for(n in t={},o)t[n]=o[n]*a;o=t}else o*=a;return o}:c.end=i;return!e&&0!==e||(c.max=e),!t&&0!==t||(c.min=t),n&&(c.velocity=0),c}function Ta(e){var t;return!(!e||!e.getAttribute||e===l)&&(!("true"!==(t=e.getAttribute("data-clickable"))&&("false"===t||!e.onclick&&!o.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||Ta(e.parentNode))}function Ua(e,t){for(var n,o=e.length;o--;)(n=e[o]).ondragstart=n.onselectstart=t?null:$,ge.set(n,{lazy:!0,userSelect:t?"text":"none"})}function Ya(i,r){i=ge.utils.toArray(i)[0],r=r||{};var a,l,s,e,c,d,u=document.createElement("div"),p=u.style,t=i.firstChild,h=0,f=0,g=i.scrollTop,x=i.scrollLeft,m=i.scrollWidth,y=i.scrollHeight,v=0,w=0,b=0;P&&!1!==r.force3D?(c="translate3d(",d="px,0px)"):_&&(c="translate(",d="px)"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(e,t){if(!arguments.length)return-(i.scrollLeft+f);var n=i.scrollLeft-x,o=f;if((2<n||n<-2)&&!t)return x=i.scrollLeft,ge.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-x),void(r.onKill&&r.onKill());(e=-e)<0?(f=e-.5|0,e=0):w<e?(f=e-w|0,e=w):f=0,(f||o)&&(this._skip||(p[_]=c+-f+"px,"+-h+d),0<=f+v&&(p.paddingRight=f+v+"px")),i.scrollLeft=0|e,x=i.scrollLeft},this.top=function(e,t){if(!arguments.length)return-(i.scrollTop+h);var n=i.scrollTop-g,o=h;if((2<n||n<-2)&&!t)return g=i.scrollTop,ge.killTweensOf(this,{top:1,scrollTop:1}),this.top(-g),void(r.onKill&&r.onKill());(e=-e)<0?(h=e-.5|0,e=0):b<e?(h=e-b|0,e=b):h=0,(h||o)&&(this._skip||(p[_]=c+-f+"px,"+-h+d)),i.scrollTop=0|e,g=i.scrollTop},this.maxScrollTop=function(){return b},this.maxScrollLeft=function(){return w},this.disable=function(){for(t=u.firstChild;t;)e=t.nextSibling,i.appendChild(t),t=e;i===u.parentNode&&i.removeChild(u)},this.enable=function(){if((t=i.firstChild)!==u){for(;t;)e=t.nextSibling,u.appendChild(t),t=e;i.appendChild(u),this.calibrate()}},this.calibrate=function(e){var t,n,o,r=i.clientWidth===a;g=i.scrollTop,x=i.scrollLeft,r&&i.clientHeight===l&&u.offsetHeight===s&&m===i.scrollWidth&&y===i.scrollHeight&&!e||((h||f)&&(n=this.left(),o=this.top(),this.left(-i.scrollLeft),this.top(-i.scrollTop)),t=La(i),r&&!e||(p.display="block",p.width="auto",p.paddingRight="0px",(v=Math.max(0,i.scrollWidth-i.clientWidth))&&(v+=parseFloat(t.paddingLeft)+(k?parseFloat(t.paddingRight):0))),p.display="inline-block",p.position="relative",p.overflow="visible",p.verticalAlign="top",p.boxSizing="content-box",p.width="100%",p.paddingRight=v+"px",k&&(p.paddingBottom=t.paddingBottom),a=i.clientWidth,l=i.clientHeight,m=i.scrollWidth,y=i.scrollHeight,w=i.scrollWidth-a,b=i.scrollHeight-l,s=u.offsetHeight,p.display="block",(n||o)&&(this.left(n),this.top(o)))},this.content=u,this.element=i,this._skip=!1,this.enable()}function Za(e){if(V()&&document.body){var t=window&&window.navigator;xe=window,me=document,ye=me.documentElement,l=me.body,s=da("div"),Ye=!!window.PointerEvent,(ve=da("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Se="grab"===ve.style.cursor?"grab":"move",Xe=t&&-1!==t.userAgent.toLowerCase().indexOf("android"),Te="ontouchstart"in ye&&"orientation"in xe||t&&(0<t.MaxTouchPoints||0<t.msMaxTouchPoints),o=da("div"),r=da("div"),i=r.style,a=l,i.display="inline-block",i.position="relative",o.style.cssText=r.innerHTML="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",o.appendChild(r),a.appendChild(o),n=r.offsetHeight+18>o.scrollHeight,a.removeChild(o),k=n,De=function(e){for(var t=e.split(","),n=(("onpointerdown"in s?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in s?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":e).split(",")),o={},r=4;-1<--r;)o[t[r]]=n[r],o[n[r]]=t[r];try{ye.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){d=1}}))}catch(e){}return o}("touchstart,touchmove,touchend,touchcancel"),xa(me,"touchcancel",$),xa(xe,"touchmove",$),l&&l.addEventListener("touchstart",$),xa(me,"contextmenu",function(){for(var e in Re)Re[e].isPressed&&Re[e].endDrag()}),ge=we=W()}var n,o,r,i,a;ge?(Le=ge.plugins.inertia,c=ge.utils.checkPrefix,_=c(_),Ce=c(Ce),be=ge.utils.toArray,P=!!c("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")}var ge,xe,me,ye,l,s,ve,we,c,be,d,Te,De,Ee,Me,Xe,Le,Se,Ye,P,k,n,_="transform",Ce="transformOrigin",Ne=Array.isArray,Oe=180/Math.PI,Pe=1e20,a=new fe,ke=Date.now||function(){return(new Date).getTime()},_e=[],Re={},Ae=0,o=/^(?:a|input|textarea|button|select)$/i,Be=0,Ie={},He={},Fe=function _isRoot(e){return!(e&&e!==ye&&9!==e.nodeType&&e!==me.body&&e!==xe&&e.nodeType&&e.parentNode)},u={},ze={},R=function _getElementBounds(e,t){t=be(t)[0];var n,o,r,i,a,l,s,c,d,u,p,h,f,g,x=e.getBBox&&e.ownerSVGElement,m=e.ownerDocument||me;if(e===xe)r=Da(m),o=(n=Ea(m))+(m.documentElement.clientWidth||e.innerWidth||m.body.clientWidth||0),i=r+((e.innerHeight||0)-20<m.documentElement.clientHeight?m.documentElement.clientHeight:e.innerHeight||m.body.clientHeight||0);else{if(t===xe||Z(t))return e.getBoundingClientRect();n=r=0,x?(p=(u=e.getBBox()).width,h=u.height):(e.viewBox&&(u=e.viewBox.baseVal)&&(n=u.x||0,r=u.y||0,p=u.width,h=u.height),p||(u="border-box"===(f=La(e)).boxSizing,p=(parseFloat(f.width)||e.clientWidth||0)+(u?0:parseFloat(f.borderLeftWidth)+parseFloat(f.borderRightWidth)),h=(parseFloat(f.height)||e.clientHeight||0)+(u?0:parseFloat(f.borderTopWidth)+parseFloat(f.borderBottomWidth)))),o=p,i=h}return e===t?{left:n,top:r,width:o-n,height:i-r}:(l=(a=getGlobalMatrix(t,!0).multiply(getGlobalMatrix(e))).apply({x:n,y:r}),s=a.apply({x:o,y:r}),c=a.apply({x:o,y:i}),d=a.apply({x:n,y:i}),n=Math.min(l.x,s.x,c.x,d.x),r=Math.min(l.y,s.y,c.y,d.y),{left:n+((g=t.parentNode||{}).scrollLeft||0),top:r+(g.scrollTop||0),width:Math.max(l.x,s.x,c.x,d.x)-n,height:Math.max(l.y,s.y,c.y,d.y)-r})},B=((n=EventDispatcher.prototype).addEventListener=function addEventListener(e,t){var n=this._listeners[e]||(this._listeners[e]=[]);~n.indexOf(t)||n.push(t)},n.removeEventListener=function removeEventListener(e,t){var n=this._listeners[e],o=n&&n.indexOf(t)||-1;-1<o&&n.splice(o,1)},n.dispatchEvent=function dispatchEvent(t){var n,o=this;return(this._listeners[t]||[]).forEach(function(e){return!1===e.call(o,{type:t,target:o.target})&&(n=!1)}),n},EventDispatcher);function EventDispatcher(e){this._listeners={},this.target=e||this}var We,I=(function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(Draggable,We=B),Draggable.register=function register(e){ge=e,Za()},Draggable.create=function create(e,t){return we||Za(!0),be(e).map(function(e){return new Draggable(e,t)})},Draggable.get=function get(e){return Re[(be(e)[0]||{})._gsDragID]},Draggable.timeSinceDrag=function timeSinceDrag(){return(ke()-Be)/1e3},Draggable.hitTest=function hitTest(e,t,n){if(e===t)return!1;var o,r,i,a=Na(e),l=Na(t),s=a.top,c=a.left,d=a.right,u=a.bottom,p=a.width,h=a.height,f=l.left>d||l.right<c||l.top>u||l.bottom<s;return f||!n?!f:(i=-1!==(n+"").indexOf("%"),n=parseFloat(n)||0,(o={left:Math.max(c,l.left),top:Math.max(s,l.top)}).width=Math.min(d,l.right)-o.left,o.height=Math.min(u,l.bottom)-o.top,!(o.width<0||o.height<0)&&(i?p*h*(n*=.01)<=(r=o.width*o.height)||r>=l.width*l.height*n:o.width>n&&o.height>n))},Draggable);function Draggable(h,u){var e;e=We.call(this)||this,we||Za(1),h=be(h)[0],Le=Le||ge.plugins.inertia,e.vars=u=pa(u||{}),e.target=h,e.x=e.y=e.rotation=0,e.dragResistance=parseFloat(u.dragResistance)||0,e.edgeResistance=isNaN(u.edgeResistance)?1:parseFloat(u.edgeResistance)||0,e.lockAxis=u.lockAxis,e.autoScroll=u.autoScroll||0,e.lockedAxis=null,e.allowEventDefault=!!u.allowEventDefault,ge.getProperty(h,"x");function Og(e,t){return parseFloat(le.get(h,e,t))}function uh(e){return za(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1}function vh(e){if(J.autoScroll&&J.isDragging&&(ee||O)){var t,n,o,r,i,a,l,s,c=h,d=15*J.autoScroll;for(ee=!1,He.scrollTop=null!=xe.pageYOffset?xe.pageYOffset:null!=ce.documentElement.scrollTop?ce.documentElement.scrollTop:ce.body.scrollTop,He.scrollLeft=null!=xe.pageXOffset?xe.pageXOffset:null!=ce.documentElement.scrollLeft?ce.documentElement.scrollLeft:ce.body.scrollLeft,r=J.pointerX-He.scrollLeft,i=J.pointerY-He.scrollTop;c&&!n;)t=(n=Fe(c.parentNode))?He:c.parentNode,o=n?{bottom:Math.max(ye.clientHeight,xe.innerHeight||0),right:Math.max(ye.clientWidth,xe.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),a=l=0,$&&((s=t._gsMaxScrollY-t.scrollTop)<0?l=s:i>o.bottom-oe&&s?(ee=!0,l=Math.min(s,d*(1-Math.max(0,o.bottom-i)/oe)|0)):i<o.top+te&&t.scrollTop&&(ee=!0,l=-Math.min(t.scrollTop,d*(1-Math.max(0,i-o.top)/te)|0)),l&&(t.scrollTop+=l)),U&&((s=t._gsMaxScrollX-t.scrollLeft)<0?a=s:r>o.right-ne&&s?(ee=!0,a=Math.min(s,d*(1-Math.max(0,o.right-r)/ne)|0)):r<o.left+re&&t.scrollLeft&&(ee=!0,a=-Math.min(t.scrollLeft,d*(1-Math.max(0,r-o.left)/re)|0)),a&&(t.scrollLeft+=a)),n&&(a||l)&&(xe.scrollTo(t.scrollLeft,t.scrollTop),pe(J.pointerX+a,J.pointerY+l)),c=t}if(O){var u=J.x,p=J.y;G?(J.deltaX=u-parseFloat(le.rotation),J.rotation=u,le.rotation=u+"deg",le.renderTransform(1,le)):f?($&&(J.deltaY=p-f.top(),f.top(p)),U&&(J.deltaX=u-f.left(),f.left(u))):W?($&&(J.deltaY=p-parseFloat(le.y),le.y=p+"px"),U&&(J.deltaX=u-parseFloat(le.x),le.x=u+"px"),le.renderTransform(1,le)):($&&(J.deltaY=p-parseFloat(h.style.top||0),h.style.top=p+"px"),U&&(J.deltaX=u-parseFloat(h.style.left||0),h.style.left=u+"px")),!g||e||H||(!(H=!0)===Oa(J,"drag","onDrag")&&(U&&(J.x-=J.deltaX),$&&(J.y-=J.deltaY),vh(!0)),H=!1)}O=!1}function wh(e,t){var n,o,r=J.x,i=J.y;h._gsap||(le=ge.core.getCache(h)),le.uncache&&ge.getProperty(h,"x"),W?(J.x=parseFloat(le.x),J.y=parseFloat(le.y)):G?J.x=J.rotation=parseFloat(le.rotation):f?(J.y=f.top(),J.x=f.left()):(J.y=parseFloat(h.style.top||(o=La(h))&&o.top)||0,J.x=parseFloat(h.style.left||(o||{}).left)||0),(P||k||_)&&!t&&(J.isDragging||J.isThrowing)&&(_&&(Ie.x=J.x,Ie.y=J.y,(n=_(Ie)).x!==J.x&&(J.x=n.x,O=!0),n.y!==J.y&&(J.y=n.y,O=!0)),P&&(n=P(J.x))!==J.x&&(J.x=n,G&&(J.rotation=n),O=!0),k&&((n=k(J.y))!==J.y&&(J.y=n),O=!0)),O&&vh(!0),e||(J.deltaX=J.x-r,J.deltaY=J.y-i,Oa(J,"throwupdate","onThrowUpdate"))}function xh(a,l,s,n){return null==l&&(l=-Pe),null==s&&(s=Pe),X(a)?function(e){var t=J.isPressed?1-J.edgeResistance:1;return a.call(J,s<e?s+(e-s)*t:e<l?l+(e-l)*t:e)*n}:Ne(a)?function(e){for(var t,n,o=a.length,r=0,i=Pe;-1<--o;)(n=(t=a[o])-e)<0&&(n=-n),n<i&&l<=t&&t<=s&&(r=o,i=n);return a[r]}:isNaN(a)?function(e){return e}:function(){return a*n}}function zh(){var e,t,n,o;E=!1,f?(f.calibrate(),J.minX=L=-f.maxScrollLeft(),J.minY=C=-f.maxScrollTop(),J.maxX=M=J.maxY=S=0,E=!0):u.bounds&&(e=Pa(u.bounds,h.parentNode),G?(J.minX=L=e.left,J.maxX=M=e.left+e.width,J.minY=C=J.maxY=S=0):Z(u.bounds.maxX)&&Z(u.bounds.maxY)?(t=Pa(h,h.parentNode),J.minX=L=Math.round(Og(K,"px")+e.left-t.left),J.minY=C=Math.round(Og(V,"px")+e.top-t.top),J.maxX=M=Math.round(L+(e.width-t.width)),J.maxY=S=Math.round(C+(e.height-t.height))):(e=u.bounds,J.minX=L=e.minX,J.minY=C=e.minY,J.maxX=M=e.maxX,J.maxY=S=e.maxY),M<L&&(J.minX=M,J.maxX=M=L,L=J.minX),S<C&&(J.minY=S,J.maxY=S=C,C=J.minY),G&&(J.minRotation=L,J.maxRotation=M),E=!0),u.liveSnap&&(n=!0===u.liveSnap?u.snap||{}:u.liveSnap,o=Ne(n)||X(n),G?(P=xh(o?n:n.rotation,L,M,1),k=null):n.points?_=function buildPointSnapFunc(s,l,c,d,u,p,h){return p=p&&p<Pe?p*p:Pe,X(s)?function(e){var t,n,o,r=J.isPressed?1-J.edgeResistance:1,i=e.x,a=e.y;return e.x=i=c<i?c+(i-c)*r:i<l?l+(i-l)*r:i,e.y=a=u<a?u+(a-u)*r:a<d?d+(a-d)*r:a,(t=s.call(J,e))!==e&&(e.x=t.x,e.y=t.y),1!==h&&(e.x*=h,e.y*=h),p<Pe&&(n=e.x-i,o=e.y-a,p<n*n+o*o&&(e.x=i,e.y=a)),e}:Ne(s)?function(e){for(var t,n,o,r,i=s.length,a=0,l=Pe;-1<--i;)(r=(t=(o=s[i]).x-e.x)*t+(n=o.y-e.y)*n)<l&&(a=i,l=r);return l<=p?s[a]:e}:function(e){return e}}(o?n:n.points,L,M,C,S,n.radius,f?-1:1):(U&&(P=xh(o?n:n.x||n.left||n.scrollLeft,L,M,f?-1:1)),$&&(k=xh(o?n:n.y||n.top||n.scrollTop,C,S,f?-1:1))))}function Ah(){J.isThrowing=!1,Oa(J,"throwcomplete","onThrowComplete")}function Bh(){J.isThrowing=!1}function Ch(e,t){var n,o,r,i;e&&Le?(!0===e&&(n=u.snap||u.liveSnap||{},o=Ne(n)||X(n),e={resistance:(u.throwResistance||u.resistance||1e3)/(G?10:1)},G?e.rotation=Sa(J,o?n:n.rotation,M,L,1,t):(U&&(e[K]=Sa(J,o?n:n.points||n.x||n.left,M,L,f?-1:1,t||"x"===J.lockedAxis)),$&&(e[V]=Sa(J,o?n:n.points||n.y||n.top,S,C,f?-1:1,t||"y"===J.lockedAxis)),(n.points||Ne(n)&&Y(n[0]))&&(e.linkedProps=K+","+V,e.radius=n.radius))),J.isThrowing=!0,i=isNaN(u.overshootTolerance)?1===u.edgeResistance?0:1-J.edgeResistance+.2:u.overshootTolerance,e.duration||(e.duration={max:Math.max(u.minDuration||0,"maxDuration"in u?u.maxDuration:2),min:isNaN(u.minDuration)?0===i||Y(e)&&1e3<e.resistance?0:.5:u.minDuration,overshoot:i}),J.tween=r=ge.to(f||h,{inertia:e,data:"_draggable",onComplete:Ah,onInterrupt:Bh,onUpdate:u.fastMode?Oa:wh,onUpdateParams:u.fastMode?[J,"onthrowupdate","onThrowUpdate"]:n&&n.radius?[!1,!0]:[]}),u.fastMode||(f&&(f._skip=!0),r.render(1e9,!0,!0),wh(!0,!0),J.endX=J.x,J.endY=J.y,G&&(J.endRotation=J.x),r.play(0),wh(!0,!0),f&&(f._skip=!1))):E&&J.applyBounds()}function Dh(e){var t,n=R;R=getGlobalMatrix(h.parentNode,!0),e&&J.isPressed&&!R.equals(n||new fe)&&(t=n.inverse().apply({x:w,y:b}),R.apply(t,t),w=t.x,b=t.y),R.equals(a)&&(R=null)}function Eh(){var e,t,n,o=1-J.edgeResistance,r=se?Ea(ce):0,i=se?Da(ce):0;Dh(!1),ze.x=J.pointerX-r,ze.y=J.pointerY-i,R&&R.apply(ze,ze),w=ze.x,b=ze.y,O&&(pe(J.pointerX,J.pointerY),vh(!0)),d=getGlobalMatrix(h),f?(zh(),D=f.top(),T=f.left()):(de()?(wh(!0,!0),zh()):J.applyBounds(),G?(e=h.ownerSVGElement?[le.xOrigin-h.getBBox().x,le.yOrigin-h.getBBox().y]:(La(h)[Ce]||"0 0").split(" "),N=J.rotationOrigin=getGlobalMatrix(h).apply({x:parseFloat(e[0])||0,y:parseFloat(e[1])||0}),wh(!0,!0),t=J.pointerX-N.x-r,n=N.y-J.pointerY+i,T=J.x,D=J.y=Math.atan2(n,t)*Oe):(D=Og(V,"px"),T=Og(K,"px"))),E&&o&&(M<T?T=M+(T-M)/o:T<L&&(T=L-(L-T)/o),G||(S<D?D=S+(D-S)/o:D<C&&(D=C-(C-D)/o))),J.startX=T=ba(T),J.startY=D=ba(D)}function Gh(){!ve.parentNode||de()||J.isDragging||ve.parentNode.removeChild(ve)}function Hh(e,t){var n;if(!p||J.isPressed||!e||!("mousedown"!==e.type&&"pointerdown"!==e.type||t)&&ke()-ae<30&&De[J.pointerEvent.type])z&&e&&p&&za(e);else{if(A=de(),J.pointerEvent=e,De[e.type]?(v=~e.type.indexOf("touch")?e.currentTarget||e.target:ce,xa(v,"touchend",he),xa(v,"touchmove",ue),xa(v,"touchcancel",he),xa(ce,"touchstart",Ca)):(v=null,xa(ce,"mousemove",ue)),I=null,Ye&&v||(xa(ce,"mouseup",he),e&&e.target&&xa(e.target,"mouseup",he)),y=ie.call(J,e.target)&&!1===u.dragClickables&&!t)return xa(e.target,"change",he),Oa(J,"pressInit","onPressInit"),Oa(J,"press","onPress"),Ua(q,!0),void(z=!1);if(B=!(!v||U==$||!1===J.vars.allowNativeTouchScrolling||J.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which))&&(U?"y":"x"),(z=!B&&!J.allowEventDefault)&&(za(e),xa(xe,"touchforcechange",za)),e.changedTouches?(e=x=e.changedTouches[0],m=e.identifier):e.pointerId?m=e.pointerId:x=m=null,Ee++,function _addToRenderQueue(e){_e.push(e),1===_e.length&&ge.ticker.add(sa)}(vh),b=J.pointerY=e.pageY,w=J.pointerX=e.pageX,Oa(J,"pressInit","onPressInit"),(B||J.autoScroll)&&Ja(h.parentNode),!h.parentNode||!J.autoScroll||f||G||!h.parentNode._gsMaxScrollX||ve.parentNode||h.getBBox||(ve.style.width=h.parentNode.scrollWidth+"px",h.parentNode.appendChild(ve)),Eh(),J.tween&&J.tween.kill(),J.isThrowing=!1,ge.killTweensOf(f||h,o,!0),f&&ge.killTweensOf(h,{scrollTo:1},!0),J.tween=J.lockedAxis=null,!u.zIndexBoost&&(G||f||!1===u.zIndexBoost)||(h.style.zIndex=Draggable.zIndex++),J.isPressed=!0,g=!(!u.onDrag&&!J._listeners.drag),s=!(!u.onMove&&!J._listeners.move),!1!==u.cursor||u.activeCursor)for(n=q.length;-1<--n;)ge.set(q[n],{cursor:u.activeCursor||u.cursor||("grab"===Se?"grabbing":Se)});Oa(J,"press","onPress")}}function Lh(e){if(e&&J.isDragging&&!f){var t=e.target||h.parentNode,n=t.scrollLeft-t._gsScrollX,o=t.scrollTop-t._gsScrollY;(n||o)&&(R?(w-=n*R.a+o*R.c,b-=o*R.d+n*R.b):(w-=n,b-=o),t._gsScrollX+=n,t._gsScrollY+=o,pe(J.pointerX,J.pointerY))}}function Mh(e){var t=ke(),n=t-ae<100,o=t-Q<50,r=n&&F===ae,i=J.pointerEvent&&J.pointerEvent.defaultPrevented,a=n&&c===ae,l=e.isTrusted||null==e.isTrusted&&n&&r;if((r||o&&!1!==J.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),n&&(!J.pointerEvent||!J.pointerEvent.defaultPrevented)&&(!r||l&&!a))return l&&r&&(c=ae),void(F=ae);(J.isPressed||o||n)&&(l&&e.detail&&n&&!i||za(e)),n||o||(e&&e.target&&(J.pointerEvent=e),Oa(J,"click","onClick"))}function Nh(e){return R?{x:e.x*R.a+e.y*R.c+R.e,y:e.x*R.b+e.y*R.d+R.f}:{x:e.x,y:e.y}}var p,f,w,b,T,D,E,g,s,M,L,S,C,x,m,N,O,t,P,k,_,y,v,R,A,B,I,H,F,c,z,d,n=(u.type||"x,y").toLowerCase(),W=~n.indexOf("x")||~n.indexOf("y"),G=-1!==n.indexOf("rotation"),K=G?"rotation":W?"x":"left",V=W?"y":"top",U=!(!~n.indexOf("x")&&!~n.indexOf("left")&&"scroll"!==n),$=!(!~n.indexOf("y")&&!~n.indexOf("top")&&"scroll"!==n),j=u.minimumMovement||2,J=function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),q=be(u.trigger||u.handle||h),o={},Q=0,ee=!1,te=u.autoScrollMarginTop||40,ne=u.autoScrollMarginRight||40,oe=u.autoScrollMarginBottom||40,re=u.autoScrollMarginLeft||40,ie=u.clickableTest||Ta,ae=0,le=h._gsap||ge.core.getCache(h),se=function _isFixed(e){return"fixed"===La(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)}(h),ce=h.ownerDocument||me,de=function isTweening(){return J.tween&&J.tween.isActive()},ue=function onMove(e){var t,n,o,r,i,a,l=e;if(p&&!Me&&J.isPressed&&e){if(t=(J.pointerEvent=e).changedTouches){if((e=t[0])!==x&&e.identifier!==m){for(r=t.length;-1<--r&&(e=t[r]).identifier!==m&&e.target!==h;);if(r<0)return}}else if(e.pointerId&&m&&e.pointerId!==m)return;v&&B&&!I&&(ze.x=e.pageX-(se?Ea(ce):0),ze.y=e.pageY-(se?Da(ce):0),R&&R.apply(ze,ze),n=ze.x,o=ze.y,((i=Math.abs(n-w))!==(a=Math.abs(o-b))&&(j<i||j<a)||Xe&&B===I)&&(I=a<i&&U?"x":"y",B&&I!==B&&xa(xe,"touchforcechange",za),!1!==J.vars.lockAxisOnTouchScroll&&U&&$&&(J.lockedAxis="x"===I?"y":"x",X(J.vars.onLockAxis)&&J.vars.onLockAxis.call(J,l)),Xe&&B===I))?he(l):(z=J.allowEventDefault||B&&(!I||B===I)||!1===l.cancelable?z&&!1:(za(l),!0),J.autoScroll&&(ee=!0),pe(e.pageX,e.pageY,s))}else z&&e&&p&&za(e)},pe=function setPointerPosition(e,t,n){var o,r,i,a,l,s,c=1-J.dragResistance,d=1-J.edgeResistance,u=J.pointerX,p=J.pointerY,h=D,f=J.x,g=J.y,x=J.endX,m=J.endY,y=J.endRotation,v=O;J.pointerX=e,J.pointerY=t,se&&(e-=Ea(ce),t-=Da(ce)),G?(a=Math.atan2(N.y-t,e-N.x)*Oe,180<(l=J.y-a)?(D-=360,J.y=a):l<-180&&(D+=360,J.y=a),i=J.x!==T||Math.abs(D-a)>j?(J.y=a,T+(D-a)*c):T):(R&&(s=e*R.a+t*R.c+R.e,t=e*R.b+t*R.d+R.f,e=s),(r=t-b)<j&&-j<r&&(r=0),(o=e-w)<j&&-j<o&&(o=0),(J.lockAxis||J.lockedAxis)&&(o||r)&&((s=J.lockedAxis)||(J.lockedAxis=s=U&&Math.abs(o)>Math.abs(r)?"y":$?"x":null,s&&X(J.vars.onLockAxis)&&J.vars.onLockAxis.call(J,J.pointerEvent)),"y"===s?r=0:"x"===s&&(o=0)),i=ba(T+o*c),a=ba(D+r*c)),(P||k||_)&&(J.x!==i||J.y!==a&&!G)&&(_&&(Ie.x=i,Ie.y=a,s=_(Ie),i=ba(s.x),a=ba(s.y)),P&&(i=ba(P(i))),k&&(a=ba(k(a)))),E&&(M<i?i=M+Math.round((i-M)*d):i<L&&(i=L+Math.round((i-L)*d)),G||(S<a?a=Math.round(S+(a-S)*d):a<C&&(a=Math.round(C+(a-C)*d)))),J.x===i&&(J.y===a||G)||(G?(J.endRotation=J.x=J.endX=i,O=!0):($&&(J.y=J.endY=a,O=!0),U&&(J.x=J.endX=i,O=!0)),n&&!1===Oa(J,"move","onMove")?(J.pointerX=u,J.pointerY=p,D=h,J.x=f,J.y=g,J.endX=x,J.endY=m,J.endRotation=y,O=v):!J.isDragging&&J.isPressed&&(J.isDragging=!0,Oa(J,"dragstart","onDragStart")))},he=function onRelease(e,t){if(p&&J.isPressed&&(!e||null==m||t||!(e.pointerId&&e.pointerId!==m&&e.target!==h||e.changedTouches&&!function _hasTouchID(e,t){for(var n=e.length;n--;)if(e[n].identifier===t)return!0}(e.changedTouches,m)))){J.isPressed=!1;var n,o,r,i,a,l=e,s=J.isDragging,c=J.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which),d=ge.delayedCall(.001,Gh);if(v?(ya(v,"touchend",onRelease),ya(v,"touchmove",ue),ya(v,"touchcancel",onRelease),ya(ce,"touchstart",Ca)):ya(ce,"mousemove",ue),ya(xe,"touchforcechange",za),Ye&&v||(ya(ce,"mouseup",onRelease),e&&e.target&&ya(e.target,"mouseup",onRelease)),O=!1,s&&(Q=Be=ke(),J.isDragging=!1),y&&!c)return e&&(ya(e.target,"change",onRelease),J.pointerEvent=l),Ua(q,!1),Oa(J,"release","onRelease"),Oa(J,"click","onClick"),void(y=!1);for(va(vh),o=q.length;-1<--o;)Ka(q[o],"cursor",u.cursor||(!1!==u.cursor?Se:null));if(Ee--,e){if((n=e.changedTouches)&&(e=n[0])!==x&&e.identifier!==m){for(o=n.length;-1<--o&&(e=n[o]).identifier!==m&&e.target!==h;);if(o<0)return}J.pointerEvent=l,J.pointerX=e.pageX,J.pointerY=e.pageY}return c&&l?(za(l),z=!0,Oa(J,"release","onRelease")):l&&!s?(z=!1,A&&(u.snap||u.bounds)&&Ch(u.inertia||u.throwProps),Oa(J,"release","onRelease"),Xe&&"touchmove"===l.type||-1!==l.type.indexOf("cancel")||(Oa(J,"click","onClick"),ke()-ae<300&&Oa(J,"doubleclick","onDoubleClick"),i=l.target||h,ae=ke(),a=function syntheticClick(){ae===F||!J.enabled()||J.isPressed||l.defaultPrevented||(i.click?i.click():ce.createEvent&&((r=ce.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,xe,1,J.pointerEvent.screenX,J.pointerEvent.screenY,J.pointerX,J.pointerY,!1,!1,!1,!1,0,null),i.dispatchEvent(r)))},Xe||l.defaultPrevented||ge.delayedCall(.05,a))):(Ch(u.inertia||u.throwProps),J.allowEventDefault||!l||!1===u.dragClickables&&ie.call(J,l.target)||!s||B&&(!I||B!==I)||!1===l.cancelable?z=!1:(z=!0,za(l)),Oa(J,"release","onRelease")),de()&&d.duration(J.tween.duration()),s&&Oa(J,"dragend","onDragEnd"),!0}z&&e&&p&&za(e)};return(t=Draggable.get(h))&&t.kill(),e.startDrag=function(e,t){var n,o,r,i;Hh(e||J.pointerEvent,!0),t&&!J.hitTest(e||J.pointerEvent)&&(n=Na(e||J.pointerEvent),o=Na(h),r=Nh({x:n.left+n.width/2,y:n.top+n.height/2}),i=Nh({x:o.left+o.width/2,y:o.top+o.height/2}),w-=r.x-i.x,b-=r.y-i.y),J.isDragging||(J.isDragging=!0,Oa(J,"dragstart","onDragStart"))},e.drag=ue,e.endDrag=function(e){return he(e||J.pointerEvent,!0)},e.timeSinceDrag=function(){return J.isDragging?0:(ke()-Q)/1e3},e.timeSinceClick=function(){return(ke()-ae)/1e3},e.hitTest=function(e,t){return Draggable.hitTest(J.target,e,t)},e.getDirection=function(e,t){var n,o,r,i,a,l,s="velocity"===e&&Le?e:Y(e)&&!G?"element":"start";return"element"===s&&(a=Na(J.target),l=Na(e)),n="start"===s?J.x-T:"velocity"===s?Le.getVelocity(h,K):a.left+a.width/2-(l.left+l.width/2),G?n<0?"counter-clockwise":"clockwise":(t=t||2,o="start"===s?J.y-D:"velocity"===s?Le.getVelocity(h,V):a.top+a.height/2-(l.top+l.height/2),i=(r=Math.abs(n/o))<1/t?"":n<0?"left":"right",r<t&&(""!==i&&(i+="-"),i+=o<0?"up":"down"),i)},e.applyBounds=function(e,t){var n,o,r,i,a,l;if(e&&u.bounds!==e)return u.bounds=e,J.update(!0,t);if(wh(!0),zh(),E&&!de()){if(n=J.x,o=J.y,M<n?n=M:n<L&&(n=L),S<o?o=S:o<C&&(o=C),(J.x!==n||J.y!==o)&&(r=!0,J.x=J.endX=n,G?J.endRotation=n:J.y=J.endY=o,vh(O=!0),J.autoScroll&&!J.isDragging))for(Ja(h.parentNode),i=h,He.scrollTop=null!=xe.pageYOffset?xe.pageYOffset:null!=ce.documentElement.scrollTop?ce.documentElement.scrollTop:ce.body.scrollTop,He.scrollLeft=null!=xe.pageXOffset?xe.pageXOffset:null!=ce.documentElement.scrollLeft?ce.documentElement.scrollLeft:ce.body.scrollLeft;i&&!l;)a=(l=Fe(i.parentNode))?He:i.parentNode,$&&a.scrollTop>a._gsMaxScrollY&&(a.scrollTop=a._gsMaxScrollY),U&&a.scrollLeft>a._gsMaxScrollX&&(a.scrollLeft=a._gsMaxScrollX),i=a;J.isThrowing&&(r||J.endX>M||J.endX<L||J.endY>S||J.endY<C)&&Ch(u.inertia||u.throwProps,r)}return J},e.update=function(e,t,n){if(t&&J.isPressed){var o=getGlobalMatrix(h),r=d.apply({x:J.x-T,y:J.y-D}),i=getGlobalMatrix(h.parentNode,!0);i.apply({x:o.e-r.x,y:o.f-r.y},r),J.x-=r.x-i.e,J.y-=r.y-i.f,vh(!0),Eh()}var a=J.x,l=J.y;return Dh(!t),e?J.applyBounds():(O&&n&&vh(!0),wh(!0)),t&&(pe(J.pointerX,J.pointerY),O&&vh(!0)),J.isPressed&&!t&&(U&&.01<Math.abs(a-J.x)||$&&.01<Math.abs(l-J.y)&&!G)&&Eh(),J.autoScroll&&(Ja(h.parentNode,J.isDragging),ee=J.isDragging,vh(!0),Ga(h,Lh),Fa(h,Lh)),J},e.enable=function(e){var t,n,o,r={lazy:!0};if(!1!==u.cursor&&(r.cursor=u.cursor||Se),ge.utils.checkPrefix("touchCallout")&&(r.touchCallout="none"),"soft"!==e){for(ra(q,U==$?"none":u.allowNativeTouchScrolling&&h.scrollHeight===h.clientHeight==(h.scrollWidth===h.clientHeight)||u.allowEventDefault?"manipulation":U?"pan-y":"pan-x"),n=q.length;-1<--n;)o=q[n],Ye||xa(o,"mousedown",Hh),xa(o,"touchstart",Hh),xa(o,"click",Mh,!0),ge.set(o,r),o.getBBox&&o.ownerSVGElement&&ge.set(o.ownerSVGElement,{touchAction:U==$?"none":u.allowNativeTouchScrolling||u.allowEventDefault?"manipulation":U?"pan-y":"pan-x"}),u.allowContextMenu||xa(o,"contextmenu",uh);Ua(q,!1)}return Fa(h,Lh),p=!0,Le&&"soft"!==e&&Le.track(f||h,W?"x,y":G?"rotation":"top,left"),h._gsDragID=t="d"+Ae++,Re[t]=J,f&&(f.enable(),f.element._gsDragID=t),(u.bounds||G)&&Eh(),u.bounds&&J.applyBounds(),J},e.disable=function(e){for(var t,n=J.isDragging,o=q.length;-1<--o;)Ka(q[o],"cursor",null);if("soft"!==e){for(ra(q,null),o=q.length;-1<--o;)t=q[o],Ka(t,"touchCallout",null),ya(t,"mousedown",Hh),ya(t,"touchstart",Hh),ya(t,"click",Mh),ya(t,"contextmenu",uh);Ua(q,!0),v&&(ya(v,"touchcancel",he),ya(v,"touchend",he),ya(v,"touchmove",ue)),ya(ce,"mouseup",he),ya(ce,"mousemove",ue)}return Ga(h,Lh),p=!1,Le&&"soft"!==e&&Le.untrack(f||h,W?"x,y":G?"rotation":"top,left"),f&&f.disable(),va(vh),J.isDragging=J.isPressed=y=!1,n&&Oa(J,"dragend","onDragEnd"),J},e.enabled=function(e,t){return arguments.length?e?J.enable(t):J.disable(t):p},e.kill=function(){return J.isThrowing=!1,J.tween&&J.tween.kill(),J.disable(),ge.set(q,{clearProps:"userSelect"}),delete Re[h._gsDragID],J},~n.indexOf("scroll")&&(f=e.scrollProxy=new Ya(h,function _extend(e,t){for(var n in t)n in e||(e[n]=t[n]);return e}({onKill:function onKill(){J.isPressed&&he(null)}},u)),h.style.overflowY=$&&!Te?"auto":"hidden",h.style.overflowX=U&&!Te?"auto":"hidden",h=f.content),G?o.rotation=1:(U&&(o[K]=1),$&&(o[V]=1)),le.force3D=!("force3D"in u)||u.force3D,e.enable(),e}!function _setDefaults(e,t){for(var n in t)n in e||(e[n]=t[n])}(I.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),I.zIndex=1e3,I.version="3.10.3",W()&&ge.registerPlugin(I),e.Draggable=I,e.default=I;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* DrawSVGPlugin 3.10.2 | ||
* DrawSVGPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function i(){return"undefined"!=typeof window}function j(){return a||i()&&(a=window.gsap)&&a.registerPlugin&&a}function m(e){return Math.round(1e4*e)/1e4}function n(e){return parseFloat(e)||0}function o(e,t){var r=n(e);return~e.indexOf("%")?r/100*t:r}function p(e,t){return n(e.getAttribute(t))}function r(e,t,r,i,o,s){return P(Math.pow((n(r)-n(e))*o,2)+Math.pow((n(i)-n(t))*s,2))}function s(e){return console.warn(e)}function t(e){return"non-scaling-stroke"===e.getAttribute("vector-effect")}function w(){return String.fromCharCode.apply(null,arguments)}function A(e){if(!(e=v(e)[0]))return 0;var n,i,o,a,d,f,w,h=e.tagName.toLowerCase(),l=e.style,u=1,c=1;t(e)&&(c=e.getScreenCTM(),u=P(c.a*c.a+c.b*c.b),c=P(c.d*c.d+c.c*c.c));try{i=e.getBBox()}catch(e){s("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var g=i||{x:0,y:0,width:0,height:0},_=g.x,y=g.y,m=g.width,x=g.height;if(i&&(m||x)||!b[h]||(m=p(e,b[h][0]),x=p(e,b[h][1]),"rect"!==h&&"line"!==h&&(m*=2,x*=2),"line"===h&&(_=p(e,"x1"),y=p(e,"y1"),m=Math.abs(m-_),x=Math.abs(x-y))),"path"===h)a=l.strokeDasharray,l.strokeDasharray="none",n=e.getTotalLength()||0,u!==c&&s("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),n*=(u+c)/2,l.strokeDasharray=a;else if("rect"===h)n=2*m*u+2*x*c;else if("line"===h)n=r(_,y,_+m,y+x,u,c);else if("polyline"===h||"polygon"===h)for(o=e.getAttribute("points").match(k)||[],"polygon"===h&&o.push(o[0],o[1]),n=0,d=2;d<o.length;d+=2)n+=r(o[d-2],o[d-1],o[d],o[d+1],u,c)||0;else"circle"!==h&&"ellipse"!==h||(f=m/2*u,w=x/2*c,n=Math.PI*(3*(f+w)-P((3*f+w)*(f+3*w))));return n||0}function B(e,t){if(!(e=v(e)[0]))return[0,0];t=t||A(e)+1;var r=f.getComputedStyle(e),i=r.strokeDasharray||"",o=n(r.strokeDashoffset),s=i.indexOf(",");return s<0&&(s=i.indexOf(" ")),t<(i=s<0?t:n(i.substr(0,s)))&&(i=t),[-o||0,i-o||0]}function C(){i()&&(f=window,l=a=j(),v=a.utils.toArray,h=-1!==((f.navigator||{}).userAgent||"").indexOf("Edge"))}var a,v,f,h,l,k=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,b={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},P=Math.sqrt,d="DrawSVGPlugin",u=w(103,114,101,101,110,115,111,99,107,46,99,111,109),c=function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(w(102,105,108,101,58,47,47))||-1!==e.indexOf(w(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(w(49,50,55,46,48,32,48,46,49)),r=[u,w(99,111,100,101,112,101,110,46,105,111),w(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),w(99,111,100,101,112,101,110,46,100,101,118),w(99,111,100,101,112,101,110,46,97,112,112),w(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),w(112,101,110,115,46,99,108,111,117,100),w(99,115,115,45,116,114,105,99,107,115,46,99,111,109),w(99,100,112,110,46,105,111),w(112,101,110,115,46,105,111),w(103,97,110,110,111,110,46,116,118),w(99,111,100,101,99,97,110,121,111,110,46,110,101,116),w(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),w(99,101,114,101,98,114,97,120,46,99,111,46,117,107),w(116,121,109,112,97,110,117,115,46,110,101,116),w(116,119,101,101,110,109,97,120,46,99,111,109),w(116,119,101,101,110,108,105,116,101,46,99,111,109),w(112,108,110,107,114,46,99,111),w(104,111,116,106,97,114,46,99,111,109),w(119,101,98,112,97,99,107,98,105,110,46,99,111,109),w(97,114,99,104,105,118,101,46,111,114,103),w(99,111,100,101,115,97,110,100,98,111,120,46,105,111),w(99,115,98,46,97,112,112),w(115,116,97,99,107,98,108,105,116,122,46,99,111,109),w(115,116,97,99,107,98,108,105,116,122,46,105,111),w(99,111,100,105,101,114,46,105,111),w(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),w(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),w(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),w(106,115,102,105,100,100,108,101,46,110,101,116)],i=r.length;for(setTimeout(function checkWarn(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(w(37,99,87,97,114,110,105,110,103),w(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(w(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+d+w(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(w(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),w(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--i;)if(-1!==e.indexOf(r[i]))return!0;return n||!setTimeout(function(){t&&(window.location.href=w(104,116,116,112,115,58,47,47)+u+w(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+d+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),g={version:"3.10.2",name:"drawSVG",register:function register(e){a=e,C()},init:function init(e,r){if(!e.getBBox)return!1;l||C();var i,s,a,d=A(e);return this._style=e.style,this._target=e,r+""=="true"?r="0 100%":r?-1===(r+"").indexOf(" ")&&(r="0 "+r):r="0 0",s=function _parse(e,t,n){var r,i,s=e.indexOf(" ");return i=s<0?(r=void 0!==n?n+"":e,e):(r=e.substr(0,s),e.substr(s+1)),r=o(r,t),(i=o(i,t))<r?[i,r]:[r,i]}(r,d,(i=B(e,d))[0]),this._length=m(d),this._dash=m(i[1]-i[0]),this._offset=m(-i[0]),this._dashPT=this.add(this,"_dash",this._dash,m(s[1]-s[0])),this._offsetPT=this.add(this,"_offset",this._offset,m(-s[0])),h&&(a=f.getComputedStyle(e)).strokeLinecap!==a.strokeLinejoin&&(s=n(a.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",s,s+.01)),this._live=t(e)||~(r+"").indexOf("live"),this._nowrap=~(r+"").indexOf("nowrap"),this._props.push("drawSVG"),c},render:function render(e,t){var n,r,i,o,s=t._pt,a=t._style;if(s){for(t._live&&(n=A(t._target))!==t._length&&(r=n/t._length,t._length=n,t._offsetPT&&(t._offsetPT.s*=r,t._offsetPT.c*=r),t._dashPT?(t._dashPT.s*=r,t._dashPT.c*=r):t._dash*=r);s;)s.r(e,s.d),s=s._next;i=t._dash||e&&1!==e&&1e-4||0,n=t._length-i+.1,o=t._offset,i&&o&&i+Math.abs(o%t._length)>t._length-.2&&(o+=o<0?.1:-.1)&&(n+=.1),a.strokeDashoffset=i?o:o+.001,a.strokeDasharray=n<.2?"none":i?i+"px,"+(t._nowrap?999999:n)+"px":"0px, 999999px"}},getLength:A,getPosition:B};j()&&a.registerPlugin(g),e.DrawSVGPlugin=g,e.default=g;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function i(){return"undefined"!=typeof window}function j(){return a||i()&&(a=window.gsap)&&a.registerPlugin&&a}function m(e){return Math.round(1e4*e)/1e4}function n(e){return parseFloat(e)||0}function o(e,t){var r=n(e);return~e.indexOf("%")?r/100*t:r}function p(e,t){return n(e.getAttribute(t))}function r(e,t,r,i,o,s){return P(Math.pow((n(r)-n(e))*o,2)+Math.pow((n(i)-n(t))*s,2))}function s(e){return console.warn(e)}function t(e){return"non-scaling-stroke"===e.getAttribute("vector-effect")}function w(){return String.fromCharCode.apply(null,arguments)}function A(e){if(!(e=v(e)[0]))return 0;var n,i,o,a,d,f,w,h=e.tagName.toLowerCase(),l=e.style,u=1,c=1;t(e)&&(c=e.getScreenCTM(),u=P(c.a*c.a+c.b*c.b),c=P(c.d*c.d+c.c*c.c));try{i=e.getBBox()}catch(e){s("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var g=i||{x:0,y:0,width:0,height:0},_=g.x,y=g.y,m=g.width,x=g.height;if(i&&(m||x)||!b[h]||(m=p(e,b[h][0]),x=p(e,b[h][1]),"rect"!==h&&"line"!==h&&(m*=2,x*=2),"line"===h&&(_=p(e,"x1"),y=p(e,"y1"),m=Math.abs(m-_),x=Math.abs(x-y))),"path"===h)a=l.strokeDasharray,l.strokeDasharray="none",n=e.getTotalLength()||0,u!==c&&s("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),n*=(u+c)/2,l.strokeDasharray=a;else if("rect"===h)n=2*m*u+2*x*c;else if("line"===h)n=r(_,y,_+m,y+x,u,c);else if("polyline"===h||"polygon"===h)for(o=e.getAttribute("points").match(k)||[],"polygon"===h&&o.push(o[0],o[1]),n=0,d=2;d<o.length;d+=2)n+=r(o[d-2],o[d-1],o[d],o[d+1],u,c)||0;else"circle"!==h&&"ellipse"!==h||(f=m/2*u,w=x/2*c,n=Math.PI*(3*(f+w)-P((3*f+w)*(f+3*w))));return n||0}function B(e,t){if(!(e=v(e)[0]))return[0,0];t=t||A(e)+1;var r=f.getComputedStyle(e),i=r.strokeDasharray||"",o=n(r.strokeDashoffset),s=i.indexOf(",");return s<0&&(s=i.indexOf(" ")),t<(i=s<0?t:n(i.substr(0,s)))&&(i=t),[-o||0,i-o||0]}function C(){i()&&(f=window,l=a=j(),v=a.utils.toArray,h=-1!==((f.navigator||{}).userAgent||"").indexOf("Edge"))}var a,v,f,h,l,k=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,b={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},P=Math.sqrt,d="DrawSVGPlugin",u=w(103,114,101,101,110,115,111,99,107,46,99,111,109),c=function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(w(102,105,108,101,58,47,47))||-1!==e.indexOf(w(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(w(49,50,55,46,48,32,48,46,49)),r=[u,w(99,111,100,101,112,101,110,46,105,111),w(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),w(99,111,100,101,112,101,110,46,100,101,118),w(99,111,100,101,112,101,110,46,97,112,112),w(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),w(112,101,110,115,46,99,108,111,117,100),w(99,115,115,45,116,114,105,99,107,115,46,99,111,109),w(99,100,112,110,46,105,111),w(112,101,110,115,46,105,111),w(103,97,110,110,111,110,46,116,118),w(99,111,100,101,99,97,110,121,111,110,46,110,101,116),w(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),w(99,101,114,101,98,114,97,120,46,99,111,46,117,107),w(116,121,109,112,97,110,117,115,46,110,101,116),w(116,119,101,101,110,109,97,120,46,99,111,109),w(116,119,101,101,110,108,105,116,101,46,99,111,109),w(112,108,110,107,114,46,99,111),w(104,111,116,106,97,114,46,99,111,109),w(119,101,98,112,97,99,107,98,105,110,46,99,111,109),w(97,114,99,104,105,118,101,46,111,114,103),w(99,111,100,101,115,97,110,100,98,111,120,46,105,111),w(99,115,98,46,97,112,112),w(115,116,97,99,107,98,108,105,116,122,46,99,111,109),w(115,116,97,99,107,98,108,105,116,122,46,105,111),w(99,111,100,105,101,114,46,105,111),w(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),w(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),w(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),w(106,115,102,105,100,100,108,101,46,110,101,116)],i=r.length;for(setTimeout(function checkWarn(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(w(37,99,87,97,114,110,105,110,103),w(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(w(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+d+w(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(w(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),w(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--i;)if(-1!==e.indexOf(r[i]))return!0;return n||!setTimeout(function(){t&&(window.location.href=w(104,116,116,112,115,58,47,47)+u+w(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+d+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),g={version:"3.10.3",name:"drawSVG",register:function register(e){a=e,C()},init:function init(e,r){if(!e.getBBox)return!1;l||C();var i,s,a,d=A(e);return this._style=e.style,this._target=e,r+""=="true"?r="0 100%":r?-1===(r+"").indexOf(" ")&&(r="0 "+r):r="0 0",s=function _parse(e,t,n){var r,i,s=e.indexOf(" ");return i=s<0?(r=void 0!==n?n+"":e,e):(r=e.substr(0,s),e.substr(s+1)),r=o(r,t),(i=o(i,t))<r?[i,r]:[r,i]}(r,d,(i=B(e,d))[0]),this._length=m(d),this._dash=m(i[1]-i[0]),this._offset=m(-i[0]),this._dashPT=this.add(this,"_dash",this._dash,m(s[1]-s[0])),this._offsetPT=this.add(this,"_offset",this._offset,m(-s[0])),h&&(a=f.getComputedStyle(e)).strokeLinecap!==a.strokeLinejoin&&(s=n(a.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",s,s+.01)),this._live=t(e)||~(r+"").indexOf("live"),this._nowrap=~(r+"").indexOf("nowrap"),this._props.push("drawSVG"),c},render:function render(e,t){var n,r,i,o,s=t._pt,a=t._style;if(s){for(t._live&&(n=A(t._target))!==t._length&&(r=n/t._length,t._length=n,t._offsetPT&&(t._offsetPT.s*=r,t._offsetPT.c*=r),t._dashPT?(t._dashPT.s*=r,t._dashPT.c*=r):t._dash*=r);s;)s.r(e,s.d),s=s._next;i=t._dash||e&&1!==e&&1e-4||0,n=t._length-i+.1,o=t._offset,i&&o&&i+Math.abs(o%t._length)>t._length-.2&&(o+=o<0?.1:-.1)&&(n+=.1),a.strokeDashoffset=i?o:o+.001,a.strokeDasharray=n<.2?"none":i?i+"px,"+(t._nowrap?999999:n)+"px":"0px, 999999px"}},getLength:A,getPosition:B};j()&&a.registerPlugin(g),e.DrawSVGPlugin=g,e.default=g;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* EaselPlugin 3.10.2 | ||
* EaselPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function k(){return"undefined"!=typeof window}function l(){return h||k()&&(h=window.gsap)&&h.registerPlugin&&h}function m(){return r||t&&t.createjs||t||{}}function n(e){return console.warn(e)}function o(e){var t=e.getBounds&&e.getBounds();t||(t=e.nominalBounds||{x:0,y:0,width:100,height:100},e.setBounds&&e.setBounds(t.x,t.y,t.width,t.height)),e.cache&&e.cache(t.x,t.y,t.width,t.height),n("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. "+e)}function p(e,t,r){(b=b||m().ColorFilter)||n("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.");for(var i,l,s,u,a,f,c=e.filters||[],d=c.length;d--;)if(c[d]instanceof b){l=c[d];break}if(l||(l=new b,c.push(l),e.filters=c),s=l.clone(),null!=t.tint)i=h.utils.splitColor(t.tint),u=null!=t.tintAmount?+t.tintAmount:1,s.redOffset=i[0]*u,s.greenOffset=i[1]*u,s.blueOffset=i[2]*u,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-u;else for(a in t)"exposure"!==a&&"brightness"!==a&&(s[a]=+t[a]);for(null!=t.exposure?(s.redOffset=s.greenOffset=s.blueOffset=255*(t.exposure-1),s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1):null!=t.brightness&&(u=t.brightness-1,s.redOffset=s.greenOffset=s.blueOffset=0<u?255*u:0,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-Math.abs(u)),d=8;d--;)l[a=M[d]]!==s[a]&&(f=r.add(l,a,l[a],s[a]))&&(f.op="easel_colorFilter");r._props.push("easel_colorFilter"),e.cacheID||o(e)}function u(e,t){if(!(e instanceof Array&&t instanceof Array))return t;var r,i,n=[],l=0,o=0;for(r=0;r<4;r++){for(i=0;i<5;i++)o=4===i?e[l+4]:0,n[l+i]=e[l]*t[i]+e[l+1]*t[i+5]+e[l+2]*t[i+10]+e[l+3]*t[i+15]+o;l+=5}return n}function z(e,t,r){(d=d||m().ColorMatrixFilter)||n("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.");for(var i,l,s,a,f=e.filters||[],c=f.length;-1<--c;)if(f[c]instanceof d){s=f[c];break}for(s||(s=new d(w.slice()),f.push(s),e.filters=f),l=s.matrix,i=w.slice(),null!=t.colorize&&(i=function _colorize(e,t,r){isNaN(r)&&(r=1);var i=h.utils.splitColor(t),n=i[0]/255,l=i[1]/255,o=i[2]/255,s=1-r;return u([s+r*n*x,r*n*y,r*n*_,0,0,r*l*x,s+r*l*y,r*l*_,0,0,r*o*x,r*o*y,s+r*o*_,0,0,0,0,0,1,0],e)}(i,t.colorize,Number(t.colorizeAmount))),null!=t.contrast&&(i=function _setContrast(e,t){return isNaN(t)?e:u([t+=.01,0,0,0,128*(1-t),0,t,0,0,128*(1-t),0,0,t,0,128*(1-t),0,0,0,1,0],e)}(i,Number(t.contrast))),null!=t.hue&&(i=function _setHue(e,t){if(isNaN(t))return e;t*=Math.PI/180;var r=Math.cos(t),i=Math.sin(t);return u([x+r*(1-x)+i*-x,y+r*-y+i*-y,_+r*-_+i*(1-_),0,0,x+r*-x+.143*i,y+r*(1-y)+.14*i,_+r*-_+-.283*i,0,0,x+r*-x+i*-(1-x),y+r*-y+i*y,_+r*(1-_)+i*_,0,0,0,0,0,1,0,0,0,0,0,1],e)}(i,Number(t.hue))),null!=t.saturation&&(i=function _setSaturation(e,t){if(isNaN(t))return e;var r=1-t,i=r*x,n=r*y,l=r*_;return u([i+t,n,l,0,0,i,n+t,l,0,0,i,n,l+t,0,0,0,0,0,1,0],e)}(i,Number(t.saturation))),c=i.length;-1<--c;)i[c]!==l[c]&&(a=r.add(l,c,l[c],i[c]))&&(a.op="easel_colorMatrixFilter");r._props.push("easel_colorMatrixFilter"),e.cacheID||o(),r._matrix=l}function A(e){h=e||l(),k()&&(t=window),h&&(g=1)}var h,g,t,r,b,d,M="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),w=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],x=.212671,y=.71516,_=.072169,i={version:"3.10.2",name:"easel",init:function init(e,t,r,i,l){var o,s,u,a,f,c,d;for(o in g||(A(),h||n("Please gsap.registerPlugin(EaselPlugin)")),this.target=e,t)if(f=t[o],"colorFilter"===o||"tint"===o||"tintAmount"===o||"exposure"===o||"brightness"===o)u||(p(e,t.colorFilter||t,this),u=!0);else if("saturation"===o||"contrast"===o||"hue"===o||"colorize"===o||"colorizeAmount"===o)a||(z(e,t.colorMatrixFilter||t,this),a=!0);else if("frame"===o){if("string"==typeof f&&"="!==f.charAt(1)&&(c=e.labels))for(d=0;d<c.length;d++)c[d].label===f&&(f=c[d].position);(s=this.add(e,"gotoAndStop",e.currentFrame,f,i,l,Math.round))&&(s.op=o)}else null!=e[o]&&this.add(e,o,"get",f)},render:function render(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next;t.target.cacheID&&t.target.updateCache()},register:A,registerCreateJS:function(e){r=e}};l()&&h.registerPlugin(i),e.EaselPlugin=i,e.default=i;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function k(){return"undefined"!=typeof window}function l(){return h||k()&&(h=window.gsap)&&h.registerPlugin&&h}function m(){return r||t&&t.createjs||t||{}}function n(e){return console.warn(e)}function o(e){var t=e.getBounds&&e.getBounds();t||(t=e.nominalBounds||{x:0,y:0,width:100,height:100},e.setBounds&&e.setBounds(t.x,t.y,t.width,t.height)),e.cache&&e.cache(t.x,t.y,t.width,t.height),n("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. "+e)}function p(e,t,r){(b=b||m().ColorFilter)||n("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.");for(var i,l,s,u,a,f,c=e.filters||[],d=c.length;d--;)if(c[d]instanceof b){l=c[d];break}if(l||(l=new b,c.push(l),e.filters=c),s=l.clone(),null!=t.tint)i=h.utils.splitColor(t.tint),u=null!=t.tintAmount?+t.tintAmount:1,s.redOffset=i[0]*u,s.greenOffset=i[1]*u,s.blueOffset=i[2]*u,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-u;else for(a in t)"exposure"!==a&&"brightness"!==a&&(s[a]=+t[a]);for(null!=t.exposure?(s.redOffset=s.greenOffset=s.blueOffset=255*(t.exposure-1),s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1):null!=t.brightness&&(u=t.brightness-1,s.redOffset=s.greenOffset=s.blueOffset=0<u?255*u:0,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-Math.abs(u)),d=8;d--;)l[a=M[d]]!==s[a]&&(f=r.add(l,a,l[a],s[a]))&&(f.op="easel_colorFilter");r._props.push("easel_colorFilter"),e.cacheID||o(e)}function u(e,t){if(!(e instanceof Array&&t instanceof Array))return t;var r,i,n=[],l=0,o=0;for(r=0;r<4;r++){for(i=0;i<5;i++)o=4===i?e[l+4]:0,n[l+i]=e[l]*t[i]+e[l+1]*t[i+5]+e[l+2]*t[i+10]+e[l+3]*t[i+15]+o;l+=5}return n}function z(e,t,r){(d=d||m().ColorMatrixFilter)||n("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.");for(var i,l,s,a,f=e.filters||[],c=f.length;-1<--c;)if(f[c]instanceof d){s=f[c];break}for(s||(s=new d(w.slice()),f.push(s),e.filters=f),l=s.matrix,i=w.slice(),null!=t.colorize&&(i=function _colorize(e,t,r){isNaN(r)&&(r=1);var i=h.utils.splitColor(t),n=i[0]/255,l=i[1]/255,o=i[2]/255,s=1-r;return u([s+r*n*x,r*n*y,r*n*_,0,0,r*l*x,s+r*l*y,r*l*_,0,0,r*o*x,r*o*y,s+r*o*_,0,0,0,0,0,1,0],e)}(i,t.colorize,Number(t.colorizeAmount))),null!=t.contrast&&(i=function _setContrast(e,t){return isNaN(t)?e:u([t+=.01,0,0,0,128*(1-t),0,t,0,0,128*(1-t),0,0,t,0,128*(1-t),0,0,0,1,0],e)}(i,Number(t.contrast))),null!=t.hue&&(i=function _setHue(e,t){if(isNaN(t))return e;t*=Math.PI/180;var r=Math.cos(t),i=Math.sin(t);return u([x+r*(1-x)+i*-x,y+r*-y+i*-y,_+r*-_+i*(1-_),0,0,x+r*-x+.143*i,y+r*(1-y)+.14*i,_+r*-_+-.283*i,0,0,x+r*-x+i*-(1-x),y+r*-y+i*y,_+r*(1-_)+i*_,0,0,0,0,0,1,0,0,0,0,0,1],e)}(i,Number(t.hue))),null!=t.saturation&&(i=function _setSaturation(e,t){if(isNaN(t))return e;var r=1-t,i=r*x,n=r*y,l=r*_;return u([i+t,n,l,0,0,i,n+t,l,0,0,i,n,l+t,0,0,0,0,0,1,0],e)}(i,Number(t.saturation))),c=i.length;-1<--c;)i[c]!==l[c]&&(a=r.add(l,c,l[c],i[c]))&&(a.op="easel_colorMatrixFilter");r._props.push("easel_colorMatrixFilter"),e.cacheID||o(),r._matrix=l}function A(e){h=e||l(),k()&&(t=window),h&&(g=1)}var h,g,t,r,b,d,M="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),w=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],x=.212671,y=.71516,_=.072169,i={version:"3.10.3",name:"easel",init:function init(e,t,r,i,l){var o,s,u,a,f,c,d;for(o in g||(A(),h||n("Please gsap.registerPlugin(EaselPlugin)")),this.target=e,t)if(f=t[o],"colorFilter"===o||"tint"===o||"tintAmount"===o||"exposure"===o||"brightness"===o)u||(p(e,t.colorFilter||t,this),u=!0);else if("saturation"===o||"contrast"===o||"hue"===o||"colorize"===o||"colorizeAmount"===o)a||(z(e,t.colorMatrixFilter||t,this),a=!0);else if("frame"===o){if("string"==typeof f&&"="!==f.charAt(1)&&(c=e.labels))for(d=0;d<c.length;d++)c[d].label===f&&(f=c[d].position);(s=this.add(e,"gotoAndStop",e.currentFrame,f,i,l,Math.round))&&(s.op=o)}else null!=e[o]&&this.add(e,o,"get",f)},render:function render(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next;t.target.cacheID&&t.target.updateCache()},register:A,registerCreateJS:function(e){r=e}};l()&&h.registerPlugin(i),e.EaselPlugin=i,e.default=i;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* EasePack 3.10.2 | ||
* EasePack 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function f(){return w||"undefined"!=typeof window&&(w=window.gsap)&&w.registerPlugin&&w}function g(e,n){return!!(void 0===e?n:e&&!~(e+"").indexOf("false"))}function h(e){if(w=e||f()){r=w.registerEase;var n,t=w.parseEase(),o=function createConfig(t){return function(e){var n=.5+e/2;t.config=function(e){return t(2*(1-e)*e*n+e*e)}}};for(n in t)t[n].config||o(t[n]);for(n in r("slow",a),r("expoScale",s),r("rough",u),c)"version"!==n&&w.core.globals(n,c[n])}}function i(e,n,t){var o=(e=Math.min(1,e||.7))<1?n||0===n?n:.7:0,r=(1-e)/2,i=r+e,a=g(t);return function(e){var n=e+(.5-e)*o;return e<r?a?1-(e=1-e/r)*e:n-(e=1-e/r)*e*e*e*n:i<e?a?1===e?0:1-(e=(e-i)/r)*e:n+(e-n)*(e=(e-i)/r)*e*e*e:a?1:n}}function j(n,e,t){var o=Math.log(e/n),r=e-n;return t=t&&w.parseEase(t),function(e){return(n*Math.exp(o*(t?t(e):e))-n)/r}}function k(e,n,t){this.t=e,this.v=n,t&&(((this.next=t).prev=this).c=t.v-n,this.gap=t.t-e)}function l(e){"object"!=typeof e&&(e={points:+e||20});for(var n,t,o,r,i,a,f,s=e.taper||"none",u=[],c=0,p=0|(+e.points||20),l=p,v=g(e.randomize,!0),d=g(e.clamp),h=w?w.parseEase(e.template):0,x=.4*(+e.strength||1);-1<--l;)n=v?Math.random():1/p*l,t=h?h(n):n,o="none"===s?x:"out"===s?(r=1-n)*r*x:"in"===s?n*n*x:n<.5?(r=2*n)*r*.5*x:(r=2*(1-n))*r*.5*x,v?t+=Math.random()*o-.5*o:l%2?t+=.5*o:t-=.5*o,d&&(1<t?t=1:t<0&&(t=0)),u[c++]={x:n,y:t};for(u.sort(function(e,n){return e.x-n.x}),a=new k(1,1,null),l=p;l--;)i=u[l],a=new k(i.x,i.y,a);return f=new k(0,0,a.t?a:a.next),function(e){var n=f;if(e>n.t){for(;n.next&&e>=n.t;)n=n.next;n=n.prev}else for(;n.prev&&e<=n.t;)n=n.prev;return(f=n).v+(e-n.t)/n.gap*n.c}}var w,r,a=i(.7);(a.ease=a).config=i;var s=j(1,2);s.config=j;var u=l();(u.ease=u).config=l;var c={SlowMo:a,RoughEase:u,ExpoScaleEase:s};for(var n in c)c[n].register=h,c[n].version="3.10.2";f()&&w.registerPlugin(a),e.EasePack=c,e.ExpoScaleEase=s,e.RoughEase=u,e.SlowMo=a,e.default=c;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function f(){return w||"undefined"!=typeof window&&(w=window.gsap)&&w.registerPlugin&&w}function g(e,n){return!!(void 0===e?n:e&&!~(e+"").indexOf("false"))}function h(e){if(w=e||f()){r=w.registerEase;var n,t=w.parseEase(),o=function createConfig(t){return function(e){var n=.5+e/2;t.config=function(e){return t(2*(1-e)*e*n+e*e)}}};for(n in t)t[n].config||o(t[n]);for(n in r("slow",a),r("expoScale",s),r("rough",u),c)"version"!==n&&w.core.globals(n,c[n])}}function i(e,n,t){var o=(e=Math.min(1,e||.7))<1?n||0===n?n:.7:0,r=(1-e)/2,i=r+e,a=g(t);return function(e){var n=e+(.5-e)*o;return e<r?a?1-(e=1-e/r)*e:n-(e=1-e/r)*e*e*e*n:i<e?a?1===e?0:1-(e=(e-i)/r)*e:n+(e-n)*(e=(e-i)/r)*e*e*e:a?1:n}}function j(n,e,t){var o=Math.log(e/n),r=e-n;return t=t&&w.parseEase(t),function(e){return(n*Math.exp(o*(t?t(e):e))-n)/r}}function k(e,n,t){this.t=e,this.v=n,t&&(((this.next=t).prev=this).c=t.v-n,this.gap=t.t-e)}function l(e){"object"!=typeof e&&(e={points:+e||20});for(var n,t,o,r,i,a,f,s=e.taper||"none",u=[],c=0,p=0|(+e.points||20),l=p,v=g(e.randomize,!0),d=g(e.clamp),h=w?w.parseEase(e.template):0,x=.4*(+e.strength||1);-1<--l;)n=v?Math.random():1/p*l,t=h?h(n):n,o="none"===s?x:"out"===s?(r=1-n)*r*x:"in"===s?n*n*x:n<.5?(r=2*n)*r*.5*x:(r=2*(1-n))*r*.5*x,v?t+=Math.random()*o-.5*o:l%2?t+=.5*o:t-=.5*o,d&&(1<t?t=1:t<0&&(t=0)),u[c++]={x:n,y:t};for(u.sort(function(e,n){return e.x-n.x}),a=new k(1,1,null),l=p;l--;)i=u[l],a=new k(i.x,i.y,a);return f=new k(0,0,a.t?a:a.next),function(e){var n=f;if(e>n.t){for(;n.next&&e>=n.t;)n=n.next;n=n.prev}else for(;n.prev&&e<=n.t;)n=n.prev;return(f=n).v+(e-n.t)/n.gap*n.c}}var w,r,a=i(.7);(a.ease=a).config=i;var s=j(1,2);s.config=j;var u=l();(u.ease=u).config=l;var c={SlowMo:a,RoughEase:u,ExpoScaleEase:s};for(var n in c)c[n].register=h,c[n].version="3.10.3";f()&&w.registerPlugin(a),e.EasePack=c,e.ExpoScaleEase=s,e.RoughEase=u,e.SlowMo=a,e.default=c;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* Flip 3.10.2 | ||
* Flip 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function p(t){var e=t.ownerDocument||t;!(w in t.style)&&"msTransform"in t.style&&(S=(w="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(y=window,d=new _,e){r=(g=e).documentElement,b=e.body,(a=g.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var i=e.createElement("div"),n=e.createElement("div");b.appendChild(i),i.appendChild(n),i.style.position="static",i.style[w]="translate3d(0,0,1px)",m=n.offsetParent!==i,b.removeChild(i)}return e}function t(){return y.pageYOffset||g.scrollTop||r.scrollTop||b.scrollTop||0}function u(){return y.pageXOffset||g.scrollLeft||r.scrollLeft||b.scrollLeft||0}function v(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function x(t,e){if(t.parentNode&&(g||p(t))){var i=v(t),n=i?i.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=i?e?"rect":"g":"div",a=2!==e?0:100,s=3===e?100:0,o="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=g.createElementNS?g.createElementNS(n.replace(/^https/,"http"),r):g.createElement(r);return e&&(i?(f=f||x(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+a+","+s+")"),f.appendChild(l)):(c||((c=x(t)).style.cssText=o),l.style.cssText=o+"width:0.1px;height:0.1px;top:"+s+"px;left:"+a+"px",c.appendChild(l))),l}throw"Need document and parent."}function z(t){var e,i=t.getCTM();return i||(e=t.style[w],t.style[w]="none",t.appendChild(a),i=a.getCTM(),t.removeChild(a),e?t.style[w]=e:t.style.removeProperty(w.replace(/([A-Z])/g,"-$1").toLowerCase())),i||d.clone()}function A(t,e){var i,n,r,a,s,o,l=v(t),u=t===l,h=l?C:k,p=t.parentNode;if(t===y)return t;if(h.length||h.push(x(t,1),x(t,2),x(t,3)),i=l?f:c,l)u?(a=-(r=z(t)).e/r.a,s=-r.f/r.d,n=d):(r=t.getBBox(),a=(n=(n=t.transform?t.transform.baseVal:{}).numberOfItems?1<n.numberOfItems?function _consolidate(t){for(var e=new _,i=0;i<t.numberOfItems;i++)e.multiply(t.getItem(i).matrix);return e}(n):n.getItem(0).matrix:d).a*r.x+n.c*r.y,s=n.b*r.x+n.d*r.y),e&&"g"===t.tagName.toLowerCase()&&(a=s=0),(u?l:p).appendChild(i),i.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+a)+","+(n.f+s)+")");else{if(a=s=0,m)for(n=t.offsetParent,r=t;(r=r&&r.parentNode)&&r!==n&&r.parentNode;)4<(y.getComputedStyle(r)[w]+"").length&&(a=r.offsetLeft,s=r.offsetTop,r=0);if("absolute"!==(o=y.getComputedStyle(t)).position&&"fixed"!==o.position)for(n=t.offsetParent;p&&p!==n;)a+=p.scrollLeft||0,s+=p.scrollTop||0,p=p.parentNode;(r=i.style).top=t.offsetTop-s+"px",r.left=t.offsetLeft-a+"px",r[w]=o[w],r[S]=o[S],r.position="fixed"===o.position?"fixed":"absolute",t.parentNode.appendChild(i)}return i}function B(t,e,i,n,r,a,s){return t.a=e,t.b=i,t.c=n,t.d=r,t.e=a,t.f=s,t}var g,y,r,b,c,f,d,a,m,i,w="transform",S=w+"Origin",C=[],k=[],_=((i=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,i=this.c,n=this.d,r=this.e,a=this.f,s=t*n-e*i||1e-10;return B(this,n/s,-e/s,-i/s,t/s,(i*a-n*r)/s,-(t*a-e*r)/s)},i.multiply=function multiply(t){var e=this.a,i=this.b,n=this.c,r=this.d,a=this.e,s=this.f,o=t.a,l=t.c,u=t.b,h=t.d,p=t.e,c=t.f;return B(this,o*e+u*n,o*i+u*r,l*e+h*n,l*i+h*r,a+p*e+c*n,s+p*i+c*r)},i.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},i.equals=function equals(t){var e=this.a,i=this.b,n=this.c,r=this.d,a=this.e,s=this.f;return e===t.a&&i===t.b&&n===t.c&&r===t.d&&a===t.e&&s===t.f},i.apply=function apply(t,e){void 0===e&&(e={});var i=t.x,n=t.y,r=this.a,a=this.b,s=this.c,o=this.d,l=this.e,u=this.f;return e.x=i*r+n*s+l||0,e.y=i*a+n*o+u||0,e},Matrix2D);function Matrix2D(t,e,i,n,r,a){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),void 0===r&&(r=0),void 0===a&&(a=0),B(this,t,e,i,n,r,a)}function getGlobalMatrix(e,i,n,r){if(!e||!e.parentNode||(g||p(e)).documentElement===e)return new _;var a=function _forceNonZeroScale(t){for(var e,i;t&&t!==b;)(i=t._gsap)&&i.uncache&&i.get(t,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),e?e.push(i):e=[i]),t=t.parentNode;return e}(e),s=v(e)?C:k,o=A(e,n),l=s[0].getBoundingClientRect(),h=s[1].getBoundingClientRect(),c=s[2].getBoundingClientRect(),f=o.parentNode,d=!r&&function _isFixed(t){return"fixed"===y.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(e),m=new _((h.left-l.left)/100,(h.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(d?0:u()),l.top+(d?0:t()));if(f.removeChild(o),a)for(l=a.length;l--;)(h=a[l]).scaleX=h.scaleY=0,h.renderTransform(1,h);return i?m.inverse():m}function K(t,e){return t.actions.forEach(function(t){return t.vars[e]&&t.vars[e](t)})}function R(t){return"string"==typeof t?t.split(" ").join("").split(","):t}function U(t){return T(t)[0]||console.warn("Element not found:",t)}function V(t){return Math.round(1e4*t)/1e4||0}function W(t,e,i){return t.forEach(function(t){return t.classList[i](e)})}function Z(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function $(t,e){var i,n={};for(i in t)e[i]||(n[i]=t[i]);return n}function aa(t){var e=at[t]=R(t);return tt[t]=e.concat(it),e}function da(t,e,i){return t.forEach(function(t){return t.d=function _getDOMDepth(t,e,i){void 0===i&&(i=0);for(var n=t.parentNode,r=1e3*Math.pow(10,i)*(e?-1:1),a=e?900*-r:0;t;)a+=r,t=t.previousSibling;return n?a+_getDOMDepth(n,e,i+1):a}(i?t.element:t.t,e)}),t.sort(function(t,e){return t.d-e.d}),t}function ea(t,e){for(var i,n,r=t.element.style,a=t.css=t.css||[],s=e.length;s--;)n=r[i=e[s]]||r.getPropertyValue(i),a.push(n?i:F[i]||(F[i]=Z(i)),n);return r}function fa(t){var e=t.css,i=t.element.style,n=0;for(t.cache.uncache=1;n<e.length;n+=2)e[n+1]?i[e[n]]=e[n+1]:i.removeProperty(e[n])}function ga(t,e){t.forEach(function(t){return t.a.cache.uncache=1}),e||t.finalStates.forEach(fa)}function ia(e,i,n){var r,a,s,o=e.element,l=e.width,h=e.height,p=e.uncache,c=e.getProp,f=o.style,d=4;if("object"!=typeof i&&(i=e),Q&&1!==n)return Q._abs.push({t:o,b:e,a:e,sd:0}),Q._final.push(function(){return(e.cache.uncache=1)&&fa(e)}),o;for(a="none"===c("display"),e.isVisible&&!a||(a&&(ea(e,["display"]).display=i.display),e.matrix=i.matrix,e.width=l=e.width||i.width,e.height=h=e.height||i.height),ea(e,I),s=window.getComputedStyle(o);d--;)f[I[d]]=s[I[d]];if(f.gridArea="1 / 1 / 1 / 1",f.transition="none",f.position="absolute",f.width=l+"px",f.height=h+"px",f.top||(f.top="0px"),f.left||(f.left="0px"),p)r=new lt(o);else if((r=$(e,M)).position="absolute",e.simple){var m=o.getBoundingClientRect();r.matrix=new _(1,0,0,1,m.left+u(),m.top+t())}else r.matrix=getGlobalMatrix(o,!1,!1,!0);return r=st(r,e,!0),e.x=N(r.x,.01),e.y=N(r.y,.01),o}function ja(t,e){return!0!==e&&(e=T(e),t=t.filter(function(t){if(-1!==e.indexOf((t.sd<0?t.b:t.a).element))return!0;t.t._gsap.renderTransform(1),t.t.style.width=t.b.width+"px",t.t.style.height=t.b.height+"px"})),t}function ka(t){return da(t,!0).forEach(function(t){return(t.a.isVisible||t.b.isVisible)&&ia(t.sd<0?t.b:t.a,t.b,1)})}function oa(t,e){var i,n=t.style||t;for(i in e)n[i]=e[i]}function qa(t){return t.map(function(t){return t.element})}function ra(t,e,i){return t&&e.length&&i.add(t(qa(e),i,new ot(e,0,!0)),0)}function ta(t,e){return t instanceof ot?t:new ot(t,e)}function ua(t,e,i){var n=t.idLookup[i],r=t.alt[i];return!r.isVisible||(e.getElementState(r.element)||r).isVisible&&n.isVisible?n:r}function ya(t){if(t!==l){var e=o.style,i=o.clientWidth===window.outerWidth,n=o.clientHeight===window.outerHeight,r=4;if(t&&(i||n)){for(;r--;)X[r]=e[D[r]];i&&(e.width=o.clientWidth+"px",e.overflowY="hidden"),n&&(e.height=o.clientHeight+"px",e.overflowX="hidden"),l=t}else if(l){for(;r--;)X[r]?e[D[r]]=X[r]:e.removeProperty(Z(D[r]));l=t}}}function za(t,e,r,i){t instanceof ot&&e instanceof ot||console.warn("Not a valid state object.");var a,s,o,l,u,h,p,c,f,n,d,m,g,y,x,v=(r=r||{}).clearProps,b=r.onEnter,w=r.onLeave,S=r.absolute,C=r.absoluteOnLeave,k=r.custom,V=r.delay,_=r.paused,E=r.repeat,B=r.repeatDelay,M=r.yoyo,F=r.toggleClass,I=r.nested,L=r.zIndex,T=r.scale,N=r.fade,O=r.stagger,P=r.spin,A=r.prune,X=("props"in r?r:t).props,z=$(r,nt),D=J.timeline({delay:V,paused:_,repeat:E,repeatDelay:B,yoyo:M}),R=z,Y=[],G=[],j=[],q=[],U=!0===P?1:P||0,H="function"==typeof P?P:function(){return U},Z=t.interrupted||e.interrupted,K=D[1!==i?"to":"from"];for(s in e.idLookup)d=e.alt[s]?ua(e,t,s):e.idLookup[s],u=d.element,n=t.idLookup[s],!t.alt[s]||u!==n.element||!t.alt[s].isVisible&&d.isVisible||(n=t.alt[s]),n?(h={t:u,b:n,a:d,sd:n.element===u?0:d.isVisible?1:-1},j.push(h),h.sd&&(h.sd<0&&(h.b=d,h.a=n),Z&&ea(h.b,X?tt[X]:it),N&&j.push(h.swap={t:n.element,b:h.b,a:h.a,sd:-h.sd,swap:h})),u._flip=n.element._flip=Q?Q.timeline:D):d.isVisible&&(j.push({t:u,b:$(d,{isVisible:1}),a:d,sd:0,entering:1}),u._flip=Q?Q.timeline:D);return X&&(at[X]||aa(X)).forEach(function(e){return z[e]=function(t){return j[t].a.props[e]}}),j.finalStates=f=[],m=function run(){for(da(j),ya(!0),l=0;l<j.length;l++)h=j[l],g=h.a,y=h.b,!A||g.isDifferent(y)||h.entering?(u=h.t,!I||h.sd<0||!l||(g.matrix=getGlobalMatrix(u,!1,!1,!0)),h.sd||y.isVisible&&g.isVisible?(h.sd<0?(p=new lt(u,X,t.simple),st(p,g,T,0,0,p),p.matrix=getGlobalMatrix(u,!1,!1,!0),p.css=h.b.css,h.a=g=p,N&&(u.style.opacity=Z?y.opacity:g.opacity),O&&q.push(u)):0<h.sd&&N&&(u.style.opacity=Z?g.opacity-y.opacity:"0"),st(g,y,T,X)):y.isVisible!==g.isVisible&&(y.isVisible?g.isVisible||(y.css=g.css,G.push(y),j.splice(l--,1),S&&I&&st(g,y,T,X)):(g.isVisible&&Y.push(g),j.splice(l--,1))),T||(u.style.maxWidth=Math.max(g.width,y.width)+"px",u.style.maxHeight=Math.max(g.height,y.height)+"px",u.style.minWidth=Math.min(g.width,y.width)+"px",u.style.minHeight=Math.min(g.height,y.height)+"px"),I&&F&&u.classList.add(F)):j.splice(l--,1),f.push(g);var e;if(F&&(e=f.map(function(t){return t.element}),I&&e.forEach(function(t){return t.classList.remove(F)})),ya(!1),T?(z.scaleX=function(t){return j[t].a.scaleX},z.scaleY=function(t){return j[t].a.scaleY}):(z.width=function(t){return j[t].a.width+"px"},z.height=function(t){return j[t].a.height+"px"},z.autoRound=r.autoRound||!1),z.x=function(t){return j[t].a.x+"px"},z.y=function(t){return j[t].a.y+"px"},z.rotation=function(t){return j[t].a.rotation+(P?360*H(t,c[t],c):0)},z.skewX=function(t){return j[t].a.skewX},c=j.map(function(t){return t.t}),!L&&0!==L||(z.modifiers={zIndex:function zIndex(){return L}},z.zIndex=L,z.immediateRender=!1!==r.immediateRender),N&&(z.opacity=function(t){return j[t].sd<0?0:0<j[t].sd?j[t].a.opacity:"+=0"}),q.length){O=J.utils.distribute(O);var i=c.slice(q.length);z.stagger=function(t,e){return O(~q.indexOf(e)?c.indexOf(j[t].swap.t):t,e,i)}}if(et.forEach(function(t){return r[t]&&D.eventCallback(t,r[t],r[t+"Params"])}),k&&c.length)for(s in R=$(z,nt),"scale"in k&&(k.scaleX=k.scaleY=k.scale,delete k.scale),k)(a=$(k[s],rt))[s]=z[s],!("duration"in a)&&"duration"in z&&(a.duration=z.duration),a.stagger=z.stagger,K.call(D,c,a,0),delete R[s];(c.length||G.length||Y.length)&&(F&&D.add(function(){return W(e,F,D._zTime<0?"remove":"add")},0)&&!_&&W(e,F,"add"),c.length&&K.call(D,c,R,0)),ra(b,Y,D),ra(w,G,D);var n=Q&&Q.timeline;n&&(n.add(D,0),Q._final.push(function(){return ga(j,!v)})),o=D.duration(),D.call(function(){var t=D.time()>=o;t&&!n&&ga(j,!v),F&&W(e,F,t?"remove":"add")})},C&&(S=j.filter(function(t){return!t.sd&&!t.a.isVisible&&t.b.isVisible}).map(function(t){return t.a.element})),Q?(S&&(x=Q._abs).push.apply(x,ja(j,S)),Q._run.push(m)):(S&&ka(ja(j,S)),m()),Q?Q.timeline:D}function Ba(t,e){if(t&&t.progress()<1&&!t.paused())return e&&(function _interrupt(t){t.vars.onInterrupt&&t.vars.onInterrupt.apply(t,t.vars.onInterruptParams||[]),t.getChildren(!0,!1,!0).forEach(_interrupt)}(t),e<2&&t.progress(1),t.kill()),!0}function Ca(t){for(var e,i=t.idLookup={},n=t.alt={},r=t.elementStates,a=r.length;a--;)i[(e=r[a]).id]?n[e.id]=e:i[e.id]=e}var T,J,Q,s,o,N,l,n,E=1,h={},O=180/Math.PI,P=Math.PI/180,M={},F={},tt={},et=R("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),it=R("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),nt={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},rt={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},at={},I="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),L=function _parseElementState(t,e,i,n){return t instanceof lt?t:t instanceof ot?function _findElStateInState(t,e){return e&&t.idLookup[L(e).id]||t.elementStates[0]}(t,n):new lt("string"==typeof t?U(t)||console.warn(t+" not found"):t,e,i)},st=function _fit(t,e,i,n,r,a){var s,o,l,u,h,p,c,f=t.element,d=t.cache,m=t.parent,g=t.x,y=t.y,x=e.width,v=e.height,b=e.scaleX,w=e.scaleY,S=e.rotation,C=e.bounds,k=a&&f.style.cssText,_=a&&f.getBBox&&f.getAttribute("transform"),E=t,B=e.matrix,M=B.e,F=B.f,I=t.bounds.width!==C.width||t.bounds.height!==C.height||t.scaleX!==b||t.scaleY!==w||t.rotation!==S,L=!I&&t.simple&&e.simple&&!r;return L||!m?(b=w=1,S=s=0):(p=(h=function _getInverseGlobalMatrix(t){var e=t._gsap||J.core.getCache(t);return e.gmCache===J.ticker.frame?e.gMatrix:(e.gmCache=J.ticker.frame,e.gMatrix=getGlobalMatrix(t,!0,!1,!0))}(m)).clone().multiply(e.ctm?e.matrix.clone().multiply(e.ctm):e.matrix),S=V(Math.atan2(p.b,p.a)*O),s=V(Math.atan2(p.c,p.d)*O+S)%360,b=Math.sqrt(Math.pow(p.a,2)+Math.pow(p.b,2)),w=Math.sqrt(Math.pow(p.c,2)+Math.pow(p.d,2))*Math.cos(s*P),r&&(r=T(r)[0],u=J.getProperty(r),c=r.getBBox&&"function"==typeof r.getBBox&&r.getBBox(),E={scaleX:u("scaleX"),scaleY:u("scaleY"),width:c?c.width:Math.ceil(parseFloat(u("width","px"))),height:c?c.height:parseFloat(u("height","px"))}),d.rotation=S+"deg",d.skewX=s+"deg"),i?(b*=x!==E.width&&E.width?x/E.width:1,w*=v!==E.height&&E.height?v/E.height:1,d.scaleX=b,d.scaleY=w):(x=N(x*b/E.scaleX,0),v=N(v*w/E.scaleY,0),f.style.width=x+"px",f.style.height=v+"px"),n&&oa(f,e.props),L||!m?(g+=M-t.matrix.e,y+=F-t.matrix.f):I||m!==e.parent?(d.renderTransform(1,d),p=getGlobalMatrix(r||f,!1,!1,!0),o=h.apply({x:p.e,y:p.f}),g+=(l=h.apply({x:M,y:F})).x-o.x,y+=l.y-o.y):(h.e=h.f=0,g+=(l=h.apply({x:M-t.matrix.e,y:F-t.matrix.f})).x,y+=l.y),g=N(g,.02),y=N(y,.02),!a||a instanceof lt?(d.x=g+"px",d.y=y+"px",d.renderTransform(1,d)):(f.style.cssText=k,f.getBBox&&f.setAttribute("transform",_||""),d.uncache=1),a&&(a.x=g,a.y=y,a.rotation=S,a.skewX=s,i?(a.scaleX=b,a.scaleY=w):(a.width=x,a.height=v)),a||d},X=[],D="width,height,overflowX,overflowY".split(","),ot=((n=FlipState.prototype).update=function update(t){var e=this;return this.elementStates=this.targets.map(function(t){return new lt(t,e.props,e.simple)}),Ca(this),this.interrupt(t),this.recordInlineStyles(),this},n.clear=function clear(){return this.targets.length=this.elementStates.length=0,Ca(this),this},n.fit=function fit(t,e,i){for(var n,r,a=da(this.elementStates.slice(0),!1,!0),s=(t||this).idLookup,o=0;o<a.length;o++)n=a[o],i&&(n.matrix=getGlobalMatrix(n.element,!1,!1,!0)),(r=s[n.id])&&st(n,r,e,!0,0,n),n.matrix=getGlobalMatrix(n.element,!1,!1,!0);return this},n.getProperty=function getProperty(t,e){var i=this.getElementState(t)||M;return(e in i?i:i.props||M)[e]},n.add=function add(t){for(var e,i,n,r=t.targets.length,a=this.idLookup,s=this.alt;r--;)(n=a[(i=t.elementStates[r]).id])&&(i.element===n.element||s[i.id]&&s[i.id].element===i.element)?(e=this.elementStates.indexOf(i.element===n.element?n:s[i.id]),this.targets.splice(e,1,t.targets[r]),this.elementStates.splice(e,1,i)):(this.targets.push(t.targets[r]),this.elementStates.push(i));return t.interrupted&&(this.interrupted=!0),t.simple||(this.simple=!1),Ca(this),this},n.compare=function compare(t){function hh(t,e,i){return(t.isVisible!==e.isVisible?t.isVisible?f:d:t.isVisible?c:p).push(i)&&m.push(i)}function ih(t,e,i){return m.indexOf(i)<0&&hh(t,e,i)}var e,i,n,r,a,s,o,l,u=t.idLookup,h=this.idLookup,p=[],c=[],f=[],d=[],m=[],g=t.alt,y=this.alt;for(n in u)a=g[n],s=y[n],r=(e=a?ua(t,this,n):u[n]).element,i=h[n],s?(l=i.isVisible||!s.isVisible&&r===i.element?i:s,(o=!a||e.isVisible||a.isVisible||l.element!==a.element?e:a).isVisible&&l.isVisible&&o.element!==l.element?((o.isDifferent(l)?c:p).push(o.element,l.element),m.push(o.element,l.element)):hh(o,l,o.element),a&&o.element===a.element&&(a=u[n]),ih(o.element!==i.element&&a?a:o,i,i.element),ih(a&&a.element===s.element?a:o,s,s.element),a&&ih(a,s.element===a.element?s:i,a.element)):(i?i.isDifferent(e)?hh(e,i,r):p.push(r):f.push(r),a&&ih(a,i,a.element));for(n in h)u[n]||(d.push(h[n].element),y[n]&&d.push(y[n].element));return{changed:c,unchanged:p,enter:f,leave:d}},n.recordInlineStyles=function recordInlineStyles(){for(var t=tt[this.props]||it,e=this.elementStates.length;e--;)ea(this.elementStates[e],t)},n.interrupt=function interrupt(n){var r=this,a=[];this.targets.forEach(function(t){var e=t._flip,i=Ba(e,n?0:1);n&&i&&a.indexOf(e)<0&&e.add(function(){return r.updateVisibility()}),i&&a.push(e)}),!n&&a.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!a.length)},n.updateVisibility=function updateVisibility(){this.elementStates.forEach(function(t){var e=t.element.getBoundingClientRect();t.isVisible=!!(e.width||e.height||e.top||e.left),t.uncache=1})},n.getElementState=function getElementState(t){return this.elementStates[this.targets.indexOf(U(t))]},n.makeAbsolute=function makeAbsolute(){return da(this.elementStates.slice(0),!0,!0).map(ia)},FlipState);function FlipState(t,e,i){if(this.props=e&&e.props,this.simple=!(!e||!e.simple),i)this.targets=qa(t),this.elementStates=t,Ca(this);else{this.targets=T(t);var n=e&&(!1===e.kill||e.batch&&!e.kill);Q&&!n&&Q._kill.push(this),this.update(n||!!Q)}}var Y,lt=((Y=ElementState.prototype).isDifferent=function isDifferent(t){var e=this.bounds,i=t.bounds;return e.top!==i.top||e.left!==i.left||e.width!==i.width||e.height!==i.height||!this.matrix.equals(t.matrix)||this.opacity!==t.opacity||this.props&&t.props&&JSON.stringify(this.props)!==JSON.stringify(t.props)},Y.update=function update(e,i){var n=this,r=n.element,a=J.getProperty(r),s=J.core.getCache(r),o=r.getBoundingClientRect(),l=r.getBBox&&"function"==typeof r.getBBox&&"svg"!==r.nodeName.toLowerCase()&&r.getBBox(),h=i?new _(1,0,0,1,o.left+u(),o.top+t()):getGlobalMatrix(r,!1,!1,!0);n.getProp=a,n.element=r,n.id=function _getID(t){var e=t.getAttribute("data-flip-id");return e||t.setAttribute("data-flip-id",e="auto-"+E++),e}(r),n.matrix=h,n.cache=s,n.bounds=o,n.isVisible=!!(o.width||o.height||o.left||o.top),n.display=a("display"),n.position=a("position"),n.parent=r.parentNode,n.x=a("x"),n.y=a("y"),n.scaleX=s.scaleX,n.scaleY=s.scaleY,n.rotation=a("rotation"),n.skewX=a("skewX"),n.opacity=a("opacity"),n.width=l?l.width:N(a("width","px"),.04),n.height=l?l.height:N(a("height","px"),.04),e&&function _recordProps(t,e){for(var i=J.getProperty(t.element,null,"native"),n=t.props={},r=e.length;r--;)n[e[r]]=(i(e[r])+"").trim();n.zIndex&&(n.zIndex=parseFloat(n.zIndex)||0)}(n,at[e]||aa(e)),n.ctm=r.getCTM&&"svg"===r.nodeName.toLowerCase()&&z(r).inverse(),n.simple=i||1===V(h.a)&&!V(h.b)&&!V(h.c)&&1===V(h.d),n.uncache=0},ElementState);function ElementState(t,e,i){this.element=t,this.update(e,i)}var G,j=((G=FlipAction.prototype).getStateById=function getStateById(t){for(var e=this.states.length;e--;)if(this.states[e].idLookup[t])return this.states[e]},G.kill=function kill(){this.batch.remove(this)},FlipAction);function FlipAction(t,e){this.vars=t,this.batch=e,this.states=[],this.timeline=e.timeline}var q,H=((q=FlipBatch.prototype).add=function add(e){var t=this.actions.filter(function(t){return t.vars===e});return t.length?t[0]:(t=new j("function"==typeof e?{animate:e}:e,this),this.actions.push(t),t)},q.remove=function remove(t){var e=this.actions.indexOf(t);return 0<=e&&this.actions.splice(e,1),this},q.getState=function getState(e){var i=this,t=Q,n=s;return(Q=this).state.clear(),this._kill.length=0,this.actions.forEach(function(t){t.vars.getState&&(t.states.length=0,(s=t).state=t.vars.getState(t)),e&&t.states.forEach(function(t){return i.state.add(t)})}),s=n,Q=t,this.killConflicts(),this},q.animate=function animate(){var t,e,i=this,n=Q,r=this.timeline,a=this.actions.length;for(Q=this,r.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(t){t.vars.animate&&t.vars.animate(t);var e,i,n=t.vars.onEnter,r=t.vars.onLeave,a=t.targets;a&&a.length&&(n||r)&&(e=new ot,t.states.forEach(function(t){return e.add(t)}),(i=e.compare(ut.getState(a))).enter.length&&n&&n(i.enter),i.leave.length&&r&&r(i.leave))}),ka(this._abs),this._run.forEach(function(t){return t()}),e=r.duration(),t=this._final.slice(0),r.add(function(){e<=r.time()&&(t.forEach(function(t){return t()}),K(i,"onComplete"))}),Q=n;a--;)this.actions[a].vars.once&&this.actions[a].kill();return K(this,"onStart"),r.restart(),this},q.loadState=function loadState(n){n=n||function done(){return 0};var r=[];return this.actions.forEach(function(e){if(e.vars.loadState){var i,t=function f(t){t&&(e.targets=t),~(i=r.indexOf(f))&&(r.splice(i,1),r.length||n())};r.push(t),e.vars.loadState(t)}}),r.length||n(),this},q.setState=function setState(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},q.killConflicts=function killConflicts(e){return this.state.interrupt(e),this._kill.forEach(function(t){return t.interrupt(e)}),this},q.run=function run(t,e){var i=this;return this!==Q&&(t||this.getState(e),this.loadState(function(){i._killed||(i.setState(),i.animate())})),this},q.clear=function clear(t){this.state.clear(),t||(this.actions.length=0)},q.getStateById=function getStateById(t){for(var e,i=this.actions.length;i--;)if(e=this.actions[i].getStateById(t))return e;return this.state.idLookup[t]&&this.state},q.kill=function kill(){this._killed=1,this.clear(),delete h[this.id]},FlipBatch);function FlipBatch(t){this.id=t,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new ot,this.timeline=J.timeline()}var ut=(Flip.getState=function getState(t,e){var i=ta(t,e);return s&&s.states.push(i),e&&e.batch&&Flip.batch(e.batch).state.add(i),i},Flip.from=function from(t,e){return"clearProps"in(e=e||{})||(e.clearProps=!0),za(t,ta(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,-1)},Flip.to=function to(t,e){return za(t,ta(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,1)},Flip.fromTo=function fromTo(t,e,i){return za(t,e,i)},Flip.fit=function fit(t,e,i){var n=i?$(i,rt):{},r=i||n,a=r.absolute,s=r.scale,o=r.getVars,l=r.props,u=r.runBackwards,h=r.onComplete,p=r.simple,c=i&&i.fitChild&&U(i.fitChild),f=L(e,l,p,t),d=L(t,0,p,f),m=l?tt[l]:it;return l&&oa(n,f.props),u&&(ea(d,m),"immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){fa(d),h&&h.apply(this,arguments)}),a&&ia(d,f),n=st(d,f,s||c,l,c,n.duration||o?n:0),o?n:n.duration?J.to(d.element,n):null},Flip.makeAbsolute=function makeAbsolute(t,e){return(t instanceof ot?t:new ot(t,e)).makeAbsolute()},Flip.batch=function batch(t){return h[t=t||"default"]||(h[t]=new H(t))},Flip.killFlipsOf=function killFlipsOf(t,e){(t instanceof ot?t.targets:T(t)).forEach(function(t){return t&&Ba(t._flip,!1!==e?1:2)})},Flip.isFlipping=function isFlipping(t){var e=Flip.getByTarget(t);return!!e&&e.isActive()},Flip.getByTarget=function getByTarget(t){return(U(t)||M)._flip},Flip.getElementState=function getElementState(t,e){return new lt(U(t),e)},Flip.convertCoordinates=function convertCoordinates(t,e,i){var n=getGlobalMatrix(e,!0,!0).multiply(getGlobalMatrix(t));return i?n.apply(i):n},Flip.register=function register(t){if(o="undefined"!=typeof document&&document.body){J=t,p(o),T=J.utils.toArray;var i=J.utils.snap(.1);N=function _closestTenth(t,e){return i(parseFloat(t)+e)}}},Flip);function Flip(){}ut.version="3.10.2","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(ut),e.Flip=ut,e.default=ut;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function p(t){var e=t.ownerDocument||t;!(w in t.style)&&"msTransform"in t.style&&(S=(w="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(y=window,d=new _,e){r=(g=e).documentElement,b=e.body,(a=g.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var i=e.createElement("div"),n=e.createElement("div");b.appendChild(i),i.appendChild(n),i.style.position="static",i.style[w]="translate3d(0,0,1px)",m=n.offsetParent!==i,b.removeChild(i)}return e}function t(){return y.pageYOffset||g.scrollTop||r.scrollTop||b.scrollTop||0}function u(){return y.pageXOffset||g.scrollLeft||r.scrollLeft||b.scrollLeft||0}function v(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function x(t,e){if(t.parentNode&&(g||p(t))){var i=v(t),n=i?i.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=i?e?"rect":"g":"div",a=2!==e?0:100,s=3===e?100:0,o="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=g.createElementNS?g.createElementNS(n.replace(/^https/,"http"),r):g.createElement(r);return e&&(i?(f=f||x(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+a+","+s+")"),f.appendChild(l)):(c||((c=x(t)).style.cssText=o),l.style.cssText=o+"width:0.1px;height:0.1px;top:"+s+"px;left:"+a+"px",c.appendChild(l))),l}throw"Need document and parent."}function z(t){var e,i=t.getCTM();return i||(e=t.style[w],t.style[w]="none",t.appendChild(a),i=a.getCTM(),t.removeChild(a),e?t.style[w]=e:t.style.removeProperty(w.replace(/([A-Z])/g,"-$1").toLowerCase())),i||d.clone()}function A(t,e){var i,n,r,a,s,o,l=v(t),u=t===l,h=l?C:k,p=t.parentNode;if(t===y)return t;if(h.length||h.push(x(t,1),x(t,2),x(t,3)),i=l?f:c,l)u?(a=-(r=z(t)).e/r.a,s=-r.f/r.d,n=d):t.getBBox?(r=t.getBBox(),a=(n=(n=t.transform?t.transform.baseVal:{}).numberOfItems?1<n.numberOfItems?function _consolidate(t){for(var e=new _,i=0;i<t.numberOfItems;i++)e.multiply(t.getItem(i).matrix);return e}(n):n.getItem(0).matrix:d).a*r.x+n.c*r.y,s=n.b*r.x+n.d*r.y):(n=new _,a=s=0),e&&"g"===t.tagName.toLowerCase()&&(a=s=0),(u?l:p).appendChild(i),i.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+a)+","+(n.f+s)+")");else{if(a=s=0,m)for(n=t.offsetParent,r=t;(r=r&&r.parentNode)&&r!==n&&r.parentNode;)4<(y.getComputedStyle(r)[w]+"").length&&(a=r.offsetLeft,s=r.offsetTop,r=0);if("absolute"!==(o=y.getComputedStyle(t)).position&&"fixed"!==o.position)for(n=t.offsetParent;p&&p!==n;)a+=p.scrollLeft||0,s+=p.scrollTop||0,p=p.parentNode;(r=i.style).top=t.offsetTop-s+"px",r.left=t.offsetLeft-a+"px",r[w]=o[w],r[S]=o[S],r.position="fixed"===o.position?"fixed":"absolute",t.parentNode.appendChild(i)}return i}function B(t,e,i,n,r,a,s){return t.a=e,t.b=i,t.c=n,t.d=r,t.e=a,t.f=s,t}var g,y,r,b,c,f,d,a,m,i,w="transform",S=w+"Origin",C=[],k=[],_=((i=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,i=this.c,n=this.d,r=this.e,a=this.f,s=t*n-e*i||1e-10;return B(this,n/s,-e/s,-i/s,t/s,(i*a-n*r)/s,-(t*a-e*r)/s)},i.multiply=function multiply(t){var e=this.a,i=this.b,n=this.c,r=this.d,a=this.e,s=this.f,o=t.a,l=t.c,u=t.b,h=t.d,p=t.e,c=t.f;return B(this,o*e+u*n,o*i+u*r,l*e+h*n,l*i+h*r,a+p*e+c*n,s+p*i+c*r)},i.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},i.equals=function equals(t){var e=this.a,i=this.b,n=this.c,r=this.d,a=this.e,s=this.f;return e===t.a&&i===t.b&&n===t.c&&r===t.d&&a===t.e&&s===t.f},i.apply=function apply(t,e){void 0===e&&(e={});var i=t.x,n=t.y,r=this.a,a=this.b,s=this.c,o=this.d,l=this.e,u=this.f;return e.x=i*r+n*s+l||0,e.y=i*a+n*o+u||0,e},Matrix2D);function Matrix2D(t,e,i,n,r,a){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),void 0===r&&(r=0),void 0===a&&(a=0),B(this,t,e,i,n,r,a)}function getGlobalMatrix(e,i,n,r){if(!e||!e.parentNode||(g||p(e)).documentElement===e)return new _;var a=function _forceNonZeroScale(t){for(var e,i;t&&t!==b;)(i=t._gsap)&&i.uncache&&i.get(t,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),e?e.push(i):e=[i]),t=t.parentNode;return e}(e),s=v(e)?C:k,o=A(e,n),l=s[0].getBoundingClientRect(),h=s[1].getBoundingClientRect(),c=s[2].getBoundingClientRect(),f=o.parentNode,d=!r&&function _isFixed(t){return"fixed"===y.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(e),m=new _((h.left-l.left)/100,(h.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(d?0:u()),l.top+(d?0:t()));if(f.removeChild(o),a)for(l=a.length;l--;)(h=a[l]).scaleX=h.scaleY=0,h.renderTransform(1,h);return i?m.inverse():m}function K(t,e){return t.actions.forEach(function(t){return t.vars[e]&&t.vars[e](t)})}function R(t){return"string"==typeof t?t.split(" ").join("").split(","):t}function U(t){return T(t)[0]||console.warn("Element not found:",t)}function V(t){return Math.round(1e4*t)/1e4||0}function W(t,e,i){return t.forEach(function(t){return t.classList[i](e)})}function Z(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function $(t,e){var i,n={};for(i in t)e[i]||(n[i]=t[i]);return n}function aa(t){var e=at[t]=R(t);return tt[t]=e.concat(it),e}function da(t,e,i){return t.forEach(function(t){return t.d=function _getDOMDepth(t,e,i){void 0===i&&(i=0);for(var n=t.parentNode,r=1e3*Math.pow(10,i)*(e?-1:1),a=e?900*-r:0;t;)a+=r,t=t.previousSibling;return n?a+_getDOMDepth(n,e,i+1):a}(i?t.element:t.t,e)}),t.sort(function(t,e){return t.d-e.d}),t}function ea(t,e){for(var i,n,r=t.element.style,a=t.css=t.css||[],s=e.length;s--;)n=r[i=e[s]]||r.getPropertyValue(i),a.push(n?i:F[i]||(F[i]=Z(i)),n);return r}function fa(t){var e=t.css,i=t.element.style,n=0;for(t.cache.uncache=1;n<e.length;n+=2)e[n+1]?i[e[n]]=e[n+1]:i.removeProperty(e[n])}function ga(t,e){t.forEach(function(t){return t.a.cache.uncache=1}),e||t.finalStates.forEach(fa)}function ia(e,i,n){var r,a,s,o=e.element,l=e.width,h=e.height,p=e.uncache,c=e.getProp,f=o.style,d=4;if("object"!=typeof i&&(i=e),Q&&1!==n)return Q._abs.push({t:o,b:e,a:e,sd:0}),Q._final.push(function(){return(e.cache.uncache=1)&&fa(e)}),o;for(a="none"===c("display"),e.isVisible&&!a||(a&&(ea(e,["display"]).display=i.display),e.matrix=i.matrix,e.width=l=e.width||i.width,e.height=h=e.height||i.height),ea(e,I),s=window.getComputedStyle(o);d--;)f[I[d]]=s[I[d]];if(f.gridArea="1 / 1 / 1 / 1",f.transition="none",f.position="absolute",f.width=l+"px",f.height=h+"px",f.top||(f.top="0px"),f.left||(f.left="0px"),p)r=new lt(o);else if((r=$(e,M)).position="absolute",e.simple){var m=o.getBoundingClientRect();r.matrix=new _(1,0,0,1,m.left+u(),m.top+t())}else r.matrix=getGlobalMatrix(o,!1,!1,!0);return r=st(r,e,!0),e.x=N(r.x,.01),e.y=N(r.y,.01),o}function ja(t,e){return!0!==e&&(e=T(e),t=t.filter(function(t){if(-1!==e.indexOf((t.sd<0?t.b:t.a).element))return!0;t.t._gsap.renderTransform(1),t.t.style.width=t.b.width+"px",t.t.style.height=t.b.height+"px"})),t}function ka(t){return da(t,!0).forEach(function(t){return(t.a.isVisible||t.b.isVisible)&&ia(t.sd<0?t.b:t.a,t.b,1)})}function oa(t,e){var i,n=t.style||t;for(i in e)n[i]=e[i]}function qa(t){return t.map(function(t){return t.element})}function ra(t,e,i){return t&&e.length&&i.add(t(qa(e),i,new ot(e,0,!0)),0)}function ta(t,e){return t instanceof ot?t:new ot(t,e)}function ua(t,e,i){var n=t.idLookup[i],r=t.alt[i];return!r.isVisible||(e.getElementState(r.element)||r).isVisible&&n.isVisible?n:r}function ya(t){if(t!==l){var e=o.style,i=o.clientWidth===window.outerWidth,n=o.clientHeight===window.outerHeight,r=4;if(t&&(i||n)){for(;r--;)X[r]=e[D[r]];i&&(e.width=o.clientWidth+"px",e.overflowY="hidden"),n&&(e.height=o.clientHeight+"px",e.overflowX="hidden"),l=t}else if(l){for(;r--;)X[r]?e[D[r]]=X[r]:e.removeProperty(Z(D[r]));l=t}}}function za(t,e,r,i){t instanceof ot&&e instanceof ot||console.warn("Not a valid state object.");var a,s,o,l,u,h,p,c,f,n,d,m,g,y,x,v=(r=r||{}).clearProps,b=r.onEnter,w=r.onLeave,S=r.absolute,C=r.absoluteOnLeave,k=r.custom,V=r.delay,_=r.paused,B=r.repeat,E=r.repeatDelay,M=r.yoyo,F=r.toggleClass,I=r.nested,L=r.zIndex,T=r.scale,N=r.fade,O=r.stagger,P=r.spin,A=r.prune,X=("props"in r?r:t).props,z=$(r,nt),D=J.timeline({delay:V,paused:_,repeat:B,repeatDelay:E,yoyo:M}),R=z,Y=[],G=[],j=[],q=[],U=!0===P?1:P||0,H="function"==typeof P?P:function(){return U},Z=t.interrupted||e.interrupted,K=D[1!==i?"to":"from"];for(s in e.idLookup)d=e.alt[s]?ua(e,t,s):e.idLookup[s],u=d.element,n=t.idLookup[s],!t.alt[s]||u!==n.element||!t.alt[s].isVisible&&d.isVisible||(n=t.alt[s]),n?(h={t:u,b:n,a:d,sd:n.element===u?0:d.isVisible?1:-1},j.push(h),h.sd&&(h.sd<0&&(h.b=d,h.a=n),Z&&ea(h.b,X?tt[X]:it),N&&j.push(h.swap={t:n.element,b:h.b,a:h.a,sd:-h.sd,swap:h})),u._flip=n.element._flip=Q?Q.timeline:D):d.isVisible&&(j.push({t:u,b:$(d,{isVisible:1}),a:d,sd:0,entering:1}),u._flip=Q?Q.timeline:D);return X&&(at[X]||aa(X)).forEach(function(e){return z[e]=function(t){return j[t].a.props[e]}}),j.finalStates=f=[],m=function run(){for(da(j),ya(!0),l=0;l<j.length;l++)h=j[l],g=h.a,y=h.b,!A||g.isDifferent(y)||h.entering?(u=h.t,!I||h.sd<0||!l||(g.matrix=getGlobalMatrix(u,!1,!1,!0)),h.sd||y.isVisible&&g.isVisible?(h.sd<0?(p=new lt(u,X,t.simple),st(p,g,T,0,0,p),p.matrix=getGlobalMatrix(u,!1,!1,!0),p.css=h.b.css,h.a=g=p,N&&(u.style.opacity=Z?y.opacity:g.opacity),O&&q.push(u)):0<h.sd&&N&&(u.style.opacity=Z?g.opacity-y.opacity:"0"),st(g,y,T,X)):y.isVisible!==g.isVisible&&(y.isVisible?g.isVisible||(y.css=g.css,G.push(y),j.splice(l--,1),S&&I&&st(g,y,T,X)):(g.isVisible&&Y.push(g),j.splice(l--,1))),T||(u.style.maxWidth=Math.max(g.width,y.width)+"px",u.style.maxHeight=Math.max(g.height,y.height)+"px",u.style.minWidth=Math.min(g.width,y.width)+"px",u.style.minHeight=Math.min(g.height,y.height)+"px"),I&&F&&u.classList.add(F)):j.splice(l--,1),f.push(g);var e;if(F&&(e=f.map(function(t){return t.element}),I&&e.forEach(function(t){return t.classList.remove(F)})),ya(!1),T?(z.scaleX=function(t){return j[t].a.scaleX},z.scaleY=function(t){return j[t].a.scaleY}):(z.width=function(t){return j[t].a.width+"px"},z.height=function(t){return j[t].a.height+"px"},z.autoRound=r.autoRound||!1),z.x=function(t){return j[t].a.x+"px"},z.y=function(t){return j[t].a.y+"px"},z.rotation=function(t){return j[t].a.rotation+(P?360*H(t,c[t],c):0)},z.skewX=function(t){return j[t].a.skewX},c=j.map(function(t){return t.t}),!L&&0!==L||(z.modifiers={zIndex:function zIndex(){return L}},z.zIndex=L,z.immediateRender=!1!==r.immediateRender),N&&(z.opacity=function(t){return j[t].sd<0?0:0<j[t].sd?j[t].a.opacity:"+=0"}),q.length){O=J.utils.distribute(O);var i=c.slice(q.length);z.stagger=function(t,e){return O(~q.indexOf(e)?c.indexOf(j[t].swap.t):t,e,i)}}if(et.forEach(function(t){return r[t]&&D.eventCallback(t,r[t],r[t+"Params"])}),k&&c.length)for(s in R=$(z,nt),"scale"in k&&(k.scaleX=k.scaleY=k.scale,delete k.scale),k)(a=$(k[s],rt))[s]=z[s],!("duration"in a)&&"duration"in z&&(a.duration=z.duration),a.stagger=z.stagger,K.call(D,c,a,0),delete R[s];(c.length||G.length||Y.length)&&(F&&D.add(function(){return W(e,F,D._zTime<0?"remove":"add")},0)&&!_&&W(e,F,"add"),c.length&&K.call(D,c,R,0)),ra(b,Y,D),ra(w,G,D);var n=Q&&Q.timeline;n&&(n.add(D,0),Q._final.push(function(){return ga(j,!v)})),o=D.duration(),D.call(function(){var t=D.time()>=o;t&&!n&&ga(j,!v),F&&W(e,F,t?"remove":"add")})},C&&(S=j.filter(function(t){return!t.sd&&!t.a.isVisible&&t.b.isVisible}).map(function(t){return t.a.element})),Q?(S&&(x=Q._abs).push.apply(x,ja(j,S)),Q._run.push(m)):(S&&ka(ja(j,S)),m()),Q?Q.timeline:D}function Ba(t,e){if(t&&t.progress()<1&&!t.paused())return e&&(function _interrupt(t){t.vars.onInterrupt&&t.vars.onInterrupt.apply(t,t.vars.onInterruptParams||[]),t.getChildren(!0,!1,!0).forEach(_interrupt)}(t),e<2&&t.progress(1),t.kill()),!0}function Ca(t){for(var e,i=t.idLookup={},n=t.alt={},r=t.elementStates,a=r.length;a--;)i[(e=r[a]).id]?n[e.id]=e:i[e.id]=e}var T,J,Q,s,o,N,l,n,E=1,h={},O=180/Math.PI,P=Math.PI/180,M={},F={},tt={},et=R("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),it=R("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),nt={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},rt={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},at={},I="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),L=function _parseElementState(t,e,i,n){return t instanceof lt?t:t instanceof ot?function _findElStateInState(t,e){return e&&t.idLookup[L(e).id]||t.elementStates[0]}(t,n):new lt("string"==typeof t?U(t)||console.warn(t+" not found"):t,e,i)},st=function _fit(t,e,i,n,r,a){var s,o,l,u,h,p,c,f=t.element,d=t.cache,m=t.parent,g=t.x,y=t.y,x=e.width,v=e.height,b=e.scaleX,w=e.scaleY,S=e.rotation,C=e.bounds,k=a&&f.style.cssText,_=a&&f.getBBox&&f.getAttribute("transform"),B=t,E=e.matrix,M=E.e,F=E.f,I=t.bounds.width!==C.width||t.bounds.height!==C.height||t.scaleX!==b||t.scaleY!==w||t.rotation!==S,L=!I&&t.simple&&e.simple&&!r;return L||!m?(b=w=1,S=s=0):(p=(h=function _getInverseGlobalMatrix(t){var e=t._gsap||J.core.getCache(t);return e.gmCache===J.ticker.frame?e.gMatrix:(e.gmCache=J.ticker.frame,e.gMatrix=getGlobalMatrix(t,!0,!1,!0))}(m)).clone().multiply(e.ctm?e.matrix.clone().multiply(e.ctm):e.matrix),S=V(Math.atan2(p.b,p.a)*O),s=V(Math.atan2(p.c,p.d)*O+S)%360,b=Math.sqrt(Math.pow(p.a,2)+Math.pow(p.b,2)),w=Math.sqrt(Math.pow(p.c,2)+Math.pow(p.d,2))*Math.cos(s*P),r&&(r=T(r)[0],u=J.getProperty(r),c=r.getBBox&&"function"==typeof r.getBBox&&r.getBBox(),B={scaleX:u("scaleX"),scaleY:u("scaleY"),width:c?c.width:Math.ceil(parseFloat(u("width","px"))),height:c?c.height:parseFloat(u("height","px"))}),d.rotation=S+"deg",d.skewX=s+"deg"),i?(b*=x!==B.width&&B.width?x/B.width:1,w*=v!==B.height&&B.height?v/B.height:1,d.scaleX=b,d.scaleY=w):(x=N(x*b/B.scaleX,0),v=N(v*w/B.scaleY,0),f.style.width=x+"px",f.style.height=v+"px"),n&&oa(f,e.props),L||!m?(g+=M-t.matrix.e,y+=F-t.matrix.f):I||m!==e.parent?(d.renderTransform(1,d),p=getGlobalMatrix(r||f,!1,!1,!0),o=h.apply({x:p.e,y:p.f}),g+=(l=h.apply({x:M,y:F})).x-o.x,y+=l.y-o.y):(h.e=h.f=0,g+=(l=h.apply({x:M-t.matrix.e,y:F-t.matrix.f})).x,y+=l.y),g=N(g,.02),y=N(y,.02),!a||a instanceof lt?(d.x=g+"px",d.y=y+"px",d.renderTransform(1,d)):(f.style.cssText=k,f.getBBox&&f.setAttribute("transform",_||""),d.uncache=1),a&&(a.x=g,a.y=y,a.rotation=S,a.skewX=s,i?(a.scaleX=b,a.scaleY=w):(a.width=x,a.height=v)),a||d},X=[],D="width,height,overflowX,overflowY".split(","),ot=((n=FlipState.prototype).update=function update(t){var e=this;return this.elementStates=this.targets.map(function(t){return new lt(t,e.props,e.simple)}),Ca(this),this.interrupt(t),this.recordInlineStyles(),this},n.clear=function clear(){return this.targets.length=this.elementStates.length=0,Ca(this),this},n.fit=function fit(t,e,i){for(var n,r,a=da(this.elementStates.slice(0),!1,!0),s=(t||this).idLookup,o=0;o<a.length;o++)n=a[o],i&&(n.matrix=getGlobalMatrix(n.element,!1,!1,!0)),(r=s[n.id])&&st(n,r,e,!0,0,n),n.matrix=getGlobalMatrix(n.element,!1,!1,!0);return this},n.getProperty=function getProperty(t,e){var i=this.getElementState(t)||M;return(e in i?i:i.props||M)[e]},n.add=function add(t){for(var e,i,n,r=t.targets.length,a=this.idLookup,s=this.alt;r--;)(n=a[(i=t.elementStates[r]).id])&&(i.element===n.element||s[i.id]&&s[i.id].element===i.element)?(e=this.elementStates.indexOf(i.element===n.element?n:s[i.id]),this.targets.splice(e,1,t.targets[r]),this.elementStates.splice(e,1,i)):(this.targets.push(t.targets[r]),this.elementStates.push(i));return t.interrupted&&(this.interrupted=!0),t.simple||(this.simple=!1),Ca(this),this},n.compare=function compare(t){function hh(t,e,i){return(t.isVisible!==e.isVisible?t.isVisible?f:d:t.isVisible?c:p).push(i)&&m.push(i)}function ih(t,e,i){return m.indexOf(i)<0&&hh(t,e,i)}var e,i,n,r,a,s,o,l,u=t.idLookup,h=this.idLookup,p=[],c=[],f=[],d=[],m=[],g=t.alt,y=this.alt;for(n in u)a=g[n],s=y[n],r=(e=a?ua(t,this,n):u[n]).element,i=h[n],s?(l=i.isVisible||!s.isVisible&&r===i.element?i:s,(o=!a||e.isVisible||a.isVisible||l.element!==a.element?e:a).isVisible&&l.isVisible&&o.element!==l.element?((o.isDifferent(l)?c:p).push(o.element,l.element),m.push(o.element,l.element)):hh(o,l,o.element),a&&o.element===a.element&&(a=u[n]),ih(o.element!==i.element&&a?a:o,i,i.element),ih(a&&a.element===s.element?a:o,s,s.element),a&&ih(a,s.element===a.element?s:i,a.element)):(i?i.isDifferent(e)?hh(e,i,r):p.push(r):f.push(r),a&&ih(a,i,a.element));for(n in h)u[n]||(d.push(h[n].element),y[n]&&d.push(y[n].element));return{changed:c,unchanged:p,enter:f,leave:d}},n.recordInlineStyles=function recordInlineStyles(){for(var t=tt[this.props]||it,e=this.elementStates.length;e--;)ea(this.elementStates[e],t)},n.interrupt=function interrupt(n){var r=this,a=[];this.targets.forEach(function(t){var e=t._flip,i=Ba(e,n?0:1);n&&i&&a.indexOf(e)<0&&e.add(function(){return r.updateVisibility()}),i&&a.push(e)}),!n&&a.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!a.length)},n.updateVisibility=function updateVisibility(){this.elementStates.forEach(function(t){var e=t.element.getBoundingClientRect();t.isVisible=!!(e.width||e.height||e.top||e.left),t.uncache=1})},n.getElementState=function getElementState(t){return this.elementStates[this.targets.indexOf(U(t))]},n.makeAbsolute=function makeAbsolute(){return da(this.elementStates.slice(0),!0,!0).map(ia)},FlipState);function FlipState(t,e,i){if(this.props=e&&e.props,this.simple=!(!e||!e.simple),i)this.targets=qa(t),this.elementStates=t,Ca(this);else{this.targets=T(t);var n=e&&(!1===e.kill||e.batch&&!e.kill);Q&&!n&&Q._kill.push(this),this.update(n||!!Q)}}var Y,lt=((Y=ElementState.prototype).isDifferent=function isDifferent(t){var e=this.bounds,i=t.bounds;return e.top!==i.top||e.left!==i.left||e.width!==i.width||e.height!==i.height||!this.matrix.equals(t.matrix)||this.opacity!==t.opacity||this.props&&t.props&&JSON.stringify(this.props)!==JSON.stringify(t.props)},Y.update=function update(e,i){var n=this,r=n.element,a=J.getProperty(r),s=J.core.getCache(r),o=r.getBoundingClientRect(),l=r.getBBox&&"function"==typeof r.getBBox&&"svg"!==r.nodeName.toLowerCase()&&r.getBBox(),h=i?new _(1,0,0,1,o.left+u(),o.top+t()):getGlobalMatrix(r,!1,!1,!0);n.getProp=a,n.element=r,n.id=function _getID(t){var e=t.getAttribute("data-flip-id");return e||t.setAttribute("data-flip-id",e="auto-"+E++),e}(r),n.matrix=h,n.cache=s,n.bounds=o,n.isVisible=!!(o.width||o.height||o.left||o.top),n.display=a("display"),n.position=a("position"),n.parent=r.parentNode,n.x=a("x"),n.y=a("y"),n.scaleX=s.scaleX,n.scaleY=s.scaleY,n.rotation=a("rotation"),n.skewX=a("skewX"),n.opacity=a("opacity"),n.width=l?l.width:N(a("width","px"),.04),n.height=l?l.height:N(a("height","px"),.04),e&&function _recordProps(t,e){for(var i=J.getProperty(t.element,null,"native"),n=t.props={},r=e.length;r--;)n[e[r]]=(i(e[r])+"").trim();n.zIndex&&(n.zIndex=parseFloat(n.zIndex)||0)}(n,at[e]||aa(e)),n.ctm=r.getCTM&&"svg"===r.nodeName.toLowerCase()&&z(r).inverse(),n.simple=i||1===V(h.a)&&!V(h.b)&&!V(h.c)&&1===V(h.d),n.uncache=0},ElementState);function ElementState(t,e,i){this.element=t,this.update(e,i)}var G,j=((G=FlipAction.prototype).getStateById=function getStateById(t){for(var e=this.states.length;e--;)if(this.states[e].idLookup[t])return this.states[e]},G.kill=function kill(){this.batch.remove(this)},FlipAction);function FlipAction(t,e){this.vars=t,this.batch=e,this.states=[],this.timeline=e.timeline}var q,H=((q=FlipBatch.prototype).add=function add(e){var t=this.actions.filter(function(t){return t.vars===e});return t.length?t[0]:(t=new j("function"==typeof e?{animate:e}:e,this),this.actions.push(t),t)},q.remove=function remove(t){var e=this.actions.indexOf(t);return 0<=e&&this.actions.splice(e,1),this},q.getState=function getState(e){var i=this,t=Q,n=s;return(Q=this).state.clear(),this._kill.length=0,this.actions.forEach(function(t){t.vars.getState&&(t.states.length=0,(s=t).state=t.vars.getState(t)),e&&t.states.forEach(function(t){return i.state.add(t)})}),s=n,Q=t,this.killConflicts(),this},q.animate=function animate(){var t,e,i=this,n=Q,r=this.timeline,a=this.actions.length;for(Q=this,r.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(t){t.vars.animate&&t.vars.animate(t);var e,i,n=t.vars.onEnter,r=t.vars.onLeave,a=t.targets;a&&a.length&&(n||r)&&(e=new ot,t.states.forEach(function(t){return e.add(t)}),(i=e.compare(ut.getState(a))).enter.length&&n&&n(i.enter),i.leave.length&&r&&r(i.leave))}),ka(this._abs),this._run.forEach(function(t){return t()}),e=r.duration(),t=this._final.slice(0),r.add(function(){e<=r.time()&&(t.forEach(function(t){return t()}),K(i,"onComplete"))}),Q=n;a--;)this.actions[a].vars.once&&this.actions[a].kill();return K(this,"onStart"),r.restart(),this},q.loadState=function loadState(n){n=n||function done(){return 0};var r=[];return this.actions.forEach(function(e){if(e.vars.loadState){var i,t=function f(t){t&&(e.targets=t),~(i=r.indexOf(f))&&(r.splice(i,1),r.length||n())};r.push(t),e.vars.loadState(t)}}),r.length||n(),this},q.setState=function setState(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},q.killConflicts=function killConflicts(e){return this.state.interrupt(e),this._kill.forEach(function(t){return t.interrupt(e)}),this},q.run=function run(t,e){var i=this;return this!==Q&&(t||this.getState(e),this.loadState(function(){i._killed||(i.setState(),i.animate())})),this},q.clear=function clear(t){this.state.clear(),t||(this.actions.length=0)},q.getStateById=function getStateById(t){for(var e,i=this.actions.length;i--;)if(e=this.actions[i].getStateById(t))return e;return this.state.idLookup[t]&&this.state},q.kill=function kill(){this._killed=1,this.clear(),delete h[this.id]},FlipBatch);function FlipBatch(t){this.id=t,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new ot,this.timeline=J.timeline()}var ut=(Flip.getState=function getState(t,e){var i=ta(t,e);return s&&s.states.push(i),e&&e.batch&&Flip.batch(e.batch).state.add(i),i},Flip.from=function from(t,e){return"clearProps"in(e=e||{})||(e.clearProps=!0),za(t,ta(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,-1)},Flip.to=function to(t,e){return za(t,ta(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,1)},Flip.fromTo=function fromTo(t,e,i){return za(t,e,i)},Flip.fit=function fit(t,e,i){var n=i?$(i,rt):{},r=i||n,a=r.absolute,s=r.scale,o=r.getVars,l=r.props,u=r.runBackwards,h=r.onComplete,p=r.simple,c=i&&i.fitChild&&U(i.fitChild),f=L(e,l,p,t),d=L(t,0,p,f),m=l?tt[l]:it;return l&&oa(n,f.props),u&&(ea(d,m),"immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){fa(d),h&&h.apply(this,arguments)}),a&&ia(d,f),n=st(d,f,s||c,l,c,n.duration||o?n:0),o?n:n.duration?J.to(d.element,n):null},Flip.makeAbsolute=function makeAbsolute(t,e){return(t instanceof ot?t:new ot(t,e)).makeAbsolute()},Flip.batch=function batch(t){return h[t=t||"default"]||(h[t]=new H(t))},Flip.killFlipsOf=function killFlipsOf(t,e){(t instanceof ot?t.targets:T(t)).forEach(function(t){return t&&Ba(t._flip,!1!==e?1:2)})},Flip.isFlipping=function isFlipping(t){var e=Flip.getByTarget(t);return!!e&&e.isActive()},Flip.getByTarget=function getByTarget(t){return(U(t)||M)._flip},Flip.getElementState=function getElementState(t,e){return new lt(U(t),e)},Flip.convertCoordinates=function convertCoordinates(t,e,i){var n=getGlobalMatrix(e,!0,!0).multiply(getGlobalMatrix(t));return i?n.apply(i):n},Flip.register=function register(t){if(o="undefined"!=typeof document&&document.body){J=t,p(o),T=J.utils.toArray;var i=J.utils.snap(.1);N=function _closestTenth(t,e){return i(parseFloat(t)+e)}}},Flip);function Flip(){}ut.version="3.10.3","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(ut),e.Flip=ut,e.default=ut;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* InertiaPlugin 3.10.2 | ||
* InertiaPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function m(){return n||"undefined"!=typeof window&&(n=window.gsap)}function p(t){return s(t).id}function q(t){return f[p("string"==typeof t?d(t)[0]:t)]}function r(t){var e,n=o;if(.05<=t-c)for(c=t;n;)((e=n.g(n.t,n.p))!==n.v1||.2<t-n.t1)&&(n.v2=n.v1,n.v1=e,n.t2=n.t1,n.t1=t),n=n._next}function t(){(n=m())&&(d=n.utils.toArray,i=n.utils.getUnit,s=n.core.getCache,a=n.ticker,l=1)}function u(t,e,n,r){this.t=t,this.p=e,this.g=t._gsap.get,this.rCap=g[n||i(this.g(t,e))],this.v1=this.v2=0,this.t1=this.t2=a.time,r&&((this._next=r)._prev=this)}var n,l,d,i,o,a,c,s,f={},g={deg:360,rad:2*Math.PI},h=function(){function VelocityTracker(e,n){l||t(),this.target=d(e)[0],(f[p(this.target)]=this)._props={},n&&this.add(n)}VelocityTracker.register=function register(e){n=e,t()};var e=VelocityTracker.prototype;return e.get=function get(t,e){var n,r,i=this._props[t]||console.warn("Not tracking "+t+" velocity.");return n=parseFloat(e?i.v1:i.g(i.t,i.p))-parseFloat(i.v2),(r=i.rCap)&&(n%=r)!==n%(r/2)&&(n=n<0?n+r:n-r),function _round(t){return Math.round(1e4*t)/1e4}(n/((e?i.t1:a.time)-i.t2))},e.getAll=function getAll(){var t,e={},n=this._props;for(t in n)e[t]=this.get(t);return e},e.isTracking=function isTracking(t){return t in this._props},e.add=function add(t,e){t in this._props||(o||(a.add(r),c=a.time),o=this._props[t]=new u(this.target,t,e,o))},e.remove=function remove(t){var e,n,i=this._props[t];i&&(e=i._prev,n=i._next,e&&(e._next=n),n?n._prev=e:o===i&&(a.remove(r),o=0),delete this._props[t])},e.kill=function kill(t){for(var e in this._props)this.remove(e);t||delete f[p(this.target)]},VelocityTracker.track=function track(e,n,r){l||t();for(var i,o,a=[],c=d(e),s=n.split(","),u=(r||"").split(","),f=c.length;f--;){for(i=q(c[f])||new VelocityTracker(c[f]),o=s.length;o--;)i.add(s[o],u[o]||u[0]);a.push(i)}return a},VelocityTracker.untrack=function untrack(t,e){var n=(e||"").split(",");d(t).forEach(function(t){var e=q(t);e&&(n.length?n.forEach(function(t){return e.remove(t)}):e.kill(1))})},VelocityTracker.isTracking=function isTracking(t,e){var n=q(t);return n&&n.isTracking(e)},VelocityTracker.getVelocity=function getVelocity(t,e){var n=q(t);return n&&n.isTracking(e)?n.get(e):console.warn("Not tracking velocity of "+e)},VelocityTracker}();h.getByTarget=q,m()&&n.registerPlugin(h);function J(){return v||"undefined"!=typeof window&&(v=window.gsap)&&v.registerPlugin&&v}function L(t){return"number"==typeof t}function M(t){return"object"==typeof t}function N(t){return"function"==typeof t}function Q(){return String.fromCharCode.apply(null,arguments)}function U(t){return t}function Y(t){return Math.round(1e4*t)/1e4}function Z(t,e,n){for(var r in e)r in t||r===n||(t[r]=e[r]);return t}function $(t){var e,n,r={};for(e in t)r[e]=M(n=t[e])&&!I(n)?$(n):n;return r}function _(t,e,n,r,i){var o,a,c,s,u=e.length,f=0,l=S;if(M(t)){for(;u--;){for(c in o=e[u],a=0,t)a+=(s=o[c]-t[c])*s;a<l&&(f=u,l=a)}if((i||S)<S&&i<Math.sqrt(l))return t}else for(;u--;)(a=(o=e[u])-t)<0&&(a=-a),a<l&&r<=o&&o<=n&&(f=u,l=a);return e[f]}function aa(t,e,n,r,i,o,a){if("auto"===t.end)return t;var c,s,u=t.end;if(n=isNaN(n)?S:n,r=isNaN(r)?-S:r,M(e)){if(c=e.calculated?e:(N(u)?u(e,a):_(e,u,n,r,o))||e,!e.calculated){for(s in c)e[s]=c[s];e.calculated=!0}c=c[i]}else c=N(u)?u(e,a):I(u)?_(e,u,n,r,o):parseFloat(u);return n<c?c=n:c<r&&(c=r),{max:c,min:c,unitFactor:t.unitFactor}}function ba(t,e,n){return isNaN(t[e])?n:+t[e]}function ca(t,e){return.05*e*t/k}function da(t,e,n){return Math.abs((e-t)*k/n/.05)}function fa(t,e,n,r){if(e.linkedProps){var i,o,a,c,s,u,f=e.linkedProps.split(","),l={};for(i=0;i<f.length;i++)(a=e[o=f[i]])&&(c=L(a.velocity)?a.velocity:(s=s||E(t))&&s.isTracking(o)?s.get(o):0,u=Math.abs(c/ba(a,"resistance",r)),l[o]=parseFloat(n(t,o))+ca(c,u));return l}}function ha(){(v=J())&&(y=v.parseEase,x=v.utils.toArray,P=v.utils.getUnit,V=v.core.getCache,O=v.utils.clamp,w=y("power3"),k=w(.05),F=v.core.PropTween,v.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),b=v.config(),v.registerPlugin(h),T=1)}var v,T,y,x,w,b,P,F,V,k,O,A,E=h.getByTarget,C="InertiaPlugin",W=Q(103,114,101,101,110,115,111,99,107,46,99,111,109),j=function(t){var e="undefined"!=typeof window,n=0===(e?window.location.href:"").indexOf(Q(102,105,108,101,58,47,47))||-1!==t.indexOf(Q(108,111,99,97,108,104,111,115,116))||-1!==t.indexOf(Q(49,50,55,46,48,32,48,46,49)),r=[W,Q(99,111,100,101,112,101,110,46,105,111),Q(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),Q(99,111,100,101,112,101,110,46,100,101,118),Q(99,111,100,101,112,101,110,46,97,112,112),Q(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),Q(112,101,110,115,46,99,108,111,117,100),Q(99,115,115,45,116,114,105,99,107,115,46,99,111,109),Q(99,100,112,110,46,105,111),Q(112,101,110,115,46,105,111),Q(103,97,110,110,111,110,46,116,118),Q(99,111,100,101,99,97,110,121,111,110,46,110,101,116),Q(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),Q(99,101,114,101,98,114,97,120,46,99,111,46,117,107),Q(116,121,109,112,97,110,117,115,46,110,101,116),Q(116,119,101,101,110,109,97,120,46,99,111,109),Q(116,119,101,101,110,108,105,116,101,46,99,111,109),Q(112,108,110,107,114,46,99,111),Q(104,111,116,106,97,114,46,99,111,109),Q(119,101,98,112,97,99,107,98,105,110,46,99,111,109),Q(97,114,99,104,105,118,101,46,111,114,103),Q(99,111,100,101,115,97,110,100,98,111,120,46,105,111),Q(99,115,98,46,97,112,112),Q(115,116,97,99,107,98,108,105,116,122,46,99,111,109),Q(115,116,97,99,107,98,108,105,116,122,46,105,111),Q(99,111,100,105,101,114,46,105,111),Q(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),Q(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),Q(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),Q(106,115,102,105,100,100,108,101,46,110,101,116)],i=r.length;for(setTimeout(function checkWarn(){e&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),e&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(Q(37,99,87,97,114,110,105,110,103),Q(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(Q(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+C+Q(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(Q(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),Q(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--i;)if(-1!==t.indexOf(r[i]))return!0;return n||!setTimeout(function(){e&&(window.location.href=Q(104,116,116,112,115,58,47,47)+W+Q(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+C+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),I=Array.isArray,S=1e10,B={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},R={version:"3.10.2",name:"inertia",register:function register(t){v=t,ha()},init:function init(t,e,n,r,i){T||ha();var o=E(t);if("auto"===e){if(!o)return void console.warn("No inertia tracking on "+t+". InertiaPlugin.track(target) first.");e=o.getAll()}this.target=t,this.tween=n,A=e;var a,c,s,u,f,l,d,g,p,h=t._gsap,v=h.get,m=e.duration,y=M(m),w=e.preventOvershoot||y&&0===m.overshoot,k=ba(e,"resistance",b.resistance),Q=L(m)?m:function _calculateTweenDuration(t,e,n,r,i,o){if(void 0===n&&(n=10),void 0===r&&(r=.2),void 0===i&&(i=1),void 0===o&&(o=0),function _isString(t){return"string"==typeof t}(t)&&(t=x(t)[0]),!t)return 0;var a,c,s,u,f,l,d,g,p,h,v=0,m=S,y=e.inertia||e,w=V(t).get,k=ba(y,"resistance",b.resistance);for(a in h=fa(t,y,w,k),y)B[a]||(c=y[a],M(c)||((g=g||E(t))&&g.isTracking(a)?c=L(c)?{velocity:c}:{velocity:g.get(a)}:(u=+c||0,s=Math.abs(u/k))),M(c)&&(u=L(c.velocity)?c.velocity:(g=g||E(t))&&g.isTracking(a)?g.get(a):0,s=O(r,n,Math.abs(u/ba(c,"resistance",k))),l=(f=parseFloat(w(t,a))||0)+ca(u,s),"end"in c&&(c=aa(c,h&&a in h?h:l,c.max,c.min,a,y.radius,u),o&&(A===e&&(A=y=$(e)),y[a]=Z(c,y[a],"end"))),"max"in c&&l>+c.max+1e-10?(p=c.unitFactor||b.unitFactors[a]||1,(d=f>c.max&&c.min!==c.max||-15<u*p&&u*p<45?r+.1*(n-r):da(f,c.max,u))+i<m&&(m=d+i)):"min"in c&&l<c.min-1e-10&&(p=c.unitFactor||b.unitFactors[a]||1,(d=f<c.min&&c.min!==c.max||-45<u*p&&u*p<15?r+.1*(n-r):da(f,c.min,u))+i<m&&(m=d+i)),v<d&&(v=d)),v<s&&(v=s));return m<v&&(v=m),n<v?n:v<r?r:v}(t,e,y&&m.max||10,y&&m.min||.2,y&&"overshoot"in m?+m.overshoot:w?0:1,!0);for(a in e=A,A=0,p=fa(t,e,v,k),e)B[a]||(c=e[a],N(c)&&(c=c(r,t,i)),L(c)?f=c:M(c)&&!isNaN(c.velocity)?f=+c.velocity:o&&o.isTracking(a)?f=o.get(a):console.warn("ERROR: No velocity was defined for "+t+" property: "+a),l=ca(f,Q),g=0,s=v(t,a),u=P(s),s=parseFloat(s),M(c)&&(d=s+l,"end"in c&&(c=aa(c,p&&a in p?p:d,c.max,c.min,a,e.radius,f)),"max"in c&&+c.max<d?w||c.preventOvershoot?l=c.max-s:g=c.max-s-l:"min"in c&&+c.min>d&&(w||c.preventOvershoot?l=c.min-s:g=c.min-s-l)),this._props.push(a),this._pt=new F(this._pt,t,a,s,0,U,0,h.set(t,a,this)),this._pt.u=u||0,this._pt.c1=l,this._pt.c2=g);return n.duration(Q),j},render:function render(t,e){var n=e._pt;for(t=w(e.tween._time/e.tween._dur);n;)n.set(n.t,n.p,Y(n.s+n.c1*t+n.c2*t*t)+n.u,n.d,t),n=n._next}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach(function(t){return R[t]=h[t]}),J()&&v.registerPlugin(R),e.InertiaPlugin=R,e.VelocityTracker=h,e.default=R;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function m(){return n||"undefined"!=typeof window&&(n=window.gsap)}function p(t){return s(t).id}function q(t){return f[p("string"==typeof t?d(t)[0]:t)]}function r(t){var e,n=o;if(.05<=t-c)for(c=t;n;)((e=n.g(n.t,n.p))!==n.v1||.2<t-n.t1)&&(n.v2=n.v1,n.v1=e,n.t2=n.t1,n.t1=t),n=n._next}function t(){(n=m())&&(d=n.utils.toArray,i=n.utils.getUnit,s=n.core.getCache,a=n.ticker,l=1)}function u(t,e,n,r){this.t=t,this.p=e,this.g=t._gsap.get,this.rCap=g[n||i(this.g(t,e))],this.v1=this.v2=0,this.t1=this.t2=a.time,r&&((this._next=r)._prev=this)}var n,l,d,i,o,a,c,s,f={},g={deg:360,rad:2*Math.PI},h=function(){function VelocityTracker(e,n){l||t(),this.target=d(e)[0],(f[p(this.target)]=this)._props={},n&&this.add(n)}VelocityTracker.register=function register(e){n=e,t()};var e=VelocityTracker.prototype;return e.get=function get(t,e){var n,r,i=this._props[t]||console.warn("Not tracking "+t+" velocity.");return n=parseFloat(e?i.v1:i.g(i.t,i.p))-parseFloat(i.v2),(r=i.rCap)&&(n%=r)!==n%(r/2)&&(n=n<0?n+r:n-r),function _round(t){return Math.round(1e4*t)/1e4}(n/((e?i.t1:a.time)-i.t2))},e.getAll=function getAll(){var t,e={},n=this._props;for(t in n)e[t]=this.get(t);return e},e.isTracking=function isTracking(t){return t in this._props},e.add=function add(t,e){t in this._props||(o||(a.add(r),c=a.time),o=this._props[t]=new u(this.target,t,e,o))},e.remove=function remove(t){var e,n,i=this._props[t];i&&(e=i._prev,n=i._next,e&&(e._next=n),n?n._prev=e:o===i&&(a.remove(r),o=0),delete this._props[t])},e.kill=function kill(t){for(var e in this._props)this.remove(e);t||delete f[p(this.target)]},VelocityTracker.track=function track(e,n,r){l||t();for(var i,o,a=[],c=d(e),s=n.split(","),u=(r||"").split(","),f=c.length;f--;){for(i=q(c[f])||new VelocityTracker(c[f]),o=s.length;o--;)i.add(s[o],u[o]||u[0]);a.push(i)}return a},VelocityTracker.untrack=function untrack(t,e){var n=(e||"").split(",");d(t).forEach(function(t){var e=q(t);e&&(n.length?n.forEach(function(t){return e.remove(t)}):e.kill(1))})},VelocityTracker.isTracking=function isTracking(t,e){var n=q(t);return n&&n.isTracking(e)},VelocityTracker.getVelocity=function getVelocity(t,e){var n=q(t);return n&&n.isTracking(e)?n.get(e):console.warn("Not tracking velocity of "+e)},VelocityTracker}();h.getByTarget=q,m()&&n.registerPlugin(h);function J(){return v||"undefined"!=typeof window&&(v=window.gsap)&&v.registerPlugin&&v}function L(t){return"number"==typeof t}function M(t){return"object"==typeof t}function N(t){return"function"==typeof t}function Q(){return String.fromCharCode.apply(null,arguments)}function U(t){return t}function Y(t){return Math.round(1e4*t)/1e4}function Z(t,e,n){for(var r in e)r in t||r===n||(t[r]=e[r]);return t}function $(t){var e,n,r={};for(e in t)r[e]=M(n=t[e])&&!I(n)?$(n):n;return r}function _(t,e,n,r,i){var o,a,c,s,u=e.length,f=0,l=S;if(M(t)){for(;u--;){for(c in o=e[u],a=0,t)a+=(s=o[c]-t[c])*s;a<l&&(f=u,l=a)}if((i||S)<S&&i<Math.sqrt(l))return t}else for(;u--;)(a=(o=e[u])-t)<0&&(a=-a),a<l&&r<=o&&o<=n&&(f=u,l=a);return e[f]}function aa(t,e,n,r,i,o,a){if("auto"===t.end)return t;var c,s,u=t.end;if(n=isNaN(n)?S:n,r=isNaN(r)?-S:r,M(e)){if(c=e.calculated?e:(N(u)?u(e,a):_(e,u,n,r,o))||e,!e.calculated){for(s in c)e[s]=c[s];e.calculated=!0}c=c[i]}else c=N(u)?u(e,a):I(u)?_(e,u,n,r,o):parseFloat(u);return n<c?c=n:c<r&&(c=r),{max:c,min:c,unitFactor:t.unitFactor}}function ba(t,e,n){return isNaN(t[e])?n:+t[e]}function ca(t,e){return.05*e*t/k}function da(t,e,n){return Math.abs((e-t)*k/n/.05)}function fa(t,e,n,r){if(e.linkedProps){var i,o,a,c,s,u,f=e.linkedProps.split(","),l={};for(i=0;i<f.length;i++)(a=e[o=f[i]])&&(c=L(a.velocity)?a.velocity:(s=s||E(t))&&s.isTracking(o)?s.get(o):0,u=Math.abs(c/ba(a,"resistance",r)),l[o]=parseFloat(n(t,o))+ca(c,u));return l}}function ha(){(v=J())&&(y=v.parseEase,x=v.utils.toArray,P=v.utils.getUnit,V=v.core.getCache,O=v.utils.clamp,w=y("power3"),k=w(.05),F=v.core.PropTween,v.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),b=v.config(),v.registerPlugin(h),T=1)}var v,T,y,x,w,b,P,F,V,k,O,A,E=h.getByTarget,C="InertiaPlugin",W=Q(103,114,101,101,110,115,111,99,107,46,99,111,109),j=function(t){var e="undefined"!=typeof window,n=0===(e?window.location.href:"").indexOf(Q(102,105,108,101,58,47,47))||-1!==t.indexOf(Q(108,111,99,97,108,104,111,115,116))||-1!==t.indexOf(Q(49,50,55,46,48,32,48,46,49)),r=[W,Q(99,111,100,101,112,101,110,46,105,111),Q(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),Q(99,111,100,101,112,101,110,46,100,101,118),Q(99,111,100,101,112,101,110,46,97,112,112),Q(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),Q(112,101,110,115,46,99,108,111,117,100),Q(99,115,115,45,116,114,105,99,107,115,46,99,111,109),Q(99,100,112,110,46,105,111),Q(112,101,110,115,46,105,111),Q(103,97,110,110,111,110,46,116,118),Q(99,111,100,101,99,97,110,121,111,110,46,110,101,116),Q(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),Q(99,101,114,101,98,114,97,120,46,99,111,46,117,107),Q(116,121,109,112,97,110,117,115,46,110,101,116),Q(116,119,101,101,110,109,97,120,46,99,111,109),Q(116,119,101,101,110,108,105,116,101,46,99,111,109),Q(112,108,110,107,114,46,99,111),Q(104,111,116,106,97,114,46,99,111,109),Q(119,101,98,112,97,99,107,98,105,110,46,99,111,109),Q(97,114,99,104,105,118,101,46,111,114,103),Q(99,111,100,101,115,97,110,100,98,111,120,46,105,111),Q(99,115,98,46,97,112,112),Q(115,116,97,99,107,98,108,105,116,122,46,99,111,109),Q(115,116,97,99,107,98,108,105,116,122,46,105,111),Q(99,111,100,105,101,114,46,105,111),Q(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),Q(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),Q(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),Q(106,115,102,105,100,100,108,101,46,110,101,116)],i=r.length;for(setTimeout(function checkWarn(){e&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),e&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(Q(37,99,87,97,114,110,105,110,103),Q(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(Q(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+C+Q(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(Q(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),Q(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--i;)if(-1!==t.indexOf(r[i]))return!0;return n||!setTimeout(function(){e&&(window.location.href=Q(104,116,116,112,115,58,47,47)+W+Q(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+C+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),I=Array.isArray,S=1e10,B={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},R={version:"3.10.3",name:"inertia",register:function register(t){v=t,ha()},init:function init(t,e,n,r,i){T||ha();var o=E(t);if("auto"===e){if(!o)return void console.warn("No inertia tracking on "+t+". InertiaPlugin.track(target) first.");e=o.getAll()}this.target=t,this.tween=n,A=e;var a,c,s,u,f,l,d,g,p,h=t._gsap,v=h.get,m=e.duration,y=M(m),w=e.preventOvershoot||y&&0===m.overshoot,k=ba(e,"resistance",b.resistance),Q=L(m)?m:function _calculateTweenDuration(t,e,n,r,i,o){if(void 0===n&&(n=10),void 0===r&&(r=.2),void 0===i&&(i=1),void 0===o&&(o=0),function _isString(t){return"string"==typeof t}(t)&&(t=x(t)[0]),!t)return 0;var a,c,s,u,f,l,d,g,p,h,v=0,m=S,y=e.inertia||e,w=V(t).get,k=ba(y,"resistance",b.resistance);for(a in h=fa(t,y,w,k),y)B[a]||(c=y[a],M(c)||((g=g||E(t))&&g.isTracking(a)?c=L(c)?{velocity:c}:{velocity:g.get(a)}:(u=+c||0,s=Math.abs(u/k))),M(c)&&(u=L(c.velocity)?c.velocity:(g=g||E(t))&&g.isTracking(a)?g.get(a):0,s=O(r,n,Math.abs(u/ba(c,"resistance",k))),l=(f=parseFloat(w(t,a))||0)+ca(u,s),"end"in c&&(c=aa(c,h&&a in h?h:l,c.max,c.min,a,y.radius,u),o&&(A===e&&(A=y=$(e)),y[a]=Z(c,y[a],"end"))),"max"in c&&l>+c.max+1e-10?(p=c.unitFactor||b.unitFactors[a]||1,(d=f>c.max&&c.min!==c.max||-15<u*p&&u*p<45?r+.1*(n-r):da(f,c.max,u))+i<m&&(m=d+i)):"min"in c&&l<c.min-1e-10&&(p=c.unitFactor||b.unitFactors[a]||1,(d=f<c.min&&c.min!==c.max||-45<u*p&&u*p<15?r+.1*(n-r):da(f,c.min,u))+i<m&&(m=d+i)),v<d&&(v=d)),v<s&&(v=s));return m<v&&(v=m),n<v?n:v<r?r:v}(t,e,y&&m.max||10,y&&m.min||.2,y&&"overshoot"in m?+m.overshoot:w?0:1,!0);for(a in e=A,A=0,p=fa(t,e,v,k),e)B[a]||(c=e[a],N(c)&&(c=c(r,t,i)),L(c)?f=c:M(c)&&!isNaN(c.velocity)?f=+c.velocity:o&&o.isTracking(a)?f=o.get(a):console.warn("ERROR: No velocity was defined for "+t+" property: "+a),l=ca(f,Q),g=0,s=v(t,a),u=P(s),s=parseFloat(s),M(c)&&(d=s+l,"end"in c&&(c=aa(c,p&&a in p?p:d,c.max,c.min,a,e.radius,f)),"max"in c&&+c.max<d?w||c.preventOvershoot?l=c.max-s:g=c.max-s-l:"min"in c&&+c.min>d&&(w||c.preventOvershoot?l=c.min-s:g=c.min-s-l)),this._props.push(a),this._pt=new F(this._pt,t,a,s,0,U,0,h.set(t,a,this)),this._pt.u=u||0,this._pt.c1=l,this._pt.c2=g);return n.duration(Q),j},render:function render(t,e){var n=e._pt;for(t=w(e.tween._time/e.tween._dur);n;)n.set(n.t,n.p,Y(n.s+n.c1*t+n.c2*t*t)+n.u,n.d,t),n=n._next}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach(function(t){return R[t]=h[t]}),J()&&v.registerPlugin(R),e.InertiaPlugin=R,e.VelocityTracker=h,e.default=R;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* MorphSVGPlugin 3.10.2 | ||
* MorphSVGPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function m(t){return"string"==typeof t}var b=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,N=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,A=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,H=Math.PI/180,k=Math.sin,B=Math.cos,D=Math.abs,Q=Math.sqrt,s=function _isNumber(t){return"number"==typeof t},h=function _round(t){return Math.round(1e5*t)/1e5||0};function reverseSegment(t){var e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}var R={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function convertToPath(t,e){var n,r,o,a,i,s,h,l,c,g,f,u,p,d,P,m,w,_,y,v,x,M,T=t.tagName.toLowerCase(),b=.552284749831;return"path"!==T&&t.getBBox?(s=function _createPath(t,e){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),o=[].slice.call(t.attributes),a=o.length;for(e=","+e+",";-1<--a;)n=o[a].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,o[a].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),M=function _attrToObj(t,e){for(var n=e?e.split(","):[],r={},o=n.length;-1<--o;)r[n[o]]=+t.getAttribute(n[o])||0;return r}(t,R[T]),"rect"===T?(a=M.rx,i=M.ry||a,r=M.x,o=M.y,g=M.width-2*a,f=M.height-2*i,n=a||i?"M"+(m=(d=(p=r+a)+g)+a)+","+(_=o+i)+" V"+(y=_+f)+" C"+[m,v=y+i*b,P=d+a*b,x=y+i,d,x,d-(d-p)/3,x,p+(d-p)/3,x,p,x,u=r+a*(1-b),x,r,v,r,y,r,y-(y-_)/3,r,_+(y-_)/3,r,_,r,w=o+i*(1-b),u,o,p,o,p+(d-p)/3,o,d-(d-p)/3,o,d,o,P,o,m,w,m,_].join(",")+"z":"M"+(r+g)+","+o+" v"+f+" h"+-g+" v"+-f+" h"+g+"z"):"circle"===T||"ellipse"===T?(l="circle"===T?(a=i=M.r)*b:(a=M.rx,(i=M.ry)*b),n="M"+((r=M.cx)+a)+","+(o=M.cy)+" C"+[r+a,o+l,r+(h=a*b),o+i,r,o+i,r-h,o+i,r-a,o+l,r-a,o,r-a,o-l,r-h,o-i,r,o-i,r+h,o-i,r+a,o-l,r+a,o].join(",")+"z"):"line"===T?n="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==T&&"polygon"!==T||(n="M"+(r=(c=(t.getAttribute("points")+"").match(N)||[]).shift())+","+(o=c.shift())+" L"+c.join(","),"polygon"===T&&(n+=","+r+","+o+"z")),s.setAttribute("d",rawPathToString(s._gsRawPath=stringToRawPath(n))),e&&t.parentNode&&(t.parentNode.insertBefore(s,t),t.parentNode.removeChild(t)),s):t}function arcToSegment(t,e,n,r,o,a,i,s,h){if(t!==s||e!==h){n=D(n),r=D(r);var l=o%360*H,c=B(l),g=k(l),f=Math.PI,u=2*f,p=(t-s)/2,d=(e-h)/2,P=c*p+g*d,m=-g*p+c*d,w=P*P,_=m*m,y=w/(n*n)+_/(r*r);1<y&&(n=Q(y)*n,r=Q(y)*r);var v=n*n,x=r*r,M=(v*x-v*_-x*w)/(v*_+x*w);M<0&&(M=0);var T=(a===i?-1:1)*Q(M),b=n*m/r*T,S=-r*P/n*T,N=c*b-g*S+(t+s)/2,z=g*b+c*S+(e+h)/2,A=(P-b)/n,R=(m-S)/r,O=(-P-b)/n,j=(-m-S)/r,C=A*A+R*R,Y=(R<0?-1:1)*Math.acos(A/Q(C)),V=(A*j-R*O<0?-1:1)*Math.acos((A*O+R*j)/Q(C*(O*O+j*j)));isNaN(V)&&(V=f),!i&&0<V?V-=u:i&&V<0&&(V+=u),Y%=u,V%=u;var I,L=Math.ceil(D(V)/(u/4)),F=[],U=V/L,X=4/3*k(U/2)/(1+B(U/2)),G=c*n,W=g*n,q=g*-r,E=c*r;for(I=0;I<L;I++)P=B(o=Y+I*U),m=k(o),A=B(o+=U),R=k(o),F.push(P-X*m,m+X*P,A+X*R,R-X*A,A,R);for(I=0;I<F.length;I+=2)P=F[I],m=F[I+1],F[I]=P*G+m*q+N,F[I+1]=P*W+m*E+z;return F[I-2]=s,F[I-1]=h,F}}function stringToRawPath(t){function yc(t,e,n,r){c=(n-t)/3,g=(r-e)/3,s.push(t+c,e+g,n-c,r-g,n,r)}var e,n,r,o,a,i,s,h,l,c,g,f,u,p,d,P=(t+"").replace(A,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(b)||[],m=[],w=0,_=0,y=P.length,v=0,x="ERROR: malformed path: "+t;if(!t||!isNaN(P[0])||isNaN(P[1]))return console.log(x),m;for(e=0;e<y;e++)if(u=a,isNaN(P[e])?i=(a=P[e].toUpperCase())!==P[e]:e--,r=+P[e+1],o=+P[e+2],i&&(r+=w,o+=_),e||(h=r,l=o),"M"===a)s&&(s.length<8?--m.length:v+=s.length),w=h=r,_=l=o,s=[r,o],m.push(s),e+=2,a="L";else if("C"===a)i||(w=_=0),(s=s||[0,0]).push(r,o,w+1*P[e+3],_+1*P[e+4],w+=1*P[e+5],_+=1*P[e+6]),e+=6;else if("S"===a)c=w,g=_,"C"!==u&&"S"!==u||(c+=w-s[s.length-4],g+=_-s[s.length-3]),i||(w=_=0),s.push(c,g,r,o,w+=1*P[e+3],_+=1*P[e+4]),e+=4;else if("Q"===a)c=w+2/3*(r-w),g=_+2/3*(o-_),i||(w=_=0),w+=1*P[e+3],_+=1*P[e+4],s.push(c,g,w+2/3*(r-w),_+2/3*(o-_),w,_),e+=4;else if("T"===a)c=w-s[s.length-4],g=_-s[s.length-3],s.push(w+c,_+g,r+2/3*(w+1.5*c-r),o+2/3*(_+1.5*g-o),w=r,_=o),e+=2;else if("H"===a)yc(w,_,w=r,_),e+=1;else if("V"===a)yc(w,_,w,_=r+(i?_-w:0)),e+=1;else if("L"===a||"Z"===a)"Z"===a&&(r=h,o=l,s.closed=!0),("L"===a||.5<D(w-r)||.5<D(_-o))&&(yc(w,_,r,o),"L"===a&&(e+=2)),w=r,_=o;else if("A"===a){if(p=P[e+4],d=P[e+5],c=P[e+6],g=P[e+7],n=7,1<p.length&&(p.length<3?(g=c,c=d,n--):(g=d,c=p.substr(2),n-=2),d=p.charAt(1),p=p.charAt(0)),f=arcToSegment(w,_,+P[e+1],+P[e+2],+P[e+3],+p,+d,(i?w:0)+1*c,(i?_:0)+1*g),e+=n,f)for(n=0;n<f.length;n++)s.push(f[n]);w=s[s.length-2],_=s[s.length-1]}else console.log(x);return(e=s.length)<6?(m.pop(),e=0):s[0]===s[e-2]&&s[1]===s[e-1]&&(s.closed=!0),m.totalPoints=v+e,m}function rawPathToString(t){s(t[0])&&(t=[t]);var e,n,r,o,a="",i=t.length;for(n=0;n<i;n++){for(o=t[n],a+="M"+h(o[0])+","+h(o[1])+" C",e=o.length,r=2;r<e;r++)a+=h(o[r++])+","+h(o[r++])+" "+h(o[r++])+","+h(o[r++])+" "+h(o[r++])+","+h(o[r])+" ";o.closed&&(a+="z")}return a}function y(){return n||"undefined"!=typeof window&&(n=window.gsap)&&n.registerPlugin&&n}function z(t){return"function"==typeof t}function M(t){return console&&console.warn(t)}function P(){return String.fromCharCode.apply(null,arguments)}function S(t){var e,n=t.length,r=0,o=0;for(e=0;e<n;e++)r+=t[e++],o+=t[e];return[r/(n/2),o/(n/2)]}function T(t){var e,n,r,o=t.length,a=t[0],i=a,s=t[1],h=s;for(r=6;r<o;r+=6)a<(e=t[r])?a=e:e<i&&(i=e),s<(n=t[r+1])?s=n:n<h&&(h=n);return t.centerX=(a+i)/2,t.centerY=(s+h)/2,t.size=(a-i)*(s-h)}function U(t,e){void 0===e&&(e=3);for(var n,r,o,a,i,s,h,l,c,g,f,u,p,d,P,m,w=t.length,_=t[0][0],y=_,v=t[0][1],x=v,M=1/e;-1<--w;)for(n=(i=t[w]).length,a=6;a<n;a+=6)for(c=i[a],g=i[a+1],f=i[a+2]-c,d=i[a+3]-g,u=i[a+4]-c,P=i[a+5]-g,p=i[a+6]-c,m=i[a+7]-g,s=e;-1<--s;)_<(r=((h=M*s)*h*p+3*(l=1-h)*(h*u+l*f))*h+c)?_=r:r<y&&(y=r),v<(o=(h*h*m+3*l*(h*P+l*d))*h+g)?v=o:o<x&&(x=o);return t.centerX=(_+y)/2,t.centerY=(v+x)/2,t.left=y,t.width=_-y,t.top=x,t.height=v-x,t.size=(_-y)*(v-x)}function V(t,e){return e.length-t.length}function W(t,e){var n=t.size||T(t),r=e.size||T(e);return Math.abs(r-n)<(n+r)/20?e.centerX-t.centerX||e.centerY-t.centerY:r-n}function X(t,e){var n,r,o=t.slice(0),a=t.length,i=a-2;for(e|=0,n=0;n<a;n++)r=(n+e)%i,t[n++]=o[r],t[n]=o[1+r]}function Y(t,e,n,r,o){var a,i,s,h,l=t.length,c=0,g=l-2;for(n*=6,i=0;i<l;i+=6)h=t[a=(i+n)%g]-(e[i]-r),s=t[1+a]-(e[i+1]-o),c+=w(s*s+h*h);return c}function Z(t,e,n){var r,o,a,i=t.length,s=S(t),h=S(e),l=h[0]-s[0],c=h[1]-s[1],g=Y(t,e,0,l,c),f=0;for(a=6;a<i;a+=6)(o=Y(t,e,a/6,l,c))<g&&(g=o,f=a);if(n)for(reverseSegment(r=t.slice(0)),a=6;a<i;a+=6)(o=Y(r,e,a/6,l,c))<g&&(g=o,f=-a);return f/6}function $(t,e,n){for(var r,o,a,i,s,h,l=t.length,c=1e20,g=0,f=0;-1<--l;)for(h=(r=t[l]).length,s=0;s<h;s+=6)o=r[s]-e,a=r[s+1]-n,(i=w(o*o+a*a))<c&&(c=i,g=r[s],f=r[s+1]);return[g,f]}function _(t,e,n,r,o,a){var i,s,h,l,c=e.length,g=0,f=Math.min(t.size||T(t),e[n].size||T(e[n]))*r,u=1e20,p=t.centerX+o,d=t.centerY+a;for(i=n;i<c&&!((e[i].size||T(e[i]))<f);i++)s=e[i].centerX-p,h=e[i].centerY-d,(l=w(s*s+h*h))<u&&(g=i,u=l);return l=e[g],e.splice(g,1),l}function aa(t,e){var n,r,o,a,i,s,h,l,c,g,f,u,p,d,P=0,m=t.length,w=e/((m-2)/6);for(p=2;p<m;p+=6)for(P+=w;.999999<P;)n=t[p-2],r=t[p-1],o=t[p],a=t[p+1],i=t[p+2],s=t[p+3],h=t[p+4],l=t[p+5],c=n+(o-n)*(d=1/((Math.floor(P)||1)+1)),c+=((f=o+(i-o)*d)-c)*d,f+=(i+(h-i)*d-f)*d,g=r+(a-r)*d,g+=((u=a+(s-a)*d)-g)*d,u+=(s+(l-s)*d-u)*d,t.splice(p,4,n+(o-n)*d,r+(a-r)*d,c,g,c+(f-c)*d,g+(u-g)*d,f,u,i+(h-i)*d,s+(l-s)*d),p+=6,m+=6,P--;return t}function ba(t,e,n,r,o){var a,i,s,h,l,c,g,f=e.length-t.length,u=0<f?e:t,p=0<f?t:e,d=0,P="complexity"===r?V:W,m="position"===r?0:"number"==typeof r?r:.8,w=p.length,y="object"==typeof n&&n.push?n.slice(0):[n],v="reverse"===y[0]||y[0]<0,x="log"===n;if(p[0]){if(1<u.length&&(t.sort(P),e.sort(P),u.size||U(u),p.size||U(p),c=u.centerX-p.centerX,g=u.centerY-p.centerY,P===W))for(w=0;w<p.length;w++)u.splice(w,0,_(p[w],u,w,m,c,g));if(f)for(f<0&&(f=-f),u[0].length>p[0].length&&aa(p[0],(u[0].length-p[0].length)/6|0),w=p.length;d<f;)u[w].size||T(u[w]),h=(s=$(p,u[w].centerX,u[w].centerY))[0],l=s[1],p[w++]=[h,l,h,l,h,l,h,l],p.totalPoints+=8,d++;for(w=0;w<t.length;w++)a=e[w],i=t[w],(f=a.length-i.length)<0?aa(a,-f/6|0):0<f&&aa(i,f/6|0),v&&!1!==o&&!i.reversed&&reverseSegment(i),(n=y[w]||0===y[w]?y[w]:"auto")&&(i.closed||Math.abs(i[0]-i[i.length-2])<.5&&Math.abs(i[1]-i[i.length-1])<.5?"auto"===n||"log"===n?(y[w]=n=Z(i,a,!w||!1===o),n<0&&(v=!0,reverseSegment(i),n=-n),X(i,6*n)):"reverse"!==n&&(w&&n<0&&reverseSegment(i),X(i,6*(n<0?-n:n))):!v&&("auto"===n&&Math.abs(a[0]-i[0])+Math.abs(a[1]-i[1])+Math.abs(a[a.length-2]-i[i.length-2])+Math.abs(a[a.length-1]-i[i.length-1])>Math.abs(a[0]-i[i.length-2])+Math.abs(a[1]-i[i.length-1])+Math.abs(a[a.length-2]-i[0])+Math.abs(a[a.length-1]-i[1])||n%2)?(reverseSegment(i),y[w]=-1,v=!0):"auto"===n?y[w]=0:"reverse"===n&&(y[w]=-1),i.closed!==a.closed&&(i.closed=a.closed=!1));return x&&M("shapeIndex:["+y.join(",")+"]"),t.shapeIndex=y}}function ca(t,e,n,r,o){var a=stringToRawPath(t[0]),i=stringToRawPath(t[1]);ba(a,i,e||0===e?e:"auto",n,o)&&(t[0]=rawPathToString(a),t[1]=rawPathToString(i),"log"!==r&&!0!==r||M('precompile:["'+t[0]+'","'+t[1]+'"]'))}function ea(t,e){var n,r,o,a,i,s,h,l=0,c=parseFloat(t[0]),g=parseFloat(t[1]),f=c+","+g+" ";for(n=.5*e/(.5*(o=t.length)-1),r=0;r<o-2;r+=2){if(l+=n,s=parseFloat(t[r+2]),h=parseFloat(t[r+3]),.999999<l)for(i=1/(Math.floor(l)+1),a=1;.999999<l;)f+=(c+(s-c)*i*a).toFixed(2)+","+(g+(h-g)*i*a).toFixed(2)+" ",l--,a++;f+=s+","+h+" ",c=s,g=h}return f}function fa(t){var e=t[0].match(F)||[],n=t[1].match(F)||[],r=n.length-e.length;0<r?t[0]=ea(e,r):t[1]=ea(n,-r)}function ga(e){return isNaN(e)?fa:function(t){fa(t),t[1]=function _offsetPoints(t,e){if(!e)return t;var n,r,o,a=t.match(F)||[],i=a.length,s="";for(n="reverse"===e?(r=i-1,-2):(r=(2*(parseInt(e,10)||0)+1+100*i)%i,2),o=0;o<i;o+=2)s+=a[r-1]+","+a[r]+" ",r=(r+n)%i;return s}(t[1],parseInt(e,10))}}function ia(t,e){for(var n,r,o,a,i,s,h,l,c,g,f,u,p=t.length,d=.2*(e||1);-1<--p;){for(f=(r=t[p]).isSmooth=r.isSmooth||[0,0,0,0],u=r.smoothData=r.smoothData||[0,0,0,0],f.length=4,l=r.length-2,h=6;h<l;h+=6)o=r[h]-r[h-2],a=r[h+1]-r[h-1],i=r[h+2]-r[h],s=r[h+3]-r[h+1],c=v(a,o),g=v(s,i),(n=Math.abs(c-g)<d)&&(u[h-2]=c,u[h+2]=g,u[h-1]=w(o*o+a*a),u[h+3]=w(i*i+s*s)),f.push(n,n,0,0,n,n);r[l]===r[0]&&r[1+l]===r[1]&&(o=r[0]-r[l-2],a=r[1]-r[l-1],i=r[2]-r[0],s=r[3]-r[1],c=v(a,o),g=v(s,i),Math.abs(c-g)<d&&(u[l-2]=c,u[2]=g,u[l-1]=w(o*o+a*a),u[3]=w(i*i+s*s),f[l-2]=f[l-1]=!0))}return t}function ja(t){var e=t.trim().split(" ");return{x:(~t.indexOf("left")?0:~t.indexOf("right")?100:isNaN(parseFloat(e[0]))?50:parseFloat(e[0]))/100,y:(~t.indexOf("top")?0:~t.indexOf("bottom")?100:isNaN(parseFloat(e[1]))?50:parseFloat(e[1]))/100}}function ma(t,e,n,r){var o,a,i=this._origin,s=this._eOrigin,h=t[n]-i.x,l=t[n+1]-i.y,c=w(h*h+l*l),g=v(l,h);return h=e[n]-s.x,l=e[n+1]-s.y,a=function _shortAngle(t){return t!==t%f?t+(t<0?u:-u):t}(o=v(l,h)-g),!r&&I&&Math.abs(a+I.ca)<p&&(r=I),this._anchorPT=I={_next:this._anchorPT,t:t,sa:g,ca:r&&a*r.ca<0&&Math.abs(a)>d?o:a,sl:c,cl:w(h*h+l*l)-c,i:n}}function na(t){n=y(),o=o||n&&n.plugins.morphSVG,n&&o?(C=n.utils.toArray,o.prototype._tweenRotation=ma,L=1):t&&M("Please gsap.registerPlugin(MorphSVGPlugin)")}var n,C,I,L,o,v=Math.atan2,x=Math.cos,O=Math.sin,w=Math.sqrt,f=Math.PI,u=2*f,p=.3*f,d=.7*f,F=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,G=/(^[#\.][a-z]|[a-y][a-z])/i,q=/[achlmqstvz]/i,a="MorphSVGPlugin",i=P(103,114,101,101,110,115,111,99,107,46,99,111,109),E=function(t){var e="undefined"!=typeof window,n=0===(e?window.location.href:"").indexOf(P(102,105,108,101,58,47,47))||-1!==t.indexOf(P(108,111,99,97,108,104,111,115,116))||-1!==t.indexOf(P(49,50,55,46,48,32,48,46,49)),r=[i,P(99,111,100,101,112,101,110,46,105,111),P(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),P(99,111,100,101,112,101,110,46,100,101,118),P(99,111,100,101,112,101,110,46,97,112,112),P(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),P(112,101,110,115,46,99,108,111,117,100),P(99,115,115,45,116,114,105,99,107,115,46,99,111,109),P(99,100,112,110,46,105,111),P(112,101,110,115,46,105,111),P(103,97,110,110,111,110,46,116,118),P(99,111,100,101,99,97,110,121,111,110,46,110,101,116),P(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),P(99,101,114,101,98,114,97,120,46,99,111,46,117,107),P(116,121,109,112,97,110,117,115,46,110,101,116),P(116,119,101,101,110,109,97,120,46,99,111,109),P(116,119,101,101,110,108,105,116,101,46,99,111,109),P(112,108,110,107,114,46,99,111),P(104,111,116,106,97,114,46,99,111,109),P(119,101,98,112,97,99,107,98,105,110,46,99,111,109),P(97,114,99,104,105,118,101,46,111,114,103),P(99,111,100,101,115,97,110,100,98,111,120,46,105,111),P(99,115,98,46,97,112,112),P(115,116,97,99,107,98,108,105,116,122,46,99,111,109),P(115,116,97,99,107,98,108,105,116,122,46,105,111),P(99,111,100,105,101,114,46,105,111),P(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),P(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),P(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),P(106,115,102,105,100,100,108,101,46,110,101,116)],o=r.length;for(setTimeout(function checkWarn(){e&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),e&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(P(37,99,87,97,114,110,105,110,103),P(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(P(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+a+P(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(P(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),P(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--o;)if(-1!==t.indexOf(r[o]))return!0;return n||!setTimeout(function(){e&&(window.location.href=P(104,116,116,112,115,58,47,47)+i+P(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+a+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),J="Use MorphSVGPlugin.convertToPath() to convert to a path before morphing.",K={version:"3.10.2",name:"morphSVG",rawVars:1,register:function register(t,e){n=t,o=e,na()},init:function init(t,e,n,r,o){if(L||na(1),!e)return M("invalid shape"),!1;var a,i,s,h,l,c,g,f,u,p,d,P,m,w,_,y,v,x,T,b,S,N;if(z(e)&&(e=e.call(n,r,t,o)),"string"==typeof e||e.getBBox||e[0])e={shape:e};else if("object"==typeof e){for(i in a={},e)a[i]=z(e[i])&&"render"!==i?e[i].call(n,r,t,o):e[i];e=a}var A=t.nodeType?window.getComputedStyle(t):{},R=A.fill+"",O=!("none"===R||"0"===(R.match(F)||[])[3]||"evenodd"===A.fillRule),j=(e.origin||"50 50").split(",");if(l="POLYLINE"===(a=(t.nodeName+"").toUpperCase())||"POLYGON"===a,"PATH"!==a&&!l&&!e.prop)return M("Cannot morph a <"+a+"> element. "+J),!1;if(i="PATH"===a?"d":"points",!e.prop&&!z(t.setAttribute))return!1;if(h=function _parseShape(t,e,n){var r,o;return(!("string"==typeof t)||G.test(t)||(t.match(F)||[]).length<3)&&((r=C(t)[0])?(o=(r.nodeName+"").toUpperCase(),e&&"PATH"!==o&&(r=convertToPath(r,!1),o="PATH"),t=r.getAttribute("PATH"===o?"d":"points")||"",r===n&&(t=r.getAttributeNS(null,"data-original")||t)):(M("WARNING: invalid morph to: "+t),t=!1)),t}(e.shape||e.d||e.points||"","d"===i,t),l&&q.test(h))return M("A <"+a+"> cannot accept path data. "+J),!1;if(c=e.shapeIndex||0===e.shapeIndex?e.shapeIndex:"auto",g=e.map||K.defaultMap,this._prop=e.prop,this._render=e.render||K.defaultRender,this._apply="updateTarget"in e?e.updateTarget:K.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(e.precision)?2:+e.precision),this._tween=n,h){if(this._target=t,v="object"==typeof e.precompile,p=this._prop?t[this._prop]:t.getAttribute(i),this._prop||t.getAttributeNS(null,"data-original")||t.setAttributeNS(null,"data-original",p),"d"===i||this._prop){if(p=stringToRawPath(v?e.precompile[0]:p),d=stringToRawPath(v?e.precompile[1]:h),!v&&!ba(p,d,c,g,O))return!1;for("log"!==e.precompile&&!0!==e.precompile||M('precompile:["'+rawPathToString(p)+'","'+rawPathToString(d)+'"]'),(S="linear"!==(e.type||K.defaultType))&&(p=ia(p,e.smoothTolerance),d=ia(d,e.smoothTolerance),p.size||U(p),d.size||U(d),b=ja(j[0]),this._origin=p.origin={x:p.left+b.x*p.width,y:p.top+b.y*p.height},j[1]&&(b=ja(j[1])),this._eOrigin={x:d.left+b.x*d.width,y:d.top+b.y*d.height}),this._rawPath=t._gsRawPath=p,m=p.length;-1<--m;)for(_=p[m],y=d[m],f=_.isSmooth||[],u=y.isSmooth||[],w=_.length,P=I=0;P<w;P+=2)y[P]===_[P]&&y[P+1]===_[P+1]||(S?f[P]&&u[P]?(x=_.smoothData,T=y.smoothData,N=P+(P===w-4?7-w:5),this._controlPT={_next:this._controlPT,i:P,j:m,l1s:x[P+1],l1c:T[P+1]-x[P+1],l2s:x[N],l2c:T[N]-x[N]},s=this._tweenRotation(_,y,P+2),this._tweenRotation(_,y,P,s),this._tweenRotation(_,y,N-1,s),P+=4):this._tweenRotation(_,y,P):(s=this.add(_,P,_[P],y[P]),s=this.add(_,P+1,_[P+1],y[P+1])||s))}else s=this.add(t,"setAttribute",t.getAttribute(i)+"",h+"",r,o,0,ga(c),i);S&&(this.add(this._origin,"x",this._origin.x,this._eOrigin.x),s=this.add(this._origin,"y",this._origin.y,this._eOrigin.y)),s&&(this._props.push("morphSVG"),s.end=h,s.endProp=i)}return E},render:function render(t,e){for(var n,r,o,a,i,s,h,l,c,g,f,u,p=e._rawPath,d=e._controlPT,P=e._anchorPT,m=e._rnd,w=e._target,_=e._pt;_;)_.r(t,_.d),_=_._next;if(1===t&&e._apply)for(_=e._pt;_;)_.end&&(e._prop?w[e._prop]=_.end:w.setAttribute(_.endProp,_.end)),_=_._next;else if(p){for(;P;)i=P.sa+t*P.ca,a=P.sl+t*P.cl,P.t[P.i]=e._origin.x+x(i)*a,P.t[P.i+1]=e._origin.y+O(i)*a,P=P._next;for(r=t<.5?2*t*t:(4-2*t)*t-1;d;)u=(s=d.i)+(s===(o=p[d.j]).length-4?7-o.length:5),i=v(o[u]-o[s+1],o[u-1]-o[s]),g=O(i),f=x(i),l=o[s+2],c=o[s+3],a=d.l1s+r*d.l1c,o[s]=l-f*a,o[s+1]=c-g*a,a=d.l2s+r*d.l2c,o[u-1]=l+f*a,o[u]=c+g*a,d=d._next;if(w._gsRawPath=p,e._apply){for(n="",h=0;h<p.length;h++)for(a=(o=p[h]).length,n+="M"+(o[0]*m|0)/m+" "+(o[1]*m|0)/m+" C",s=2;s<a;s++)n+=(o[s]*m|0)/m+" ";e._prop?w[e._prop]=n:w.setAttribute("d",n)}}e._render&&p&&e._render.call(e._tween,p,w)},kill:function kill(){this._pt=this._rawPath=0},getRawPath:function getRawPath(t){var e,n=(t=m(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(e=n._gsPath[t])&&!e._dirty?e:n._gsPath[t]=stringToRawPath(t)):t?m(t)?stringToRawPath(t):s(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")},stringToRawPath:stringToRawPath,rawPathToString:rawPathToString,normalizeStrings:function normalizeStrings(t,e,n){var r=n.shapeIndex,o=n.map,a=[t,e];return ca(a,r,o),a},pathFilter:ca,pointsFilter:fa,getTotalSize:U,equalizeSegmentQuantity:ba,convertToPath:function convertToPath$1(t,e){return C(t).map(function(t){return convertToPath(t,!1!==e)})},defaultType:"linear",defaultUpdateTarget:!0,defaultMap:"size"};y()&&n.registerPlugin(K),t.MorphSVGPlugin=K,t.default=K;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function m(t){return"string"==typeof t}var b=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,N=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,A=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,H=Math.PI/180,k=Math.sin,B=Math.cos,D=Math.abs,Q=Math.sqrt,s=function _isNumber(t){return"number"==typeof t},h=function _round(t){return Math.round(1e5*t)/1e5||0};function reverseSegment(t){var e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}var R={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function convertToPath(t,e){var n,r,o,a,i,s,h,l,c,g,f,u,p,d,P,m,w,_,y,v,x,M,T=t.tagName.toLowerCase(),b=.552284749831;return"path"!==T&&t.getBBox?(s=function _createPath(t,e){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),o=[].slice.call(t.attributes),a=o.length;for(e=","+e+",";-1<--a;)n=o[a].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,o[a].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),M=function _attrToObj(t,e){for(var n=e?e.split(","):[],r={},o=n.length;-1<--o;)r[n[o]]=+t.getAttribute(n[o])||0;return r}(t,R[T]),"rect"===T?(a=M.rx,i=M.ry||a,r=M.x,o=M.y,g=M.width-2*a,f=M.height-2*i,n=a||i?"M"+(m=(d=(p=r+a)+g)+a)+","+(_=o+i)+" V"+(y=_+f)+" C"+[m,v=y+i*b,P=d+a*b,x=y+i,d,x,d-(d-p)/3,x,p+(d-p)/3,x,p,x,u=r+a*(1-b),x,r,v,r,y,r,y-(y-_)/3,r,_+(y-_)/3,r,_,r,w=o+i*(1-b),u,o,p,o,p+(d-p)/3,o,d-(d-p)/3,o,d,o,P,o,m,w,m,_].join(",")+"z":"M"+(r+g)+","+o+" v"+f+" h"+-g+" v"+-f+" h"+g+"z"):"circle"===T||"ellipse"===T?(l="circle"===T?(a=i=M.r)*b:(a=M.rx,(i=M.ry)*b),n="M"+((r=M.cx)+a)+","+(o=M.cy)+" C"+[r+a,o+l,r+(h=a*b),o+i,r,o+i,r-h,o+i,r-a,o+l,r-a,o,r-a,o-l,r-h,o-i,r,o-i,r+h,o-i,r+a,o-l,r+a,o].join(",")+"z"):"line"===T?n="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==T&&"polygon"!==T||(n="M"+(r=(c=(t.getAttribute("points")+"").match(N)||[]).shift())+","+(o=c.shift())+" L"+c.join(","),"polygon"===T&&(n+=","+r+","+o+"z")),s.setAttribute("d",rawPathToString(s._gsRawPath=stringToRawPath(n))),e&&t.parentNode&&(t.parentNode.insertBefore(s,t),t.parentNode.removeChild(t)),s):t}function arcToSegment(t,e,n,r,o,a,i,s,h){if(t!==s||e!==h){n=D(n),r=D(r);var l=o%360*H,c=B(l),g=k(l),f=Math.PI,u=2*f,p=(t-s)/2,d=(e-h)/2,P=c*p+g*d,m=-g*p+c*d,w=P*P,_=m*m,y=w/(n*n)+_/(r*r);1<y&&(n=Q(y)*n,r=Q(y)*r);var v=n*n,x=r*r,M=(v*x-v*_-x*w)/(v*_+x*w);M<0&&(M=0);var T=(a===i?-1:1)*Q(M),b=n*m/r*T,S=-r*P/n*T,N=c*b-g*S+(t+s)/2,z=g*b+c*S+(e+h)/2,A=(P-b)/n,R=(m-S)/r,O=(-P-b)/n,j=(-m-S)/r,C=A*A+R*R,Y=(R<0?-1:1)*Math.acos(A/Q(C)),V=(A*j-R*O<0?-1:1)*Math.acos((A*O+R*j)/Q(C*(O*O+j*j)));isNaN(V)&&(V=f),!i&&0<V?V-=u:i&&V<0&&(V+=u),Y%=u,V%=u;var I,L=Math.ceil(D(V)/(u/4)),F=[],U=V/L,X=4/3*k(U/2)/(1+B(U/2)),G=c*n,W=g*n,q=g*-r,E=c*r;for(I=0;I<L;I++)P=B(o=Y+I*U),m=k(o),A=B(o+=U),R=k(o),F.push(P-X*m,m+X*P,A+X*R,R-X*A,A,R);for(I=0;I<F.length;I+=2)P=F[I],m=F[I+1],F[I]=P*G+m*q+N,F[I+1]=P*W+m*E+z;return F[I-2]=s,F[I-1]=h,F}}function stringToRawPath(t){function yc(t,e,n,r){c=(n-t)/3,g=(r-e)/3,s.push(t+c,e+g,n-c,r-g,n,r)}var e,n,r,o,a,i,s,h,l,c,g,f,u,p,d,P=(t+"").replace(A,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(b)||[],m=[],w=0,_=0,y=P.length,v=0,x="ERROR: malformed path: "+t;if(!t||!isNaN(P[0])||isNaN(P[1]))return console.log(x),m;for(e=0;e<y;e++)if(u=a,isNaN(P[e])?i=(a=P[e].toUpperCase())!==P[e]:e--,r=+P[e+1],o=+P[e+2],i&&(r+=w,o+=_),e||(h=r,l=o),"M"===a)s&&(s.length<8?--m.length:v+=s.length),w=h=r,_=l=o,s=[r,o],m.push(s),e+=2,a="L";else if("C"===a)i||(w=_=0),(s=s||[0,0]).push(r,o,w+1*P[e+3],_+1*P[e+4],w+=1*P[e+5],_+=1*P[e+6]),e+=6;else if("S"===a)c=w,g=_,"C"!==u&&"S"!==u||(c+=w-s[s.length-4],g+=_-s[s.length-3]),i||(w=_=0),s.push(c,g,r,o,w+=1*P[e+3],_+=1*P[e+4]),e+=4;else if("Q"===a)c=w+2/3*(r-w),g=_+2/3*(o-_),i||(w=_=0),w+=1*P[e+3],_+=1*P[e+4],s.push(c,g,w+2/3*(r-w),_+2/3*(o-_),w,_),e+=4;else if("T"===a)c=w-s[s.length-4],g=_-s[s.length-3],s.push(w+c,_+g,r+2/3*(w+1.5*c-r),o+2/3*(_+1.5*g-o),w=r,_=o),e+=2;else if("H"===a)yc(w,_,w=r,_),e+=1;else if("V"===a)yc(w,_,w,_=r+(i?_-w:0)),e+=1;else if("L"===a||"Z"===a)"Z"===a&&(r=h,o=l,s.closed=!0),("L"===a||.5<D(w-r)||.5<D(_-o))&&(yc(w,_,r,o),"L"===a&&(e+=2)),w=r,_=o;else if("A"===a){if(p=P[e+4],d=P[e+5],c=P[e+6],g=P[e+7],n=7,1<p.length&&(p.length<3?(g=c,c=d,n--):(g=d,c=p.substr(2),n-=2),d=p.charAt(1),p=p.charAt(0)),f=arcToSegment(w,_,+P[e+1],+P[e+2],+P[e+3],+p,+d,(i?w:0)+1*c,(i?_:0)+1*g),e+=n,f)for(n=0;n<f.length;n++)s.push(f[n]);w=s[s.length-2],_=s[s.length-1]}else console.log(x);return(e=s.length)<6?(m.pop(),e=0):s[0]===s[e-2]&&s[1]===s[e-1]&&(s.closed=!0),m.totalPoints=v+e,m}function rawPathToString(t){s(t[0])&&(t=[t]);var e,n,r,o,a="",i=t.length;for(n=0;n<i;n++){for(o=t[n],a+="M"+h(o[0])+","+h(o[1])+" C",e=o.length,r=2;r<e;r++)a+=h(o[r++])+","+h(o[r++])+" "+h(o[r++])+","+h(o[r++])+" "+h(o[r++])+","+h(o[r])+" ";o.closed&&(a+="z")}return a}function y(){return n||"undefined"!=typeof window&&(n=window.gsap)&&n.registerPlugin&&n}function z(t){return"function"==typeof t}function M(t){return console&&console.warn(t)}function P(){return String.fromCharCode.apply(null,arguments)}function S(t){var e,n=t.length,r=0,o=0;for(e=0;e<n;e++)r+=t[e++],o+=t[e];return[r/(n/2),o/(n/2)]}function T(t){var e,n,r,o=t.length,a=t[0],i=a,s=t[1],h=s;for(r=6;r<o;r+=6)a<(e=t[r])?a=e:e<i&&(i=e),s<(n=t[r+1])?s=n:n<h&&(h=n);return t.centerX=(a+i)/2,t.centerY=(s+h)/2,t.size=(a-i)*(s-h)}function U(t,e){void 0===e&&(e=3);for(var n,r,o,a,i,s,h,l,c,g,f,u,p,d,P,m,w=t.length,_=t[0][0],y=_,v=t[0][1],x=v,M=1/e;-1<--w;)for(n=(i=t[w]).length,a=6;a<n;a+=6)for(c=i[a],g=i[a+1],f=i[a+2]-c,d=i[a+3]-g,u=i[a+4]-c,P=i[a+5]-g,p=i[a+6]-c,m=i[a+7]-g,s=e;-1<--s;)_<(r=((h=M*s)*h*p+3*(l=1-h)*(h*u+l*f))*h+c)?_=r:r<y&&(y=r),v<(o=(h*h*m+3*l*(h*P+l*d))*h+g)?v=o:o<x&&(x=o);return t.centerX=(_+y)/2,t.centerY=(v+x)/2,t.left=y,t.width=_-y,t.top=x,t.height=v-x,t.size=(_-y)*(v-x)}function V(t,e){return e.length-t.length}function W(t,e){var n=t.size||T(t),r=e.size||T(e);return Math.abs(r-n)<(n+r)/20?e.centerX-t.centerX||e.centerY-t.centerY:r-n}function X(t,e){var n,r,o=t.slice(0),a=t.length,i=a-2;for(e|=0,n=0;n<a;n++)r=(n+e)%i,t[n++]=o[r],t[n]=o[1+r]}function Y(t,e,n,r,o){var a,i,s,h,l=t.length,c=0,g=l-2;for(n*=6,i=0;i<l;i+=6)h=t[a=(i+n)%g]-(e[i]-r),s=t[1+a]-(e[i+1]-o),c+=w(s*s+h*h);return c}function Z(t,e,n){var r,o,a,i=t.length,s=S(t),h=S(e),l=h[0]-s[0],c=h[1]-s[1],g=Y(t,e,0,l,c),f=0;for(a=6;a<i;a+=6)(o=Y(t,e,a/6,l,c))<g&&(g=o,f=a);if(n)for(reverseSegment(r=t.slice(0)),a=6;a<i;a+=6)(o=Y(r,e,a/6,l,c))<g&&(g=o,f=-a);return f/6}function $(t,e,n){for(var r,o,a,i,s,h,l=t.length,c=1e20,g=0,f=0;-1<--l;)for(h=(r=t[l]).length,s=0;s<h;s+=6)o=r[s]-e,a=r[s+1]-n,(i=w(o*o+a*a))<c&&(c=i,g=r[s],f=r[s+1]);return[g,f]}function _(t,e,n,r,o,a){var i,s,h,l,c=e.length,g=0,f=Math.min(t.size||T(t),e[n].size||T(e[n]))*r,u=1e20,p=t.centerX+o,d=t.centerY+a;for(i=n;i<c&&!((e[i].size||T(e[i]))<f);i++)s=e[i].centerX-p,h=e[i].centerY-d,(l=w(s*s+h*h))<u&&(g=i,u=l);return l=e[g],e.splice(g,1),l}function aa(t,e){var n,r,o,a,i,s,h,l,c,g,f,u,p,d,P=0,m=t.length,w=e/((m-2)/6);for(p=2;p<m;p+=6)for(P+=w;.999999<P;)n=t[p-2],r=t[p-1],o=t[p],a=t[p+1],i=t[p+2],s=t[p+3],h=t[p+4],l=t[p+5],c=n+(o-n)*(d=1/((Math.floor(P)||1)+1)),c+=((f=o+(i-o)*d)-c)*d,f+=(i+(h-i)*d-f)*d,g=r+(a-r)*d,g+=((u=a+(s-a)*d)-g)*d,u+=(s+(l-s)*d-u)*d,t.splice(p,4,n+(o-n)*d,r+(a-r)*d,c,g,c+(f-c)*d,g+(u-g)*d,f,u,i+(h-i)*d,s+(l-s)*d),p+=6,m+=6,P--;return t}function ba(t,e,n,r,o){var a,i,s,h,l,c,g,f=e.length-t.length,u=0<f?e:t,p=0<f?t:e,d=0,P="complexity"===r?V:W,m="position"===r?0:"number"==typeof r?r:.8,w=p.length,y="object"==typeof n&&n.push?n.slice(0):[n],v="reverse"===y[0]||y[0]<0,x="log"===n;if(p[0]){if(1<u.length&&(t.sort(P),e.sort(P),u.size||U(u),p.size||U(p),c=u.centerX-p.centerX,g=u.centerY-p.centerY,P===W))for(w=0;w<p.length;w++)u.splice(w,0,_(p[w],u,w,m,c,g));if(f)for(f<0&&(f=-f),u[0].length>p[0].length&&aa(p[0],(u[0].length-p[0].length)/6|0),w=p.length;d<f;)u[w].size||T(u[w]),h=(s=$(p,u[w].centerX,u[w].centerY))[0],l=s[1],p[w++]=[h,l,h,l,h,l,h,l],p.totalPoints+=8,d++;for(w=0;w<t.length;w++)a=e[w],i=t[w],(f=a.length-i.length)<0?aa(a,-f/6|0):0<f&&aa(i,f/6|0),v&&!1!==o&&!i.reversed&&reverseSegment(i),(n=y[w]||0===y[w]?y[w]:"auto")&&(i.closed||Math.abs(i[0]-i[i.length-2])<.5&&Math.abs(i[1]-i[i.length-1])<.5?"auto"===n||"log"===n?(y[w]=n=Z(i,a,!w||!1===o),n<0&&(v=!0,reverseSegment(i),n=-n),X(i,6*n)):"reverse"!==n&&(w&&n<0&&reverseSegment(i),X(i,6*(n<0?-n:n))):!v&&("auto"===n&&Math.abs(a[0]-i[0])+Math.abs(a[1]-i[1])+Math.abs(a[a.length-2]-i[i.length-2])+Math.abs(a[a.length-1]-i[i.length-1])>Math.abs(a[0]-i[i.length-2])+Math.abs(a[1]-i[i.length-1])+Math.abs(a[a.length-2]-i[0])+Math.abs(a[a.length-1]-i[1])||n%2)?(reverseSegment(i),y[w]=-1,v=!0):"auto"===n?y[w]=0:"reverse"===n&&(y[w]=-1),i.closed!==a.closed&&(i.closed=a.closed=!1));return x&&M("shapeIndex:["+y.join(",")+"]"),t.shapeIndex=y}}function ca(t,e,n,r,o){var a=stringToRawPath(t[0]),i=stringToRawPath(t[1]);ba(a,i,e||0===e?e:"auto",n,o)&&(t[0]=rawPathToString(a),t[1]=rawPathToString(i),"log"!==r&&!0!==r||M('precompile:["'+t[0]+'","'+t[1]+'"]'))}function ea(t,e){var n,r,o,a,i,s,h,l=0,c=parseFloat(t[0]),g=parseFloat(t[1]),f=c+","+g+" ";for(n=.5*e/(.5*(o=t.length)-1),r=0;r<o-2;r+=2){if(l+=n,s=parseFloat(t[r+2]),h=parseFloat(t[r+3]),.999999<l)for(i=1/(Math.floor(l)+1),a=1;.999999<l;)f+=(c+(s-c)*i*a).toFixed(2)+","+(g+(h-g)*i*a).toFixed(2)+" ",l--,a++;f+=s+","+h+" ",c=s,g=h}return f}function fa(t){var e=t[0].match(F)||[],n=t[1].match(F)||[],r=n.length-e.length;0<r?t[0]=ea(e,r):t[1]=ea(n,-r)}function ga(e){return isNaN(e)?fa:function(t){fa(t),t[1]=function _offsetPoints(t,e){if(!e)return t;var n,r,o,a=t.match(F)||[],i=a.length,s="";for(n="reverse"===e?(r=i-1,-2):(r=(2*(parseInt(e,10)||0)+1+100*i)%i,2),o=0;o<i;o+=2)s+=a[r-1]+","+a[r]+" ",r=(r+n)%i;return s}(t[1],parseInt(e,10))}}function ia(t,e){for(var n,r,o,a,i,s,h,l,c,g,f,u,p=t.length,d=.2*(e||1);-1<--p;){for(f=(r=t[p]).isSmooth=r.isSmooth||[0,0,0,0],u=r.smoothData=r.smoothData||[0,0,0,0],f.length=4,l=r.length-2,h=6;h<l;h+=6)o=r[h]-r[h-2],a=r[h+1]-r[h-1],i=r[h+2]-r[h],s=r[h+3]-r[h+1],c=v(a,o),g=v(s,i),(n=Math.abs(c-g)<d)&&(u[h-2]=c,u[h+2]=g,u[h-1]=w(o*o+a*a),u[h+3]=w(i*i+s*s)),f.push(n,n,0,0,n,n);r[l]===r[0]&&r[1+l]===r[1]&&(o=r[0]-r[l-2],a=r[1]-r[l-1],i=r[2]-r[0],s=r[3]-r[1],c=v(a,o),g=v(s,i),Math.abs(c-g)<d&&(u[l-2]=c,u[2]=g,u[l-1]=w(o*o+a*a),u[3]=w(i*i+s*s),f[l-2]=f[l-1]=!0))}return t}function ja(t){var e=t.trim().split(" ");return{x:(~t.indexOf("left")?0:~t.indexOf("right")?100:isNaN(parseFloat(e[0]))?50:parseFloat(e[0]))/100,y:(~t.indexOf("top")?0:~t.indexOf("bottom")?100:isNaN(parseFloat(e[1]))?50:parseFloat(e[1]))/100}}function ma(t,e,n,r){var o,a,i=this._origin,s=this._eOrigin,h=t[n]-i.x,l=t[n+1]-i.y,c=w(h*h+l*l),g=v(l,h);return h=e[n]-s.x,l=e[n+1]-s.y,a=function _shortAngle(t){return t!==t%f?t+(t<0?u:-u):t}(o=v(l,h)-g),!r&&I&&Math.abs(a+I.ca)<p&&(r=I),this._anchorPT=I={_next:this._anchorPT,t:t,sa:g,ca:r&&a*r.ca<0&&Math.abs(a)>d?o:a,sl:c,cl:w(h*h+l*l)-c,i:n}}function na(t){n=y(),o=o||n&&n.plugins.morphSVG,n&&o?(C=n.utils.toArray,o.prototype._tweenRotation=ma,L=1):t&&M("Please gsap.registerPlugin(MorphSVGPlugin)")}var n,C,I,L,o,v=Math.atan2,x=Math.cos,O=Math.sin,w=Math.sqrt,f=Math.PI,u=2*f,p=.3*f,d=.7*f,F=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,G=/(^[#\.][a-z]|[a-y][a-z])/i,q=/[achlmqstvz]/i,a="MorphSVGPlugin",i=P(103,114,101,101,110,115,111,99,107,46,99,111,109),E=function(t){var e="undefined"!=typeof window,n=0===(e?window.location.href:"").indexOf(P(102,105,108,101,58,47,47))||-1!==t.indexOf(P(108,111,99,97,108,104,111,115,116))||-1!==t.indexOf(P(49,50,55,46,48,32,48,46,49)),r=[i,P(99,111,100,101,112,101,110,46,105,111),P(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),P(99,111,100,101,112,101,110,46,100,101,118),P(99,111,100,101,112,101,110,46,97,112,112),P(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),P(112,101,110,115,46,99,108,111,117,100),P(99,115,115,45,116,114,105,99,107,115,46,99,111,109),P(99,100,112,110,46,105,111),P(112,101,110,115,46,105,111),P(103,97,110,110,111,110,46,116,118),P(99,111,100,101,99,97,110,121,111,110,46,110,101,116),P(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),P(99,101,114,101,98,114,97,120,46,99,111,46,117,107),P(116,121,109,112,97,110,117,115,46,110,101,116),P(116,119,101,101,110,109,97,120,46,99,111,109),P(116,119,101,101,110,108,105,116,101,46,99,111,109),P(112,108,110,107,114,46,99,111),P(104,111,116,106,97,114,46,99,111,109),P(119,101,98,112,97,99,107,98,105,110,46,99,111,109),P(97,114,99,104,105,118,101,46,111,114,103),P(99,111,100,101,115,97,110,100,98,111,120,46,105,111),P(99,115,98,46,97,112,112),P(115,116,97,99,107,98,108,105,116,122,46,99,111,109),P(115,116,97,99,107,98,108,105,116,122,46,105,111),P(99,111,100,105,101,114,46,105,111),P(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),P(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),P(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),P(106,115,102,105,100,100,108,101,46,110,101,116)],o=r.length;for(setTimeout(function checkWarn(){e&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),e&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(P(37,99,87,97,114,110,105,110,103),P(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(P(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+a+P(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(P(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),P(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--o;)if(-1!==t.indexOf(r[o]))return!0;return n||!setTimeout(function(){e&&(window.location.href=P(104,116,116,112,115,58,47,47)+i+P(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+a+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),J="Use MorphSVGPlugin.convertToPath() to convert to a path before morphing.",K={version:"3.10.3",name:"morphSVG",rawVars:1,register:function register(t,e){n=t,o=e,na()},init:function init(t,e,n,r,o){if(L||na(1),!e)return M("invalid shape"),!1;var a,i,s,h,l,c,g,f,u,p,d,P,m,w,_,y,v,x,T,b,S,N;if(z(e)&&(e=e.call(n,r,t,o)),"string"==typeof e||e.getBBox||e[0])e={shape:e};else if("object"==typeof e){for(i in a={},e)a[i]=z(e[i])&&"render"!==i?e[i].call(n,r,t,o):e[i];e=a}var A=t.nodeType?window.getComputedStyle(t):{},R=A.fill+"",O=!("none"===R||"0"===(R.match(F)||[])[3]||"evenodd"===A.fillRule),j=(e.origin||"50 50").split(",");if(l="POLYLINE"===(a=(t.nodeName+"").toUpperCase())||"POLYGON"===a,"PATH"!==a&&!l&&!e.prop)return M("Cannot morph a <"+a+"> element. "+J),!1;if(i="PATH"===a?"d":"points",!e.prop&&!z(t.setAttribute))return!1;if(h=function _parseShape(t,e,n){var r,o;return(!("string"==typeof t)||G.test(t)||(t.match(F)||[]).length<3)&&((r=C(t)[0])?(o=(r.nodeName+"").toUpperCase(),e&&"PATH"!==o&&(r=convertToPath(r,!1),o="PATH"),t=r.getAttribute("PATH"===o?"d":"points")||"",r===n&&(t=r.getAttributeNS(null,"data-original")||t)):(M("WARNING: invalid morph to: "+t),t=!1)),t}(e.shape||e.d||e.points||"","d"===i,t),l&&q.test(h))return M("A <"+a+"> cannot accept path data. "+J),!1;if(c=e.shapeIndex||0===e.shapeIndex?e.shapeIndex:"auto",g=e.map||K.defaultMap,this._prop=e.prop,this._render=e.render||K.defaultRender,this._apply="updateTarget"in e?e.updateTarget:K.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(e.precision)?2:+e.precision),this._tween=n,h){if(this._target=t,v="object"==typeof e.precompile,p=this._prop?t[this._prop]:t.getAttribute(i),this._prop||t.getAttributeNS(null,"data-original")||t.setAttributeNS(null,"data-original",p),"d"===i||this._prop){if(p=stringToRawPath(v?e.precompile[0]:p),d=stringToRawPath(v?e.precompile[1]:h),!v&&!ba(p,d,c,g,O))return!1;for("log"!==e.precompile&&!0!==e.precompile||M('precompile:["'+rawPathToString(p)+'","'+rawPathToString(d)+'"]'),(S="linear"!==(e.type||K.defaultType))&&(p=ia(p,e.smoothTolerance),d=ia(d,e.smoothTolerance),p.size||U(p),d.size||U(d),b=ja(j[0]),this._origin=p.origin={x:p.left+b.x*p.width,y:p.top+b.y*p.height},j[1]&&(b=ja(j[1])),this._eOrigin={x:d.left+b.x*d.width,y:d.top+b.y*d.height}),this._rawPath=t._gsRawPath=p,m=p.length;-1<--m;)for(_=p[m],y=d[m],f=_.isSmooth||[],u=y.isSmooth||[],w=_.length,P=I=0;P<w;P+=2)y[P]===_[P]&&y[P+1]===_[P+1]||(S?f[P]&&u[P]?(x=_.smoothData,T=y.smoothData,N=P+(P===w-4?7-w:5),this._controlPT={_next:this._controlPT,i:P,j:m,l1s:x[P+1],l1c:T[P+1]-x[P+1],l2s:x[N],l2c:T[N]-x[N]},s=this._tweenRotation(_,y,P+2),this._tweenRotation(_,y,P,s),this._tweenRotation(_,y,N-1,s),P+=4):this._tweenRotation(_,y,P):(s=this.add(_,P,_[P],y[P]),s=this.add(_,P+1,_[P+1],y[P+1])||s))}else s=this.add(t,"setAttribute",t.getAttribute(i)+"",h+"",r,o,0,ga(c),i);S&&(this.add(this._origin,"x",this._origin.x,this._eOrigin.x),s=this.add(this._origin,"y",this._origin.y,this._eOrigin.y)),s&&(this._props.push("morphSVG"),s.end=h,s.endProp=i)}return E},render:function render(t,e){for(var n,r,o,a,i,s,h,l,c,g,f,u,p=e._rawPath,d=e._controlPT,P=e._anchorPT,m=e._rnd,w=e._target,_=e._pt;_;)_.r(t,_.d),_=_._next;if(1===t&&e._apply)for(_=e._pt;_;)_.end&&(e._prop?w[e._prop]=_.end:w.setAttribute(_.endProp,_.end)),_=_._next;else if(p){for(;P;)i=P.sa+t*P.ca,a=P.sl+t*P.cl,P.t[P.i]=e._origin.x+x(i)*a,P.t[P.i+1]=e._origin.y+O(i)*a,P=P._next;for(r=t<.5?2*t*t:(4-2*t)*t-1;d;)u=(s=d.i)+(s===(o=p[d.j]).length-4?7-o.length:5),i=v(o[u]-o[s+1],o[u-1]-o[s]),g=O(i),f=x(i),l=o[s+2],c=o[s+3],a=d.l1s+r*d.l1c,o[s]=l-f*a,o[s+1]=c-g*a,a=d.l2s+r*d.l2c,o[u-1]=l+f*a,o[u]=c+g*a,d=d._next;if(w._gsRawPath=p,e._apply){for(n="",h=0;h<p.length;h++)for(a=(o=p[h]).length,n+="M"+(o[0]*m|0)/m+" "+(o[1]*m|0)/m+" C",s=2;s<a;s++)n+=(o[s]*m|0)/m+" ";e._prop?w[e._prop]=n:w.setAttribute("d",n)}}e._render&&p&&e._render.call(e._tween,p,w)},kill:function kill(){this._pt=this._rawPath=0},getRawPath:function getRawPath(t){var e,n=(t=m(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(e=n._gsPath[t])&&!e._dirty?e:n._gsPath[t]=stringToRawPath(t)):t?m(t)?stringToRawPath(t):s(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")},stringToRawPath:stringToRawPath,rawPathToString:rawPathToString,normalizeStrings:function normalizeStrings(t,e,n){var r=n.shapeIndex,o=n.map,a=[t,e];return ca(a,r,o),a},pathFilter:ca,pointsFilter:fa,getTotalSize:U,equalizeSegmentQuantity:ba,convertToPath:function convertToPath$1(t,e){return C(t).map(function(t){return convertToPath(t,!1!==e)})},defaultType:"linear",defaultUpdateTarget:!0,defaultMap:"size"};y()&&n.registerPlugin(K),t.MorphSVGPlugin=K,t.default=K;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); |
/*! | ||
* MotionPathHelper 3.10.2 | ||
* MotionPathHelper 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function n(t){return Math.round(1e5*t)/1e5||0}function o(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e}var A,w=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,S=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,j=Math.PI/180,W=Math.sin,U=Math.cos,Z=Math.abs,K=Math.sqrt,P=1e8;function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=o(t[n],t[n].slice(0));return o(t,e)}function transformRawPath(t,e,n,i,s,a,o){for(var r,h,l,c,d,u=t.length;-1<--u;)for(h=(r=t[u]).length,l=0;l<h;l+=2)c=r[l],d=r[l+1],r[l]=c*e+d*i+a,r[l+1]=c*n+d*s+o;return t._dirty=1,t}function arcToSegment(t,e,n,i,s,a,o,r,h){if(t!==r||e!==h){n=Z(n),i=Z(i);var l=s%360*j,c=U(l),d=W(l),u=Math.PI,g=2*u,p=(t-r)/2,f=(e-h)/2,_=c*p+d*f,m=-d*p+c*f,v=_*_,b=m*m,y=v/(n*n)+b/(i*i);1<y&&(n=K(y)*n,i=K(y)*i);var A=n*n,P=i*i,w=(A*P-A*b-P*v)/(A*b+P*v);w<0&&(w=0);var S=(a===o?-1:1)*K(w),C=n*m/i*S,x=-i*_/n*S,E=c*C-d*x+(t+r)/2,M=d*C+c*x+(e+h)/2,D=(_-C)/n,k=(m-x)/i,T=(-_-C)/n,H=(-m-x)/i,R=D*D+k*k,N=(k<0?-1:1)*Math.acos(D/K(R)),z=(D*H-k*T<0?-1:1)*Math.acos((D*T+k*H)/K(R*(T*T+H*H)));isNaN(z)&&(z=u),!o&&0<z?z-=g:o&&z<0&&(z+=g),N%=g,z%=g;var L,O=Math.ceil(Z(z)/(g/4)),X=[],I=z/O,q=4/3*W(I/2)/(1+U(I/2)),V=c*n,F=d*n,G=d*-i,Y=c*i;for(L=0;L<O;L++)_=U(s=N+L*I),m=W(s),D=U(s+=I),k=W(s),X.push(_-q*m,m+q*_,D+q*k,k-q*D,D,k);for(L=0;L<X.length;L+=2)_=X[L],m=X[L+1],X[L]=_*V+m*G+E,X[L+1]=_*F+m*Y+M;return X[L-2]=r,X[L-1]=h,X}}function stringToRawPath(t){function ud(t,e,n,i){c=(n-t)/3,d=(i-e)/3,r.push(t+c,e+d,n-c,i-d,n,i)}var e,n,i,s,a,o,r,h,l,c,d,u,g,p,f,_=(t+"").replace(S,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(w)||[],m=[],v=0,b=0,y=_.length,A=0,P="ERROR: malformed path: "+t;if(!t||!isNaN(_[0])||isNaN(_[1]))return console.log(P),m;for(e=0;e<y;e++)if(g=a,isNaN(_[e])?o=(a=_[e].toUpperCase())!==_[e]:e--,i=+_[e+1],s=+_[e+2],o&&(i+=v,s+=b),e||(h=i,l=s),"M"===a)r&&(r.length<8?--m.length:A+=r.length),v=h=i,b=l=s,r=[i,s],m.push(r),e+=2,a="L";else if("C"===a)o||(v=b=0),(r=r||[0,0]).push(i,s,v+1*_[e+3],b+1*_[e+4],v+=1*_[e+5],b+=1*_[e+6]),e+=6;else if("S"===a)c=v,d=b,"C"!==g&&"S"!==g||(c+=v-r[r.length-4],d+=b-r[r.length-3]),o||(v=b=0),r.push(c,d,i,s,v+=1*_[e+3],b+=1*_[e+4]),e+=4;else if("Q"===a)c=v+2/3*(i-v),d=b+2/3*(s-b),o||(v=b=0),v+=1*_[e+3],b+=1*_[e+4],r.push(c,d,v+2/3*(i-v),b+2/3*(s-b),v,b),e+=4;else if("T"===a)c=v-r[r.length-4],d=b-r[r.length-3],r.push(v+c,b+d,i+2/3*(v+1.5*c-i),s+2/3*(b+1.5*d-s),v=i,b=s),e+=2;else if("H"===a)ud(v,b,v=i,b),e+=1;else if("V"===a)ud(v,b,v,b=i+(o?b-v:0)),e+=1;else if("L"===a||"Z"===a)"Z"===a&&(i=h,s=l,r.closed=!0),("L"===a||.5<Z(v-i)||.5<Z(b-s))&&(ud(v,b,i,s),"L"===a&&(e+=2)),v=i,b=s;else if("A"===a){if(p=_[e+4],f=_[e+5],c=_[e+6],d=_[e+7],n=7,1<p.length&&(p.length<3?(d=c,c=f,n--):(d=f,c=p.substr(2),n-=2),f=p.charAt(1),p=p.charAt(0)),u=arcToSegment(v,b,+_[e+1],+_[e+2],+_[e+3],+p,+f,(o?v:0)+1*c,(o?b:0)+1*d),e+=n,u)for(n=0;n<u.length;n++)r.push(u[n]);v=r[r.length-2],b=r[r.length-1]}else console.log(P);return(e=r.length)<6?(m.pop(),e=0):r[0]===r[e-2]&&r[1]===r[e-1]&&(r.closed=!0),m.totalPoints=A+e,m}function bezierToPoints(t,e,n,i,s,a,o,r,h,l,c){var d,u=(t+n)/2,g=(e+i)/2,p=(n+s)/2,f=(i+a)/2,_=(s+o)/2,m=(a+r)/2,v=(u+p)/2,b=(g+f)/2,y=(p+_)/2,A=(f+m)/2,P=(v+y)/2,w=(b+A)/2,S=o-t,C=r-e,x=Z((n-o)*C-(i-r)*S),E=Z((s-o)*C-(a-r)*S);return l||(l=[t,e,o,r],c=2),l.splice(c||l.length-2,0,P,w),h*(S*S+C*C)<(x+E)*(x+E)&&(d=l.length,bezierToPoints(t,e,u,g,v,b,P,w,h,l,c),bezierToPoints(P,w,y,A,_,m,o,r,h,l,c+2+(l.length-d))),l}function pointsToSegment(t,e){Z(t[0]-t[2])<1e-4&&Z(t[1]-t[3])<1e-4&&(t=t.slice(2));var i,s,a,o,r,h,l,c,d,u,g,p,f,_,m=t.length-2,v=+t[0],b=+t[1],y=+t[2],A=+t[3],P=[v,b,v,b],w=y-v,S=A-b,C=Math.abs(t[m]-v)<.001&&Math.abs(t[m+1]-b)<.001;for(C&&(t.push(y,A),y=v,A=b,v=t[m-2],b=t[m-1],t.unshift(v,b),m+=4),e=e||0===e?+e:1,a=2;a<m;a+=2)i=v,s=b,v=y,b=A,y=+t[a+2],A=+t[a+3],v===y&&b===A||(o=w,r=S,w=y-v,S=A-b,c=((h=K(o*o+r*r))+(l=K(w*w+S*S)))*e*.25/K(Math.pow(w/l+o/h,2)+Math.pow(S/l+r/h,2)),g=v-((d=v-(v-i)*(h?c/h:0))+(((u=v+(y-v)*(l?c/l:0))-d)*(3*h/(h+l)+.5)/4||0)),_=b-((p=b-(b-s)*(h?c/h:0))+(((f=b+(A-b)*(l?c/l:0))-p)*(3*h/(h+l)+.5)/4||0)),v===i&&b===s||P.push(n(d+g),n(p+_),n(v),n(b),n(u+g),n(f+_)));return v!==y||b!==A||P.length<4?P.push(n(y),n(A),n(y),n(A)):P.length-=2,2===P.length?P.push(v,b,v,b,v,b):C&&(P.splice(0,6),P.length=P.length-6),P}function simplifyPoints(t,e){var n,i,s,a,o,r,h,l=parseFloat(t[0]),c=parseFloat(t[1]),d=[l,c],u=t.length-2;for(e=Math.pow(e||1,2),n=2;n<u;n+=2)e<(a=l-(i=parseFloat(t[n])))*a+(o=c-(s=parseFloat(t[n+1])))*o&&(d.push(i,s),l=i,c=s);return d.push(parseFloat(t[u]),parseFloat(t[1+u])),function simplifyStep(t,e,n,i,s){var a,o,r,h,l,c,d,u,g,p,f,_,m=i,v=t[e],b=t[e+1],y=t[n],A=t[n+1];for(o=e+2;o<n;o+=2)h=t[o],l=t[o+1],p=void 0,_=(g=A)-(d=b),((f=(u=y)-(c=v))||_)&&(1<(p=((h-c)*f+(l-d)*_)/(f*f+_*_))?(c=u,d=g):0<p&&(c+=f*p,d+=_*p)),m<(r=Math.pow(h-c,2)+Math.pow(l-d,2))&&(a=o,m=r);i<m&&(2<a-e&&simplifyStep(t,e,a,i,s),s.push(t[a],t[a+1]),2<n-a&&simplifyStep(t,a,n,i,s))}(d,0,h=d.length-2,e,r=[d[0],d[1]]),r.push(d[h],d[1+h]),r}function getClosestProgressOnBezier(t,e,n,i,s,a,o,r,h,l,c,d,u,g){var p,f,_,m,v=(s-i)/a,b=0,y=i;for(A=P;y<=s;)(p=(f=(m=1-y)*m*m*o+3*m*m*y*h+3*m*y*y*c+y*y*y*u-e)*f+(_=m*m*m*r+3*m*m*y*l+3*m*y*y*d+y*y*y*g-n)*_)<A&&(A=p,b=y),y+=v;return 1<t?getClosestProgressOnBezier(t-1,e,n,Math.max(b-v,0),Math.min(b+v,1),a,o,r,h,l,c,d,u,g):b}function B(t){var e=t.ownerDocument||t;!(C in t.style)&&"msTransform"in t.style&&(x=(C="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(p=window,v=new k,e){f=(g=e).documentElement,_=e.body,(b=g.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=e.createElement("div"),i=e.createElement("div");_.appendChild(n),n.appendChild(i),n.style.position="static",n.style[C]="translate3d(0,0,1px)",y=i.offsetParent!==n,_.removeChild(n)}return e}function H(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function J(t,e){if(t.parentNode&&(g||B(t))){var n=H(t),i=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=n?e?"rect":"g":"div",a=2!==e?0:100,o=3===e?100:0,r="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",h=g.createElementNS?g.createElementNS(i.replace(/^https/,"http"),s):g.createElement(s);return e&&(n?(m=m||J(t),h.setAttribute("width",.01),h.setAttribute("height",.01),h.setAttribute("transform","translate("+a+","+o+")"),m.appendChild(h)):(u||((u=J(t)).style.cssText=r),h.style.cssText=r+"width:0.1px;height:0.1px;top:"+o+"px;left:"+a+"px",u.appendChild(h))),h}throw"Need document and parent."}function M(t,e){var n,i,s,a,o,r,h=H(t),l=t===h,c=h?E:D,d=t.parentNode;if(t===p)return t;if(c.length||c.push(J(t,1),J(t,2),J(t,3)),n=h?m:u,h)l?(a=-(s=function _getCTM(t){var e,n=t.getCTM();return n||(e=t.style[C],t.style[C]="none",t.appendChild(b),n=b.getCTM(),t.removeChild(b),e?t.style[C]=e:t.style.removeProperty(C.replace(/([A-Z])/g,"-$1").toLowerCase())),n||v.clone()}(t)).e/s.a,o=-s.f/s.d,i=v):(s=t.getBBox(),a=(i=(i=t.transform?t.transform.baseVal:{}).numberOfItems?1<i.numberOfItems?function _consolidate(t){for(var e=new k,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(i):i.getItem(0).matrix:v).a*s.x+i.c*s.y,o=i.b*s.x+i.d*s.y),e&&"g"===t.tagName.toLowerCase()&&(a=o=0),(l?h:d).appendChild(n),n.setAttribute("transform","matrix("+i.a+","+i.b+","+i.c+","+i.d+","+(i.e+a)+","+(i.f+o)+")");else{if(a=o=0,y)for(i=t.offsetParent,s=t;(s=s&&s.parentNode)&&s!==i&&s.parentNode;)4<(p.getComputedStyle(s)[C]+"").length&&(a=s.offsetLeft,o=s.offsetTop,s=0);if("absolute"!==(r=p.getComputedStyle(t)).position&&"fixed"!==r.position)for(i=t.offsetParent;d&&d!==i;)a+=d.scrollLeft||0,o+=d.scrollTop||0,d=d.parentNode;(s=n.style).top=t.offsetTop-o+"px",s.left=t.offsetLeft-a+"px",s[C]=r[C],s[x]=r[x],s.position="fixed"===r.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n}function N(t,e,n,i,s,a,o){return t.a=e,t.b=n,t.c=i,t.d=s,t.e=a,t.f=o,t}var g,p,f,_,u,m,v,b,y,e,C="transform",x=C+"Origin",E=[],D=[],k=((e=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,n=this.c,i=this.d,s=this.e,a=this.f,o=t*i-e*n||1e-10;return N(this,i/o,-e/o,-n/o,t/o,(n*a-i*s)/o,-(t*a-e*s)/o)},e.multiply=function multiply(t){var e=this.a,n=this.b,i=this.c,s=this.d,a=this.e,o=this.f,r=t.a,h=t.c,l=t.b,c=t.d,d=t.e,u=t.f;return N(this,r*e+l*i,r*n+l*s,h*e+c*i,h*n+c*s,a+d*e+u*i,o+d*n+u*s)},e.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function equals(t){var e=this.a,n=this.b,i=this.c,s=this.d,a=this.e,o=this.f;return e===t.a&&n===t.b&&i===t.c&&s===t.d&&a===t.e&&o===t.f},e.apply=function apply(t,e){void 0===e&&(e={});var n=t.x,i=t.y,s=this.a,a=this.b,o=this.c,r=this.d,h=this.e,l=this.f;return e.x=n*s+i*o+h||0,e.y=n*a+i*r+l||0,e},Matrix2D);function Matrix2D(t,e,n,i,s,a){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=1),void 0===s&&(s=0),void 0===a&&(a=0),N(this,t,e,n,i,s,a)}function getGlobalMatrix(t,e,n,i){if(!t||!t.parentNode||(g||B(t)).documentElement===t)return new k;var s=function _forceNonZeroScale(t){for(var e,n;t&&t!==_;)(n=t._gsap)&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t),a=H(t)?E:D,o=M(t,n),r=a[0].getBoundingClientRect(),h=a[1].getBoundingClientRect(),l=a[2].getBoundingClientRect(),c=o.parentNode,d=!i&&function _isFixed(t){return"fixed"===p.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(t),u=new k((h.left-r.left)/100,(h.top-r.top)/100,(l.left-r.left)/100,(l.top-r.top)/100,r.left+(d?0:function _getDocScrollLeft(){return p.pageXOffset||g.scrollLeft||f.scrollLeft||_.scrollLeft||0}()),r.top+(d?0:function _getDocScrollTop(){return p.pageYOffset||g.scrollTop||f.scrollTop||_.scrollTop||0}()));if(c.removeChild(o),s)for(r=s.length;r--;)(h=s[r]).scaleX=h.scaleY=0,h.renderTransform(1,h);return e?u.inverse():u}function $(){return!1}function la(t){t.preventDefault&&(t.preventDefault(),t.preventManipulation&&t.preventManipulation())}function ma(t){return T.createElementNS?T.createElementNS("http://www.w3.org/1999/xhtml",t):T.createElement(t)}function na(t,e,n){var i,s=T.createElementNS("http://www.w3.org/2000/svg",t),a=/([a-z])([A-Z])/g;for(i in(n=n||{}).class=n.class||"path-editor",n)void 0!==s.style[i]?s.style[i]=n[i]:s.setAttributeNS(null,i.replace(a,"$1-$2").toLowerCase(),n[i]);return e.appendChild(s),s}function pa(t){return(t.transform&&t.transform.baseVal.consolidate()||a).matrix}function sa(t){return~~(1e3*t+(t<0?-.5:.5))/1e3}function va(t){if(!t.target._gsSelection&&!Q&&100<G()-Y){for(var e=st.length;-1<--e;)st[e].deselect();st.length=0}}function za(t,e,n,i){if(t.addEventListener){var s=X[e];i=i||{passive:!1},t.addEventListener(s||e,n,i),s&&e!==s&&"pointer"!==s.substr(0,7)&&t.addEventListener(e,n,i)}else t.attachEvent&&t.attachEvent("on"+e,n)}function Aa(t,e,n){if(t.removeEventListener){var i=X[e];t.removeEventListener(i||e,n),i&&e!==i&&"pointer"!==i.substr(0,7)&&t.removeEventListener(e,n)}else t.detachEvent&&t.detachEvent("on"+e,n)}function Ca(t){at=t.touches&&_dragCount<t.touches.length,Aa(t.target,"touchend",Ca)}function Da(t){at=t.touches&&_dragCount<t.touches.length,za(t.target,"touchend",Ca)}function Ea(e,n){return function(t){return e.call(n,t)}}function Fa(t,e,n){var i=e.vars[t];return i&&i.call(e.vars.callbackScope||e,n||e),e}function Ha(){I.style.display="block",I.select(),I.style.display="none"}function Ka(t){var e,n,i=this,s=getGlobalMatrix(i.target.parentNode,!0);this._matrix=this.target.transform.baseVal.getItem(0).matrix,this._ctm=s,X[t.type]?(e=-1!==t.type.indexOf("touch")?t.currentTarget||t.target:T,za(e,"touchend",i._onRelease),za(e,"touchmove",i._onMove),za(e,"touchcancel",i._onRelease),za(T,"touchstart",Da),za(c,"touchforcechange",la)):(e=null,za(T,"mousemove",i._onMove)),h||za(T,"mouseup",i._onRelease),la(t),Ha(),t.changedTouches?(t=i.touch=t.changedTouches[0],i.touchID=t.identifier):t.pointerId?i.touchID=t.pointerId:i.touch=i.touchID=null,i._startPointerY=i.pointerY=t.pageY,i._startPointerX=i.pointerX=t.pageX,i._startElementX=i._matrix.e,i._startElementY=i._matrix.f,1===this._ctm.a&&0===this._ctm.b&&0===this._ctm.c&&1===this._ctm.d?this._ctm=null:(n=i._startPointerX*this._ctm.a+i._startPointerY*this._ctm.c+this._ctm.e,i._startPointerY=i._startPointerX*this._ctm.b+i._startPointerY*this._ctm.d+this._ctm.f,i._startPointerX=n),i.isPressed=Q=!0,i.touchEventTarget=e,i.vars.onPress&&i.vars.onPress.call(i.vars.callbackScope||i,i.pointerEvent)}function La(t){var e,n,i=this,s=t;if(i._enabled&&!at&&i.isPressed&&t){if(e=(i.pointerEvent=t).changedTouches){if((t=e[0])!==i.touch&&t.identifier!==i.touchID){for(n=e.length;-1<--n&&(t=e[n]).identifier!==i.touchID;);if(n<0)return}}else if(t.pointerId&&i.touchID&&t.pointerId!==i.touchID)return;la(s),i.setPointerPosition(t.pageX,t.pageY),i.vars.onDrag&&i.vars.onDrag.call(i.vars.callbackScope||i,i.pointerEvent)}}function Ma(t,e){var n=this;if(n._enabled&&n.isPressed&&(!t||null==n.touchID||e||!(t.pointerId&&t.pointerId!==n.touchID||t.changedTouches&&!function _hasTouchID(t,e){for(var n=t.length;-1<--n;)if(t[n].identifier===e)return!0;return!1}(t.changedTouches,n.touchID)))){!function _interacted(){Y=G()}(),n.isPressed=Q=!1;var i,s,a=t,o=n.isDragging,r=n.touchEventTarget;if(r?(Aa(r,"touchend",n._onRelease),Aa(r,"touchmove",n._onMove),Aa(r,"touchcancel",n._onRelease),Aa(T,"touchstart",Da)):Aa(T,"mousemove",n._onMove),h||(Aa(T,"mouseup",n._onRelease),t&&t.target&&Aa(t.target,"mouseup",n._onRelease)),o?n.isDragging=!1:n.vars.onClick&&n.vars.onClick.call(n.vars.callbackScope||n,a),t){if((i=t.changedTouches)&&(t=i[0])!==n.touch&&t.identifier!==n.touchID){for(s=i.length;-1<--s&&(t=i[s]).identifier!==n.touchID;);if(s<0)return}n.pointerEvent=a,n.pointerX=t.pageX,n.pointerY=t.pageY}return a&&!o&&n.vars.onDragRelease?n.vars.onDragRelease.call(n,n.pointerEvent):(a&&la(a),n.vars.onRelease&&n.vars.onRelease.call(n.vars.callbackScope||n,n.pointerEvent)),o&&n.vars.onDragEnd&&n.vars.onDragEnd.call(n.vars.callbackScope||n,n.pointerEvent),!0}}function Na(t,e,n,i){var s,a=t[e],o=a.length-(a.closed?6:0),r=[];for(s=0;s<o;s+=6)r.push(new ht(n,t,e,s,i));return a.closed&&(r[0].isClosedStart=!0),r}function Oa(t,e,n){var i=t[n]-t[e],s=t[n+1]-t[e+1];return Math.sqrt(i*i+s*s)}var T,h,c,r,l,R,z,d,L,O,X,I,q,i,V=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,F="#4e7fff",G=(Math.PI,Date.now||function(){return(new Date).getTime()}),Y=0,Q=0,s={},tt=[],et={},nt=[],it=",",st=[],a={matrix:new k},at=0,ot=((i=DraggableSVG.prototype).setPointerPosition=function setPointerPosition(t,e){var n,i,s,a,o;this.pointerX=t,this.pointerY=e,this._ctm&&(o=t*this._ctm.a+e*this._ctm.c+this._ctm.e,e=t*this._ctm.b+e*this._ctm.d+this._ctm.f,t=o),(i=e-this._startPointerY)<1&&-1<i&&(i=0),(n=t-this._startPointerX)<1&&-1<n&&(n=0),s=(1e3*(this._startElementX+n)|0)/1e3,a=(1e3*(this._startElementY+i)|0)/1e3,this.snap&&!z&&(et.x=s,et.y=a,this.snap.call(this,et),s=et.x,a=et.y),this.x===s&&this.y===a||(this._matrix.f=this.y=a,this._matrix.e=this.x=s,!this.isDragging&&this.isPressed&&(this.isDragging=!0,Fa("onDragStart",this,this.pointerEvent)))},i.enabled=function enabled(t){return arguments.length?((this._enabled=t)?(h||za(this.target,"mousedown",this._onPress),za(this.target,"touchstart",this._onPress),za(this.target,"click",this._onClick,!0)):(e=this.isDragging,Aa(this.target,"mousedown",this._onPress),Aa(this.target,"touchstart",this._onPress),Aa(c,"touchforcechange",la),Aa(this.target,"click",this._onClick),this.touchEventTarget&&(Aa(this.touchEventTarget,"touchcancel",this._onRelease),Aa(this.touchEventTarget,"touchend",this._onRelease),Aa(this.touchEventTarget,"touchmove",this._onMove)),Aa(T,"mouseup",this._onRelease),Aa(T,"mousemove",this._onMove),this.isDragging=this.isPressed=!1,e&&Fa("onDragEnd",this,this.pointerEvent)),this):this._enabled;var e},i.endDrag=function endDrag(t){this._onRelease(t)},DraggableSVG);function DraggableSVG(t,e){this.target="string"==typeof t?T.querySelectorAll(t)[0]:t,this.vars=e||{},this._onPress=Ea(Ka,this),this._onMove=Ea(La,this),this._onRelease=Ea(Ma,this),this.target.setAttribute("transform",(this.target.getAttribute("transform")||"")+" translate(0,0)"),this._matrix=pa(this.target),this.x=this._matrix.e,this.y=this._matrix.f,this.snap=e.snap,isNaN(e.maxX)&&isNaN(e.minX)?this._bounds=0:(this._bounds=1,this.maxX=+e.maxX,this.minX=+e.minX),this.enabled(!0)}var rt,ht=((rt=Anchor.prototype).onPress=function onPress(){Fa("onPress",this)},rt.onClick=function onClick(){Fa("onClick",this)},rt.onDrag=function onDrag(){var t=this.segment;this.vars.onDrag.call(this.vars.callbackScope||this,this,this._draggable.x-t[this.i],this._draggable.y-t[this.i+1])},rt.onDragEnd=function onDragEnd(){Fa("onDragEnd",this)},rt.onRelease=function onRelease(){Fa("onRelease",this)},rt.update=function update(t,e,n){t&&(this.rawPath=t),arguments.length<=1?(e=this.j,n=this.i):(this.j=e,this.i=n);var i=this.smooth,s=this.rawPath[e],a=0===n&&s.closed?s.length-4:n-2;this.segment=s,this.smooth=0<n&&n<s.length-2&&Math.abs(Math.atan2(s[n+1]-s[1+a],s[n]-s[a])-Math.atan2(s[n+3]-s[n+1],s[n+2]-s[n]))<.09?2:0,this.smooth!==i&&this.element.setAttribute("d",this.smooth?this.editor._circleHandle:this.editor._squareHandle),this.element.setAttribute("transform","translate("+s[n]+","+s[n+1]+")")},Anchor);function Anchor(t,e,n,i,s){this.editor=t,this.element=na("path",t._selection,{fill:F,stroke:F,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this.update(e,n,i),this.element._gsSelection=!0,this.vars=s||{},this._draggable=new ot(this.element,{callbackScope:this,onDrag:this.onDrag,snap:this.vars.snap,onPress:this.onPress,onRelease:this.onRelease,onClick:this.onClick,onDragEnd:this.onDragEnd})}var lt,ct=((lt=PathEditor.prototype)._onRelease=function _onRelease(t){var e=this._editingAnchor;e&&(s.x=e.segment[e.i],s.y=e.segment[e.i+1]),Aa(c,"touchforcechange",la),Fa("onRelease",this,t)},lt.init=function init(){var t,e,n=this.path.getAttribute("d"),i=stringToRawPath(n),s=this.path.getAttribute("transform")||"translate(0,0)",a=!this._rawPath||i.totalPoints!==this._rawPath.totalPoints||i.length!==this._rawPath.length,o={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX};if(a&&this._anchors&&this._anchors.length){for(e=0;e<this._anchors.length;e++)this._anchors[e].element.parentNode.removeChild(this._anchors[e].element),this._anchors[e]._draggable.enabled(!1);this._selectedAnchors.length=0}if(this._rawPath=i,a){if(this._anchors=Na(i,0,this,o),1<(t=i.length))for(e=1;e<t;e++)this._anchors=this._anchors.concat(Na(i,e,this,o))}else for(e=this._anchors.length;-1<--e;)this._anchors[e].update(i);return this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),this._selectionPath.setAttribute("d",n),this._selectionHittest.setAttribute("d",n),this._g.setAttribute("transform",function _getConcatenatedTransforms(t){for(var e=pa(t),n=t.ownerSVGElement;(t=t.parentNode)&&t.ownerSVGElement===n;)e.multiply(pa(t));return"matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")"}(this.path.parentNode)||"translate(0,0)"),this._selection.setAttribute("transform",s),this._selectionHittest.setAttribute("transform",s),this._updateAnchors(),this},lt._saveState=function _saveState(){!function _addHistory(t){var e,n=[],i=t._selectedAnchors;for(e=0;e<i.length;e++)n[e]=i[e].i;tt.unshift({path:t,d:t.path.getAttribute("d"),transform:t.path.getAttribute("transform")||"",selectedIndexes:n}),30<tt.length&&(tt.length=30)}(this)},lt._onClickSelectionPath=function _onClickSelectionPath(t){if("hidden"===this._selection.style.visibility)this.select();else if(R||t&&t.altKey){var e,i,s,a,o,r,h={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX},l=this._selection.getScreenCTM().inverse();for(this._draggable&&this._draggable._onRelease(t),l&&(a=t.clientX*l.a+t.clientY*l.c+l.e,o=t.clientX*l.b+t.clientY*l.d+l.f),r=function getClosestData(t,e,n,i){var s,a,o,r,h={j:0,i:0,t:0},l=P;for(a=0;a<t.length;a++)for(r=t[a],s=0;s<r.length;s+=6)o=getClosestProgressOnBezier(1,e,n,0,1,i||20,r[s],r[s+1],r[s+2],r[s+3],r[s+4],r[s+5],r[s+6],r[s+7]),A<l&&(l=A,h.j=a,h.i=s,h.t=o);return h}(this._rawPath,a,o),function subdivideSegment(t,e,i){if(i<=0||1<=i)return 0;var s=t[e],a=t[e+1],o=t[e+2],r=t[e+3],h=t[e+4],l=t[e+5],c=s+(o-s)*i,d=o+(h-o)*i,u=a+(r-a)*i,g=r+(l-r)*i,p=c+(d-c)*i,f=u+(g-u)*i,_=h+(t[e+6]-h)*i,m=l+(t[e+7]-l)*i;return d+=(_-d)*i,g+=(m-g)*i,t.splice(e+2,4,n(c),n(u),n(p),n(f),n(p+(d-p)*i),n(f+(g-f)*i),n(d),n(g),n(_),n(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}(this._rawPath[r.j],r.i,r.t),e=r.i+6,i=0;i<this._anchors.length;i++)this._anchors[i].i>=e&&(this._anchors[i].i+=6);s=new ht(this,this._rawPath,r.j,e,h),this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),s._draggable._onPress(t),L=s,this._anchors.push(s),this._selectedAnchors.length=0,this._selectedAnchors.push(s),this._updateAnchors(),this.update(),this._saveState()}Ha(),za(c,"touchforcechange",la),Fa("onPress",this)},lt._onClickHandle1=function _onClickHandle1(){var t=this._editingAnchor,e=t.i,n=t.segment,i=t.isClosedStart?n.length-4:e-2;R&&Math.abs(n[e]-n[i])<5&&Math.abs(n[e+1]-n[1+i])<5&&this._onClickAnchor(t)},lt._onClickHandle2=function _onClickHandle2(){var t=this._editingAnchor,e=t.i,n=t.segment;R&&Math.abs(n[e]-n[e+2])<5&&Math.abs(n[e+1]-n[e+3])<5&&this._onClickAnchor(t)},lt._onDragEndAnchor=function _onDragEndAnchor(){L=null,this._saveState()},lt.isSelected=function isSelected(){return 0<this._selectedAnchors.length},lt.select=function select(t){if(this._selection.style.visibility="visible",this._editingAnchor=null,(this.path._gsSelection=!0)===t)for(var e=this._anchors.length;-1<--e;)this._selectedAnchors[e]=this._anchors[e];return-1===st.indexOf(this)&&st.push(this),this._updateAnchors(),this},lt.deselect=function deselect(){return this._selection.style.visibility="hidden",this._selectedAnchors.length=0,this._editingAnchor=null,this.path._gsSelection=!1,st.splice(st.indexOf(this),1),this._updateAnchors(),this},lt._onDragPath=function _onDragPath(){var t=this._selectionHittest.getAttribute("transform")||"translate(0,0)";this._selection.setAttribute("transform",t),this.path.setAttribute("transform",t)},lt._onPressAnchor=function _onPressAnchor(t){-1===this._selectedAnchors.indexOf(t)?(z||(this._selectedAnchors.length=0),this._selectedAnchors.push(t)):z&&(this._selectedAnchors.splice(this._selectedAnchors.indexOf(t),1),t._draggable.endDrag()),s.x=t.segment[t.i],s.y=t.segment[t.i+1],this._updateAnchors(),Fa("onPress",this)},lt._deleteSelectedAnchors=function _deleteSelectedAnchors(){for(var t,e,n,i=this._selectedAnchors,s=i.length;-1<--s;)for((t=i[s]).element.parentNode.removeChild(t.element),t._draggable.enabled(!1),(e=t.i)?e<t.segment.length-2?t.segment.splice(e-2,6):t.segment.splice(e-4,6):t.segment.splice(e,6),i.splice(s,1),this._anchors.splice(this._anchors.indexOf(t),1),n=0;n<this._anchors.length;n++)this._anchors[n].i>=e&&(this._anchors[n].i-=6);this._updateAnchors(),this.update(),this._saveState(),this.vars.onDeleteAnchor&&this.vars.onDeleteAnchor.call(this.vars.callbackScope||this)},lt._onClickAnchor=function _onClickAnchor(t){var e,n,i,s,a,o,r=t.i,h=t.segment,l=t.isClosedStart?h.length-4:r-2,c=1e3,d=!r||r>=h.length-2;R&&L!==t&&this._editingAnchor?(t.smooth=!t.smooth,d&&!t.isClosedStart&&(t.smooth=!1),t.element.setAttribute("d",t.smooth?this._circleHandle:this._squareHandle),!t.smooth||d&&!t.isClosedStart?t.smooth||d&&!t.isClosedStart||((r||t.isClosedStart)&&(h[l]=h[r],h[1+l]=h[r+1]),r<h.length-2&&(h[r+2]=h[r],h[r+3]=h[r+1]),this._updateAnchors(),this.update(),this._saveState()):(e=((e=Math.atan2(h[r+1]-h[1+l],h[r]-h[l]))+(n=Math.atan2(h[r+3]-h[r+1],h[r+2]-h[r])))/2,i=Oa(h,l,r),s=Oa(h,r,r+2),i<.2&&(i=Oa(h,r,l-4)/4,e=n||Math.atan2(h[r+7]-h[l-3],h[r+6]-h[l-4])),s<.2&&(s=Oa(h,r,r+6)/4,n=e||Math.atan2(h[r+7]-h[l-3],h[r+6]-h[l-4])),a=Math.sin(e),o=Math.cos(e),Math.abs(n-e)<Math.PI/2&&(a=-a,o=-o),h[l]=((h[r]+o*i)*c|0)/c,h[1+l]=((h[r+1]+a*i)*c|0)/c,h[r+2]=((h[r]-o*s)*c|0)/c,h[r+3]=((h[r+1]-a*s)*c|0)/c,this._updateAnchors(),this.update(),this._saveState())):z||(this._selectedAnchors.length=0,this._selectedAnchors.push(t)),L=null,this._updateAnchors()},lt._updateAnchors=function _updateAnchors(){var t,e,n,i=1===this._selectedAnchors.length?this._selectedAnchors[0]:null,s=i?i.segment:null;for(this._editingAnchor=i,t=0;t<this._anchors.length;t++)this._anchors[t].element.style.fill=-1!==this._selectedAnchors.indexOf(this._anchors[t])?F:"white";i&&(this._handle1.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle),this._handle2.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle)),t=i?i.i:0,i&&(t||i.isClosedStart)?(e=i.isClosedStart?s[s.length-4]:s[t-2],n=i.isClosedStart?s[s.length-3]:s[t-1],this._handle1.style.visibility=this._line1.style.visibility=R||e!==s[t]||n!==s[t+1]?"visible":"hidden",this._handle1.setAttribute("transform","translate("+e+it+n+")"),this._line1.setAttribute("points",e+it+n+it+s[t]+it+s[t+1])):this._handle1.style.visibility=this._line1.style.visibility="hidden",i&&t<s.length-2?(e=s[t+2],n=s[t+3],this._handle2.style.visibility=this._line2.style.visibility=R||e!==s[t]||n!==s[t+1]?"visible":"hidden",this._handle2.setAttribute("transform","translate("+e+it+n+")"),this._line2.setAttribute("points",s[t]+it+s[t+1]+it+e+it+n)):this._handle2.style.visibility=this._line2.style.visibility="hidden"},lt._onPressAlt=function _onPressAlt(){var t=this._editingAnchor;t&&((t.i||t.isClosedStart)&&(this._handle1.style.visibility=this._line1.style.visibility="visible"),t.i<t.segment.length-2&&(this._handle2.style.visibility=this._line2.style.visibility="visible"))},lt._onReleaseAlt=function _onReleaseAlt(){var t,e,n,i=this._editingAnchor;i&&(t=i.segment,e=i.i,n=i.isClosedStart?t.length-4:e-2,t[e]===t[n]&&t[e+1]===t[1+n]&&(this._handle1.style.visibility=this._line1.style.visibility="hidden"),t[e]===t[e+2]&&t[e+1]===t[e+3]&&(this._handle2.style.visibility=this._line2.style.visibility="hidden"))},lt._onPressHandle1=function _onPressHandle1(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Oa(this._editingAnchor.segment,this._editingAnchor.i,this._editingAnchor.i+2)),Fa("onPress",this)},lt._onPressHandle2=function _onPressHandle2(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Oa(this._editingAnchor.segment,this._editingAnchor.isClosedStart?this._editingAnchor.segment.length-4:this._editingAnchor.i-2,this._editingAnchor.i)),Fa("onPress",this)},lt._onReleaseHandle=function _onReleaseHandle(t){this._onRelease(t),this._saveState()},lt._onDragHandle1=function _onDragHandle1(){var t,e=this._editingAnchor,n=e.segment,i=e.i,s=e.isClosedStart?n.length-4:i-2,a=1e3,o=this._handle1._draggable.x,r=this._handle1._draggable.y;n[s]=o=(o*a|0)/a,n[1+s]=r=(r*a|0)/a,e.smooth&&(R?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(n[i+1]-r,n[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),n[i+2]=((n[i]+o)*a|0)/a,n[i+3]=((n[i+1]+r)*a|0)/a)),this.update()},lt._onDragHandle2=function _onDragHandle2(){var t,e=this._editingAnchor,n=e.segment,i=e.i,s=e.isClosedStart?n.length-4:i-2,a=1e3,o=this._handle2._draggable.x,r=this._handle2._draggable.y;n[i+2]=o=(o*a|0)/a,n[i+3]=r=(r*a|0)/a,e.smooth&&(R?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(n[i+1]-r,n[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),n[s]=((n[i]+o)*a|0)/a,n[1+s]=((n[i+1]+r)*a|0)/a)),this.update()},lt._onDragAnchor=function _onDragAnchor(t,e,n){var i,s,a,o,r,h=this._selectedAnchors,l=h.length,c=1e3;for(s=0;s<l;s++)i=(o=h[s]).i,a=o.segment,i?(a[i-2]=((a[i-2]+e)*c|0)/c,a[i-1]=((a[i-1]+n)*c|0)/c):o.isClosedStart&&(a[r=a.length-2]=sa(a[r]+e),a[1+r]=sa(a[1+r]+n),a[r-2]=sa(a[r-2]+e),a[r-1]=sa(a[r-1]+n)),a[i]=((a[i]+e)*c|0)/c,a[i+1]=((a[i+1]+n)*c|0)/c,i<a.length-2&&(a[i+2]=((a[i+2]+e)*c|0)/c,a[i+3]=((a[i+3]+n)*c|0)/c),o!==t&&o.element.setAttribute("transform","translate("+a[i]+it+a[i+1]+")");this.update()},lt.enabled=function enabled(t){if(!arguments.length)return this._enabled;for(var e=this._anchors.length;-1<--e;)this._anchors[e]._draggable.enabled(t);return this._enabled=t,this._handle1._draggable.enabled(t),this._handle2._draggable.enabled(t),this._draggable&&this._draggable.enabled(t),t?this._selection.parentNode||(this.path.ownerSVGElement.appendChild(this._selectionHittest),this.path.ownerSVGElement.appendChild(this._selection),this.init(),this._saveState()):(this.deselect(),this.path.ownerSVGElement.removeChild(this._selectionHittest),this.path.ownerSVGElement.removeChild(this._selection)),this._updateAnchors(),this.update()},lt.update=function update(t){var e,n,i,s,a,o="",r=this._editingAnchor;if(t&&this.init(),r&&(e=r.i,n=r.segment,(e||r.isClosedStart)&&(i=n[a=r.isClosedStart?n.length-4:e-2],s=n[1+a],this._handle1.setAttribute("transform","translate("+i+it+s+")"),this._line1.setAttribute("points",i+it+s+it+n[e]+it+n[e+1])),e<n.length-2&&(i=n[e+2],s=n[e+3],this._handle2.setAttribute("transform","translate("+i+it+s+")"),this._line2.setAttribute("points",n[e]+it+n[e+1]+it+i+it+s))),t)o=this.path.getAttribute("d");else{for(e=0;e<this._rawPath.length;e++)7<(n=this._rawPath[e]).length&&(o+="M"+n[0]+it+n[1]+"C"+n.slice(2).join(it));this.path.setAttribute("d",o),this._selectionPath.setAttribute("d",o),this._selectionHittest.setAttribute("d",o)}return this.vars.onUpdate&&this._enabled&&Fa("onUpdate",this,o),this},lt.getRawPath=function getRawPath(t,e,n){if(t){var i=pa(this.path);return transformRawPath(copyRawPath(this._rawPath),1,0,0,1,i.e+(e||0),i.f+(n||0))}return this._rawPath},lt.getString=function getString(t,e,i){if(t){var s=pa(this.path);return function rawPathToString(t){!function _isNumber(t){return"number"==typeof t}(t[0])||(t=[t]);var e,i,s,a,o="",r=t.length;for(i=0;i<r;i++){for(a=t[i],o+="M"+n(a[0])+","+n(a[1])+" C",e=a.length,s=2;s<e;s++)o+=n(a[s++])+","+n(a[s++])+" "+n(a[s++])+","+n(a[s++])+" "+n(a[s++])+","+n(a[s])+" ";a.closed&&(o+="z")}return o}(transformRawPath(copyRawPath(this._rawPath),1,0,0,1,s.e+(e||0),s.f+(i||0)))}return this.path.getAttribute("d")},lt.getNormalizedSVG=function getNormalizedSVG(t,e,n,i){var s,a,o,r,h,l,c=this._rawPath[0],d=-1*c[0],u=0===e?0:-(e||c[1]),g=c.length,p=1/(c[g-2]+d),f=-t||c[g-1]+u;for(f=f?1/f:-p,p*=1e3,f*=1e3,a=nt.length=0;a<g;a+=2)nt[a]=((c[a]+d)*p|0)/1e3,nt[a+1]=((c[a+1]+u)*f|0)/1e3;if(i){for(s=[],g=nt.length,a=2;a<g;a+=6)o=nt[a-2],r=nt[a-1],h=nt[a+4],l=nt[a+5],s.push(o,r,h,l),bezierToPoints(o,r,nt[a],nt[a+1],nt[a+2],nt[a+3],h,l,.001,s,s.length-2);for(o=s[0],g=s.length,a=2;a<g;a+=2){if((h=s[a])<o||1<h||h<0){i();break}o=h}}return n&&8===g&&0===nt[0]&&0===nt[1]&&1===nt[g-2]&&1===nt[g-1]?nt.slice(2,6).join(","):(nt[2]="C"+nt[2],"M"+nt.join(","))},PathEditor);function PathEditor(t,e){e=e||{},q||function _initCore(){T=document,c=window,r=T.body,O=ma("div"),(I=ma("textarea")).style.display="none",r&&r.appendChild(I),X=function(t){for(var e=t.split(","),n=(void 0!==O.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==O.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),i={},s=4;-1<--s;)i[e[s]]=n[s],i[n[s]]=e[s];return i}("touchstart,touchmove,touchend,touchcancel"),SVGElement.prototype.getTransformToElement=SVGElement.prototype.getTransformToElement||function(t){return t.getScreenCTM().inverse().multiply(this.getScreenCTM())},T.addEventListener("keydown",function(t){var e,n,i,s,a=t.keyCode||t.which,o=t.key||a;if("Shift"===o||16===a)z=!0;else if("Control"===o||17===a)l=!0;else if("Meta"===o||91===a)d=!0;else if("Alt"===o||18===a)for(R=!0,e=st.length;-1<--e;)st[e]._onPressAlt();else if(("z"===o||90===a)&&(l||d)&&1<tt.length){if(tt.shift(),n=tt[0]){for((s=n.path).path.setAttribute("d",n.d),s.path.setAttribute("transform",n.transform),s.init(),i=s._anchors,e=0;e<i.length;e++)-1!==n.selectedIndexes.indexOf(i[e].i)&&s._selectedAnchors.push(i[e]);s._updateAnchors(),s.update(),s.vars.onUndo&&s.vars.onUndo.call(s)}}else if("Delete"===o||"Backspace"===o||8===a||46===a||63272===a||"d"===a&&(l||d))for(e=st.length;-1<--e;)st[e]._deleteSelectedAnchors();else if(("a"===o||65===a)&&(d||l))for(e=st.length;-1<--e;)st[e].select(!0)},!0),T.addEventListener("keyup",function(t){var e=t.key||t.keyCode||t.which;if("Shift"===e||16===e)z=!1;else if("Control"===e||17===e)l=!1;else if("Meta"===e||91===e)d=!1;else if("Alt"===e||18===e){R=!1;for(var n=st.length;-1<--n;)st[n]._onReleaseAlt()}},!0),h=!!c.PointerEvent,za(T,"mouseup",va),za(T,"touchend",va),za(T,"touchcancel",$),za(c,"touchmove",$),r&&r.addEventListener("touchstart",$),q=1}(),this.vars=e,this.path="string"==typeof t?T.querySelectorAll(t)[0]:t,this._g=na("g",this.path.ownerSVGElement,{class:"path-editor-g path-editor"}),this._selectionHittest=na("path",this._g,{stroke:"transparent",strokeWidth:16,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selection=e._selection||na("g",this._g,{class:"path-editor-selection path-editor"}),this._selectionPath=na("path",this._selection,{stroke:F,strokeWidth:2,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selectedAnchors=[],this._line1=na("polyline",this._selection,{stroke:F,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line2=na("polyline",this._selection,{stroke:F,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line1.style.pointerEvents=this._line2.style.pointerEvents=this._selectionPath.style.pointerEvents="none",this._enabled=!0;var n=this.path.parentNode.getScreenCTM().inverse(),i=(n.a+n.d)/2*(e.handleSize||5);this._squareHandle=function _getSquarePathData(t){return["M-"+(t=sa(t)),-t,t,-t,t,t,-t,t+"z"].join(it)}(i),this._circleHandle=function _getCirclePathData(t){var e=sa(.552284749831*t);return"M"+(t=sa(t))+",0C"+[t,e,e,t,0,t,-e,t,-t,e,-t,0,-t,-e,-e,-t,0,-t,e,-t,t,-e,t,0].join(it)+"z"}(1.15*i),this._handle1=na("path",this._selection,{d:this._squareHandle,fill:F,stroke:"transparent",strokeWidth:6}),this._handle2=na("path",this._selection,{d:this._squareHandle,fill:F,stroke:"transparent",strokeWidth:6}),this._handle1._draggable=new ot(this._handle1,{onDrag:this._onDragHandle1,callbackScope:this,onPress:this._onPressHandle1,onRelease:this._onReleaseHandle,onClick:this._onClickHandle1,snap:e.handleSnap}),this._handle2._draggable=new ot(this._handle2,{onDrag:this._onDragHandle2,callbackScope:this,onPress:this._onPressHandle2,onRelease:this._onReleaseHandle,onClick:this._onClickHandle2,snap:e.handleSnap}),this._handle1.style.visibility=this._handle2.style.visibility="hidden";for(var s=[this._handle1,this._handle2,this._line1,this._line2,this._selection,this._selectionPath,this._selectionHittest],a=s.length;-1<--a;)s[a]._gsSelection=!0;!1!==e.draggable&&(this._draggable=new ot(this._selectionHittest,{callbackScope:this,onPress:this.select,onRelease:this._onRelease,onDrag:this._onDragPath,onDragEnd:this._saveState,maxX:this.vars.maxX,minX:this.vars.minX})),this.init(),this._selection.style.visibility=!1===e.selected?"hidden":"visible",!1!==e.selected&&(this.path._gsSelection=!0,st.push(this)),this._saveState(),h||(za(this._selectionHittest,"mousedown",Ea(this._onClickSelectionPath,this)),za(this._selectionHittest,"mouseup",Ea(this._onRelease,this))),za(this._selectionHittest,"touchstart",Ea(this._onClickSelectionPath,this)),za(this._selectionHittest,"touchend",Ea(this._onRelease,this))}ct.simplifyPoints=simplifyPoints,ct.pointsToSegment=pointsToSegment,ct.simplifySVG=function(t,e){var n,i,s,a,o,r,h,l,c,d,u;if(d=(e=e||{}).tolerance||1,c=e.precision||1/d,void 0===e.cornerThreshold||e.cornerThreshold,"string"!=typeof t&&(t=(n=t).getAttribute("d")),"#"!==t.charAt(0)&&"."!==t.charAt(0)||(n=T.querySelector(t))&&(t=n.getAttribute("d")),i=!1!==e.curved||/[achqstvz]/gi.test(t)?stringToRawPath(t)[0]:t.match(V),!1!==e.curved){for(l=i,i=[],u=l.length,s=2;s<u;s+=6)a=+l[s-2],r=+l[s-1],o=+l[s+4],h=+l[s+5],i.push(sa(a),sa(r),sa(o),sa(h)),bezierToPoints(a,r,+l[s],+l[s+1],+l[s+2],+l[s+3],o,h,1/(2e5*c),i,i.length-2);(i=pointsToSegment(simplifyPoints(i,d),e.curviness))[2]="C"+i[2]}else i=simplifyPoints(i,d);return t="M"+i.join(","),n&&n.setAttribute("d",t),t},ct.create=function(t,e){return new ct(t,e)},ct.editingAxis=s,ct.getSnapFunction=function(t){var r=t.radius||2,e=1e20,h=t.x||0===t.x?t.x:t.width?0:-e,l=t.y||0===t.y?t.y:t.height?0:-e,c=h+(t.width||1e40),d=l+(t.height||1e40),u=!1!==t.containX,g=!1!==t.containY,p=t.axis,f=t.gridSize;return r*=r,function(t){var e,n,i,s,a=t.x,o=t.y;u&&a<h||(i=a-h)*i<r?a=h:(u&&c<a||(i=c-a)*i<r)&&(a=c),g&&o<l||(s=o-l)*s<r?o=l:(g&&d<o||(s=d-o)*s<r)&&(o=d),p&&(i=a-p.x,s=o-p.y,i*i<r&&(a=p.x),s*s<r&&(o=p.y)),f&&(i=(e=h+Math.round((a-h)/f)*f)-a)*i+(s=(n=l+Math.round((o-l)/f)*f)-o)*s<r&&(a=e,o=n),t.x=a,t.y=o}},ct.version="3.10.2";function ab(){return String.fromCharCode.apply(null,arguments)}function eb(t){return"string"==typeof t}function fb(t,e){var n=gt.createElementNS?gt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):gt.createElement(t);return n.style?n:gt.createElement(t)}function lb(t,e,n){return eb(t)&&Pt.test(t)?gt.querySelector(t):Array.isArray(t)?vt(mt([{x:dt.getProperty(e,"x"),y:dt.getProperty(e,"y")}].concat(t),n)):eb(t)||t&&"path"===(t.tagName+"").toLowerCase()?t:0}function qb(t,e){var n="Please gsap.registerPlugin(MotionPathPlugin)";ut=window,dt=dt||t||ut.gsap||console.warn(n),gt=document,ft=gt.body,pt=gt.documentElement,(_t=dt&&dt.plugins.motionPath)?(function _initCopyToClipboard(){(bt=fb("textarea")).style.display="none",ft.appendChild(bt)}(),mt=_t.arrayToRawPath,vt=_t.rawPathToString):!0===e&&console.warn(n)}var dt,ut,gt,pt,ft,_t,mt,vt,bt,yt="MotionPathHelper",At=ab(103,114,101,101,110,115,111,99,107,46,99,111,109),Pt=(function(t){var e="undefined"!=typeof window,n=0===(e?window.location.href:"").indexOf(ab(102,105,108,101,58,47,47))||-1!==t.indexOf(ab(108,111,99,97,108,104,111,115,116))||-1!==t.indexOf(ab(49,50,55,46,48,32,48,46,49)),i=[At,ab(99,111,100,101,112,101,110,46,105,111),ab(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),ab(99,111,100,101,112,101,110,46,100,101,118),ab(99,111,100,101,112,101,110,46,97,112,112),ab(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),ab(112,101,110,115,46,99,108,111,117,100),ab(99,115,115,45,116,114,105,99,107,115,46,99,111,109),ab(99,100,112,110,46,105,111),ab(112,101,110,115,46,105,111),ab(103,97,110,110,111,110,46,116,118),ab(99,111,100,101,99,97,110,121,111,110,46,110,101,116),ab(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),ab(99,101,114,101,98,114,97,120,46,99,111,46,117,107),ab(116,121,109,112,97,110,117,115,46,110,101,116),ab(116,119,101,101,110,109,97,120,46,99,111,109),ab(116,119,101,101,110,108,105,116,101,46,99,111,109),ab(112,108,110,107,114,46,99,111),ab(104,111,116,106,97,114,46,99,111,109),ab(119,101,98,112,97,99,107,98,105,110,46,99,111,109),ab(97,114,99,104,105,118,101,46,111,114,103),ab(99,111,100,101,115,97,110,100,98,111,120,46,105,111),ab(99,115,98,46,97,112,112),ab(115,116,97,99,107,98,108,105,116,122,46,99,111,109),ab(115,116,97,99,107,98,108,105,116,122,46,105,111),ab(99,111,100,105,101,114,46,105,111),ab(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),ab(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),ab(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),ab(106,115,102,105,100,100,108,101,46,110,101,116)],s=i.length;for(setTimeout(function checkWarn(){e&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),e&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(ab(37,99,87,97,114,110,105,110,103),ab(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(ab(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+yt+ab(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(ab(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),ab(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--s;)if(-1!==t.indexOf(i[s]))return;n||setTimeout(function(){e&&(window.location.href=ab(104,116,116,112,115,58,47,47)+At+ab(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+yt+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),/(^[#\.][a-z]|[a-y][a-z])/i),wt={matrix:{a:1,b:0,c:0,d:1,e:0,f:0}},St=(MotionPathHelper.prototype.getString=function getString(){return this.editor.getString(!0,-this.offset.x,-this.offset.y)},MotionPathHelper);function MotionPathHelper(t,e){void 0===e&&(e={}),_t||qb(e.gsap,1);var n,i,s,a,o,r,h,l,c,d,u,g,p,f=fb("div"),_=this,m={x:0,y:0};t instanceof dt.core.Tween?n=(l=t).targets()[0]:(n=dt.utils.toArray(t)[0],l=function _findMotionPathTween(t){for(var e=dt.getTweensOf(t),n=0;n<e.length;n++){if(e[n].vars.motionPath)return e[n];e[n].timeline&&e.push.apply(e,e[n].timeline.getChildren())}}(n)),i=lb(e.path,n,e),this.offset=m,r=function _getPositionOnPage(t){var e=t.getBoundingClientRect(),n=pt.clientTop-(ut.pageYOffset||pt.scrollTop||ft.scrollTop||0),i=pt.clientLeft-(ut.pageXOffset||pt.scrollLeft||ft.scrollLeft||0);return{left:e.left+i,top:e.top+n,right:e.right+i,bottom:e.bottom+n}}(n),a=parseFloat(dt.getProperty(n,"x","px")),o=parseFloat(dt.getProperty(n,"y","px")),s=n.getCTM&&"svg"!==n.tagName.toLowerCase(),l&&!i&&(i=lb(l.vars.motionPath.path||l.vars.motionPath,n,l.vars.motionPath)),f.setAttribute("class","copy-motion-path"),f.style.cssText="border-radius:8px; background-color:rgba(85, 85, 85, 0.7); color:#fff; cursor:pointer; padding:6px 12px; font-family:Signika Negative, Arial, sans-serif; position:fixed; left:50%; transform:translate(-50%, 0); font-size:19px; bottom:10px",f.innerText="COPY MOTION PATH",f._gsHelper=_,(dt.utils.toArray(e.container)[0]||ft).appendChild(f),function _addCopyToClipboard(n,i,s){n.addEventListener("click",function(t){if(t.target._gsHelper){var e=i(t.target);if((bt.value=e)&&bt.select){console.log(e),bt.style.display="block",bt.select();try{gt.execCommand("copy"),bt.blur(),s&&s(n)}catch(t){console.warn("Copy didn't work; this browser doesn't permit that.")}bt.style.display="none"}}})}(f,function(){return _.getString()},function(){return dt.fromTo(f,{backgroundColor:"white"},{duration:.5,backgroundColor:"rgba(85, 85, 85, 0.6)"})}),(h=i&&i.ownerSVGElement)||(c=s&&n.ownerSVGElement&&n.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg",s?(h=n.ownerSVGElement,d=n.getBBox(),a=(u=function _getConsolidatedMatrix(t){return(t.transform.baseVal.consolidate()||wt).matrix}(n)).e,o=u.f,m.x=d.x,m.y=d.y):(h=fb("svg",c),ft.appendChild(h),h.setAttribute("viewBox","0 0 100 100"),h.setAttribute("class","motion-path-helper"),h.style.cssText="overflow:visible; background-color: transparent; position:absolute; z-index:5000; width:100px; height:100px; top:"+(r.top-o)+"px; left:"+(r.left-a)+"px;"),d=eb(i)&&!Pt.test(i)?i:function _getInitialPath(t,e){var n,i=[0,31,8,58,24,75,40,90,69,100,100,100];for(n=0;n<i.length;n+=2)i[n]+=t,i[n+1]+=e;return"M"+t+","+e+"C"+i.join(",")}(a,o),(i=fb("path",c)).setAttribute("d",d),i.setAttribute("vector-effect","non-scaling-stroke"),i.style.cssText="fill:transparent; stroke-width:"+(e.pathWidth||3)+"; stroke:"+(e.pathColor||"#555")+"; opacity:"+(e.pathOpacity||.6),h.appendChild(i),(m.x||m.y)&&dt.set(i,{x:m.x,y:m.y})),"selected"in e||(e.selected=!0),"anchorSnap"in e||(e.anchorSnap=function(t){t.x*t.x+t.y*t.y<16&&(t.x=t.y=0)}),p=l&&"nested"===l.parent.data?l.parent.parent:l,e.onPress=function(){p.pause(0)},g=function refreshPath(){l.invalidate(),p.restart()},e.onRelease=e.onDeleteAnchor=g,this.editor=ct.create(i,e),e.center&&dt.set(n,{transformOrigin:"50% 50%",xPercent:-50,yPercent:-50}),l?(l.vars.motionPath.path?l.vars.motionPath.path=i:l.vars.motionPath={path:i},p.parent!==dt.globalTimeline&&dt.globalTimeline.add(p,function _getGlobalTime(t){for(var e=t.totalTime();t;)e=t.startTime()+e/(t.timeScale()||1),t=t.parent;return e}(p)-p.delay()),p.repeat(-1).repeatDelay(1)):l=p=dt.to(n,{motionPath:{path:i,start:e.start||0,end:"end"in e?e.end:1,autoRotate:"autoRotate"in e&&e.autoRotate,align:i,alignOrigin:e.alignOrigin},duration:e.duration||5,ease:e.ease||"power1.inOut",repeat:-1,repeatDelay:1,paused:!e.path}),this.animation=l}St.register=qb,St.create=function(t,e){return new St(t,e)},St.editPath=function(t,e){return ct.create(t,e)},St.version="3.10.2",t.MotionPathHelper=St,t.default=St;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function n(t){return Math.round(1e5*t)/1e5||0}function o(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e}var A,w=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,S=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,j=Math.PI/180,W=Math.sin,U=Math.cos,Z=Math.abs,K=Math.sqrt,P=1e8;function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=o(t[n],t[n].slice(0));return o(t,e)}function transformRawPath(t,e,n,i,s,a,o){for(var r,h,l,c,d,u=t.length;-1<--u;)for(h=(r=t[u]).length,l=0;l<h;l+=2)c=r[l],d=r[l+1],r[l]=c*e+d*i+a,r[l+1]=c*n+d*s+o;return t._dirty=1,t}function arcToSegment(t,e,n,i,s,a,o,r,h){if(t!==r||e!==h){n=Z(n),i=Z(i);var l=s%360*j,c=U(l),d=W(l),u=Math.PI,g=2*u,p=(t-r)/2,f=(e-h)/2,_=c*p+d*f,m=-d*p+c*f,v=_*_,b=m*m,y=v/(n*n)+b/(i*i);1<y&&(n=K(y)*n,i=K(y)*i);var A=n*n,P=i*i,w=(A*P-A*b-P*v)/(A*b+P*v);w<0&&(w=0);var S=(a===o?-1:1)*K(w),C=n*m/i*S,x=-i*_/n*S,E=c*C-d*x+(t+r)/2,M=d*C+c*x+(e+h)/2,D=(_-C)/n,k=(m-x)/i,T=(-_-C)/n,H=(-m-x)/i,R=D*D+k*k,N=(k<0?-1:1)*Math.acos(D/K(R)),z=(D*H-k*T<0?-1:1)*Math.acos((D*T+k*H)/K(R*(T*T+H*H)));isNaN(z)&&(z=u),!o&&0<z?z-=g:o&&z<0&&(z+=g),N%=g,z%=g;var L,O=Math.ceil(Z(z)/(g/4)),X=[],I=z/O,q=4/3*W(I/2)/(1+U(I/2)),V=c*n,F=d*n,G=d*-i,Y=c*i;for(L=0;L<O;L++)_=U(s=N+L*I),m=W(s),D=U(s+=I),k=W(s),X.push(_-q*m,m+q*_,D+q*k,k-q*D,D,k);for(L=0;L<X.length;L+=2)_=X[L],m=X[L+1],X[L]=_*V+m*G+E,X[L+1]=_*F+m*Y+M;return X[L-2]=r,X[L-1]=h,X}}function stringToRawPath(t){function ud(t,e,n,i){c=(n-t)/3,d=(i-e)/3,r.push(t+c,e+d,n-c,i-d,n,i)}var e,n,i,s,a,o,r,h,l,c,d,u,g,p,f,_=(t+"").replace(S,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(w)||[],m=[],v=0,b=0,y=_.length,A=0,P="ERROR: malformed path: "+t;if(!t||!isNaN(_[0])||isNaN(_[1]))return console.log(P),m;for(e=0;e<y;e++)if(g=a,isNaN(_[e])?o=(a=_[e].toUpperCase())!==_[e]:e--,i=+_[e+1],s=+_[e+2],o&&(i+=v,s+=b),e||(h=i,l=s),"M"===a)r&&(r.length<8?--m.length:A+=r.length),v=h=i,b=l=s,r=[i,s],m.push(r),e+=2,a="L";else if("C"===a)o||(v=b=0),(r=r||[0,0]).push(i,s,v+1*_[e+3],b+1*_[e+4],v+=1*_[e+5],b+=1*_[e+6]),e+=6;else if("S"===a)c=v,d=b,"C"!==g&&"S"!==g||(c+=v-r[r.length-4],d+=b-r[r.length-3]),o||(v=b=0),r.push(c,d,i,s,v+=1*_[e+3],b+=1*_[e+4]),e+=4;else if("Q"===a)c=v+2/3*(i-v),d=b+2/3*(s-b),o||(v=b=0),v+=1*_[e+3],b+=1*_[e+4],r.push(c,d,v+2/3*(i-v),b+2/3*(s-b),v,b),e+=4;else if("T"===a)c=v-r[r.length-4],d=b-r[r.length-3],r.push(v+c,b+d,i+2/3*(v+1.5*c-i),s+2/3*(b+1.5*d-s),v=i,b=s),e+=2;else if("H"===a)ud(v,b,v=i,b),e+=1;else if("V"===a)ud(v,b,v,b=i+(o?b-v:0)),e+=1;else if("L"===a||"Z"===a)"Z"===a&&(i=h,s=l,r.closed=!0),("L"===a||.5<Z(v-i)||.5<Z(b-s))&&(ud(v,b,i,s),"L"===a&&(e+=2)),v=i,b=s;else if("A"===a){if(p=_[e+4],f=_[e+5],c=_[e+6],d=_[e+7],n=7,1<p.length&&(p.length<3?(d=c,c=f,n--):(d=f,c=p.substr(2),n-=2),f=p.charAt(1),p=p.charAt(0)),u=arcToSegment(v,b,+_[e+1],+_[e+2],+_[e+3],+p,+f,(o?v:0)+1*c,(o?b:0)+1*d),e+=n,u)for(n=0;n<u.length;n++)r.push(u[n]);v=r[r.length-2],b=r[r.length-1]}else console.log(P);return(e=r.length)<6?(m.pop(),e=0):r[0]===r[e-2]&&r[1]===r[e-1]&&(r.closed=!0),m.totalPoints=A+e,m}function bezierToPoints(t,e,n,i,s,a,o,r,h,l,c){var d,u=(t+n)/2,g=(e+i)/2,p=(n+s)/2,f=(i+a)/2,_=(s+o)/2,m=(a+r)/2,v=(u+p)/2,b=(g+f)/2,y=(p+_)/2,A=(f+m)/2,P=(v+y)/2,w=(b+A)/2,S=o-t,C=r-e,x=Z((n-o)*C-(i-r)*S),E=Z((s-o)*C-(a-r)*S);return l||(l=[t,e,o,r],c=2),l.splice(c||l.length-2,0,P,w),h*(S*S+C*C)<(x+E)*(x+E)&&(d=l.length,bezierToPoints(t,e,u,g,v,b,P,w,h,l,c),bezierToPoints(P,w,y,A,_,m,o,r,h,l,c+2+(l.length-d))),l}function pointsToSegment(t,e){Z(t[0]-t[2])<1e-4&&Z(t[1]-t[3])<1e-4&&(t=t.slice(2));var i,s,a,o,r,h,l,c,d,u,g,p,f,_,m=t.length-2,v=+t[0],b=+t[1],y=+t[2],A=+t[3],P=[v,b,v,b],w=y-v,S=A-b,C=Math.abs(t[m]-v)<.001&&Math.abs(t[m+1]-b)<.001;for(C&&(t.push(y,A),y=v,A=b,v=t[m-2],b=t[m-1],t.unshift(v,b),m+=4),e=e||0===e?+e:1,a=2;a<m;a+=2)i=v,s=b,v=y,b=A,y=+t[a+2],A=+t[a+3],v===y&&b===A||(o=w,r=S,w=y-v,S=A-b,c=((h=K(o*o+r*r))+(l=K(w*w+S*S)))*e*.25/K(Math.pow(w/l+o/h,2)+Math.pow(S/l+r/h,2)),g=v-((d=v-(v-i)*(h?c/h:0))+(((u=v+(y-v)*(l?c/l:0))-d)*(3*h/(h+l)+.5)/4||0)),_=b-((p=b-(b-s)*(h?c/h:0))+(((f=b+(A-b)*(l?c/l:0))-p)*(3*h/(h+l)+.5)/4||0)),v===i&&b===s||P.push(n(d+g),n(p+_),n(v),n(b),n(u+g),n(f+_)));return v!==y||b!==A||P.length<4?P.push(n(y),n(A),n(y),n(A)):P.length-=2,2===P.length?P.push(v,b,v,b,v,b):C&&(P.splice(0,6),P.length=P.length-6),P}function simplifyPoints(t,e){var n,i,s,a,o,r,h,l=parseFloat(t[0]),c=parseFloat(t[1]),d=[l,c],u=t.length-2;for(e=Math.pow(e||1,2),n=2;n<u;n+=2)e<(a=l-(i=parseFloat(t[n])))*a+(o=c-(s=parseFloat(t[n+1])))*o&&(d.push(i,s),l=i,c=s);return d.push(parseFloat(t[u]),parseFloat(t[1+u])),function simplifyStep(t,e,n,i,s){var a,o,r,h,l,c,d,u,g,p,f,_,m=i,v=t[e],b=t[e+1],y=t[n],A=t[n+1];for(o=e+2;o<n;o+=2)h=t[o],l=t[o+1],p=void 0,_=(g=A)-(d=b),((f=(u=y)-(c=v))||_)&&(1<(p=((h-c)*f+(l-d)*_)/(f*f+_*_))?(c=u,d=g):0<p&&(c+=f*p,d+=_*p)),m<(r=Math.pow(h-c,2)+Math.pow(l-d,2))&&(a=o,m=r);i<m&&(2<a-e&&simplifyStep(t,e,a,i,s),s.push(t[a],t[a+1]),2<n-a&&simplifyStep(t,a,n,i,s))}(d,0,h=d.length-2,e,r=[d[0],d[1]]),r.push(d[h],d[1+h]),r}function getClosestProgressOnBezier(t,e,n,i,s,a,o,r,h,l,c,d,u,g){var p,f,_,m,v=(s-i)/a,b=0,y=i;for(A=P;y<=s;)(p=(f=(m=1-y)*m*m*o+3*m*m*y*h+3*m*y*y*c+y*y*y*u-e)*f+(_=m*m*m*r+3*m*m*y*l+3*m*y*y*d+y*y*y*g-n)*_)<A&&(A=p,b=y),y+=v;return 1<t?getClosestProgressOnBezier(t-1,e,n,Math.max(b-v,0),Math.min(b+v,1),a,o,r,h,l,c,d,u,g):b}function B(t){var e=t.ownerDocument||t;!(C in t.style)&&"msTransform"in t.style&&(x=(C="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(p=window,v=new k,e){f=(g=e).documentElement,_=e.body,(b=g.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=e.createElement("div"),i=e.createElement("div");_.appendChild(n),n.appendChild(i),n.style.position="static",n.style[C]="translate3d(0,0,1px)",y=i.offsetParent!==n,_.removeChild(n)}return e}function H(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function J(t,e){if(t.parentNode&&(g||B(t))){var n=H(t),i=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=n?e?"rect":"g":"div",a=2!==e?0:100,o=3===e?100:0,r="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",h=g.createElementNS?g.createElementNS(i.replace(/^https/,"http"),s):g.createElement(s);return e&&(n?(m=m||J(t),h.setAttribute("width",.01),h.setAttribute("height",.01),h.setAttribute("transform","translate("+a+","+o+")"),m.appendChild(h)):(u||((u=J(t)).style.cssText=r),h.style.cssText=r+"width:0.1px;height:0.1px;top:"+o+"px;left:"+a+"px",u.appendChild(h))),h}throw"Need document and parent."}function M(t,e){var n,i,s,a,o,r,h=H(t),l=t===h,c=h?E:D,d=t.parentNode;if(t===p)return t;if(c.length||c.push(J(t,1),J(t,2),J(t,3)),n=h?m:u,h)l?(a=-(s=function _getCTM(t){var e,n=t.getCTM();return n||(e=t.style[C],t.style[C]="none",t.appendChild(b),n=b.getCTM(),t.removeChild(b),e?t.style[C]=e:t.style.removeProperty(C.replace(/([A-Z])/g,"-$1").toLowerCase())),n||v.clone()}(t)).e/s.a,o=-s.f/s.d,i=v):t.getBBox?(s=t.getBBox(),a=(i=(i=t.transform?t.transform.baseVal:{}).numberOfItems?1<i.numberOfItems?function _consolidate(t){for(var e=new k,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(i):i.getItem(0).matrix:v).a*s.x+i.c*s.y,o=i.b*s.x+i.d*s.y):(i=new k,a=o=0),e&&"g"===t.tagName.toLowerCase()&&(a=o=0),(l?h:d).appendChild(n),n.setAttribute("transform","matrix("+i.a+","+i.b+","+i.c+","+i.d+","+(i.e+a)+","+(i.f+o)+")");else{if(a=o=0,y)for(i=t.offsetParent,s=t;(s=s&&s.parentNode)&&s!==i&&s.parentNode;)4<(p.getComputedStyle(s)[C]+"").length&&(a=s.offsetLeft,o=s.offsetTop,s=0);if("absolute"!==(r=p.getComputedStyle(t)).position&&"fixed"!==r.position)for(i=t.offsetParent;d&&d!==i;)a+=d.scrollLeft||0,o+=d.scrollTop||0,d=d.parentNode;(s=n.style).top=t.offsetTop-o+"px",s.left=t.offsetLeft-a+"px",s[C]=r[C],s[x]=r[x],s.position="fixed"===r.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n}function N(t,e,n,i,s,a,o){return t.a=e,t.b=n,t.c=i,t.d=s,t.e=a,t.f=o,t}var g,p,f,_,u,m,v,b,y,e,C="transform",x=C+"Origin",E=[],D=[],k=((e=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,n=this.c,i=this.d,s=this.e,a=this.f,o=t*i-e*n||1e-10;return N(this,i/o,-e/o,-n/o,t/o,(n*a-i*s)/o,-(t*a-e*s)/o)},e.multiply=function multiply(t){var e=this.a,n=this.b,i=this.c,s=this.d,a=this.e,o=this.f,r=t.a,h=t.c,l=t.b,c=t.d,d=t.e,u=t.f;return N(this,r*e+l*i,r*n+l*s,h*e+c*i,h*n+c*s,a+d*e+u*i,o+d*n+u*s)},e.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function equals(t){var e=this.a,n=this.b,i=this.c,s=this.d,a=this.e,o=this.f;return e===t.a&&n===t.b&&i===t.c&&s===t.d&&a===t.e&&o===t.f},e.apply=function apply(t,e){void 0===e&&(e={});var n=t.x,i=t.y,s=this.a,a=this.b,o=this.c,r=this.d,h=this.e,l=this.f;return e.x=n*s+i*o+h||0,e.y=n*a+i*r+l||0,e},Matrix2D);function Matrix2D(t,e,n,i,s,a){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=1),void 0===s&&(s=0),void 0===a&&(a=0),N(this,t,e,n,i,s,a)}function getGlobalMatrix(t,e,n,i){if(!t||!t.parentNode||(g||B(t)).documentElement===t)return new k;var s=function _forceNonZeroScale(t){for(var e,n;t&&t!==_;)(n=t._gsap)&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t),a=H(t)?E:D,o=M(t,n),r=a[0].getBoundingClientRect(),h=a[1].getBoundingClientRect(),l=a[2].getBoundingClientRect(),c=o.parentNode,d=!i&&function _isFixed(t){return"fixed"===p.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(t),u=new k((h.left-r.left)/100,(h.top-r.top)/100,(l.left-r.left)/100,(l.top-r.top)/100,r.left+(d?0:function _getDocScrollLeft(){return p.pageXOffset||g.scrollLeft||f.scrollLeft||_.scrollLeft||0}()),r.top+(d?0:function _getDocScrollTop(){return p.pageYOffset||g.scrollTop||f.scrollTop||_.scrollTop||0}()));if(c.removeChild(o),s)for(r=s.length;r--;)(h=s[r]).scaleX=h.scaleY=0,h.renderTransform(1,h);return e?u.inverse():u}function $(){return!1}function la(t){t.preventDefault&&(t.preventDefault(),t.preventManipulation&&t.preventManipulation())}function ma(t){return T.createElementNS?T.createElementNS("http://www.w3.org/1999/xhtml",t):T.createElement(t)}function na(t,e,n){var i,s=T.createElementNS("http://www.w3.org/2000/svg",t),a=/([a-z])([A-Z])/g;for(i in(n=n||{}).class=n.class||"path-editor",n)void 0!==s.style[i]?s.style[i]=n[i]:s.setAttributeNS(null,i.replace(a,"$1-$2").toLowerCase(),n[i]);return e.appendChild(s),s}function pa(t){return(t.transform&&t.transform.baseVal.consolidate()||a).matrix}function sa(t){return~~(1e3*t+(t<0?-.5:.5))/1e3}function va(t){if(!t.target._gsSelection&&!Q&&100<G()-Y){for(var e=st.length;-1<--e;)st[e].deselect();st.length=0}}function za(t,e,n,i){if(t.addEventListener){var s=X[e];i=i||{passive:!1},t.addEventListener(s||e,n,i),s&&e!==s&&"pointer"!==s.substr(0,7)&&t.addEventListener(e,n,i)}else t.attachEvent&&t.attachEvent("on"+e,n)}function Aa(t,e,n){if(t.removeEventListener){var i=X[e];t.removeEventListener(i||e,n),i&&e!==i&&"pointer"!==i.substr(0,7)&&t.removeEventListener(e,n)}else t.detachEvent&&t.detachEvent("on"+e,n)}function Ca(t){at=t.touches&&_dragCount<t.touches.length,Aa(t.target,"touchend",Ca)}function Da(t){at=t.touches&&_dragCount<t.touches.length,za(t.target,"touchend",Ca)}function Ea(e,n){return function(t){return e.call(n,t)}}function Fa(t,e,n){var i=e.vars[t];return i&&i.call(e.vars.callbackScope||e,n||e),e}function Ha(){I.style.display="block",I.select(),I.style.display="none"}function Ka(t){var e,n,i=this,s=getGlobalMatrix(i.target.parentNode,!0);this._matrix=this.target.transform.baseVal.getItem(0).matrix,this._ctm=s,X[t.type]?(e=-1!==t.type.indexOf("touch")?t.currentTarget||t.target:T,za(e,"touchend",i._onRelease),za(e,"touchmove",i._onMove),za(e,"touchcancel",i._onRelease),za(T,"touchstart",Da),za(c,"touchforcechange",la)):(e=null,za(T,"mousemove",i._onMove)),h||za(T,"mouseup",i._onRelease),la(t),Ha(),t.changedTouches?(t=i.touch=t.changedTouches[0],i.touchID=t.identifier):t.pointerId?i.touchID=t.pointerId:i.touch=i.touchID=null,i._startPointerY=i.pointerY=t.pageY,i._startPointerX=i.pointerX=t.pageX,i._startElementX=i._matrix.e,i._startElementY=i._matrix.f,1===this._ctm.a&&0===this._ctm.b&&0===this._ctm.c&&1===this._ctm.d?this._ctm=null:(n=i._startPointerX*this._ctm.a+i._startPointerY*this._ctm.c+this._ctm.e,i._startPointerY=i._startPointerX*this._ctm.b+i._startPointerY*this._ctm.d+this._ctm.f,i._startPointerX=n),i.isPressed=Q=!0,i.touchEventTarget=e,i.vars.onPress&&i.vars.onPress.call(i.vars.callbackScope||i,i.pointerEvent)}function La(t){var e,n,i=this,s=t;if(i._enabled&&!at&&i.isPressed&&t){if(e=(i.pointerEvent=t).changedTouches){if((t=e[0])!==i.touch&&t.identifier!==i.touchID){for(n=e.length;-1<--n&&(t=e[n]).identifier!==i.touchID;);if(n<0)return}}else if(t.pointerId&&i.touchID&&t.pointerId!==i.touchID)return;la(s),i.setPointerPosition(t.pageX,t.pageY),i.vars.onDrag&&i.vars.onDrag.call(i.vars.callbackScope||i,i.pointerEvent)}}function Ma(t,e){var n=this;if(n._enabled&&n.isPressed&&(!t||null==n.touchID||e||!(t.pointerId&&t.pointerId!==n.touchID||t.changedTouches&&!function _hasTouchID(t,e){for(var n=t.length;-1<--n;)if(t[n].identifier===e)return!0;return!1}(t.changedTouches,n.touchID)))){!function _interacted(){Y=G()}(),n.isPressed=Q=!1;var i,s,a=t,o=n.isDragging,r=n.touchEventTarget;if(r?(Aa(r,"touchend",n._onRelease),Aa(r,"touchmove",n._onMove),Aa(r,"touchcancel",n._onRelease),Aa(T,"touchstart",Da)):Aa(T,"mousemove",n._onMove),h||(Aa(T,"mouseup",n._onRelease),t&&t.target&&Aa(t.target,"mouseup",n._onRelease)),o?n.isDragging=!1:n.vars.onClick&&n.vars.onClick.call(n.vars.callbackScope||n,a),t){if((i=t.changedTouches)&&(t=i[0])!==n.touch&&t.identifier!==n.touchID){for(s=i.length;-1<--s&&(t=i[s]).identifier!==n.touchID;);if(s<0)return}n.pointerEvent=a,n.pointerX=t.pageX,n.pointerY=t.pageY}return a&&!o&&n.vars.onDragRelease?n.vars.onDragRelease.call(n,n.pointerEvent):(a&&la(a),n.vars.onRelease&&n.vars.onRelease.call(n.vars.callbackScope||n,n.pointerEvent)),o&&n.vars.onDragEnd&&n.vars.onDragEnd.call(n.vars.callbackScope||n,n.pointerEvent),!0}}function Na(t,e,n,i){var s,a=t[e],o=a.length-(a.closed?6:0),r=[];for(s=0;s<o;s+=6)r.push(new ht(n,t,e,s,i));return a.closed&&(r[0].isClosedStart=!0),r}function Oa(t,e,n){var i=t[n]-t[e],s=t[n+1]-t[e+1];return Math.sqrt(i*i+s*s)}var T,h,c,r,l,R,z,d,L,O,X,I,q,i,V=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,F="#4e7fff",G=(Math.PI,Date.now||function(){return(new Date).getTime()}),Y=0,Q=0,s={},tt=[],et={},nt=[],it=",",st=[],a={matrix:new k},at=0,ot=((i=DraggableSVG.prototype).setPointerPosition=function setPointerPosition(t,e){var n,i,s,a,o;this.pointerX=t,this.pointerY=e,this._ctm&&(o=t*this._ctm.a+e*this._ctm.c+this._ctm.e,e=t*this._ctm.b+e*this._ctm.d+this._ctm.f,t=o),(i=e-this._startPointerY)<1&&-1<i&&(i=0),(n=t-this._startPointerX)<1&&-1<n&&(n=0),s=(1e3*(this._startElementX+n)|0)/1e3,a=(1e3*(this._startElementY+i)|0)/1e3,this.snap&&!z&&(et.x=s,et.y=a,this.snap.call(this,et),s=et.x,a=et.y),this.x===s&&this.y===a||(this._matrix.f=this.y=a,this._matrix.e=this.x=s,!this.isDragging&&this.isPressed&&(this.isDragging=!0,Fa("onDragStart",this,this.pointerEvent)))},i.enabled=function enabled(t){return arguments.length?((this._enabled=t)?(h||za(this.target,"mousedown",this._onPress),za(this.target,"touchstart",this._onPress),za(this.target,"click",this._onClick,!0)):(e=this.isDragging,Aa(this.target,"mousedown",this._onPress),Aa(this.target,"touchstart",this._onPress),Aa(c,"touchforcechange",la),Aa(this.target,"click",this._onClick),this.touchEventTarget&&(Aa(this.touchEventTarget,"touchcancel",this._onRelease),Aa(this.touchEventTarget,"touchend",this._onRelease),Aa(this.touchEventTarget,"touchmove",this._onMove)),Aa(T,"mouseup",this._onRelease),Aa(T,"mousemove",this._onMove),this.isDragging=this.isPressed=!1,e&&Fa("onDragEnd",this,this.pointerEvent)),this):this._enabled;var e},i.endDrag=function endDrag(t){this._onRelease(t)},DraggableSVG);function DraggableSVG(t,e){this.target="string"==typeof t?T.querySelectorAll(t)[0]:t,this.vars=e||{},this._onPress=Ea(Ka,this),this._onMove=Ea(La,this),this._onRelease=Ea(Ma,this),this.target.setAttribute("transform",(this.target.getAttribute("transform")||"")+" translate(0,0)"),this._matrix=pa(this.target),this.x=this._matrix.e,this.y=this._matrix.f,this.snap=e.snap,isNaN(e.maxX)&&isNaN(e.minX)?this._bounds=0:(this._bounds=1,this.maxX=+e.maxX,this.minX=+e.minX),this.enabled(!0)}var rt,ht=((rt=Anchor.prototype).onPress=function onPress(){Fa("onPress",this)},rt.onClick=function onClick(){Fa("onClick",this)},rt.onDrag=function onDrag(){var t=this.segment;this.vars.onDrag.call(this.vars.callbackScope||this,this,this._draggable.x-t[this.i],this._draggable.y-t[this.i+1])},rt.onDragEnd=function onDragEnd(){Fa("onDragEnd",this)},rt.onRelease=function onRelease(){Fa("onRelease",this)},rt.update=function update(t,e,n){t&&(this.rawPath=t),arguments.length<=1?(e=this.j,n=this.i):(this.j=e,this.i=n);var i=this.smooth,s=this.rawPath[e],a=0===n&&s.closed?s.length-4:n-2;this.segment=s,this.smooth=0<n&&n<s.length-2&&Math.abs(Math.atan2(s[n+1]-s[1+a],s[n]-s[a])-Math.atan2(s[n+3]-s[n+1],s[n+2]-s[n]))<.09?2:0,this.smooth!==i&&this.element.setAttribute("d",this.smooth?this.editor._circleHandle:this.editor._squareHandle),this.element.setAttribute("transform","translate("+s[n]+","+s[n+1]+")")},Anchor);function Anchor(t,e,n,i,s){this.editor=t,this.element=na("path",t._selection,{fill:F,stroke:F,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this.update(e,n,i),this.element._gsSelection=!0,this.vars=s||{},this._draggable=new ot(this.element,{callbackScope:this,onDrag:this.onDrag,snap:this.vars.snap,onPress:this.onPress,onRelease:this.onRelease,onClick:this.onClick,onDragEnd:this.onDragEnd})}var lt,ct=((lt=PathEditor.prototype)._onRelease=function _onRelease(t){var e=this._editingAnchor;e&&(s.x=e.segment[e.i],s.y=e.segment[e.i+1]),Aa(c,"touchforcechange",la),Fa("onRelease",this,t)},lt.init=function init(){var t,e,n=this.path.getAttribute("d"),i=stringToRawPath(n),s=this.path.getAttribute("transform")||"translate(0,0)",a=!this._rawPath||i.totalPoints!==this._rawPath.totalPoints||i.length!==this._rawPath.length,o={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX};if(a&&this._anchors&&this._anchors.length){for(e=0;e<this._anchors.length;e++)this._anchors[e].element.parentNode.removeChild(this._anchors[e].element),this._anchors[e]._draggable.enabled(!1);this._selectedAnchors.length=0}if(this._rawPath=i,a){if(this._anchors=Na(i,0,this,o),1<(t=i.length))for(e=1;e<t;e++)this._anchors=this._anchors.concat(Na(i,e,this,o))}else for(e=this._anchors.length;-1<--e;)this._anchors[e].update(i);return this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),this._selectionPath.setAttribute("d",n),this._selectionHittest.setAttribute("d",n),this._g.setAttribute("transform",function _getConcatenatedTransforms(t){for(var e=pa(t),n=t.ownerSVGElement;(t=t.parentNode)&&t.ownerSVGElement===n;)e.multiply(pa(t));return"matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")"}(this.path.parentNode)||"translate(0,0)"),this._selection.setAttribute("transform",s),this._selectionHittest.setAttribute("transform",s),this._updateAnchors(),this},lt._saveState=function _saveState(){!function _addHistory(t){var e,n=[],i=t._selectedAnchors;for(e=0;e<i.length;e++)n[e]=i[e].i;tt.unshift({path:t,d:t.path.getAttribute("d"),transform:t.path.getAttribute("transform")||"",selectedIndexes:n}),30<tt.length&&(tt.length=30)}(this)},lt._onClickSelectionPath=function _onClickSelectionPath(t){if("hidden"===this._selection.style.visibility)this.select();else if(R||t&&t.altKey){var e,i,s,a,o,r,h={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX},l=this._selection.getScreenCTM().inverse();for(this._draggable&&this._draggable._onRelease(t),l&&(a=t.clientX*l.a+t.clientY*l.c+l.e,o=t.clientX*l.b+t.clientY*l.d+l.f),r=function getClosestData(t,e,n,i){var s,a,o,r,h={j:0,i:0,t:0},l=P;for(a=0;a<t.length;a++)for(r=t[a],s=0;s<r.length;s+=6)o=getClosestProgressOnBezier(1,e,n,0,1,i||20,r[s],r[s+1],r[s+2],r[s+3],r[s+4],r[s+5],r[s+6],r[s+7]),A<l&&(l=A,h.j=a,h.i=s,h.t=o);return h}(this._rawPath,a,o),function subdivideSegment(t,e,i){if(i<=0||1<=i)return 0;var s=t[e],a=t[e+1],o=t[e+2],r=t[e+3],h=t[e+4],l=t[e+5],c=s+(o-s)*i,d=o+(h-o)*i,u=a+(r-a)*i,g=r+(l-r)*i,p=c+(d-c)*i,f=u+(g-u)*i,_=h+(t[e+6]-h)*i,m=l+(t[e+7]-l)*i;return d+=(_-d)*i,g+=(m-g)*i,t.splice(e+2,4,n(c),n(u),n(p),n(f),n(p+(d-p)*i),n(f+(g-f)*i),n(d),n(g),n(_),n(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}(this._rawPath[r.j],r.i,r.t),e=r.i+6,i=0;i<this._anchors.length;i++)this._anchors[i].i>=e&&(this._anchors[i].i+=6);s=new ht(this,this._rawPath,r.j,e,h),this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),s._draggable._onPress(t),L=s,this._anchors.push(s),this._selectedAnchors.length=0,this._selectedAnchors.push(s),this._updateAnchors(),this.update(),this._saveState()}Ha(),za(c,"touchforcechange",la),Fa("onPress",this)},lt._onClickHandle1=function _onClickHandle1(){var t=this._editingAnchor,e=t.i,n=t.segment,i=t.isClosedStart?n.length-4:e-2;R&&Math.abs(n[e]-n[i])<5&&Math.abs(n[e+1]-n[1+i])<5&&this._onClickAnchor(t)},lt._onClickHandle2=function _onClickHandle2(){var t=this._editingAnchor,e=t.i,n=t.segment;R&&Math.abs(n[e]-n[e+2])<5&&Math.abs(n[e+1]-n[e+3])<5&&this._onClickAnchor(t)},lt._onDragEndAnchor=function _onDragEndAnchor(){L=null,this._saveState()},lt.isSelected=function isSelected(){return 0<this._selectedAnchors.length},lt.select=function select(t){if(this._selection.style.visibility="visible",this._editingAnchor=null,(this.path._gsSelection=!0)===t)for(var e=this._anchors.length;-1<--e;)this._selectedAnchors[e]=this._anchors[e];return-1===st.indexOf(this)&&st.push(this),this._updateAnchors(),this},lt.deselect=function deselect(){return this._selection.style.visibility="hidden",this._selectedAnchors.length=0,this._editingAnchor=null,this.path._gsSelection=!1,st.splice(st.indexOf(this),1),this._updateAnchors(),this},lt._onDragPath=function _onDragPath(){var t=this._selectionHittest.getAttribute("transform")||"translate(0,0)";this._selection.setAttribute("transform",t),this.path.setAttribute("transform",t)},lt._onPressAnchor=function _onPressAnchor(t){-1===this._selectedAnchors.indexOf(t)?(z||(this._selectedAnchors.length=0),this._selectedAnchors.push(t)):z&&(this._selectedAnchors.splice(this._selectedAnchors.indexOf(t),1),t._draggable.endDrag()),s.x=t.segment[t.i],s.y=t.segment[t.i+1],this._updateAnchors(),Fa("onPress",this)},lt._deleteSelectedAnchors=function _deleteSelectedAnchors(){for(var t,e,n,i=this._selectedAnchors,s=i.length;-1<--s;)for((t=i[s]).element.parentNode.removeChild(t.element),t._draggable.enabled(!1),(e=t.i)?e<t.segment.length-2?t.segment.splice(e-2,6):t.segment.splice(e-4,6):t.segment.splice(e,6),i.splice(s,1),this._anchors.splice(this._anchors.indexOf(t),1),n=0;n<this._anchors.length;n++)this._anchors[n].i>=e&&(this._anchors[n].i-=6);this._updateAnchors(),this.update(),this._saveState(),this.vars.onDeleteAnchor&&this.vars.onDeleteAnchor.call(this.vars.callbackScope||this)},lt._onClickAnchor=function _onClickAnchor(t){var e,n,i,s,a,o,r=t.i,h=t.segment,l=t.isClosedStart?h.length-4:r-2,c=1e3,d=!r||r>=h.length-2;R&&L!==t&&this._editingAnchor?(t.smooth=!t.smooth,d&&!t.isClosedStart&&(t.smooth=!1),t.element.setAttribute("d",t.smooth?this._circleHandle:this._squareHandle),!t.smooth||d&&!t.isClosedStart?t.smooth||d&&!t.isClosedStart||((r||t.isClosedStart)&&(h[l]=h[r],h[1+l]=h[r+1]),r<h.length-2&&(h[r+2]=h[r],h[r+3]=h[r+1]),this._updateAnchors(),this.update(),this._saveState()):(e=((e=Math.atan2(h[r+1]-h[1+l],h[r]-h[l]))+(n=Math.atan2(h[r+3]-h[r+1],h[r+2]-h[r])))/2,i=Oa(h,l,r),s=Oa(h,r,r+2),i<.2&&(i=Oa(h,r,l-4)/4,e=n||Math.atan2(h[r+7]-h[l-3],h[r+6]-h[l-4])),s<.2&&(s=Oa(h,r,r+6)/4,n=e||Math.atan2(h[r+7]-h[l-3],h[r+6]-h[l-4])),a=Math.sin(e),o=Math.cos(e),Math.abs(n-e)<Math.PI/2&&(a=-a,o=-o),h[l]=((h[r]+o*i)*c|0)/c,h[1+l]=((h[r+1]+a*i)*c|0)/c,h[r+2]=((h[r]-o*s)*c|0)/c,h[r+3]=((h[r+1]-a*s)*c|0)/c,this._updateAnchors(),this.update(),this._saveState())):z||(this._selectedAnchors.length=0,this._selectedAnchors.push(t)),L=null,this._updateAnchors()},lt._updateAnchors=function _updateAnchors(){var t,e,n,i=1===this._selectedAnchors.length?this._selectedAnchors[0]:null,s=i?i.segment:null;for(this._editingAnchor=i,t=0;t<this._anchors.length;t++)this._anchors[t].element.style.fill=-1!==this._selectedAnchors.indexOf(this._anchors[t])?F:"white";i&&(this._handle1.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle),this._handle2.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle)),t=i?i.i:0,i&&(t||i.isClosedStart)?(e=i.isClosedStart?s[s.length-4]:s[t-2],n=i.isClosedStart?s[s.length-3]:s[t-1],this._handle1.style.visibility=this._line1.style.visibility=R||e!==s[t]||n!==s[t+1]?"visible":"hidden",this._handle1.setAttribute("transform","translate("+e+it+n+")"),this._line1.setAttribute("points",e+it+n+it+s[t]+it+s[t+1])):this._handle1.style.visibility=this._line1.style.visibility="hidden",i&&t<s.length-2?(e=s[t+2],n=s[t+3],this._handle2.style.visibility=this._line2.style.visibility=R||e!==s[t]||n!==s[t+1]?"visible":"hidden",this._handle2.setAttribute("transform","translate("+e+it+n+")"),this._line2.setAttribute("points",s[t]+it+s[t+1]+it+e+it+n)):this._handle2.style.visibility=this._line2.style.visibility="hidden"},lt._onPressAlt=function _onPressAlt(){var t=this._editingAnchor;t&&((t.i||t.isClosedStart)&&(this._handle1.style.visibility=this._line1.style.visibility="visible"),t.i<t.segment.length-2&&(this._handle2.style.visibility=this._line2.style.visibility="visible"))},lt._onReleaseAlt=function _onReleaseAlt(){var t,e,n,i=this._editingAnchor;i&&(t=i.segment,e=i.i,n=i.isClosedStart?t.length-4:e-2,t[e]===t[n]&&t[e+1]===t[1+n]&&(this._handle1.style.visibility=this._line1.style.visibility="hidden"),t[e]===t[e+2]&&t[e+1]===t[e+3]&&(this._handle2.style.visibility=this._line2.style.visibility="hidden"))},lt._onPressHandle1=function _onPressHandle1(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Oa(this._editingAnchor.segment,this._editingAnchor.i,this._editingAnchor.i+2)),Fa("onPress",this)},lt._onPressHandle2=function _onPressHandle2(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Oa(this._editingAnchor.segment,this._editingAnchor.isClosedStart?this._editingAnchor.segment.length-4:this._editingAnchor.i-2,this._editingAnchor.i)),Fa("onPress",this)},lt._onReleaseHandle=function _onReleaseHandle(t){this._onRelease(t),this._saveState()},lt._onDragHandle1=function _onDragHandle1(){var t,e=this._editingAnchor,n=e.segment,i=e.i,s=e.isClosedStart?n.length-4:i-2,a=1e3,o=this._handle1._draggable.x,r=this._handle1._draggable.y;n[s]=o=(o*a|0)/a,n[1+s]=r=(r*a|0)/a,e.smooth&&(R?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(n[i+1]-r,n[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),n[i+2]=((n[i]+o)*a|0)/a,n[i+3]=((n[i+1]+r)*a|0)/a)),this.update()},lt._onDragHandle2=function _onDragHandle2(){var t,e=this._editingAnchor,n=e.segment,i=e.i,s=e.isClosedStart?n.length-4:i-2,a=1e3,o=this._handle2._draggable.x,r=this._handle2._draggable.y;n[i+2]=o=(o*a|0)/a,n[i+3]=r=(r*a|0)/a,e.smooth&&(R?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(n[i+1]-r,n[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),n[s]=((n[i]+o)*a|0)/a,n[1+s]=((n[i+1]+r)*a|0)/a)),this.update()},lt._onDragAnchor=function _onDragAnchor(t,e,n){var i,s,a,o,r,h=this._selectedAnchors,l=h.length,c=1e3;for(s=0;s<l;s++)i=(o=h[s]).i,a=o.segment,i?(a[i-2]=((a[i-2]+e)*c|0)/c,a[i-1]=((a[i-1]+n)*c|0)/c):o.isClosedStart&&(a[r=a.length-2]=sa(a[r]+e),a[1+r]=sa(a[1+r]+n),a[r-2]=sa(a[r-2]+e),a[r-1]=sa(a[r-1]+n)),a[i]=((a[i]+e)*c|0)/c,a[i+1]=((a[i+1]+n)*c|0)/c,i<a.length-2&&(a[i+2]=((a[i+2]+e)*c|0)/c,a[i+3]=((a[i+3]+n)*c|0)/c),o!==t&&o.element.setAttribute("transform","translate("+a[i]+it+a[i+1]+")");this.update()},lt.enabled=function enabled(t){if(!arguments.length)return this._enabled;for(var e=this._anchors.length;-1<--e;)this._anchors[e]._draggable.enabled(t);return this._enabled=t,this._handle1._draggable.enabled(t),this._handle2._draggable.enabled(t),this._draggable&&this._draggable.enabled(t),t?this._selection.parentNode||(this.path.ownerSVGElement.appendChild(this._selectionHittest),this.path.ownerSVGElement.appendChild(this._selection),this.init(),this._saveState()):(this.deselect(),this.path.ownerSVGElement.removeChild(this._selectionHittest),this.path.ownerSVGElement.removeChild(this._selection)),this._updateAnchors(),this.update()},lt.update=function update(t){var e,n,i,s,a,o="",r=this._editingAnchor;if(t&&this.init(),r&&(e=r.i,n=r.segment,(e||r.isClosedStart)&&(i=n[a=r.isClosedStart?n.length-4:e-2],s=n[1+a],this._handle1.setAttribute("transform","translate("+i+it+s+")"),this._line1.setAttribute("points",i+it+s+it+n[e]+it+n[e+1])),e<n.length-2&&(i=n[e+2],s=n[e+3],this._handle2.setAttribute("transform","translate("+i+it+s+")"),this._line2.setAttribute("points",n[e]+it+n[e+1]+it+i+it+s))),t)o=this.path.getAttribute("d");else{for(e=0;e<this._rawPath.length;e++)7<(n=this._rawPath[e]).length&&(o+="M"+n[0]+it+n[1]+"C"+n.slice(2).join(it));this.path.setAttribute("d",o),this._selectionPath.setAttribute("d",o),this._selectionHittest.setAttribute("d",o)}return this.vars.onUpdate&&this._enabled&&Fa("onUpdate",this,o),this},lt.getRawPath=function getRawPath(t,e,n){if(t){var i=pa(this.path);return transformRawPath(copyRawPath(this._rawPath),1,0,0,1,i.e+(e||0),i.f+(n||0))}return this._rawPath},lt.getString=function getString(t,e,i){if(t){var s=pa(this.path);return function rawPathToString(t){!function _isNumber(t){return"number"==typeof t}(t[0])||(t=[t]);var e,i,s,a,o="",r=t.length;for(i=0;i<r;i++){for(a=t[i],o+="M"+n(a[0])+","+n(a[1])+" C",e=a.length,s=2;s<e;s++)o+=n(a[s++])+","+n(a[s++])+" "+n(a[s++])+","+n(a[s++])+" "+n(a[s++])+","+n(a[s])+" ";a.closed&&(o+="z")}return o}(transformRawPath(copyRawPath(this._rawPath),1,0,0,1,s.e+(e||0),s.f+(i||0)))}return this.path.getAttribute("d")},lt.getNormalizedSVG=function getNormalizedSVG(t,e,n,i){var s,a,o,r,h,l,c=this._rawPath[0],d=-1*c[0],u=0===e?0:-(e||c[1]),g=c.length,p=1/(c[g-2]+d),f=-t||c[g-1]+u;for(f=f?1/f:-p,p*=1e3,f*=1e3,a=nt.length=0;a<g;a+=2)nt[a]=((c[a]+d)*p|0)/1e3,nt[a+1]=((c[a+1]+u)*f|0)/1e3;if(i){for(s=[],g=nt.length,a=2;a<g;a+=6)o=nt[a-2],r=nt[a-1],h=nt[a+4],l=nt[a+5],s.push(o,r,h,l),bezierToPoints(o,r,nt[a],nt[a+1],nt[a+2],nt[a+3],h,l,.001,s,s.length-2);for(o=s[0],g=s.length,a=2;a<g;a+=2){if((h=s[a])<o||1<h||h<0){i();break}o=h}}return n&&8===g&&0===nt[0]&&0===nt[1]&&1===nt[g-2]&&1===nt[g-1]?nt.slice(2,6).join(","):(nt[2]="C"+nt[2],"M"+nt.join(","))},PathEditor);function PathEditor(t,e){e=e||{},q||function _initCore(){T=document,c=window,r=T.body,O=ma("div"),(I=ma("textarea")).style.display="none",r&&r.appendChild(I),X=function(t){for(var e=t.split(","),n=(void 0!==O.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==O.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),i={},s=4;-1<--s;)i[e[s]]=n[s],i[n[s]]=e[s];return i}("touchstart,touchmove,touchend,touchcancel"),SVGElement.prototype.getTransformToElement=SVGElement.prototype.getTransformToElement||function(t){return t.getScreenCTM().inverse().multiply(this.getScreenCTM())},T.addEventListener("keydown",function(t){var e,n,i,s,a=t.keyCode||t.which,o=t.key||a;if("Shift"===o||16===a)z=!0;else if("Control"===o||17===a)l=!0;else if("Meta"===o||91===a)d=!0;else if("Alt"===o||18===a)for(R=!0,e=st.length;-1<--e;)st[e]._onPressAlt();else if(("z"===o||90===a)&&(l||d)&&1<tt.length){if(tt.shift(),n=tt[0]){for((s=n.path).path.setAttribute("d",n.d),s.path.setAttribute("transform",n.transform),s.init(),i=s._anchors,e=0;e<i.length;e++)-1!==n.selectedIndexes.indexOf(i[e].i)&&s._selectedAnchors.push(i[e]);s._updateAnchors(),s.update(),s.vars.onUndo&&s.vars.onUndo.call(s)}}else if("Delete"===o||"Backspace"===o||8===a||46===a||63272===a||"d"===a&&(l||d))for(e=st.length;-1<--e;)st[e]._deleteSelectedAnchors();else if(("a"===o||65===a)&&(d||l))for(e=st.length;-1<--e;)st[e].select(!0)},!0),T.addEventListener("keyup",function(t){var e=t.key||t.keyCode||t.which;if("Shift"===e||16===e)z=!1;else if("Control"===e||17===e)l=!1;else if("Meta"===e||91===e)d=!1;else if("Alt"===e||18===e){R=!1;for(var n=st.length;-1<--n;)st[n]._onReleaseAlt()}},!0),h=!!c.PointerEvent,za(T,"mouseup",va),za(T,"touchend",va),za(T,"touchcancel",$),za(c,"touchmove",$),r&&r.addEventListener("touchstart",$),q=1}(),this.vars=e,this.path="string"==typeof t?T.querySelectorAll(t)[0]:t,this._g=na("g",this.path.ownerSVGElement,{class:"path-editor-g path-editor"}),this._selectionHittest=na("path",this._g,{stroke:"transparent",strokeWidth:16,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selection=e._selection||na("g",this._g,{class:"path-editor-selection path-editor"}),this._selectionPath=na("path",this._selection,{stroke:F,strokeWidth:2,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selectedAnchors=[],this._line1=na("polyline",this._selection,{stroke:F,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line2=na("polyline",this._selection,{stroke:F,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line1.style.pointerEvents=this._line2.style.pointerEvents=this._selectionPath.style.pointerEvents="none",this._enabled=!0;var n=this.path.parentNode.getScreenCTM().inverse(),i=(n.a+n.d)/2*(e.handleSize||5);this._squareHandle=function _getSquarePathData(t){return["M-"+(t=sa(t)),-t,t,-t,t,t,-t,t+"z"].join(it)}(i),this._circleHandle=function _getCirclePathData(t){var e=sa(.552284749831*t);return"M"+(t=sa(t))+",0C"+[t,e,e,t,0,t,-e,t,-t,e,-t,0,-t,-e,-e,-t,0,-t,e,-t,t,-e,t,0].join(it)+"z"}(1.15*i),this._handle1=na("path",this._selection,{d:this._squareHandle,fill:F,stroke:"transparent",strokeWidth:6}),this._handle2=na("path",this._selection,{d:this._squareHandle,fill:F,stroke:"transparent",strokeWidth:6}),this._handle1._draggable=new ot(this._handle1,{onDrag:this._onDragHandle1,callbackScope:this,onPress:this._onPressHandle1,onRelease:this._onReleaseHandle,onClick:this._onClickHandle1,snap:e.handleSnap}),this._handle2._draggable=new ot(this._handle2,{onDrag:this._onDragHandle2,callbackScope:this,onPress:this._onPressHandle2,onRelease:this._onReleaseHandle,onClick:this._onClickHandle2,snap:e.handleSnap}),this._handle1.style.visibility=this._handle2.style.visibility="hidden";for(var s=[this._handle1,this._handle2,this._line1,this._line2,this._selection,this._selectionPath,this._selectionHittest],a=s.length;-1<--a;)s[a]._gsSelection=!0;!1!==e.draggable&&(this._draggable=new ot(this._selectionHittest,{callbackScope:this,onPress:this.select,onRelease:this._onRelease,onDrag:this._onDragPath,onDragEnd:this._saveState,maxX:this.vars.maxX,minX:this.vars.minX})),this.init(),this._selection.style.visibility=!1===e.selected?"hidden":"visible",!1!==e.selected&&(this.path._gsSelection=!0,st.push(this)),this._saveState(),h||(za(this._selectionHittest,"mousedown",Ea(this._onClickSelectionPath,this)),za(this._selectionHittest,"mouseup",Ea(this._onRelease,this))),za(this._selectionHittest,"touchstart",Ea(this._onClickSelectionPath,this)),za(this._selectionHittest,"touchend",Ea(this._onRelease,this))}ct.simplifyPoints=simplifyPoints,ct.pointsToSegment=pointsToSegment,ct.simplifySVG=function(t,e){var n,i,s,a,o,r,h,l,c,d,u;if(d=(e=e||{}).tolerance||1,c=e.precision||1/d,void 0===e.cornerThreshold||e.cornerThreshold,"string"!=typeof t&&(t=(n=t).getAttribute("d")),"#"!==t.charAt(0)&&"."!==t.charAt(0)||(n=T.querySelector(t))&&(t=n.getAttribute("d")),i=!1!==e.curved||/[achqstvz]/gi.test(t)?stringToRawPath(t)[0]:t.match(V),!1!==e.curved){for(l=i,i=[],u=l.length,s=2;s<u;s+=6)a=+l[s-2],r=+l[s-1],o=+l[s+4],h=+l[s+5],i.push(sa(a),sa(r),sa(o),sa(h)),bezierToPoints(a,r,+l[s],+l[s+1],+l[s+2],+l[s+3],o,h,1/(2e5*c),i,i.length-2);(i=pointsToSegment(simplifyPoints(i,d),e.curviness))[2]="C"+i[2]}else i=simplifyPoints(i,d);return t="M"+i.join(","),n&&n.setAttribute("d",t),t},ct.create=function(t,e){return new ct(t,e)},ct.editingAxis=s,ct.getSnapFunction=function(t){var r=t.radius||2,e=1e20,h=t.x||0===t.x?t.x:t.width?0:-e,l=t.y||0===t.y?t.y:t.height?0:-e,c=h+(t.width||1e40),d=l+(t.height||1e40),u=!1!==t.containX,g=!1!==t.containY,p=t.axis,f=t.gridSize;return r*=r,function(t){var e,n,i,s,a=t.x,o=t.y;u&&a<h||(i=a-h)*i<r?a=h:(u&&c<a||(i=c-a)*i<r)&&(a=c),g&&o<l||(s=o-l)*s<r?o=l:(g&&d<o||(s=d-o)*s<r)&&(o=d),p&&(i=a-p.x,s=o-p.y,i*i<r&&(a=p.x),s*s<r&&(o=p.y)),f&&(i=(e=h+Math.round((a-h)/f)*f)-a)*i+(s=(n=l+Math.round((o-l)/f)*f)-o)*s<r&&(a=e,o=n),t.x=a,t.y=o}},ct.version="3.10.3";function ab(){return String.fromCharCode.apply(null,arguments)}function eb(t){return"string"==typeof t}function fb(t,e){var n=gt.createElementNS?gt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):gt.createElement(t);return n.style?n:gt.createElement(t)}function lb(t,e,n){return eb(t)&&Pt.test(t)?gt.querySelector(t):Array.isArray(t)?vt(mt([{x:dt.getProperty(e,"x"),y:dt.getProperty(e,"y")}].concat(t),n)):eb(t)||t&&"path"===(t.tagName+"").toLowerCase()?t:0}function qb(t,e){var n="Please gsap.registerPlugin(MotionPathPlugin)";ut=window,dt=dt||t||ut.gsap||console.warn(n),gt=document,ft=gt.body,pt=gt.documentElement,(_t=dt&&dt.plugins.motionPath)?(function _initCopyToClipboard(){(bt=fb("textarea")).style.display="none",ft.appendChild(bt)}(),mt=_t.arrayToRawPath,vt=_t.rawPathToString):!0===e&&console.warn(n)}var dt,ut,gt,pt,ft,_t,mt,vt,bt,yt="MotionPathHelper",At=ab(103,114,101,101,110,115,111,99,107,46,99,111,109),Pt=(function(t){var e="undefined"!=typeof window,n=0===(e?window.location.href:"").indexOf(ab(102,105,108,101,58,47,47))||-1!==t.indexOf(ab(108,111,99,97,108,104,111,115,116))||-1!==t.indexOf(ab(49,50,55,46,48,32,48,46,49)),i=[At,ab(99,111,100,101,112,101,110,46,105,111),ab(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),ab(99,111,100,101,112,101,110,46,100,101,118),ab(99,111,100,101,112,101,110,46,97,112,112),ab(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),ab(112,101,110,115,46,99,108,111,117,100),ab(99,115,115,45,116,114,105,99,107,115,46,99,111,109),ab(99,100,112,110,46,105,111),ab(112,101,110,115,46,105,111),ab(103,97,110,110,111,110,46,116,118),ab(99,111,100,101,99,97,110,121,111,110,46,110,101,116),ab(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),ab(99,101,114,101,98,114,97,120,46,99,111,46,117,107),ab(116,121,109,112,97,110,117,115,46,110,101,116),ab(116,119,101,101,110,109,97,120,46,99,111,109),ab(116,119,101,101,110,108,105,116,101,46,99,111,109),ab(112,108,110,107,114,46,99,111),ab(104,111,116,106,97,114,46,99,111,109),ab(119,101,98,112,97,99,107,98,105,110,46,99,111,109),ab(97,114,99,104,105,118,101,46,111,114,103),ab(99,111,100,101,115,97,110,100,98,111,120,46,105,111),ab(99,115,98,46,97,112,112),ab(115,116,97,99,107,98,108,105,116,122,46,99,111,109),ab(115,116,97,99,107,98,108,105,116,122,46,105,111),ab(99,111,100,105,101,114,46,105,111),ab(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),ab(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),ab(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),ab(106,115,102,105,100,100,108,101,46,110,101,116)],s=i.length;for(setTimeout(function checkWarn(){e&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),e&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(ab(37,99,87,97,114,110,105,110,103),ab(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(ab(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+yt+ab(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(ab(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),ab(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--s;)if(-1!==t.indexOf(i[s]))return;n||setTimeout(function(){e&&(window.location.href=ab(104,116,116,112,115,58,47,47)+At+ab(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+yt+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),/(^[#\.][a-z]|[a-y][a-z])/i),wt={matrix:{a:1,b:0,c:0,d:1,e:0,f:0}},St=(MotionPathHelper.prototype.getString=function getString(){return this.editor.getString(!0,-this.offset.x,-this.offset.y)},MotionPathHelper);function MotionPathHelper(t,e){void 0===e&&(e={}),_t||qb(e.gsap,1);var n,i,s,a,o,r,h,l,c,d,u,g,p,f=fb("div"),_=this,m={x:0,y:0};t instanceof dt.core.Tween?n=(l=t).targets()[0]:(n=dt.utils.toArray(t)[0],l=function _findMotionPathTween(t){for(var e=dt.getTweensOf(t),n=0;n<e.length;n++){if(e[n].vars.motionPath)return e[n];e[n].timeline&&e.push.apply(e,e[n].timeline.getChildren())}}(n)),i=lb(e.path,n,e),this.offset=m,r=function _getPositionOnPage(t){var e=t.getBoundingClientRect(),n=pt.clientTop-(ut.pageYOffset||pt.scrollTop||ft.scrollTop||0),i=pt.clientLeft-(ut.pageXOffset||pt.scrollLeft||ft.scrollLeft||0);return{left:e.left+i,top:e.top+n,right:e.right+i,bottom:e.bottom+n}}(n),a=parseFloat(dt.getProperty(n,"x","px")),o=parseFloat(dt.getProperty(n,"y","px")),s=n.getCTM&&"svg"!==n.tagName.toLowerCase(),l&&!i&&(i=lb(l.vars.motionPath.path||l.vars.motionPath,n,l.vars.motionPath)),f.setAttribute("class","copy-motion-path"),f.style.cssText="border-radius:8px; background-color:rgba(85, 85, 85, 0.7); color:#fff; cursor:pointer; padding:6px 12px; font-family:Signika Negative, Arial, sans-serif; position:fixed; left:50%; transform:translate(-50%, 0); font-size:19px; bottom:10px",f.innerText="COPY MOTION PATH",f._gsHelper=_,(dt.utils.toArray(e.container)[0]||ft).appendChild(f),function _addCopyToClipboard(n,i,s){n.addEventListener("click",function(t){if(t.target._gsHelper){var e=i(t.target);if((bt.value=e)&&bt.select){console.log(e),bt.style.display="block",bt.select();try{gt.execCommand("copy"),bt.blur(),s&&s(n)}catch(t){console.warn("Copy didn't work; this browser doesn't permit that.")}bt.style.display="none"}}})}(f,function(){return _.getString()},function(){return dt.fromTo(f,{backgroundColor:"white"},{duration:.5,backgroundColor:"rgba(85, 85, 85, 0.6)"})}),(h=i&&i.ownerSVGElement)||(c=s&&n.ownerSVGElement&&n.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg",s?(h=n.ownerSVGElement,d=n.getBBox(),a=(u=function _getConsolidatedMatrix(t){return(t.transform.baseVal.consolidate()||wt).matrix}(n)).e,o=u.f,m.x=d.x,m.y=d.y):(h=fb("svg",c),ft.appendChild(h),h.setAttribute("viewBox","0 0 100 100"),h.setAttribute("class","motion-path-helper"),h.style.cssText="overflow:visible; background-color: transparent; position:absolute; z-index:5000; width:100px; height:100px; top:"+(r.top-o)+"px; left:"+(r.left-a)+"px;"),d=eb(i)&&!Pt.test(i)?i:function _getInitialPath(t,e){var n,i=[0,31,8,58,24,75,40,90,69,100,100,100];for(n=0;n<i.length;n+=2)i[n]+=t,i[n+1]+=e;return"M"+t+","+e+"C"+i.join(",")}(a,o),(i=fb("path",c)).setAttribute("d",d),i.setAttribute("vector-effect","non-scaling-stroke"),i.style.cssText="fill:transparent; stroke-width:"+(e.pathWidth||3)+"; stroke:"+(e.pathColor||"#555")+"; opacity:"+(e.pathOpacity||.6),h.appendChild(i),(m.x||m.y)&&dt.set(i,{x:m.x,y:m.y})),"selected"in e||(e.selected=!0),"anchorSnap"in e||(e.anchorSnap=function(t){t.x*t.x+t.y*t.y<16&&(t.x=t.y=0)}),p=l&&"nested"===l.parent.data?l.parent.parent:l,e.onPress=function(){p.pause(0)},g=function refreshPath(){l.invalidate(),p.restart()},e.onRelease=e.onDeleteAnchor=g,this.editor=ct.create(i,e),e.center&&dt.set(n,{transformOrigin:"50% 50%",xPercent:-50,yPercent:-50}),l?(l.vars.motionPath.path?l.vars.motionPath.path=i:l.vars.motionPath={path:i},p.parent!==dt.globalTimeline&&dt.globalTimeline.add(p,function _getGlobalTime(t){for(var e=t.totalTime();t;)e=t.startTime()+e/(t.timeScale()||1),t=t.parent;return e}(p)-p.delay()),p.repeat(-1).repeatDelay(1)):l=p=dt.to(n,{motionPath:{path:i,start:e.start||0,end:"end"in e?e.end:1,autoRotate:"autoRotate"in e&&e.autoRotate,align:i,alignOrigin:e.alignOrigin},duration:e.duration||5,ease:e.ease||"power1.inOut",repeat:-1,repeatDelay:1,paused:!e.path}),this.animation=l}St.register=qb,St.create=function(t,e){return new St(t,e)},St.editPath=function(t,e){return ct.create(t,e)},St.version="3.10.3",t.MotionPathHelper=St,t.default=St;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); |
/*! | ||
* MotionPathPlugin 3.10.2 | ||
* MotionPathPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function p(t){return"string"==typeof t}function x(t){return Math.round(1e10*t)/1e10||0}function y(t,e,n,r){var a=t[e],o=1===r?6:subdivideSegment(a,n,r);if(o&&o+n+2<a.length)return t.splice(e,0,a.slice(0,n+o+2)),a.splice(0,n+o),1}function C(t,e){var n=t.length,r=t[n-1]||[],a=r.length;n&&e[0]===r[a-2]&&e[1]===r[a-1]&&(e=r.concat(e.slice(2)),n--),t[n]=e}var M=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,T=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,L=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,q=Math.PI/180,s=180/Math.PI,F=Math.sin,U=Math.cos,H=Math.abs,$=Math.sqrt,l=Math.atan2,A=1e8,h=function _isNumber(t){return"number"==typeof t},S={},_={},e=1e5,d=function _wrapProgress(t){return Math.round((t+A)%1*e)/e||(t<0?0:1)},N=function _round(t){return Math.round(t*e)/e||0},m=function _getSampleIndex(t,e,n){var r=t.length,a=~~(n*r);if(t[a]>e){for(;--a&&t[a]>e;);a<0&&(a=0)}else for(;t[++a]<e&&a<r;);return a<r?a:r-1},B=function _copyMetaData(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e};function getRawPath(t){var e,n=(t=p(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(e=n._gsPath[t])&&!e._dirty?e:n._gsPath[t]=stringToRawPath(t)):t?p(t)?stringToRawPath(t):h(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function reverseSegment(t){var e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}var O={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function convertToPath(t,e){var n,r,a,o,i,s,l,h,u,g,f,p,c,d,m,v,x,y,w,P,b,M,R=t.tagName.toLowerCase(),L=.552284749831;return"path"!==R&&t.getBBox?(s=function _createPath(t,e){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),a=[].slice.call(t.attributes),o=a.length;for(e=","+e+",";-1<--o;)n=a[o].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,a[o].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),M=function _attrToObj(t,e){for(var n=e?e.split(","):[],r={},a=n.length;-1<--a;)r[n[a]]=+t.getAttribute(n[a])||0;return r}(t,O[R]),"rect"===R?(o=M.rx,i=M.ry||o,r=M.x,a=M.y,g=M.width-2*o,f=M.height-2*i,n=o||i?"M"+(v=(d=(c=r+o)+g)+o)+","+(y=a+i)+" V"+(w=y+f)+" C"+[v,P=w+i*L,m=d+o*L,b=w+i,d,b,d-(d-c)/3,b,c+(d-c)/3,b,c,b,p=r+o*(1-L),b,r,P,r,w,r,w-(w-y)/3,r,y+(w-y)/3,r,y,r,x=a+i*(1-L),p,a,c,a,c+(d-c)/3,a,d-(d-c)/3,a,d,a,m,a,v,x,v,y].join(",")+"z":"M"+(r+g)+","+a+" v"+f+" h"+-g+" v"+-f+" h"+g+"z"):"circle"===R||"ellipse"===R?(h="circle"===R?(o=i=M.r)*L:(o=M.rx,(i=M.ry)*L),n="M"+((r=M.cx)+o)+","+(a=M.cy)+" C"+[r+o,a+h,r+(l=o*L),a+i,r,a+i,r-l,a+i,r-o,a+h,r-o,a,r-o,a-h,r-l,a-i,r,a-i,r+l,a-i,r+o,a-h,r+o,a].join(",")+"z"):"line"===R?n="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==R&&"polygon"!==R||(n="M"+(r=(u=(t.getAttribute("points")+"").match(T)||[]).shift())+","+(a=u.shift())+" L"+u.join(","),"polygon"===R&&(n+=","+r+","+a+"z")),s.setAttribute("d",rawPathToString(s._gsRawPath=stringToRawPath(n))),e&&t.parentNode&&(t.parentNode.insertBefore(s,t),t.parentNode.removeChild(t)),s):t}function getRotationAtBezierT(t,e,n){var r,a=t[e],o=t[e+2],i=t[e+4];return a+=(o-a)*n,a+=((o+=(i-o)*n)-a)*n,r=o+(i+(t[e+6]-i)*n-o)*n-a,a=t[e+1],a+=((o=t[e+3])-a)*n,a+=((o+=((i=t[e+5])-o)*n)-a)*n,N(l(o+(i+(t[e+7]-i)*n-o)*n-a,r)*s)}function sliceRawPath(t,e,n){n=function _isUndefined(t){return void 0===t}(n)?1:x(n)||0,e=x(e)||0;var r=Math.max(0,~~(H(n-e)-1e-8)),a=function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=B(t[n],t[n].slice(0));return B(t,e)}(t);if(n<e&&(e=1-e,n=1-n,function _reverseRawPath(t,e){var n=t.length;for(e||t.reverse();n--;)t[n].reversed||reverseSegment(t[n])}(a),a.totalLength=0),e<0||n<0){var o=Math.abs(~~Math.min(e,n))+1;e+=o,n+=o}a.totalLength||cacheRawPathMeasurements(a);var i,s,l,h,u,g,f,p,c=1<n,d=getProgressData(a,e,S,!0),m=getProgressData(a,n,_),v=m.segment,w=d.segment,P=m.segIndex,b=d.segIndex,M=m.i,R=d.i,L=b===P,T=M===R&&L;if(c||r){for(i=P<b||L&&M<R||T&&m.t<d.t,y(a,b,R,d.t)&&(b++,i||(P++,T?(m.t=(m.t-d.t)/(1-d.t),M=0):L&&(M-=R))),Math.abs(1-(n-e))<1e-5?P=b-1:!m.t&&P?P--:y(a,P,M,m.t)&&i&&b++,1===d.t&&(b=(b+1)%a.length),u=[],f=1+(g=a.length)*r,f+=(g-(p=b)+P)%g,h=0;h<f;h++)C(u,a[p++%g]);a=u}else if(l=1===m.t?6:subdivideSegment(v,M,m.t),e!==n)for(s=subdivideSegment(w,R,T?d.t/m.t:d.t),L&&(l+=s),v.splice(M+l+2),(s||R)&&w.splice(0,R+s),h=a.length;h--;)(h<b||P<h)&&a.splice(h,1);else v.angle=getRotationAtBezierT(v,M+l,0),d=v[M+=l],m=v[M+1],v.length=v.totalLength=0,v.totalPoints=a.totalPoints=8,v.push(d,m,d,m,d,m,d,m);return a.totalLength=0,a}function measureSegment(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var r,a,o,i,s,l,h,u,g,f,p,c,d,m,v,x,y,w=~~t.resolution||12,P=1/w,b=n?e+6*n+1:t.length,M=t[e],R=t[e+1],L=e?e/6*w:0,T=t.samples,S=t.lookup,_=(e?t.minLength:A)||A,C=T[L+n*w-1],N=e?T[L-1]:0;for(T.length=S.length=0,a=e+2;a<b;a+=6){if(o=t[a+4]-M,i=t[a+2]-M,s=t[a]-M,u=t[a+5]-R,g=t[a+3]-R,f=t[a+1]-R,l=h=p=c=0,H(o)<.01&&H(u)<.01&&H(s)+H(f)<.01)8<t.length&&(t.splice(a,6),a-=6,b-=6);else for(r=1;r<=w;r++)l=h-(h=((m=P*r)*m*o+3*(d=1-m)*(m*i+d*s))*m),p=c-(c=(m*m*u+3*d*(m*g+d*f))*m),(x=$(p*p+l*l))<_&&(_=x),N+=x,T[L++]=N;M+=o,R+=u}if(C)for(C-=N;L<T.length;L++)T[L]+=C;if(T.length&&_){if(t.totalLength=y=T[T.length-1]||0,y/(t.minLength=_)<9999)for(x=v=0,r=0;r<y;r+=_)S[x++]=T[v]<r?++v:v}else t.totalLength=T[0]=0;return e?N-T[e/2-1]:N}function cacheRawPathMeasurements(t,e){var n,r,a;for(a=n=r=0;a<t.length;a++)t[a].resolution=~~e||12,r+=t[a].length,n+=measureSegment(t[a]);return t.totalPoints=r,t.totalLength=n,t}function subdivideSegment(t,e,n){if(n<=0||1<=n)return 0;var r=t[e],a=t[e+1],o=t[e+2],i=t[e+3],s=t[e+4],l=t[e+5],h=r+(o-r)*n,u=o+(s-o)*n,g=a+(i-a)*n,f=i+(l-i)*n,p=h+(u-h)*n,c=g+(f-g)*n,d=s+(t[e+6]-s)*n,m=l+(t[e+7]-l)*n;return u+=(d-u)*n,f+=(m-f)*n,t.splice(e+2,4,N(h),N(g),N(p),N(c),N(p+(u-p)*n),N(c+(f-c)*n),N(u),N(f),N(d),N(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function getProgressData(t,e,n,r){n=n||{},t.totalLength||cacheRawPathMeasurements(t),(e<0||1<e)&&(e=d(e));var a,o,i,s,l,h,u,g=0,f=t[0];if(e)if(1===e)u=1,h=(f=t[g=t.length-1]).length-8;else{if(1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)g=h;e=(i-(s=l-(f=t[g]).totalLength))/(l-s)||0}a=f.samples,o=f.resolution,i=f.totalLength*e,s=(h=f.lookup.length?f.lookup[~~(i/f.minLength)]||0:m(a,i,e))?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),u=1/o*((i-s)/(l-s)+h%o),h=6*~~(h/o),r&&1===u&&(h+6<f.length?(h+=6,u=0):g+1<t.length&&(h=u=0,f=t[++g]))}else u=h=g=0,f=t[0];return n.t=u,n.i=h,n.path=t,n.segment=f,n.segIndex=g,n}function getPositionOnPath(t,e,n,r){var a,o,i,s,l,h,u,g,f,p=t[0],c=r||{};if((e<0||1<e)&&(e=d(e)),1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)p=t[h];e=(i-(s=l-p.totalLength))/(l-s)||0}return a=p.samples,o=p.resolution,i=p.totalLength*e,s=(h=p.lookup.length?p.lookup[e<1?~~(i/p.minLength):p.lookup.length-1]||0:m(a,i,e))?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),f=1-(u=1/o*((i-s)/(l-s)+h%o)||0),g=p[h=6*~~(h/o)],c.x=N((u*u*(p[h+6]-g)+3*f*(u*(p[h+4]-g)+f*(p[h+2]-g)))*u+g),c.y=N((u*u*(p[h+7]-(g=p[h+1]))+3*f*(u*(p[h+5]-g)+f*(p[h+3]-g)))*u+g),n&&(c.angle=p.totalLength?getRotationAtBezierT(p,h,1<=u?1-1e-9:u||1e-9):p.angle||0),c}function transformRawPath(t,e,n,r,a,o,i){for(var s,l,h,u,g,f=t.length;-1<--f;)for(l=(s=t[f]).length,h=0;h<l;h+=2)u=s[h],g=s[h+1],s[h]=u*e+g*r+o,s[h+1]=u*n+g*a+i;return t._dirty=1,t}function arcToSegment(t,e,n,r,a,o,i,s,l){if(t!==s||e!==l){n=H(n),r=H(r);var h=a%360*q,u=U(h),g=F(h),f=Math.PI,p=2*f,c=(t-s)/2,d=(e-l)/2,m=u*c+g*d,v=-g*c+u*d,x=m*m,y=v*v,w=x/(n*n)+y/(r*r);1<w&&(n=$(w)*n,r=$(w)*r);var P=n*n,b=r*r,M=(P*b-P*y-b*x)/(P*y+b*x);M<0&&(M=0);var R=(o===i?-1:1)*$(M),L=n*v/r*R,T=-r*m/n*R,S=u*L-g*T+(t+s)/2,_=g*L+u*T+(e+l)/2,C=(m-L)/n,N=(v-T)/r,A=(-m-L)/n,B=(-v-T)/r,O=C*C+N*N,E=(N<0?-1:1)*Math.acos(C/$(O)),G=(C*B-N*A<0?-1:1)*Math.acos((C*A+N*B)/$(O*(A*A+B*B)));isNaN(G)&&(G=f),!i&&0<G?G-=p:i&&G<0&&(G+=p),E%=p,G%=p;var I,D=Math.ceil(H(G)/(p/4)),X=[],z=G/D,k=4/3*F(z/2)/(1+U(z/2)),Z=u*n,V=g*n,Y=g*-r,j=u*r;for(I=0;I<D;I++)m=U(a=E+I*z),v=F(a),C=U(a+=z),N=F(a),X.push(m-k*v,v+k*m,C+k*N,N-k*C,C,N);for(I=0;I<X.length;I+=2)m=X[I],v=X[I+1],X[I]=m*Z+v*Y+S,X[I+1]=m*V+v*j+_;return X[I-2]=s,X[I-1]=l,X}}function stringToRawPath(t){function Af(t,e,n,r){u=(n-t)/3,g=(r-e)/3,s.push(t+u,e+g,n-u,r-g,n,r)}var e,n,r,a,o,i,s,l,h,u,g,f,p,c,d,m=(t+"").replace(L,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(M)||[],v=[],x=0,y=0,w=m.length,P=0,b="ERROR: malformed path: "+t;if(!t||!isNaN(m[0])||isNaN(m[1]))return console.log(b),v;for(e=0;e<w;e++)if(p=o,isNaN(m[e])?i=(o=m[e].toUpperCase())!==m[e]:e--,r=+m[e+1],a=+m[e+2],i&&(r+=x,a+=y),e||(l=r,h=a),"M"===o)s&&(s.length<8?--v.length:P+=s.length),x=l=r,y=h=a,s=[r,a],v.push(s),e+=2,o="L";else if("C"===o)i||(x=y=0),(s=s||[0,0]).push(r,a,x+1*m[e+3],y+1*m[e+4],x+=1*m[e+5],y+=1*m[e+6]),e+=6;else if("S"===o)u=x,g=y,"C"!==p&&"S"!==p||(u+=x-s[s.length-4],g+=y-s[s.length-3]),i||(x=y=0),s.push(u,g,r,a,x+=1*m[e+3],y+=1*m[e+4]),e+=4;else if("Q"===o)u=x+2/3*(r-x),g=y+2/3*(a-y),i||(x=y=0),x+=1*m[e+3],y+=1*m[e+4],s.push(u,g,x+2/3*(r-x),y+2/3*(a-y),x,y),e+=4;else if("T"===o)u=x-s[s.length-4],g=y-s[s.length-3],s.push(x+u,y+g,r+2/3*(x+1.5*u-r),a+2/3*(y+1.5*g-a),x=r,y=a),e+=2;else if("H"===o)Af(x,y,x=r,y),e+=1;else if("V"===o)Af(x,y,x,y=r+(i?y-x:0)),e+=1;else if("L"===o||"Z"===o)"Z"===o&&(r=l,a=h,s.closed=!0),("L"===o||.5<H(x-r)||.5<H(y-a))&&(Af(x,y,r,a),"L"===o&&(e+=2)),x=r,y=a;else if("A"===o){if(c=m[e+4],d=m[e+5],u=m[e+6],g=m[e+7],n=7,1<c.length&&(c.length<3?(g=u,u=d,n--):(g=d,u=c.substr(2),n-=2),d=c.charAt(1),c=c.charAt(0)),f=arcToSegment(x,y,+m[e+1],+m[e+2],+m[e+3],+c,+d,(i?x:0)+1*u,(i?y:0)+1*g),e+=n,f)for(n=0;n<f.length;n++)s.push(f[n]);x=s[s.length-2],y=s[s.length-1]}else console.log(b);return(e=s.length)<6?(v.pop(),e=0):s[0]===s[e-2]&&s[1]===s[e-1]&&(s.closed=!0),v.totalPoints=P+e,v}function flatPointsToSegment(t,e){void 0===e&&(e=1);for(var n=t[0],r=0,a=[n,r],o=2;o<t.length;o+=2)a.push(n,r,t[o],r=(t[o]-n)*e/2,n=t[o],-r);return a}function pointsToSegment(t,e){H(t[0]-t[2])<1e-4&&H(t[1]-t[3])<1e-4&&(t=t.slice(2));var n,r,a,o,i,s,l,h,u,g,f,p,c,d,m=t.length-2,v=+t[0],x=+t[1],y=+t[2],w=+t[3],P=[v,x,v,x],b=y-v,M=w-x,R=Math.abs(t[m]-v)<.001&&Math.abs(t[m+1]-x)<.001;for(R&&(t.push(y,w),y=v,w=x,v=t[m-2],x=t[m-1],t.unshift(v,x),m+=4),e=e||0===e?+e:1,a=2;a<m;a+=2)n=v,r=x,v=y,x=w,y=+t[a+2],w=+t[a+3],v===y&&x===w||(o=b,i=M,b=y-v,M=w-x,h=((s=$(o*o+i*i))+(l=$(b*b+M*M)))*e*.25/$(Math.pow(b/l+o/s,2)+Math.pow(M/l+i/s,2)),f=v-((u=v-(v-n)*(s?h/s:0))+(((g=v+(y-v)*(l?h/l:0))-u)*(3*s/(s+l)+.5)/4||0)),d=x-((p=x-(x-r)*(s?h/s:0))+(((c=x+(w-x)*(l?h/l:0))-p)*(3*s/(s+l)+.5)/4||0)),v===n&&x===r||P.push(N(u+f),N(p+d),N(v),N(x),N(g+f),N(c+d)));return v!==y||x!==w||P.length<4?P.push(N(y),N(w),N(y),N(w)):P.length-=2,2===P.length?P.push(v,x,v,x,v,x):R&&(P.splice(0,6),P.length=P.length-6),P}function rawPathToString(t){h(t[0])&&(t=[t]);var e,n,r,a,o="",i=t.length;for(n=0;n<i;n++){for(a=t[n],o+="M"+N(a[0])+","+N(a[1])+" C",e=a.length,r=2;r<e;r++)o+=N(a[r++])+","+N(a[r++])+" "+N(a[r++])+","+N(a[r++])+" "+N(a[r++])+","+N(a[r])+" ";a.closed&&(o+="z")}return o}function R(t){var e=t.ownerDocument||t;!(D in t.style)&&"msTransform"in t.style&&(z=(D="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(v=window,E=new Y,e){w=(c=e).documentElement,P=e.body,(G=c.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=e.createElement("div"),r=e.createElement("div");P.appendChild(n),n.appendChild(r),n.style.position="static",n.style[D]="translate3d(0,0,1px)",I=r.offsetParent!==n,P.removeChild(n)}return e}function X(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function Z(t,e){if(t.parentNode&&(c||R(t))){var n=X(t),r=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?e?"rect":"g":"div",o=2!==e?0:100,i=3===e?100:0,s="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=c.createElementNS?c.createElementNS(r.replace(/^https/,"http"),a):c.createElement(a);return e&&(n?(b=b||Z(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+o+","+i+")"),b.appendChild(l)):(f||((f=Z(t)).style.cssText=s),l.style.cssText=s+"width:0.1px;height:0.1px;top:"+i+"px;left:"+o+"px",f.appendChild(l))),l}throw"Need document and parent."}function aa(t,e){var n,r,a,o,i,s,l=X(t),h=t===l,u=l?k:V,g=t.parentNode;if(t===v)return t;if(u.length||u.push(Z(t,1),Z(t,2),Z(t,3)),n=l?b:f,l)h?(o=-(a=function _getCTM(t){var e,n=t.getCTM();return n||(e=t.style[D],t.style[D]="none",t.appendChild(G),n=G.getCTM(),t.removeChild(G),e?t.style[D]=e:t.style.removeProperty(D.replace(/([A-Z])/g,"-$1").toLowerCase())),n||E.clone()}(t)).e/a.a,i=-a.f/a.d,r=E):(a=t.getBBox(),o=(r=(r=t.transform?t.transform.baseVal:{}).numberOfItems?1<r.numberOfItems?function _consolidate(t){for(var e=new Y,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(r):r.getItem(0).matrix:E).a*a.x+r.c*a.y,i=r.b*a.x+r.d*a.y),e&&"g"===t.tagName.toLowerCase()&&(o=i=0),(h?l:g).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+o)+","+(r.f+i)+")");else{if(o=i=0,I)for(r=t.offsetParent,a=t;(a=a&&a.parentNode)&&a!==r&&a.parentNode;)4<(v.getComputedStyle(a)[D]+"").length&&(o=a.offsetLeft,i=a.offsetTop,a=0);if("absolute"!==(s=v.getComputedStyle(t)).position&&"fixed"!==s.position)for(r=t.offsetParent;g&&g!==r;)o+=g.scrollLeft||0,i+=g.scrollTop||0,g=g.parentNode;(a=n.style).top=t.offsetTop-i+"px",a.left=t.offsetLeft-o+"px",a[D]=s[D],a[z]=s[z],a.position="fixed"===s.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n}function ba(t,e,n,r,a,o,i){return t.a=e,t.b=n,t.c=r,t.d=a,t.e=o,t.f=i,t}var c,v,w,P,f,b,E,G,I,n,D="transform",z=D+"Origin",k=[],V=[],Y=((n=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,n=this.c,r=this.d,a=this.e,o=this.f,i=t*r-e*n||1e-10;return ba(this,r/i,-e/i,-n/i,t/i,(n*o-r*a)/i,-(t*o-e*a)/i)},n.multiply=function multiply(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f,s=t.a,l=t.c,h=t.b,u=t.d,g=t.e,f=t.f;return ba(this,s*e+h*r,s*n+h*a,l*e+u*r,l*n+u*a,o+g*e+f*r,i+g*n+f*a)},n.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},n.equals=function equals(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f;return e===t.a&&n===t.b&&r===t.c&&a===t.d&&o===t.e&&i===t.f},n.apply=function apply(t,e){void 0===e&&(e={});var n=t.x,r=t.y,a=this.a,o=this.b,i=this.c,s=this.d,l=this.e,h=this.f;return e.x=n*a+r*i+l||0,e.y=n*o+r*s+h||0,e},Matrix2D);function Matrix2D(t,e,n,r,a,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===a&&(a=0),void 0===o&&(o=0),ba(this,t,e,n,r,a,o)}function getGlobalMatrix(t,e,n,r){if(!t||!t.parentNode||(c||R(t)).documentElement===t)return new Y;var a=function _forceNonZeroScale(t){for(var e,n;t&&t!==P;)(n=t._gsap)&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t),o=X(t)?k:V,i=aa(t,n),s=o[0].getBoundingClientRect(),l=o[1].getBoundingClientRect(),h=o[2].getBoundingClientRect(),u=i.parentNode,g=!r&&function _isFixed(t){return"fixed"===v.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(t),f=new Y((l.left-s.left)/100,(l.top-s.top)/100,(h.left-s.left)/100,(h.top-s.top)/100,s.left+(g?0:function _getDocScrollLeft(){return v.pageXOffset||c.scrollLeft||w.scrollLeft||P.scrollLeft||0}()),s.top+(g?0:function _getDocScrollTop(){return v.pageYOffset||c.scrollTop||w.scrollTop||P.scrollTop||0}()));if(u.removeChild(i),a)for(s=a.length;s--;)(l=a[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return e?f.inverse():f}function la(t,e,n,r){for(var a=e.length,o=2===r?0:r,i=0;i<a;i++)t[o]=parseFloat(e[i][n]),2===r&&(t[o+1]=0),o+=2;return t}function ma(t,e,n){return parseFloat(t._gsap.get(t,e,n||"px"))||0}function na(t){var e,n=t[0],r=t[1];for(e=2;e<t.length;e+=2)n=t[e]+=n,r=t[e+1]+=r}function oa(t,e,n,r,a,o,i,s,l){return e="cubic"===i.type?[e]:(!1!==i.fromCurrent&&e.unshift(ma(n,r,s),a?ma(n,a,l):0),i.relative&&na(e),[(a?pointsToSegment:flatPointsToSegment)(e,i.curviness)]),e=o(et(e,n,i)),nt(t,n,r,e,"x",s),a&&nt(t,n,a,e,"y",l),cacheRawPathMeasurements(e,i.resolution||(0===i.curviness?20:12))}function pa(t){return t}function ra(t,e,n){var r,a=getGlobalMatrix(t),o=0,i=0;return"svg"===(t.tagName+"").toLowerCase()?(r=t.viewBox.baseVal).width||(r={width:+t.getAttribute("width"),height:+t.getAttribute("height")}):r=e&&t.getBBox&&t.getBBox(),e&&"auto"!==e&&(o=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,i=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),n.apply(o||i?a.apply({x:o,y:i}):{x:a.e,y:a.f})}function sa(t,e,n,r){var a,o=getGlobalMatrix(t.parentNode,!0,!0),i=o.clone().multiply(getGlobalMatrix(e)),s=ra(t,n,o),l=ra(e,r,o),h=l.x,u=l.y;return i.e=i.f=0,"auto"===r&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(a=e.getAttribute("d").match(tt)||[],h+=(a=i.apply({x:+a[0],y:+a[1]})).x,u+=a.y),(a||e.getBBox&&t.getBBox&&e.ownerSVGElement===t.ownerSVGElement)&&(h-=(a=i.apply(e.getBBox())).x,u-=a.y),i.e=h-s.x,i.f=u-s.y,i}var j,g,Q,W,J="x,translateX,left,marginLeft,xPercent".split(","),K="y,translateY,top,marginTop,yPercent".split(","),o=Math.PI/180,tt=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,et=function _align(t,e,n){var r,a,o,i=n.align,s=n.matrix,l=n.offsetX,h=n.offsetY,u=n.alignOrigin,g=t[0][0],f=t[0][1],p=ma(e,"x"),c=ma(e,"y");return t&&t.length?(i&&("self"===i||(r=W(i)[0]||e)===e?transformRawPath(t,1,0,0,1,p-g,c-f):(u&&!1!==u[2]?j.set(e,{transformOrigin:100*u[0]+"% "+100*u[1]+"%"}):u=[ma(e,"xPercent")/-100,ma(e,"yPercent")/-100],o=(a=sa(e,r,u,"auto")).apply({x:g,y:f}),transformRawPath(t,a.a,a.b,a.c,a.d,p+a.e-(o.x-a.e),c+a.f-(o.y-a.f)))),s?transformRawPath(t,s.a,s.b,s.c,s.d,s.e,s.f):(l||h)&&transformRawPath(t,1,0,0,1,l||0,h||0),t):getRawPath("M0,0L0,0")},nt=function _addDimensionalPropTween(t,e,n,r,a,o){var i=e._gsap,s=i.harness,l=s&&s.aliases&&s.aliases[n],h=l&&l.indexOf(",")<0?l:n,u=t._pt=new g(t._pt,e,h,0,0,pa,0,i.set(e,h,t));u.u=Q(i.get(e,h,o))||0,u.path=r,u.pp=a,t._props.push(h)},a={version:"3.10.2",name:"motionPath",register:function register(t,e,n){Q=(j=t).utils.getUnit,W=j.utils.toArray,g=n},init:function init(t,e){if(!j)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var n,r,a=[],o=e.path,i=e.autoRotate,s=e.unitX,l=e.unitY,h=e.x,u=e.y,g=o[0],f=function _sliceModifier(e,n){return function(t){return e||1!==n?sliceRawPath(t,e,n):t}}(e.start,"end"in e?e.end:1);if(this.rawPaths=a,this.target=t,(this.rotate=i||0===i)&&(this.rOffset=parseFloat(i)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=Q(t._gsap.get(t,this.rProp))||0),!Array.isArray(o)||"closed"in o||"number"==typeof g)cacheRawPathMeasurements(n=f(et(getRawPath(e.path),t,e)),e.resolution),a.push(n),nt(this,t,e.x||"x",n,"x",e.unitX||"px"),nt(this,t,e.y||"y",n,"y",e.unitY||"px");else{for(r in g)!h&&~J.indexOf(r)?h=r:!u&&~K.indexOf(r)&&(u=r);for(r in h&&u?a.push(oa(this,la(la([],o,h,0),o,u,1),t,h,u,f,e,s||Q(o[0][h]),l||Q(o[0][u]))):h=u=0,g)r!==h&&r!==u&&a.push(oa(this,la([],o,r,2),t,r,0,f,e,Q(o[0][r])))}},render:function render(t,e){var n=e.rawPaths,r=n.length,a=e._pt;for(1<t?t=1:t<0&&(t=0);r--;)getPositionOnPath(n[r],t,!r&&e.rotate,n[r]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,t),a=a._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?o:1)+e.rOffset+e.ru,e,t)},getLength:function getLength(t){return cacheRawPathMeasurements(getRawPath(t)).totalLength},sliceRawPath:sliceRawPath,getRawPath:getRawPath,pointsToSegment:pointsToSegment,stringToRawPath:stringToRawPath,rawPathToString:rawPathToString,transformRawPath:transformRawPath,getGlobalMatrix:getGlobalMatrix,getPositionOnPath:getPositionOnPath,cacheRawPathMeasurements:cacheRawPathMeasurements,convertToPath:function convertToPath$1(t,e){return W(t).map(function(t){return convertToPath(t,!1!==e)})},convertCoordinates:function convertCoordinates(t,e,n){var r=getGlobalMatrix(e,!0,!0).multiply(getGlobalMatrix(t));return n?r.apply(n):r},getAlignMatrix:sa,getRelativePosition:function getRelativePosition(t,e,n,r){var a=sa(t,e,n,r);return{x:a.e,y:a.f}},arrayToRawPath:function arrayToRawPath(t,e){var n=la(la([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&na(n),["cubic"===e.type?n:pointsToSegment(n,e.curviness)]}};!function _getGSAP(){return j||"undefined"!=typeof window&&(j=window.gsap)&&j.registerPlugin&&j}()||j.registerPlugin(a),t.MotionPathPlugin=a,t.default=a;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function p(t){return"string"==typeof t}function x(t){return Math.round(1e10*t)/1e10||0}function y(t,e,n,r){var a=t[e],o=1===r?6:subdivideSegment(a,n,r);if(o&&o+n+2<a.length)return t.splice(e,0,a.slice(0,n+o+2)),a.splice(0,n+o),1}function C(t,e){var n=t.length,r=t[n-1]||[],a=r.length;n&&e[0]===r[a-2]&&e[1]===r[a-1]&&(e=r.concat(e.slice(2)),n--),t[n]=e}var M=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,T=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,L=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,q=Math.PI/180,s=180/Math.PI,F=Math.sin,U=Math.cos,H=Math.abs,$=Math.sqrt,l=Math.atan2,A=1e8,h=function _isNumber(t){return"number"==typeof t},S={},_={},e=1e5,d=function _wrapProgress(t){return Math.round((t+A)%1*e)/e||(t<0?0:1)},N=function _round(t){return Math.round(t*e)/e||0},m=function _getSampleIndex(t,e,n){var r=t.length,a=~~(n*r);if(t[a]>e){for(;--a&&t[a]>e;);a<0&&(a=0)}else for(;t[++a]<e&&a<r;);return a<r?a:r-1},B=function _copyMetaData(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e};function getRawPath(t){var e,n=(t=p(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(e=n._gsPath[t])&&!e._dirty?e:n._gsPath[t]=stringToRawPath(t)):t?p(t)?stringToRawPath(t):h(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function reverseSegment(t){var e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}var O={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function convertToPath(t,e){var n,r,a,o,i,s,l,h,u,g,f,p,c,d,m,v,x,y,w,P,b,M,R=t.tagName.toLowerCase(),L=.552284749831;return"path"!==R&&t.getBBox?(s=function _createPath(t,e){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),a=[].slice.call(t.attributes),o=a.length;for(e=","+e+",";-1<--o;)n=a[o].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,a[o].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),M=function _attrToObj(t,e){for(var n=e?e.split(","):[],r={},a=n.length;-1<--a;)r[n[a]]=+t.getAttribute(n[a])||0;return r}(t,O[R]),"rect"===R?(o=M.rx,i=M.ry||o,r=M.x,a=M.y,g=M.width-2*o,f=M.height-2*i,n=o||i?"M"+(v=(d=(c=r+o)+g)+o)+","+(y=a+i)+" V"+(w=y+f)+" C"+[v,P=w+i*L,m=d+o*L,b=w+i,d,b,d-(d-c)/3,b,c+(d-c)/3,b,c,b,p=r+o*(1-L),b,r,P,r,w,r,w-(w-y)/3,r,y+(w-y)/3,r,y,r,x=a+i*(1-L),p,a,c,a,c+(d-c)/3,a,d-(d-c)/3,a,d,a,m,a,v,x,v,y].join(",")+"z":"M"+(r+g)+","+a+" v"+f+" h"+-g+" v"+-f+" h"+g+"z"):"circle"===R||"ellipse"===R?(h="circle"===R?(o=i=M.r)*L:(o=M.rx,(i=M.ry)*L),n="M"+((r=M.cx)+o)+","+(a=M.cy)+" C"+[r+o,a+h,r+(l=o*L),a+i,r,a+i,r-l,a+i,r-o,a+h,r-o,a,r-o,a-h,r-l,a-i,r,a-i,r+l,a-i,r+o,a-h,r+o,a].join(",")+"z"):"line"===R?n="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==R&&"polygon"!==R||(n="M"+(r=(u=(t.getAttribute("points")+"").match(T)||[]).shift())+","+(a=u.shift())+" L"+u.join(","),"polygon"===R&&(n+=","+r+","+a+"z")),s.setAttribute("d",rawPathToString(s._gsRawPath=stringToRawPath(n))),e&&t.parentNode&&(t.parentNode.insertBefore(s,t),t.parentNode.removeChild(t)),s):t}function getRotationAtBezierT(t,e,n){var r,a=t[e],o=t[e+2],i=t[e+4];return a+=(o-a)*n,a+=((o+=(i-o)*n)-a)*n,r=o+(i+(t[e+6]-i)*n-o)*n-a,a=t[e+1],a+=((o=t[e+3])-a)*n,a+=((o+=((i=t[e+5])-o)*n)-a)*n,N(l(o+(i+(t[e+7]-i)*n-o)*n-a,r)*s)}function sliceRawPath(t,e,n){n=function _isUndefined(t){return void 0===t}(n)?1:x(n)||0,e=x(e)||0;var r=Math.max(0,~~(H(n-e)-1e-8)),a=function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=B(t[n],t[n].slice(0));return B(t,e)}(t);if(n<e&&(e=1-e,n=1-n,function _reverseRawPath(t,e){var n=t.length;for(e||t.reverse();n--;)t[n].reversed||reverseSegment(t[n])}(a),a.totalLength=0),e<0||n<0){var o=Math.abs(~~Math.min(e,n))+1;e+=o,n+=o}a.totalLength||cacheRawPathMeasurements(a);var i,s,l,h,u,g,f,p,c=1<n,d=getProgressData(a,e,S,!0),m=getProgressData(a,n,_),v=m.segment,w=d.segment,P=m.segIndex,b=d.segIndex,M=m.i,R=d.i,L=b===P,T=M===R&&L;if(c||r){for(i=P<b||L&&M<R||T&&m.t<d.t,y(a,b,R,d.t)&&(b++,i||(P++,T?(m.t=(m.t-d.t)/(1-d.t),M=0):L&&(M-=R))),Math.abs(1-(n-e))<1e-5?P=b-1:!m.t&&P?P--:y(a,P,M,m.t)&&i&&b++,1===d.t&&(b=(b+1)%a.length),u=[],f=1+(g=a.length)*r,f+=(g-(p=b)+P)%g,h=0;h<f;h++)C(u,a[p++%g]);a=u}else if(l=1===m.t?6:subdivideSegment(v,M,m.t),e!==n)for(s=subdivideSegment(w,R,T?d.t/m.t:d.t),L&&(l+=s),v.splice(M+l+2),(s||R)&&w.splice(0,R+s),h=a.length;h--;)(h<b||P<h)&&a.splice(h,1);else v.angle=getRotationAtBezierT(v,M+l,0),d=v[M+=l],m=v[M+1],v.length=v.totalLength=0,v.totalPoints=a.totalPoints=8,v.push(d,m,d,m,d,m,d,m);return a.totalLength=0,a}function measureSegment(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var r,a,o,i,s,l,h,u,g,f,p,c,d,m,v,x,y,w=~~t.resolution||12,P=1/w,b=n?e+6*n+1:t.length,M=t[e],R=t[e+1],L=e?e/6*w:0,T=t.samples,S=t.lookup,_=(e?t.minLength:A)||A,C=T[L+n*w-1],N=e?T[L-1]:0;for(T.length=S.length=0,a=e+2;a<b;a+=6){if(o=t[a+4]-M,i=t[a+2]-M,s=t[a]-M,u=t[a+5]-R,g=t[a+3]-R,f=t[a+1]-R,l=h=p=c=0,H(o)<.01&&H(u)<.01&&H(s)+H(f)<.01)8<t.length&&(t.splice(a,6),a-=6,b-=6);else for(r=1;r<=w;r++)l=h-(h=((m=P*r)*m*o+3*(d=1-m)*(m*i+d*s))*m),p=c-(c=(m*m*u+3*d*(m*g+d*f))*m),(x=$(p*p+l*l))<_&&(_=x),N+=x,T[L++]=N;M+=o,R+=u}if(C)for(C-=N;L<T.length;L++)T[L]+=C;if(T.length&&_){if(t.totalLength=y=T[T.length-1]||0,y/(t.minLength=_)<9999)for(x=v=0,r=0;r<y;r+=_)S[x++]=T[v]<r?++v:v}else t.totalLength=T[0]=0;return e?N-T[e/2-1]:N}function cacheRawPathMeasurements(t,e){var n,r,a;for(a=n=r=0;a<t.length;a++)t[a].resolution=~~e||12,r+=t[a].length,n+=measureSegment(t[a]);return t.totalPoints=r,t.totalLength=n,t}function subdivideSegment(t,e,n){if(n<=0||1<=n)return 0;var r=t[e],a=t[e+1],o=t[e+2],i=t[e+3],s=t[e+4],l=t[e+5],h=r+(o-r)*n,u=o+(s-o)*n,g=a+(i-a)*n,f=i+(l-i)*n,p=h+(u-h)*n,c=g+(f-g)*n,d=s+(t[e+6]-s)*n,m=l+(t[e+7]-l)*n;return u+=(d-u)*n,f+=(m-f)*n,t.splice(e+2,4,N(h),N(g),N(p),N(c),N(p+(u-p)*n),N(c+(f-c)*n),N(u),N(f),N(d),N(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function getProgressData(t,e,n,r){n=n||{},t.totalLength||cacheRawPathMeasurements(t),(e<0||1<e)&&(e=d(e));var a,o,i,s,l,h,u,g=0,f=t[0];if(e)if(1===e)u=1,h=(f=t[g=t.length-1]).length-8;else{if(1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)g=h;e=(i-(s=l-(f=t[g]).totalLength))/(l-s)||0}a=f.samples,o=f.resolution,i=f.totalLength*e,s=(h=f.lookup.length?f.lookup[~~(i/f.minLength)]||0:m(a,i,e))?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),u=1/o*((i-s)/(l-s)+h%o),h=6*~~(h/o),r&&1===u&&(h+6<f.length?(h+=6,u=0):g+1<t.length&&(h=u=0,f=t[++g]))}else u=h=g=0,f=t[0];return n.t=u,n.i=h,n.path=t,n.segment=f,n.segIndex=g,n}function getPositionOnPath(t,e,n,r){var a,o,i,s,l,h,u,g,f,p=t[0],c=r||{};if((e<0||1<e)&&(e=d(e)),1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)p=t[h];e=(i-(s=l-p.totalLength))/(l-s)||0}return a=p.samples,o=p.resolution,i=p.totalLength*e,s=(h=p.lookup.length?p.lookup[e<1?~~(i/p.minLength):p.lookup.length-1]||0:m(a,i,e))?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),f=1-(u=1/o*((i-s)/(l-s)+h%o)||0),g=p[h=6*~~(h/o)],c.x=N((u*u*(p[h+6]-g)+3*f*(u*(p[h+4]-g)+f*(p[h+2]-g)))*u+g),c.y=N((u*u*(p[h+7]-(g=p[h+1]))+3*f*(u*(p[h+5]-g)+f*(p[h+3]-g)))*u+g),n&&(c.angle=p.totalLength?getRotationAtBezierT(p,h,1<=u?1-1e-9:u||1e-9):p.angle||0),c}function transformRawPath(t,e,n,r,a,o,i){for(var s,l,h,u,g,f=t.length;-1<--f;)for(l=(s=t[f]).length,h=0;h<l;h+=2)u=s[h],g=s[h+1],s[h]=u*e+g*r+o,s[h+1]=u*n+g*a+i;return t._dirty=1,t}function arcToSegment(t,e,n,r,a,o,i,s,l){if(t!==s||e!==l){n=H(n),r=H(r);var h=a%360*q,u=U(h),g=F(h),f=Math.PI,p=2*f,c=(t-s)/2,d=(e-l)/2,m=u*c+g*d,v=-g*c+u*d,x=m*m,y=v*v,w=x/(n*n)+y/(r*r);1<w&&(n=$(w)*n,r=$(w)*r);var P=n*n,b=r*r,M=(P*b-P*y-b*x)/(P*y+b*x);M<0&&(M=0);var R=(o===i?-1:1)*$(M),L=n*v/r*R,T=-r*m/n*R,S=u*L-g*T+(t+s)/2,_=g*L+u*T+(e+l)/2,C=(m-L)/n,N=(v-T)/r,A=(-m-L)/n,B=(-v-T)/r,O=C*C+N*N,E=(N<0?-1:1)*Math.acos(C/$(O)),G=(C*B-N*A<0?-1:1)*Math.acos((C*A+N*B)/$(O*(A*A+B*B)));isNaN(G)&&(G=f),!i&&0<G?G-=p:i&&G<0&&(G+=p),E%=p,G%=p;var I,D=Math.ceil(H(G)/(p/4)),X=[],z=G/D,k=4/3*F(z/2)/(1+U(z/2)),Z=u*n,V=g*n,Y=g*-r,j=u*r;for(I=0;I<D;I++)m=U(a=E+I*z),v=F(a),C=U(a+=z),N=F(a),X.push(m-k*v,v+k*m,C+k*N,N-k*C,C,N);for(I=0;I<X.length;I+=2)m=X[I],v=X[I+1],X[I]=m*Z+v*Y+S,X[I+1]=m*V+v*j+_;return X[I-2]=s,X[I-1]=l,X}}function stringToRawPath(t){function Af(t,e,n,r){u=(n-t)/3,g=(r-e)/3,s.push(t+u,e+g,n-u,r-g,n,r)}var e,n,r,a,o,i,s,l,h,u,g,f,p,c,d,m=(t+"").replace(L,function(t){var e=+t;return e<1e-4&&-1e-4<e?0:e}).match(M)||[],v=[],x=0,y=0,w=m.length,P=0,b="ERROR: malformed path: "+t;if(!t||!isNaN(m[0])||isNaN(m[1]))return console.log(b),v;for(e=0;e<w;e++)if(p=o,isNaN(m[e])?i=(o=m[e].toUpperCase())!==m[e]:e--,r=+m[e+1],a=+m[e+2],i&&(r+=x,a+=y),e||(l=r,h=a),"M"===o)s&&(s.length<8?--v.length:P+=s.length),x=l=r,y=h=a,s=[r,a],v.push(s),e+=2,o="L";else if("C"===o)i||(x=y=0),(s=s||[0,0]).push(r,a,x+1*m[e+3],y+1*m[e+4],x+=1*m[e+5],y+=1*m[e+6]),e+=6;else if("S"===o)u=x,g=y,"C"!==p&&"S"!==p||(u+=x-s[s.length-4],g+=y-s[s.length-3]),i||(x=y=0),s.push(u,g,r,a,x+=1*m[e+3],y+=1*m[e+4]),e+=4;else if("Q"===o)u=x+2/3*(r-x),g=y+2/3*(a-y),i||(x=y=0),x+=1*m[e+3],y+=1*m[e+4],s.push(u,g,x+2/3*(r-x),y+2/3*(a-y),x,y),e+=4;else if("T"===o)u=x-s[s.length-4],g=y-s[s.length-3],s.push(x+u,y+g,r+2/3*(x+1.5*u-r),a+2/3*(y+1.5*g-a),x=r,y=a),e+=2;else if("H"===o)Af(x,y,x=r,y),e+=1;else if("V"===o)Af(x,y,x,y=r+(i?y-x:0)),e+=1;else if("L"===o||"Z"===o)"Z"===o&&(r=l,a=h,s.closed=!0),("L"===o||.5<H(x-r)||.5<H(y-a))&&(Af(x,y,r,a),"L"===o&&(e+=2)),x=r,y=a;else if("A"===o){if(c=m[e+4],d=m[e+5],u=m[e+6],g=m[e+7],n=7,1<c.length&&(c.length<3?(g=u,u=d,n--):(g=d,u=c.substr(2),n-=2),d=c.charAt(1),c=c.charAt(0)),f=arcToSegment(x,y,+m[e+1],+m[e+2],+m[e+3],+c,+d,(i?x:0)+1*u,(i?y:0)+1*g),e+=n,f)for(n=0;n<f.length;n++)s.push(f[n]);x=s[s.length-2],y=s[s.length-1]}else console.log(b);return(e=s.length)<6?(v.pop(),e=0):s[0]===s[e-2]&&s[1]===s[e-1]&&(s.closed=!0),v.totalPoints=P+e,v}function flatPointsToSegment(t,e){void 0===e&&(e=1);for(var n=t[0],r=0,a=[n,r],o=2;o<t.length;o+=2)a.push(n,r,t[o],r=(t[o]-n)*e/2,n=t[o],-r);return a}function pointsToSegment(t,e){H(t[0]-t[2])<1e-4&&H(t[1]-t[3])<1e-4&&(t=t.slice(2));var n,r,a,o,i,s,l,h,u,g,f,p,c,d,m=t.length-2,v=+t[0],x=+t[1],y=+t[2],w=+t[3],P=[v,x,v,x],b=y-v,M=w-x,R=Math.abs(t[m]-v)<.001&&Math.abs(t[m+1]-x)<.001;for(R&&(t.push(y,w),y=v,w=x,v=t[m-2],x=t[m-1],t.unshift(v,x),m+=4),e=e||0===e?+e:1,a=2;a<m;a+=2)n=v,r=x,v=y,x=w,y=+t[a+2],w=+t[a+3],v===y&&x===w||(o=b,i=M,b=y-v,M=w-x,h=((s=$(o*o+i*i))+(l=$(b*b+M*M)))*e*.25/$(Math.pow(b/l+o/s,2)+Math.pow(M/l+i/s,2)),f=v-((u=v-(v-n)*(s?h/s:0))+(((g=v+(y-v)*(l?h/l:0))-u)*(3*s/(s+l)+.5)/4||0)),d=x-((p=x-(x-r)*(s?h/s:0))+(((c=x+(w-x)*(l?h/l:0))-p)*(3*s/(s+l)+.5)/4||0)),v===n&&x===r||P.push(N(u+f),N(p+d),N(v),N(x),N(g+f),N(c+d)));return v!==y||x!==w||P.length<4?P.push(N(y),N(w),N(y),N(w)):P.length-=2,2===P.length?P.push(v,x,v,x,v,x):R&&(P.splice(0,6),P.length=P.length-6),P}function rawPathToString(t){h(t[0])&&(t=[t]);var e,n,r,a,o="",i=t.length;for(n=0;n<i;n++){for(a=t[n],o+="M"+N(a[0])+","+N(a[1])+" C",e=a.length,r=2;r<e;r++)o+=N(a[r++])+","+N(a[r++])+" "+N(a[r++])+","+N(a[r++])+" "+N(a[r++])+","+N(a[r])+" ";a.closed&&(o+="z")}return o}function R(t){var e=t.ownerDocument||t;!(D in t.style)&&"msTransform"in t.style&&(z=(D="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(v=window,E=new Y,e){w=(c=e).documentElement,P=e.body,(G=c.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=e.createElement("div"),r=e.createElement("div");P.appendChild(n),n.appendChild(r),n.style.position="static",n.style[D]="translate3d(0,0,1px)",I=r.offsetParent!==n,P.removeChild(n)}return e}function X(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function Z(t,e){if(t.parentNode&&(c||R(t))){var n=X(t),r=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?e?"rect":"g":"div",o=2!==e?0:100,i=3===e?100:0,s="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=c.createElementNS?c.createElementNS(r.replace(/^https/,"http"),a):c.createElement(a);return e&&(n?(b=b||Z(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+o+","+i+")"),b.appendChild(l)):(f||((f=Z(t)).style.cssText=s),l.style.cssText=s+"width:0.1px;height:0.1px;top:"+i+"px;left:"+o+"px",f.appendChild(l))),l}throw"Need document and parent."}function aa(t,e){var n,r,a,o,i,s,l=X(t),h=t===l,u=l?k:V,g=t.parentNode;if(t===v)return t;if(u.length||u.push(Z(t,1),Z(t,2),Z(t,3)),n=l?b:f,l)h?(o=-(a=function _getCTM(t){var e,n=t.getCTM();return n||(e=t.style[D],t.style[D]="none",t.appendChild(G),n=G.getCTM(),t.removeChild(G),e?t.style[D]=e:t.style.removeProperty(D.replace(/([A-Z])/g,"-$1").toLowerCase())),n||E.clone()}(t)).e/a.a,i=-a.f/a.d,r=E):t.getBBox?(a=t.getBBox(),o=(r=(r=t.transform?t.transform.baseVal:{}).numberOfItems?1<r.numberOfItems?function _consolidate(t){for(var e=new Y,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(r):r.getItem(0).matrix:E).a*a.x+r.c*a.y,i=r.b*a.x+r.d*a.y):(r=new Y,o=i=0),e&&"g"===t.tagName.toLowerCase()&&(o=i=0),(h?l:g).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+o)+","+(r.f+i)+")");else{if(o=i=0,I)for(r=t.offsetParent,a=t;(a=a&&a.parentNode)&&a!==r&&a.parentNode;)4<(v.getComputedStyle(a)[D]+"").length&&(o=a.offsetLeft,i=a.offsetTop,a=0);if("absolute"!==(s=v.getComputedStyle(t)).position&&"fixed"!==s.position)for(r=t.offsetParent;g&&g!==r;)o+=g.scrollLeft||0,i+=g.scrollTop||0,g=g.parentNode;(a=n.style).top=t.offsetTop-i+"px",a.left=t.offsetLeft-o+"px",a[D]=s[D],a[z]=s[z],a.position="fixed"===s.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n}function ba(t,e,n,r,a,o,i){return t.a=e,t.b=n,t.c=r,t.d=a,t.e=o,t.f=i,t}var c,v,w,P,f,b,E,G,I,n,D="transform",z=D+"Origin",k=[],V=[],Y=((n=Matrix2D.prototype).inverse=function inverse(){var t=this.a,e=this.b,n=this.c,r=this.d,a=this.e,o=this.f,i=t*r-e*n||1e-10;return ba(this,r/i,-e/i,-n/i,t/i,(n*o-r*a)/i,-(t*o-e*a)/i)},n.multiply=function multiply(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f,s=t.a,l=t.c,h=t.b,u=t.d,g=t.e,f=t.f;return ba(this,s*e+h*r,s*n+h*a,l*e+u*r,l*n+u*a,o+g*e+f*r,i+g*n+f*a)},n.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},n.equals=function equals(t){var e=this.a,n=this.b,r=this.c,a=this.d,o=this.e,i=this.f;return e===t.a&&n===t.b&&r===t.c&&a===t.d&&o===t.e&&i===t.f},n.apply=function apply(t,e){void 0===e&&(e={});var n=t.x,r=t.y,a=this.a,o=this.b,i=this.c,s=this.d,l=this.e,h=this.f;return e.x=n*a+r*i+l||0,e.y=n*o+r*s+h||0,e},Matrix2D);function Matrix2D(t,e,n,r,a,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===a&&(a=0),void 0===o&&(o=0),ba(this,t,e,n,r,a,o)}function getGlobalMatrix(t,e,n,r){if(!t||!t.parentNode||(c||R(t)).documentElement===t)return new Y;var a=function _forceNonZeroScale(t){for(var e,n;t&&t!==P;)(n=t._gsap)&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t),o=X(t)?k:V,i=aa(t,n),s=o[0].getBoundingClientRect(),l=o[1].getBoundingClientRect(),h=o[2].getBoundingClientRect(),u=i.parentNode,g=!r&&function _isFixed(t){return"fixed"===v.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(t),f=new Y((l.left-s.left)/100,(l.top-s.top)/100,(h.left-s.left)/100,(h.top-s.top)/100,s.left+(g?0:function _getDocScrollLeft(){return v.pageXOffset||c.scrollLeft||w.scrollLeft||P.scrollLeft||0}()),s.top+(g?0:function _getDocScrollTop(){return v.pageYOffset||c.scrollTop||w.scrollTop||P.scrollTop||0}()));if(u.removeChild(i),a)for(s=a.length;s--;)(l=a[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return e?f.inverse():f}function la(t,e,n,r){for(var a=e.length,o=2===r?0:r,i=0;i<a;i++)t[o]=parseFloat(e[i][n]),2===r&&(t[o+1]=0),o+=2;return t}function ma(t,e,n){return parseFloat(t._gsap.get(t,e,n||"px"))||0}function na(t){var e,n=t[0],r=t[1];for(e=2;e<t.length;e+=2)n=t[e]+=n,r=t[e+1]+=r}function oa(t,e,n,r,a,o,i,s,l){return e="cubic"===i.type?[e]:(!1!==i.fromCurrent&&e.unshift(ma(n,r,s),a?ma(n,a,l):0),i.relative&&na(e),[(a?pointsToSegment:flatPointsToSegment)(e,i.curviness)]),e=o(et(e,n,i)),nt(t,n,r,e,"x",s),a&&nt(t,n,a,e,"y",l),cacheRawPathMeasurements(e,i.resolution||(0===i.curviness?20:12))}function pa(t){return t}function ra(t,e,n){var r,a=getGlobalMatrix(t),o=0,i=0;return"svg"===(t.tagName+"").toLowerCase()?(r=t.viewBox.baseVal).width||(r={width:+t.getAttribute("width"),height:+t.getAttribute("height")}):r=e&&t.getBBox&&t.getBBox(),e&&"auto"!==e&&(o=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,i=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),n.apply(o||i?a.apply({x:o,y:i}):{x:a.e,y:a.f})}function sa(t,e,n,r){var a,o=getGlobalMatrix(t.parentNode,!0,!0),i=o.clone().multiply(getGlobalMatrix(e)),s=ra(t,n,o),l=ra(e,r,o),h=l.x,u=l.y;return i.e=i.f=0,"auto"===r&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(a=e.getAttribute("d").match(tt)||[],h+=(a=i.apply({x:+a[0],y:+a[1]})).x,u+=a.y),(a||e.getBBox&&t.getBBox&&e.ownerSVGElement===t.ownerSVGElement)&&(h-=(a=i.apply(e.getBBox())).x,u-=a.y),i.e=h-s.x,i.f=u-s.y,i}var j,g,Q,W,J="x,translateX,left,marginLeft,xPercent".split(","),K="y,translateY,top,marginTop,yPercent".split(","),o=Math.PI/180,tt=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,et=function _align(t,e,n){var r,a,o,i=n.align,s=n.matrix,l=n.offsetX,h=n.offsetY,u=n.alignOrigin,g=t[0][0],f=t[0][1],p=ma(e,"x"),c=ma(e,"y");return t&&t.length?(i&&("self"===i||(r=W(i)[0]||e)===e?transformRawPath(t,1,0,0,1,p-g,c-f):(u&&!1!==u[2]?j.set(e,{transformOrigin:100*u[0]+"% "+100*u[1]+"%"}):u=[ma(e,"xPercent")/-100,ma(e,"yPercent")/-100],o=(a=sa(e,r,u,"auto")).apply({x:g,y:f}),transformRawPath(t,a.a,a.b,a.c,a.d,p+a.e-(o.x-a.e),c+a.f-(o.y-a.f)))),s?transformRawPath(t,s.a,s.b,s.c,s.d,s.e,s.f):(l||h)&&transformRawPath(t,1,0,0,1,l||0,h||0),t):getRawPath("M0,0L0,0")},nt=function _addDimensionalPropTween(t,e,n,r,a,o){var i=e._gsap,s=i.harness,l=s&&s.aliases&&s.aliases[n],h=l&&l.indexOf(",")<0?l:n,u=t._pt=new g(t._pt,e,h,0,0,pa,0,i.set(e,h,t));u.u=Q(i.get(e,h,o))||0,u.path=r,u.pp=a,t._props.push(h)},a={version:"3.10.3",name:"motionPath",register:function register(t,e,n){Q=(j=t).utils.getUnit,W=j.utils.toArray,g=n},init:function init(t,e){if(!j)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var n,r,a=[],o=e.path,i=e.autoRotate,s=e.unitX,l=e.unitY,h=e.x,u=e.y,g=o[0],f=function _sliceModifier(e,n){return function(t){return e||1!==n?sliceRawPath(t,e,n):t}}(e.start,"end"in e?e.end:1);if(this.rawPaths=a,this.target=t,(this.rotate=i||0===i)&&(this.rOffset=parseFloat(i)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=Q(t._gsap.get(t,this.rProp))||0),!Array.isArray(o)||"closed"in o||"number"==typeof g)cacheRawPathMeasurements(n=f(et(getRawPath(e.path),t,e)),e.resolution),a.push(n),nt(this,t,e.x||"x",n,"x",e.unitX||"px"),nt(this,t,e.y||"y",n,"y",e.unitY||"px");else{for(r in g)!h&&~J.indexOf(r)?h=r:!u&&~K.indexOf(r)&&(u=r);for(r in h&&u?a.push(oa(this,la(la([],o,h,0),o,u,1),t,h,u,f,e,s||Q(o[0][h]),l||Q(o[0][u]))):h=u=0,g)r!==h&&r!==u&&a.push(oa(this,la([],o,r,2),t,r,0,f,e,Q(o[0][r])))}},render:function render(t,e){var n=e.rawPaths,r=n.length,a=e._pt;for(1<t?t=1:t<0&&(t=0);r--;)getPositionOnPath(n[r],t,!r&&e.rotate,n[r]);for(;a;)a.set(a.t,a.p,a.path[a.pp]+a.u,a.d,t),a=a._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?o:1)+e.rOffset+e.ru,e,t)},getLength:function getLength(t){return cacheRawPathMeasurements(getRawPath(t)).totalLength},sliceRawPath:sliceRawPath,getRawPath:getRawPath,pointsToSegment:pointsToSegment,stringToRawPath:stringToRawPath,rawPathToString:rawPathToString,transformRawPath:transformRawPath,getGlobalMatrix:getGlobalMatrix,getPositionOnPath:getPositionOnPath,cacheRawPathMeasurements:cacheRawPathMeasurements,convertToPath:function convertToPath$1(t,e){return W(t).map(function(t){return convertToPath(t,!1!==e)})},convertCoordinates:function convertCoordinates(t,e,n){var r=getGlobalMatrix(e,!0,!0).multiply(getGlobalMatrix(t));return n?r.apply(n):r},getAlignMatrix:sa,getRelativePosition:function getRelativePosition(t,e,n,r){var a=sa(t,e,n,r);return{x:a.e,y:a.f}},arrayToRawPath:function arrayToRawPath(t,e){var n=la(la([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&na(n),["cubic"===e.type?n:pointsToSegment(n,e.curviness)]}};!function _getGSAP(){return j||"undefined"!=typeof window&&(j=window.gsap)&&j.registerPlugin&&j}()||j.registerPlugin(a),t.MotionPathPlugin=a,t.default=a;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); |
/*! | ||
* Observer 3.10.2 | ||
* Observer 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(pe){"use strict";function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(){return he||"undefined"!=typeof window&&(he=window.gsap)&&he.registerPlugin&&he}var he,ve,ye,xe,_e,be,me,we,Oe,t,Pe,n=1,Me=[];pe._scrollers=[],pe._proxies=[];function v(e,t){return~pe._proxies.indexOf(e)&&pe._proxies[pe._proxies.indexOf(e)+1][t]}function w(e){return!!~t.indexOf(e)}function x(e,t,n,r){return e.addEventListener(t,n,{passive:!r})}function y(e,t,n){return e.removeEventListener(t,n)}function B(){return Pe&&Pe.isPressed||pe._scrollers.cache++}function C(t){return function(e){return e||0===e?(n&&(ye.history.scrollRestoration="manual"),t(e),t.v=e,t.c=pe._scrollers.cache,Pe&&Pe.isPressed&&Xe("ss",e)):pe._scrollers.cache===t.c&&!Xe("ref")||(t.c=pe._scrollers.cache,t.v=t()),t.v}}function F(e){return he.utils.toArray(e)[0]||("string"==typeof e&&!1!==he.config().nullTargetWarn?console.warn("Element not found:",e):null)}function G(t,e){var n=e.s,r=e.sc,o=pe._scrollers.indexOf(t),i=r===De.sc?1:2;return~o||(o=pe._scrollers.push(t)-1),pe._scrollers[o+i]||(pe._scrollers[o+i]=v(t,n)||(w(t)?r:function(e){return arguments.length?t[n]=e:t[n]}))}function H(e,t,o){function Ea(e,t){var n=u();t||r<n-c?(s=i,i=e,a=c,c=n):o?i+=e:i=s+(e-s)/(n-a)*(c-a)}var i=e,s=e,c=u(),a=c,r=t||50,l=Math.max(500,3*r);return{update:Ea,reset:function reset(){s=i=o?0:i,a=c=0},getVelocity:function getVelocity(e){var t=a,n=s,r=u();return!e&&0!==e||e===i||Ea(e),c===a||l<r-a?0:(i+(o?n:-n))/((o?r:c)-t)*1e3}}}function I(e,t){return t&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function J(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n}function K(e){return(he=e||p())&&!ve&&"undefined"!=typeof document&&document.body&&(ye=window,_e=(xe=document).documentElement,be=xe.body,t=[ye,xe,_e,be],he.utils.clamp,we="onpointerenter"in be?"pointer":"mouse",me=i.isTouch=ye.matchMedia&&ye.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ye||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,setTimeout(function(){return n=0},500),ve=1),ve}var u=Date.now,Xe=function _bridge(e,t){return t},r="scrollLeft",o="scrollTop",Ye={s:r,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:C(function(e){return arguments.length?ye.scrollTo(e,De.sc()):ye.pageXOffset||xe[r]||_e[r]||be[r]||0})},De={s:o,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ye,sc:C(function(e){return arguments.length?ye.scrollTo(Ye.sc(),e):ye.pageYOffset||xe[o]||_e[o]||be[o]||0})};Ye.op=De,pe._scrollers.cache=0;var i=(Observer.prototype.init=function init(e){ve||K(he)||console.warn("Please gsap.registerPlugin(Observer)"),Oe||(Oe=he.core.globals().ScrollTrigger)&&Oe.core&&function _integrate(){var e=Oe.core,n=e.bridge||{},t=e._scrollers,r=e._proxies;t.push.apply(t,pe._scrollers),r.push.apply(r,pe._proxies),pe._scrollers=t,pe._proxies=r,Xe=function _bridge(e,t){return n[e](t)}}();var o=e.tolerance,s=e.dragMinimum,t=e.type,n=e.target,r=e.lineHeight,i=e.debounce,c=e.preventDefault,a=e.onStop,l=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,f=e.event,g=e.onDragStart,p=e.onDragEnd,h=e.onDrag,v=e.onPress,_=e.onRelease,b=e.onRight,m=e.onLeft,O=e.onUp,P=e.onDown,M=e.onChangeX,X=e.onChangeY,Y=e.onChange,D=e.onToggleX,T=e.onToggleY,E=e.onHover,k=e.onHoverEnd,C=e.onMove,S=e.ignoreCheck,Z=e.isNormalizer,j=e.onGestureStart,V=e.onGestureEnd,L=e.onWheel,A=e.onEnable,R=e.onDisable,W=e.onClick,z=e.scrollSpeed;function Zb(e,t){return(ee.event=e)&&u&&~u.indexOf(e.target)||t&&ae&&"touch"!==e.pointerType||S&&S(e)}function _b(){var e=ee.deltaX=J(de),t=ee.deltaY=J(fe),n=Math.abs(e)>=o,r=Math.abs(t)>=o;Y&&(n||r)&&Y(ee,e,t,de,fe),n&&(b&&0<ee.deltaX&&b(ee),m&&ee.deltaX<0&&m(ee),M&&M(ee),D&&ee.deltaX<0!=te<0&&D(ee),te=ee.deltaX,de[0]=de[1]=de[2]=0),r&&(P&&0<ee.deltaY&&P(ee),O&&ee.deltaY<0&&O(ee),X&&X(ee),T&&ee.deltaY<0!=ne<0&&T(ee),ne=ee.deltaY,fe[0]=fe[1]=fe[2]=0),Q&&(C(ee),Q=!1),U&&(h(ee),U=!1),$&&(L(ee),$=!1),q=0}function ac(e,t,n){de[n]+=e,fe[n]+=t,ee._vx.update(e,2===n),ee._vy.update(t,2===n),i?q=q||requestAnimationFrame(_b):_b()}function bc(e){if(!Zb(e,1)){var t=(e=I(e,c)).clientX,n=e.clientY,r=t-ee.x,o=n-ee.y,i=ee.isDragging;ee.x=t,ee.y=n,(i||Math.abs(ee.startX-t)>=s||Math.abs(ee.startY-n)>=s)&&(h&&(U=!0),i||(ee.isDragging=!0),ac(r,o,2),i||g&&g(ee))}}function dc(e){if(!Zb(e,1)){y(Z?n:ue,ce[1],bc);var t=ee.isDragging;t||(ee._vx.reset(),ee._vy.reset()),ee.isDragging=ee.isGesturing=ee.isPressed=!1,a&&!Z&&N.restart(!0),p&&t&&p(ee),_&&_(ee,t)}}function ec(e){return e.touches&&1<e.touches.length&&(ee.isGesturing=!0)&&j(e,ee.isDragging)}function fc(){return(ee.isGesturing=!1)||V(ee)}function gc(e){if(!Zb(e)){var t=re(),n=oe();ac((t-ie)*z,(n-se)*z,1),ie=t,se=n,a&&N.restart(!0)}}function hc(e){if(!Zb(e)){e=I(e,c),L&&($=!0);var t=(1===e.deltaMode?r:2===e.deltaMode?ye.innerHeight:1)*d;ac(e.deltaX*t,e.deltaY*t,0),a&&!Z&&N.restart(!0)}}function ic(e){if(!Zb(e)){var t=e.clientX,n=e.clientY,r=t-ee.x,o=n-ee.y;ee.x=t,ee.y=n,C&&(Q=!0),(r||o)&&ac(r,o,2)}}function jc(e){ee.event=e,E(ee)}function kc(e){ee.event=e,k(ee)}function lc(e){return Zb(e)||I(e,c)&&W(ee)}this.target=n=F(n)||_e,this.vars=e,u=u&&he.utils.toArray(u),o=o||0,s=s||0,d=d||1,z=z||1,t=t||"wheel,touch,pointer",i=!1!==i,r=r||parseFloat(ye.getComputedStyle(be).lineHeight)||22;var q,N,U,Q,$,ee=this,te=0,ne=0,re=G(n,Ye),oe=G(n,De),ie=re(),se=oe(),ce=("ontouchstart"in _e?"touchstart,touchmove,touchcancel,touchend":0<=t.indexOf("pointer")&&!("onpointerdown"in _e)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),ae=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===ce[0],le=w(n),ue=n.ownerDocument||xe,de=[0,0,0],fe=[0,0,0],ge=ee.onPress=function(e){Zb(e,1)||(N.pause(),ee.isPressed=!0,e=I(e,c),te=ne=0,ee.startX=ee.x=e.clientX,ee.startY=ee.y=e.clientY,ee._vx.reset(),ee._vy.reset(),x(Z?n:ue,ce[1],bc,c),ee.deltaX=ee.deltaY=0,v&&v(ee))};N=ee._dc=he.delayedCall(l||.25,function onStopFunc(){ee._vx.reset(),ee._vy.reset(),N.pause(),a&&a(ee)}).pause(),ee.deltaX=ee.deltaY=0,ee._vx=H(0,50,!0),ee._vy=H(0,50,!0),ee.scrollX=re,ee.scrollY=oe,ee.isDragging=ee.isGesturing=ee.isPressed=!1,ee.enable=function(e){return ee.isEnabled||(x(le?ue:n,"scroll",B),0<=t.indexOf("scroll")&&x(le?ue:n,"scroll",gc,c),0<=t.indexOf("wheel")&&x(n,"wheel",hc,c),(0<=t.indexOf("touch")&&me||0<=t.indexOf("pointer"))&&(x(n,ce[0],ge,c),x(ue,ce[2],dc),x(ue,ce[3],dc),W&&x(n,"click",lc),j&&x(ue,"gesturestart",ec),V&&x(ue,"gestureend",fc),E&&x(n,we+"enter",jc),k&&x(n,we+"leave",kc),C&&x(n,we+"move",ic)),ee.isEnabled=!0,e&&e.type&&ge(e),A&&A(ee)),ee},ee.disable=function(){ee.isEnabled&&(Me.filter(function(e){return e!==ee&&w(e.target)}).length||y(le?ue:n,"scroll",B),y(le?ue:n,"scroll",gc),y(n,"wheel",hc),y(n,ce[0],ge),y(ue,ce[2],dc),y(ue,ce[3],dc),y(n,"click",lc),y(ue,"gesturestart",ec),y(ue,"gestureend",fc),y(n,we+"enter",jc),y(n,we+"leave",kc),y(n,we+"move",ic),ee.isEnabled=!1,R&&R(ee))},ee.kill=function(){ee.disable();var e=Me.indexOf(ee);0<=e&&Me.splice(e,1),Pe===ee&&(Pe=0)},Me.push(ee),Z&&(Pe=ee),ee.enable(f)},function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer);function Observer(e){this.init(e)}i.version="3.10.2",i.create=function(e){return new i(e)},i.register=K,i.getAll=function(){return Me.slice()},i.getById=function(t){return Me.filter(function(e){return e.vars.id===t})[0]},p()&&he.registerPlugin(i),pe.Observer=i,pe._getProxyProp=v,pe._getScrollFunc=G,pe._getTarget=F,pe._getVelocityProp=H,pe._horizontal=Ye,pe._isViewport=w,pe._vertical=De,pe.default=i,Object.defineProperty(pe,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(c){"use strict";function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q(){return be||"undefined"!=typeof window&&(be=window.gsap)&&be.registerPlugin&&be}var be,we,Me,Pe,Oe,De,Xe,Ye,ke,t,ze,Ee,n=1,Te=[];c._scrollers=[],c._proxies=[];function w(e,t){return~c._proxies.indexOf(e)&&c._proxies[c._proxies.indexOf(e)+1][t]}function x(e){return!!~t.indexOf(e)}function y(e,t,n,r,o){return e.addEventListener(t,n,{passive:!r,capture:!!o})}function z(e,t,n){return e.removeEventListener(t,n)}function C(){return ze&&ze.isPressed||c._scrollers.cache++}function D(t){return function(e){return e||0===e?(n&&(Me.history.scrollRestoration="manual"),t(e),t.v=e,t.c=c._scrollers.cache,ze&&ze.isPressed&&o("ss",e)):c._scrollers.cache===t.c&&!o("ref")||(t.c=c._scrollers.cache,t.v=t()),t.v}}function G(e){return be.utils.toArray(e)[0]||("string"==typeof e&&!1!==be.config().nullTargetWarn?console.warn("Element not found:",e):null)}function H(t,e){var n=e.s,r=e.sc,o=c._scrollers.indexOf(t),i=r===Se.sc?1:2;return~o||(o=c._scrollers.push(t)-1),c._scrollers[o+i]||(c._scrollers[o+i]=w(t,n)||(x(t)?r:D(function(e){return arguments.length?t[n]=e:t[n]})))}function I(e,t,o){function Ha(e,t){var n=Ce();t||r<n-s?(c=i,i=e,a=s,s=n):o?i+=e:i=c+(e-c)/(n-a)*(s-a)}var i=e,c=e,s=Ce(),a=s,r=t||50,l=Math.max(500,3*r);return{update:Ha,reset:function reset(){c=i=o?0:i,a=s=0},getVelocity:function getVelocity(e){var t=a,n=c,r=Ce();return!e&&0!==e||e===i||Ha(e),s===a||l<r-a?0:(i+(o?n:-n))/((o?r:s)-t)*1e3}}}function J(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function K(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n}function L(){(ke=be.core.globals().ScrollTrigger)&&ke.core&&function _integrate(){var e=ke.core,n=e.bridge||{},t=e._scrollers,r=e._proxies;t.push.apply(t,c._scrollers),r.push.apply(r,c._proxies),c._scrollers=t,c._proxies=r,o=function _bridge(e,t){return n[e](t)}}()}function M(e){return(be=e||q())&&"undefined"!=typeof document&&document.body&&(Me=window,Oe=(Pe=document).documentElement,De=Pe.body,t=[Me,Pe,Oe,De],be.utils.clamp,Ye="onpointerenter"in De?"pointer":"mouse",Xe=s.isTouch=Me.matchMedia&&Me.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Me||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,Ee=s.eventTypes=("ontouchstart"in Oe?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Oe?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return n=0},500),L(),we=1),we}var Ce=Date.now,o=function _bridge(e,t){return t},r="scrollLeft",i="scrollTop",He={s:r,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:D(function(e){return arguments.length?Me.scrollTo(e,Se.sc()):Me.pageXOffset||Pe[r]||Oe[r]||De[r]||0})},Se={s:i,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:He,sc:D(function(e){return arguments.length?Me.scrollTo(He.sc(),e):Me.pageYOffset||Pe[i]||Oe[i]||De[i]||0})};He.op=Se,c._scrollers.cache=0;var s=(Observer.prototype.init=function init(e){we||M(be)||console.warn("Please gsap.registerPlugin(Observer)"),ke||L();var o=e.tolerance,c=e.dragMinimum,t=e.type,r=e.target,n=e.lineHeight,i=e.debounce,s=e.preventDefault,a=e.onStop,l=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,f=e.event,g=e.onDragStart,p=e.onDragEnd,h=e.onDrag,v=e.onPress,_=e.onRelease,m=e.onRight,b=e.onLeft,w=e.onUp,P=e.onDown,O=e.onChangeX,D=e.onChangeY,X=e.onChange,Y=e.onToggleX,k=e.onToggleY,E=e.onHover,T=e.onHoverEnd,S=e.onMove,j=e.ignoreCheck,q=e.isNormalizer,A=e.onGestureStart,V=e.onGestureEnd,F=e.onWheel,R=e.onEnable,W=e.onDisable,B=e.onClick,N=e.scrollSpeed,U=e.capture,Q=e.allowClicks,Z=e.lockAxis,$=e.onLockAxis;function gc(){return _e=Ce()}function hc(e,t){return(se.event=e)&&u&&~u.indexOf(e.target)||t&&pe&&"touch"!==e.pointerType||j&&j(e,t)}function jc(){var e=se.deltaX=K(ye),t=se.deltaY=K(xe),n=Math.abs(e)>=o,r=Math.abs(t)>=o;X&&(n||r)&&X(se,e,t,ye,xe),n&&(m&&0<se.deltaX&&m(se),b&&se.deltaX<0&&b(se),O&&O(se),Y&&se.deltaX<0!=ae<0&&Y(se),ae=se.deltaX,ye[0]=ye[1]=ye[2]=0),r&&(P&&0<se.deltaY&&P(se),w&&se.deltaY<0&&w(se),D&&D(se),k&&se.deltaY<0!=le<0&&k(se),le=se.deltaY,xe[0]=xe[1]=xe[2]=0),(re||ne)&&(S&&S(se),$&&ie&&$(se),ne&&(h(se),ne=!1),re=ie=!1),oe&&(F(se),oe=!1),ee=0}function kc(e,t,n){ye[n]+=e,xe[n]+=t,se._vx.update(e),se._vy.update(t),i?ee=ee||requestAnimationFrame(jc):jc()}function lc(e,t){"y"!==ce&&(ye[2]+=e,se._vx.update(e,!0)),"x"!==ce&&(xe[2]+=t,se._vy.update(t,!0)),Z&&!ce&&(se.axis=ce=Math.abs(e)>Math.abs(t)?"x":"y",ie=!0),i?ee=ee||requestAnimationFrame(jc):jc()}function mc(e){if(!hc(e,1)){var t=(e=J(e,s)).clientX,n=e.clientY,r=t-se.x,o=n-se.y,i=se.isDragging;se.x=t,se.y=n,(i||Math.abs(se.startX-t)>=c||Math.abs(se.startY-n)>=c)&&(h&&(ne=!0),i||(se.isDragging=!0),lc(r,o),i||g&&g(se))}}function oc(t){if(!hc(t,1)){z(q?r:ve,Ee[1],mc);var e=se.isDragging&&(3<Math.abs(se.x-se.startX)||3<Math.abs(se.y-se.startY)),n=J(t);e||(se._vx.reset(),se._vy.reset(),s&&Q&&be.delayedCall(.05,function(){if(300<Ce()-_e&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(ve.createEvent){var e=ve.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,Me,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),se.isDragging=se.isGesturing=se.isPressed=!1,a&&!q&&te.restart(!0),p&&e&&p(se),_&&_(se,e)}}function pc(e){return e.touches&&1<e.touches.length&&(se.isGesturing=!0)&&A(e,se.isDragging)}function qc(){return(se.isGesturing=!1)||V(se)}function rc(e){if(!hc(e)){var t=ue(),n=de();kc((t-fe)*N,(n-ge)*N,1),fe=t,ge=n,a&&te.restart(!0)}}function sc(e){if(!hc(e)){e=J(e,s),F&&(oe=!0);var t=(1===e.deltaMode?n:2===e.deltaMode?Me.innerHeight:1)*d;kc(e.deltaX*t,e.deltaY*t,0),a&&!q&&te.restart(!0)}}function tc(e){if(!hc(e)){var t=e.clientX,n=e.clientY,r=t-se.x,o=n-se.y;se.x=t,se.y=n,re=!0,(r||o)&&lc(r,o)}}function uc(e){se.event=e,E(se)}function vc(e){se.event=e,T(se)}function wc(e){return hc(e)||J(e,s)&&B(se)}this.target=r=G(r)||Oe,this.vars=e,u=u&&be.utils.toArray(u),o=o||0,c=c||0,d=d||1,N=N||1,t=t||"wheel,touch,pointer",i=!1!==i,n=n||parseFloat(Me.getComputedStyle(De).lineHeight)||22;var ee,te,ne,re,oe,ie,ce,se=this,ae=0,le=0,ue=H(r,He),de=H(r,Se),fe=ue(),ge=de(),pe=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===Ee[0],he=x(r),ve=r.ownerDocument||Pe,ye=[0,0,0],xe=[0,0,0],_e=0,me=se.onPress=function(e){hc(e,1)||(se.axis=ce=null,te.pause(),se.isPressed=!0,e=J(e),ae=le=0,se.startX=se.x=e.clientX,se.startY=se.y=e.clientY,se._vx.reset(),se._vy.reset(),y(q?r:ve,Ee[1],mc,s,U),se.deltaX=se.deltaY=0,v&&v(se))};te=se._dc=be.delayedCall(l||.25,function onStopFunc(){se._vx.reset(),se._vy.reset(),te.pause(),a&&a(se)}).pause(),se.deltaX=se.deltaY=0,se._vx=I(0,50,!0),se._vy=I(0,50,!0),se.scrollX=ue,se.scrollY=de,se.isDragging=se.isGesturing=se.isPressed=!1,se.enable=function(e){return se.isEnabled||(y(he?ve:r,"scroll",C),0<=t.indexOf("scroll")&&y(he?ve:r,"scroll",rc,s,U),0<=t.indexOf("wheel")&&y(r,"wheel",sc,s,U),(0<=t.indexOf("touch")&&Xe||0<=t.indexOf("pointer"))&&(y(r,Ee[0],me,s,U),y(ve,Ee[2],oc),y(ve,Ee[3],oc),Q&&y(r,"click",gc,!1,!0),B&&y(r,"click",wc),A&&y(ve,"gesturestart",pc),V&&y(ve,"gestureend",qc),E&&y(r,Ye+"enter",uc),T&&y(r,Ye+"leave",vc),S&&y(r,Ye+"move",tc)),se.isEnabled=!0,e&&e.type&&me(e),R&&R(se)),se},se.disable=function(){se.isEnabled&&(Te.filter(function(e){return e!==se&&x(e.target)}).length||z(he?ve:r,"scroll",C),se.isPressed&&(se._vx.reset(),se._vy.reset(),z(q?r:ve,Ee[1],mc)),z(he?ve:r,"scroll",rc),z(r,"wheel",sc),z(r,Ee[0],me),z(ve,Ee[2],oc),z(ve,Ee[3],oc),z(r,"click",gc),z(r,"click",wc),z(ve,"gesturestart",pc),z(ve,"gestureend",qc),z(r,Ye+"enter",uc),z(r,Ye+"leave",vc),z(r,Ye+"move",tc),se.isEnabled=se.isPressed=se.isDragging=!1,W&&W(se))},se.kill=function(){se.disable();var e=Te.indexOf(se);0<=e&&Te.splice(e,1),ze===se&&(ze=0)},Te.push(se),q&&x(r)&&(ze=se),se.enable(f)},function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer);function Observer(e){this.init(e)}s.version="3.10.3",s.create=function(e){return new s(e)},s.register=M,s.getAll=function(){return Te.slice()},s.getById=function(t){return Te.filter(function(e){return e.vars.id===t})[0]},q()&&be.registerPlugin(s),c.Observer=s,c._getProxyProp=w,c._getScrollFunc=H,c._getTarget=G,c._getVelocityProp=I,c._horizontal=He,c._isViewport=x,c._vertical=Se,c.default=s;if (typeof(window)==="undefined"||window!==c){Object.defineProperty(c,"__esModule",{value:!0})} else {delete c.default}}); |
/*! | ||
* Physics2DPlugin 3.10.2 | ||
* Physics2DPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function h(){return t||"undefined"!=typeof window&&(t=window.gsap)&&t.registerPlugin&&t}function i(e){return Math.round(1e4*e)/1e4}function l(){return String.fromCharCode.apply(null,arguments)}function o(e){t=e||h(),f||(a=t.utils.getUnit,f=1)}function p(e,t,n,i,l){var o=e._gsap,s=o.get(e,t);this.p=t,this.set=o.set(e,t),this.s=this.val=parseFloat(s),this.u=a(s)||0,this.vel=n||0,this.v=this.vel/l,i||0===i?(this.acc=i,this.a=this.acc/(l*l)):this.acc=this.a=0}var t,f,a,u=Math.PI/180,s="Physics2DPlugin",r=l(103,114,101,101,110,115,111,99,107,46,99,111,109),n=(function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(l(102,105,108,101,58,47,47))||-1!==e.indexOf(l(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(l(49,50,55,46,48,32,48,46,49)),i=[r,l(99,111,100,101,112,101,110,46,105,111),l(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),l(99,111,100,101,112,101,110,46,100,101,118),l(99,111,100,101,112,101,110,46,97,112,112),l(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),l(112,101,110,115,46,99,108,111,117,100),l(99,115,115,45,116,114,105,99,107,115,46,99,111,109),l(99,100,112,110,46,105,111),l(112,101,110,115,46,105,111),l(103,97,110,110,111,110,46,116,118),l(99,111,100,101,99,97,110,121,111,110,46,110,101,116),l(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),l(99,101,114,101,98,114,97,120,46,99,111,46,117,107),l(116,121,109,112,97,110,117,115,46,110,101,116),l(116,119,101,101,110,109,97,120,46,99,111,109),l(116,119,101,101,110,108,105,116,101,46,99,111,109),l(112,108,110,107,114,46,99,111),l(104,111,116,106,97,114,46,99,111,109),l(119,101,98,112,97,99,107,98,105,110,46,99,111,109),l(97,114,99,104,105,118,101,46,111,114,103),l(99,111,100,101,115,97,110,100,98,111,120,46,105,111),l(99,115,98,46,97,112,112),l(115,116,97,99,107,98,108,105,116,122,46,99,111,109),l(115,116,97,99,107,98,108,105,116,122,46,105,111),l(99,111,100,105,101,114,46,105,111),l(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),l(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),l(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),l(106,115,102,105,100,100,108,101,46,110,101,116)],o=i.length;for(setTimeout(function checkWarn(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(l(37,99,87,97,114,110,105,110,103),l(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(l(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+s+l(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(l(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),l(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--o;)if(-1!==e.indexOf(i[o]))return;n||setTimeout(function(){t&&(window.location.href=l(104,116,116,112,115,58,47,47)+r+l(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+s+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),{version:"3.10.2",name:"physics2D",register:o,init:function init(e,t,n){f||o();var i=this,l=+t.angle||0,s=+t.velocity||0,a=+t.acceleration||0,r=t.xProp||"x",c=t.yProp||"y",d=t.accelerationAngle||0===t.accelerationAngle?+t.accelerationAngle:l;i.target=e,i.tween=n,i.step=0,i.sps=30,t.gravity&&(a=+t.gravity,d=90),l*=u,d*=u,i.fr=1-(+t.friction||0),i._props.push(r,c),i.xp=new p(e,r,Math.cos(l)*s,Math.cos(d)*a,i.sps),i.yp=new p(e,c,Math.sin(l)*s,Math.sin(d)*a,i.sps),i.skipX=i.skipY=0},render:function render(e,t){var n,l,o,s,a,r,c=t.xp,p=t.yp,d=t.tween,f=t.target,u=t.step,h=t.sps,v=t.fr,g=t.skipX,w=t.skipY,y=d._from?d._dur-d._time:d._time;if(1===v)o=y*y*.5,n=c.s+c.vel*y+c.acc*o,l=p.s+p.vel*y+p.acc*o;else{for(s=r=(0|(y*=h))-u,r<0&&(c.v=c.vel/h,p.v=p.vel/h,c.val=c.s,p.val=p.s,s=r=(t.step=0)|y),a=y%1*v;r--;)c.v+=c.a,p.v+=p.a,c.v*=v,p.v*=v,c.val+=c.v,p.val+=p.v;n=c.val+c.v*a,l=p.val+p.v*a,t.step+=s}g||c.set(f,c.p,i(n)+c.u),w||p.set(f,p.p,i(l)+p.u)},kill:function kill(e){this.xp.p===e&&(this.skipX=1),this.yp.p===e&&(this.skipY=1)}});h()&&t.registerPlugin(n),e.Physics2DPlugin=n,e.default=n;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function h(){return t||"undefined"!=typeof window&&(t=window.gsap)&&t.registerPlugin&&t}function i(e){return Math.round(1e4*e)/1e4}function l(){return String.fromCharCode.apply(null,arguments)}function o(e){t=e||h(),f||(a=t.utils.getUnit,f=1)}function p(e,t,n,i,l){var o=e._gsap,s=o.get(e,t);this.p=t,this.set=o.set(e,t),this.s=this.val=parseFloat(s),this.u=a(s)||0,this.vel=n||0,this.v=this.vel/l,i||0===i?(this.acc=i,this.a=this.acc/(l*l)):this.acc=this.a=0}var t,f,a,u=Math.PI/180,s="Physics2DPlugin",r=l(103,114,101,101,110,115,111,99,107,46,99,111,109),n=(function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(l(102,105,108,101,58,47,47))||-1!==e.indexOf(l(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(l(49,50,55,46,48,32,48,46,49)),i=[r,l(99,111,100,101,112,101,110,46,105,111),l(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),l(99,111,100,101,112,101,110,46,100,101,118),l(99,111,100,101,112,101,110,46,97,112,112),l(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),l(112,101,110,115,46,99,108,111,117,100),l(99,115,115,45,116,114,105,99,107,115,46,99,111,109),l(99,100,112,110,46,105,111),l(112,101,110,115,46,105,111),l(103,97,110,110,111,110,46,116,118),l(99,111,100,101,99,97,110,121,111,110,46,110,101,116),l(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),l(99,101,114,101,98,114,97,120,46,99,111,46,117,107),l(116,121,109,112,97,110,117,115,46,110,101,116),l(116,119,101,101,110,109,97,120,46,99,111,109),l(116,119,101,101,110,108,105,116,101,46,99,111,109),l(112,108,110,107,114,46,99,111),l(104,111,116,106,97,114,46,99,111,109),l(119,101,98,112,97,99,107,98,105,110,46,99,111,109),l(97,114,99,104,105,118,101,46,111,114,103),l(99,111,100,101,115,97,110,100,98,111,120,46,105,111),l(99,115,98,46,97,112,112),l(115,116,97,99,107,98,108,105,116,122,46,99,111,109),l(115,116,97,99,107,98,108,105,116,122,46,105,111),l(99,111,100,105,101,114,46,105,111),l(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),l(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),l(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),l(106,115,102,105,100,100,108,101,46,110,101,116)],o=i.length;for(setTimeout(function checkWarn(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(l(37,99,87,97,114,110,105,110,103),l(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(l(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+s+l(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(l(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),l(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--o;)if(-1!==e.indexOf(i[o]))return;n||setTimeout(function(){t&&(window.location.href=l(104,116,116,112,115,58,47,47)+r+l(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+s+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),{version:"3.10.3",name:"physics2D",register:o,init:function init(e,t,n){f||o();var i=this,l=+t.angle||0,s=+t.velocity||0,a=+t.acceleration||0,r=t.xProp||"x",c=t.yProp||"y",d=t.accelerationAngle||0===t.accelerationAngle?+t.accelerationAngle:l;i.target=e,i.tween=n,i.step=0,i.sps=30,t.gravity&&(a=+t.gravity,d=90),l*=u,d*=u,i.fr=1-(+t.friction||0),i._props.push(r,c),i.xp=new p(e,r,Math.cos(l)*s,Math.cos(d)*a,i.sps),i.yp=new p(e,c,Math.sin(l)*s,Math.sin(d)*a,i.sps),i.skipX=i.skipY=0},render:function render(e,t){var n,l,o,s,a,r,c=t.xp,p=t.yp,d=t.tween,f=t.target,u=t.step,h=t.sps,v=t.fr,g=t.skipX,w=t.skipY,y=d._from?d._dur-d._time:d._time;if(1===v)o=y*y*.5,n=c.s+c.vel*y+c.acc*o,l=p.s+p.vel*y+p.acc*o;else{for(s=r=(0|(y*=h))-u,r<0&&(c.v=c.vel/h,p.v=p.vel/h,c.val=c.s,p.val=p.s,s=r=(t.step=0)|y),a=y%1*v;r--;)c.v+=c.a,p.v+=p.a,c.v*=v,p.v*=v,c.val+=c.v,p.val+=p.v;n=c.val+c.v*a,l=p.val+p.v*a,t.step+=s}g||c.set(f,c.p,i(n)+c.u),w||p.set(f,p.p,i(l)+p.u)},kill:function kill(e){this.xp.p===e&&(this.skipX=1),this.yp.p===e&&(this.skipY=1)}});h()&&t.registerPlugin(n),e.Physics2DPlugin=n,e.default=n;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* PhysicsPropsPlugin 3.10.2 | ||
* PhysicsPropsPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function g(){return t||"undefined"!=typeof window&&(t=window.gsap)&&t.registerPlugin&&t}function h(e){return Math.round(1e4*e)/1e4}function k(){return String.fromCharCode.apply(null,arguments)}function n(e){t=e||g(),l||(c=t.utils.getUnit,l=1)}function o(e,n,t,i,o,s){var r=e._gsap,a=r.get(e,n);this.p=n,this.set=r.set(e,n),this.s=this.val=parseFloat(a),this.u=c(a)||0,this.vel=t||0,this.v=this.vel/s,i||0===i?(this.acc=i,this.a=this.acc/(s*s)):this.acc=this.a=0,this.fr=1-(o||0)}var t,l,c,s="PhysicsPropsPlugin",r=k(103,114,101,101,110,115,111,99,107,46,99,111,109),i=(function(e){var n="undefined"!=typeof window,t=0===(n?window.location.href:"").indexOf(k(102,105,108,101,58,47,47))||-1!==e.indexOf(k(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(k(49,50,55,46,48,32,48,46,49)),i=[r,k(99,111,100,101,112,101,110,46,105,111),k(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),k(99,111,100,101,112,101,110,46,100,101,118),k(99,111,100,101,112,101,110,46,97,112,112),k(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),k(112,101,110,115,46,99,108,111,117,100),k(99,115,115,45,116,114,105,99,107,115,46,99,111,109),k(99,100,112,110,46,105,111),k(112,101,110,115,46,105,111),k(103,97,110,110,111,110,46,116,118),k(99,111,100,101,99,97,110,121,111,110,46,110,101,116),k(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),k(99,101,114,101,98,114,97,120,46,99,111,46,117,107),k(116,121,109,112,97,110,117,115,46,110,101,116),k(116,119,101,101,110,109,97,120,46,99,111,109),k(116,119,101,101,110,108,105,116,101,46,99,111,109),k(112,108,110,107,114,46,99,111),k(104,111,116,106,97,114,46,99,111,109),k(119,101,98,112,97,99,107,98,105,110,46,99,111,109),k(97,114,99,104,105,118,101,46,111,114,103),k(99,111,100,101,115,97,110,100,98,111,120,46,105,111),k(99,115,98,46,97,112,112),k(115,116,97,99,107,98,108,105,116,122,46,99,111,109),k(115,116,97,99,107,98,108,105,116,122,46,105,111),k(99,111,100,105,101,114,46,105,111),k(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),k(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),k(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),k(106,115,102,105,100,100,108,101,46,110,101,116)],o=i.length;for(setTimeout(function checkWarn(){n&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),n&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(k(37,99,87,97,114,110,105,110,103),k(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(k(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+s+k(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(k(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),k(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--o;)if(-1!==e.indexOf(i[o]))return;t||setTimeout(function(){n&&(window.location.href=k(104,116,116,112,115,58,47,47)+r+k(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+s+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),{version:"3.10.2",name:"physicsProps",register:n,init:function init(e,t,i){l||n();var s,r=this;for(s in r.target=e,r.tween=i,r.step=0,r.sps=30,r.vProps=[],t){var a=t[s],c=a.velocity,f=a.acceleration,d=a.friction;(c||f)&&(r.vProps.push(new o(e,s,c,f,d,r.sps)),r._props.push(s),d&&(r.hasFr=1))}},render:function render(e,n){var t,i,o,s,r,a=n.vProps,c=n.tween,f=n.target,d=n.step,l=n.hasFr,u=n.sps,k=a.length,p=c._from?c._dur-c._time:c._time;if(l){if((i=(0|(p*=u))-d)<0){for(;k--;)(t=a[k]).v=t.vel/u,t.val=t.s;k=a.length,n.step=d=0,i=0|p}for(o=p%1;k--;){for(t=a[k],s=i;s--;)t.v+=t.a,t.v*=t.fr,t.val+=t.v;t.set(f,t.p,h(t.val+t.v*o*t.fr)+t.u)}n.step+=i}else for(r=p*p*.5;k--;)(t=a[k]).set(f,t.p,h(t.s+t.vel*p+t.acc*r)+t.u)},kill:function kill(e){for(var n=this.vProps,t=n.length;t--;)n[t].p===e&&n.splice(t,1)}});g()&&t.registerPlugin(i),e.PhysicsPropsPlugin=i,e.default=i;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).window=e.window||{})}(this,function(e){"use strict";function g(){return t||"undefined"!=typeof window&&(t=window.gsap)&&t.registerPlugin&&t}function h(e){return Math.round(1e4*e)/1e4}function k(){return String.fromCharCode.apply(null,arguments)}function n(e){t=e||g(),l||(c=t.utils.getUnit,l=1)}function o(e,n,t,i,o,s){var r=e._gsap,a=r.get(e,n);this.p=n,this.set=r.set(e,n),this.s=this.val=parseFloat(a),this.u=c(a)||0,this.vel=t||0,this.v=this.vel/s,i||0===i?(this.acc=i,this.a=this.acc/(s*s)):this.acc=this.a=0,this.fr=1-(o||0)}var t,l,c,s="PhysicsPropsPlugin",r=k(103,114,101,101,110,115,111,99,107,46,99,111,109),i=(function(e){var n="undefined"!=typeof window,t=0===(n?window.location.href:"").indexOf(k(102,105,108,101,58,47,47))||-1!==e.indexOf(k(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(k(49,50,55,46,48,32,48,46,49)),i=[r,k(99,111,100,101,112,101,110,46,105,111),k(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),k(99,111,100,101,112,101,110,46,100,101,118),k(99,111,100,101,112,101,110,46,97,112,112),k(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),k(112,101,110,115,46,99,108,111,117,100),k(99,115,115,45,116,114,105,99,107,115,46,99,111,109),k(99,100,112,110,46,105,111),k(112,101,110,115,46,105,111),k(103,97,110,110,111,110,46,116,118),k(99,111,100,101,99,97,110,121,111,110,46,110,101,116),k(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),k(99,101,114,101,98,114,97,120,46,99,111,46,117,107),k(116,121,109,112,97,110,117,115,46,110,101,116),k(116,119,101,101,110,109,97,120,46,99,111,109),k(116,119,101,101,110,108,105,116,101,46,99,111,109),k(112,108,110,107,114,46,99,111),k(104,111,116,106,97,114,46,99,111,109),k(119,101,98,112,97,99,107,98,105,110,46,99,111,109),k(97,114,99,104,105,118,101,46,111,114,103),k(99,111,100,101,115,97,110,100,98,111,120,46,105,111),k(99,115,98,46,97,112,112),k(115,116,97,99,107,98,108,105,116,122,46,99,111,109),k(115,116,97,99,107,98,108,105,116,122,46,105,111),k(99,111,100,105,101,114,46,105,111),k(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),k(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),k(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),k(106,115,102,105,100,100,108,101,46,110,101,116)],o=i.length;for(setTimeout(function checkWarn(){n&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),n&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(k(37,99,87,97,114,110,105,110,103),k(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(k(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+s+k(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(k(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),k(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--o;)if(-1!==e.indexOf(i[o]))return;t||setTimeout(function(){n&&(window.location.href=k(104,116,116,112,115,58,47,47)+r+k(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+s+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),{version:"3.10.3",name:"physicsProps",register:n,init:function init(e,t,i){l||n();var s,r=this;for(s in r.target=e,r.tween=i,r.step=0,r.sps=30,r.vProps=[],t){var a=t[s],c=a.velocity,f=a.acceleration,d=a.friction;(c||f)&&(r.vProps.push(new o(e,s,c,f,d,r.sps)),r._props.push(s),d&&(r.hasFr=1))}},render:function render(e,n){var t,i,o,s,r,a=n.vProps,c=n.tween,f=n.target,d=n.step,l=n.hasFr,u=n.sps,k=a.length,p=c._from?c._dur-c._time:c._time;if(l){if((i=(0|(p*=u))-d)<0){for(;k--;)(t=a[k]).v=t.vel/u,t.val=t.s;k=a.length,n.step=d=0,i=0|p}for(o=p%1;k--;){for(t=a[k],s=i;s--;)t.v+=t.a,t.v*=t.fr,t.val+=t.v;t.set(f,t.p,h(t.val+t.v*o*t.fr)+t.u)}n.step+=i}else for(r=p*p*.5;k--;)(t=a[k]).set(f,t.p,h(t.s+t.vel*p+t.acc*r)+t.u)},kill:function kill(e){for(var n=this.vProps,t=n.length;t--;)n[t].p===e&&n.splice(t,1)}});g()&&t.registerPlugin(i),e.PhysicsPropsPlugin=i,e.default=i;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* PixiPlugin 3.10.2 | ||
* PixiPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((t=t||self).window=t.window||{})}(this,function(i){"use strict";function l(){return"undefined"!=typeof window}function m(){return o||l()&&(o=window.gsap)&&o.registerPlugin&&o}function n(t){return"function"==typeof t}function t(t,i){var r,o,n=[],e=0,s=0;for(r=0;r<4;r++){for(o=0;o<5;o++)s=4===o?t[e+4]:0,n[e+o]=t[e]*i[o]+t[e+1]*i[o+5]+t[e+2]*i[o+10]+t[e+3]*i[o+15]+s;e+=5}return n}function u(i,r){var o=1-r,n=o*g,e=o*b,s=o*I;return t([n+r,e,s,0,0,n,e+r,s,0,0,n,e,s+r,0,0,0,0,0,1,0],i)}function v(i,r,o){var n=c(r),e=n[0]/255,s=n[1]/255,l=n[2]/255,a=1-o;return t([a+o*e*g,o*e*b,o*e*I,0,0,o*s*g,a+o*s*b,o*s*I,0,0,o*l*g,o*l*b,a+o*l*I,0,0,0,0,0,1,0],i)}function w(i,r){r*=Math.PI/180;var o=Math.cos(r),n=Math.sin(r);return t([g+o*(1-g)+n*-g,b+o*-b+n*-b,I+o*-I+n*(1-I),0,0,g+o*-g+.143*n,b+o*(1-b)+.14*n,I+o*-I+-.283*n,0,0,g+o*-g+n*-(1-g),b+o*-b+n*b,I+o*(1-I)+n*I,0,0,0,0,0,1,0,0,0,0,0,1],i)}function x(i,r){return t([r,0,0,0,.5*(1-r),0,r,0,0,.5*(1-r),0,0,r,0,.5*(1-r),0,0,0,1,0],i)}function y(t,i){var r,o=f.filters[i],n=t.filters||[],e=n.length;for(o||function _warn(t){console.warn(t)}(i+" not found. PixiPlugin.registerPIXI(PIXI)");-1<--e;)if(n[e]instanceof o)return n[e];return r=new o,"BlurFilter"===i&&(r.blur=0),n.push(r),t.filters=n,r}function z(t,i,r,o){i.add(r,t,r[t],o[t]),i._props.push(t)}function A(t,i){var r=new f.filters.ColorMatrixFilter;return r.matrix=i,r.brightness(t,!0),r.matrix}function D(t,i,r){var o,n,e,s=y(t,"ColorMatrixFilter"),l=t._gsColorMatrixFilter=t._gsColorMatrixFilter||function _copy(t){var i,r={};for(i in t)r[i]=t[i];return r}(M),a=i.combineCMF&&!("colorMatrixFilter"in i&&!i.colorMatrixFilter);e=s.matrix,i.resolution&&(s.resolution=i.resolution),i.matrix&&i.matrix.length===e.length?(n=i.matrix,1!==l.contrast&&z("contrast",r,l,M),l.hue&&z("hue",r,l,M),1!==l.brightness&&z("brightness",r,l,M),l.colorizeAmount&&(z("colorize",r,l,M),z("colorizeAmount",r,l,M)),1!==l.saturation&&z("saturation",r,l,M)):(n=p.slice(),null!=i.contrast?(n=x(n,+i.contrast),z("contrast",r,l,i)):1!==l.contrast&&(a?n=x(n,l.contrast):z("contrast",r,l,M)),null!=i.hue?(n=w(n,+i.hue),z("hue",r,l,i)):l.hue&&(a?n=w(n,l.hue):z("hue",r,l,M)),null!=i.brightness?(n=A(+i.brightness,n),z("brightness",r,l,i)):1!==l.brightness&&(a?n=A(l.brightness,n):z("brightness",r,l,M)),null!=i.colorize?(i.colorizeAmount="colorizeAmount"in i?+i.colorizeAmount:1,n=v(n,i.colorize,i.colorizeAmount),z("colorize",r,l,i),z("colorizeAmount",r,l,i)):l.colorizeAmount&&(a?n=v(n,l.colorize,l.colorizeAmount):(z("colorize",r,l,M),z("colorizeAmount",r,l,M))),null!=i.saturation?(n=u(n,+i.saturation),z("saturation",r,l,i)):1!==l.saturation&&(a?n=u(n,l.saturation):z("saturation",r,l,M))),o=n.length;for(;-1<--o;)n[o]!==e[o]&&r.add(e,o,e[o],n[o],"colorMatrixFilter");r._props.push("colorMatrixFilter")}function E(t,i){var r=i.t,o=i.p,n=i.color;(0,i.set)(r,o,n[0]<<16|n[1]<<8|n[2])}function F(t,i){var r=i.g;r&&(r.dirty++,r.clearDirty++)}function G(t,i){i.t.visible=!!i.t.alpha}function H(t,i,r,o){var e=t[i],s=c(n(e)?t[i.indexOf("set")||!n(t["get"+i.substr(3)])?i:"get"+i.substr(3)]():e),l=c(r);o._pt=new d(o._pt,t,i,0,0,E,{t:t,p:i,color:s,set:a(t,i)}),o.add(s,0,s[0],l[0]),o.add(s,1,s[1],l[1]),o.add(s,2,s[2],l[2])}function N(t){return"string"==typeof t}function O(t){return N(t)&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*j:t*j}function P(t,i){return i.set(i.t,i.p,1===t?i.e:Math.round(1e5*(i.s+i.c*t))/1e5,i)}function Q(t,i,r,o,n,e){var s,l,a=360*(e?j:1),u=N(n),c=u&&"="===n.charAt(1)?+(n.charAt(0)+"1"):0,f=parseFloat(c?n.substr(2):n)*(e?j:1),h=c?f*c:f-o,p=o+h;return u&&("short"===(s=n.split("_")[1])&&(h%=a)!==h%(a/2)&&(h+=h<0?a:-a),"cw"===s&&h<0?h=(h+1e10*a)%a-~~(h/a)*a:"ccw"===s&&0<h&&(h=(h-1e10*a)%a-~~(h/a)*a)),t._pt=l=new d(t._pt,i,r,o,h,P),l.e=p,l}function R(){l()&&(r=window,o=m(),f=f||r.PIXI,h=f&&f.VERSION&&"4"===f.VERSION.charAt(0),c=function _splitColor(t){return o.utils.splitColor("0x"===(t+"").substr(0,2)?"#"+t.substr(2):t)})}var o,r,c,f,d,a,h,e,s,p=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],g=.212671,b=.71516,I=.072169,M={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},_={tint:1,lineColor:1,fillColor:1},C="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),X={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},S={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},j=Math.PI/180;for(e=0;e<C.length;e++)s=C[e],X[s+"X"]=s,X[s+"Y"]=s;var Y={version:"3.10.2",name:"pixi",register:function register(t,i,r){o=t,d=r,a=i.getSetter,R()},registerPIXI:function registerPIXI(t){f=t},init:function init(t,i){if(f||R(),!(f&&t instanceof f.DisplayObject))return console.warn(t,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;var r,o,n,e,s,l,a,u,c;for(l in i){if(r=X[l],n=i[l],r)o=~l.charAt(l.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[r],o,t[r][o],"skew"===r?O(n):n);else if("scale"===l||"anchor"===l||"pivot"===l||"tileScale"===l)this.add(t[l],"x",t[l].x,n),this.add(t[l],"y",t[l].y,n);else if("rotation"===l||"angle"===l)Q(this,t,l,t[l],n,"rotation"===l);else if(S[l])e||(D(t,i.colorMatrixFilter||i,this),e=!0);else if("blur"===l||"blurX"===l||"blurY"===l||"blurPadding"===l){if(s=y(t,"BlurFilter"),this.add(s,l,s[l],n),0!==i.blurPadding)for(a=i.blurPadding||2*Math.max(s[l],n),u=t.filters.length;-1<--u;)t.filters[u].padding=Math.max(t.filters[u].padding,a)}else if(_[l])if(("lineColor"===l||"fillColor"===l)&&t instanceof f.Graphics)for(c=(t.geometry||t).graphicsData,this._pt=new d(this._pt,t,l,0,0,F,{g:t.geometry||t}),u=c.length;-1<--u;)H(h?c[u]:c[u][l.substr(0,4)+"Style"],h?l:"color",n,this);else H(t,l,n,this);else"autoAlpha"===l?(this._pt=new d(this._pt,t,"visible",0,0,G),this.add(t,"alpha",t.alpha,n),this._props.push("alpha","visible")):"resolution"!==l&&this.add(t,l,"get",n);this._props.push(l)}}};m()&&o.registerPlugin(Y),i.PixiPlugin=Y,i.default=Y;if (typeof(window)==="undefined"||window!==i){Object.defineProperty(i,"__esModule",{value:!0})} else {delete i.default}}); | ||
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((t=t||self).window=t.window||{})}(this,function(i){"use strict";function l(){return"undefined"!=typeof window}function m(){return o||l()&&(o=window.gsap)&&o.registerPlugin&&o}function n(t){return"function"==typeof t}function t(t,i){var r,o,n=[],e=0,s=0;for(r=0;r<4;r++){for(o=0;o<5;o++)s=4===o?t[e+4]:0,n[e+o]=t[e]*i[o]+t[e+1]*i[o+5]+t[e+2]*i[o+10]+t[e+3]*i[o+15]+s;e+=5}return n}function u(i,r){var o=1-r,n=o*g,e=o*b,s=o*I;return t([n+r,e,s,0,0,n,e+r,s,0,0,n,e,s+r,0,0,0,0,0,1,0],i)}function v(i,r,o){var n=c(r),e=n[0]/255,s=n[1]/255,l=n[2]/255,a=1-o;return t([a+o*e*g,o*e*b,o*e*I,0,0,o*s*g,a+o*s*b,o*s*I,0,0,o*l*g,o*l*b,a+o*l*I,0,0,0,0,0,1,0],i)}function w(i,r){r*=Math.PI/180;var o=Math.cos(r),n=Math.sin(r);return t([g+o*(1-g)+n*-g,b+o*-b+n*-b,I+o*-I+n*(1-I),0,0,g+o*-g+.143*n,b+o*(1-b)+.14*n,I+o*-I+-.283*n,0,0,g+o*-g+n*-(1-g),b+o*-b+n*b,I+o*(1-I)+n*I,0,0,0,0,0,1,0,0,0,0,0,1],i)}function x(i,r){return t([r,0,0,0,.5*(1-r),0,r,0,0,.5*(1-r),0,0,r,0,.5*(1-r),0,0,0,1,0],i)}function y(t,i){var r,o=f.filters[i],n=t.filters||[],e=n.length;for(o||function _warn(t){console.warn(t)}(i+" not found. PixiPlugin.registerPIXI(PIXI)");-1<--e;)if(n[e]instanceof o)return n[e];return r=new o,"BlurFilter"===i&&(r.blur=0),n.push(r),t.filters=n,r}function z(t,i,r,o){i.add(r,t,r[t],o[t]),i._props.push(t)}function A(t,i){var r=new f.filters.ColorMatrixFilter;return r.matrix=i,r.brightness(t,!0),r.matrix}function D(t,i,r){var o,n,e,s=y(t,"ColorMatrixFilter"),l=t._gsColorMatrixFilter=t._gsColorMatrixFilter||function _copy(t){var i,r={};for(i in t)r[i]=t[i];return r}(M),a=i.combineCMF&&!("colorMatrixFilter"in i&&!i.colorMatrixFilter);e=s.matrix,i.resolution&&(s.resolution=i.resolution),i.matrix&&i.matrix.length===e.length?(n=i.matrix,1!==l.contrast&&z("contrast",r,l,M),l.hue&&z("hue",r,l,M),1!==l.brightness&&z("brightness",r,l,M),l.colorizeAmount&&(z("colorize",r,l,M),z("colorizeAmount",r,l,M)),1!==l.saturation&&z("saturation",r,l,M)):(n=p.slice(),null!=i.contrast?(n=x(n,+i.contrast),z("contrast",r,l,i)):1!==l.contrast&&(a?n=x(n,l.contrast):z("contrast",r,l,M)),null!=i.hue?(n=w(n,+i.hue),z("hue",r,l,i)):l.hue&&(a?n=w(n,l.hue):z("hue",r,l,M)),null!=i.brightness?(n=A(+i.brightness,n),z("brightness",r,l,i)):1!==l.brightness&&(a?n=A(l.brightness,n):z("brightness",r,l,M)),null!=i.colorize?(i.colorizeAmount="colorizeAmount"in i?+i.colorizeAmount:1,n=v(n,i.colorize,i.colorizeAmount),z("colorize",r,l,i),z("colorizeAmount",r,l,i)):l.colorizeAmount&&(a?n=v(n,l.colorize,l.colorizeAmount):(z("colorize",r,l,M),z("colorizeAmount",r,l,M))),null!=i.saturation?(n=u(n,+i.saturation),z("saturation",r,l,i)):1!==l.saturation&&(a?n=u(n,l.saturation):z("saturation",r,l,M))),o=n.length;for(;-1<--o;)n[o]!==e[o]&&r.add(e,o,e[o],n[o],"colorMatrixFilter");r._props.push("colorMatrixFilter")}function E(t,i){var r=i.t,o=i.p,n=i.color;(0,i.set)(r,o,n[0]<<16|n[1]<<8|n[2])}function F(t,i){var r=i.g;r&&(r.dirty++,r.clearDirty++)}function G(t,i){i.t.visible=!!i.t.alpha}function H(t,i,r,o){var e=t[i],s=c(n(e)?t[i.indexOf("set")||!n(t["get"+i.substr(3)])?i:"get"+i.substr(3)]():e),l=c(r);o._pt=new d(o._pt,t,i,0,0,E,{t:t,p:i,color:s,set:a(t,i)}),o.add(s,0,s[0],l[0]),o.add(s,1,s[1],l[1]),o.add(s,2,s[2],l[2])}function N(t){return"string"==typeof t}function O(t){return N(t)&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*j:t*j}function P(t,i){return i.set(i.t,i.p,1===t?i.e:Math.round(1e5*(i.s+i.c*t))/1e5,i)}function Q(t,i,r,o,n,e){var s,l,a=360*(e?j:1),u=N(n),c=u&&"="===n.charAt(1)?+(n.charAt(0)+"1"):0,f=parseFloat(c?n.substr(2):n)*(e?j:1),h=c?f*c:f-o,p=o+h;return u&&("short"===(s=n.split("_")[1])&&(h%=a)!==h%(a/2)&&(h+=h<0?a:-a),"cw"===s&&h<0?h=(h+1e10*a)%a-~~(h/a)*a:"ccw"===s&&0<h&&(h=(h-1e10*a)%a-~~(h/a)*a)),t._pt=l=new d(t._pt,i,r,o,h,P),l.e=p,l}function R(){l()&&(r=window,o=m(),f=f||r.PIXI,h=f&&f.VERSION&&"4"===f.VERSION.charAt(0),c=function _splitColor(t){return o.utils.splitColor("0x"===(t+"").substr(0,2)?"#"+t.substr(2):t)})}var o,r,c,f,d,a,h,e,s,p=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],g=.212671,b=.71516,I=.072169,M={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},_={tint:1,lineColor:1,fillColor:1},C="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),X={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},S={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},j=Math.PI/180;for(e=0;e<C.length;e++)s=C[e],X[s+"X"]=s,X[s+"Y"]=s;var Y={version:"3.10.3",name:"pixi",register:function register(t,i,r){o=t,d=r,a=i.getSetter,R()},registerPIXI:function registerPIXI(t){f=t},init:function init(t,i){if(f||R(),!(f&&t instanceof f.DisplayObject))return console.warn(t,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;var r,o,n,e,s,l,a,u,c;for(l in i){if(r=X[l],n=i[l],r)o=~l.charAt(l.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[r],o,t[r][o],"skew"===r?O(n):n);else if("scale"===l||"anchor"===l||"pivot"===l||"tileScale"===l)this.add(t[l],"x",t[l].x,n),this.add(t[l],"y",t[l].y,n);else if("rotation"===l||"angle"===l)Q(this,t,l,t[l],n,"rotation"===l);else if(S[l])e||(D(t,i.colorMatrixFilter||i,this),e=!0);else if("blur"===l||"blurX"===l||"blurY"===l||"blurPadding"===l){if(s=y(t,"BlurFilter"),this.add(s,l,s[l],n),0!==i.blurPadding)for(a=i.blurPadding||2*Math.max(s[l],n),u=t.filters.length;-1<--u;)t.filters[u].padding=Math.max(t.filters[u].padding,a)}else if(_[l])if(("lineColor"===l||"fillColor"===l)&&t instanceof f.Graphics)for(c=(t.geometry||t).graphicsData,this._pt=new d(this._pt,t,l,0,0,F,{g:t.geometry||t}),u=c.length;-1<--u;)H(h?c[u]:c[u][l.substr(0,4)+"Style"],h?l:"color",n,this);else H(t,l,n,this);else"autoAlpha"===l?(this._pt=new d(this._pt,t,"visible",0,0,G),this.add(t,"alpha",t.alpha,n),this._props.push("alpha","visible")):"resolution"!==l&&this.add(t,l,"get",n);this._props.push(l)}}};m()&&o.registerPlugin(Y),i.PixiPlugin=Y,i.default=Y;if (typeof(window)==="undefined"||window!==i){Object.defineProperty(i,"__esModule",{value:!0})} else {delete i.default}}); |
/*! | ||
* ScrambleTextPlugin 3.10.2 | ||
* ScrambleTextPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var r=/(^\s+|\s+$)/g,o=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function getText(D){var u=D.nodeType,F="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F}function emojiSafeSplit(D,u,F,C){if(D+="",F&&(D=D.replace(r,"")),u&&""!==u)return D.replace(/>/g,">").replace(/</g,"<").split(u);for(var e,E,t=[],n=D.length,i=0;i<n;i++)(55296<=(E=D.charAt(i)).charCodeAt(0)&&E.charCodeAt(0)<=56319||65024<=D.charCodeAt(i+1)&&D.charCodeAt(i+1)<=65039)&&(e=((D.substr(i,12).split(o)||[])[1]||"").length||2,E=D.substr(i,e),i+=e-(t.emoji=1)),t.push(">"===E?">":"<"===E?"<":!C||" "!==E||" "!==D.charAt(i-1)&&" "!==D.charAt(i+1)?E:" ");return t}var a=(CharSet.prototype.grow=function grow(D){for(var u=0;u<20;u++)this.sets[u]+=F(D-this.length,this.chars);this.length=D},CharSet);function CharSet(D){this.chars=emojiSafeSplit(D),this.sets=[],this.length=50;for(var u=0;u<20;u++)this.sets[u]=F(80,this.chars)}function i(){return u||"undefined"!=typeof window&&(u=window.gsap)&&u.registerPlugin&&u}function l(){return String.fromCharCode.apply(null,arguments)}function t(){s=u=i()}var u,s,E="ScrambleTextPlugin",n=l(103,114,101,101,110,115,111,99,107,46,99,111,109),B=function(D){var u="undefined"!=typeof window,F=0===(u?window.location.href:"").indexOf(l(102,105,108,101,58,47,47))||-1!==D.indexOf(l(108,111,99,97,108,104,111,115,116))||-1!==D.indexOf(l(49,50,55,46,48,32,48,46,49)),C=[n,l(99,111,100,101,112,101,110,46,105,111),l(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),l(99,111,100,101,112,101,110,46,100,101,118),l(99,111,100,101,112,101,110,46,97,112,112),l(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),l(112,101,110,115,46,99,108,111,117,100),l(99,115,115,45,116,114,105,99,107,115,46,99,111,109),l(99,100,112,110,46,105,111),l(112,101,110,115,46,105,111),l(103,97,110,110,111,110,46,116,118),l(99,111,100,101,99,97,110,121,111,110,46,110,101,116),l(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),l(99,101,114,101,98,114,97,120,46,99,111,46,117,107),l(116,121,109,112,97,110,117,115,46,110,101,116),l(116,119,101,101,110,109,97,120,46,99,111,109),l(116,119,101,101,110,108,105,116,101,46,99,111,109),l(112,108,110,107,114,46,99,111),l(104,111,116,106,97,114,46,99,111,109),l(119,101,98,112,97,99,107,98,105,110,46,99,111,109),l(97,114,99,104,105,118,101,46,111,114,103),l(99,111,100,101,115,97,110,100,98,111,120,46,105,111),l(99,115,98,46,97,112,112),l(115,116,97,99,107,98,108,105,116,122,46,99,111,109),l(115,116,97,99,107,98,108,105,116,122,46,105,111),l(99,111,100,105,101,114,46,105,111),l(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),l(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),l(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),l(106,115,102,105,100,100,108,101,46,110,101,116)],e=C.length;for(setTimeout(function checkWarn(){u&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),u&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(l(37,99,87,97,114,110,105,110,103),l(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(l(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+E+l(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(l(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),l(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--e;)if(-1!==D.indexOf(C[e]))return!0;return F||!setTimeout(function(){u&&(window.location.href=l(104,116,116,112,115,58,47,47)+n+l(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+E+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),A=/\s+/g,F=function _scrambleText(D,u){for(var F=u.length,C="";-1<--D;)C+=u[~~(Math.random()*F)];return C},C="ABCDEFGHIJKLMNOPQRSTUVWXYZ",e=C.toLowerCase(),h={upperCase:new a(C),lowerCase:new a(e),upperAndLowerCase:new a(C+e)},c={version:"3.10.2",name:"scrambleText",register:function register(D){u=D,t()},init:function init(D,u,F){if(s||t(),this.prop="innerHTML"in D?"innerHTML":"textContent"in D?"textContent":0,this.prop){this.target=D,"object"!=typeof u&&(u={text:u});var C,e,E,n,i=u.text||u.value||"",r=!1!==u.trim,l=this;return l.delimiter=C=u.delimiter||"",l.original=emojiSafeSplit(getText(D).replace(A," ").split(" ").join(""),C,r),"{original}"!==i&&!0!==i&&null!=i||(i=l.original.join(C)),l.text=emojiSafeSplit((i||"").replace(A," "),C,r),l.hasClass=!(!u.newClass&&!u.oldClass),l.newClass=u.newClass,l.oldClass=u.oldClass,n=""===C,l.textHasEmoji=n&&!!l.text.emoji,l.charsHaveEmoji=!!u.chars&&!!emojiSafeSplit(u.chars).emoji,l.length=n?l.original.length:l.original.join(C).length,l.lengthDif=(n?l.text.length:l.text.join(C).length)-l.length,l.fillChar=u.fillChar||u.chars&&~u.chars.indexOf(" ")?" ":"",l.charSet=E=h[u.chars||"upperCase"]||new a(u.chars),l.speed=.05/(u.speed||1),l.prevScrambleTime=0,l.setIndex=20*Math.random()|0,(e=l.length+Math.max(l.lengthDif,0))>E.length&&E.grow(e),l.chars=E.sets[l.setIndex],l.revealDelay=u.revealDelay||0,l.tweenLength=!1!==u.tweenLength,l.tween=F,l.rightToLeft=!!u.rightToLeft,l._props.push("scrambleText","text"),B}},render:function render(D,u){var F,C,e,E,t,n,i,r,l,o,a,s=u.target,B=u.prop,A=u.text,h=u.delimiter,c=u.tween,f=u.prevScrambleTime,d=u.revealDelay,p=u.setIndex,g=u.chars,m=u.charSet,w=u.length,x=u.textHasEmoji,S=u.charsHaveEmoji,j=u.lengthDif,v=u.tweenLength,b=u.oldClass,T=u.newClass,y=u.rightToLeft,_=u.fillChar,L=u.speed,M=u.original,O=u.hasClass,H=A.length,W=c._time,P=W-f;d&&(c._from&&(W=c._dur-W),D=0===W?0:W<d?1e-6:W===c._dur?1:c._ease((W-d)/(c._dur-d))),D<0?D=0:1<D&&(D=1),y&&(D=1-D),F=~~(D*H+.5),E=D?((L<P||P<-L)&&(u.setIndex=p=(p+(19*Math.random()|0))%20,u.chars=m.sets[p],u.prevScrambleTime+=P),g):M.join(h),a=c._from?D:1-D,o=w+(v?c._from?a*a*a:1-a*a*a:1)*j,E=y?1!==D||!c._from&&"isFromStart"!==c.data?(i=A.slice(F).join(h),e=S?emojiSafeSplit(E).slice(0,o-(x?emojiSafeSplit(i):i).length+.5|0).join(""):E.substr(0,o-(x?emojiSafeSplit(i):i).length+.5|0),i):(e="",M.join(h)):(e=A.slice(0,F).join(h),C=(x?emojiSafeSplit(e):e).length,S?emojiSafeSplit(E).slice(C,o+.5|0).join(""):E.substr(C,o-C+.5|0)),i=O?((t=(r=y?b:T)&&0!=F)?"<span class='"+r+"'>":"")+e+(t?"</span>":"")+((n=(l=y?T:b)&&F!==H)?"<span class='"+l+"'>":"")+h+E+(n?"</span>":""):e+h+E,s[B]=" "===_&&~i.indexOf(" ")?i.split(" ").join(" "):i}};c.emojiSafeSplit=emojiSafeSplit,c.getText=getText,i()&&u.registerPlugin(c),D.ScrambleTextPlugin=c,D.default=c;if (typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})} else {delete D.default}}); | ||
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var r=/(^\s+|\s+$)/g,o=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function getText(D){var u=D.nodeType,F="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F}function emojiSafeSplit(D,u,F,C){if(D+="",F&&(D=D.replace(r,"")),u&&""!==u)return D.replace(/>/g,">").replace(/</g,"<").split(u);for(var e,E,t=[],n=D.length,i=0;i<n;i++)(55296<=(E=D.charAt(i)).charCodeAt(0)&&E.charCodeAt(0)<=56319||65024<=D.charCodeAt(i+1)&&D.charCodeAt(i+1)<=65039)&&(e=((D.substr(i,12).split(o)||[])[1]||"").length||2,E=D.substr(i,e),i+=e-(t.emoji=1)),t.push(">"===E?">":"<"===E?"<":!C||" "!==E||" "!==D.charAt(i-1)&&" "!==D.charAt(i+1)?E:" ");return t}var a=(CharSet.prototype.grow=function grow(D){for(var u=0;u<20;u++)this.sets[u]+=F(D-this.length,this.chars);this.length=D},CharSet);function CharSet(D){this.chars=emojiSafeSplit(D),this.sets=[],this.length=50;for(var u=0;u<20;u++)this.sets[u]=F(80,this.chars)}function i(){return u||"undefined"!=typeof window&&(u=window.gsap)&&u.registerPlugin&&u}function l(){return String.fromCharCode.apply(null,arguments)}function t(){s=u=i()}var u,s,E="ScrambleTextPlugin",n=l(103,114,101,101,110,115,111,99,107,46,99,111,109),B=function(D){var u="undefined"!=typeof window,F=0===(u?window.location.href:"").indexOf(l(102,105,108,101,58,47,47))||-1!==D.indexOf(l(108,111,99,97,108,104,111,115,116))||-1!==D.indexOf(l(49,50,55,46,48,32,48,46,49)),C=[n,l(99,111,100,101,112,101,110,46,105,111),l(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),l(99,111,100,101,112,101,110,46,100,101,118),l(99,111,100,101,112,101,110,46,97,112,112),l(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),l(112,101,110,115,46,99,108,111,117,100),l(99,115,115,45,116,114,105,99,107,115,46,99,111,109),l(99,100,112,110,46,105,111),l(112,101,110,115,46,105,111),l(103,97,110,110,111,110,46,116,118),l(99,111,100,101,99,97,110,121,111,110,46,110,101,116),l(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),l(99,101,114,101,98,114,97,120,46,99,111,46,117,107),l(116,121,109,112,97,110,117,115,46,110,101,116),l(116,119,101,101,110,109,97,120,46,99,111,109),l(116,119,101,101,110,108,105,116,101,46,99,111,109),l(112,108,110,107,114,46,99,111),l(104,111,116,106,97,114,46,99,111,109),l(119,101,98,112,97,99,107,98,105,110,46,99,111,109),l(97,114,99,104,105,118,101,46,111,114,103),l(99,111,100,101,115,97,110,100,98,111,120,46,105,111),l(99,115,98,46,97,112,112),l(115,116,97,99,107,98,108,105,116,122,46,99,111,109),l(115,116,97,99,107,98,108,105,116,122,46,105,111),l(99,111,100,105,101,114,46,105,111),l(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),l(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),l(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),l(106,115,102,105,100,100,108,101,46,110,101,116)],e=C.length;for(setTimeout(function checkWarn(){u&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),u&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(l(37,99,87,97,114,110,105,110,103),l(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(l(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+E+l(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(l(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),l(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--e;)if(-1!==D.indexOf(C[e]))return!0;return F||!setTimeout(function(){u&&(window.location.href=l(104,116,116,112,115,58,47,47)+n+l(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+E+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),A=/\s+/g,F=function _scrambleText(D,u){for(var F=u.length,C="";-1<--D;)C+=u[~~(Math.random()*F)];return C},C="ABCDEFGHIJKLMNOPQRSTUVWXYZ",e=C.toLowerCase(),h={upperCase:new a(C),lowerCase:new a(e),upperAndLowerCase:new a(C+e)},c={version:"3.10.3",name:"scrambleText",register:function register(D){u=D,t()},init:function init(D,u,F){if(s||t(),this.prop="innerHTML"in D?"innerHTML":"textContent"in D?"textContent":0,this.prop){this.target=D,"object"!=typeof u&&(u={text:u});var C,e,E,n,i=u.text||u.value||"",r=!1!==u.trim,l=this;return l.delimiter=C=u.delimiter||"",l.original=emojiSafeSplit(getText(D).replace(A," ").split(" ").join(""),C,r),"{original}"!==i&&!0!==i&&null!=i||(i=l.original.join(C)),l.text=emojiSafeSplit((i||"").replace(A," "),C,r),l.hasClass=!(!u.newClass&&!u.oldClass),l.newClass=u.newClass,l.oldClass=u.oldClass,n=""===C,l.textHasEmoji=n&&!!l.text.emoji,l.charsHaveEmoji=!!u.chars&&!!emojiSafeSplit(u.chars).emoji,l.length=n?l.original.length:l.original.join(C).length,l.lengthDif=(n?l.text.length:l.text.join(C).length)-l.length,l.fillChar=u.fillChar||u.chars&&~u.chars.indexOf(" ")?" ":"",l.charSet=E=h[u.chars||"upperCase"]||new a(u.chars),l.speed=.05/(u.speed||1),l.prevScrambleTime=0,l.setIndex=20*Math.random()|0,(e=l.length+Math.max(l.lengthDif,0))>E.length&&E.grow(e),l.chars=E.sets[l.setIndex],l.revealDelay=u.revealDelay||0,l.tweenLength=!1!==u.tweenLength,l.tween=F,l.rightToLeft=!!u.rightToLeft,l._props.push("scrambleText","text"),B}},render:function render(D,u){var F,C,e,E,t,n,i,r,l,o,a,s=u.target,B=u.prop,A=u.text,h=u.delimiter,c=u.tween,f=u.prevScrambleTime,d=u.revealDelay,p=u.setIndex,g=u.chars,m=u.charSet,w=u.length,x=u.textHasEmoji,S=u.charsHaveEmoji,j=u.lengthDif,v=u.tweenLength,b=u.oldClass,T=u.newClass,y=u.rightToLeft,_=u.fillChar,L=u.speed,M=u.original,O=u.hasClass,H=A.length,W=c._time,P=W-f;d&&(c._from&&(W=c._dur-W),D=0===W?0:W<d?1e-6:W===c._dur?1:c._ease((W-d)/(c._dur-d))),D<0?D=0:1<D&&(D=1),y&&(D=1-D),F=~~(D*H+.5),E=D?((L<P||P<-L)&&(u.setIndex=p=(p+(19*Math.random()|0))%20,u.chars=m.sets[p],u.prevScrambleTime+=P),g):M.join(h),a=c._from?D:1-D,o=w+(v?c._from?a*a*a:1-a*a*a:1)*j,E=y?1!==D||!c._from&&"isFromStart"!==c.data?(i=A.slice(F).join(h),e=S?emojiSafeSplit(E).slice(0,o-(x?emojiSafeSplit(i):i).length+.5|0).join(""):E.substr(0,o-(x?emojiSafeSplit(i):i).length+.5|0),i):(e="",M.join(h)):(e=A.slice(0,F).join(h),C=(x?emojiSafeSplit(e):e).length,S?emojiSafeSplit(E).slice(C,o+.5|0).join(""):E.substr(C,o-C+.5|0)),i=O?((t=(r=y?b:T)&&0!=F)?"<span class='"+r+"'>":"")+e+(t?"</span>":"")+((n=(l=y?T:b)&&F!==H)?"<span class='"+l+"'>":"")+h+E+(n?"</span>":""):e+h+E,s[B]=" "===_&&~i.indexOf(" ")?i.split(" ").join(" "):i}};c.emojiSafeSplit=emojiSafeSplit,c.getText=getText,i()&&u.registerPlugin(c),D.ScrambleTextPlugin=c,D.default=c;if (typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})} else {delete D.default}}); |
/*! | ||
* ScrollSmoother 3.10.2 | ||
* ScrollSmoother 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(){return"undefined"!=typeof window}function q(){return k||p()&&(k=window.gsap)&&k.registerPlugin&&k}function t(){return String.fromCharCode.apply(null,arguments)}var k,C,P,_,R,A,H,B,F,M,I,z,a="ScrollSmoother",s=t(103,114,101,101,110,115,111,99,107,46,99,111,109),r=(function(e){var r="undefined"!=typeof window,n=0===(r?window.location.href:"").indexOf(t(102,105,108,101,58,47,47))||-1!==e.indexOf(t(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(t(49,50,55,46,48,32,48,46,49)),o=[s,t(99,111,100,101,112,101,110,46,105,111),t(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),t(99,111,100,101,112,101,110,46,100,101,118),t(99,111,100,101,112,101,110,46,97,112,112),t(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),t(112,101,110,115,46,99,108,111,117,100),t(99,115,115,45,116,114,105,99,107,115,46,99,111,109),t(99,100,112,110,46,105,111),t(112,101,110,115,46,105,111),t(103,97,110,110,111,110,46,116,118),t(99,111,100,101,99,97,110,121,111,110,46,110,101,116),t(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),t(99,101,114,101,98,114,97,120,46,99,111,46,117,107),t(116,121,109,112,97,110,117,115,46,110,101,116),t(116,119,101,101,110,109,97,120,46,99,111,109),t(116,119,101,101,110,108,105,116,101,46,99,111,109),t(112,108,110,107,114,46,99,111),t(104,111,116,106,97,114,46,99,111,109),t(119,101,98,112,97,99,107,98,105,110,46,99,111,109),t(97,114,99,104,105,118,101,46,111,114,103),t(99,111,100,101,115,97,110,100,98,111,120,46,105,111),t(99,115,98,46,97,112,112),t(115,116,97,99,107,98,108,105,116,122,46,99,111,109),t(115,116,97,99,107,98,108,105,116,122,46,105,111),t(99,111,100,105,101,114,46,105,111),t(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),t(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),t(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),t(106,115,102,105,100,100,108,101,46,110,101,116)],i=o.length;for(setTimeout(function checkWarn(){r&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),r&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(t(37,99,87,97,114,110,105,110,103),t(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(t(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+a+t(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(t(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),t(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--i;)if(-1!==e.indexOf(o[i]))return;n||setTimeout(function(){r&&(window.location.href=t(104,116,116,112,115,58,47,47)+s+t(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+a+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),ScrollSmoother.register=function register(e){return C||(k=e||q(),p()&&window.document&&(P=window,_=document,R=_.documentElement,A=_.body),k&&(H=k.utils.toArray,B=k.utils.clamp,I=k.parseEase("expo"),F=k.core.globals().ScrollTrigger,k.core.globals("ScrollSmoother",ScrollSmoother),A&&F&&(z=F.core._getVelocityProp,C=1))),C},function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}(ScrollSmoother,[{key:"progress",get:function get(){return this.scrollTrigger.animation._time/100}}]),ScrollSmoother);function ScrollSmoother(e){var o=this;C||ScrollSmoother.register(k)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),e=this.vars=e||{},M&&M.kill(),M=this;function ua(){return T.update(-g)}function wa(){return r.style.overflow="visible"}function ya(e){var t=e.getTween();t&&(t.pause(),t._time=t._dur,t._tTime=t._tDur),u=!1,e.animation.progress(e.progress,!0)}function za(e,t){(e!==g&&!l||t)&&(h&&(r.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+e+", 0, 1)"),S=e-g,g=e,F.isUpdating||F.update())}function Aa(e){return arguments.length?(l&&(g=-e),x.y=-e,u=!0,d(e),this):-g}function Ca(e){v.scrollTop=0,F.isInViewport(e.target)||e.target===f||o.scrollTo(e.target,!1,"center center"),f=e.target}function Da(e){var r,n,o,i;w.forEach(function(t){r=t.pins,i=t.markers,e.forEach(function(e){e.trigger!==t.trigger&&e.pinnedContainer!==t.trigger||t===e||(n=e.start,o=(n-t.start-t.offset)/t.ratio-(n-t.start),r.forEach(function(e){return o-=e.distance/t.ratio-e.distance}),e.setPositions(n+o,e.end+o),e.markerStart&&i.push(k.quickSetter([e.markerStart,e.markerEnd],"y","px")),e.pin&&0<e.end&&(o=e.end-e.start,r.push({start:e.start,end:e.end,distance:o,trig:e}),t.setPositions(t.start,t.end+o),t.vars.onRefresh(t)))})})}function Ea(){wa(),requestAnimationFrame(wa),w&&(w.forEach(function(e){var t=e.start,r=e.auto?Math.min(F.maxScroll(e.scroller),e.end):t+(e.end-t)/e.ratio,n=(r-e.end)/2;t-=n,r-=n,e.offset=n||1e-4,e.pins.length=0,e.setPositions(Math.min(t,r),Math.max(t,r)),e.vars.onRefresh(e)}),Da(F.sort())),T.reset()}function Fa(){return w&&w.forEach(function(e){return e.vars.onRefresh(e)})}function Ga(){return w&&w.forEach(function(e){return e.vars.onRefreshInit(e)}),Fa}function Ha(t,r,n,o){return function(){var e="function"==typeof r?r(n,o):r;return e||0===e||(e=o.getAttribute("data-"+t)||("speed"===t?1:0)),o.setAttribute("data-"+t,e),"auto"===e?e:parseFloat(e)}}function Ia(r,e,t,n){function wb(){e=a(),t=f(),o=parseFloat(e)||1,c=(s="auto"===e)?0:.5,l&&l.kill(),l=t&&k.to(r,{ease:I,overwrite:!1,y:"+=0",duration:t}),i&&(i.ratio=o,i.autoSpeed=s)}function xb(){h.y=d+"px",h.renderTransform(1),wb()}function Bb(e){if(s){xb();var t=function _autoDistance(e,t){var r,n,o=e.parentNode||R,i=e.getBoundingClientRect(),a=o.getBoundingClientRect(),s=a.top-i.top,l=a.bottom-i.bottom,c=(Math.abs(s)>Math.abs(l)?s:l)/(1-t),u=-c*t;return 0<c&&(u+=-(n=.5==(r=a.height/(P.innerHeight+a.height))?2*a.height:2*Math.min(a.height,-c*r/(2*r-1)))/2,c+=n),{change:c,offset:u}}(r,B(0,1,-e.start/(e.end-e.start)));m=t.change,u=t.offset}else m=(e.end-e.start)*(1-o),u=0;g.forEach(function(e){return m-=e.distance*(1-o)}),e.vars.onUpdate(e),l&&l.progress(1)}var o,i,s,l,c,u,a=Ha("speed",e,n,r),f=Ha("lag",t,n,r),d=k.getProperty(r,"y"),h=r._gsap,g=[],p=[],m=0;return wb(),(1!==o||s||l)&&(Bb(i=F.create({trigger:s?r.parentNode:r,scroller:v,scrub:!0,refreshPriority:-999,onRefreshInit:xb,onRefresh:Bb,onKill:function onKill(e){var t=w.indexOf(e);0<=t&&w.splice(t,1)},onUpdate:function onUpdate(e){var t,r,n,o=d+m*(e.progress-c),i=g.length,a=0;if(e.offset){if(i){for(r=-x.y,n=e.end;i--;){if((t=g[i]).trig.isActive||r>=t.start&&r<=t.end)return void(l&&(t.trig.progress+=t.trig.direction<0?.001:-.001,t.trig.update(0,0,1),l.resetTo("y",parseFloat(h.y),-S,!0),b&&l.progress(1)));r>t.end&&(a+=t.distance),n-=t.distance}o=d+a+m*((k.utils.clamp(e.start,e.end,r)-e.start-a)/(n-e.start)-c)}o=function _round(e){return Math.round(1e5*e)/1e5||0}(o+u),p.length&&!s&&p.forEach(function(e){return e(o-a)}),l?(l.resetTo("y",o,-S,!0),b&&l.progress(1)):(h.y=o+"px",h.renderTransform(1))}}})),k.core.getCache(i.trigger).stRevert=Ga,i.startY=d,i.pins=g,i.markers=p,i.ratio=o,i.autoSpeed=s,r.style.willChange="transform"),i}var r,v,t,n,w,i,a,s,l,c,u,f,d=F.getScrollFunc(P),h=1===F.isTouch?!0===e.smoothTouch?.8:parseFloat(e.smoothTouch)||0:0===e.smooth||!1===e.smooth?0:parseFloat(e.smooth)||.8,g=0,S=0,b=1,p=e.onUpdate,m=e.onStop,T=z(0),x={y:0};function refreshHeight(){return t=r.clientHeight,r.style.overflow="visible",A.style.height=t+"px",t-P.innerHeight}F.addEventListener("refresh",Ea),k.delayedCall(.5,function(){return b=0}),this.scrollTop=Aa,this.scrollTo=function(e,t,r){var n=k.utils.clamp(0,F.maxScroll(P),isNaN(e)?o.offset(e,r):+e);t?l?k.to(o,{duration:h,scrollTop:n,overwrite:"auto",ease:I}):d(n):Aa(n)},this.offset=function(e,t){e=H(e)[0];var r,n=k.getProperty(e,"y"),o=F.create({trigger:e,start:t||"top top"});return w&&Da([o]),r=o.start,o.kill(!1),k.set(e,{y:n}),r},this.content=function(e){return arguments.length?(r=H(e||"#smooth-content")[0]||A.children[0],s=r.getAttribute("style")||"",k.set(r,{overflow:"visible",width:"100%"}),this):r},this.wrapper=function(e){return arguments.length?(v=H(e||"#smooth-wrapper")[0]||function _wrap(e){var t=_.createElement("div");return t.classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(t,e),t.appendChild(e),t}(r),a=v.getAttribute("style")||"",refreshHeight(),k.set(v,h?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):v},this.effects=function(e,t){if(w=w||[],!e)return w.slice(0);(e=H(e)).forEach(function(e){for(var t=w.length;t--;)w[t].trigger===e&&(w[t].kill(),w.splice(t,1))});t=t||{};var r,n,o=t.speed,i=t.lag,a=[];for(r=0;r<e.length;r++)(n=Ia(e[r],o,i,r))&&a.push(n);return w.push.apply(w,a),a},this.content(e.content),this.wrapper(e.wrapper),this.render=function(e){return za(e||0===e?e:g)},this.getVelocity=function(){return T.getVelocity(-g)},F.scrollerProxy(v,{scrollTop:Aa,scrollHeight:function scrollHeight(){return A.scrollHeight},fixedMarkers:!1!==e.fixedMarkers&&!!h,content:r,getBoundingClientRect:function getBoundingClientRect(){return{top:0,left:0,width:P.innerWidth,height:P.innerHeight}}}),F.defaults({scroller:v});var E=F.getAll().filter(function(e){return e.scroller===P||e.scroller===v});E.forEach(function(e){return e.revert(!0)}),n=F.create({animation:k.to(x,{y:function y(){return P.innerHeight-t},ease:"none",data:"ScrollSmoother",duration:100,onUpdate:function onUpdate(){var e=u;e&&(x.y=g,ya(n)),za(x.y,e),ua(),p&&!l&&p(o)}}),onRefreshInit:function onRefreshInit(){return x.y=0},id:"ScrollSmoother",scroller:P,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:refreshHeight,onScrubComplete:function onScrubComplete(){T.reset(),m&&m(o)},scrub:h||!0,onRefresh:function onRefresh(e){ya(e),za(x.y)}}),this.smooth=function(e){return h=e,arguments.length?n.scrubDuration(e):n.getTween()?n.getTween().duration():0},n.getTween()&&(n.getTween().vars.ease=e.ease||I),this.scrollTrigger=n,e.effects&&this.effects(!0===e.effects?"[data-speed], [data-lag]":e.effects,{}),E.forEach(function(e){e.vars.scroller=v,e.init(e.vars,e.animation)}),this.paused=function(e){return arguments.length?(!!l!==e&&(e?(n.getTween()&&n.getTween().pause(),d(-g),T.reset(),(c=F.normalizeScroll())&&c.disable(),l=F.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,onChangeY:function onChangeY(){return Aa(-g)}})):(l.kill(),l=0,c&&c.enable(),n.progress=(-g-n.start)/(n.end-n.start),ya(n))),this):!!l},this.kill=function(){o.paused(!1),ya(n),n.kill();for(var e=w?w.length:0;e--;)w[e].kill();F.scrollerProxy(v),F.removeEventListener("refresh",Ea),v.style.cssText=a,r.style.cssText=s;var t=F.defaults({});t&&t.scroller===v&&F.defaults({scroller:P}),o.observer&&F.normalizeScroll(!1),clearInterval(i),M=null,P.removeEventListener("focusin",Ca)},e.normalizeScroll&&(this.observer=F.normalizeScroll({debounce:!0})),F.config(e),"overscrollBehavior"in P.getComputedStyle(A)&&k.set(A,{overscrollBehavior:"none"}),P.addEventListener("focusin",Ca),i=setInterval(ua,250),"loading"===_.readyState||requestAnimationFrame(function(){return F.refresh()})}r.version="3.10.2",r.create=function(e){return M&&e&&M.content()===H(e.content)[0]?M:new r(e)},r.get=function(){return M},q()&&k.registerPlugin(r),e.ScrollSmoother=r,e.default=r;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function q(){return"undefined"!=typeof window}function r(){return F||q()&&(F=window.gsap)&&F.registerPlugin&&F}function u(){return String.fromCharCode.apply(null,arguments)}var F,I,M,A,O,L,z,B,N,U,W,G,K,i="ScrollSmoother",a=u(103,114,101,101,110,115,111,99,107,46,99,111,109),t=(function(e){var t="undefined"!=typeof window,r=0===(t?window.location.href:"").indexOf(u(102,105,108,101,58,47,47))||-1!==e.indexOf(u(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(u(49,50,55,46,48,32,48,46,49)),n=[a,u(99,111,100,101,112,101,110,46,105,111),u(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),u(99,111,100,101,112,101,110,46,100,101,118),u(99,111,100,101,112,101,110,46,97,112,112),u(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),u(112,101,110,115,46,99,108,111,117,100),u(99,115,115,45,116,114,105,99,107,115,46,99,111,109),u(99,100,112,110,46,105,111),u(112,101,110,115,46,105,111),u(103,97,110,110,111,110,46,116,118),u(99,111,100,101,99,97,110,121,111,110,46,110,101,116),u(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),u(99,101,114,101,98,114,97,120,46,99,111,46,117,107),u(116,121,109,112,97,110,117,115,46,110,101,116),u(116,119,101,101,110,109,97,120,46,99,111,109),u(116,119,101,101,110,108,105,116,101,46,99,111,109),u(112,108,110,107,114,46,99,111),u(104,111,116,106,97,114,46,99,111,109),u(119,101,98,112,97,99,107,98,105,110,46,99,111,109),u(97,114,99,104,105,118,101,46,111,114,103),u(99,111,100,101,115,97,110,100,98,111,120,46,105,111),u(99,115,98,46,97,112,112),u(115,116,97,99,107,98,108,105,116,122,46,99,111,109),u(115,116,97,99,107,98,108,105,116,122,46,105,111),u(99,111,100,105,101,114,46,105,111),u(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),u(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),u(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),u(106,115,102,105,100,100,108,101,46,110,101,116)],o=n.length;for(setTimeout(function checkWarn(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(u(37,99,87,97,114,110,105,110,103),u(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(u(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+i+u(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(u(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),u(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--o;)if(-1!==e.indexOf(n[o]))return;r||setTimeout(function(){t&&(window.location.href=u(104,116,116,112,115,58,47,47)+a+u(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+i+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),ScrollSmoother.register=function register(e){return I||(F=e||r(),q()&&window.document&&(M=window,A=document,O=A.documentElement,L=A.body),F&&(z=F.utils.toArray,B=F.utils.clamp,W=F.parseEase("expo"),N=F.core.globals().ScrollTrigger,F.core.globals("ScrollSmoother",ScrollSmoother),L&&N&&(G=N.core._getVelocityProp,K=N.core._inputObserver,ScrollSmoother.refresh=N.refresh,I=1))),I},function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}(ScrollSmoother,[{key:"progress",get:function get(){return this.scrollTrigger.animation._time/100}}]),ScrollSmoother);function ScrollSmoother(e){var o=this;I||ScrollSmoother.register(F)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),e=this.vars=e||{},U&&U.kill(),U=this;function Ca(){return _.update(-k)}function Ea(){return n.style.overflow="visible"}function Ga(e){e.update();var t=e.getTween();t&&(t.pause(),t._time=t._dur,t._tTime=t._tDur),h=!1,e.animation.progress(e.progress,!0)}function Ha(e,t){(e!==k&&!c||t)&&(E&&(n.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+e+", 0, 1)"),C=e-k,k=e,N.isUpdating||N.update())}function Ia(e){return arguments.length?(c&&(k=-e),R.y=-e,h=!0,x(e),this):-R.y}function Ka(e){v.scrollTop=0,b&&!1===b(o,e)||(N.isInViewport(e.target)||e.target===d||o.scrollTo(e.target,!1,"center center"),d=e.target)}function La(e){var r,n,o,i;w.forEach(function(t){r=t.pins,i=t.markers,e.forEach(function(e){e.trigger!==t.trigger&&e.pinnedContainer!==t.trigger||t===e||(n=e.start,o=(n-t.start-t.offset)/t.ratio-(n-t.start),r.forEach(function(e){return o-=e.distance/t.ratio-e.distance}),e.setPositions(n+o,e.end+o),e.markerStart&&i.push(F.quickSetter([e.markerStart,e.markerEnd],"y","px")),e.pin&&0<e.end&&(o=e.end-e.start,r.push({start:e.start,end:e.end,distance:o,trig:e}),t.setPositions(t.start,t.end+o),t.vars.onRefresh(t)))})})}function Ma(){Ea(),requestAnimationFrame(Ea),w&&(w.forEach(function(e){var t=e.start,r=e.auto?Math.min(N.maxScroll(e.scroller),e.end):t+(e.end-t)/e.ratio,n=(r-e.end)/2;t-=n,r-=n,e.offset=n||1e-4,e.pins.length=0,e.setPositions(Math.min(t,r),Math.max(t,r)),e.vars.onRefresh(e)}),La(N.sort())),_.reset()}function Na(){return w&&w.forEach(function(e){return e.vars.onRefresh(e)})}function Oa(){return w&&w.forEach(function(e){return e.vars.onRefreshInit(e)}),Na}function Pa(t,r,n,o){return function(){var e="function"==typeof r?r(n,o):r;return e||0===e||(e=o.getAttribute("data-"+t)||("speed"===t?1:0)),o.setAttribute("data-"+t,e),"auto"===e?e:parseFloat(e)}}function Qa(r,e,t,n){function Eb(){e=a(),t=f(),o=parseFloat(e)||1,u=(s="auto"===e)?0:.5,l&&l.kill(),l=t&&F.to(r,{ease:W,overwrite:!1,y:"+=0",duration:t}),i&&(i.ratio=o,i.autoSpeed=s)}function Fb(){d.y=h+"px",d.renderTransform(1),Eb()}function Jb(e){if(s){Fb();var t=function _autoDistance(e,t){var r,n,o=e.parentNode||O,i=e.getBoundingClientRect(),a=o.getBoundingClientRect(),s=a.top-i.top,l=a.bottom-i.bottom,u=(Math.abs(s)>Math.abs(l)?s:l)/(1-t),c=-u*t;return 0<u&&(c+=-(n=.5==(r=a.height/(M.innerHeight+a.height))?2*a.height:2*Math.min(a.height,-u*r/(2*r-1)))/2,u+=n),{change:u,offset:c}}(r,B(0,1,-e.start/(e.end-e.start)));m=t.change,c=t.offset}else m=(e.end-e.start)*(1-o),c=0;g.forEach(function(e){return m-=e.distance*(1-o)}),e.vars.onUpdate(e),l&&l.progress(1)}var o,i,s,l,u,c,a=Pa("speed",e,n,r),f=Pa("lag",t,n,r),h=F.getProperty(r,"y"),d=r._gsap,g=[],p=[],m=0;return Eb(),(1!==o||s||l)&&(Jb(i=N.create({trigger:s?r.parentNode:r,scroller:v,scrub:!0,refreshPriority:-999,onRefreshInit:Fb,onRefresh:Jb,onKill:function onKill(e){var t=w.indexOf(e);0<=t&&w.splice(t,1),Fb()},onUpdate:function onUpdate(e){var t,r,n,o=h+m*(e.progress-u),i=g.length,a=0;if(e.offset){if(i){for(r=-R.y,n=e.end;i--;){if((t=g[i]).trig.isActive||r>=t.start&&r<=t.end)return void(l&&(t.trig.progress+=t.trig.direction<0?.001:-.001,t.trig.update(0,0,1),l.resetTo("y",parseFloat(d.y),-C,!0),P&&l.progress(1)));r>t.end&&(a+=t.distance),n-=t.distance}o=h+a+m*((F.utils.clamp(e.start,e.end,r)-e.start-a)/(n-e.start)-u)}o=function _round(e){return Math.round(1e5*e)/1e5||0}(o+c),p.length&&!s&&p.forEach(function(e){return e(o-a)}),l?(l.resetTo("y",o,-C,!0),P&&l.progress(1)):(d.y=o+"px",d.renderTransform(1))}}})),F.core.getCache(i.trigger).stRevert=Oa,i.startY=h,i.pins=g,i.markers=p,i.ratio=o,i.autoSpeed=s,r.style.willChange="transform"),i}var n,v,t,i,w,a,s,l,u,c,r,f,h,d,g=e.smoothTouch,p=e.onUpdate,m=e.onStop,S=e.smooth,b=e.onFocusIn,T=e.normalizeScroll,x=N.getScrollFunc(M),E=1===N.isTouch?!0===g?.8:parseFloat(g)||0:0===S||!1===S?0:parseFloat(S)||.8,k=0,C=0,P=1,_=G(0),R={y:0};function refreshHeight(){return t=n.clientHeight,n.style.overflow="visible",L.style.height=t+"px",t-M.innerHeight}N.addEventListener("refresh",Ma),F.delayedCall(.5,function(){return P=0}),this.scrollTop=Ia,this.scrollTo=function(e,t,r){var n=F.utils.clamp(0,N.maxScroll(M),isNaN(e)?o.offset(e,r):+e);t?c?F.to(o,{duration:E,scrollTop:n,overwrite:"auto",ease:W}):x(n):Ia(n)},this.offset=function(e,t){var r,n=(e=z(e)[0]).style.cssText,o=N.create({trigger:e,start:t||"top top"});return w&&La([o]),r=o.start,o.kill(!1),e.style.cssText=n,F.core.getCache(e).uncache=1,r},this.content=function(e){if(arguments.length){var t=z(e||"#smooth-content")[0]||L.children[0];return t!==n&&(u=(n=t).getAttribute("style")||"",F.set(n,{overflow:"visible",width:"100%",boxSizing:"border-box"})),this}return n},this.wrapper=function(e){return arguments.length?(v=z(e||"#smooth-wrapper")[0]||function _wrap(e){var t=A.querySelector(".ScrollSmoother-wrapper");return t||((t=A.createElement("div")).classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(t,e),t.appendChild(e)),t}(n),l=v.getAttribute("style")||"",refreshHeight(),F.set(v,E?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):v},this.effects=function(e,t){if(w=w||[],!e)return w.slice(0);(e=z(e)).forEach(function(e){for(var t=w.length;t--;)w[t].trigger===e&&(w[t].kill(),w.splice(t,1))});t=t||{};var r,n,o=t.speed,i=t.lag,a=[];for(r=0;r<e.length;r++)(n=Qa(e[r],o,i,r))&&a.push(n);return w.push.apply(w,a),a},this.sections=function(e,t){if(a=a||[],!e)return a.slice(0);var r=z(e).map(function(t){return N.create({trigger:t,start:"top 120%",end:"bottom -20%",onToggle:function onToggle(e){t.style.opacity=e.isActive?"1":"0",t.style.pointerEvents=e.isActive?"all":"none"}})});return t&&t.add?a.push.apply(a,r):a=r.slice(0),r},this.content(e.content),this.wrapper(e.wrapper),this.render=function(e){return Ha(e||0===e?e:k)},this.getVelocity=function(){return _.getVelocity(-k)},N.scrollerProxy(v,{scrollTop:Ia,scrollHeight:function scrollHeight(){return refreshHeight()&&L.scrollHeight},fixedMarkers:!1!==e.fixedMarkers&&!!E,content:n,getBoundingClientRect:function getBoundingClientRect(){return{top:0,left:0,width:M.innerWidth,height:M.innerHeight}}}),N.defaults({scroller:v});var H=N.getAll().filter(function(e){return e.scroller===M||e.scroller===v});H.forEach(function(e){return e.revert(!0)}),i=N.create({animation:F.to(R,{y:function y(){return-refreshHeight()},ease:"none",data:"ScrollSmoother",duration:100,onUpdate:function onUpdate(){var e=h;e&&(R.y=k,Ga(i)),Ha(R.y,e),Ca(),p&&!c&&p(o)}}),onRefreshInit:function onRefreshInit(){f=R.y,R.y=0},id:"ScrollSmoother",scroller:M,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:refreshHeight,onScrubComplete:function onScrubComplete(){_.reset(),m&&m(o)},scrub:E||!0,onRefresh:function onRefresh(e){Ga(e),R.y=k=-x(),e.animation.progress(f/-e.end)}}),this.smooth=function(e){return E=e,arguments.length?i.scrubDuration(e):i.getTween()?i.getTween().duration():0},i.getTween()&&(i.getTween().vars.ease=e.ease||W),this.scrollTrigger=i,e.effects&&this.effects(!0===e.effects?"[data-speed], [data-lag]":e.effects,{}),e.sections&&this.sections(!0===e.sections?"[data-section]":e.sections),H.forEach(function(e){e.vars.scroller=v,e.init(e.vars,e.animation)}),this.paused=function(e,t){return arguments.length?(!!c!==e&&(e?(i.getTween()&&i.getTween().pause(),x(-k),_.reset(),(r=N.normalizeScroll())&&r.disable(),(c=N.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function onChangeY(){return Ia(-k)}})).nested=K(O,"wheel,touch,scroll",!0,!1!==t)):(c.nested.kill(),c.kill(),c=0,r&&r.enable(),i.progress=(-k-i.start)/(i.end-i.start),Ga(i))),this):!!c},this.kill=function(){o.paused(!1),Ga(i),i.kill();for(var e=(w||[]).concat(a||[]),t=e.length;t--;)e[t].kill();N.scrollerProxy(v),N.removeEventListener("refresh",Ma),L.style.removeProperty("height"),v.style.cssText=l,n.style.cssText=u;var r=N.defaults({});r&&r.scroller===v&&N.defaults({scroller:M}),o.normalizer&&N.normalizeScroll(!1),clearInterval(s),U=null,M.removeEventListener("focusin",Ka)},this.refresh=function(e,t){return i.refresh(e,t)},T&&(this.normalizer=N.normalizeScroll(!0===T?{debounce:!0}:T)),N.config(e),"overscrollBehavior"in M.getComputedStyle(L)&&F.set(L,{overscrollBehavior:"none"}),M.addEventListener("focusin",Ka),s=setInterval(Ca,250),"loading"===A.readyState||requestAnimationFrame(function(){return N.refresh()})}t.version="3.10.3",t.create=function(e){return U&&e&&U.content()===z(e.content)[0]?U:new t(e)},t.get=function(){return U},r()&&F.registerPlugin(t),e.ScrollSmoother=t,e.default=t;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* ScrollToPlugin 3.10.2 | ||
* ScrollToPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function k(){return"undefined"!=typeof window}function l(){return u||k()&&(u=window.gsap)&&u.registerPlugin&&u}function m(e){return"string"==typeof e}function n(e){return"function"==typeof e}function o(e,t){var o="x"===t?"Width":"Height",n="scroll"+o,r="client"+o;return e===T||e===i||e===c?Math.max(i[n],c[n])-(T["inner"+o]||i[r]||c[r]):e[n]-e["offset"+o]}function p(e,t){var o="scroll"+("x"===t?"Left":"Top");return e===T&&(null!=e.pageXOffset?o="page"+t.toUpperCase()+"Offset":e=null!=i[o]?i:c),function(){return e[o]}}function r(e,t){if(!(e=f(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var o=e.getBoundingClientRect(),n=!t||t===T||t===c,r=n?{top:i.clientTop-(T.pageYOffset||i.scrollTop||c.scrollTop||0),left:i.clientLeft-(T.pageXOffset||i.scrollLeft||c.scrollLeft||0)}:t.getBoundingClientRect(),l={x:o.left-r.left,y:o.top-r.top};return!n&&t&&(l.x+=p(t,"x")(),l.y+=p(t,"y")()),l}function s(e,t,n,l,i){return isNaN(e)||"object"==typeof e?m(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+l-i:"max"===e?o(t,n)-i:Math.min(o(t,n),r(e,t)[n]-i):parseFloat(e)-i}function t(){u=l(),k()&&u&&document.body&&(T=window,c=document.body,i=document.documentElement,f=u.utils.toArray,u.config({autoKillThreshold:7}),v=u.config(),a=1)}var u,a,T,i,c,f,v,y={version:"3.10.2",name:"scrollTo",rawVars:1,register:function register(e){u=e,t()},init:function init(e,o,r,l,i){a||t();var c=this,f=u.getProperty(e,"scrollSnapType");c.isWin=e===T,c.target=e,c.tween=r,o=function _clean(e,t,o,r){if(n(e)&&(e=e(t,o,r)),"object"!=typeof e)return m(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var l,i={};for(l in e)i[l]="onAutoKill"!==l&&n(e[l])?e[l](t,o,r):e[l];return i}(o,l,e,i),c.vars=o,c.autoKill=!!o.autoKill,c.getX=p(e,"x"),c.getY=p(e,"y"),c.x=c.xPrev=c.getX(),c.y=c.yPrev=c.getY(),f&&"none"!==f&&(c.snap=1,c.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=o.x?(c.add(c,"x",c.x,s(o.x,e,"x",c.x,o.offsetX||0),l,i),c._props.push("scrollTo_x")):c.skipX=1,null!=o.y?(c.add(c,"y",c.y,s(o.y,e,"y",c.y,o.offsetY||0),l,i),c._props.push("scrollTo_y")):c.skipY=1},render:function render(e,t){for(var n,r,l,i,s,p=t._pt,c=t.target,f=t.tween,u=t.autoKill,a=t.xPrev,y=t.yPrev,d=t.isWin,x=t.snap,g=t.snapInline;p;)p.r(e,p.d),p=p._next;n=d||!t.skipX?t.getX():a,l=(r=d||!t.skipY?t.getY():y)-y,i=n-a,s=v.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),u&&(!t.skipX&&(s<i||i<-s)&&n<o(c,"x")&&(t.skipX=1),!t.skipY&&(s<l||l<-s)&&r<o(c,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(f.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(f,t.vars.onAutoKillParams||[]))),d?T.scrollTo(t.skipX?n:t.x,t.skipY?r:t.y):(t.skipY||(c.scrollTop=t.y),t.skipX||(c.scrollLeft=t.x)),!x||1!==e&&0!==e||(r=c.scrollTop,n=c.scrollLeft,g?c.style.scrollSnapType=g:c.style.removeProperty("scroll-snap-type"),c.scrollTop=r+1,c.scrollLeft=n+1,c.scrollTop=r,c.scrollLeft=n),t.xPrev=t.x,t.yPrev=t.y},kill:function kill(e){var t="scrollTo"===e;!t&&"scrollTo_x"!==e||(this.skipX=1),!t&&"scrollTo_y"!==e||(this.skipY=1)}};y.max=o,y.getOffset=r,y.buildGetter=p,l()&&u.registerPlugin(y),e.ScrollToPlugin=y,e.default=y;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function k(){return"undefined"!=typeof window}function l(){return u||k()&&(u=window.gsap)&&u.registerPlugin&&u}function m(e){return"string"==typeof e}function n(e){return"function"==typeof e}function o(e,t){var o="x"===t?"Width":"Height",n="scroll"+o,r="client"+o;return e===T||e===i||e===c?Math.max(i[n],c[n])-(T["inner"+o]||i[r]||c[r]):e[n]-e["offset"+o]}function p(e,t){var o="scroll"+("x"===t?"Left":"Top");return e===T&&(null!=e.pageXOffset?o="page"+t.toUpperCase()+"Offset":e=null!=i[o]?i:c),function(){return e[o]}}function r(e,t){if(!(e=f(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var o=e.getBoundingClientRect(),n=!t||t===T||t===c,r=n?{top:i.clientTop-(T.pageYOffset||i.scrollTop||c.scrollTop||0),left:i.clientLeft-(T.pageXOffset||i.scrollLeft||c.scrollLeft||0)}:t.getBoundingClientRect(),l={x:o.left-r.left,y:o.top-r.top};return!n&&t&&(l.x+=p(t,"x")(),l.y+=p(t,"y")()),l}function s(e,t,n,l,i){return isNaN(e)||"object"==typeof e?m(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+l-i:"max"===e?o(t,n)-i:Math.min(o(t,n),r(e,t)[n]-i):parseFloat(e)-i}function t(){u=l(),k()&&u&&document.body&&(T=window,c=document.body,i=document.documentElement,f=u.utils.toArray,u.config({autoKillThreshold:7}),v=u.config(),a=1)}var u,a,T,i,c,f,v,y={version:"3.10.3",name:"scrollTo",rawVars:1,register:function register(e){u=e,t()},init:function init(e,o,r,l,i){a||t();var c=this,f=u.getProperty(e,"scrollSnapType");c.isWin=e===T,c.target=e,c.tween=r,o=function _clean(e,t,o,r){if(n(e)&&(e=e(t,o,r)),"object"!=typeof e)return m(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var l,i={};for(l in e)i[l]="onAutoKill"!==l&&n(e[l])?e[l](t,o,r):e[l];return i}(o,l,e,i),c.vars=o,c.autoKill=!!o.autoKill,c.getX=p(e,"x"),c.getY=p(e,"y"),c.x=c.xPrev=c.getX(),c.y=c.yPrev=c.getY(),f&&"none"!==f&&(c.snap=1,c.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=o.x?(c.add(c,"x",c.x,s(o.x,e,"x",c.x,o.offsetX||0),l,i),c._props.push("scrollTo_x")):c.skipX=1,null!=o.y?(c.add(c,"y",c.y,s(o.y,e,"y",c.y,o.offsetY||0),l,i),c._props.push("scrollTo_y")):c.skipY=1},render:function render(e,t){for(var n,r,l,i,s,p=t._pt,c=t.target,f=t.tween,u=t.autoKill,a=t.xPrev,y=t.yPrev,d=t.isWin,x=t.snap,g=t.snapInline;p;)p.r(e,p.d),p=p._next;n=d||!t.skipX?t.getX():a,l=(r=d||!t.skipY?t.getY():y)-y,i=n-a,s=v.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),u&&(!t.skipX&&(s<i||i<-s)&&n<o(c,"x")&&(t.skipX=1),!t.skipY&&(s<l||l<-s)&&r<o(c,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(f.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(f,t.vars.onAutoKillParams||[]))),d?T.scrollTo(t.skipX?n:t.x,t.skipY?r:t.y):(t.skipY||(c.scrollTop=t.y),t.skipX||(c.scrollLeft=t.x)),!x||1!==e&&0!==e||(r=c.scrollTop,n=c.scrollLeft,g?c.style.scrollSnapType=g:c.style.removeProperty("scroll-snap-type"),c.scrollTop=r+1,c.scrollLeft=n+1,c.scrollTop=r,c.scrollLeft=n),t.xPrev=t.x,t.yPrev=t.y},kill:function kill(e){var t="scrollTo"===e;!t&&"scrollTo_x"!==e||(this.skipX=1),!t&&"scrollTo_y"!==e||(this.skipY=1)}};y.max=o,y.getOffset=r,y.buildGetter=p,l()&&u.registerPlugin(y),e.ScrollToPlugin=y,e.default=y;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* ScrollTrigger 3.10.2 | ||
* ScrollTrigger 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(){return he||"undefined"!=typeof window&&(he=window.gsap)&&he.registerPlugin&&he}function x(e,t){return~Ye.indexOf(e)&&Ye[Ye.indexOf(e)+1][t]}function y(e){return!!~t.indexOf(e)}function z(e,t,r,n){return e.addEventListener(t,r,{passive:!n})}function A(e,t,r){return e.removeEventListener(t,r)}function D(){return Pe&&Pe.isPressed||ze.cache++}function E(t){return function(e){return e||0===e?(r&&(ve.history.scrollRestoration="manual"),t(e),t.v=e,t.c=ze.cache,Pe&&Pe.isPressed&&Re("ss",e)):ze.cache===t.c&&!Re("ref")||(t.c=ze.cache,t.v=t()),t.v}}function H(e){return he.utils.toArray(e)[0]||("string"==typeof e&&!1!==he.config().nullTargetWarn?console.warn("Element not found:",e):null)}function I(t,e){var r=e.s,n=e.sc,i=ze.indexOf(t),o=n===Xe.sc?1:2;return~i||(i=ze.push(t)-1),ze[i+o]||(ze[i+o]=x(t,r)||(y(t)?n:function(e){return arguments.length?t[r]=e:t[r]}))}function J(e,t,i){function _c(e,t){var r=u();t||n<r-s?(a=o,o=e,l=s,s=r):i?o+=e:o=a+(e-a)/(r-l)*(s-l)}var o=e,a=e,s=u(),l=s,n=t||50,c=Math.max(500,3*n);return{update:_c,reset:function reset(){a=o=i?0:o,l=s=0},getVelocity:function getVelocity(e){var t=l,r=a,n=u();return!e&&0!==e||e===o||_c(e),s===l||c<n-l?0:(o+(i?r:-r))/((i?n:s)-t)*1e3}}}function K(e,t){return t&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function L(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r}function M(e){return(he=e||p())&&!be&&"undefined"!=typeof document&&document.body&&(ve=window,Se=(me=document).documentElement,_e=me.body,t=[ve,me,Se,_e],he.utils.clamp,ke="onpointerenter"in _e?"pointer":"mouse",Te=w.isTouch=ve.matchMedia&&ve.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ve||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,setTimeout(function(){return r=0},500),be=1),be}var he,be,ve,me,Se,_e,Te,ke,Me,t,Pe,r=1,Oe=[],ze=[],Ye=[],u=Date.now,Re=function _bridge(e,t){return t},n="scrollLeft",i="scrollTop",Le={s:n,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:E(function(e){return arguments.length?ve.scrollTo(e,Xe.sc()):ve.pageXOffset||me[n]||Se[n]||_e[n]||0})},Xe={s:i,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Le,sc:E(function(e){return arguments.length?ve.scrollTo(Le.sc(),e):ve.pageYOffset||me[i]||Se[i]||_e[i]||0})};Le.op=Xe,ze.cache=0;var w=(Observer.prototype.init=function init(e){be||M(he)||console.warn("Please gsap.registerPlugin(Observer)"),Me||(Me=he.core.globals().ScrollTrigger)&&Me.core&&function _integrate(){var e=Me.core,r=e.bridge||{},t=e._scrollers,n=e._proxies;t.push.apply(t,ze),n.push.apply(n,Ye),ze=t,Ye=n,Re=function _bridge(e,t){return r[e](t)}}();var i=e.tolerance,a=e.dragMinimum,t=e.type,r=e.target,n=e.lineHeight,o=e.debounce,s=e.preventDefault,l=e.onStop,c=e.onStopDelay,u=e.ignore,f=e.wheelSpeed,d=e.event,p=e.onDragStart,g=e.onDragEnd,h=e.onDrag,b=e.onPress,v=e.onRelease,m=e.onRight,x=e.onLeft,w=e.onUp,S=e.onDown,_=e.onChangeX,T=e.onChangeY,k=e.onChange,E=e.onToggleX,C=e.onToggleY,P=e.onHover,O=e.onHoverEnd,F=e.onMove,Y=e.ignoreCheck,R=e.isNormalizer,B=e.onGestureStart,X=e.onGestureEnd,j=e.onWheel,V=e.onEnable,G=e.onDisable,N=e.onClick,W=e.scrollSpeed;function ue(e,t){return(ee.event=e)&&u&&~u.indexOf(e.target)||t&&le&&"touch"!==e.pointerType||Y&&Y(e)}function we(){var e=ee.deltaX=L(de),t=ee.deltaY=L(pe),r=Math.abs(e)>=i,n=Math.abs(t)>=i;k&&(r||n)&&k(ee,e,t,de,pe),r&&(m&&0<ee.deltaX&&m(ee),x&&ee.deltaX<0&&x(ee),_&&_(ee),E&&ee.deltaX<0!=te<0&&E(ee),te=ee.deltaX,de[0]=de[1]=de[2]=0),n&&(S&&0<ee.deltaY&&S(ee),w&&ee.deltaY<0&&w(ee),T&&T(ee),C&&ee.deltaY<0!=re<0&&C(ee),re=ee.deltaY,pe[0]=pe[1]=pe[2]=0),$&&(F(ee),$=!1),Z&&(h(ee),Z=!1),Q&&(j(ee),Q=!1),q=0}function xe(e,t,r){de[r]+=e,pe[r]+=t,ee._vx.update(e,2===r),ee._vy.update(t,2===r),o?q=q||requestAnimationFrame(we):we()}function ye(e){if(!ue(e,1)){var t=(e=K(e,s)).clientX,r=e.clientY,n=t-ee.x,i=r-ee.y,o=ee.isDragging;ee.x=t,ee.y=r,(o||Math.abs(ee.startX-t)>=a||Math.abs(ee.startY-r)>=a)&&(h&&(Z=!0),o||(ee.isDragging=!0),xe(n,i,2),o||p&&p(ee))}}function Ae(e){if(!ue(e,1)){A(R?r:fe,se[1],ye);var t=ee.isDragging;t||(ee._vx.reset(),ee._vy.reset()),ee.isDragging=ee.isGesturing=ee.isPressed=!1,l&&!R&&U.restart(!0),g&&t&&g(ee),v&&v(ee,t)}}function Be(e){return e.touches&&1<e.touches.length&&(ee.isGesturing=!0)&&B(e,ee.isDragging)}function Ce(){return(ee.isGesturing=!1)||X(ee)}function De(e){if(!ue(e)){var t=ne(),r=ie();xe((t-oe)*W,(r-ae)*W,1),oe=t,ae=r,l&&U.restart(!0)}}function Ee(e){if(!ue(e)){e=K(e,s),j&&(Q=!0);var t=(1===e.deltaMode?n:2===e.deltaMode?ve.innerHeight:1)*f;xe(e.deltaX*t,e.deltaY*t,0),l&&!R&&U.restart(!0)}}function Fe(e){if(!ue(e)){var t=e.clientX,r=e.clientY,n=t-ee.x,i=r-ee.y;ee.x=t,ee.y=r,F&&($=!0),(n||i)&&xe(n,i,2)}}function Ge(e){ee.event=e,P(ee)}function He(e){ee.event=e,O(ee)}function Ie(e){return ue(e)||K(e,s)&&N(ee)}this.target=r=H(r)||Se,this.vars=e,u=u&&he.utils.toArray(u),i=i||0,a=a||0,f=f||1,W=W||1,t=t||"wheel,touch,pointer",o=!1!==o,n=n||parseFloat(ve.getComputedStyle(_e).lineHeight)||22;var q,U,Z,$,Q,ee=this,te=0,re=0,ne=I(r,Le),ie=I(r,Xe),oe=ne(),ae=ie(),se=("ontouchstart"in Se?"touchstart,touchmove,touchcancel,touchend":0<=t.indexOf("pointer")&&!("onpointerdown"in Se)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),le=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===se[0],ce=y(r),fe=r.ownerDocument||me,de=[0,0,0],pe=[0,0,0],ge=ee.onPress=function(e){ue(e,1)||(U.pause(),ee.isPressed=!0,e=K(e,s),te=re=0,ee.startX=ee.x=e.clientX,ee.startY=ee.y=e.clientY,ee._vx.reset(),ee._vy.reset(),z(R?r:fe,se[1],ye,s),ee.deltaX=ee.deltaY=0,b&&b(ee))};U=ee._dc=he.delayedCall(c||.25,function onStopFunc(){ee._vx.reset(),ee._vy.reset(),U.pause(),l&&l(ee)}).pause(),ee.deltaX=ee.deltaY=0,ee._vx=J(0,50,!0),ee._vy=J(0,50,!0),ee.scrollX=ne,ee.scrollY=ie,ee.isDragging=ee.isGesturing=ee.isPressed=!1,ee.enable=function(e){return ee.isEnabled||(z(ce?fe:r,"scroll",D),0<=t.indexOf("scroll")&&z(ce?fe:r,"scroll",De,s),0<=t.indexOf("wheel")&&z(r,"wheel",Ee,s),(0<=t.indexOf("touch")&&Te||0<=t.indexOf("pointer"))&&(z(r,se[0],ge,s),z(fe,se[2],Ae),z(fe,se[3],Ae),N&&z(r,"click",Ie),B&&z(fe,"gesturestart",Be),X&&z(fe,"gestureend",Ce),P&&z(r,ke+"enter",Ge),O&&z(r,ke+"leave",He),F&&z(r,ke+"move",Fe)),ee.isEnabled=!0,e&&e.type&&ge(e),V&&V(ee)),ee},ee.disable=function(){ee.isEnabled&&(Oe.filter(function(e){return e!==ee&&y(e.target)}).length||A(ce?fe:r,"scroll",D),A(ce?fe:r,"scroll",De),A(r,"wheel",Ee),A(r,se[0],ge),A(fe,se[2],Ae),A(fe,se[3],Ae),A(r,"click",Ie),A(fe,"gesturestart",Be),A(fe,"gestureend",Ce),A(r,ke+"enter",Ge),A(r,ke+"leave",He),A(r,ke+"move",Fe),ee.isEnabled=!1,G&&G(ee))},ee.kill=function(){ee.disable();var e=Oe.indexOf(ee);0<=e&&Oe.splice(e,1),Pe===ee&&(Pe=0)},Oe.push(ee),R&&(Pe=ee),ee.enable(d)},function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer);function Observer(e){this.init(e)}w.version="3.10.2",w.create=function(e){return new w(e)},w.register=M,w.getAll=function(){return Oe.slice()},w.getById=function(t){return Oe.filter(function(e){return e.vars.id===t})[0]},p()&&he.registerPlugin(w);function sa(){return $e=1}function ta(){return $e=0}function ua(e){return e}function va(e){return Math.round(1e5*e)/1e5||0}function wa(){return"undefined"!=typeof window}function xa(){return je||wa()&&(je=window.gsap)&&je.registerPlugin&&je}function ya(e){return!!~a.indexOf(e)}function za(e){return x(e,"getBoundingClientRect")||(ya(e)?function(){return Mt.width=Ve.innerWidth,Mt.height=Ve.innerHeight,Mt}:function(){return wt(e)})}function Ca(e,t){var r=t.s,n=t.d2,i=t.d,o=t.a;return(r="scroll"+n)&&(o=x(e,r))?o()-za(e)()[i]:ya(e)?(Ke[r]||We[r])-(Ve["inner"+n]||Ke["client"+n]||We["client"+n]):e[r]-e["offset"+n]}function Da(e,t){for(var r=0;r<g.length;r+=3)t&&!~t.indexOf(g[r+1])||e(g[r],g[r+1],g[r+2])}function Ea(e){return"string"==typeof e}function Fa(e){return"function"==typeof e}function Ga(e){return"number"==typeof e}function Ha(e){return"object"==typeof e}function Ia(e){return Fa(e)&&e()}function Ja(r,n){return function(){var e=Ia(r),t=Ia(n);return function(){Ia(e),Ia(t)}}}function Ka(e,t,r){return e&&e.progress(t?0:1)&&r&&e.pause()}function La(e,t){if(e.enabled){var r=t(e);r&&r.totalTime&&(e.callbackAnimation=r)}}function ab(e){return Ve.getComputedStyle(e)}function cb(e,t){for(var r in t)r in e||(e[r]=t[r]);return e}function eb(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0}function fb(e){var t,r=[],n=e.labels,i=e.duration();for(t in n)r.push(n[t]/i);return r}function hb(i){var o=je.utils.snap(i),a=Array.isArray(i)&&i.slice(0).sort(function(e,t){return e-t});return a?function(e,t,r){var n;if(void 0===r&&(r=.001),!t)return o(e);if(0<t){for(e-=r,n=0;n<a.length;n++)if(a[n]>=e)return a[n];return a[n-1]}for(n=a.length,e+=r;n--;)if(a[n]<=e)return a[n];return a[0]}:function(e,t,r){void 0===r&&(r=.001);var n=o(e);return!t||Math.abs(n-e)<r||n-e<0==t<0?n:o(t<0?e-i:e+i)}}function jb(t,r,e,n){return e.split(",").forEach(function(e){return t(r,e,n)})}function kb(e,t,r,n){return e.addEventListener(t,r,{passive:!n})}function lb(e,t,r){return e.removeEventListener(t,r)}function mb(e,t,r){return r&&r.wheelHandler&&e(t,"wheel",r)}function qb(e,t){if(Ea(e)){var r=e.indexOf("="),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in F?F[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function rb(e,t,r,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,f=i.indent,d=i.fontWeight,p=Ne.createElement("div"),g=ya(r)||"fixed"===x(r,"pinType"),h=-1!==e.indexOf("scroller"),b=g?We:r,v=-1!==e.indexOf("start"),m=v?l:c,y="border-color:"+m+";font-size:"+u+";color:"+m+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((h||s)&&g?"fixed;":"absolute;"),!h&&!s&&g||(y+=(n===Xe?C:P)+":"+(o+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=v,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=y,p.innerText=t||0===t?e+"-"+t:e,b.children[0]?b.insertBefore(p,b.children[0]):b.appendChild(p),p._offset=p["offset"+n.op.d2],Y(p,0,n,v),p}function wb(){return 34<st()-lt&&Z()}function xb(){b&&b.isPressed||(ze.cache++,_=_||requestAnimationFrame(Z),lt||j("scrollStart"),lt=st())}function yb(){ze.cache++,Ze||h||Ne.fullscreenElement||v&&S===Ve.innerWidth&&!(Math.abs(Ve.innerHeight-m)>.25*Ve.innerHeight)||s.restart(!0)}function Eb(e){var t,r=je.ticker.frame,n=[],i=0;if(T!==r||at){for(N();i<X.length;i+=4)(t=Ve.matchMedia(X[i]).matches)!==X[i+3]&&((X[i+3]=t)?n.push(i):N(1,X[i])||Fa(X[i+2])&&X[i+2]());for(G(),i=0;i<n.length;i++)t=n[i],nt=X[t],X[t+2]=X[t+1](e);nt=0,o&&q(0,1),T=r,j("matchMedia")}}function Fb(){return lb(re,"scrollEnd",Fb)||q(!0)}function Kb(){return ze.cache++&&ze.forEach(function(e){return"function"==typeof e&&(e.rec=0)})}function Vb(e,t,r,n){if(e.parentNode!==t){for(var i,o=$.length,a=t.style,s=e.style;o--;)a[i=$[o]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),s[P]=s[C]=a.flexBasis="auto",a.overflow="visible",a.boxSizing="border-box",a[ft]=eb(e,Le)+xt,a[dt]=eb(e,Xe)+xt,a[vt]=s[mt]=s.top=s.left="0",Ct(n),s[ft]=s.maxWidth=r[ft],s[dt]=s.maxHeight=r[dt],s[vt]=r[vt],e.parentNode.insertBefore(t,e),t.appendChild(e)}}function Yb(e){for(var t=Q.length,r=e.style,n=[],i=0;i<t;i++)n.push(Q[i],r[Q[i]]);return n.t=e,n}function _b(e,t,r,n,i,o,a,s,l,c,u,f,d){Fa(e)&&(e=e(s)),Ea(e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?qb("0"+e.substr(3),r):0));var p,g,h,b=d?d.time():0;if(d&&d.seek(0),Ga(e))a&&Y(a,r,n,!0);else{Fa(t)&&(t=t(s));var v,m,y,x,w=e.split(" ");h=H(t)||We,(v=wt(h)||{})&&(v.left||v.top)||"none"!==ab(h).display||(x=h.style.display,h.style.display="block",v=wt(h),x?h.style.display=x:h.style.removeProperty("display")),m=qb(w[0],v[n.d]),y=qb(w[1]||"0",r),e=v[n.p]-l[n.p]-c+m+i-y,a&&Y(a,y,n,r-y<20||a._isStart&&20<y),r-=r-y}if(o){var S=e+r,_=o._isStart;p="scroll"+n.d2,Y(o,S,n,_&&20<S||!_&&(u?Math.max(We[p],Ke[p]):o.parentNode[p])<=S+1),u&&(l=wt(a),u&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+xt))}return d&&h&&(p=wt(h),d.seek(f),g=wt(h),d._caScrollDist=p[n.p]-g[n.p],e=e/d._caScrollDist*f),d&&d.seek(b),d?e:Math.round(e)}function bc(e,t,r,n){if(e.parentNode!==t){var i,o,a=e.style;if(t===We){for(i in e._stOrig=a.cssText,o=ab(e))+i||te.test(i)||!o[i]||"string"!=typeof a[i]||"0"===i||(a[i]=o[i]);a.top=r,a.left=n}else a.cssText=e._stOrig;je.core.getCache(e).uncache=1,t.appendChild(e)}}function cc(l,e){function nj(e,t,r,n,i){var o=nj.tween,a=t.onComplete,s={};return r=r||f(),i=n&&i||0,n=n||e-r,o&&o.kill(),c=Math.round(r),t[d]=e,(t.modifiers=s)[d]=function(e){return(e=va(f()))!==c&&e!==u&&2<Math.abs(e-c)&&2<Math.abs(e-u)?(o.kill(),nj.tween=0):e=r+n*o.ratio+i*o.ratio*o.ratio,u=c,c=va(e)},t.onComplete=function(){nj.tween=0,a&&a.call(o)},o=nj.tween=je.to(l,t)}var c,u,f=I(l,e),d="_scroll"+e.p2;return(l[d]=f).wheelHandler=function(){return nj.tween&&nj.tween.kill()&&(nj.tween=0)},kb(l,"wheel",f.wheelHandler),nj}var je,o,Ve,Ne,Ke,We,a,s,qe,Je,Ue,l,Ze,$e,c,Qe,f,d,g,et,tt,h,b,v,m,S,rt,_,nt,T,it,ot,at=1,st=Date.now,k=st(),lt=0,ct=0,ut=Math.abs,C="right",P="bottom",ft="width",dt="height",pt="Right",gt="Left",ht="Top",bt="Bottom",vt="padding",mt="margin",yt="Width",O="Height",xt="px",wt=function _getBounds(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==ab(e)[c]&&je.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return r&&r.progress(0).kill(),n},St={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},_t={toggleActions:"play",anticipatePin:0},F={top:0,left:0,center:.5,bottom:1,right:1},Y=function _positionMarker(e,t,r,n){var i={display:"block"},o=r[n?"os2":"p2"],a=r[n?"p2":"os2"];e._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+o+yt]=1,i["border"+a+yt]=0,i[r.p]=t+"px",je.set(e,i)},Tt=[],kt={},R={},B=[],X=[],j=function _dispatch(e){return R[e]&&R[e].map(function(e){return e()})||B},V=[],G=function _revertRecorded(e){for(var t=0;t<V.length;t+=5)e&&V[t+4]!==e||(V[t].style.cssText=V[t+1],V[t].getBBox&&V[t].setAttribute("transform",V[t+2]||""),V[t+3].uncache=1)},N=function _revertAll(e,t){var r;for(Qe=0;Qe<Tt.length;Qe++)r=Tt[Qe],t&&r.media!==t||(e?r.kill(1):r.revert());t&&G(t),t||j("revert")},W=0,q=function _refreshAll(e,t){if(!lt||e){it=!0;var r=j("refreshInit");et&&re.sort(),t||N(),Tt.slice(0).forEach(function(e){return e.refresh()}),Tt.forEach(function(e){return"max"===e.vars.end&&e.setPositions(e.start,Ca(e.scroller,e._dir))}),r.forEach(function(e){return e&&e.render&&e.render(-1)}),Kb(),s.pause(),W++,it=!1,j("refresh")}else kb(re,"scrollEnd",Fb)},U=0,Et=1,Z=function _updateAll(){if(!it){ot&&ot.update(0),re.isUpdating=!0;var e=Tt.length,t=st(),r=50<=t-k,n=e&&Tt[0].scroll();if(Et=n<U?-1:1,U=n,r&&(lt&&!$e&&200<t-lt&&(lt=0,j("scrollEnd")),Ue=k,k=t),Et<0){for(Qe=e;0<Qe--;)Tt[Qe]&&Tt[Qe].update(0,r);Et=1}else for(Qe=0;Qe<e;Qe++)Tt[Qe]&&Tt[Qe].update(0,r);re.isUpdating=!1}_=0},$=["left","top",P,C,mt+bt,mt+pt,mt+ht,mt+gt,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Q=$.concat([ft,dt,"boxSizing","max"+yt,"max"+O,"position",mt,vt,vt+ht,vt+pt,vt+bt,vt+gt]),ee=/([A-Z])/g,Ct=function _setState(e){if(e){var t,r,n=e.t.style,i=e.length,o=0;for((e.t._gsap||je.core.getCache(e.t)).uncache=1;o<i;o+=2)r=e[o+1],t=e[o],r?n[t]=r:n[t]&&n.removeProperty(t.replace(ee,"-$1").toLowerCase())}},Mt={left:0,top:0},te=/(webkit|moz|length|cssText|inset)/i,re=(ScrollTrigger.prototype.init=function init(_,T){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),ct){var v,n,f,k,E,C,M,P,O,A,D,e,z,F,Y,R,L,t,B,m,X,j,y,V,w,S,r,G,N,K,i,d,W,q,J,U,Z,o,$=(_=cb(Ea(_)||Ga(_)||_.nodeType?{trigger:_}:_,_t)).onUpdate,Q=_.toggleClass,a=_.id,ee=_.onToggle,te=_.onRefresh,re=_.scrub,ne=_.trigger,ie=_.pin,oe=_.pinSpacing,ae=_.invalidateOnRefresh,se=_.anticipatePin,s=_.onScrubComplete,p=_.onSnapComplete,le=_.once,ce=_.snap,ue=_.pinReparent,l=_.pinSpacer,fe=_.containerAnimation,de=_.fastScrollEnd,pe=_.preventOverlaps,ge=_.horizontal||_.containerAnimation&&!1!==_.horizontal?Le:Xe,he=!re&&0!==re,be=H(_.scroller||Ve),c=je.core.getCache(be),ve=ya(be),me="fixed"===("pinType"in _?_.pinType:x(be,"pinType")||ve&&"fixed"),ye=[_.onEnter,_.onLeave,_.onEnterBack,_.onLeaveBack],xe=he&&_.toggleActions.split(" "),u="markers"in _?_.markers:_t.markers,we=ve?0:parseFloat(ab(be)["border"+ge.p2+yt])||0,Se=this,_e=_.onRefreshInit&&function(){return _.onRefreshInit(Se)},Te=function _getSizeFunc(e,t,r){var n=r.d,i=r.d2,o=r.a;return(o=x(e,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(t?Ve["inner"+i]:e["client"+i])||0}}(be,ve,ge),ke=function _getOffsetsFunc(e,t){return!t||~Ye.indexOf(e)?za(e):function(){return Mt}}(be,ve),g=0,Ee=I(be,ge);if(Se.media=nt,Se._dir=ge,se*=45,Se.scroller=be,Se.scroll=fe?fe.time.bind(fe):Ee,k=Ee(),Se.vars=_,T=T||_.animation,"refreshPriority"in _&&(et=1,-9999===_.refreshPriority&&(ot=Se)),c.tweenScroll=c.tweenScroll||{top:cc(be,Xe),left:cc(be,Le)},Se.tweenTo=v=c.tweenScroll[ge.p],Se.scrubDuration=function(e){(i=Ga(e)&&e)?K?K.duration(e):K=je.to(T,{ease:"expo",totalProgress:"+=0.001",duration:i,paused:!0,onComplete:function onComplete(){return s&&s(Se)}}):(K&&K.progress(1).kill(),K=0)},T&&(T.vars.lazy=!1,T._initted||!1!==T.vars.immediateRender&&!1!==_.immediateRender&&T.render(0,!0,!0),Se.animation=T.pause(),(T.scrollTrigger=Se).scrubDuration(re),G=0,a=a||T.vars.id),Tt.push(Se),ce&&(Ha(ce)&&!ce.push||(ce={snapTo:ce}),"scrollBehavior"in We.style&&je.set(ve?[We,Ke]:be,{scrollBehavior:"auto"}),f=Fa(ce.snapTo)?ce.snapTo:"labels"===ce.snapTo?function _getClosestLabel(t){return function(e){return je.utils.snap(fb(t),e)}}(T):"labelsDirectional"===ce.snapTo?function _getLabelAtDirection(r){return function(e,t){return hb(fb(r))(e,t.direction)}}(T):!1!==ce.directional?function(e,t){return hb(ce.snapTo)(e,Ze?0:t.direction)}:je.utils.snap(ce.snapTo),d=ce.duration||{min:.1,max:2},d=Ha(d)?Je(d.min,d.max):Je(d,d),W=je.delayedCall(ce.delay||i/2||.1,function(){if(Math.abs(Se.getVelocity())<10&&!$e&&g!==Ee()){var e=T&&!he?T.totalProgress():Se.progress,t=(e-N)/(st()-Ue)*1e3||0,r=je.utils.clamp(-Se.progress,1-Se.progress,ut(t/2)*t/.185),n=Se.progress+(!1===ce.inertia?0:r),i=Je(0,1,f(n,Se)),o=Ee(),a=Math.round(C+i*z),s=ce.onStart,l=ce.onInterrupt,c=ce.onComplete,u=v.tween;if(o<=M&&C<=o&&a!==o){if(u&&!u._initted&&u.data<=ut(a-o))return;!1===ce.inertia&&(r=i-Se.progress),v(a,{duration:d(ut(.185*Math.max(ut(n-e),ut(i-e))/t/.05||0)),ease:ce.ease||"power3",data:ut(a-o),onInterrupt:function onInterrupt(){return W.restart(!0)&&l&&l(Se)},onComplete:function onComplete(){Se.update(),g=Ee(),G=N=T&&!he?T.totalProgress():Se.progress,p&&p(Se),c&&c(Se)}},o,r*z,a-o-r*z),s&&s(Se,v.tween)}}else Se.isActive&&W.restart(!0)}).pause()),a&&(kt[a]=Se),o=(o=(ne=Se.trigger=H(ne||ie))&&ne._gsap&&ne._gsap.stRevert)&&o(Se),ie=!0===ie?ne:H(ie),Ea(Q)&&(Q={targets:ne,className:Q}),ie&&(!1===oe||oe===mt||(oe=!(!oe&&"flex"===ab(ie.parentNode).display)&&vt),Se.pin=ie,!1!==_.force3D&&je.set(ie,{force3D:!0}),(n=je.core.getCache(ie)).spacer?F=n.pinState:(l&&((l=H(l))&&!l.nodeType&&(l=l.current||l.nativeElement),n.spacerIsNative=!!l,l&&(n.spacerState=Yb(l))),n.spacer=L=l||Ne.createElement("div"),L.classList.add("pin-spacer"),a&&L.classList.add("pin-spacer-"+a),n.pinState=F=Yb(ie)),Se.spacer=L=n.spacer,r=ab(ie),y=r[oe+ge.os2],B=je.getProperty(ie),m=je.quickSetter(ie,ge.a,xt),Vb(ie,L,r),R=Yb(ie)),u){e=Ha(u)?cb(u,St):St,A=rb("scroller-start",a,be,ge,e,0),D=rb("scroller-end",a,be,ge,e,0,A),t=A["offset"+ge.op.d2];var h=H(x(be,"content")||be);P=this.markerStart=rb("start",a,h,ge,e,t,0,fe),O=this.markerEnd=rb("end",a,h,ge,e,t,0,fe),fe&&(Z=je.quickSetter([P,O],ge.a,xt)),me||Ye.length&&!0===x(be,"fixedMarkers")||(function _makePositionable(e){var t=ab(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"}(ve?We:be),je.set([A,D],{force3D:!0}),w=je.quickSetter(A,ge.a,xt),S=je.quickSetter(D,ge.a,xt))}if(fe){var b=fe.vars.onUpdate,Ce=fe.vars.onUpdateParams;fe.eventCallback("onUpdate",function(){Se.update(0,0,1),b&&b.apply(Ce||[])})}Se.previous=function(){return Tt[Tt.indexOf(Se)-1]},Se.next=function(){return Tt[Tt.indexOf(Se)+1]},Se.revert=function(e){var t=!1!==e||!Se.enabled,r=Ze;t!==Se.isReverted&&(t&&(!Se.scroll.rec&&Ze&&it&&(Se.scroll.rec=Ee()),J=Math.max(Ee(),Se.scroll.rec||0),q=Se.progress,U=T&&T.progress()),P&&[P,O,A,D].forEach(function(e){return e.style.display=t?"none":"block"}),t&&(Ze=1),Se.update(t),Ze=r,ie&&(t?function _swapPinOut(e,t,r){Ct(r);var n=e._gsap;if(n.spacerIsNative)Ct(n.spacerState);else if(e.parentNode===t){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}}(ie,L,F):ue&&Se.isActive||Vb(ie,L,ab(ie),V)),Se.isReverted=t)},Se.refresh=function(e,t){if(!Ze&&Se.enabled||t)if(ie&&e&<)kb(ScrollTrigger,"scrollEnd",Fb);else{!it&&_e&&_e(Se),Ze=1,K&&K.pause(),ae&&T&&T.time(-.01,!0).invalidate(),Se.isReverted||Se.revert();for(var r,n,i,o,a,s,l,c,u,f,d=Te(),p=ke(),g=fe?fe.duration():Ca(be,ge),h=0,b=0,v=_.end,m=_.endTrigger||ne,y=_.start||(0!==_.start&&ne?ie?"0 0":"0 100%":0),x=Se.pinnedContainer=_.pinnedContainer&&H(_.pinnedContainer),w=ne&&Math.max(0,Tt.indexOf(Se))||0,S=w;S--;)(s=Tt[S]).end||s.refresh(0,1)||(Ze=1),!(l=s.pin)||l!==ne&&l!==ie||s.isReverted||((f=f||[]).unshift(s),s.revert()),s!==Tt[S]&&(w--,S--);for(Fa(y)&&(y=y(Se)),C=_b(y,ne,d,ge,Ee(),P,A,Se,p,we,me,g,fe)||(ie?-.001:0),Fa(v)&&(v=v(Se)),Ea(v)&&!v.indexOf("+=")&&(~v.indexOf(" ")?v=(Ea(y)?y.split(" ")[0]:"")+v:(h=qb(v.substr(2),d),v=Ea(y)?y:C+h,m=ne)),M=Math.max(C,_b(v||(m?"100% 0":g),m,d,ge,Ee()+h,O,D,Se,p,we,me,g,fe))||-.001,z=M-C||(C-=.01)&&.001,h=0,S=w;S--;)(l=(s=Tt[S]).pin)&&s.start-s._pinPush<C&&!fe&&0<s.end&&(r=s.end-s.start,l!==ne&&l!==x||Ga(y)||(h+=r*(1-s.progress)),l===ie&&(b+=r));if(C+=h,M+=h,Se._pinPush=b,P&&h&&((r={})[ge.a]="+="+h,x&&(r[ge.p]="-="+Ee()),je.set([P,O],r)),ie)r=ab(ie),o=ge===Xe,i=Ee(),X=parseFloat(B(ge.a))+b,!g&&1<M&&((ve?We:be).style["overflow-"+ge.a]="scroll"),Vb(ie,L,r),R=Yb(ie),n=wt(ie,!0),c=me&&I(be,o?Le:Xe)(),oe&&((V=[oe+ge.os2,z+b+xt]).t=L,(S=oe===vt?eb(ie,ge)+z+b:0)&&V.push(ge.d,S+xt),Ct(V),me&&Ee(J)),me&&((a={top:n.top+(o?i-C:c)+xt,left:n.left+(o?c:i-C)+xt,boxSizing:"border-box",position:"fixed"})[ft]=a.maxWidth=Math.ceil(n.width)+xt,a[dt]=a.maxHeight=Math.ceil(n.height)+xt,a[mt]=a[mt+ht]=a[mt+pt]=a[mt+bt]=a[mt+gt]="0",a[vt]=r[vt],a[vt+ht]=r[vt+ht],a[vt+pt]=r[vt+pt],a[vt+bt]=r[vt+bt],a[vt+gt]=r[vt+gt],Y=function _copyState(e,t,r){for(var n,i=[],o=e.length,a=r?8:0;a<o;a+=2)n=e[a],i.push(n,n in t?t[n]:e[a+1]);return i.t=e.t,i}(F,a,ue)),T?(u=T._initted,tt(1),T.render(T.duration(),!0,!0),j=B(ge.a)-X+z+b,z!==j&&Y.splice(Y.length-2,2),T.render(0,!0,!0),u||T.invalidate(),tt(0)):j=z;else if(ne&&Ee()&&!fe)for(n=ne.parentNode;n&&n!==We;)n._pinOffset&&(C-=n._pinOffset,M-=n._pinOffset),n=n.parentNode;f&&f.forEach(function(e){return e.revert(!1)}),Se.start=C,Se.end=M,k=E=Ee(),fe||(k<J&&Ee(J),Se.scroll.rec=0),Se.revert(!1),W&&Se.isActive&&Ee(C+z*q),Ze=0,T&&he&&(T._initted||U)&&T.progress()!==U&&T.progress(U,!0).render(T.time(),!0,!0),q===Se.progress&&!fe||(T&&!he&&T.totalProgress(q,!0),Se.progress=q,Se.update(0,0,1)),ie&&oe&&(L._pinOffset=Math.round(Se.progress*j)),te&&te(Se)}},Se.getVelocity=function(){return(Ee()-E)/(st()-Ue)*1e3||0},Se.endAnimation=function(){Ka(Se.callbackAnimation),T&&(K?K.progress(1):T.paused()?he||Ka(T,Se.direction<0,1):Ka(T,T.reversed()))},Se.labelToScroll=function(e){return T&&T.labels&&(C||Se.refresh()||C)+T.labels[e]/T.duration()*z||0},Se.getTrailing=function(t){var e=Tt.indexOf(Se),r=0<Se.direction?Tt.slice(0,e).reverse():Tt.slice(e+1);return(Ea(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(e){return 0<Se.direction?e.end<=C:e.start>=M})},Se.update=function(e,t,r){if(!fe||r||e){var n,i,o,a,s,l,c,u=Se.scroll(),f=e?0:(u-C)/z,d=f<0?0:1<f?1:f||0,p=Se.progress;if(t&&(E=k,k=fe?Ee():u,ce&&(N=G,G=T&&!he?T.totalProgress():d)),se&&!d&&ie&&!Ze&&!at&<&&C<u+(u-E)/(st()-Ue)*se&&(d=1e-4),d!==p&&Se.enabled){if(a=(s=(n=Se.isActive=!!d&&d<1)!=(!!p&&p<1))||!!d!=!!p,Se.direction=p<d?1:-1,Se.progress=d,a&&!Ze&&(i=d&&!p?0:1===d?1:1===p?2:3,he&&(o=!s&&"none"!==xe[i+1]&&xe[i+1]||xe[i],c=T&&("complete"===o||"reset"===o||o in T))),pe&&(s||c)&&(c||re||!T)&&(Fa(pe)?pe(Se):Se.getTrailing(pe).forEach(function(e){return e.endAnimation()})),he||(!K||Ze||at?T&&T.totalProgress(d,!!Ze):((fe||ot&&ot!==Se)&&K.render(K._dp._time-K._start),K.resetTo?K.resetTo("totalProgress",d,T._tTime/T._tDur):(K.vars.totalProgress=d,K.invalidate().restart()))),ie)if(e&&oe&&(L.style[oe+ge.os2]=y),me){if(a){if(l=!e&&p<d&&u<M+1&&u+1>=Ca(be,ge),ue)if(e||!n&&!l)bc(ie,L);else{var g=wt(ie,!0),h=u-C;bc(ie,We,g.top+(ge===Xe?h:0)+xt,g.left+(ge===Xe?0:h)+xt)}Ct(n||l?Y:R),j!==z&&d<1&&n||m(X+(1!==d||l?0:j))}}else m(va(X+j*d));!ce||v.tween||Ze||at||W.restart(!0),Q&&(s||le&&d&&(d<1||!rt))&&qe(Q.targets).forEach(function(e){return e.classList[n||le?"add":"remove"](Q.className)}),!$||he||e||$(Se),a&&!Ze?(he&&(c&&("complete"===o?T.pause().totalProgress(1):"reset"===o?T.restart(!0).pause():"restart"===o?T.restart(!0):T[o]()),$&&$(Se)),!s&&rt||(ee&&s&&La(Se,ee),ye[i]&&La(Se,ye[i]),le&&(1===d?Se.kill(!1,1):ye[i]=0),s||ye[i=1===d?1:3]&&La(Se,ye[i])),de&&!n&&Math.abs(Se.getVelocity())>(Ga(de)?de:2500)&&(Ka(Se.callbackAnimation),K?K.progress(1):Ka(T,!d,1))):he&&$&&!Ze&&$(Se)}if(S){var b=fe?u/fe.duration()*(fe._caScrollDist||0):u;w(b+(A._isFlipped?1:0)),S(b)}Z&&Z(-u/fe.duration()*(fe._caScrollDist||0))}},Se.enable=function(e,t){Se.enabled||(Se.enabled=!0,kb(be,"resize",yb),kb(ve?Ne:be,"scroll",xb),_e&&kb(ScrollTrigger,"refreshInit",_e),!1!==e&&(Se.progress=q=0,k=E=g=Ee()),!1!==t&&Se.refresh())},Se.getTween=function(e){return e&&v?v.tween:K},Se.setPositions=function(e,t){ie&&(X+=e-C,j+=t-e-z),Se.start=C=e,Se.end=M=t,z=t-e,Se.update()},Se.disable=function(e,t){if(Se.enabled&&(!1!==e&&Se.revert(),Se.enabled=Se.isActive=!1,t||K&&K.pause(),J=0,n&&(n.uncache=1),_e&&lb(ScrollTrigger,"refreshInit",_e),W&&(W.pause(),v.tween&&v.tween.kill()&&(v.tween=0)),!ve)){for(var r=Tt.length;r--;)if(Tt[r].scroller===be&&Tt[r]!==Se)return;lb(be,"resize",yb),lb(be,"scroll",xb)}},Se.kill=function(e,t){Se.disable(e,t),K&&!t&&K.kill(),a&&delete kt[a];var r=Tt.indexOf(Se);0<=r&&Tt.splice(r,1),r===Qe&&0<Et&&Qe--,r=0,Tt.forEach(function(e){return e.scroller===Se.scroller&&(r=1)}),r||(Se.scroll.rec=0),T&&(T.scrollTrigger=null,e&&T.render(-1),t||T.kill()),P&&[P,O,A,D].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),ie&&(n&&(n.uncache=1),r=0,Tt.forEach(function(e){return e.pin===ie&&r++}),r||(n.spacer=0)),_.onKill&&_.onKill(Se)},Se.enable(!1,!1),o&&o(Se),T&&T.add&&!z?je.delayedCall(.01,function(){return C||M||Se.refresh()})&&(z=.01)&&(C=M=0):Se.refresh()}else this.update=this.refresh=this.kill=ua},ScrollTrigger.register=function register(e){return o||(je=e||xa(),wa()&&window.document&&ScrollTrigger.enable(),o=ct),o},ScrollTrigger.defaults=function defaults(e){if(e)for(var t in e)_t[t]=e[t];return _t},ScrollTrigger.disable=function disable(t,r){ct=0,Tt.forEach(function(e){return e[r?"kill":"disable"](t)}),lb(Ve,"wheel",xb),lb(Ne,"scroll",xb),clearInterval(l),lb(Ne,"touchcancel",ua),lb(We,"touchstart",ua),jb(lb,Ne,"pointerdown,touchstart,mousedown",sa),jb(lb,Ne,"pointerup,touchend,mouseup",ta),s.kill(),Da(lb);for(var e=0;e<ze.length;e+=3)mb(lb,ze[e],ze[e+1]),mb(lb,ze[e],ze[e+2])},ScrollTrigger.enable=function enable(){if(Ve=window,Ne=document,Ke=Ne.documentElement,We=Ne.body,je&&(qe=je.utils.toArray,Je=je.utils.clamp,tt=je.core.suppressOverwrites||ua,je.core.globals("ScrollTrigger",ScrollTrigger),We)){ct=1,ScrollTrigger.isTouch=Ve.matchMedia&&Ve.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ve||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,a=[Ve,Ne,Ke,We],m=Ve.innerHeight,S=Ve.innerWidth,w.register(je),kb(Ne,"scroll",xb);var e,t,r=We.style,n=r.borderTopStyle;for(r.borderTopStyle="solid",e=wt(We),Xe.m=Math.round(e.top+Xe.sc())||0,Le.m=Math.round(e.left+Le.sc())||0,n?r.borderTopStyle=n:r.removeProperty("border-top-style"),l=setInterval(wb,250),je.delayedCall(.5,function(){return at=0}),kb(Ne,"touchcancel",ua),kb(We,"touchstart",ua),jb(kb,Ne,"pointerdown,touchstart,mousedown",sa),jb(kb,Ne,"pointerup,touchend,mouseup",ta),c=je.utils.checkPrefix("transform"),Q.push(c),o=st(),s=je.delayedCall(.2,q).pause(),g=[Ne,"visibilitychange",function(){var e=Ve.innerWidth,t=Ve.innerHeight;Ne.hidden?(f=e,d=t):f===e&&d===t||yb()},Ne,"DOMContentLoaded",q,Ve,"load",q,Ve,"resize",yb],Da(kb),Tt.forEach(function(e){return e.enable(0,1)}),t=0;t<ze.length;t+=3)mb(lb,ze[t],ze[t+1]),mb(lb,ze[t],ze[t+2])}},ScrollTrigger.config=function config(e){"limitCallbacks"in e&&(rt=!!e.limitCallbacks);var t=e.syncInterval;t&&clearInterval(l)||(l=t)&&setInterval(wb,t),"ignoreMobileResize"in e&&(v=1===ScrollTrigger.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Da(lb)||Da(kb,e.autoRefreshEvents||"none"),h=-1===(e.autoRefreshEvents+"").indexOf("resize"))},ScrollTrigger.scrollerProxy=function scrollerProxy(e,t){var r=H(e),n=ze.indexOf(r),i=ya(r);~n&&ze.splice(n,i?6:2),t&&(i?Ye.unshift(Ve,t,We,t,Ke,t):Ye.unshift(r,t))},ScrollTrigger.matchMedia=function matchMedia(e){var t,r,n,i,o;for(r in e)n=X.indexOf(r),i=e[r],"all"===(nt=r)?i():(t=Ve.matchMedia(r))&&(t.matches&&(o=i()),~n?(X[n+1]=Ja(X[n+1],i),X[n+2]=Ja(X[n+2],o)):(n=X.length,X.push(r,i,o),t.addListener?t.addListener(Eb):t.addEventListener("change",Eb)),X[n+3]=t.matches),nt=0;return X},ScrollTrigger.clearMatchMedia=function clearMatchMedia(e){e||(X.length=0),0<=(e=X.indexOf(e))&&X.splice(e,4)},ScrollTrigger.isInViewport=function isInViewport(e,t,r){var n=(Ea(e)?H(e):e).getBoundingClientRect(),i=n[r?ft:dt]*t||0;return r?0<n.right-i&&n.left+i<Ve.innerWidth:0<n.bottom-i&&n.top+i<Ve.innerHeight},ScrollTrigger.positionInViewport=function positionInViewport(e,t,r){Ea(e)&&(e=H(e));var n=e.getBoundingClientRect(),i=n[r?ft:dt],o=null==t?i/2:t in F?F[t]*i:~t.indexOf("%")?parseFloat(t)*i/100:parseFloat(t)||0;return r?(n.left+o)/Ve.innerWidth:(n.top+o)/Ve.innerHeight},ScrollTrigger);function ScrollTrigger(e,t){o||ScrollTrigger.register(je)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,t)}re.version="3.10.2",re.saveStyles=function(e){return e?qe(e).forEach(function(e){if(e&&e.style){var t=V.indexOf(e);0<=t&&V.splice(t,5),V.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),je.core.getCache(e),nt)}}):V},re.revert=function(e,t){return N(!e,t)},re.create=function(e,t){return new re(e,t)},re.refresh=function(e){return e?yb():(o||re.register())&&q(!0)},re.update=Z,re.clearScrollMemory=Kb,re.maxScroll=function(e,t){return Ca(e,t?Le:Xe)},re.getScrollFunc=function(e,t){return I(H(e),t?Le:Xe)},re.getById=function(e){return kt[e]},re.getAll=function(){return Tt.filter(function(e){return"ScrollSmoother"!==e.vars.id})},re.isScrolling=function(){return!!lt},re.snapDirectional=hb,re.addEventListener=function(e,t){var r=R[e]||(R[e]=[]);~r.indexOf(t)||r.push(t)},re.removeEventListener=function(e,t){var r=R[e],n=r&&r.indexOf(t);0<=n&&r.splice(n,1)},re.batch=function(e,t){function On(e,t){var r=[],n=[],i=je.delayedCall(o,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||i.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&i.progress(1)}}var r,n=[],i={},o=t.interval||.016,a=t.batchMax||1e9;for(r in t)i[r]="on"===r.substr(0,2)&&Fa(t[r])&&"onRefreshInit"!==r?On(0,t[r]):t[r];return Fa(a)&&(a=a(),kb(re,"refresh",function(){return a=t.batchMax()})),qe(e).forEach(function(e){var t={};for(r in i)t[r]=i[r];t.trigger=e,n.push(re.create(t))}),n};function ec(e,t,r,n){return n<t?e(n):t<0&&e(0),n<r?(n-t)/(r-t):r<0?t/(t-r):1}function fc(e){!0===e?(We.style.removeProperty("touch-action"),Ke.style.removeProperty("touch-action")):We.style.touchAction=Ke.style.touchAction=e?"pan-"+e:"none"}function gc(e){function po(){return d=st()}function qo(){return n=!1}function to(){r=Ca(Ke,Xe),m=Je(0,r),f&&(v=Je(0,Ca(Ke,Le))),o=W}function Bo(){to(),s.isActive()&&s.vars.scrollY>r&&s.resetTo("scrollY",Ca(Ke,Xe))}Ha(e)||(e={}),e.preventDefault=e.isNormalizer=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,r,n,o,s,a,l,c,u,f=e.normalizeScrollX,i=e.momentum,d=0,p=I(Ke,Xe),g=I(Ke,Le),h=1,b=Fa(i)?function(){return i(t)}:function(){return i||2.8},v=ua,m=ua,y=re.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent);return e.ignoreCheck=function(e){return y&&"touchmove"===e.type&&function ignoreDrag(){if(n)return requestAnimationFrame(qo),!0;n=!0}()||1<h||t.isGesturing||e.touches&&1<e.touches.length},e.onPress=function(){var e=h;h=Ve.visualViewport&&Ve.visualViewport.scale||1,s.pause(),e!==h&&fc(1<h||!f&&"x"),n=!1,a=g(),l=p(),to(),o=W},e.onRelease=e.onGestureStart=function(e,t){var r=e.event,n=r.changedTouches?r.changedTouches[0]:r;if(!t||Math.abs(e.x-e.startX)<=3&&Math.abs(e.y-e.startY)<=3)je.delayedCall(.05,function(){if(300<st()-d&&!r.defaultPrevented)if(r.target.click)r.target.click();else if(c.createEvent){var e=c.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,Ve,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),r.target.dispatchEvent(e)}}),u.restart(!0);else{var i,o,a=b();f&&(o=(i=g())+.05*a*-e.velocityX/.227/h,a*=ec(g,i,o,Ca(Ke,Le)),s.vars.scrollX=v(o)),o=(i=p())+.05*a*-e.velocityY/.227/h,a*=ec(p,i,o,Ca(Ke,Xe)),s.vars.scrollY=m(o),s.invalidate().duration(a).play(.01)}},e.onWheel=function(){return s._ts&&s.pause()},e.onChange=function(e,t,r,n,i){W!==o&&to(),t&&f&&g(v(n[2]===t?a+(e.startX-e.x)/h:g()+t-n[1])),r&&p(m(i[2]===r?l+(e.startY-e.y)/h:p()+r-i[1])),Z()},e.onEnable=function(e){fc(!f&&"x"),kb(Ve,"resize",Bo),e.target.addEventListener("click",po,{capture:!0})},e.onDisable=function(e){fc(!0),lb(Ve,"resize",Bo),lb(e.target,"click",po)},t=new w(e),c=t.target.ownerDocument||Ne,u=t._dc,s=je.to(t,{ease:"power4",paused:!0,scrollX:f?"+=0.1":"+=0",scrollY:"+=0.1",onComplete:u.vars.onComplete}),t}re.sort=function(e){return Tt.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0))})},re.observe=function(e){return new w(e)},re.normalizeScroll=function(e){if(void 0===e)return b;if(!0===e&&b)return b.enable();var t=e instanceof w;return b&&(!1===e||t&&e!==b)&&b.kill(),e&&!t&&(e=gc(e)),b=e&&e.enable()},re.core={_getVelocityProp:J,_scrollers:ze,_proxies:Ye,bridge:{ss:function ss(){lt||j("scrollStart"),lt=st()},ref:function ref(){return Ze}}},xa()&&je.registerPlugin(re),e.ScrollTrigger=re,e.default=re;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function q(){return we||"undefined"!=typeof window&&(we=window.gsap)&&we.registerPlugin&&we}function y(e,t){return~Re.indexOf(e)&&Re[Re.indexOf(e)+1][t]}function z(e){return!!~t.indexOf(e)}function A(e,t,r,n,i){return e.addEventListener(t,r,{passive:!n,capture:!!i})}function B(e,t,r){return e.removeEventListener(t,r)}function E(){return ze&&ze.isPressed||a.cache++}function F(t){return function(e){return e||0===e?(r&&(ke.history.scrollRestoration="manual"),t(e),t.v=e,t.c=a.cache,ze&&ze.isPressed&&i("ss",e)):a.cache===t.c&&!i("ref")||(t.c=a.cache,t.v=t()),t.v}}function I(e){return we.utils.toArray(e)[0]||("string"==typeof e&&!1!==we.config().nullTargetWarn?console.warn("Element not found:",e):null)}function J(t,e){var r=e.s,n=e.sc,i=a.indexOf(t),o=n===Ge.sc?1:2;return~i||(i=a.push(t)-1),a[i+o]||(a[i+o]=y(t,r)||(z(t)?n:F(function(e){return arguments.length?t[r]=e:t[r]})))}function K(e,t,i){function jd(e,t){var r=Fe();t||n<r-s?(a=o,o=e,l=s,s=r):i?o+=e:o=a+(e-a)/(r-l)*(s-l)}var o=e,a=e,s=Fe(),l=s,n=t||50,c=Math.max(500,3*n);return{update:jd,reset:function reset(){a=o=i?0:o,l=s=0},getVelocity:function getVelocity(e){var t=l,r=a,n=Fe();return!e&&0!==e||e===o||jd(e),s===l||c<n-l?0:(o+(i?r:-r))/((i?n:s)-t)*1e3}}}function L(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e}function M(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r}function N(){(Be=we.core.globals().ScrollTrigger)&&Be.core&&function _integrate(){var e=Be.core,r=e.bridge||{},t=e._scrollers,n=e._proxies;t.push.apply(t,a),n.push.apply(n,Re),a=t,Re=n,i=function _bridge(e,t){return r[e](t)}}()}function O(e){return(we=e||q())&&"undefined"!=typeof document&&document.body&&(ke=window,Ae=(Me=document).documentElement,Ee=Me.body,t=[ke,Me,Ae,Ee],we.utils.clamp,Ie="onpointerenter"in Ee?"pointer":"mouse",Ce=S.isTouch=ke.matchMedia&&ke.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ke||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints?2:0,De=S.eventTypes=("ontouchstart"in Ae?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ae?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return r=0},500),N(),_e=1),_e}var we,_e,ke,Me,Ae,Ee,Ce,Ie,Be,t,ze,De,r=1,He=[],a=[],Re=[],Fe=Date.now,i=function _bridge(e,t){return t},n="scrollLeft",o="scrollTop",je={s:n,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:F(function(e){return arguments.length?ke.scrollTo(e,Ge.sc()):ke.pageXOffset||Me[n]||Ae[n]||Ee[n]||0})},Ge={s:o,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:je,sc:F(function(e){return arguments.length?ke.scrollTo(je.sc(),e):ke.pageYOffset||Me[o]||Ae[o]||Ee[o]||0})};je.op=Ge,a.cache=0;var S=(Observer.prototype.init=function init(e){_e||O(we)||console.warn("Please gsap.registerPlugin(Observer)"),Be||N();var i=e.tolerance,a=e.dragMinimum,t=e.type,n=e.target,r=e.lineHeight,o=e.debounce,s=e.preventDefault,l=e.onStop,c=e.onStopDelay,u=e.ignore,f=e.wheelSpeed,d=e.event,p=e.onDragStart,g=e.onDragEnd,h=e.onDrag,b=e.onPress,v=e.onRelease,m=e.onRight,y=e.onLeft,x=e.onUp,w=e.onDown,S=e.onChangeX,_=e.onChangeY,T=e.onChange,k=e.onToggleX,P=e.onToggleY,C=e.onHover,D=e.onHoverEnd,Y=e.onMove,H=e.ignoreCheck,R=e.isNormalizer,X=e.onGestureStart,F=e.onGestureEnd,j=e.onWheel,W=e.onEnable,G=e.onDisable,V=e.onClick,q=e.scrollSpeed,U=e.capture,Q=e.allowClicks,Z=e.lockAxis,$=e.onLockAxis;function Ke(){return ye=Fe()}function Le(e,t){return(se.event=e)&&u&&~u.indexOf(e.target)||t&&ge&&"touch"!==e.pointerType||H&&H(e,t)}function Ne(){var e=se.deltaX=M(ve),t=se.deltaY=M(me),r=Math.abs(e)>=i,n=Math.abs(t)>=i;T&&(r||n)&&T(se,e,t,ve,me),r&&(m&&0<se.deltaX&&m(se),y&&se.deltaX<0&&y(se),S&&S(se),k&&se.deltaX<0!=le<0&&k(se),le=se.deltaX,ve[0]=ve[1]=ve[2]=0),n&&(w&&0<se.deltaY&&w(se),x&&se.deltaY<0&&x(se),_&&_(se),P&&se.deltaY<0!=ce<0&&P(se),ce=se.deltaY,me[0]=me[1]=me[2]=0),(ne||re)&&(Y&&Y(se),$&&oe&&$(se),re&&(h(se),re=!1),ne=oe=!1),ie&&(j(se),ie=!1),ee=0}function Oe(e,t,r){ve[r]+=e,me[r]+=t,se._vx.update(e),se._vy.update(t),o?ee=ee||requestAnimationFrame(Ne):Ne()}function Pe(e,t){"y"!==ae&&(ve[2]+=e,se._vx.update(e,!0)),"x"!==ae&&(me[2]+=t,se._vy.update(t,!0)),Z&&!ae&&(se.axis=ae=Math.abs(e)>Math.abs(t)?"x":"y",oe=!0),o?ee=ee||requestAnimationFrame(Ne):Ne()}function Qe(e){if(!Le(e,1)){var t=(e=L(e,s)).clientX,r=e.clientY,n=t-se.x,i=r-se.y,o=se.isDragging;se.x=t,se.y=r,(o||Math.abs(se.startX-t)>=a||Math.abs(se.startY-r)>=a)&&(h&&(re=!0),o||(se.isDragging=!0),Pe(n,i),o||p&&p(se))}}function Se(t){if(!Le(t,1)){B(R?n:be,De[1],Qe);var e=se.isDragging&&(3<Math.abs(se.x-se.startX)||3<Math.abs(se.y-se.startY)),r=L(t);e||(se._vx.reset(),se._vy.reset(),s&&Q&&we.delayedCall(.05,function(){if(300<Fe()-ye&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(be.createEvent){var e=be.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,ke,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),se.isDragging=se.isGesturing=se.isPressed=!1,l&&!R&&te.restart(!0),g&&e&&g(se),v&&v(se,e)}}function Te(e){return e.touches&&1<e.touches.length&&(se.isGesturing=!0)&&X(e,se.isDragging)}function Ue(){return(se.isGesturing=!1)||F(se)}function Ve(e){if(!Le(e)){var t=ue(),r=fe();Oe((t-de)*q,(r-pe)*q,1),de=t,pe=r,l&&te.restart(!0)}}function We(e){if(!Le(e)){e=L(e,s),j&&(ie=!0);var t=(1===e.deltaMode?r:2===e.deltaMode?ke.innerHeight:1)*f;Oe(e.deltaX*t,e.deltaY*t,0),l&&!R&&te.restart(!0)}}function Xe(e){if(!Le(e)){var t=e.clientX,r=e.clientY,n=t-se.x,i=r-se.y;se.x=t,se.y=r,ne=!0,(n||i)&&Pe(n,i)}}function Ye(e){se.event=e,C(se)}function Ze(e){se.event=e,D(se)}function $e(e){return Le(e)||L(e,s)&&V(se)}this.target=n=I(n)||Ae,this.vars=e,u=u&&we.utils.toArray(u),i=i||0,a=a||0,f=f||1,q=q||1,t=t||"wheel,touch,pointer",o=!1!==o,r=r||parseFloat(ke.getComputedStyle(Ee).lineHeight)||22;var ee,te,re,ne,ie,oe,ae,se=this,le=0,ce=0,ue=J(n,je),fe=J(n,Ge),de=ue(),pe=fe(),ge=~t.indexOf("touch")&&!~t.indexOf("pointer")&&"pointerdown"===De[0],he=z(n),be=n.ownerDocument||Me,ve=[0,0,0],me=[0,0,0],ye=0,xe=se.onPress=function(e){Le(e,1)||(se.axis=ae=null,te.pause(),se.isPressed=!0,e=L(e),le=ce=0,se.startX=se.x=e.clientX,se.startY=se.y=e.clientY,se._vx.reset(),se._vy.reset(),A(R?n:be,De[1],Qe,s,U),se.deltaX=se.deltaY=0,b&&b(se))};te=se._dc=we.delayedCall(c||.25,function onStopFunc(){se._vx.reset(),se._vy.reset(),te.pause(),l&&l(se)}).pause(),se.deltaX=se.deltaY=0,se._vx=K(0,50,!0),se._vy=K(0,50,!0),se.scrollX=ue,se.scrollY=fe,se.isDragging=se.isGesturing=se.isPressed=!1,se.enable=function(e){return se.isEnabled||(A(he?be:n,"scroll",E),0<=t.indexOf("scroll")&&A(he?be:n,"scroll",Ve,s,U),0<=t.indexOf("wheel")&&A(n,"wheel",We,s,U),(0<=t.indexOf("touch")&&Ce||0<=t.indexOf("pointer"))&&(A(n,De[0],xe,s,U),A(be,De[2],Se),A(be,De[3],Se),Q&&A(n,"click",Ke,!1,!0),V&&A(n,"click",$e),X&&A(be,"gesturestart",Te),F&&A(be,"gestureend",Ue),C&&A(n,Ie+"enter",Ye),D&&A(n,Ie+"leave",Ze),Y&&A(n,Ie+"move",Xe)),se.isEnabled=!0,e&&e.type&&xe(e),W&&W(se)),se},se.disable=function(){se.isEnabled&&(He.filter(function(e){return e!==se&&z(e.target)}).length||B(he?be:n,"scroll",E),se.isPressed&&(se._vx.reset(),se._vy.reset(),B(R?n:be,De[1],Qe)),B(he?be:n,"scroll",Ve),B(n,"wheel",We),B(n,De[0],xe),B(be,De[2],Se),B(be,De[3],Se),B(n,"click",Ke),B(n,"click",$e),B(be,"gesturestart",Te),B(be,"gestureend",Ue),B(n,Ie+"enter",Ye),B(n,Ie+"leave",Ze),B(n,Ie+"move",Xe),se.isEnabled=se.isPressed=se.isDragging=!1,G&&G(se))},se.kill=function(){se.disable();var e=He.indexOf(se);0<=e&&He.splice(e,1),ze===se&&(ze=0)},He.push(se),R&&z(n)&&(ze=se),se.enable(d)},function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}(Observer,[{key:"velocityX",get:function get(){return this._vx.getVelocity()}},{key:"velocityY",get:function get(){return this._vy.getVelocity()}}]),Observer);function Observer(e){this.init(e)}S.version="3.10.3",S.create=function(e){return new S(e)},S.register=O,S.getAll=function(){return He.slice()},S.getById=function(t){return He.filter(function(e){return e.vars.id===t})[0]},q()&&we.registerPlugin(S);function ua(){return st=1}function va(){return st=0}function wa(e){return e}function xa(e){return Math.round(1e5*e)/1e5||0}function ya(){return"undefined"!=typeof window}function za(){return Je||ya()&&(Je=window.gsap)&&Je.registerPlugin&&Je}function Aa(e){return!!~l.indexOf(e)}function Ba(e){return y(e,"getBoundingClientRect")||(Aa(e)?function(){return Yt.width=qe.innerWidth,Yt.height=qe.innerHeight,Yt}:function(){return Ot(e)})}function Ea(e,t){var r=t.s,n=t.d2,i=t.d,o=t.a;return(r="scroll"+n)&&(o=y(e,r))?o()-Ba(e)()[i]:Aa(e)?(tt[r]||rt[r])-(qe["inner"+n]||tt["client"+n]||rt["client"+n]):e[r]-e["offset"+n]}function Fa(e,t){for(var r=0;r<g.length;r+=3)t&&!~t.indexOf(g[r+1])||e(g[r],g[r+1],g[r+2])}function Ga(e){return"string"==typeof e}function Ha(e){return"function"==typeof e}function Ia(e){return"number"==typeof e}function Ja(e){return"object"==typeof e}function Ka(e){return Ha(e)&&e()}function La(r,n){return function(){var e=Ka(r),t=Ka(n);return function(){Ka(e),Ka(t)}}}function Ma(e,t,r){return e&&e.progress(t?0:1)&&r&&e.pause()}function Na(e,t){if(e.enabled){var r=t(e);r&&r.totalTime&&(e.callbackAnimation=r)}}function cb(e){return qe.getComputedStyle(e)}function eb(e,t){for(var r in t)r in e||(e[r]=t[r]);return e}function gb(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0}function hb(e){var t,r=[],n=e.labels,i=e.duration();for(t in n)r.push(n[t]/i);return r}function jb(i){var o=Je.utils.snap(i),a=Array.isArray(i)&&i.slice(0).sort(function(e,t){return e-t});return a?function(e,t,r){var n;if(void 0===r&&(r=.001),!t)return o(e);if(0<t){for(e-=r,n=0;n<a.length;n++)if(a[n]>=e)return a[n];return a[n-1]}for(n=a.length,e+=r;n--;)if(a[n]<=e)return a[n];return a[0]}:function(e,t,r){void 0===r&&(r=.001);var n=o(e);return!t||Math.abs(n-e)<r||n-e<0==t<0?n:o(t<0?e-i:e+i)}}function lb(t,r,e,n){return e.split(",").forEach(function(e){return t(r,e,n)})}function mb(e,t,r,n,i){return e.addEventListener(t,r,{passive:!n,capture:!!i})}function nb(e,t,r){return e.removeEventListener(t,r)}function ob(e,t,r){return r&&r.wheelHandler&&e(t,"wheel",r)}function sb(e,t){if(Ga(e)){var r=e.indexOf("="),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in D?D[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function tb(e,t,r,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,f=i.indent,d=i.fontWeight,p=et.createElement("div"),g=Aa(r)||"fixed"===y(r,"pinType"),h=-1!==e.indexOf("scroller"),b=g?rt:r,v=-1!==e.indexOf("start"),m=v?l:c,x="border-color:"+m+";font-size:"+u+";color:"+m+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return x+="position:"+((h||s)&&g?"fixed;":"absolute;"),!h&&!s&&g||(x+=(n===Ge?k:P)+":"+(o+parseFloat(f))+"px;"),a&&(x+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=v,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=x,p.innerText=t||0===t?e+"-"+t:e,b.children[0]?b.insertBefore(p,b.children[0]):b.appendChild(p),p._offset=p["offset"+n.op.d2],Y(p,0,n,v),p}function yb(){return 34<bt()-vt&&$()}function zb(){b&&b.isPressed||(a.cache++,w=w||requestAnimationFrame($),vt||j("scrollStart"),vt=bt())}function Ab(){x=qe.innerWidth,m=qe.innerHeight}function Bb(){a.cache++,at||h||et.fullscreenElement||v&&x===qe.innerWidth&&!(Math.abs(qe.innerHeight-m)>.25*qe.innerHeight)||c.restart(!0)}function Hb(e){var t,r=Je.ticker.frame,n=[],i=0;if(_!==r||ht){for(V();i<X.length;i+=4)(t=qe.matchMedia(X[i]).matches)!==X[i+3]&&((X[i+3]=t)?n.push(i):V(1,X[i])||Ha(X[i+2])&&X[i+2]());for(G(),i=0;i<n.length;i++)t=n[i],dt=X[t],X[t+2]=X[t+1](e);dt=0,s&&Q(0,1),_=r,j("matchMedia")}}function Ib(){return nb(ie,"scrollEnd",Ib)||Q(!0)}function Nb(){return a.cache++&&a.forEach(function(e){return"function"==typeof e&&(e.rec=0)})}function Yb(e,t,r,n){if(e.parentNode!==t){for(var i,o=ee.length,a=t.style,s=e.style;o--;)a[i=ee[o]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),s[P]=s[k]=a.flexBasis="auto",a.overflow="visible",a.boxSizing="border-box",a[xt]=gb(e,je)+Pt,a[wt]=gb(e,Ge)+Pt,a[Mt]=s[At]=s.top=s.left="0",Dt(n),s[xt]=s.maxWidth=r[xt],s[wt]=s.maxHeight=r[wt],s[Mt]=r[Mt],e.parentNode.insertBefore(t,e),t.appendChild(e)}}function _b(e){for(var t=te.length,r=e.style,n=[],i=0;i<t;i++)n.push(te[i],r[te[i]]);return n.t=e,n}function cc(e,t,r,n,i,o,a,s,l,c,u,f,d){Ha(e)&&(e=e(s)),Ga(e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?sb("0"+e.substr(3),r):0));var p,g,h,b=d?d.time():0;if(d&&d.seek(0),Ia(e))a&&Y(a,r,n,!0);else{Ha(t)&&(t=t(s));var v,m,y,x,w=e.split(" ");h=I(t)||rt,(v=Ot(h)||{})&&(v.left||v.top)||"none"!==cb(h).display||(x=h.style.display,h.style.display="block",v=Ot(h),x?h.style.display=x:h.style.removeProperty("display")),m=sb(w[0],v[n.d]),y=sb(w[1]||"0",r),e=v[n.p]-l[n.p]-c+m+i-y,a&&Y(a,y,n,r-y<20||a._isStart&&20<y),r-=r-y}if(o){var S=e+r,_=o._isStart;p="scroll"+n.d2,Y(o,S,n,_&&20<S||!_&&(u?Math.max(rt[p],tt[p]):o.parentNode[p])<=S+1),u&&(l=Ot(a),u&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+Pt))}return d&&h&&(p=Ot(h),d.seek(f),g=Ot(h),d._caScrollDist=p[n.p]-g[n.p],e=e/d._caScrollDist*f),d&&d.seek(b),d?e:Math.round(e)}function ec(e,t,r,n){if(e.parentNode!==t){var i,o,a=e.style;if(t===rt){for(i in e._stOrig=a.cssText,o=cb(e))+i||ne.test(i)||!o[i]||"string"!=typeof a[i]||"0"===i||(a[i]=o[i]);a.top=r,a.left=n}else a.cssText=e._stOrig;Je.core.getCache(e).uncache=1,t.appendChild(e)}}function fc(l,e){function Kj(e,t,r,n,i){var o=Kj.tween,a=t.onComplete,s={};return r=r||f(),i=n&&i||0,n=n||e-r,o&&o.kill(),c=Math.round(r),t[d]=e,(t.modifiers=s)[d]=function(e){return(e=xa(f()))!==c&&e!==u&&2<Math.abs(e-c)&&2<Math.abs(e-u)?(o.kill(),Kj.tween=0):e=r+n*o.ratio+i*o.ratio*o.ratio,u=c,c=xa(e)},t.onComplete=function(){Kj.tween=0,a&&a.call(o)},o=Kj.tween=Je.to(l,t)}var c,u,f=J(l,e),d="_scroll"+e.p2;return(l[d]=f).wheelHandler=function(){return Kj.tween&&Kj.tween.kill()&&(Kj.tween=0)},mb(l,"wheel",f.wheelHandler),Kj}var Je,s,qe,et,tt,rt,l,c,nt,it,ot,u,at,st,f,lt,d,p,g,ct,ut,h,b,v,m,x,ft,w,dt,_,pt,gt,ht=1,bt=Date.now,T=bt(),vt=0,mt=0,yt=Math.abs,k="right",P="bottom",xt="width",wt="height",St="Right",_t="Left",Tt="Top",kt="Bottom",Mt="padding",At="margin",Et="Width",C="Height",Pt="px",Ot=function _getBounds(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==cb(e)[f]&&Je.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return r&&r.progress(0).kill(),n},Ct={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},It={toggleActions:"play",anticipatePin:0},D={top:0,left:0,center:.5,bottom:1,right:1},Y=function _positionMarker(e,t,r,n){var i={display:"block"},o=r[n?"os2":"p2"],a=r[n?"p2":"os2"];e._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+o+Et]=1,i["border"+a+Et]=0,i[r.p]=t+"px",Je.set(e,i)},Bt=[],zt={},H={},R=[],X=[],j=function _dispatch(e){return H[e]&&H[e].map(function(e){return e()})||R},W=[],G=function _revertRecorded(e){for(var t=0;t<W.length;t+=5)e&&W[t+4]!==e||(W[t].style.cssText=W[t+1],W[t].getBBox&&W[t].setAttribute("transform",W[t+2]||""),W[t+3].uncache=1)},V=function _revertAll(e,t){var r;for(lt=0;lt<Bt.length;lt++)r=Bt[lt],t&&r.media!==t||(e?r.kill(1):r.revert());t&&G(t),t||j("revert")},U=0,Q=function _refreshAll(e,t){if(!vt||e){pt=!0;var r=j("refreshInit");ct&&ie.sort(),t||V(),Bt.slice(0).forEach(function(e){return e.refresh()}),Bt.forEach(function(e){return"max"===e.vars.end&&e.setPositions(e.start,Ea(e.scroller,e._dir))}),r.forEach(function(e){return e&&e.render&&e.render(-1)}),Nb(),c.pause(),U++,pt=!1,j("refresh")}else mb(ie,"scrollEnd",Ib)},Z=0,Lt=1,$=function _updateAll(){if(!pt){gt&>.update(0),ie.isUpdating=!0;var e=Bt.length,t=bt(),r=50<=t-T,n=e&&Bt[0].scroll();if(Lt=n<Z?-1:1,Z=n,r&&(vt&&!st&&200<t-vt&&(vt=0,j("scrollEnd")),ot=T,T=t),Lt<0){for(lt=e;0<lt--;)Bt[lt]&&Bt[lt].update(0,r);Lt=1}else for(lt=0;lt<e;lt++)Bt[lt]&&Bt[lt].update(0,r);ie.isUpdating=!1}w=0},ee=["left","top",P,k,At+kt,At+St,At+Tt,At+_t,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],te=ee.concat([xt,wt,"boxSizing","max"+Et,"max"+C,"position",At,Mt,Mt+Tt,Mt+St,Mt+kt,Mt+_t]),re=/([A-Z])/g,Dt=function _setState(e){if(e){var t,r,n=e.t.style,i=e.length,o=0;for((e.t._gsap||Je.core.getCache(e.t)).uncache=1;o<i;o+=2)r=e[o+1],t=e[o],r?n[t]=r:n[t]&&n.removeProperty(t.replace(re,"-$1").toLowerCase())}},Yt={left:0,top:0},ne=/(webkit|moz|length|cssText|inset)/i,ie=(ScrollTrigger.prototype.init=function init(_,T){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),mt){var k,n,p,M,A,E,P,O,C,B,z,e,L,D,Y,H,N,t,R,v,X,F,m,K,x,w,r,S,j,W,i,g,G,V,q,U,Q,o,Z=(_=eb(Ga(_)||Ia(_)||_.nodeType?{trigger:_}:_,It)).onUpdate,$=_.toggleClass,a=_.id,ee=_.onToggle,te=_.onRefresh,re=_.scrub,ne=_.trigger,ie=_.pin,oe=_.pinSpacing,ae=_.invalidateOnRefresh,se=_.anticipatePin,s=_.onScrubComplete,h=_.onSnapComplete,le=_.once,ce=_.snap,ue=_.pinReparent,l=_.pinSpacer,fe=_.containerAnimation,de=_.fastScrollEnd,pe=_.preventOverlaps,ge=_.horizontal||_.containerAnimation&&!1!==_.horizontal?je:Ge,he=!re&&0!==re,be=I(_.scroller||qe),c=Je.core.getCache(be),ve=Aa(be),me="fixed"===("pinType"in _?_.pinType:y(be,"pinType")||ve&&"fixed"),ye=[_.onEnter,_.onLeave,_.onEnterBack,_.onLeaveBack],xe=he&&_.toggleActions.split(" "),u="markers"in _?_.markers:It.markers,we=ve?0:parseFloat(cb(be)["border"+ge.p2+Et])||0,Se=this,_e=_.onRefreshInit&&function(){return _.onRefreshInit(Se)},Te=function _getSizeFunc(e,t,r){var n=r.d,i=r.d2,o=r.a;return(o=y(e,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(t?qe["inner"+i]:e["client"+i])||0}}(be,ve,ge),ke=function _getOffsetsFunc(e,t){return!t||~Re.indexOf(e)?Ba(e):function(){return Yt}}(be,ve),Me=0,Ae=0,Ee=J(be,ge);if(Se.media=dt,Se._dir=ge,se*=45,Se.scroller=be,Se.scroll=fe?fe.time.bind(fe):Ee,M=Ee(),Se.vars=_,T=T||_.animation,"refreshPriority"in _&&(ct=1,-9999===_.refreshPriority&&(gt=Se)),c.tweenScroll=c.tweenScroll||{top:fc(be,Ge),left:fc(be,je)},Se.tweenTo=k=c.tweenScroll[ge.p],Se.scrubDuration=function(e){(i=Ia(e)&&e)?W?W.duration(e):W=Je.to(T,{ease:"expo",totalProgress:"+=0.001",duration:i,paused:!0,onComplete:function onComplete(){return s&&s(Se)}}):(W&&W.progress(1).kill(),W=0)},T&&(T.vars.lazy=!1,T._initted||!1!==T.vars.immediateRender&&!1!==_.immediateRender&&T.render(0,!0,!0),Se.animation=T.pause(),(T.scrollTrigger=Se).scrubDuration(re),S=0,a=a||T.vars.id),Bt.push(Se),ce&&(Ja(ce)&&!ce.push||(ce={snapTo:ce}),"scrollBehavior"in rt.style&&Je.set(ve?[rt,tt]:be,{scrollBehavior:"auto"}),p=Ha(ce.snapTo)?ce.snapTo:"labels"===ce.snapTo?function _getClosestLabel(t){return function(e){return Je.utils.snap(hb(t),e)}}(T):"labelsDirectional"===ce.snapTo?function _getLabelAtDirection(r){return function(e,t){return jb(hb(r))(e,t.direction)}}(T):!1!==ce.directional?function(e,t){return jb(ce.snapTo)(e,bt()-Ae<500?0:t.direction)}:Je.utils.snap(ce.snapTo),g=ce.duration||{min:.1,max:2},g=Ja(g)?it(g.min,g.max):it(g,g),G=Je.delayedCall(ce.delay||i/2||.1,function(){var e=Ee(),t=bt()-Ae<500,r=k.tween;if(!(t||Math.abs(Se.getVelocity())<10)||r||st||Me===e)Se.isActive&&Me!==e&&G.restart(!0);else{var n=(e-E)/L,i=T&&!he?T.totalProgress():n,o=t?0:(i-j)/(bt()-ot)*1e3||0,a=Je.utils.clamp(-n,1-n,yt(o/2)*o/.185),s=n+(!1===ce.inertia?0:a),l=it(0,1,p(s,Se)),c=Math.round(E+l*L),u=ce.onStart,f=ce.onInterrupt,d=ce.onComplete;if(e<=P&&E<=e&&c!==e){if(r&&!r._initted&&r.data<=yt(c-e))return;!1===ce.inertia&&(a=l-n),k(c,{duration:g(yt(.185*Math.max(yt(s-i),yt(l-i))/o/.05||0)),ease:ce.ease||"power3",data:yt(c-e),onInterrupt:function onInterrupt(){return G.restart(!0)&&f&&f(Se)},onComplete:function onComplete(){Se.update(),Me=Ee(),S=j=T&&!he?T.totalProgress():Se.progress,h&&h(Se),d&&d(Se)}},e,a*L,c-e-a*L),u&&u(Se,k.tween)}}}).pause()),a&&(zt[a]=Se),o=(o=(ne=Se.trigger=I(ne||ie))&&ne._gsap&&ne._gsap.stRevert)&&o(Se),ie=!0===ie?ne:I(ie),Ga($)&&($={targets:ne,className:$}),ie&&(!1===oe||oe===At||(oe=!(!oe&&"flex"===cb(ie.parentNode).display)&&Mt),Se.pin=ie,!1!==_.force3D&&Je.set(ie,{force3D:!0}),(n=Je.core.getCache(ie)).spacer?D=n.pinState:(l&&((l=I(l))&&!l.nodeType&&(l=l.current||l.nativeElement),n.spacerIsNative=!!l,l&&(n.spacerState=_b(l))),n.spacer=N=l||et.createElement("div"),N.classList.add("pin-spacer"),a&&N.classList.add("pin-spacer-"+a),n.pinState=D=_b(ie)),Se.spacer=N=n.spacer,r=cb(ie),m=r[oe+ge.os2],R=Je.getProperty(ie),v=Je.quickSetter(ie,ge.a,Pt),Yb(ie,N,r),H=_b(ie)),u){e=Ja(u)?eb(u,Ct):Ct,B=tb("scroller-start",a,be,ge,e,0),z=tb("scroller-end",a,be,ge,e,0,B),t=B["offset"+ge.op.d2];var f=I(y(be,"content")||be);O=this.markerStart=tb("start",a,f,ge,e,t,0,fe),C=this.markerEnd=tb("end",a,f,ge,e,t,0,fe),fe&&(Q=Je.quickSetter([O,C],ge.a,Pt)),me||Re.length&&!0===y(be,"fixedMarkers")||(function _makePositionable(e){var t=cb(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"}(ve?rt:be),Je.set([B,z],{force3D:!0}),x=Je.quickSetter(B,ge.a,Pt),w=Je.quickSetter(z,ge.a,Pt))}if(fe){var d=fe.vars.onUpdate,b=fe.vars.onUpdateParams;fe.eventCallback("onUpdate",function(){Se.update(0,0,1),d&&d.apply(b||[])})}Se.previous=function(){return Bt[Bt.indexOf(Se)-1]},Se.next=function(){return Bt[Bt.indexOf(Se)+1]},Se.revert=function(e){var t=!1!==e||!Se.enabled,r=at;t!==Se.isReverted&&(t&&(!Se.scroll.rec&&at&&pt&&(Se.scroll.rec=Ee()),q=Math.max(Ee(),Se.scroll.rec||0),V=Se.progress,U=T&&T.progress()),O&&[O,C,B,z].forEach(function(e){return e.style.display=t?"none":"block"}),t&&(at=1),Se.update(t),at=r,ie&&(t?function _swapPinOut(e,t,r){Dt(r);var n=e._gsap;if(n.spacerIsNative)Dt(n.spacerState);else if(e.parentNode===t){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}}(ie,N,D):ue&&Se.isActive||Yb(ie,N,cb(ie),K)),Se.isReverted=t)},Se.refresh=function(e,t){if(!at&&Se.enabled||t)if(ie&&e&&vt)mb(ScrollTrigger,"scrollEnd",Ib);else{!pt&&_e&&_e(Se),at=1,Ae=bt(),k.tween&&(k.tween.kill(),k.tween=0),W&&W.pause(),ae&&T&&T.time(-.01,!0).invalidate(),Se.isReverted||Se.revert();for(var r,n,i,o,a,s,l,c,u,f,d=Te(),p=ke(),g=fe?fe.duration():Ea(be,ge),h=0,b=0,v=_.end,m=_.endTrigger||ne,y=_.start||(0!==_.start&&ne?ie?"0 0":"0 100%":0),x=Se.pinnedContainer=_.pinnedContainer&&I(_.pinnedContainer),w=ne&&Math.max(0,Bt.indexOf(Se))||0,S=w;S--;)(s=Bt[S]).end||s.refresh(0,1)||(at=1),!(l=s.pin)||l!==ne&&l!==ie||s.isReverted||((f=f||[]).unshift(s),s.revert()),s!==Bt[S]&&(w--,S--);for(Ha(y)&&(y=y(Se)),E=cc(y,ne,d,ge,Ee(),O,B,Se,p,we,me,g,fe)||(ie?-.001:0),Ha(v)&&(v=v(Se)),Ga(v)&&!v.indexOf("+=")&&(~v.indexOf(" ")?v=(Ga(y)?y.split(" ")[0]:"")+v:(h=sb(v.substr(2),d),v=Ga(y)?y:E+h,m=ne)),P=Math.max(E,cc(v||(m?"100% 0":g),m,d,ge,Ee()+h,C,z,Se,p,we,me,g,fe))||-.001,L=P-E||(E-=.01)&&.001,h=0,S=w;S--;)(l=(s=Bt[S]).pin)&&s.start-s._pinPush<E&&!fe&&0<s.end&&(r=s.end-s.start,l!==ne&&l!==x||Ia(y)||(h+=r*(1-s.progress)),l===ie&&(b+=r));if(E+=h,P+=h,Se._pinPush=b,O&&h&&((r={})[ge.a]="+="+h,x&&(r[ge.p]="-="+Ee()),Je.set([O,C],r)),ie)r=cb(ie),o=ge===Ge,i=Ee(),X=parseFloat(R(ge.a))+b,!g&&1<P&&((ve?rt:be).style["overflow-"+ge.a]="scroll"),Yb(ie,N,r),H=_b(ie),n=Ot(ie,!0),c=me&&J(be,o?je:Ge)(),oe&&((K=[oe+ge.os2,L+b+Pt]).t=N,(S=oe===Mt?gb(ie,ge)+L+b:0)&&K.push(ge.d,S+Pt),Dt(K),me&&Ee(q)),me&&((a={top:n.top+(o?i-E:c)+Pt,left:n.left+(o?c:i-E)+Pt,boxSizing:"border-box",position:"fixed"})[xt]=a.maxWidth=Math.ceil(n.width)+Pt,a[wt]=a.maxHeight=Math.ceil(n.height)+Pt,a[At]=a[At+Tt]=a[At+St]=a[At+kt]=a[At+_t]="0",a[Mt]=r[Mt],a[Mt+Tt]=r[Mt+Tt],a[Mt+St]=r[Mt+St],a[Mt+kt]=r[Mt+kt],a[Mt+_t]=r[Mt+_t],Y=function _copyState(e,t,r){for(var n,i=[],o=e.length,a=r?8:0;a<o;a+=2)n=e[a],i.push(n,n in t?t[n]:e[a+1]);return i.t=e.t,i}(D,a,ue)),T?(u=T._initted,ut(1),T.render(T.duration(),!0,!0),F=R(ge.a)-X+L+b,L!==F&&Y.splice(Y.length-2,2),T.render(0,!0,!0),u||T.invalidate(),ut(0)):F=L;else if(ne&&Ee()&&!fe)for(n=ne.parentNode;n&&n!==rt;)n._pinOffset&&(E-=n._pinOffset,P-=n._pinOffset),n=n.parentNode;f&&f.forEach(function(e){return e.revert(!1)}),Se.start=E,Se.end=P,M=A=Ee(),fe||(M<q&&Ee(q),Se.scroll.rec=0),Se.revert(!1),G&&(Me=-1,Se.isActive&&Ee(E+L*V),G.restart(!0)),at=0,T&&he&&(T._initted||U)&&T.progress()!==U&&T.progress(U,!0).render(T.time(),!0,!0),V===Se.progress&&!fe||(T&&!he&&T.totalProgress(V,!0),Se.progress=V,Se.update(0,0,1)),ie&&oe&&(N._pinOffset=Math.round(Se.progress*F)),te&&te(Se)}},Se.getVelocity=function(){return(Ee()-A)/(bt()-ot)*1e3||0},Se.endAnimation=function(){Ma(Se.callbackAnimation),T&&(W?W.progress(1):T.paused()?he||Ma(T,Se.direction<0,1):Ma(T,T.reversed()))},Se.labelToScroll=function(e){return T&&T.labels&&(E||Se.refresh()||E)+T.labels[e]/T.duration()*L||0},Se.getTrailing=function(t){var e=Bt.indexOf(Se),r=0<Se.direction?Bt.slice(0,e).reverse():Bt.slice(e+1);return(Ga(t)?r.filter(function(e){return e.vars.preventOverlaps===t}):r).filter(function(e){return 0<Se.direction?e.end<=E:e.start>=P})},Se.update=function(e,t,r){if(!fe||r||e){var n,i,o,a,s,l,c,u=Se.scroll(),f=e?0:(u-E)/L,d=f<0?0:1<f?1:f||0,p=Se.progress;if(t&&(A=M,M=fe?Ee():u,ce&&(j=S,S=T&&!he?T.totalProgress():d)),se&&!d&&ie&&!at&&!ht&&vt&&E<u+(u-A)/(bt()-ot)*se&&(d=1e-4),d!==p&&Se.enabled){if(a=(s=(n=Se.isActive=!!d&&d<1)!=(!!p&&p<1))||!!d!=!!p,Se.direction=p<d?1:-1,Se.progress=d,a&&!at&&(i=d&&!p?0:1===d?1:1===p?2:3,he&&(o=!s&&"none"!==xe[i+1]&&xe[i+1]||xe[i],c=T&&("complete"===o||"reset"===o||o in T))),pe&&(s||c)&&(c||re||!T)&&(Ha(pe)?pe(Se):Se.getTrailing(pe).forEach(function(e){return e.endAnimation()})),he||(!W||at||ht?T&&T.totalProgress(d,!!at):((fe||gt&>!==Se)&&W.render(W._dp._time-W._start),W.resetTo?W.resetTo("totalProgress",d,T._tTime/T._tDur):(W.vars.totalProgress=d,W.invalidate().restart()))),ie)if(e&&oe&&(N.style[oe+ge.os2]=m),me){if(a){if(l=!e&&p<d&&u<P+1&&u+1>=Ea(be,ge),ue)if(e||!n&&!l)ec(ie,N);else{var g=Ot(ie,!0),h=u-E;ec(ie,rt,g.top+(ge===Ge?h:0)+Pt,g.left+(ge===Ge?0:h)+Pt)}Dt(n||l?Y:H),F!==L&&d<1&&n||v(X+(1!==d||l?0:F))}}else v(xa(X+F*d));!ce||k.tween||at||ht||G.restart(!0),$&&(s||le&&d&&(d<1||!ft))&&nt($.targets).forEach(function(e){return e.classList[n||le?"add":"remove"]($.className)}),!Z||he||e||Z(Se),a&&!at?(he&&(c&&("complete"===o?T.pause().totalProgress(1):"reset"===o?T.restart(!0).pause():"restart"===o?T.restart(!0):T[o]()),Z&&Z(Se)),!s&&ft||(ee&&s&&Na(Se,ee),ye[i]&&Na(Se,ye[i]),le&&(1===d?Se.kill(!1,1):ye[i]=0),s||ye[i=1===d?1:3]&&Na(Se,ye[i])),de&&!n&&Math.abs(Se.getVelocity())>(Ia(de)?de:2500)&&(Ma(Se.callbackAnimation),W?W.progress(1):Ma(T,!d,1))):he&&Z&&!at&&Z(Se)}if(w){var b=fe?u/fe.duration()*(fe._caScrollDist||0):u;x(b+(B._isFlipped?1:0)),w(b)}Q&&Q(-u/fe.duration()*(fe._caScrollDist||0))}},Se.enable=function(e,t){Se.enabled||(Se.enabled=!0,mb(be,"resize",Bb),mb(ve?et:be,"scroll",zb),_e&&mb(ScrollTrigger,"refreshInit",_e),!1!==e&&(Se.progress=V=0,M=A=Me=Ee()),!1!==t&&Se.refresh())},Se.getTween=function(e){return e&&k?k.tween:W},Se.setPositions=function(e,t){ie&&(X+=e-E,F+=t-e-L),Se.start=E=e,Se.end=P=t,L=t-e,Se.update()},Se.disable=function(e,t){if(Se.enabled&&(!1!==e&&Se.revert(),Se.enabled=Se.isActive=!1,t||W&&W.pause(),q=0,n&&(n.uncache=1),_e&&nb(ScrollTrigger,"refreshInit",_e),G&&(G.pause(),k.tween&&k.tween.kill()&&(k.tween=0)),!ve)){for(var r=Bt.length;r--;)if(Bt[r].scroller===be&&Bt[r]!==Se)return;nb(be,"resize",Bb),nb(be,"scroll",zb)}},Se.kill=function(e,t){Se.disable(e,t),W&&!t&&W.kill(),a&&delete zt[a];var r=Bt.indexOf(Se);0<=r&&Bt.splice(r,1),r===lt&&0<Lt&<--,r=0,Bt.forEach(function(e){return e.scroller===Se.scroller&&(r=1)}),r||(Se.scroll.rec=0),T&&(T.scrollTrigger=null,e&&T.render(-1),t||T.kill()),O&&[O,C,B,z].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),gt===Se&&(gt=0),ie&&(n&&(n.uncache=1),r=0,Bt.forEach(function(e){return e.pin===ie&&r++}),r||(n.spacer=0)),_.onKill&&_.onKill(Se)},Se.enable(!1,!1),o&&o(Se),T&&T.add&&!L?Je.delayedCall(.01,function(){return E||P||Se.refresh()})&&(L=.01)&&(E=P=0):Se.refresh()}else this.update=this.refresh=this.kill=wa},ScrollTrigger.register=function register(e){return s||(Je=e||za(),ya()&&window.document&&ScrollTrigger.enable(),s=mt),s},ScrollTrigger.defaults=function defaults(e){if(e)for(var t in e)It[t]=e[t];return It},ScrollTrigger.disable=function disable(t,r){mt=0,Bt.forEach(function(e){return e[r?"kill":"disable"](t)}),nb(qe,"wheel",zb),nb(et,"scroll",zb),clearInterval(u),nb(et,"touchcancel",wa),nb(rt,"touchstart",wa),lb(nb,et,"pointerdown,touchstart,mousedown",ua),lb(nb,et,"pointerup,touchend,mouseup",va),c.kill(),Fa(nb);for(var e=0;e<a.length;e+=3)ob(nb,a[e],a[e+1]),ob(nb,a[e],a[e+2])},ScrollTrigger.enable=function enable(){if(qe=window,et=document,tt=et.documentElement,rt=et.body,Je&&(nt=Je.utils.toArray,it=Je.utils.clamp,ut=Je.core.suppressOverwrites||wa,Je.core.globals("ScrollTrigger",ScrollTrigger),rt)){mt=1,S.register(Je),ScrollTrigger.isTouch=S.isTouch,mb(qe,"wheel",zb),l=[qe,et,tt,rt],ScrollTrigger.matchMedia({"(orientation: portrait)":function orientationPortrait(){return Ab(),Ab}}),mb(et,"scroll",zb);var e,t,r=rt.style,n=r.borderTopStyle;for(r.borderTopStyle="solid",e=Ot(rt),Ge.m=Math.round(e.top+Ge.sc())||0,je.m=Math.round(e.left+je.sc())||0,n?r.borderTopStyle=n:r.removeProperty("border-top-style"),u=setInterval(yb,250),Je.delayedCall(.5,function(){return ht=0}),mb(et,"touchcancel",wa),mb(rt,"touchstart",wa),lb(mb,et,"pointerdown,touchstart,mousedown",ua),lb(mb,et,"pointerup,touchend,mouseup",va),f=Je.utils.checkPrefix("transform"),te.push(f),s=bt(),c=Je.delayedCall(.2,Q).pause(),g=[et,"visibilitychange",function(){var e=qe.innerWidth,t=qe.innerHeight;et.hidden?(d=e,p=t):d===e&&p===t||Bb()},et,"DOMContentLoaded",Q,qe,"load",Q,qe,"resize",Bb],Fa(mb),Bt.forEach(function(e){return e.enable(0,1)}),t=0;t<a.length;t+=3)ob(nb,a[t],a[t+1]),ob(nb,a[t],a[t+2])}},ScrollTrigger.config=function config(e){"limitCallbacks"in e&&(ft=!!e.limitCallbacks);var t=e.syncInterval;t&&clearInterval(u)||(u=t)&&setInterval(yb,t),"ignoreMobileResize"in e&&(v=1===ScrollTrigger.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Fa(nb)||Fa(mb,e.autoRefreshEvents||"none"),h=-1===(e.autoRefreshEvents+"").indexOf("resize"))},ScrollTrigger.scrollerProxy=function scrollerProxy(e,t){var r=I(e),n=a.indexOf(r),i=Aa(r);~n&&a.splice(n,i?6:2),t&&(i?Re.unshift(qe,t,rt,t,tt,t):Re.unshift(r,t))},ScrollTrigger.matchMedia=function matchMedia(e){var t,r,n,i,o;for(r in e)n=X.indexOf(r),i=e[r],"all"===(dt=r)?i():(t=qe.matchMedia(r))&&(t.matches&&(o=i()),~n?(X[n+1]=La(X[n+1],i),X[n+2]=La(X[n+2],o)):(n=X.length,X.push(r,i,o),t.addListener?t.addListener(Hb):t.addEventListener("change",Hb)),X[n+3]=t.matches),dt=0;return X},ScrollTrigger.clearMatchMedia=function clearMatchMedia(e){e||(X.length=0),0<=(e=X.indexOf(e))&&X.splice(e,4)},ScrollTrigger.isInViewport=function isInViewport(e,t,r){var n=(Ga(e)?I(e):e).getBoundingClientRect(),i=n[r?xt:wt]*t||0;return r?0<n.right-i&&n.left+i<qe.innerWidth:0<n.bottom-i&&n.top+i<qe.innerHeight},ScrollTrigger.positionInViewport=function positionInViewport(e,t,r){Ga(e)&&(e=I(e));var n=e.getBoundingClientRect(),i=n[r?xt:wt],o=null==t?i/2:t in D?D[t]*i:~t.indexOf("%")?parseFloat(t)*i/100:parseFloat(t)||0;return r?(n.left+o)/qe.innerWidth:(n.top+o)/qe.innerHeight},ScrollTrigger);function ScrollTrigger(e,t){s||ScrollTrigger.register(Je)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,t)}ie.version="3.10.3",ie.saveStyles=function(e){return e?nt(e).forEach(function(e){if(e&&e.style){var t=W.indexOf(e);0<=t&&W.splice(t,5),W.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Je.core.getCache(e),dt)}}):W},ie.revert=function(e,t){return V(!e,t)},ie.create=function(e,t){return new ie(e,t)},ie.refresh=function(e){return e?Bb():(s||ie.register())&&Q(!0)},ie.update=$,ie.clearScrollMemory=Nb,ie.maxScroll=function(e,t){return Ea(e,t?je:Ge)},ie.getScrollFunc=function(e,t){return J(I(e),t?je:Ge)},ie.getById=function(e){return zt[e]},ie.getAll=function(){return Bt.filter(function(e){return"ScrollSmoother"!==e.vars.id})},ie.isScrolling=function(){return!!vt},ie.snapDirectional=jb,ie.addEventListener=function(e,t){var r=H[e]||(H[e]=[]);~r.indexOf(t)||r.push(t)},ie.removeEventListener=function(e,t){var r=H[e],n=r&&r.indexOf(t);0<=n&&r.splice(n,1)},ie.batch=function(e,t){function no(e,t){var r=[],n=[],i=Je.delayedCall(o,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||i.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&i.progress(1)}}var r,n=[],i={},o=t.interval||.016,a=t.batchMax||1e9;for(r in t)i[r]="on"===r.substr(0,2)&&Ha(t[r])&&"onRefreshInit"!==r?no(0,t[r]):t[r];return Ha(a)&&(a=a(),mb(ie,"refresh",function(){return a=t.batchMax()})),nt(e).forEach(function(e){var t={};for(r in i)t[r]=i[r];t.trigger=e,n.push(ie.create(t))}),n};function hc(e,t,r,n){return n<t?e(n):t<0&&e(0),n<r?(n-t)/(r-t):r<0?t/(t-r):1}function ic(e,t){!0===t?e.style.removeProperty("touch-action"):e.style.touchAction=t?"pan-"+t:"none",e===tt&&ic(rt)}function kc(e){var t,r=e.event,n=e.target,i=e.axis,o=(r.changedTouches?r.changedTouches[0]:r).target,a=o._gsap||Je.core.getCache(o),s=bt();if(!a._isScrollT||2e3<s-a._isScrollT){for(;o&&o.scrollHeight<=o.clientHeight;)o=o.parentNode;a._isScroll=o&&!Aa(o)&&o!==n&&(ae[(t=cb(o)).overflowY]||ae[t.overflowX]),a._isScrollT=s}!a._isScroll&&"x"!==i||(r._gsapAllow=!0)}function lc(e,t,r,n){return S.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:n=n&&kc,onPress:n,onDrag:n,onScroll:n,onEnable:function onEnable(){return r&&mb(et,S.eventTypes[0],le,!1,!0)},onDisable:function onDisable(){return nb(et,S.eventTypes[0],le)}})}function pc(e){function fp(){return n=!1}function ip(){r=Ea(d,Ge),x=it(0,r),u&&(y=it(0,Ea(d,je))),o=U}function pp(){ip(),a.isActive()&&a.vars.scrollY>r&&a.resetTo("scrollY",Ea(d,Ge))}Ja(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,r,n,o,a,s,l,c,u=e.normalizeScrollX,i=e.momentum,f=e.allowNestedScroll,d=I(e.target)||tt,p=J(d,Ge),g=J(d,je),h=1,b=0,v=Ha(i)?function(){return i(t)}:function(){return i||2.8},m=lc(d,e.type,!0,f),y=wa,x=wa,w=ie.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent);return e.ignoreCheck=function(e){return w&&"touchmove"===e.type&&function ignoreDrag(){if(n)return requestAnimationFrame(fp),!0;n=!0}()||1<h||t.isGesturing||e.touches&&1<e.touches.length},e.onPress=function(){var e=h;h=qe.visualViewport&&qe.visualViewport.scale||1,a.pause(),e!==h&&ic(d,1<h||!u&&"x"),n=!1,s=g(),l=p(),ip(),o=U},e.onRelease=e.onGestureStart=function(e,t){if(t){var r,n,i=v();u&&(n=(r=g())+.05*i*-e.velocityX/.227/h,i*=hc(g,r,n,Ea(d,je)),a.vars.scrollX=y(n)),n=(r=p())+.05*i*-e.velocityY/.227/h,i*=hc(p,r,n,Ea(d,Ge)),a.vars.scrollY=x(n),a.invalidate().duration(i).play(.01)}else c.restart(!0)},e.onWheel=function(){a._ts&&a.pause(),1e3<bt()-b&&(o=0,b=bt())},e.onChange=function(e,t,r,n,i){U!==o&&ip(),t&&u&&g(y(n[2]===t?s+(e.startX-e.x)/h:g()+t-n[1])),r&&p(x(i[2]===r?l+(e.startY-e.y)/h:p()+r-i[1])),$()},e.onEnable=function(){ic(d,!u&&"x"),mb(qe,"resize",pp),m.enable()},e.onDisable=function(){ic(d,!0),nb(qe,"resize",pp),m.kill()},t=new S(e),c=t._dc,a=Je.to(t,{ease:"power4",paused:!0,scrollX:u?"+=0.1":"+=0",scrollY:"+=0.1",onComplete:c.vars.onComplete}),t}var oe,ae={auto:1,scroll:1},se=/(input|label|select|textarea)/i,le=function _captureInputs(e){var t=se.test(e.target.tagName);(t||oe)&&(e._gsapAllow=!0,oe=t)};ie.sort=function(e){return Bt.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0))})},ie.observe=function(e){return new S(e)},ie.normalizeScroll=function(e){if(void 0===e)return b;if(!0===e&&b)return b.enable();if(!1===e)return b&&b.kill();var t=e instanceof S?e:pc(e);return b&&b.target===t.target&&b.kill(),Aa(t.target)&&(b=t),t},ie.core={_getVelocityProp:K,_inputObserver:lc,_scrollers:a,_proxies:Re,bridge:{ss:function ss(){vt||j("scrollStart"),vt=bt()},ref:function ref(){return at}}},za()&&Je.registerPlugin(ie),e.ScrollTrigger=ie,e.default=ie;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* SplitText 3.10.2 | ||
* SplitText 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(e){"use strict";var v=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function m(){return String.fromCharCode.apply(null,arguments)}function p(D){return F.getComputedStyle(D)}function s(D,u){var e;return d(D)?D:"string"==(e=typeof D)&&!u&&D?a.call(X.querySelectorAll(D),0):D&&"object"==e&&"length"in D?a.call(D,0):D?[D]:[]}function t(D){return"absolute"===D.position||!0===D.absolute}function u(D,u){for(var e,t=u.length;-1<--t;)if(e=u[t],D.substr(0,e.length)===e)return e.length}function w(D,u){void 0===D&&(D="");var e=~D.indexOf("++"),t=1;return e&&(D=D.split("++").join("")),function(){return"<"+u+" style='position:relative;display:inline-block;'"+(D?" class='"+D+(e?t++:"")+"'>":">")}}function x(D,u,e){var t=D.nodeType;if(1===t||9===t||11===t)for(D=D.firstChild;D;D=D.nextSibling)x(D,u,e);else 3!==t&&4!==t||(D.nodeValue=D.nodeValue.split(u).join(e))}function y(D,u){for(var e=u.length;-1<--e;)D.push(u[e])}function z(D,u,e){for(var t;D&&D!==u;){if(t=D._next||D.nextSibling)return t.textContent.charAt(0)===e;D=D.parentNode||D._parent}}function A(D){var u,e,t=s(D.childNodes),F=t.length;for(u=0;u<F;u++)(e=t[u])._isSplit?A(e):u&&e.previousSibling&&3===e.previousSibling.nodeType?(e.previousSibling.nodeValue+=3===e.nodeType?e.nodeValue:e.firstChild.nodeValue,D.removeChild(e)):3!==e.nodeType&&(D.insertBefore(e.firstChild,e),D.removeChild(e))}function B(D,u){return parseFloat(u[D])||0}function C(D,u,e,F,i,C,n){var s,E,r,o,l,d,a,h,f,c,g,m,v=p(D),w=B("paddingLeft",v),_=-999,S=B("borderBottomWidth",v)+B("borderTopWidth",v),b=B("borderLeftWidth",v)+B("borderRightWidth",v),T=B("paddingTop",v)+B("paddingBottom",v),N=B("paddingLeft",v)+B("paddingRight",v),L=B("fontSize",v)*(u.lineThreshold||.2),W=v.textAlign,O=[],H=[],j=[],k=u.wordDelimiter||" ",V=u.tag?u.tag:u.span?"span":"div",M=u.type||u.split||"chars,words,lines",R=i&&~M.indexOf("lines")?[]:null,P=~M.indexOf("words"),q=~M.indexOf("chars"),G=t(u),I=u.linesClass,J=~(I||"").indexOf("++"),K=[],Q="flex"===v.display,U=D.style.display;for(J&&(I=I.split("++").join("")),Q&&(D.style.display="block"),r=(E=D.getElementsByTagName("*")).length,l=[],s=0;s<r;s++)l[s]=E[s];if(R||G)for(s=0;s<r;s++)((d=(o=l[s]).parentNode===D)||G||q&&!P)&&(m=o.offsetTop,R&&d&&Math.abs(m-_)>L&&("BR"!==o.nodeName||0===s)&&(a=[],R.push(a),_=m),G&&(o._x=o.offsetLeft,o._y=m,o._w=o.offsetWidth,o._h=o.offsetHeight),R&&((o._isSplit&&d||!q&&d||P&&d||!P&&o.parentNode.parentNode===D&&!o.parentNode._isSplit)&&(a.push(o),o._x-=w,z(o,D,k)&&(o._wordEnd=!0)),"BR"===o.nodeName&&(o.nextSibling&&"BR"===o.nextSibling.nodeName||0===s)&&R.push([])));for(s=0;s<r;s++)if(d=(o=l[s]).parentNode===D,"BR"!==o.nodeName)if(G&&(f=o.style,P||d||(o._x+=o.parentNode._x,o._y+=o.parentNode._y),f.left=o._x+"px",f.top=o._y+"px",f.position="absolute",f.display="block",f.width=o._w+1+"px",f.height=o._h+"px"),!P&&q)if(o._isSplit)for(o._next=E=o.nextSibling,o.parentNode.appendChild(o);E&&3===E.nodeType&&" "===E.textContent;)o._next=E.nextSibling,o.parentNode.appendChild(E),E=E.nextSibling;else o.parentNode._isSplit?(o._parent=o.parentNode,!o.previousSibling&&o.firstChild&&(o.firstChild._isFirst=!0),o.nextSibling&&" "===o.nextSibling.textContent&&!o.nextSibling.nextSibling&&K.push(o.nextSibling),o._next=o.nextSibling&&o.nextSibling._isFirst?null:o.nextSibling,o.parentNode.removeChild(o),l.splice(s--,1),r--):d||(m=!o.nextSibling&&z(o.parentNode,D,k),o.parentNode._parent&&o.parentNode._parent.appendChild(o),m&&o.parentNode.appendChild(X.createTextNode(" ")),"span"===V&&(o.style.display="inline"),O.push(o));else o.parentNode._isSplit&&!o._isSplit&&""!==o.innerHTML?H.push(o):q&&!o._isSplit&&("span"===V&&(o.style.display="inline"),O.push(o));else R||G?(o.parentNode&&o.parentNode.removeChild(o),l.splice(s--,1),r--):P||D.appendChild(o);for(s=K.length;-1<--s;)K[s].parentNode.removeChild(K[s]);if(R){for(G&&(c=X.createElement(V),D.appendChild(c),g=c.offsetWidth+"px",m=c.offsetParent===D?0:D.offsetLeft,D.removeChild(c)),f=D.style.cssText,D.style.cssText="display:none;";D.firstChild;)D.removeChild(D.firstChild);for(h=" "===k&&(!G||!P&&!q),s=0;s<R.length;s++){for(a=R[s],(c=X.createElement(V)).style.cssText="display:block;text-align:"+W+";position:"+(G?"absolute;":"relative;"),I&&(c.className=I+(J?s+1:"")),j.push(c),r=a.length,E=0;E<r;E++)"BR"!==a[E].nodeName&&(o=a[E],c.appendChild(o),h&&o._wordEnd&&c.appendChild(X.createTextNode(" ")),G&&(0===E&&(c.style.top=o._y+"px",c.style.left=w+m+"px"),o.style.top="0px",m&&(o.style.left=o._x-m+"px")));0===r?c.innerHTML=" ":P||q||(A(c),x(c,String.fromCharCode(160)," ")),G&&(c.style.width=g,c.style.height=o._h+"px"),D.appendChild(c)}D.style.cssText=f}G&&(n>D.clientHeight&&(D.style.height=n-T+"px",D.clientHeight<n&&(D.style.height=n+S+"px")),C>D.clientWidth&&(D.style.width=C-N+"px",D.clientWidth<C&&(D.style.width=C+b+"px"))),Q&&(U?D.style.display=U:D.style.removeProperty("display")),y(e,O),P&&y(F,H),y(i,j)}function D(D,e,F,i){var C,n,s,E,r,o,l,d,a=e.tag?e.tag:e.span?"span":"div",p=~(e.type||e.split||"chars,words,lines").indexOf("chars"),h=t(e),f=e.wordDelimiter||" ",B=" "!==f?"":h?"­ ":" ",c="</"+a+">",A=1,g=e.specialChars?"function"==typeof e.specialChars?e.specialChars:u:null,m=X.createElement("div"),y=D.parentNode;for(y.insertBefore(m,D),m.textContent=D.nodeValue,y.removeChild(D),l=-1!==(C=function getText(D){var u=D.nodeType,e="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)e+=getText(D)}else if(3===u||4===u)return D.nodeValue;return e}(D=m)).indexOf("<"),!1!==e.reduceWhiteSpace&&(C=C.replace(S," ").replace(_,"")),l&&(C=C.split("<").join("{{LT}}")),r=C.length,n=(" "===C.charAt(0)?B:"")+F(),s=0;s<r;s++)if(o=C.charAt(s),g&&(d=g(C.substr(s),e.specialChars)))o=C.substr(s,d||1),n+=p&&" "!==o?i()+o+"</"+a+">":o,s+=d-1;else if(o===f&&C.charAt(s-1)!==f&&s){for(n+=A?c:"",A=0;C.charAt(s+1)===f;)n+=B,s++;s===r-1?n+=B:")"!==C.charAt(s+1)&&(n+=B+F(),A=1)}else"{"===o&&"{{LT}}"===C.substr(s,6)?(n+=p?i()+"{{LT}}</"+a+">":"{{LT}}",s+=5):55296<=o.charCodeAt(0)&&o.charCodeAt(0)<=56319||65024<=C.charCodeAt(s+1)&&C.charCodeAt(s+1)<=65039?(E=((C.substr(s,12).split(v)||[])[1]||"").length||2,n+=p&&" "!==o?i()+C.substr(s,E)+"</"+a+">":C.substr(s,E),s+=E-1):n+=p&&" "!==o?i()+o+"</"+a+">":o;D.outerHTML=n+(A?c:""),l&&x(y,"{{LT}}","<")}function E(u,e,F,i){var C,n,r=s(u.childNodes),o=r.length,l=t(e);if(3!==u.nodeType||1<o){for(e.absolute=!1,C=0;C<o;C++)(n=r[C])._next=n._isFirst=n._parent=n._wordEnd=null,3===n.nodeType&&!/\S+/.test(n.nodeValue)||(l&&3!==n.nodeType&&"inline"===p(n).display&&(n.style.display="inline-block",n.style.position="relative"),n._isSplit=!0,E(n,e,F,i));return e.absolute=l,void(u._isSplit=!0)}D(u,e,F,i)}var X,F,i,n,_=/(?:\r|\n|\t\t)/g,S=/(?:\s\s+)/g,r="SplitText",o=m(103,114,101,101,110,115,111,99,107,46,99,111,109),l=function(D){var u="undefined"!=typeof window,e=0===(u?window.location.href:"").indexOf(m(102,105,108,101,58,47,47))||-1!==D.indexOf(m(108,111,99,97,108,104,111,115,116))||-1!==D.indexOf(m(49,50,55,46,48,32,48,46,49)),t=[o,m(99,111,100,101,112,101,110,46,105,111),m(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),m(99,111,100,101,112,101,110,46,100,101,118),m(99,111,100,101,112,101,110,46,97,112,112),m(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),m(112,101,110,115,46,99,108,111,117,100),m(99,115,115,45,116,114,105,99,107,115,46,99,111,109),m(99,100,112,110,46,105,111),m(112,101,110,115,46,105,111),m(103,97,110,110,111,110,46,116,118),m(99,111,100,101,99,97,110,121,111,110,46,110,101,116),m(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),m(99,101,114,101,98,114,97,120,46,99,111,46,117,107),m(116,121,109,112,97,110,117,115,46,110,101,116),m(116,119,101,101,110,109,97,120,46,99,111,109),m(116,119,101,101,110,108,105,116,101,46,99,111,109),m(112,108,110,107,114,46,99,111),m(104,111,116,106,97,114,46,99,111,109),m(119,101,98,112,97,99,107,98,105,110,46,99,111,109),m(97,114,99,104,105,118,101,46,111,114,103),m(99,111,100,101,115,97,110,100,98,111,120,46,105,111),m(99,115,98,46,97,112,112),m(115,116,97,99,107,98,108,105,116,122,46,99,111,109),m(115,116,97,99,107,98,108,105,116,122,46,105,111),m(99,111,100,105,101,114,46,105,111),m(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),m(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),m(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),m(106,115,102,105,100,100,108,101,46,110,101,116)],F=t.length;for(setTimeout(function checkWarn(){u&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),u&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(m(37,99,87,97,114,110,105,110,103),m(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(m(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+r+m(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(m(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),m(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--F;)if(-1!==D.indexOf(t[F]))return!0;return e||!setTimeout(function(){u&&(window.location.href=m(104,116,116,112,115,58,47,47)+o+m(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+r+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),d=Array.isArray,a=[].slice,h=((n=SplitText.prototype).split=function split(D){this.isSplit&&this.revert(),this.vars=D=D||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var u,e,t,F=this.elements.length,i=D.tag?D.tag:D.span?"span":"div",n=w(D.wordsClass,i),s=w(D.charsClass,i);-1<--F;)t=this.elements[F],this._originals[F]=t.innerHTML,u=t.clientHeight,e=t.clientWidth,E(t,D,n,s),C(t,D,this.chars,this.words,this.lines,e,u);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},n.revert=function revert(){var e=this._originals;if(!e)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(D,u){return D.innerHTML=e[u]}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},SplitText.create=function create(D,u){return new SplitText(D,u)},SplitText);function SplitText(D,u){i||function _initCore(){X=document,F=window,i=1}(),this.elements=s(D),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=u||{},l&&this.split(u)}h.version="3.10.2",e.SplitText=h,e.default=h;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(e){"use strict";var v=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function m(){return String.fromCharCode.apply(null,arguments)}function p(D){return F.getComputedStyle(D)}function s(D,u){var e;return d(D)?D:"string"==(e=typeof D)&&!u&&D?a.call(X.querySelectorAll(D),0):D&&"object"==e&&"length"in D?a.call(D,0):D?[D]:[]}function t(D){return"absolute"===D.position||!0===D.absolute}function u(D,u){for(var e,t=u.length;-1<--t;)if(e=u[t],D.substr(0,e.length)===e)return e.length}function w(D,u){void 0===D&&(D="");var e=~D.indexOf("++"),t=1;return e&&(D=D.split("++").join("")),function(){return"<"+u+" style='position:relative;display:inline-block;'"+(D?" class='"+D+(e?t++:"")+"'>":">")}}function x(D,u,e){var t=D.nodeType;if(1===t||9===t||11===t)for(D=D.firstChild;D;D=D.nextSibling)x(D,u,e);else 3!==t&&4!==t||(D.nodeValue=D.nodeValue.split(u).join(e))}function y(D,u){for(var e=u.length;-1<--e;)D.push(u[e])}function z(D,u,e){for(var t;D&&D!==u;){if(t=D._next||D.nextSibling)return t.textContent.charAt(0)===e;D=D.parentNode||D._parent}}function A(D){var u,e,t=s(D.childNodes),F=t.length;for(u=0;u<F;u++)(e=t[u])._isSplit?A(e):u&&e.previousSibling&&3===e.previousSibling.nodeType?(e.previousSibling.nodeValue+=3===e.nodeType?e.nodeValue:e.firstChild.nodeValue,D.removeChild(e)):3!==e.nodeType&&(D.insertBefore(e.firstChild,e),D.removeChild(e))}function B(D,u){return parseFloat(u[D])||0}function C(D,u,e,F,i,C,n){var s,E,r,o,l,d,a,h,f,c,g,m,v=p(D),w=B("paddingLeft",v),_=-999,S=B("borderBottomWidth",v)+B("borderTopWidth",v),b=B("borderLeftWidth",v)+B("borderRightWidth",v),T=B("paddingTop",v)+B("paddingBottom",v),N=B("paddingLeft",v)+B("paddingRight",v),L=B("fontSize",v)*(u.lineThreshold||.2),W=v.textAlign,O=[],H=[],j=[],k=u.wordDelimiter||" ",V=u.tag?u.tag:u.span?"span":"div",M=u.type||u.split||"chars,words,lines",R=i&&~M.indexOf("lines")?[]:null,P=~M.indexOf("words"),q=~M.indexOf("chars"),G=t(u),I=u.linesClass,J=~(I||"").indexOf("++"),K=[],Q="flex"===v.display,U=D.style.display;for(J&&(I=I.split("++").join("")),Q&&(D.style.display="block"),r=(E=D.getElementsByTagName("*")).length,l=[],s=0;s<r;s++)l[s]=E[s];if(R||G)for(s=0;s<r;s++)((d=(o=l[s]).parentNode===D)||G||q&&!P)&&(m=o.offsetTop,R&&d&&Math.abs(m-_)>L&&("BR"!==o.nodeName||0===s)&&(a=[],R.push(a),_=m),G&&(o._x=o.offsetLeft,o._y=m,o._w=o.offsetWidth,o._h=o.offsetHeight),R&&((o._isSplit&&d||!q&&d||P&&d||!P&&o.parentNode.parentNode===D&&!o.parentNode._isSplit)&&(a.push(o),o._x-=w,z(o,D,k)&&(o._wordEnd=!0)),"BR"===o.nodeName&&(o.nextSibling&&"BR"===o.nextSibling.nodeName||0===s)&&R.push([])));for(s=0;s<r;s++)if(d=(o=l[s]).parentNode===D,"BR"!==o.nodeName)if(G&&(f=o.style,P||d||(o._x+=o.parentNode._x,o._y+=o.parentNode._y),f.left=o._x+"px",f.top=o._y+"px",f.position="absolute",f.display="block",f.width=o._w+1+"px",f.height=o._h+"px"),!P&&q)if(o._isSplit)for(o._next=E=o.nextSibling,o.parentNode.appendChild(o);E&&3===E.nodeType&&" "===E.textContent;)o._next=E.nextSibling,o.parentNode.appendChild(E),E=E.nextSibling;else o.parentNode._isSplit?(o._parent=o.parentNode,!o.previousSibling&&o.firstChild&&(o.firstChild._isFirst=!0),o.nextSibling&&" "===o.nextSibling.textContent&&!o.nextSibling.nextSibling&&K.push(o.nextSibling),o._next=o.nextSibling&&o.nextSibling._isFirst?null:o.nextSibling,o.parentNode.removeChild(o),l.splice(s--,1),r--):d||(m=!o.nextSibling&&z(o.parentNode,D,k),o.parentNode._parent&&o.parentNode._parent.appendChild(o),m&&o.parentNode.appendChild(X.createTextNode(" ")),"span"===V&&(o.style.display="inline"),O.push(o));else o.parentNode._isSplit&&!o._isSplit&&""!==o.innerHTML?H.push(o):q&&!o._isSplit&&("span"===V&&(o.style.display="inline"),O.push(o));else R||G?(o.parentNode&&o.parentNode.removeChild(o),l.splice(s--,1),r--):P||D.appendChild(o);for(s=K.length;-1<--s;)K[s].parentNode.removeChild(K[s]);if(R){for(G&&(c=X.createElement(V),D.appendChild(c),g=c.offsetWidth+"px",m=c.offsetParent===D?0:D.offsetLeft,D.removeChild(c)),f=D.style.cssText,D.style.cssText="display:none;";D.firstChild;)D.removeChild(D.firstChild);for(h=" "===k&&(!G||!P&&!q),s=0;s<R.length;s++){for(a=R[s],(c=X.createElement(V)).style.cssText="display:block;text-align:"+W+";position:"+(G?"absolute;":"relative;"),I&&(c.className=I+(J?s+1:"")),j.push(c),r=a.length,E=0;E<r;E++)"BR"!==a[E].nodeName&&(o=a[E],c.appendChild(o),h&&o._wordEnd&&c.appendChild(X.createTextNode(" ")),G&&(0===E&&(c.style.top=o._y+"px",c.style.left=w+m+"px"),o.style.top="0px",m&&(o.style.left=o._x-m+"px")));0===r?c.innerHTML=" ":P||q||(A(c),x(c,String.fromCharCode(160)," ")),G&&(c.style.width=g,c.style.height=o._h+"px"),D.appendChild(c)}D.style.cssText=f}G&&(n>D.clientHeight&&(D.style.height=n-T+"px",D.clientHeight<n&&(D.style.height=n+S+"px")),C>D.clientWidth&&(D.style.width=C-N+"px",D.clientWidth<C&&(D.style.width=C+b+"px"))),Q&&(U?D.style.display=U:D.style.removeProperty("display")),y(e,O),P&&y(F,H),y(i,j)}function D(D,e,F,i){var C,n,s,E,r,o,l,d,a=e.tag?e.tag:e.span?"span":"div",p=~(e.type||e.split||"chars,words,lines").indexOf("chars"),h=t(e),f=e.wordDelimiter||" ",B=" "!==f?"":h?"­ ":" ",c="</"+a+">",A=1,g=e.specialChars?"function"==typeof e.specialChars?e.specialChars:u:null,m=X.createElement("div"),y=D.parentNode;for(y.insertBefore(m,D),m.textContent=D.nodeValue,y.removeChild(D),l=-1!==(C=function getText(D){var u=D.nodeType,e="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)e+=getText(D)}else if(3===u||4===u)return D.nodeValue;return e}(D=m)).indexOf("<"),!1!==e.reduceWhiteSpace&&(C=C.replace(S," ").replace(_,"")),l&&(C=C.split("<").join("{{LT}}")),r=C.length,n=(" "===C.charAt(0)?B:"")+F(),s=0;s<r;s++)if(o=C.charAt(s),g&&(d=g(C.substr(s),e.specialChars)))o=C.substr(s,d||1),n+=p&&" "!==o?i()+o+"</"+a+">":o,s+=d-1;else if(o===f&&C.charAt(s-1)!==f&&s){for(n+=A?c:"",A=0;C.charAt(s+1)===f;)n+=B,s++;s===r-1?n+=B:")"!==C.charAt(s+1)&&(n+=B+F(),A=1)}else"{"===o&&"{{LT}}"===C.substr(s,6)?(n+=p?i()+"{{LT}}</"+a+">":"{{LT}}",s+=5):55296<=o.charCodeAt(0)&&o.charCodeAt(0)<=56319||65024<=C.charCodeAt(s+1)&&C.charCodeAt(s+1)<=65039?(E=((C.substr(s,12).split(v)||[])[1]||"").length||2,n+=p&&" "!==o?i()+C.substr(s,E)+"</"+a+">":C.substr(s,E),s+=E-1):n+=p&&" "!==o?i()+o+"</"+a+">":o;D.outerHTML=n+(A?c:""),l&&x(y,"{{LT}}","<")}function E(u,e,F,i){var C,n,r=s(u.childNodes),o=r.length,l=t(e);if(3!==u.nodeType||1<o){for(e.absolute=!1,C=0;C<o;C++)(n=r[C])._next=n._isFirst=n._parent=n._wordEnd=null,3===n.nodeType&&!/\S+/.test(n.nodeValue)||(l&&3!==n.nodeType&&"inline"===p(n).display&&(n.style.display="inline-block",n.style.position="relative"),n._isSplit=!0,E(n,e,F,i));return e.absolute=l,void(u._isSplit=!0)}D(u,e,F,i)}var X,F,i,n,_=/(?:\r|\n|\t\t)/g,S=/(?:\s\s+)/g,r="SplitText",o=m(103,114,101,101,110,115,111,99,107,46,99,111,109),l=function(D){var u="undefined"!=typeof window,e=0===(u?window.location.href:"").indexOf(m(102,105,108,101,58,47,47))||-1!==D.indexOf(m(108,111,99,97,108,104,111,115,116))||-1!==D.indexOf(m(49,50,55,46,48,32,48,46,49)),t=[o,m(99,111,100,101,112,101,110,46,105,111),m(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),m(99,111,100,101,112,101,110,46,100,101,118),m(99,111,100,101,112,101,110,46,97,112,112),m(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),m(112,101,110,115,46,99,108,111,117,100),m(99,115,115,45,116,114,105,99,107,115,46,99,111,109),m(99,100,112,110,46,105,111),m(112,101,110,115,46,105,111),m(103,97,110,110,111,110,46,116,118),m(99,111,100,101,99,97,110,121,111,110,46,110,101,116),m(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),m(99,101,114,101,98,114,97,120,46,99,111,46,117,107),m(116,121,109,112,97,110,117,115,46,110,101,116),m(116,119,101,101,110,109,97,120,46,99,111,109),m(116,119,101,101,110,108,105,116,101,46,99,111,109),m(112,108,110,107,114,46,99,111),m(104,111,116,106,97,114,46,99,111,109),m(119,101,98,112,97,99,107,98,105,110,46,99,111,109),m(97,114,99,104,105,118,101,46,111,114,103),m(99,111,100,101,115,97,110,100,98,111,120,46,105,111),m(99,115,98,46,97,112,112),m(115,116,97,99,107,98,108,105,116,122,46,99,111,109),m(115,116,97,99,107,98,108,105,116,122,46,105,111),m(99,111,100,105,101,114,46,105,111),m(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),m(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),m(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),m(106,115,102,105,100,100,108,101,46,110,101,116)],F=t.length;for(setTimeout(function checkWarn(){u&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",checkWarn):(document.removeEventListener("readystatechange",checkWarn),u&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(m(37,99,87,97,114,110,105,110,103),m(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(m(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+r+m(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(m(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),m(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},50);-1<--F;)if(-1!==D.indexOf(t[F]))return!0;return e||!setTimeout(function(){u&&(window.location.href=m(104,116,116,112,115,58,47,47)+o+m(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+r+"&source=trial")},3e3)}("undefined"!=typeof window?window.location.host:""),d=Array.isArray,a=[].slice,h=((n=SplitText.prototype).split=function split(D){this.isSplit&&this.revert(),this.vars=D=D||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var u,e,t,F=this.elements.length,i=D.tag?D.tag:D.span?"span":"div",n=w(D.wordsClass,i),s=w(D.charsClass,i);-1<--F;)t=this.elements[F],this._originals[F]=t.innerHTML,u=t.clientHeight,e=t.clientWidth,E(t,D,n,s),C(t,D,this.chars,this.words,this.lines,e,u);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},n.revert=function revert(){var e=this._originals;if(!e)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(D,u){return D.innerHTML=e[u]}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},SplitText.create=function create(D,u){return new SplitText(D,u)},SplitText);function SplitText(D,u){i||function _initCore(){X=document,F=window,i=1}(),this.elements=s(D),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=u||{},l&&this.split(u)}h.version="3.10.3",e.SplitText=h,e.default=h;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); |
/*! | ||
* TextPlugin 3.10.2 | ||
* TextPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var i=/(^\s+|\s+$)/g,A=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function splitInnerHTML(D,u,F,C){for(var E,e=D.firstChild,t=[];e;)3===e.nodeType?(E=(e.nodeValue+"").replace(/^\n+/g,""),C||(E=E.replace(/\s+/g," ")),t.push.apply(t,emojiSafeSplit(E,u,F,C))):"br"===(e.nodeName+"").toLowerCase()?t[t.length-1]+="<br>":t.push(e.outerHTML),e=e.nextSibling;for(E=t.length;E--;)"&"===t[E]&&t.splice(E,1,"&");return t}function emojiSafeSplit(D,u,F,C){if(D+="",F&&(D=D.replace(i,"")),u&&""!==u)return D.replace(/>/g,">").replace(/</g,"<").split(u);for(var E,e,t=[],n=D.length,B=0;B<n;B++)(55296<=(e=D.charAt(B)).charCodeAt(0)&&e.charCodeAt(0)<=56319||65024<=D.charCodeAt(B+1)&&D.charCodeAt(B+1)<=65039)&&(E=((D.substr(B,12).split(A)||[])[1]||"").length||2,e=D.substr(B,E),B+=E-(t.emoji=1)),t.push(">"===e?">":"<"===e?"<":!C||" "!==e||" "!==D.charAt(B-1)&&" "!==D.charAt(B+1)?e:" ");return t}var u,g,F={version:"3.10.2",name:"text",init:function init(D,u,F){"object"!=typeof u&&(u={value:u});var C,E,e,t,n,B,i,A,r=D.nodeName.toUpperCase(),s=this,l=u.newClass,o=u.oldClass,a=u.preserveSpaces,p=u.rtl,f=s.delimiter=u.delimiter||"",d=s.fillChar=u.fillChar||(u.padSpace?" ":"");if(s.svg=D.getBBox&&("TEXT"===r||"TSPAN"===r),!("innerHTML"in D||s.svg))return!1;if(s.target=D,"value"in u){for(e=splitInnerHTML(D,f,!1,a),(g=g||document.createElement("div")).innerHTML=u.value,E=splitInnerHTML(g,f),s.from=F._from,!s.from&&!p||p&&s.from||(r=e,e=E,E=r),s.hasClass=!(!l&&!o),s.newClass=p?o:l,s.oldClass=p?l:o,C=(r=e.length-E.length)<0?e:E,r<0&&(r=-r);-1<--r;)C.push(d);if("diff"===u.type){for(n=[],B=[],i="",r=t=0;r<E.length;r++)(A=E[r])===e[r]?i+=A:(n[t]=i+A,B[t++]=i+e[r],i="");E=n,e=B,i&&(E.push(i),e.push(i))}u.speed&&F.duration(Math.min(.05/u.speed*C.length,u.maxDuration||9999)),s.rtl=p,s.original=e,s.text=E,s._props.push("text")}else s.text=s.original=[""]},render:function render(D,u){1<D?D=1:D<0&&(D=0),u.from&&(D=1-D);var F,C,E,e=u.text,t=u.hasClass,n=u.newClass,B=u.oldClass,i=u.delimiter,A=u.target,r=u.fillChar,s=u.original,l=u.rtl,o=e.length,a=(l?1-D:D)*o+.5|0;E=t&&D?(C=B&&a!==o,((F=n&&a)?"<span class='"+n+"'>":"")+e.slice(0,a).join(i)+(F?"</span>":"")+(C?"<span class='"+B+"'>":"")+i+s.slice(a).join(i)+(C?"</span>":"")):e.slice(0,a).join(i)+i+s.slice(a).join(i),u.svg?A.textContent=E:A.innerHTML=" "===r&&~E.indexOf(" ")?E.split(" ").join(" "):E}};F.splitInnerHTML=splitInnerHTML,F.emojiSafeSplit=emojiSafeSplit,F.getText=function getText(D){var u=D.nodeType,F="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F},function _getGSAP(){return u||"undefined"!=typeof window&&(u=window.gsap)&&u.registerPlugin&&u}()&&u.registerPlugin(F),D.TextPlugin=F,D.default=F;if (typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})} else {delete D.default}}); | ||
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var i=/(^\s+|\s+$)/g,A=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function splitInnerHTML(D,u,F,C){for(var E,e=D.firstChild,t=[];e;)3===e.nodeType?(E=(e.nodeValue+"").replace(/^\n+/g,""),C||(E=E.replace(/\s+/g," ")),t.push.apply(t,emojiSafeSplit(E,u,F,C))):"br"===(e.nodeName+"").toLowerCase()?t[t.length-1]+="<br>":t.push(e.outerHTML),e=e.nextSibling;for(E=t.length;E--;)"&"===t[E]&&t.splice(E,1,"&");return t}function emojiSafeSplit(D,u,F,C){if(D+="",F&&(D=D.replace(i,"")),u&&""!==u)return D.replace(/>/g,">").replace(/</g,"<").split(u);for(var E,e,t=[],n=D.length,B=0;B<n;B++)(55296<=(e=D.charAt(B)).charCodeAt(0)&&e.charCodeAt(0)<=56319||65024<=D.charCodeAt(B+1)&&D.charCodeAt(B+1)<=65039)&&(E=((D.substr(B,12).split(A)||[])[1]||"").length||2,e=D.substr(B,E),B+=E-(t.emoji=1)),t.push(">"===e?">":"<"===e?"<":!C||" "!==e||" "!==D.charAt(B-1)&&" "!==D.charAt(B+1)?e:" ");return t}var u,g,F={version:"3.10.3",name:"text",init:function init(D,u,F){"object"!=typeof u&&(u={value:u});var C,E,e,t,n,B,i,A,r=D.nodeName.toUpperCase(),s=this,l=u.newClass,o=u.oldClass,a=u.preserveSpaces,p=u.rtl,f=s.delimiter=u.delimiter||"",d=s.fillChar=u.fillChar||(u.padSpace?" ":"");if(s.svg=D.getBBox&&("TEXT"===r||"TSPAN"===r),!("innerHTML"in D||s.svg))return!1;if(s.target=D,"value"in u){for(e=splitInnerHTML(D,f,!1,a),(g=g||document.createElement("div")).innerHTML=u.value,E=splitInnerHTML(g,f),s.from=F._from,!s.from&&!p||p&&s.from||(r=e,e=E,E=r),s.hasClass=!(!l&&!o),s.newClass=p?o:l,s.oldClass=p?l:o,C=(r=e.length-E.length)<0?e:E,r<0&&(r=-r);-1<--r;)C.push(d);if("diff"===u.type){for(n=[],B=[],i="",r=t=0;r<E.length;r++)(A=E[r])===e[r]?i+=A:(n[t]=i+A,B[t++]=i+e[r],i="");E=n,e=B,i&&(E.push(i),e.push(i))}u.speed&&F.duration(Math.min(.05/u.speed*C.length,u.maxDuration||9999)),s.rtl=p,s.original=e,s.text=E,s._props.push("text")}else s.text=s.original=[""]},render:function render(D,u){1<D?D=1:D<0&&(D=0),u.from&&(D=1-D);var F,C,E,e=u.text,t=u.hasClass,n=u.newClass,B=u.oldClass,i=u.delimiter,A=u.target,r=u.fillChar,s=u.original,l=u.rtl,o=e.length,a=(l?1-D:D)*o+.5|0;E=t&&D?(C=B&&a!==o,((F=n&&a)?"<span class='"+n+"'>":"")+e.slice(0,a).join(i)+(F?"</span>":"")+(C?"<span class='"+B+"'>":"")+i+s.slice(a).join(i)+(C?"</span>":"")):e.slice(0,a).join(i)+i+s.slice(a).join(i),u.svg?A.textContent=E:A.innerHTML=" "===r&&~E.indexOf(" ")?E.split(" ").join(" "):E}};F.splitInnerHTML=splitInnerHTML,F.emojiSafeSplit=emojiSafeSplit,F.getText=function getText(D){var u=D.nodeType,F="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)F+=getText(D)}else if(3===u||4===u)return D.nodeValue;return F},function _getGSAP(){return u||"undefined"!=typeof window&&(u=window.gsap)&&u.registerPlugin&&u}()&&u.registerPlugin(F),D.TextPlugin=F,D.default=F;if (typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})} else {delete D.default}}); |
/*! | ||
* Draggable 3.10.2 | ||
* Draggable 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
let e,t,o,n,r,l,i,a,s,c="transform",d=c+"Origin",p=r=>{let l=r.ownerDocument||r;!(c in r.style)&&"msTransform"in r.style&&(c="msTransform",d=c+"Origin");for(;l.parentNode&&(l=l.parentNode););if(t=window,i=new v,l){e=l,o=l.documentElement,n=l.body,a=e.createElementNS("http://www.w3.org/2000/svg","g"),a.style.transform="none";let t=l.createElement("div"),r=l.createElement("div");n.appendChild(t),t.appendChild(r),t.style.position="static",t.style[c]="translate3d(0,0,1px)",s=r.offsetParent!==t,n.removeChild(t)}return l},h=[],g=[],u=e=>e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null),f=e=>"fixed"===t.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?f(e):void 0),x=(t,o)=>{if(t.parentNode&&(e||p(t))){let n=u(t),i=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?o?"rect":"g":"div",s=2!==o?0:100,c=3===o?100:0,d="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",p=e.createElementNS?e.createElementNS(i.replace(/^https/,"http"),a):e.createElement(a);return o&&(n?(l||(l=x(t)),p.setAttribute("width",.01),p.setAttribute("height",.01),p.setAttribute("transform","translate("+s+","+c+")"),l.appendChild(p)):(r||(r=x(t),r.style.cssText=d),p.style.cssText=d+"width:0.1px;height:0.1px;top:"+c+"px;left:"+s+"px",r.appendChild(p))),p}throw"Need document and parent."},m=(e,o)=>{let n,p,f,m,y,w,b=u(e),T=e===b,E=b?h:g,M=e.parentNode;if(e===t)return e;if(E.length||E.push(x(e,1),x(e,2),x(e,3)),n=b?l:r,b)T?(f=(e=>{let t,o=e.getCTM();return o||(t=e.style[c],e.style[c]="none",e.appendChild(a),o=a.getCTM(),e.removeChild(a),t?e.style[c]=t:e.style.removeProperty(c.replace(/([A-Z])/g,"-$1").toLowerCase())),o||i.clone()})(e),m=-f.e/f.a,y=-f.f/f.d,p=i):(f=e.getBBox(),p=e.transform?e.transform.baseVal:{},p=p.numberOfItems?p.numberOfItems>1?(e=>{let t=new v,o=0;for(;o<e.numberOfItems;o++)t.multiply(e.getItem(o).matrix);return t})(p):p.getItem(0).matrix:i,m=p.a*f.x+p.c*f.y,y=p.b*f.x+p.d*f.y),o&&"g"===e.tagName.toLowerCase()&&(m=y=0),(T?b:M).appendChild(n),n.setAttribute("transform","matrix("+p.a+","+p.b+","+p.c+","+p.d+","+(p.e+m)+","+(p.f+y)+")");else{if(m=y=0,s)for(p=e.offsetParent,f=e;f&&(f=f.parentNode)&&f!==p&&f.parentNode;)(t.getComputedStyle(f)[c]+"").length>4&&(m=f.offsetLeft,y=f.offsetTop,f=0);if(w=t.getComputedStyle(e),"absolute"!==w.position&&"fixed"!==w.position)for(p=e.offsetParent;M&&M!==p;)m+=M.scrollLeft||0,y+=M.scrollTop||0,M=M.parentNode;f=n.style,f.top=e.offsetTop-y+"px",f.left=e.offsetLeft-m+"px",f[c]=w[c],f[d]=w[d],f.position="fixed"===w.position?"fixed":"absolute",e.parentNode.appendChild(n)}return n},y=(e,t,o,n,r,l,i)=>(e.a=t,e.b=o,e.c=n,e.d=r,e.e=l,e.f=i,e);class v{constructor(e=1,t=0,o=0,n=1,r=0,l=0){y(this,e,t,o,n,r,l)}inverse(){let{a:e,b:t,c:o,d:n,e:r,f:l}=this,i=e*n-t*o||1e-10;return y(this,n/i,-t/i,-o/i,e/i,(o*l-n*r)/i,-(e*l-t*r)/i)}multiply(e){let{a:t,b:o,c:n,d:r,e:l,f:i}=this,a=e.a,s=e.c,c=e.b,d=e.d,p=e.e,h=e.f;return y(this,a*t+c*n,a*o+c*r,s*t+d*n,s*o+d*r,l+p*t+h*n,i+p*o+h*r)}clone(){return new v(this.a,this.b,this.c,this.d,this.e,this.f)}equals(e){let{a:t,b:o,c:n,d:r,e:l,f:i}=this;return t===e.a&&o===e.b&&n===e.c&&r===e.d&&l===e.e&&i===e.f}apply(e,t={}){let{x:o,y:n}=e,{a:r,b:l,c:i,d:a,e:s,f:c}=this;return t.x=o*r+n*i+s||0,t.y=o*l+n*a+c||0,t}}function w(r,l,i,a){if(!r||!r.parentNode||(e||p(r)).documentElement===r)return new v;let s=(e=>{let t,o;for(;e&&e!==n;)o=e._gsap,o&&o.uncache&&o.get(e,"x"),o&&!o.scaleX&&!o.scaleY&&o.renderTransform&&(o.scaleX=o.scaleY=1e-4,o.renderTransform(1,o),t?t.push(o):t=[o]),e=e.parentNode;return t})(r),c=u(r)?h:g,d=m(r,i),x=c[0].getBoundingClientRect(),y=c[1].getBoundingClientRect(),w=c[2].getBoundingClientRect(),b=d.parentNode,T=!a&&f(r),E=new v((y.left-x.left)/100,(y.top-x.top)/100,(w.left-x.left)/100,(w.top-x.top)/100,x.left+(T?0:t.pageXOffset||e.scrollLeft||o.scrollLeft||n.scrollLeft||0),x.top+(T?0:t.pageYOffset||e.scrollTop||o.scrollTop||n.scrollTop||0));if(b.removeChild(d),s)for(x=s.length;x--;)y=s[x],y.scaleX=y.scaleY=0,y.renderTransform(1,y);return l?E.inverse():E}let b,T,E,M,X,S,Y,D,L,k,C,N,P,O,R,_,A,B,I,H,F,W=()=>"undefined"!=typeof window,z=()=>b||W()&&(b=window.gsap)&&b.registerPlugin&&b,V=e=>"function"==typeof e,K=e=>"object"==typeof e,G=e=>void 0===e,U=()=>!1,q="transform",$="transformOrigin",j=e=>Math.round(1e4*e)/1e4,Z=Array.isArray,J=(e,t)=>{let o=E.createElementNS?E.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):E.createElement(e);return o.style?o:E.createElement(e)},Q=180/Math.PI,ee=1e20,te=new v,oe=Date.now||(()=>(new Date).getTime()),ne=[],re={},le=0,ie=/^(?:a|input|textarea|button|select)$/i,ae=0,se={},ce={},de=(e,t)=>{let o,n={};for(o in e)n[o]=t?e[o]*t:e[o];return n},pe=(e,t)=>{let o,n=e.length;for(;n--;)t?e[n].style.touchAction=t:e[n].style.removeProperty("touch-action"),o=e[n].children,o&&o.length&&pe(o,t)},he=()=>ne.forEach(e=>e()),ge=()=>!ne.length&&b.ticker.remove(he),ue=e=>{let t=ne.length;for(;t--;)ne[t]===e&&ne.splice(t,1);b.to(ge,{overwrite:!0,delay:15,duration:0,onComplete:ge,data:"_draggable"})},fe=(e,t,o,n)=>{if(e.addEventListener){let r=P[t];n=n||(C?{passive:!1}:null),e.addEventListener(r||t,o,n),r&&t!==r&&e.addEventListener(t,o,n)}},xe=(e,t,o)=>{if(e.removeEventListener){let n=P[t];e.removeEventListener(n||t,o),n&&t!==n&&e.removeEventListener(t,o)}},me=e=>{e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()},ye=e=>{R=e.touches&&O<e.touches.length,xe(e.target,"touchend",ye)},ve=e=>{R=e.touches&&O<e.touches.length,fe(e.target,"touchend",ye)},we=e=>T.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0,be=e=>T.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0,Te=(e,t)=>{fe(e,"scroll",t),Me(e.parentNode)||Te(e.parentNode,t)},Ee=(e,t)=>{xe(e,"scroll",t),Me(e.parentNode)||Ee(e.parentNode,t)},Me=e=>!(e&&e!==M&&9!==e.nodeType&&e!==E.body&&e!==T&&e.nodeType&&e.parentNode),Xe=(e,t)=>{let o="x"===t?"Width":"Height",n="scroll"+o,r="client"+o;return Math.max(0,Me(e)?Math.max(M[n],X[n])-(T["inner"+o]||M[r]||X[r]):e[n]-e[r])},Se=(e,t)=>{let o=Xe(e,"x"),n=Xe(e,"y");Me(e)?e=ce:Se(e.parentNode,t),e._gsMaxScrollX=o,e._gsMaxScrollY=n,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)},Ye=(e,t,o)=>{let n=e.style;n&&(G(n[t])&&(t=L(t,e)||t),null==o?n.removeProperty&&n.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):n[t]=o)},De=e=>T.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e),Le={},ke=e=>{if(e===T)return Le.left=Le.top=0,Le.width=Le.right=M.clientWidth||e.innerWidth||X.clientWidth||0,Le.height=Le.bottom=(e.innerHeight||0)-20<M.clientHeight?M.clientHeight:e.innerHeight||X.clientHeight||0,Le;let t=e.ownerDocument||E,o=G(e.pageX)?e.nodeType||G(e.left)||G(e.top)?k(e)[0].getBoundingClientRect():e:{left:e.pageX-be(t),top:e.pageY-we(t),right:e.pageX-be(t)+1,bottom:e.pageY-we(t)+1};return G(o.right)&&!G(o.width)?(o.right=o.left+o.width,o.bottom=o.top+o.height):G(o.width)&&(o={width:o.right-o.left,height:o.bottom-o.top,right:o.right,left:o.left,bottom:o.bottom,top:o.top}),o},Ce=(e,t,o)=>{let n,r=e.vars,l=r[o],i=e._listeners[t];return V(l)&&(n=l.apply(r.callbackScope||e,r[o+"Params"]||[e.pointerEvent])),i&&!1===e.dispatchEvent(t)&&(n=!1),n},Ne=(e,t)=>{let o,n,r,l=k(e)[0];return l.nodeType||l===T?Oe(l,t):G(e.left)?(n=e.min||e.minX||e.minRotation||0,o=e.min||e.minY||0,{left:n,top:o,width:(e.max||e.maxX||e.maxRotation||0)-n,height:(e.max||e.maxY||0)-o}):(r={x:0,y:0},{left:e.left-r.x,top:e.top-r.y,width:e.width,height:e.height})},Pe={},Oe=(e,t)=>{t=k(t)[0];let o,n,r,l,i,a,s,c,d,p,h,g,u,f,x=e.getBBox&&e.ownerSVGElement,m=e.ownerDocument||E;if(e===T)r=we(m),o=be(m),n=o+(m.documentElement.clientWidth||e.innerWidth||m.body.clientWidth||0),l=r+((e.innerHeight||0)-20<m.documentElement.clientHeight?m.documentElement.clientHeight:e.innerHeight||m.body.clientHeight||0);else{if(t===T||G(t))return e.getBoundingClientRect();o=r=0,x?(p=e.getBBox(),h=p.width,g=p.height):(e.viewBox&&(p=e.viewBox.baseVal)&&(o=p.x||0,r=p.y||0,h=p.width,g=p.height),h||(u=De(e),p="border-box"===u.boxSizing,h=(parseFloat(u.width)||e.clientWidth||0)+(p?0:parseFloat(u.borderLeftWidth)+parseFloat(u.borderRightWidth)),g=(parseFloat(u.height)||e.clientHeight||0)+(p?0:parseFloat(u.borderTopWidth)+parseFloat(u.borderBottomWidth)))),n=h,l=g}return e===t?{left:o,top:r,width:n-o,height:l-r}:(i=w(t,!0).multiply(w(e)),a=i.apply({x:o,y:r}),s=i.apply({x:n,y:r}),c=i.apply({x:n,y:l}),d=i.apply({x:o,y:l}),o=Math.min(a.x,s.x,c.x,d.x),r=Math.min(a.y,s.y,c.y,d.y),f=t.parentNode||{},{left:o+(f.scrollLeft||0),top:r+(f.scrollTop||0),width:Math.max(a.x,s.x,c.x,d.x)-o,height:Math.max(a.y,s.y,c.y,d.y)-r})},Re=(e,t,o,n,r,l)=>{let i,a,s,c={};if(t)if(1!==r&&t instanceof Array){if(c.end=i=[],s=t.length,K(t[0]))for(a=0;a<s;a++)i[a]=de(t[a],r);else for(a=0;a<s;a++)i[a]=t[a]*r;o+=1.1,n-=1.1}else V(t)?c.end=o=>{let n,l,i=t.call(e,o);if(1!==r)if(K(i)){for(l in n={},i)n[l]=i[l]*r;i=n}else i*=r;return i}:c.end=t;return(o||0===o)&&(c.max=o),(n||0===n)&&(c.min=n),l&&(c.velocity=0),c},_e=e=>{let t;return!(!e||!e.getAttribute||e===X)&&(!("true"!==(t=e.getAttribute("data-clickable"))&&("false"===t||!e.onclick&&!ie.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||_e(e.parentNode))},Ae=(e,t)=>{let o,n=e.length;for(;n--;)o=e[n],o.ondragstart=o.onselectstart=t?null:U,b.set(o,{lazy:!0,userSelect:t?"text":"none"})},Be=e=>"fixed"===De(e).position||((e=e.parentNode)&&1===e.nodeType?Be(e):void 0),Ie=function(e,t){e=b.utils.toArray(e)[0],t=t||{};let o,n,r,l,i,a,s=document.createElement("div"),c=s.style,d=e.firstChild,p=0,h=0,g=e.scrollTop,u=e.scrollLeft,f=e.scrollWidth,x=e.scrollHeight,m=0,y=0,v=0;H&&!1!==t.force3D?(i="translate3d(",a="px,0px)"):q&&(i="translate(",a="px)"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(o,n){if(!arguments.length)return-(e.scrollLeft+h);let r=e.scrollLeft-u,l=h;if((r>2||r<-2)&&!n)return u=e.scrollLeft,b.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-u),void(t.onKill&&t.onKill());(o=-o)<0?(h=o-.5|0,o=0):o>y?(h=o-y|0,o=y):h=0,(h||l)&&(this._skip||(c[q]=i+-h+"px,"+-p+a),h+m>=0&&(c.paddingRight=h+m+"px")),e.scrollLeft=0|o,u=e.scrollLeft},this.top=function(o,n){if(!arguments.length)return-(e.scrollTop+p);let r=e.scrollTop-g,l=p;if((r>2||r<-2)&&!n)return g=e.scrollTop,b.killTweensOf(this,{top:1,scrollTop:1}),this.top(-g),void(t.onKill&&t.onKill());(o=-o)<0?(p=o-.5|0,o=0):o>v?(p=o-v|0,o=v):p=0,(p||l)&&(this._skip||(c[q]=i+-h+"px,"+-p+a)),e.scrollTop=0|o,g=e.scrollTop},this.maxScrollTop=()=>v,this.maxScrollLeft=()=>y,this.disable=function(){for(d=s.firstChild;d;)l=d.nextSibling,e.appendChild(d),d=l;e===s.parentNode&&e.removeChild(s)},this.enable=function(){if(d=e.firstChild,d!==s){for(;d;)l=d.nextSibling,s.appendChild(d),d=l;e.appendChild(s),this.calibrate()}},this.calibrate=function(t){let l,i,a,d=e.clientWidth===o;g=e.scrollTop,u=e.scrollLeft,d&&e.clientHeight===n&&s.offsetHeight===r&&f===e.scrollWidth&&x===e.scrollHeight&&!t||((p||h)&&(i=this.left(),a=this.top(),this.left(-e.scrollLeft),this.top(-e.scrollTop)),l=De(e),d&&!t||(c.display="block",c.width="auto",c.paddingRight="0px",m=Math.max(0,e.scrollWidth-e.clientWidth),m&&(m+=parseFloat(l.paddingLeft)+(F?parseFloat(l.paddingRight):0))),c.display="inline-block",c.position="relative",c.overflow="visible",c.verticalAlign="top",c.boxSizing="content-box",c.width="100%",c.paddingRight=m+"px",F&&(c.paddingBottom=l.paddingBottom),o=e.clientWidth,n=e.clientHeight,f=e.scrollWidth,x=e.scrollHeight,y=e.scrollWidth-o,v=e.scrollHeight-n,r=s.offsetHeight,c.display="block",(i||a)&&(this.left(i),this.top(a)))},this.content=s,this.element=e,this._skip=!1,this.enable()},He=e=>{if(W()&&document.body){let e=window&&window.navigator;T=window,E=document,M=E.documentElement,X=E.body,S=J("div"),I=!!window.PointerEvent,Y=J("div"),Y.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",B="grab"===Y.style.cursor?"grab":"move",_=e&&-1!==e.userAgent.toLowerCase().indexOf("android"),N="ontouchstart"in M&&"orientation"in T||e&&(e.MaxTouchPoints>0||e.msMaxTouchPoints>0),F=function(){let e,t=J("div"),o=J("div"),n=o.style,r=X;return n.display="inline-block",n.position="relative",t.style.cssText=o.innerHTML="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",t.appendChild(o),r.appendChild(t),e=o.offsetHeight+18>t.scrollHeight,r.removeChild(t),e}(),P=function(e){let t=e.split(","),o=("onpointerdown"in S?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in S?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":e).split(","),n={},r=4;for(;--r>-1;)n[t[r]]=o[r],n[o[r]]=t[r];try{M.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){C=1}}))}catch(e){}return n}("touchstart,touchmove,touchend,touchcancel"),fe(E,"touchcancel",U),fe(T,"touchmove",U),X&&X.addEventListener("touchstart",U),fe(E,"contextmenu",(function(){for(let e in re)re[e].isPressed&&re[e].endDrag()})),b=D=z()}b?(A=b.plugins.inertia,L=b.utils.checkPrefix,q=L(q),$=L($),k=b.utils.toArray,H=!!L("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")};class Fe extends class{constructor(e){this._listeners={},this.target=e||this}addEventListener(e,t){let o=this._listeners[e]||(this._listeners[e]=[]);~o.indexOf(t)||o.push(t)}removeEventListener(e,t){let o=this._listeners[e],n=o&&o.indexOf(t)||-1;n>-1&&o.splice(n,1)}dispatchEvent(e){let t;return(this._listeners[e]||[]).forEach(o=>!1===o.call(this,{type:e,target:this.target})&&(t=!1)),t}}{constructor(e,t){super(),D||He(1),e=k(e)[0],A||(A=b.plugins.inertia),this.vars=t=de(t||{}),this.target=e,this.x=this.y=this.rotation=0,this.dragResistance=parseFloat(t.dragResistance)||0,this.edgeResistance=isNaN(t.edgeResistance)?1:parseFloat(t.edgeResistance)||0,this.lockAxis=t.lockAxis,this.autoScroll=t.autoScroll||0,this.lockedAxis=null,this.allowEventDefault=!!t.allowEventDefault,b.getProperty(e,"x");let o,n,r,l,i,a,s,c,d,p,h,g,u,f,x,m,y,X,S,L,C,H,F,W,z,U,q,J,ie,ge,ye,Xe,Le=(t.type||"x,y").toLowerCase(),Oe=~Le.indexOf("x")||~Le.indexOf("y"),We=-1!==Le.indexOf("rotation"),ze=We?"rotation":Oe?"x":"left",Ve=Oe?"y":"top",Ke=!(!~Le.indexOf("x")&&!~Le.indexOf("left")&&"scroll"!==Le),Ge=!(!~Le.indexOf("y")&&!~Le.indexOf("top")&&"scroll"!==Le),Ue=t.minimumMovement||2,qe=this,$e=k(t.trigger||t.handle||e),je={},Ze=0,Je=!1,Qe=t.autoScrollMarginTop||40,et=t.autoScrollMarginRight||40,tt=t.autoScrollMarginBottom||40,ot=t.autoScrollMarginLeft||40,nt=t.clickableTest||_e,rt=0,lt=e._gsap||b.core.getCache(e),it=Be(e),at=(t,o)=>parseFloat(lt.get(e,t,o)),st=e.ownerDocument||E,ct=e=>(me(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1),dt=t=>{if(qe.autoScroll&&qe.isDragging&&(Je||y)){let t,o,n,r,l,i,a,s,c=e,d=15*qe.autoScroll;for(Je=!1,ce.scrollTop=null!=T.pageYOffset?T.pageYOffset:null!=st.documentElement.scrollTop?st.documentElement.scrollTop:st.body.scrollTop,ce.scrollLeft=null!=T.pageXOffset?T.pageXOffset:null!=st.documentElement.scrollLeft?st.documentElement.scrollLeft:st.body.scrollLeft,r=qe.pointerX-ce.scrollLeft,l=qe.pointerY-ce.scrollTop;c&&!o;)o=Me(c.parentNode),t=o?ce:c.parentNode,n=o?{bottom:Math.max(M.clientHeight,T.innerHeight||0),right:Math.max(M.clientWidth,T.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),i=a=0,Ge&&(s=t._gsMaxScrollY-t.scrollTop,s<0?a=s:l>n.bottom-tt&&s?(Je=!0,a=Math.min(s,d*(1-Math.max(0,n.bottom-l)/tt)|0)):l<n.top+Qe&&t.scrollTop&&(Je=!0,a=-Math.min(t.scrollTop,d*(1-Math.max(0,l-n.top)/Qe)|0)),a&&(t.scrollTop+=a)),Ke&&(s=t._gsMaxScrollX-t.scrollLeft,s<0?i=s:r>n.right-et&&s?(Je=!0,i=Math.min(s,d*(1-Math.max(0,n.right-r)/et)|0)):r<n.left+ot&&t.scrollLeft&&(Je=!0,i=-Math.min(t.scrollLeft,d*(1-Math.max(0,r-n.left)/ot)|0)),i&&(t.scrollLeft+=i)),o&&(i||a)&&(T.scrollTo(t.scrollLeft,t.scrollTop),Et(qe.pointerX+i,qe.pointerY+a)),c=t}if(y){let{x:o,y:r}=qe;We?(qe.deltaX=o-parseFloat(lt.rotation),qe.rotation=o,lt.rotation=o+"deg",lt.renderTransform(1,lt)):n?(Ge&&(qe.deltaY=r-n.top(),n.top(r)),Ke&&(qe.deltaX=o-n.left(),n.left(o))):Oe?(Ge&&(qe.deltaY=r-parseFloat(lt.y),lt.y=r+"px"),Ke&&(qe.deltaX=o-parseFloat(lt.x),lt.x=o+"px"),lt.renderTransform(1,lt)):(Ge&&(qe.deltaY=r-parseFloat(e.style.top||0),e.style.top=r+"px"),Ke&&(qe.deltaX=o-parseFloat(e.style.left||0),e.style.left=o+"px")),!c||t||J||(J=!0,!1===Ce(qe,"drag","onDrag")&&(Ke&&(qe.x-=qe.deltaX),Ge&&(qe.y-=qe.deltaY),dt(!0)),J=!1)}y=!1},pt=(t,o)=>{let r,l,{x:i,y:a}=qe;e._gsap||(lt=b.core.getCache(e)),lt.uncache&&b.getProperty(e,"x"),Oe?(qe.x=parseFloat(lt.x),qe.y=parseFloat(lt.y)):We?qe.x=qe.rotation=parseFloat(lt.rotation):n?(qe.y=n.top(),qe.x=n.left()):(qe.y=parseFloat(e.style.top||(l=De(e))&&l.top)||0,qe.x=parseFloat(e.style.left||(l||{}).left)||0),(S||L||C)&&!o&&(qe.isDragging||qe.isThrowing)&&(C&&(se.x=qe.x,se.y=qe.y,r=C(se),r.x!==qe.x&&(qe.x=r.x,y=!0),r.y!==qe.y&&(qe.y=r.y,y=!0)),S&&(r=S(qe.x),r!==qe.x&&(qe.x=r,We&&(qe.rotation=r),y=!0)),L&&(r=L(qe.y),r!==qe.y&&(qe.y=r),y=!0)),y&&dt(!0),t||(qe.deltaX=qe.x-i,qe.deltaY=qe.y-a,Ce(qe,"throwupdate","onThrowUpdate"))},ht=(e,t,o,n)=>(null==t&&(t=-ee),null==o&&(o=ee),V(e)?r=>{let l=qe.isPressed?1-qe.edgeResistance:1;return e.call(qe,r>o?o+(r-o)*l:r<t?t+(r-t)*l:r)*n}:Z(e)?n=>{let r,l,i=e.length,a=0,s=ee;for(;--i>-1;)r=e[i],l=r-n,l<0&&(l=-l),l<s&&r>=t&&r<=o&&(a=i,s=l);return e[a]}:isNaN(e)?e=>e:()=>e*n),gt=()=>{let o,r,l,i;s=!1,n?(n.calibrate(),qe.minX=h=-n.maxScrollLeft(),qe.minY=u=-n.maxScrollTop(),qe.maxX=p=qe.maxY=g=0,s=!0):t.bounds&&(o=Ne(t.bounds,e.parentNode),We?(qe.minX=h=o.left,qe.maxX=p=o.left+o.width,qe.minY=u=qe.maxY=g=0):G(t.bounds.maxX)&&G(t.bounds.maxY)?(r=Ne(e,e.parentNode),qe.minX=h=Math.round(at(ze,"px")+o.left-r.left),qe.minY=u=Math.round(at(Ve,"px")+o.top-r.top),qe.maxX=p=Math.round(h+(o.width-r.width)),qe.maxY=g=Math.round(u+(o.height-r.height))):(o=t.bounds,qe.minX=h=o.minX,qe.minY=u=o.minY,qe.maxX=p=o.maxX,qe.maxY=g=o.maxY),h>p&&(qe.minX=p,qe.maxX=p=h,h=qe.minX),u>g&&(qe.minY=g,qe.maxY=g=u,u=qe.minY),We&&(qe.minRotation=h,qe.maxRotation=p),s=!0),t.liveSnap&&(l=!0===t.liveSnap?t.snap||{}:t.liveSnap,i=Z(l)||V(l),We?(S=ht(i?l:l.rotation,h,p,1),L=null):l.points?C=((e,t,o,n,r,l,i)=>(l=l&&l<ee?l*l:ee,V(e)?a=>{let s,c,d,p=qe.isPressed?1-qe.edgeResistance:1,h=a.x,g=a.y;return a.x=h=h>o?o+(h-o)*p:h<t?t+(h-t)*p:h,a.y=g=g>r?r+(g-r)*p:g<n?n+(g-n)*p:g,s=e.call(qe,a),s!==a&&(a.x=s.x,a.y=s.y),1!==i&&(a.x*=i,a.y*=i),l<ee&&(c=a.x-h,d=a.y-g,c*c+d*d>l&&(a.x=h,a.y=g)),a}:Z(e)?t=>{let o,n,r,i,a=e.length,s=0,c=ee;for(;--a>-1;)r=e[a],o=r.x-t.x,n=r.y-t.y,i=o*o+n*n,i<c&&(s=a,c=i);return c<=l?e[s]:t}:e=>e))(i?l:l.points,h,p,u,g,l.radius,n?-1:1):(Ke&&(S=ht(i?l:l.x||l.left||l.scrollLeft,h,p,n?-1:1)),Ge&&(L=ht(i?l:l.y||l.top||l.scrollTop,u,g,n?-1:1))))},ut=()=>{qe.isThrowing=!1,Ce(qe,"throwcomplete","onThrowComplete")},ft=()=>{qe.isThrowing=!1},xt=(o,r)=>{let l,i,a,c;o&&A?(!0===o&&(l=t.snap||t.liveSnap||{},i=Z(l)||V(l),o={resistance:(t.throwResistance||t.resistance||1e3)/(We?10:1)},We?o.rotation=Re(qe,i?l:l.rotation,p,h,1,r):(Ke&&(o[ze]=Re(qe,i?l:l.points||l.x||l.left,p,h,n?-1:1,r||"x"===qe.lockedAxis)),Ge&&(o[Ve]=Re(qe,i?l:l.points||l.y||l.top,g,u,n?-1:1,r||"y"===qe.lockedAxis)),(l.points||Z(l)&&K(l[0]))&&(o.linkedProps=ze+","+Ve,o.radius=l.radius))),qe.isThrowing=!0,c=isNaN(t.overshootTolerance)?1===t.edgeResistance?0:1-qe.edgeResistance+.2:t.overshootTolerance,o.duration||(o.duration={max:Math.max(t.minDuration||0,"maxDuration"in t?t.maxDuration:2),min:isNaN(t.minDuration)?0===c||K(o)&&o.resistance>1e3?0:.5:t.minDuration,overshoot:c}),qe.tween=a=b.to(n||e,{inertia:o,data:"_draggable",onComplete:ut,onInterrupt:ft,onUpdate:t.fastMode?Ce:pt,onUpdateParams:t.fastMode?[qe,"onthrowupdate","onThrowUpdate"]:l&&l.radius?[!1,!0]:[]}),t.fastMode||(n&&(n._skip=!0),a.render(1e9,!0,!0),pt(!0,!0),qe.endX=qe.x,qe.endY=qe.y,We&&(qe.endRotation=qe.x),a.play(0),pt(!0,!0),n&&(n._skip=!1))):s&&qe.applyBounds()},mt=t=>{let o,n=W;W=w(e.parentNode,!0),t&&qe.isPressed&&!W.equals(n||new v)&&(o=n.inverse().apply({x:r,y:l}),W.apply(o,o),r=o.x,l=o.y),W.equals(te)&&(W=null)},yt=()=>{let t,o,c,d=1-qe.edgeResistance,f=it?be(st):0,x=it?we(st):0;mt(!1),Pe.x=qe.pointerX-f,Pe.y=qe.pointerY-x,W&&W.apply(Pe,Pe),r=Pe.x,l=Pe.y,y&&(Et(qe.pointerX,qe.pointerY),dt(!0)),Xe=w(e),n?(gt(),a=n.top(),i=n.left()):(vt()?(pt(!0,!0),gt()):qe.applyBounds(),We?(t=e.ownerSVGElement?[lt.xOrigin-e.getBBox().x,lt.yOrigin-e.getBBox().y]:(De(e)[$]||"0 0").split(" "),m=qe.rotationOrigin=w(e).apply({x:parseFloat(t[0])||0,y:parseFloat(t[1])||0}),pt(!0,!0),o=qe.pointerX-m.x-f,c=m.y-qe.pointerY+x,i=qe.x,a=qe.y=Math.atan2(c,o)*Q):(a=at(Ve,"px"),i=at(ze,"px"))),s&&d&&(i>p?i=p+(i-p)/d:i<h&&(i=h-(h-i)/d),We||(a>g?a=g+(a-g)/d:a<u&&(a=u-(u-a)/d))),qe.startX=i=j(i),qe.startY=a=j(a)},vt=()=>qe.tween&&qe.tween.isActive(),wt=()=>{!Y.parentNode||vt()||qe.isDragging||Y.parentNode.removeChild(Y)},bt=(i,a)=>{let s;if(!o||qe.isPressed||!i||!("mousedown"!==i.type&&"pointerdown"!==i.type||a)&&oe()-rt<30&&P[qe.pointerEvent.type])ye&&i&&o&&me(i);else{if(z=vt(),qe.pointerEvent=i,P[i.type]?(F=~i.type.indexOf("touch")?i.currentTarget||i.target:st,fe(F,"touchend",Mt),fe(F,"touchmove",Tt),fe(F,"touchcancel",Mt),fe(st,"touchstart",ve)):(F=null,fe(st,"mousemove",Tt)),q=null,I&&F||(fe(st,"mouseup",Mt),i&&i.target&&fe(i.target,"mouseup",Mt)),H=nt.call(qe,i.target)&&!1===t.dragClickables&&!a,H)return fe(i.target,"change",Mt),Ce(qe,"pressInit","onPressInit"),Ce(qe,"press","onPress"),Ae($e,!0),void(ye=!1);var p;if(U=!(!F||Ke===Ge||!1===qe.vars.allowNativeTouchScrolling||qe.vars.allowContextMenu&&i&&(i.ctrlKey||i.which>2))&&(Ke?"y":"x"),ye=!U&&!qe.allowEventDefault,ye&&(me(i),fe(T,"touchforcechange",me)),i.changedTouches?(i=f=i.changedTouches[0],x=i.identifier):i.pointerId?x=i.pointerId:f=x=null,O++,p=dt,ne.push(p),1===ne.length&&b.ticker.add(he),l=qe.pointerY=i.pageY,r=qe.pointerX=i.pageX,Ce(qe,"pressInit","onPressInit"),(U||qe.autoScroll)&&Se(e.parentNode),!e.parentNode||!qe.autoScroll||n||We||!e.parentNode._gsMaxScrollX||Y.parentNode||e.getBBox||(Y.style.width=e.parentNode.scrollWidth+"px",e.parentNode.appendChild(Y)),yt(),qe.tween&&qe.tween.kill(),qe.isThrowing=!1,b.killTweensOf(n||e,je,!0),n&&b.killTweensOf(e,{scrollTo:1},!0),qe.tween=qe.lockedAxis=null,(t.zIndexBoost||!We&&!n&&!1!==t.zIndexBoost)&&(e.style.zIndex=Fe.zIndex++),qe.isPressed=!0,c=!(!t.onDrag&&!qe._listeners.drag),d=!(!t.onMove&&!qe._listeners.move),!1!==t.cursor||t.activeCursor)for(s=$e.length;--s>-1;)b.set($e[s],{cursor:t.activeCursor||t.cursor||("grab"===B?"grabbing":B)});Ce(qe,"press","onPress")}},Tt=t=>{let n,i,a,s,c,p,h=t;if(o&&!R&&qe.isPressed&&t){if(qe.pointerEvent=t,n=t.changedTouches,n){if((t=n[0])!==f&&t.identifier!==x){for(s=n.length;--s>-1&&(t=n[s]).identifier!==x&&t.target!==e;);if(s<0)return}}else if(t.pointerId&&x&&t.pointerId!==x)return;F&&U&&!q&&(Pe.x=t.pageX-(it?be(st):0),Pe.y=t.pageY-(it?we(st):0),W&&W.apply(Pe,Pe),i=Pe.x,a=Pe.y,c=Math.abs(i-r),p=Math.abs(a-l),(c!==p&&(c>Ue||p>Ue)||_&&U===q)&&(q=c>p&&Ke?"x":"y",U&&q!==U&&fe(T,"touchforcechange",me),!1!==qe.vars.lockAxisOnTouchScroll&&Ke&&Ge&&(qe.lockedAxis="x"===q?"y":"x",V(qe.vars.onLockAxis)&&qe.vars.onLockAxis.call(qe,h)),_&&U===q))?Mt(h):(qe.allowEventDefault||U&&(!q||U===q)||!1===h.cancelable?ye&&(ye=!1):(me(h),ye=!0),qe.autoScroll&&(Je=!0),Et(t.pageX,t.pageY,d))}else ye&&t&&o&&me(t)},Et=(e,t,o)=>{let n,c,d,f,x,v,w=1-qe.dragResistance,b=1-qe.edgeResistance,T=qe.pointerX,E=qe.pointerY,M=a,X=qe.x,Y=qe.y,D=qe.endX,k=qe.endY,N=qe.endRotation,P=y;qe.pointerX=e,qe.pointerY=t,it&&(e-=be(st),t-=we(st)),We?(f=Math.atan2(m.y-t,e-m.x)*Q,x=qe.y-f,x>180?(a-=360,qe.y=f):x<-180&&(a+=360,qe.y=f),qe.x!==i||Math.abs(a-f)>Ue?(qe.y=f,d=i+(a-f)*w):d=i):(W&&(v=e*W.a+t*W.c+W.e,t=e*W.b+t*W.d+W.f,e=v),c=t-l,n=e-r,c<Ue&&c>-Ue&&(c=0),n<Ue&&n>-Ue&&(n=0),(qe.lockAxis||qe.lockedAxis)&&(n||c)&&(v=qe.lockedAxis,v||(qe.lockedAxis=v=Ke&&Math.abs(n)>Math.abs(c)?"y":Ge?"x":null,v&&V(qe.vars.onLockAxis)&&qe.vars.onLockAxis.call(qe,qe.pointerEvent)),"y"===v?c=0:"x"===v&&(n=0)),d=j(i+n*w),f=j(a+c*w)),(S||L||C)&&(qe.x!==d||qe.y!==f&&!We)&&(C&&(se.x=d,se.y=f,v=C(se),d=j(v.x),f=j(v.y)),S&&(d=j(S(d))),L&&(f=j(L(f)))),s&&(d>p?d=p+Math.round((d-p)*b):d<h&&(d=h+Math.round((d-h)*b)),We||(f>g?f=Math.round(g+(f-g)*b):f<u&&(f=Math.round(u+(f-u)*b)))),(qe.x!==d||qe.y!==f&&!We)&&(We?(qe.endRotation=qe.x=qe.endX=d,y=!0):(Ge&&(qe.y=qe.endY=f,y=!0),Ke&&(qe.x=qe.endX=d,y=!0)),o&&!1===Ce(qe,"move","onMove")?(qe.pointerX=T,qe.pointerY=E,a=M,qe.x=X,qe.y=Y,qe.endX=D,qe.endY=k,qe.endRotation=N,y=P):!qe.isDragging&&qe.isPressed&&(qe.isDragging=!0,Ce(qe,"dragstart","onDragStart")))},Mt=(n,r)=>{if(!o||!qe.isPressed||n&&null!=x&&!r&&(n.pointerId&&n.pointerId!==x&&n.target!==e||n.changedTouches&&!((e,t)=>{let o=e.length;for(;o--;)if(e[o].identifier===t)return!0})(n.changedTouches,x)))return void(ye&&n&&o&&me(n));qe.isPressed=!1;let l,i,a,s,c,d=n,p=qe.isDragging,h=qe.vars.allowContextMenu&&n&&(n.ctrlKey||n.which>2),g=b.delayedCall(.001,wt);if(F?(xe(F,"touchend",Mt),xe(F,"touchmove",Tt),xe(F,"touchcancel",Mt),xe(st,"touchstart",ve)):xe(st,"mousemove",Tt),xe(T,"touchforcechange",me),I&&F||(xe(st,"mouseup",Mt),n&&n.target&&xe(n.target,"mouseup",Mt)),y=!1,p&&(Ze=ae=oe(),qe.isDragging=!1),H&&!h)return n&&(xe(n.target,"change",Mt),qe.pointerEvent=d),Ae($e,!1),Ce(qe,"release","onRelease"),Ce(qe,"click","onClick"),void(H=!1);for(ue(dt),i=$e.length;--i>-1;)Ye($e[i],"cursor",t.cursor||(!1!==t.cursor?B:null));if(O--,n){if(l=n.changedTouches,l&&(n=l[0])!==f&&n.identifier!==x){for(i=l.length;--i>-1&&(n=l[i]).identifier!==x&&n.target!==e;);if(i<0)return}qe.pointerEvent=d,qe.pointerX=n.pageX,qe.pointerY=n.pageY}return h&&d?(me(d),ye=!0,Ce(qe,"release","onRelease")):d&&!p?(ye=!1,z&&(t.snap||t.bounds)&&xt(t.inertia||t.throwProps),Ce(qe,"release","onRelease"),_&&"touchmove"===d.type||-1!==d.type.indexOf("cancel")||(Ce(qe,"click","onClick"),oe()-rt<300&&Ce(qe,"doubleclick","onDoubleClick"),s=d.target||e,rt=oe(),c=()=>{rt===ie||!qe.enabled()||qe.isPressed||d.defaultPrevented||(s.click?s.click():st.createEvent&&(a=st.createEvent("MouseEvents"),a.initMouseEvent("click",!0,!0,T,1,qe.pointerEvent.screenX,qe.pointerEvent.screenY,qe.pointerX,qe.pointerY,!1,!1,!1,!1,0,null),s.dispatchEvent(a)))},_||d.defaultPrevented||b.delayedCall(.05,c))):(xt(t.inertia||t.throwProps),qe.allowEventDefault||!d||!1===t.dragClickables&&nt.call(qe,d.target)||!p||U&&(!q||U!==q)||!1===d.cancelable?ye=!1:(ye=!0,me(d)),Ce(qe,"release","onRelease")),vt()&&g.duration(qe.tween.duration()),p&&Ce(qe,"dragend","onDragEnd"),!0},Xt=t=>{if(t&&qe.isDragging&&!n){let o=t.target||e.parentNode,n=o.scrollLeft-o._gsScrollX,i=o.scrollTop-o._gsScrollY;(n||i)&&(W?(r-=n*W.a+i*W.c,l-=i*W.d+n*W.b):(r-=n,l-=i),o._gsScrollX+=n,o._gsScrollY+=i,Et(qe.pointerX,qe.pointerY))}},St=e=>{let t=oe(),o=t-rt<100,n=t-Ze<50,r=o&&ie===rt,l=qe.pointerEvent&&qe.pointerEvent.defaultPrevented,i=o&&ge===rt,a=e.isTrusted||null==e.isTrusted&&o&&r;if((r||n&&!1!==qe.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),o&&(!qe.pointerEvent||!qe.pointerEvent.defaultPrevented)&&(!r||a&&!i))return a&&r&&(ge=rt),void(ie=rt);(qe.isPressed||n||o)&&(a&&e.detail&&o&&!l||me(e)),o||n||(e&&e.target&&(qe.pointerEvent=e),Ce(qe,"click","onClick"))},Yt=e=>W?{x:e.x*W.a+e.y*W.c+W.e,y:e.x*W.b+e.y*W.d+W.f}:{x:e.x,y:e.y};X=Fe.get(e),X&&X.kill(),this.startDrag=(t,o)=>{let n,i,a,s;bt(t||qe.pointerEvent,!0),o&&!qe.hitTest(t||qe.pointerEvent)&&(n=ke(t||qe.pointerEvent),i=ke(e),a=Yt({x:n.left+n.width/2,y:n.top+n.height/2}),s=Yt({x:i.left+i.width/2,y:i.top+i.height/2}),r-=a.x-s.x,l-=a.y-s.y),qe.isDragging||(qe.isDragging=!0,Ce(qe,"dragstart","onDragStart"))},this.drag=Tt,this.endDrag=e=>Mt(e||qe.pointerEvent,!0),this.timeSinceDrag=()=>qe.isDragging?0:(oe()-Ze)/1e3,this.timeSinceClick=()=>(oe()-rt)/1e3,this.hitTest=(e,t)=>Fe.hitTest(qe.target,e,t),this.getDirection=(t,o)=>{let n,r,l,s,c,d,p="velocity"===t&&A?t:K(t)&&!We?"element":"start";return"element"===p&&(c=ke(qe.target),d=ke(t)),n="start"===p?qe.x-i:"velocity"===p?A.getVelocity(e,ze):c.left+c.width/2-(d.left+d.width/2),We?n<0?"counter-clockwise":"clockwise":(o=o||2,r="start"===p?qe.y-a:"velocity"===p?A.getVelocity(e,Ve):c.top+c.height/2-(d.top+d.height/2),l=Math.abs(n/r),s=l<1/o?"":n<0?"left":"right",l<o&&(""!==s&&(s+="-"),s+=r<0?"up":"down"),s)},this.applyBounds=(o,n)=>{let r,l,i,a,c,d;if(o&&t.bounds!==o)return t.bounds=o,qe.update(!0,n);if(pt(!0),gt(),s&&!vt()){if(r=qe.x,l=qe.y,r>p?r=p:r<h&&(r=h),l>g?l=g:l<u&&(l=u),(qe.x!==r||qe.y!==l)&&(i=!0,qe.x=qe.endX=r,We?qe.endRotation=r:qe.y=qe.endY=l,y=!0,dt(!0),qe.autoScroll&&!qe.isDragging))for(Se(e.parentNode),a=e,ce.scrollTop=null!=T.pageYOffset?T.pageYOffset:null!=st.documentElement.scrollTop?st.documentElement.scrollTop:st.body.scrollTop,ce.scrollLeft=null!=T.pageXOffset?T.pageXOffset:null!=st.documentElement.scrollLeft?st.documentElement.scrollLeft:st.body.scrollLeft;a&&!d;)d=Me(a.parentNode),c=d?ce:a.parentNode,Ge&&c.scrollTop>c._gsMaxScrollY&&(c.scrollTop=c._gsMaxScrollY),Ke&&c.scrollLeft>c._gsMaxScrollX&&(c.scrollLeft=c._gsMaxScrollX),a=c;qe.isThrowing&&(i||qe.endX>p||qe.endX<h||qe.endY>g||qe.endY<u)&&xt(t.inertia||t.throwProps,i)}return qe},this.update=(t,o,n)=>{if(o&&qe.isPressed){let t=w(e),o=Xe.apply({x:qe.x-i,y:qe.y-a}),n=w(e.parentNode,!0);n.apply({x:t.e-o.x,y:t.f-o.y},o),qe.x-=o.x-n.e,qe.y-=o.y-n.f,dt(!0),yt()}let{x:r,y:l}=qe;return mt(!o),t?qe.applyBounds():(y&&n&&dt(!0),pt(!0)),o&&(Et(qe.pointerX,qe.pointerY),y&&dt(!0)),qe.isPressed&&!o&&(Ke&&Math.abs(r-qe.x)>.01||Ge&&Math.abs(l-qe.y)>.01&&!We)&&yt(),qe.autoScroll&&(Se(e.parentNode,qe.isDragging),Je=qe.isDragging,dt(!0),Ee(e,Xt),Te(e,Xt)),qe},this.enable=r=>{let l,i,a,s={lazy:!0};if(!1!==t.cursor&&(s.cursor=t.cursor||B),b.utils.checkPrefix("touchCallout")&&(s.touchCallout="none"),"soft"!==r){for(pe($e,Ke===Ge?"none":t.allowNativeTouchScrolling&&e.scrollHeight===e.clientHeight==(e.scrollWidth===e.clientHeight)||t.allowEventDefault?"manipulation":Ke?"pan-y":"pan-x"),i=$e.length;--i>-1;)a=$e[i],I||fe(a,"mousedown",bt),fe(a,"touchstart",bt),fe(a,"click",St,!0),b.set(a,s),a.getBBox&&a.ownerSVGElement&&b.set(a.ownerSVGElement,{touchAction:Ke===Ge?"none":t.allowNativeTouchScrolling||t.allowEventDefault?"manipulation":Ke?"pan-y":"pan-x"}),t.allowContextMenu||fe(a,"contextmenu",ct);Ae($e,!1)}return Te(e,Xt),o=!0,A&&"soft"!==r&&A.track(n||e,Oe?"x,y":We?"rotation":"top,left"),e._gsDragID=l="d"+le++,re[l]=qe,n&&(n.enable(),n.element._gsDragID=l),(t.bounds||We)&&yt(),t.bounds&&qe.applyBounds(),qe},this.disable=t=>{let r,l=qe.isDragging,i=$e.length;for(;--i>-1;)Ye($e[i],"cursor",null);if("soft"!==t){for(pe($e,null),i=$e.length;--i>-1;)r=$e[i],Ye(r,"touchCallout",null),xe(r,"mousedown",bt),xe(r,"touchstart",bt),xe(r,"click",St),xe(r,"contextmenu",ct);Ae($e,!0),F&&(xe(F,"touchcancel",Mt),xe(F,"touchend",Mt),xe(F,"touchmove",Tt)),xe(st,"mouseup",Mt),xe(st,"mousemove",Tt)}return Ee(e,Xt),o=!1,A&&"soft"!==t&&A.untrack(n||e,Oe?"x,y":We?"rotation":"top,left"),n&&n.disable(),ue(dt),qe.isDragging=qe.isPressed=H=!1,l&&Ce(qe,"dragend","onDragEnd"),qe},this.enabled=function(e,t){return arguments.length?e?qe.enable(t):qe.disable(t):o},this.kill=function(){return qe.isThrowing=!1,qe.tween&&qe.tween.kill(),qe.disable(),b.set($e,{clearProps:"userSelect"}),delete re[e._gsDragID],qe},~Le.indexOf("scroll")&&(n=this.scrollProxy=new Ie(e,((e,t)=>{for(let o in t)o in e||(e[o]=t[o]);return e})({onKill:function(){qe.isPressed&&Mt(null)}},t)),e.style.overflowY=Ge&&!N?"auto":"hidden",e.style.overflowX=Ke&&!N?"auto":"hidden",e=n.content),We?je.rotation=1:(Ke&&(je[ze]=1),Ge&&(je[Ve]=1)),lt.force3D=!("force3D"in t)||t.force3D,this.enable()}static register(e){b=e,He()}static create(e,t){return D||He(!0),k(e).map(e=>new Fe(e,t))}static get(e){return re[(k(e)[0]||{})._gsDragID]}static timeSinceDrag(){return(oe()-ae)/1e3}static hitTest(e,t,o){if(e===t)return!1;let n,r,l,i=ke(e),a=ke(t),{top:s,left:c,right:d,bottom:p,width:h,height:g}=i,u=a.left>d||a.right<c||a.top>p||a.bottom<s;return u||!o?!u:(l=-1!==(o+"").indexOf("%"),o=parseFloat(o)||0,n={left:Math.max(c,a.left),top:Math.max(s,a.top)},n.width=Math.min(d,a.right)-n.left,n.height=Math.min(p,a.bottom)-n.top,!(n.width<0||n.height<0)&&(l?(o*=.01,r=n.width*n.height,r>=h*g*o||r>=a.width*a.height*o):n.width>o&&n.height>o))}}((e,t)=>{for(let o in t)o in e||(e[o]=t[o])})(Fe.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),Fe.zIndex=1e3,Fe.version="3.10.2",z()&&b.registerPlugin(Fe);export default Fe;export{Fe as Draggable}; | ||
let e,t,o,n,r,l,i,a,s,c="transform",d=c+"Origin",p=r=>{let l=r.ownerDocument||r;!(c in r.style)&&"msTransform"in r.style&&(c="msTransform",d=c+"Origin");for(;l.parentNode&&(l=l.parentNode););if(t=window,i=new v,l){e=l,o=l.documentElement,n=l.body,a=e.createElementNS("http://www.w3.org/2000/svg","g"),a.style.transform="none";let t=l.createElement("div"),r=l.createElement("div");n.appendChild(t),t.appendChild(r),t.style.position="static",t.style[c]="translate3d(0,0,1px)",s=r.offsetParent!==t,n.removeChild(t)}return l},h=[],g=[],u=e=>e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null),f=e=>"fixed"===t.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?f(e):void 0),x=(t,o)=>{if(t.parentNode&&(e||p(t))){let n=u(t),i=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=n?o?"rect":"g":"div",s=2!==o?0:100,c=3===o?100:0,d="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",p=e.createElementNS?e.createElementNS(i.replace(/^https/,"http"),a):e.createElement(a);return o&&(n?(l||(l=x(t)),p.setAttribute("width",.01),p.setAttribute("height",.01),p.setAttribute("transform","translate("+s+","+c+")"),l.appendChild(p)):(r||(r=x(t),r.style.cssText=d),p.style.cssText=d+"width:0.1px;height:0.1px;top:"+c+"px;left:"+s+"px",r.appendChild(p))),p}throw"Need document and parent."},m=(e,o)=>{let n,p,f,m,y,w,b=u(e),T=e===b,E=b?h:g,M=e.parentNode;if(e===t)return e;if(E.length||E.push(x(e,1),x(e,2),x(e,3)),n=b?l:r,b)T?(f=(e=>{let t,o=e.getCTM();return o||(t=e.style[c],e.style[c]="none",e.appendChild(a),o=a.getCTM(),e.removeChild(a),t?e.style[c]=t:e.style.removeProperty(c.replace(/([A-Z])/g,"-$1").toLowerCase())),o||i.clone()})(e),m=-f.e/f.a,y=-f.f/f.d,p=i):e.getBBox?(f=e.getBBox(),p=e.transform?e.transform.baseVal:{},p=p.numberOfItems?p.numberOfItems>1?(e=>{let t=new v,o=0;for(;o<e.numberOfItems;o++)t.multiply(e.getItem(o).matrix);return t})(p):p.getItem(0).matrix:i,m=p.a*f.x+p.c*f.y,y=p.b*f.x+p.d*f.y):(p=new v,m=y=0),o&&"g"===e.tagName.toLowerCase()&&(m=y=0),(T?b:M).appendChild(n),n.setAttribute("transform","matrix("+p.a+","+p.b+","+p.c+","+p.d+","+(p.e+m)+","+(p.f+y)+")");else{if(m=y=0,s)for(p=e.offsetParent,f=e;f&&(f=f.parentNode)&&f!==p&&f.parentNode;)(t.getComputedStyle(f)[c]+"").length>4&&(m=f.offsetLeft,y=f.offsetTop,f=0);if(w=t.getComputedStyle(e),"absolute"!==w.position&&"fixed"!==w.position)for(p=e.offsetParent;M&&M!==p;)m+=M.scrollLeft||0,y+=M.scrollTop||0,M=M.parentNode;f=n.style,f.top=e.offsetTop-y+"px",f.left=e.offsetLeft-m+"px",f[c]=w[c],f[d]=w[d],f.position="fixed"===w.position?"fixed":"absolute",e.parentNode.appendChild(n)}return n},y=(e,t,o,n,r,l,i)=>(e.a=t,e.b=o,e.c=n,e.d=r,e.e=l,e.f=i,e);class v{constructor(e=1,t=0,o=0,n=1,r=0,l=0){y(this,e,t,o,n,r,l)}inverse(){let{a:e,b:t,c:o,d:n,e:r,f:l}=this,i=e*n-t*o||1e-10;return y(this,n/i,-t/i,-o/i,e/i,(o*l-n*r)/i,-(e*l-t*r)/i)}multiply(e){let{a:t,b:o,c:n,d:r,e:l,f:i}=this,a=e.a,s=e.c,c=e.b,d=e.d,p=e.e,h=e.f;return y(this,a*t+c*n,a*o+c*r,s*t+d*n,s*o+d*r,l+p*t+h*n,i+p*o+h*r)}clone(){return new v(this.a,this.b,this.c,this.d,this.e,this.f)}equals(e){let{a:t,b:o,c:n,d:r,e:l,f:i}=this;return t===e.a&&o===e.b&&n===e.c&&r===e.d&&l===e.e&&i===e.f}apply(e,t={}){let{x:o,y:n}=e,{a:r,b:l,c:i,d:a,e:s,f:c}=this;return t.x=o*r+n*i+s||0,t.y=o*l+n*a+c||0,t}}function w(r,l,i,a){if(!r||!r.parentNode||(e||p(r)).documentElement===r)return new v;let s=(e=>{let t,o;for(;e&&e!==n;)o=e._gsap,o&&o.uncache&&o.get(e,"x"),o&&!o.scaleX&&!o.scaleY&&o.renderTransform&&(o.scaleX=o.scaleY=1e-4,o.renderTransform(1,o),t?t.push(o):t=[o]),e=e.parentNode;return t})(r),c=u(r)?h:g,d=m(r,i),x=c[0].getBoundingClientRect(),y=c[1].getBoundingClientRect(),w=c[2].getBoundingClientRect(),b=d.parentNode,T=!a&&f(r),E=new v((y.left-x.left)/100,(y.top-x.top)/100,(w.left-x.left)/100,(w.top-x.top)/100,x.left+(T?0:t.pageXOffset||e.scrollLeft||o.scrollLeft||n.scrollLeft||0),x.top+(T?0:t.pageYOffset||e.scrollTop||o.scrollTop||n.scrollTop||0));if(b.removeChild(d),s)for(x=s.length;x--;)y=s[x],y.scaleX=y.scaleY=0,y.renderTransform(1,y);return l?E.inverse():E}let b,T,E,M,X,S,Y,D,L,k,C,N,P,O,R,_,A,B,I,H,F,W=()=>"undefined"!=typeof window,z=()=>b||W()&&(b=window.gsap)&&b.registerPlugin&&b,V=e=>"function"==typeof e,K=e=>"object"==typeof e,G=e=>void 0===e,U=()=>!1,q="transform",$="transformOrigin",j=e=>Math.round(1e4*e)/1e4,Z=Array.isArray,J=(e,t)=>{let o=E.createElementNS?E.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):E.createElement(e);return o.style?o:E.createElement(e)},Q=180/Math.PI,ee=1e20,te=new v,oe=Date.now||(()=>(new Date).getTime()),ne=[],re={},le=0,ie=/^(?:a|input|textarea|button|select)$/i,ae=0,se={},ce={},de=(e,t)=>{let o,n={};for(o in e)n[o]=t?e[o]*t:e[o];return n},pe=(e,t)=>{let o,n=e.length;for(;n--;)t?e[n].style.touchAction=t:e[n].style.removeProperty("touch-action"),o=e[n].children,o&&o.length&&pe(o,t)},he=()=>ne.forEach(e=>e()),ge=()=>!ne.length&&b.ticker.remove(he),ue=e=>{let t=ne.length;for(;t--;)ne[t]===e&&ne.splice(t,1);b.to(ge,{overwrite:!0,delay:15,duration:0,onComplete:ge,data:"_draggable"})},fe=(e,t,o,n)=>{if(e.addEventListener){let r=P[t];n=n||(C?{passive:!1}:null),e.addEventListener(r||t,o,n),r&&t!==r&&e.addEventListener(t,o,n)}},xe=(e,t,o)=>{if(e.removeEventListener){let n=P[t];e.removeEventListener(n||t,o),n&&t!==n&&e.removeEventListener(t,o)}},me=e=>{e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()},ye=e=>{R=e.touches&&O<e.touches.length,xe(e.target,"touchend",ye)},ve=e=>{R=e.touches&&O<e.touches.length,fe(e.target,"touchend",ye)},we=e=>T.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0,be=e=>T.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0,Te=(e,t)=>{fe(e,"scroll",t),Me(e.parentNode)||Te(e.parentNode,t)},Ee=(e,t)=>{xe(e,"scroll",t),Me(e.parentNode)||Ee(e.parentNode,t)},Me=e=>!(e&&e!==M&&9!==e.nodeType&&e!==E.body&&e!==T&&e.nodeType&&e.parentNode),Xe=(e,t)=>{let o="x"===t?"Width":"Height",n="scroll"+o,r="client"+o;return Math.max(0,Me(e)?Math.max(M[n],X[n])-(T["inner"+o]||M[r]||X[r]):e[n]-e[r])},Se=(e,t)=>{let o=Xe(e,"x"),n=Xe(e,"y");Me(e)?e=ce:Se(e.parentNode,t),e._gsMaxScrollX=o,e._gsMaxScrollY=n,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)},Ye=(e,t,o)=>{let n=e.style;n&&(G(n[t])&&(t=L(t,e)||t),null==o?n.removeProperty&&n.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):n[t]=o)},De=e=>T.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e),Le={},ke=e=>{if(e===T)return Le.left=Le.top=0,Le.width=Le.right=M.clientWidth||e.innerWidth||X.clientWidth||0,Le.height=Le.bottom=(e.innerHeight||0)-20<M.clientHeight?M.clientHeight:e.innerHeight||X.clientHeight||0,Le;let t=e.ownerDocument||E,o=G(e.pageX)?e.nodeType||G(e.left)||G(e.top)?k(e)[0].getBoundingClientRect():e:{left:e.pageX-be(t),top:e.pageY-we(t),right:e.pageX-be(t)+1,bottom:e.pageY-we(t)+1};return G(o.right)&&!G(o.width)?(o.right=o.left+o.width,o.bottom=o.top+o.height):G(o.width)&&(o={width:o.right-o.left,height:o.bottom-o.top,right:o.right,left:o.left,bottom:o.bottom,top:o.top}),o},Ce=(e,t,o)=>{let n,r=e.vars,l=r[o],i=e._listeners[t];return V(l)&&(n=l.apply(r.callbackScope||e,r[o+"Params"]||[e.pointerEvent])),i&&!1===e.dispatchEvent(t)&&(n=!1),n},Ne=(e,t)=>{let o,n,r,l=k(e)[0];return l.nodeType||l===T?Oe(l,t):G(e.left)?(n=e.min||e.minX||e.minRotation||0,o=e.min||e.minY||0,{left:n,top:o,width:(e.max||e.maxX||e.maxRotation||0)-n,height:(e.max||e.maxY||0)-o}):(r={x:0,y:0},{left:e.left-r.x,top:e.top-r.y,width:e.width,height:e.height})},Pe={},Oe=(e,t)=>{t=k(t)[0];let o,n,r,l,i,a,s,c,d,p,h,g,u,f,x=e.getBBox&&e.ownerSVGElement,m=e.ownerDocument||E;if(e===T)r=we(m),o=be(m),n=o+(m.documentElement.clientWidth||e.innerWidth||m.body.clientWidth||0),l=r+((e.innerHeight||0)-20<m.documentElement.clientHeight?m.documentElement.clientHeight:e.innerHeight||m.body.clientHeight||0);else{if(t===T||G(t))return e.getBoundingClientRect();o=r=0,x?(p=e.getBBox(),h=p.width,g=p.height):(e.viewBox&&(p=e.viewBox.baseVal)&&(o=p.x||0,r=p.y||0,h=p.width,g=p.height),h||(u=De(e),p="border-box"===u.boxSizing,h=(parseFloat(u.width)||e.clientWidth||0)+(p?0:parseFloat(u.borderLeftWidth)+parseFloat(u.borderRightWidth)),g=(parseFloat(u.height)||e.clientHeight||0)+(p?0:parseFloat(u.borderTopWidth)+parseFloat(u.borderBottomWidth)))),n=h,l=g}return e===t?{left:o,top:r,width:n-o,height:l-r}:(i=w(t,!0).multiply(w(e)),a=i.apply({x:o,y:r}),s=i.apply({x:n,y:r}),c=i.apply({x:n,y:l}),d=i.apply({x:o,y:l}),o=Math.min(a.x,s.x,c.x,d.x),r=Math.min(a.y,s.y,c.y,d.y),f=t.parentNode||{},{left:o+(f.scrollLeft||0),top:r+(f.scrollTop||0),width:Math.max(a.x,s.x,c.x,d.x)-o,height:Math.max(a.y,s.y,c.y,d.y)-r})},Re=(e,t,o,n,r,l)=>{let i,a,s,c={};if(t)if(1!==r&&t instanceof Array){if(c.end=i=[],s=t.length,K(t[0]))for(a=0;a<s;a++)i[a]=de(t[a],r);else for(a=0;a<s;a++)i[a]=t[a]*r;o+=1.1,n-=1.1}else V(t)?c.end=o=>{let n,l,i=t.call(e,o);if(1!==r)if(K(i)){for(l in n={},i)n[l]=i[l]*r;i=n}else i*=r;return i}:c.end=t;return(o||0===o)&&(c.max=o),(n||0===n)&&(c.min=n),l&&(c.velocity=0),c},_e=e=>{let t;return!(!e||!e.getAttribute||e===X)&&(!("true"!==(t=e.getAttribute("data-clickable"))&&("false"===t||!e.onclick&&!ie.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||_e(e.parentNode))},Ae=(e,t)=>{let o,n=e.length;for(;n--;)o=e[n],o.ondragstart=o.onselectstart=t?null:U,b.set(o,{lazy:!0,userSelect:t?"text":"none"})},Be=e=>"fixed"===De(e).position||((e=e.parentNode)&&1===e.nodeType?Be(e):void 0),Ie=function(e,t){e=b.utils.toArray(e)[0],t=t||{};let o,n,r,l,i,a,s=document.createElement("div"),c=s.style,d=e.firstChild,p=0,h=0,g=e.scrollTop,u=e.scrollLeft,f=e.scrollWidth,x=e.scrollHeight,m=0,y=0,v=0;H&&!1!==t.force3D?(i="translate3d(",a="px,0px)"):q&&(i="translate(",a="px)"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(o,n){if(!arguments.length)return-(e.scrollLeft+h);let r=e.scrollLeft-u,l=h;if((r>2||r<-2)&&!n)return u=e.scrollLeft,b.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-u),void(t.onKill&&t.onKill());(o=-o)<0?(h=o-.5|0,o=0):o>y?(h=o-y|0,o=y):h=0,(h||l)&&(this._skip||(c[q]=i+-h+"px,"+-p+a),h+m>=0&&(c.paddingRight=h+m+"px")),e.scrollLeft=0|o,u=e.scrollLeft},this.top=function(o,n){if(!arguments.length)return-(e.scrollTop+p);let r=e.scrollTop-g,l=p;if((r>2||r<-2)&&!n)return g=e.scrollTop,b.killTweensOf(this,{top:1,scrollTop:1}),this.top(-g),void(t.onKill&&t.onKill());(o=-o)<0?(p=o-.5|0,o=0):o>v?(p=o-v|0,o=v):p=0,(p||l)&&(this._skip||(c[q]=i+-h+"px,"+-p+a)),e.scrollTop=0|o,g=e.scrollTop},this.maxScrollTop=()=>v,this.maxScrollLeft=()=>y,this.disable=function(){for(d=s.firstChild;d;)l=d.nextSibling,e.appendChild(d),d=l;e===s.parentNode&&e.removeChild(s)},this.enable=function(){if(d=e.firstChild,d!==s){for(;d;)l=d.nextSibling,s.appendChild(d),d=l;e.appendChild(s),this.calibrate()}},this.calibrate=function(t){let l,i,a,d=e.clientWidth===o;g=e.scrollTop,u=e.scrollLeft,d&&e.clientHeight===n&&s.offsetHeight===r&&f===e.scrollWidth&&x===e.scrollHeight&&!t||((p||h)&&(i=this.left(),a=this.top(),this.left(-e.scrollLeft),this.top(-e.scrollTop)),l=De(e),d&&!t||(c.display="block",c.width="auto",c.paddingRight="0px",m=Math.max(0,e.scrollWidth-e.clientWidth),m&&(m+=parseFloat(l.paddingLeft)+(F?parseFloat(l.paddingRight):0))),c.display="inline-block",c.position="relative",c.overflow="visible",c.verticalAlign="top",c.boxSizing="content-box",c.width="100%",c.paddingRight=m+"px",F&&(c.paddingBottom=l.paddingBottom),o=e.clientWidth,n=e.clientHeight,f=e.scrollWidth,x=e.scrollHeight,y=e.scrollWidth-o,v=e.scrollHeight-n,r=s.offsetHeight,c.display="block",(i||a)&&(this.left(i),this.top(a)))},this.content=s,this.element=e,this._skip=!1,this.enable()},He=e=>{if(W()&&document.body){let e=window&&window.navigator;T=window,E=document,M=E.documentElement,X=E.body,S=J("div"),I=!!window.PointerEvent,Y=J("div"),Y.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",B="grab"===Y.style.cursor?"grab":"move",_=e&&-1!==e.userAgent.toLowerCase().indexOf("android"),N="ontouchstart"in M&&"orientation"in T||e&&(e.MaxTouchPoints>0||e.msMaxTouchPoints>0),F=function(){let e,t=J("div"),o=J("div"),n=o.style,r=X;return n.display="inline-block",n.position="relative",t.style.cssText=o.innerHTML="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",t.appendChild(o),r.appendChild(t),e=o.offsetHeight+18>t.scrollHeight,r.removeChild(t),e}(),P=function(e){let t=e.split(","),o=("onpointerdown"in S?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in S?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":e).split(","),n={},r=4;for(;--r>-1;)n[t[r]]=o[r],n[o[r]]=t[r];try{M.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){C=1}}))}catch(e){}return n}("touchstart,touchmove,touchend,touchcancel"),fe(E,"touchcancel",U),fe(T,"touchmove",U),X&&X.addEventListener("touchstart",U),fe(E,"contextmenu",(function(){for(let e in re)re[e].isPressed&&re[e].endDrag()})),b=D=z()}b?(A=b.plugins.inertia,L=b.utils.checkPrefix,q=L(q),$=L($),k=b.utils.toArray,H=!!L("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")};class Fe extends class{constructor(e){this._listeners={},this.target=e||this}addEventListener(e,t){let o=this._listeners[e]||(this._listeners[e]=[]);~o.indexOf(t)||o.push(t)}removeEventListener(e,t){let o=this._listeners[e],n=o&&o.indexOf(t)||-1;n>-1&&o.splice(n,1)}dispatchEvent(e){let t;return(this._listeners[e]||[]).forEach(o=>!1===o.call(this,{type:e,target:this.target})&&(t=!1)),t}}{constructor(e,t){super(),D||He(1),e=k(e)[0],A||(A=b.plugins.inertia),this.vars=t=de(t||{}),this.target=e,this.x=this.y=this.rotation=0,this.dragResistance=parseFloat(t.dragResistance)||0,this.edgeResistance=isNaN(t.edgeResistance)?1:parseFloat(t.edgeResistance)||0,this.lockAxis=t.lockAxis,this.autoScroll=t.autoScroll||0,this.lockedAxis=null,this.allowEventDefault=!!t.allowEventDefault,b.getProperty(e,"x");let o,n,r,l,i,a,s,c,d,p,h,g,u,f,x,m,y,X,S,L,C,H,F,W,z,U,q,J,ie,ge,ye,Xe,Le=(t.type||"x,y").toLowerCase(),Oe=~Le.indexOf("x")||~Le.indexOf("y"),We=-1!==Le.indexOf("rotation"),ze=We?"rotation":Oe?"x":"left",Ve=Oe?"y":"top",Ke=!(!~Le.indexOf("x")&&!~Le.indexOf("left")&&"scroll"!==Le),Ge=!(!~Le.indexOf("y")&&!~Le.indexOf("top")&&"scroll"!==Le),Ue=t.minimumMovement||2,qe=this,$e=k(t.trigger||t.handle||e),je={},Ze=0,Je=!1,Qe=t.autoScrollMarginTop||40,et=t.autoScrollMarginRight||40,tt=t.autoScrollMarginBottom||40,ot=t.autoScrollMarginLeft||40,nt=t.clickableTest||_e,rt=0,lt=e._gsap||b.core.getCache(e),it=Be(e),at=(t,o)=>parseFloat(lt.get(e,t,o)),st=e.ownerDocument||E,ct=e=>(me(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1),dt=t=>{if(qe.autoScroll&&qe.isDragging&&(Je||y)){let t,o,n,r,l,i,a,s,c=e,d=15*qe.autoScroll;for(Je=!1,ce.scrollTop=null!=T.pageYOffset?T.pageYOffset:null!=st.documentElement.scrollTop?st.documentElement.scrollTop:st.body.scrollTop,ce.scrollLeft=null!=T.pageXOffset?T.pageXOffset:null!=st.documentElement.scrollLeft?st.documentElement.scrollLeft:st.body.scrollLeft,r=qe.pointerX-ce.scrollLeft,l=qe.pointerY-ce.scrollTop;c&&!o;)o=Me(c.parentNode),t=o?ce:c.parentNode,n=o?{bottom:Math.max(M.clientHeight,T.innerHeight||0),right:Math.max(M.clientWidth,T.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),i=a=0,Ge&&(s=t._gsMaxScrollY-t.scrollTop,s<0?a=s:l>n.bottom-tt&&s?(Je=!0,a=Math.min(s,d*(1-Math.max(0,n.bottom-l)/tt)|0)):l<n.top+Qe&&t.scrollTop&&(Je=!0,a=-Math.min(t.scrollTop,d*(1-Math.max(0,l-n.top)/Qe)|0)),a&&(t.scrollTop+=a)),Ke&&(s=t._gsMaxScrollX-t.scrollLeft,s<0?i=s:r>n.right-et&&s?(Je=!0,i=Math.min(s,d*(1-Math.max(0,n.right-r)/et)|0)):r<n.left+ot&&t.scrollLeft&&(Je=!0,i=-Math.min(t.scrollLeft,d*(1-Math.max(0,r-n.left)/ot)|0)),i&&(t.scrollLeft+=i)),o&&(i||a)&&(T.scrollTo(t.scrollLeft,t.scrollTop),Et(qe.pointerX+i,qe.pointerY+a)),c=t}if(y){let{x:o,y:r}=qe;We?(qe.deltaX=o-parseFloat(lt.rotation),qe.rotation=o,lt.rotation=o+"deg",lt.renderTransform(1,lt)):n?(Ge&&(qe.deltaY=r-n.top(),n.top(r)),Ke&&(qe.deltaX=o-n.left(),n.left(o))):Oe?(Ge&&(qe.deltaY=r-parseFloat(lt.y),lt.y=r+"px"),Ke&&(qe.deltaX=o-parseFloat(lt.x),lt.x=o+"px"),lt.renderTransform(1,lt)):(Ge&&(qe.deltaY=r-parseFloat(e.style.top||0),e.style.top=r+"px"),Ke&&(qe.deltaX=o-parseFloat(e.style.left||0),e.style.left=o+"px")),!c||t||J||(J=!0,!1===Ce(qe,"drag","onDrag")&&(Ke&&(qe.x-=qe.deltaX),Ge&&(qe.y-=qe.deltaY),dt(!0)),J=!1)}y=!1},pt=(t,o)=>{let r,l,{x:i,y:a}=qe;e._gsap||(lt=b.core.getCache(e)),lt.uncache&&b.getProperty(e,"x"),Oe?(qe.x=parseFloat(lt.x),qe.y=parseFloat(lt.y)):We?qe.x=qe.rotation=parseFloat(lt.rotation):n?(qe.y=n.top(),qe.x=n.left()):(qe.y=parseFloat(e.style.top||(l=De(e))&&l.top)||0,qe.x=parseFloat(e.style.left||(l||{}).left)||0),(S||L||C)&&!o&&(qe.isDragging||qe.isThrowing)&&(C&&(se.x=qe.x,se.y=qe.y,r=C(se),r.x!==qe.x&&(qe.x=r.x,y=!0),r.y!==qe.y&&(qe.y=r.y,y=!0)),S&&(r=S(qe.x),r!==qe.x&&(qe.x=r,We&&(qe.rotation=r),y=!0)),L&&(r=L(qe.y),r!==qe.y&&(qe.y=r),y=!0)),y&&dt(!0),t||(qe.deltaX=qe.x-i,qe.deltaY=qe.y-a,Ce(qe,"throwupdate","onThrowUpdate"))},ht=(e,t,o,n)=>(null==t&&(t=-ee),null==o&&(o=ee),V(e)?r=>{let l=qe.isPressed?1-qe.edgeResistance:1;return e.call(qe,r>o?o+(r-o)*l:r<t?t+(r-t)*l:r)*n}:Z(e)?n=>{let r,l,i=e.length,a=0,s=ee;for(;--i>-1;)r=e[i],l=r-n,l<0&&(l=-l),l<s&&r>=t&&r<=o&&(a=i,s=l);return e[a]}:isNaN(e)?e=>e:()=>e*n),gt=()=>{let o,r,l,i;s=!1,n?(n.calibrate(),qe.minX=h=-n.maxScrollLeft(),qe.minY=u=-n.maxScrollTop(),qe.maxX=p=qe.maxY=g=0,s=!0):t.bounds&&(o=Ne(t.bounds,e.parentNode),We?(qe.minX=h=o.left,qe.maxX=p=o.left+o.width,qe.minY=u=qe.maxY=g=0):G(t.bounds.maxX)&&G(t.bounds.maxY)?(r=Ne(e,e.parentNode),qe.minX=h=Math.round(at(ze,"px")+o.left-r.left),qe.minY=u=Math.round(at(Ve,"px")+o.top-r.top),qe.maxX=p=Math.round(h+(o.width-r.width)),qe.maxY=g=Math.round(u+(o.height-r.height))):(o=t.bounds,qe.minX=h=o.minX,qe.minY=u=o.minY,qe.maxX=p=o.maxX,qe.maxY=g=o.maxY),h>p&&(qe.minX=p,qe.maxX=p=h,h=qe.minX),u>g&&(qe.minY=g,qe.maxY=g=u,u=qe.minY),We&&(qe.minRotation=h,qe.maxRotation=p),s=!0),t.liveSnap&&(l=!0===t.liveSnap?t.snap||{}:t.liveSnap,i=Z(l)||V(l),We?(S=ht(i?l:l.rotation,h,p,1),L=null):l.points?C=((e,t,o,n,r,l,i)=>(l=l&&l<ee?l*l:ee,V(e)?a=>{let s,c,d,p=qe.isPressed?1-qe.edgeResistance:1,h=a.x,g=a.y;return a.x=h=h>o?o+(h-o)*p:h<t?t+(h-t)*p:h,a.y=g=g>r?r+(g-r)*p:g<n?n+(g-n)*p:g,s=e.call(qe,a),s!==a&&(a.x=s.x,a.y=s.y),1!==i&&(a.x*=i,a.y*=i),l<ee&&(c=a.x-h,d=a.y-g,c*c+d*d>l&&(a.x=h,a.y=g)),a}:Z(e)?t=>{let o,n,r,i,a=e.length,s=0,c=ee;for(;--a>-1;)r=e[a],o=r.x-t.x,n=r.y-t.y,i=o*o+n*n,i<c&&(s=a,c=i);return c<=l?e[s]:t}:e=>e))(i?l:l.points,h,p,u,g,l.radius,n?-1:1):(Ke&&(S=ht(i?l:l.x||l.left||l.scrollLeft,h,p,n?-1:1)),Ge&&(L=ht(i?l:l.y||l.top||l.scrollTop,u,g,n?-1:1))))},ut=()=>{qe.isThrowing=!1,Ce(qe,"throwcomplete","onThrowComplete")},ft=()=>{qe.isThrowing=!1},xt=(o,r)=>{let l,i,a,c;o&&A?(!0===o&&(l=t.snap||t.liveSnap||{},i=Z(l)||V(l),o={resistance:(t.throwResistance||t.resistance||1e3)/(We?10:1)},We?o.rotation=Re(qe,i?l:l.rotation,p,h,1,r):(Ke&&(o[ze]=Re(qe,i?l:l.points||l.x||l.left,p,h,n?-1:1,r||"x"===qe.lockedAxis)),Ge&&(o[Ve]=Re(qe,i?l:l.points||l.y||l.top,g,u,n?-1:1,r||"y"===qe.lockedAxis)),(l.points||Z(l)&&K(l[0]))&&(o.linkedProps=ze+","+Ve,o.radius=l.radius))),qe.isThrowing=!0,c=isNaN(t.overshootTolerance)?1===t.edgeResistance?0:1-qe.edgeResistance+.2:t.overshootTolerance,o.duration||(o.duration={max:Math.max(t.minDuration||0,"maxDuration"in t?t.maxDuration:2),min:isNaN(t.minDuration)?0===c||K(o)&&o.resistance>1e3?0:.5:t.minDuration,overshoot:c}),qe.tween=a=b.to(n||e,{inertia:o,data:"_draggable",onComplete:ut,onInterrupt:ft,onUpdate:t.fastMode?Ce:pt,onUpdateParams:t.fastMode?[qe,"onthrowupdate","onThrowUpdate"]:l&&l.radius?[!1,!0]:[]}),t.fastMode||(n&&(n._skip=!0),a.render(1e9,!0,!0),pt(!0,!0),qe.endX=qe.x,qe.endY=qe.y,We&&(qe.endRotation=qe.x),a.play(0),pt(!0,!0),n&&(n._skip=!1))):s&&qe.applyBounds()},mt=t=>{let o,n=W;W=w(e.parentNode,!0),t&&qe.isPressed&&!W.equals(n||new v)&&(o=n.inverse().apply({x:r,y:l}),W.apply(o,o),r=o.x,l=o.y),W.equals(te)&&(W=null)},yt=()=>{let t,o,c,d=1-qe.edgeResistance,f=it?be(st):0,x=it?we(st):0;mt(!1),Pe.x=qe.pointerX-f,Pe.y=qe.pointerY-x,W&&W.apply(Pe,Pe),r=Pe.x,l=Pe.y,y&&(Et(qe.pointerX,qe.pointerY),dt(!0)),Xe=w(e),n?(gt(),a=n.top(),i=n.left()):(vt()?(pt(!0,!0),gt()):qe.applyBounds(),We?(t=e.ownerSVGElement?[lt.xOrigin-e.getBBox().x,lt.yOrigin-e.getBBox().y]:(De(e)[$]||"0 0").split(" "),m=qe.rotationOrigin=w(e).apply({x:parseFloat(t[0])||0,y:parseFloat(t[1])||0}),pt(!0,!0),o=qe.pointerX-m.x-f,c=m.y-qe.pointerY+x,i=qe.x,a=qe.y=Math.atan2(c,o)*Q):(a=at(Ve,"px"),i=at(ze,"px"))),s&&d&&(i>p?i=p+(i-p)/d:i<h&&(i=h-(h-i)/d),We||(a>g?a=g+(a-g)/d:a<u&&(a=u-(u-a)/d))),qe.startX=i=j(i),qe.startY=a=j(a)},vt=()=>qe.tween&&qe.tween.isActive(),wt=()=>{!Y.parentNode||vt()||qe.isDragging||Y.parentNode.removeChild(Y)},bt=(i,a)=>{let s;if(!o||qe.isPressed||!i||!("mousedown"!==i.type&&"pointerdown"!==i.type||a)&&oe()-rt<30&&P[qe.pointerEvent.type])ye&&i&&o&&me(i);else{if(z=vt(),qe.pointerEvent=i,P[i.type]?(F=~i.type.indexOf("touch")?i.currentTarget||i.target:st,fe(F,"touchend",Mt),fe(F,"touchmove",Tt),fe(F,"touchcancel",Mt),fe(st,"touchstart",ve)):(F=null,fe(st,"mousemove",Tt)),q=null,I&&F||(fe(st,"mouseup",Mt),i&&i.target&&fe(i.target,"mouseup",Mt)),H=nt.call(qe,i.target)&&!1===t.dragClickables&&!a,H)return fe(i.target,"change",Mt),Ce(qe,"pressInit","onPressInit"),Ce(qe,"press","onPress"),Ae($e,!0),void(ye=!1);var p;if(U=!(!F||Ke===Ge||!1===qe.vars.allowNativeTouchScrolling||qe.vars.allowContextMenu&&i&&(i.ctrlKey||i.which>2))&&(Ke?"y":"x"),ye=!U&&!qe.allowEventDefault,ye&&(me(i),fe(T,"touchforcechange",me)),i.changedTouches?(i=f=i.changedTouches[0],x=i.identifier):i.pointerId?x=i.pointerId:f=x=null,O++,p=dt,ne.push(p),1===ne.length&&b.ticker.add(he),l=qe.pointerY=i.pageY,r=qe.pointerX=i.pageX,Ce(qe,"pressInit","onPressInit"),(U||qe.autoScroll)&&Se(e.parentNode),!e.parentNode||!qe.autoScroll||n||We||!e.parentNode._gsMaxScrollX||Y.parentNode||e.getBBox||(Y.style.width=e.parentNode.scrollWidth+"px",e.parentNode.appendChild(Y)),yt(),qe.tween&&qe.tween.kill(),qe.isThrowing=!1,b.killTweensOf(n||e,je,!0),n&&b.killTweensOf(e,{scrollTo:1},!0),qe.tween=qe.lockedAxis=null,(t.zIndexBoost||!We&&!n&&!1!==t.zIndexBoost)&&(e.style.zIndex=Fe.zIndex++),qe.isPressed=!0,c=!(!t.onDrag&&!qe._listeners.drag),d=!(!t.onMove&&!qe._listeners.move),!1!==t.cursor||t.activeCursor)for(s=$e.length;--s>-1;)b.set($e[s],{cursor:t.activeCursor||t.cursor||("grab"===B?"grabbing":B)});Ce(qe,"press","onPress")}},Tt=t=>{let n,i,a,s,c,p,h=t;if(o&&!R&&qe.isPressed&&t){if(qe.pointerEvent=t,n=t.changedTouches,n){if((t=n[0])!==f&&t.identifier!==x){for(s=n.length;--s>-1&&(t=n[s]).identifier!==x&&t.target!==e;);if(s<0)return}}else if(t.pointerId&&x&&t.pointerId!==x)return;F&&U&&!q&&(Pe.x=t.pageX-(it?be(st):0),Pe.y=t.pageY-(it?we(st):0),W&&W.apply(Pe,Pe),i=Pe.x,a=Pe.y,c=Math.abs(i-r),p=Math.abs(a-l),(c!==p&&(c>Ue||p>Ue)||_&&U===q)&&(q=c>p&&Ke?"x":"y",U&&q!==U&&fe(T,"touchforcechange",me),!1!==qe.vars.lockAxisOnTouchScroll&&Ke&&Ge&&(qe.lockedAxis="x"===q?"y":"x",V(qe.vars.onLockAxis)&&qe.vars.onLockAxis.call(qe,h)),_&&U===q))?Mt(h):(qe.allowEventDefault||U&&(!q||U===q)||!1===h.cancelable?ye&&(ye=!1):(me(h),ye=!0),qe.autoScroll&&(Je=!0),Et(t.pageX,t.pageY,d))}else ye&&t&&o&&me(t)},Et=(e,t,o)=>{let n,c,d,f,x,v,w=1-qe.dragResistance,b=1-qe.edgeResistance,T=qe.pointerX,E=qe.pointerY,M=a,X=qe.x,Y=qe.y,D=qe.endX,k=qe.endY,N=qe.endRotation,P=y;qe.pointerX=e,qe.pointerY=t,it&&(e-=be(st),t-=we(st)),We?(f=Math.atan2(m.y-t,e-m.x)*Q,x=qe.y-f,x>180?(a-=360,qe.y=f):x<-180&&(a+=360,qe.y=f),qe.x!==i||Math.abs(a-f)>Ue?(qe.y=f,d=i+(a-f)*w):d=i):(W&&(v=e*W.a+t*W.c+W.e,t=e*W.b+t*W.d+W.f,e=v),c=t-l,n=e-r,c<Ue&&c>-Ue&&(c=0),n<Ue&&n>-Ue&&(n=0),(qe.lockAxis||qe.lockedAxis)&&(n||c)&&(v=qe.lockedAxis,v||(qe.lockedAxis=v=Ke&&Math.abs(n)>Math.abs(c)?"y":Ge?"x":null,v&&V(qe.vars.onLockAxis)&&qe.vars.onLockAxis.call(qe,qe.pointerEvent)),"y"===v?c=0:"x"===v&&(n=0)),d=j(i+n*w),f=j(a+c*w)),(S||L||C)&&(qe.x!==d||qe.y!==f&&!We)&&(C&&(se.x=d,se.y=f,v=C(se),d=j(v.x),f=j(v.y)),S&&(d=j(S(d))),L&&(f=j(L(f)))),s&&(d>p?d=p+Math.round((d-p)*b):d<h&&(d=h+Math.round((d-h)*b)),We||(f>g?f=Math.round(g+(f-g)*b):f<u&&(f=Math.round(u+(f-u)*b)))),(qe.x!==d||qe.y!==f&&!We)&&(We?(qe.endRotation=qe.x=qe.endX=d,y=!0):(Ge&&(qe.y=qe.endY=f,y=!0),Ke&&(qe.x=qe.endX=d,y=!0)),o&&!1===Ce(qe,"move","onMove")?(qe.pointerX=T,qe.pointerY=E,a=M,qe.x=X,qe.y=Y,qe.endX=D,qe.endY=k,qe.endRotation=N,y=P):!qe.isDragging&&qe.isPressed&&(qe.isDragging=!0,Ce(qe,"dragstart","onDragStart")))},Mt=(n,r)=>{if(!o||!qe.isPressed||n&&null!=x&&!r&&(n.pointerId&&n.pointerId!==x&&n.target!==e||n.changedTouches&&!((e,t)=>{let o=e.length;for(;o--;)if(e[o].identifier===t)return!0})(n.changedTouches,x)))return void(ye&&n&&o&&me(n));qe.isPressed=!1;let l,i,a,s,c,d=n,p=qe.isDragging,h=qe.vars.allowContextMenu&&n&&(n.ctrlKey||n.which>2),g=b.delayedCall(.001,wt);if(F?(xe(F,"touchend",Mt),xe(F,"touchmove",Tt),xe(F,"touchcancel",Mt),xe(st,"touchstart",ve)):xe(st,"mousemove",Tt),xe(T,"touchforcechange",me),I&&F||(xe(st,"mouseup",Mt),n&&n.target&&xe(n.target,"mouseup",Mt)),y=!1,p&&(Ze=ae=oe(),qe.isDragging=!1),H&&!h)return n&&(xe(n.target,"change",Mt),qe.pointerEvent=d),Ae($e,!1),Ce(qe,"release","onRelease"),Ce(qe,"click","onClick"),void(H=!1);for(ue(dt),i=$e.length;--i>-1;)Ye($e[i],"cursor",t.cursor||(!1!==t.cursor?B:null));if(O--,n){if(l=n.changedTouches,l&&(n=l[0])!==f&&n.identifier!==x){for(i=l.length;--i>-1&&(n=l[i]).identifier!==x&&n.target!==e;);if(i<0)return}qe.pointerEvent=d,qe.pointerX=n.pageX,qe.pointerY=n.pageY}return h&&d?(me(d),ye=!0,Ce(qe,"release","onRelease")):d&&!p?(ye=!1,z&&(t.snap||t.bounds)&&xt(t.inertia||t.throwProps),Ce(qe,"release","onRelease"),_&&"touchmove"===d.type||-1!==d.type.indexOf("cancel")||(Ce(qe,"click","onClick"),oe()-rt<300&&Ce(qe,"doubleclick","onDoubleClick"),s=d.target||e,rt=oe(),c=()=>{rt===ie||!qe.enabled()||qe.isPressed||d.defaultPrevented||(s.click?s.click():st.createEvent&&(a=st.createEvent("MouseEvents"),a.initMouseEvent("click",!0,!0,T,1,qe.pointerEvent.screenX,qe.pointerEvent.screenY,qe.pointerX,qe.pointerY,!1,!1,!1,!1,0,null),s.dispatchEvent(a)))},_||d.defaultPrevented||b.delayedCall(.05,c))):(xt(t.inertia||t.throwProps),qe.allowEventDefault||!d||!1===t.dragClickables&&nt.call(qe,d.target)||!p||U&&(!q||U!==q)||!1===d.cancelable?ye=!1:(ye=!0,me(d)),Ce(qe,"release","onRelease")),vt()&&g.duration(qe.tween.duration()),p&&Ce(qe,"dragend","onDragEnd"),!0},Xt=t=>{if(t&&qe.isDragging&&!n){let o=t.target||e.parentNode,n=o.scrollLeft-o._gsScrollX,i=o.scrollTop-o._gsScrollY;(n||i)&&(W?(r-=n*W.a+i*W.c,l-=i*W.d+n*W.b):(r-=n,l-=i),o._gsScrollX+=n,o._gsScrollY+=i,Et(qe.pointerX,qe.pointerY))}},St=e=>{let t=oe(),o=t-rt<100,n=t-Ze<50,r=o&&ie===rt,l=qe.pointerEvent&&qe.pointerEvent.defaultPrevented,i=o&&ge===rt,a=e.isTrusted||null==e.isTrusted&&o&&r;if((r||n&&!1!==qe.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),o&&(!qe.pointerEvent||!qe.pointerEvent.defaultPrevented)&&(!r||a&&!i))return a&&r&&(ge=rt),void(ie=rt);(qe.isPressed||n||o)&&(a&&e.detail&&o&&!l||me(e)),o||n||(e&&e.target&&(qe.pointerEvent=e),Ce(qe,"click","onClick"))},Yt=e=>W?{x:e.x*W.a+e.y*W.c+W.e,y:e.x*W.b+e.y*W.d+W.f}:{x:e.x,y:e.y};X=Fe.get(e),X&&X.kill(),this.startDrag=(t,o)=>{let n,i,a,s;bt(t||qe.pointerEvent,!0),o&&!qe.hitTest(t||qe.pointerEvent)&&(n=ke(t||qe.pointerEvent),i=ke(e),a=Yt({x:n.left+n.width/2,y:n.top+n.height/2}),s=Yt({x:i.left+i.width/2,y:i.top+i.height/2}),r-=a.x-s.x,l-=a.y-s.y),qe.isDragging||(qe.isDragging=!0,Ce(qe,"dragstart","onDragStart"))},this.drag=Tt,this.endDrag=e=>Mt(e||qe.pointerEvent,!0),this.timeSinceDrag=()=>qe.isDragging?0:(oe()-Ze)/1e3,this.timeSinceClick=()=>(oe()-rt)/1e3,this.hitTest=(e,t)=>Fe.hitTest(qe.target,e,t),this.getDirection=(t,o)=>{let n,r,l,s,c,d,p="velocity"===t&&A?t:K(t)&&!We?"element":"start";return"element"===p&&(c=ke(qe.target),d=ke(t)),n="start"===p?qe.x-i:"velocity"===p?A.getVelocity(e,ze):c.left+c.width/2-(d.left+d.width/2),We?n<0?"counter-clockwise":"clockwise":(o=o||2,r="start"===p?qe.y-a:"velocity"===p?A.getVelocity(e,Ve):c.top+c.height/2-(d.top+d.height/2),l=Math.abs(n/r),s=l<1/o?"":n<0?"left":"right",l<o&&(""!==s&&(s+="-"),s+=r<0?"up":"down"),s)},this.applyBounds=(o,n)=>{let r,l,i,a,c,d;if(o&&t.bounds!==o)return t.bounds=o,qe.update(!0,n);if(pt(!0),gt(),s&&!vt()){if(r=qe.x,l=qe.y,r>p?r=p:r<h&&(r=h),l>g?l=g:l<u&&(l=u),(qe.x!==r||qe.y!==l)&&(i=!0,qe.x=qe.endX=r,We?qe.endRotation=r:qe.y=qe.endY=l,y=!0,dt(!0),qe.autoScroll&&!qe.isDragging))for(Se(e.parentNode),a=e,ce.scrollTop=null!=T.pageYOffset?T.pageYOffset:null!=st.documentElement.scrollTop?st.documentElement.scrollTop:st.body.scrollTop,ce.scrollLeft=null!=T.pageXOffset?T.pageXOffset:null!=st.documentElement.scrollLeft?st.documentElement.scrollLeft:st.body.scrollLeft;a&&!d;)d=Me(a.parentNode),c=d?ce:a.parentNode,Ge&&c.scrollTop>c._gsMaxScrollY&&(c.scrollTop=c._gsMaxScrollY),Ke&&c.scrollLeft>c._gsMaxScrollX&&(c.scrollLeft=c._gsMaxScrollX),a=c;qe.isThrowing&&(i||qe.endX>p||qe.endX<h||qe.endY>g||qe.endY<u)&&xt(t.inertia||t.throwProps,i)}return qe},this.update=(t,o,n)=>{if(o&&qe.isPressed){let t=w(e),o=Xe.apply({x:qe.x-i,y:qe.y-a}),n=w(e.parentNode,!0);n.apply({x:t.e-o.x,y:t.f-o.y},o),qe.x-=o.x-n.e,qe.y-=o.y-n.f,dt(!0),yt()}let{x:r,y:l}=qe;return mt(!o),t?qe.applyBounds():(y&&n&&dt(!0),pt(!0)),o&&(Et(qe.pointerX,qe.pointerY),y&&dt(!0)),qe.isPressed&&!o&&(Ke&&Math.abs(r-qe.x)>.01||Ge&&Math.abs(l-qe.y)>.01&&!We)&&yt(),qe.autoScroll&&(Se(e.parentNode,qe.isDragging),Je=qe.isDragging,dt(!0),Ee(e,Xt),Te(e,Xt)),qe},this.enable=r=>{let l,i,a,s={lazy:!0};if(!1!==t.cursor&&(s.cursor=t.cursor||B),b.utils.checkPrefix("touchCallout")&&(s.touchCallout="none"),"soft"!==r){for(pe($e,Ke===Ge?"none":t.allowNativeTouchScrolling&&e.scrollHeight===e.clientHeight==(e.scrollWidth===e.clientHeight)||t.allowEventDefault?"manipulation":Ke?"pan-y":"pan-x"),i=$e.length;--i>-1;)a=$e[i],I||fe(a,"mousedown",bt),fe(a,"touchstart",bt),fe(a,"click",St,!0),b.set(a,s),a.getBBox&&a.ownerSVGElement&&b.set(a.ownerSVGElement,{touchAction:Ke===Ge?"none":t.allowNativeTouchScrolling||t.allowEventDefault?"manipulation":Ke?"pan-y":"pan-x"}),t.allowContextMenu||fe(a,"contextmenu",ct);Ae($e,!1)}return Te(e,Xt),o=!0,A&&"soft"!==r&&A.track(n||e,Oe?"x,y":We?"rotation":"top,left"),e._gsDragID=l="d"+le++,re[l]=qe,n&&(n.enable(),n.element._gsDragID=l),(t.bounds||We)&&yt(),t.bounds&&qe.applyBounds(),qe},this.disable=t=>{let r,l=qe.isDragging,i=$e.length;for(;--i>-1;)Ye($e[i],"cursor",null);if("soft"!==t){for(pe($e,null),i=$e.length;--i>-1;)r=$e[i],Ye(r,"touchCallout",null),xe(r,"mousedown",bt),xe(r,"touchstart",bt),xe(r,"click",St),xe(r,"contextmenu",ct);Ae($e,!0),F&&(xe(F,"touchcancel",Mt),xe(F,"touchend",Mt),xe(F,"touchmove",Tt)),xe(st,"mouseup",Mt),xe(st,"mousemove",Tt)}return Ee(e,Xt),o=!1,A&&"soft"!==t&&A.untrack(n||e,Oe?"x,y":We?"rotation":"top,left"),n&&n.disable(),ue(dt),qe.isDragging=qe.isPressed=H=!1,l&&Ce(qe,"dragend","onDragEnd"),qe},this.enabled=function(e,t){return arguments.length?e?qe.enable(t):qe.disable(t):o},this.kill=function(){return qe.isThrowing=!1,qe.tween&&qe.tween.kill(),qe.disable(),b.set($e,{clearProps:"userSelect"}),delete re[e._gsDragID],qe},~Le.indexOf("scroll")&&(n=this.scrollProxy=new Ie(e,((e,t)=>{for(let o in t)o in e||(e[o]=t[o]);return e})({onKill:function(){qe.isPressed&&Mt(null)}},t)),e.style.overflowY=Ge&&!N?"auto":"hidden",e.style.overflowX=Ke&&!N?"auto":"hidden",e=n.content),We?je.rotation=1:(Ke&&(je[ze]=1),Ge&&(je[Ve]=1)),lt.force3D=!("force3D"in t)||t.force3D,this.enable()}static register(e){b=e,He()}static create(e,t){return D||He(!0),k(e).map(e=>new Fe(e,t))}static get(e){return re[(k(e)[0]||{})._gsDragID]}static timeSinceDrag(){return(oe()-ae)/1e3}static hitTest(e,t,o){if(e===t)return!1;let n,r,l,i=ke(e),a=ke(t),{top:s,left:c,right:d,bottom:p,width:h,height:g}=i,u=a.left>d||a.right<c||a.top>p||a.bottom<s;return u||!o?!u:(l=-1!==(o+"").indexOf("%"),o=parseFloat(o)||0,n={left:Math.max(c,a.left),top:Math.max(s,a.top)},n.width=Math.min(d,a.right)-n.left,n.height=Math.min(p,a.bottom)-n.top,!(n.width<0||n.height<0)&&(l?(o*=.01,r=n.width*n.height,r>=h*g*o||r>=a.width*a.height*o):n.width>o&&n.height>o))}}((e,t)=>{for(let o in t)o in e||(e[o]=t[o])})(Fe.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),Fe.zIndex=1e3,Fe.version="3.10.3",z()&&b.registerPlugin(Fe);export default Fe;export{Fe as Draggable}; |
/*! | ||
* DrawSVGPlugin 3.10.2 | ||
* DrawSVGPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
let e,t,n,i,r,s=()=>"undefined"!=typeof window,o=()=>e||s()&&(e=window.gsap)&&e.registerPlugin&&e,a=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,d={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},l=e=>Math.round(1e4*e)/1e4,h=e=>parseFloat(e)||0,f=(e,t)=>{let n=h(e);return~e.indexOf("%")?n/100*t:n},g=(e,t)=>h(e.getAttribute(t)),u=Math.sqrt,c=(e,t,n,i,r,s)=>u(((h(n)-h(e))*r)**2+((h(i)-h(t))*s)**2),p=e=>console.warn(e),w=e=>"non-scaling-stroke"===e.getAttribute("vector-effect"),_=function(){return String.fromCharCode.apply(null,arguments)},y=_(103,114,101,101,110,115,111,99,107,46,99,111,109),x=function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(_(102,105,108,101,58,47,47))||-1!==e.indexOf(_(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(_(49,50,55,46,48,32,48,46,49)),i=[y,_(99,111,100,101,112,101,110,46,105,111),_(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),_(99,111,100,101,112,101,110,46,100,101,118),_(99,111,100,101,112,101,110,46,97,112,112),_(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),_(112,101,110,115,46,99,108,111,117,100),_(99,115,115,45,116,114,105,99,107,115,46,99,111,109),_(99,100,112,110,46,105,111),_(112,101,110,115,46,105,111),_(103,97,110,110,111,110,46,116,118),_(99,111,100,101,99,97,110,121,111,110,46,110,101,116),_(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),_(99,101,114,101,98,114,97,120,46,99,111,46,117,107),_(116,121,109,112,97,110,117,115,46,110,101,116),_(116,119,101,101,110,109,97,120,46,99,111,109),_(116,119,101,101,110,108,105,116,101,46,99,111,109),_(112,108,110,107,114,46,99,111),_(104,111,116,106,97,114,46,99,111,109),_(119,101,98,112,97,99,107,98,105,110,46,99,111,109),_(97,114,99,104,105,118,101,46,111,114,103),_(99,111,100,101,115,97,110,100,98,111,120,46,105,111),_(99,115,98,46,97,112,112),_(115,116,97,99,107,98,108,105,116,122,46,99,111,109),_(115,116,97,99,107,98,108,105,116,122,46,105,111),_(99,111,100,105,101,114,46,105,111),_(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),_(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),_(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),_(106,115,102,105,100,100,108,101,46,110,101,116)],r=function(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",r):(document.removeEventListener("readystatechange",r),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(_(37,99,87,97,114,110,105,110,103),_(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(_(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"DrawSVGPlugin"+_(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(_(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),_(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},s=i.length;for(setTimeout(r,50);--s>-1;)if(-1!==e.indexOf(i[s]))return!0;return n||!setTimeout((function(){t&&(window.location.href=_(104,116,116,112,115,58,47,47)+y+_(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=DrawSVGPlugin&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),m=e=>{if(!(e=t(e)[0]))return 0;let n,i,r,s,o,l,h,f=e.tagName.toLowerCase(),_=e.style,y=1,x=1;w(e)&&(x=e.getScreenCTM(),y=u(x.a*x.a+x.b*x.b),x=u(x.d*x.d+x.c*x.c));try{i=e.getBBox()}catch(e){p("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}let{x:m,y:b,width:k,height:v}=i||{x:0,y:0,width:0,height:0};if(i&&(k||v)||!d[f]||(k=g(e,d[f][0]),v=g(e,d[f][1]),"rect"!==f&&"line"!==f&&(k*=2,v*=2),"line"===f&&(m=g(e,"x1"),b=g(e,"y1"),k=Math.abs(k-m),v=Math.abs(v-b))),"path"===f)s=_.strokeDasharray,_.strokeDasharray="none",n=e.getTotalLength()||0,y!==x&&p("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),n*=(y+x)/2,_.strokeDasharray=s;else if("rect"===f)n=2*k*y+2*v*x;else if("line"===f)n=c(m,b,m+k,b+v,y,x);else if("polyline"===f||"polygon"===f)for(r=e.getAttribute("points").match(a)||[],"polygon"===f&&r.push(r[0],r[1]),n=0,o=2;o<r.length;o+=2)n+=c(r[o-2],r[o-1],r[o],r[o+1],y,x)||0;else"circle"!==f&&"ellipse"!==f||(l=k/2*y,h=v/2*x,n=Math.PI*(3*(l+h)-u((3*l+h)*(l+3*h))));return n||0},b=(e,i)=>{if(!(e=t(e)[0]))return[0,0];i||(i=m(e)+1);let r=n.getComputedStyle(e),s=r.strokeDasharray||"",o=h(r.strokeDashoffset),a=s.indexOf(",");return a<0&&(a=s.indexOf(" ")),s=a<0?i:h(s.substr(0,a)),s>i&&(s=i),[-o||0,s-o||0]},k=()=>{s()&&(n=window,r=e=o(),t=e.utils.toArray,i=-1!==((n.navigator||{}).userAgent||"").indexOf("Edge"))};const v={version:"3.10.2",name:"drawSVG",register(t){e=t,k()},init(e,t,s,o,a){if(!e.getBBox)return!1;r||k();let d,g,u,c=m(e);return this._style=e.style,this._target=e,t+""=="true"?t="0 100%":t?-1===(t+"").indexOf(" ")&&(t="0 "+t):t="0 0",d=b(e,c),g=((e,t,n)=>{let i,r,s=e.indexOf(" ");return s<0?(i=void 0!==n?n+"":e,r=e):(i=e.substr(0,s),r=e.substr(s+1)),i=f(i,t),r=f(r,t),i>r?[r,i]:[i,r]})(t,c,d[0]),this._length=l(c),this._dash=l(d[1]-d[0]),this._offset=l(-d[0]),this._dashPT=this.add(this,"_dash",this._dash,l(g[1]-g[0])),this._offsetPT=this.add(this,"_offset",this._offset,l(-g[0])),i&&(u=n.getComputedStyle(e),u.strokeLinecap!==u.strokeLinejoin&&(g=h(u.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",g,g+.01))),this._live=w(e)||~(t+"").indexOf("live"),this._nowrap=~(t+"").indexOf("nowrap"),this._props.push("drawSVG"),x},render(e,t){let n,i,r,s,o=t._pt,a=t._style;if(o){for(t._live&&(n=m(t._target),n!==t._length&&(i=n/t._length,t._length=n,t._offsetPT&&(t._offsetPT.s*=i,t._offsetPT.c*=i),t._dashPT?(t._dashPT.s*=i,t._dashPT.c*=i):t._dash*=i));o;)o.r(e,o.d),o=o._next;r=t._dash||(e&&1!==e?1e-4:0),n=t._length-r+.1,s=t._offset,r&&s&&r+Math.abs(s%t._length)>t._length-.2&&(s+=s<0?.1:-.1)&&(n+=.1),a.strokeDashoffset=r?s:s+.001,a.strokeDasharray=n<.2?"none":r?r+"px,"+(t._nowrap?999999:n)+"px":"0px, 999999px"}},getLength:m,getPosition:b};o()&&e.registerPlugin(v);export default v;export{v as DrawSVGPlugin}; | ||
let e,t,n,i,r,s=()=>"undefined"!=typeof window,o=()=>e||s()&&(e=window.gsap)&&e.registerPlugin&&e,a=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,d={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},l=e=>Math.round(1e4*e)/1e4,h=e=>parseFloat(e)||0,f=(e,t)=>{let n=h(e);return~e.indexOf("%")?n/100*t:n},g=(e,t)=>h(e.getAttribute(t)),u=Math.sqrt,c=(e,t,n,i,r,s)=>u(((h(n)-h(e))*r)**2+((h(i)-h(t))*s)**2),p=e=>console.warn(e),w=e=>"non-scaling-stroke"===e.getAttribute("vector-effect"),_=function(){return String.fromCharCode.apply(null,arguments)},y=_(103,114,101,101,110,115,111,99,107,46,99,111,109),x=function(e){var t="undefined"!=typeof window,n=0===(t?window.location.href:"").indexOf(_(102,105,108,101,58,47,47))||-1!==e.indexOf(_(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(_(49,50,55,46,48,32,48,46,49)),i=[y,_(99,111,100,101,112,101,110,46,105,111),_(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),_(99,111,100,101,112,101,110,46,100,101,118),_(99,111,100,101,112,101,110,46,97,112,112),_(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),_(112,101,110,115,46,99,108,111,117,100),_(99,115,115,45,116,114,105,99,107,115,46,99,111,109),_(99,100,112,110,46,105,111),_(112,101,110,115,46,105,111),_(103,97,110,110,111,110,46,116,118),_(99,111,100,101,99,97,110,121,111,110,46,110,101,116),_(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),_(99,101,114,101,98,114,97,120,46,99,111,46,117,107),_(116,121,109,112,97,110,117,115,46,110,101,116),_(116,119,101,101,110,109,97,120,46,99,111,109),_(116,119,101,101,110,108,105,116,101,46,99,111,109),_(112,108,110,107,114,46,99,111),_(104,111,116,106,97,114,46,99,111,109),_(119,101,98,112,97,99,107,98,105,110,46,99,111,109),_(97,114,99,104,105,118,101,46,111,114,103),_(99,111,100,101,115,97,110,100,98,111,120,46,105,111),_(99,115,98,46,97,112,112),_(115,116,97,99,107,98,108,105,116,122,46,99,111,109),_(115,116,97,99,107,98,108,105,116,122,46,105,111),_(99,111,100,105,101,114,46,105,111),_(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),_(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),_(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),_(106,115,102,105,100,100,108,101,46,110,101,116)],r=function(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",r):(document.removeEventListener("readystatechange",r),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(_(37,99,87,97,114,110,105,110,103),_(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(_(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"DrawSVGPlugin"+_(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(_(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),_(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},s=i.length;for(setTimeout(r,50);--s>-1;)if(-1!==e.indexOf(i[s]))return!0;return n||!setTimeout((function(){t&&(window.location.href=_(104,116,116,112,115,58,47,47)+y+_(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=DrawSVGPlugin&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),m=e=>{if(!(e=t(e)[0]))return 0;let n,i,r,s,o,l,h,f=e.tagName.toLowerCase(),_=e.style,y=1,x=1;w(e)&&(x=e.getScreenCTM(),y=u(x.a*x.a+x.b*x.b),x=u(x.d*x.d+x.c*x.c));try{i=e.getBBox()}catch(e){p("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}let{x:m,y:b,width:k,height:v}=i||{x:0,y:0,width:0,height:0};if(i&&(k||v)||!d[f]||(k=g(e,d[f][0]),v=g(e,d[f][1]),"rect"!==f&&"line"!==f&&(k*=2,v*=2),"line"===f&&(m=g(e,"x1"),b=g(e,"y1"),k=Math.abs(k-m),v=Math.abs(v-b))),"path"===f)s=_.strokeDasharray,_.strokeDasharray="none",n=e.getTotalLength()||0,y!==x&&p("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),n*=(y+x)/2,_.strokeDasharray=s;else if("rect"===f)n=2*k*y+2*v*x;else if("line"===f)n=c(m,b,m+k,b+v,y,x);else if("polyline"===f||"polygon"===f)for(r=e.getAttribute("points").match(a)||[],"polygon"===f&&r.push(r[0],r[1]),n=0,o=2;o<r.length;o+=2)n+=c(r[o-2],r[o-1],r[o],r[o+1],y,x)||0;else"circle"!==f&&"ellipse"!==f||(l=k/2*y,h=v/2*x,n=Math.PI*(3*(l+h)-u((3*l+h)*(l+3*h))));return n||0},b=(e,i)=>{if(!(e=t(e)[0]))return[0,0];i||(i=m(e)+1);let r=n.getComputedStyle(e),s=r.strokeDasharray||"",o=h(r.strokeDashoffset),a=s.indexOf(",");return a<0&&(a=s.indexOf(" ")),s=a<0?i:h(s.substr(0,a)),s>i&&(s=i),[-o||0,s-o||0]},k=()=>{s()&&(n=window,r=e=o(),t=e.utils.toArray,i=-1!==((n.navigator||{}).userAgent||"").indexOf("Edge"))};const v={version:"3.10.3",name:"drawSVG",register(t){e=t,k()},init(e,t,s,o,a){if(!e.getBBox)return!1;r||k();let d,g,u,c=m(e);return this._style=e.style,this._target=e,t+""=="true"?t="0 100%":t?-1===(t+"").indexOf(" ")&&(t="0 "+t):t="0 0",d=b(e,c),g=((e,t,n)=>{let i,r,s=e.indexOf(" ");return s<0?(i=void 0!==n?n+"":e,r=e):(i=e.substr(0,s),r=e.substr(s+1)),i=f(i,t),r=f(r,t),i>r?[r,i]:[i,r]})(t,c,d[0]),this._length=l(c),this._dash=l(d[1]-d[0]),this._offset=l(-d[0]),this._dashPT=this.add(this,"_dash",this._dash,l(g[1]-g[0])),this._offsetPT=this.add(this,"_offset",this._offset,l(-g[0])),i&&(u=n.getComputedStyle(e),u.strokeLinecap!==u.strokeLinejoin&&(g=h(u.strokeMiterlimit),this.add(e.style,"strokeMiterlimit",g,g+.01))),this._live=w(e)||~(t+"").indexOf("live"),this._nowrap=~(t+"").indexOf("nowrap"),this._props.push("drawSVG"),x},render(e,t){let n,i,r,s,o=t._pt,a=t._style;if(o){for(t._live&&(n=m(t._target),n!==t._length&&(i=n/t._length,t._length=n,t._offsetPT&&(t._offsetPT.s*=i,t._offsetPT.c*=i),t._dashPT?(t._dashPT.s*=i,t._dashPT.c*=i):t._dash*=i));o;)o.r(e,o.d),o=o._next;r=t._dash||(e&&1!==e?1e-4:0),n=t._length-r+.1,s=t._offset,r&&s&&r+Math.abs(s%t._length)>t._length-.2&&(s+=s<0?.1:-.1)&&(n+=.1),a.strokeDashoffset=r?s:s+.001,a.strokeDasharray=n<.2?"none":r?r+"px,"+(t._nowrap?999999:n)+"px":"0px, 999999px"}},getLength:m,getPosition:b};o()&&e.registerPlugin(v);export default v;export{v as DrawSVGPlugin}; |
/*! | ||
* EaselPlugin 3.10.2 | ||
* EaselPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
let e,t,r,l,i,s,o="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),n=()=>"undefined"!=typeof window,a=()=>e||n()&&(e=window.gsap)&&e.registerPlugin&&e,u=()=>l||r&&r.createjs||r||{},f=e=>console.warn(e),h=e=>{let t=e.getBounds&&e.getBounds();t||(t=e.nominalBounds||{x:0,y:0,width:100,height:100},e.setBounds&&e.setBounds(t.x,t.y,t.width,t.height)),e.cache&&e.cache(t.x,t.y,t.width,t.height),f("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. "+e)},c=(t,r,l)=>{i||(i=u().ColorFilter,i||f("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded."));let s,n,a,c,p,d,g=t.filters||[],b=g.length;for(;b--;)if(g[b]instanceof i){n=g[b];break}if(n||(n=new i,g.push(n),t.filters=g),a=n.clone(),null!=r.tint)s=e.utils.splitColor(r.tint),c=null!=r.tintAmount?+r.tintAmount:1,a.redOffset=+s[0]*c,a.greenOffset=+s[1]*c,a.blueOffset=+s[2]*c,a.redMultiplier=a.greenMultiplier=a.blueMultiplier=1-c;else for(p in r)"exposure"!==p&&"brightness"!==p&&(a[p]=+r[p]);for(null!=r.exposure?(a.redOffset=a.greenOffset=a.blueOffset=255*(+r.exposure-1),a.redMultiplier=a.greenMultiplier=a.blueMultiplier=1):null!=r.brightness&&(c=+r.brightness-1,a.redOffset=a.greenOffset=a.blueOffset=c>0?255*c:0,a.redMultiplier=a.greenMultiplier=a.blueMultiplier=1-Math.abs(c)),b=8;b--;)p=o[b],n[p]!==a[p]&&(d=l.add(n,p,n[p],a[p]),d&&(d.op="easel_colorFilter"));l._props.push("easel_colorFilter"),t.cacheID||h(t)},p=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],d=.212671,g=.71516,b=.072169,M=(e,t)=>{if(!(e instanceof Array&&t instanceof Array))return t;let r,l,i=[],s=0,o=0;for(r=0;r<4;r++){for(l=0;l<5;l++)o=4===l?e[s+4]:0,i[s+l]=e[s]*t[l]+e[s+1]*t[l+5]+e[s+2]*t[l+10]+e[s+3]*t[l+15]+o;s+=5}return i},m=(t,r,l)=>{s||(s=u().ColorMatrixFilter,s||f("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded."));let i,o,n,a,c=t.filters||[],m=c.length;for(;--m>-1;)if(c[m]instanceof s){n=c[m];break}var x,w;for(n||(n=new s(p.slice()),c.push(n),t.filters=c),o=n.matrix,i=p.slice(),null!=r.colorize&&(i=((t,r,l)=>{isNaN(l)&&(l=1);let i=e.utils.splitColor(r),s=i[0]/255,o=i[1]/255,n=i[2]/255,a=1-l;return M([a+l*s*d,l*s*g,l*s*b,0,0,l*o*d,a+l*o*g,l*o*b,0,0,l*n*d,l*n*g,a+l*n*b,0,0,0,0,0,1,0],t)})(i,r.colorize,Number(r.colorizeAmount))),null!=r.contrast&&(x=i,w=Number(r.contrast),i=isNaN(w)?x:M([w+=.01,0,0,0,128*(1-w),0,w,0,0,128*(1-w),0,0,w,0,128*(1-w),0,0,0,1,0],x)),null!=r.hue&&(i=((e,t)=>{if(isNaN(t))return e;t*=Math.PI/180;let r=Math.cos(t),l=Math.sin(t);return M([d+r*(1-d)+l*-d,g+r*-g+l*-g,b+r*-b+l*(1-b),0,0,d+r*-d+.143*l,g+.28484*r+.14*l,b+r*-b+-.283*l,0,0,d+r*-d+-.787329*l,g+r*-g+l*g,b+r*(1-b)+l*b,0,0,0,0,0,1,0,0,0,0,0,1],e)})(i,Number(r.hue))),null!=r.saturation&&(i=((e,t)=>{if(isNaN(t))return e;let r=1-t,l=r*d,i=r*g,s=r*b;return M([l+t,i,s,0,0,l,i+t,s,0,0,l,i,s+t,0,0,0,0,0,1,0],e)})(i,Number(r.saturation))),m=i.length;--m>-1;)i[m]!==o[m]&&(a=l.add(o,m,o[m],i[m]),a&&(a.op="easel_colorMatrixFilter"));l._props.push("easel_colorMatrixFilter"),t.cacheID||h(),l._matrix=o},x=l=>{e=l||a(),n()&&(r=window),e&&(t=1)};const w={version:"3.10.2",name:"easel",init(r,l,i,s,o){let n,a,u,h,p,d,g;for(n in t||(x(),e||f("Please gsap.registerPlugin(EaselPlugin)")),this.target=r,l)if(p=l[n],"colorFilter"===n||"tint"===n||"tintAmount"===n||"exposure"===n||"brightness"===n)u||(c(r,l.colorFilter||l,this),u=!0);else if("saturation"===n||"contrast"===n||"hue"===n||"colorize"===n||"colorizeAmount"===n)h||(m(r,l.colorMatrixFilter||l,this),h=!0);else if("frame"===n){if("string"==typeof p&&"="!==p.charAt(1)&&(d=r.labels))for(g=0;g<d.length;g++)d[g].label===p&&(p=d[g].position);a=this.add(r,"gotoAndStop",r.currentFrame,p,s,o,Math.round),a&&(a.op=n)}else null!=r[n]&&this.add(r,n,"get",p)},render(e,t){let r=t._pt;for(;r;)r.r(e,r.d),r=r._next;t.target.cacheID&&t.target.updateCache()},register:x,registerCreateJS:e=>{l=e}};a()&&e.registerPlugin(w);export default w;export{w as EaselPlugin}; | ||
let e,t,r,l,i,s,o="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),n=()=>"undefined"!=typeof window,a=()=>e||n()&&(e=window.gsap)&&e.registerPlugin&&e,u=()=>l||r&&r.createjs||r||{},f=e=>console.warn(e),h=e=>{let t=e.getBounds&&e.getBounds();t||(t=e.nominalBounds||{x:0,y:0,width:100,height:100},e.setBounds&&e.setBounds(t.x,t.y,t.width,t.height)),e.cache&&e.cache(t.x,t.y,t.width,t.height),f("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. "+e)},c=(t,r,l)=>{i||(i=u().ColorFilter,i||f("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded."));let s,n,a,c,p,d,g=t.filters||[],b=g.length;for(;b--;)if(g[b]instanceof i){n=g[b];break}if(n||(n=new i,g.push(n),t.filters=g),a=n.clone(),null!=r.tint)s=e.utils.splitColor(r.tint),c=null!=r.tintAmount?+r.tintAmount:1,a.redOffset=+s[0]*c,a.greenOffset=+s[1]*c,a.blueOffset=+s[2]*c,a.redMultiplier=a.greenMultiplier=a.blueMultiplier=1-c;else for(p in r)"exposure"!==p&&"brightness"!==p&&(a[p]=+r[p]);for(null!=r.exposure?(a.redOffset=a.greenOffset=a.blueOffset=255*(+r.exposure-1),a.redMultiplier=a.greenMultiplier=a.blueMultiplier=1):null!=r.brightness&&(c=+r.brightness-1,a.redOffset=a.greenOffset=a.blueOffset=c>0?255*c:0,a.redMultiplier=a.greenMultiplier=a.blueMultiplier=1-Math.abs(c)),b=8;b--;)p=o[b],n[p]!==a[p]&&(d=l.add(n,p,n[p],a[p]),d&&(d.op="easel_colorFilter"));l._props.push("easel_colorFilter"),t.cacheID||h(t)},p=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],d=.212671,g=.71516,b=.072169,M=(e,t)=>{if(!(e instanceof Array&&t instanceof Array))return t;let r,l,i=[],s=0,o=0;for(r=0;r<4;r++){for(l=0;l<5;l++)o=4===l?e[s+4]:0,i[s+l]=e[s]*t[l]+e[s+1]*t[l+5]+e[s+2]*t[l+10]+e[s+3]*t[l+15]+o;s+=5}return i},m=(t,r,l)=>{s||(s=u().ColorMatrixFilter,s||f("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded."));let i,o,n,a,c=t.filters||[],m=c.length;for(;--m>-1;)if(c[m]instanceof s){n=c[m];break}var x,w;for(n||(n=new s(p.slice()),c.push(n),t.filters=c),o=n.matrix,i=p.slice(),null!=r.colorize&&(i=((t,r,l)=>{isNaN(l)&&(l=1);let i=e.utils.splitColor(r),s=i[0]/255,o=i[1]/255,n=i[2]/255,a=1-l;return M([a+l*s*d,l*s*g,l*s*b,0,0,l*o*d,a+l*o*g,l*o*b,0,0,l*n*d,l*n*g,a+l*n*b,0,0,0,0,0,1,0],t)})(i,r.colorize,Number(r.colorizeAmount))),null!=r.contrast&&(x=i,w=Number(r.contrast),i=isNaN(w)?x:M([w+=.01,0,0,0,128*(1-w),0,w,0,0,128*(1-w),0,0,w,0,128*(1-w),0,0,0,1,0],x)),null!=r.hue&&(i=((e,t)=>{if(isNaN(t))return e;t*=Math.PI/180;let r=Math.cos(t),l=Math.sin(t);return M([d+r*(1-d)+l*-d,g+r*-g+l*-g,b+r*-b+l*(1-b),0,0,d+r*-d+.143*l,g+.28484*r+.14*l,b+r*-b+-.283*l,0,0,d+r*-d+-.787329*l,g+r*-g+l*g,b+r*(1-b)+l*b,0,0,0,0,0,1,0,0,0,0,0,1],e)})(i,Number(r.hue))),null!=r.saturation&&(i=((e,t)=>{if(isNaN(t))return e;let r=1-t,l=r*d,i=r*g,s=r*b;return M([l+t,i,s,0,0,l,i+t,s,0,0,l,i,s+t,0,0,0,0,0,1,0],e)})(i,Number(r.saturation))),m=i.length;--m>-1;)i[m]!==o[m]&&(a=l.add(o,m,o[m],i[m]),a&&(a.op="easel_colorMatrixFilter"));l._props.push("easel_colorMatrixFilter"),t.cacheID||h(),l._matrix=o},x=l=>{e=l||a(),n()&&(r=window),e&&(t=1)};const w={version:"3.10.3",name:"easel",init(r,l,i,s,o){let n,a,u,h,p,d,g;for(n in t||(x(),e||f("Please gsap.registerPlugin(EaselPlugin)")),this.target=r,l)if(p=l[n],"colorFilter"===n||"tint"===n||"tintAmount"===n||"exposure"===n||"brightness"===n)u||(c(r,l.colorFilter||l,this),u=!0);else if("saturation"===n||"contrast"===n||"hue"===n||"colorize"===n||"colorizeAmount"===n)h||(m(r,l.colorMatrixFilter||l,this),h=!0);else if("frame"===n){if("string"==typeof p&&"="!==p.charAt(1)&&(d=r.labels))for(g=0;g<d.length;g++)d[g].label===p&&(p=d[g].position);a=this.add(r,"gotoAndStop",r.currentFrame,p,s,o,Math.round),a&&(a.op=n)}else null!=r[n]&&this.add(r,n,"get",p)},render(e,t){let r=t._pt;for(;r;)r.r(e,r.d),r=r._next;t.target.cacheID&&t.target.updateCache()},register:x,registerCreateJS:e=>{l=e}};a()&&e.registerPlugin(w);export default w;export{w as EaselPlugin}; |
/*! | ||
* EasePack 3.10.2 | ||
* EasePack 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
let e,t,n=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,o=(e,t)=>!!(void 0===e?t:e&&!~(e+"").indexOf("false")),r=o=>{if(e=o||n(),e){t=e.registerEase;let n,o=e.parseEase(),r=e=>t=>{let n=.5+t/2;e.config=t=>e(2*(1-t)*t*n+t*t)};for(n in o)o[n].config||r(o[n]);for(n in t("slow",p),t("expoScale",f),t("rough",g),c)"version"!==n&&e.core.globals(n,c[n])}},s=(e,t,n)=>{let r=(e=Math.min(1,e||.7))<1?t||0===t?t:.7:0,s=(1-e)/2,i=s+e,a=o(n);return e=>{let t=e+(.5-e)*r;return e<s?a?1-(e=1-e/s)*e:t-(e=1-e/s)*e*e*e*t:e>i?a?1===e?0:1-(e=(e-i)/s)*e:t+(e-t)*(e=(e-i)/s)*e*e*e:a?1:t}},i=(t,n,o)=>{let r=Math.log(n/t),s=n-t;return o&&(o=e.parseEase(o)),e=>(t*Math.exp(r*(o?o(e):e))-t)/s},a=function(e,t,n){this.t=e,this.v=t,n&&(this.next=n,n.prev=this,this.c=n.v-t,this.gap=n.t-e)},l=t=>{"object"!=typeof t&&(t={points:+t||20});let n,r,s,i,l,p,f,g=t.taper||"none",c=[],h=0,u=0|(+t.points||20),x=u,d=o(t.randomize,!0),v=o(t.clamp),w=e?e.parseEase(t.template):0,E=.4*(+t.strength||1);for(;--x>-1;)n=d?Math.random():1/u*x,r=w?w(n):n,"none"===g?s=E:"out"===g?(i=1-n,s=i*i*E):"in"===g?s=n*n*E:n<.5?(i=2*n,s=i*i*.5*E):(i=2*(1-n),s=i*i*.5*E),d?r+=Math.random()*s-.5*s:x%2?r+=.5*s:r-=.5*s,v&&(r>1?r=1:r<0&&(r=0)),c[h++]={x:n,y:r};for(c.sort((e,t)=>e.x-t.x),p=new a(1,1,null),x=u;x--;)l=c[x],p=new a(l.x,l.y,p);return f=new a(0,0,p.t?p:p.next),e=>{let t=f;if(e>t.t){for(;t.next&&e>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&e<=t.t;)t=t.prev;return f=t,t.v+(e-t.t)/t.gap*t.c}};const p=s(.7);p.ease=p,p.config=s;const f=i(1,2);f.config=i;const g=l();g.ease=g,g.config=l;const c={SlowMo:p,RoughEase:g,ExpoScaleEase:f};for(let e in c)c[e].register=r,c[e].version="3.10.2";n()&&e.registerPlugin(p);export default c;export{c as EasePack,f as ExpoScaleEase,g as RoughEase,p as SlowMo}; | ||
let e,t,n=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,o=(e,t)=>!!(void 0===e?t:e&&!~(e+"").indexOf("false")),r=o=>{if(e=o||n(),e){t=e.registerEase;let n,o=e.parseEase(),r=e=>t=>{let n=.5+t/2;e.config=t=>e(2*(1-t)*t*n+t*t)};for(n in o)o[n].config||r(o[n]);for(n in t("slow",p),t("expoScale",f),t("rough",g),c)"version"!==n&&e.core.globals(n,c[n])}},s=(e,t,n)=>{let r=(e=Math.min(1,e||.7))<1?t||0===t?t:.7:0,s=(1-e)/2,i=s+e,a=o(n);return e=>{let t=e+(.5-e)*r;return e<s?a?1-(e=1-e/s)*e:t-(e=1-e/s)*e*e*e*t:e>i?a?1===e?0:1-(e=(e-i)/s)*e:t+(e-t)*(e=(e-i)/s)*e*e*e:a?1:t}},i=(t,n,o)=>{let r=Math.log(n/t),s=n-t;return o&&(o=e.parseEase(o)),e=>(t*Math.exp(r*(o?o(e):e))-t)/s},a=function(e,t,n){this.t=e,this.v=t,n&&(this.next=n,n.prev=this,this.c=n.v-t,this.gap=n.t-e)},l=t=>{"object"!=typeof t&&(t={points:+t||20});let n,r,s,i,l,p,f,g=t.taper||"none",c=[],h=0,u=0|(+t.points||20),x=u,d=o(t.randomize,!0),v=o(t.clamp),w=e?e.parseEase(t.template):0,E=.4*(+t.strength||1);for(;--x>-1;)n=d?Math.random():1/u*x,r=w?w(n):n,"none"===g?s=E:"out"===g?(i=1-n,s=i*i*E):"in"===g?s=n*n*E:n<.5?(i=2*n,s=i*i*.5*E):(i=2*(1-n),s=i*i*.5*E),d?r+=Math.random()*s-.5*s:x%2?r+=.5*s:r-=.5*s,v&&(r>1?r=1:r<0&&(r=0)),c[h++]={x:n,y:r};for(c.sort((e,t)=>e.x-t.x),p=new a(1,1,null),x=u;x--;)l=c[x],p=new a(l.x,l.y,p);return f=new a(0,0,p.t?p:p.next),e=>{let t=f;if(e>t.t){for(;t.next&&e>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&e<=t.t;)t=t.prev;return f=t,t.v+(e-t.t)/t.gap*t.c}};const p=s(.7);p.ease=p,p.config=s;const f=i(1,2);f.config=i;const g=l();g.ease=g,g.config=l;const c={SlowMo:p,RoughEase:g,ExpoScaleEase:f};for(let e in c)c[e].register=r,c[e].version="3.10.3";n()&&e.registerPlugin(p);export default c;export{c as EasePack,f as ExpoScaleEase,g as RoughEase,p as SlowMo}; |
/*! | ||
* Flip 3.10.2 | ||
* Flip 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
let e,t,i,s,a,n,l,r,o,h="transform",p=h+"Origin",d=a=>{let n=a.ownerDocument||a;!(h in a.style)&&"msTransform"in a.style&&(h="msTransform",p=h+"Origin");for(;n.parentNode&&(n=n.parentNode););if(t=window,l=new S,n){e=n,i=n.documentElement,s=n.body,r=e.createElementNS("http://www.w3.org/2000/svg","g"),r.style.transform="none";let t=n.createElement("div"),a=n.createElement("div");s.appendChild(t),t.appendChild(a),t.style.position="static",t.style[h]="translate3d(0,0,1px)",o=a.offsetParent!==t,s.removeChild(t)}return n},c=[],m=[],u=()=>t.pageYOffset||e.scrollTop||i.scrollTop||s.scrollTop||0,f=()=>t.pageXOffset||e.scrollLeft||i.scrollLeft||s.scrollLeft||0,g=e=>e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null),y=e=>"fixed"===t.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?y(e):void 0),x=(t,i)=>{if(t.parentNode&&(e||d(t))){let s=g(t),l=s?s.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=s?i?"rect":"g":"div",o=2!==i?0:100,h=3===i?100:0,p="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",d=e.createElementNS?e.createElementNS(l.replace(/^https/,"http"),r):e.createElement(r);return i&&(s?(n||(n=x(t)),d.setAttribute("width",.01),d.setAttribute("height",.01),d.setAttribute("transform","translate("+o+","+h+")"),n.appendChild(d)):(a||(a=x(t),a.style.cssText=p),d.style.cssText=p+"width:0.1px;height:0.1px;top:"+h+"px;left:"+o+"px",a.appendChild(d))),d}throw"Need document and parent."},b=e=>{let t,i=e.getCTM();return i||(t=e.style[h],e.style[h]="none",e.appendChild(r),i=r.getCTM(),e.removeChild(r),t?e.style[h]=t:e.style.removeProperty(h.replace(/([A-Z])/g,"-$1").toLowerCase())),i||l.clone()},w=(e,i)=>{let s,r,d,u,f,y,w=g(e),v=e===w,C=w?c:m,k=e.parentNode;if(e===t)return e;if(C.length||C.push(x(e,1),x(e,2),x(e,3)),s=w?n:a,w)v?(d=b(e),u=-d.e/d.a,f=-d.f/d.d,r=l):(d=e.getBBox(),r=e.transform?e.transform.baseVal:{},r=r.numberOfItems?r.numberOfItems>1?(e=>{let t=new S,i=0;for(;i<e.numberOfItems;i++)t.multiply(e.getItem(i).matrix);return t})(r):r.getItem(0).matrix:l,u=r.a*d.x+r.c*d.y,f=r.b*d.x+r.d*d.y),i&&"g"===e.tagName.toLowerCase()&&(u=f=0),(v?w:k).appendChild(s),s.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+u)+","+(r.f+f)+")");else{if(u=f=0,o)for(r=e.offsetParent,d=e;d&&(d=d.parentNode)&&d!==r&&d.parentNode;)(t.getComputedStyle(d)[h]+"").length>4&&(u=d.offsetLeft,f=d.offsetTop,d=0);if(y=t.getComputedStyle(e),"absolute"!==y.position&&"fixed"!==y.position)for(r=e.offsetParent;k&&k!==r;)u+=k.scrollLeft||0,f+=k.scrollTop||0,k=k.parentNode;d=s.style,d.top=e.offsetTop-f+"px",d.left=e.offsetLeft-u+"px",d[h]=y[h],d[p]=y[p],d.position="fixed"===y.position?"fixed":"absolute",e.parentNode.appendChild(s)}return s},v=(e,t,i,s,a,n,l)=>(e.a=t,e.b=i,e.c=s,e.d=a,e.e=n,e.f=l,e);class S{constructor(e=1,t=0,i=0,s=1,a=0,n=0){v(this,e,t,i,s,a,n)}inverse(){let{a:e,b:t,c:i,d:s,e:a,f:n}=this,l=e*s-t*i||1e-10;return v(this,s/l,-t/l,-i/l,e/l,(i*n-s*a)/l,-(e*n-t*a)/l)}multiply(e){let{a:t,b:i,c:s,d:a,e:n,f:l}=this,r=e.a,o=e.c,h=e.b,p=e.d,d=e.e,c=e.f;return v(this,r*t+h*s,r*i+h*a,o*t+p*s,o*i+p*a,n+d*t+c*s,l+d*i+c*a)}clone(){return new S(this.a,this.b,this.c,this.d,this.e,this.f)}equals(e){let{a:t,b:i,c:s,d:a,e:n,f:l}=this;return t===e.a&&i===e.b&&s===e.c&&a===e.d&&n===e.e&&l===e.f}apply(e,t={}){let{x:i,y:s}=e,{a:a,b:n,c:l,d:r,e:o,f:h}=this;return t.x=i*a+s*l+o||0,t.y=i*n+s*r+h||0,t}}function C(t,i,a,n){if(!t||!t.parentNode||(e||d(t)).documentElement===t)return new S;let l=(e=>{let t,i;for(;e&&e!==s;)i=e._gsap,i&&i.uncache&&i.get(e,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),t?t.push(i):t=[i]),e=e.parentNode;return t})(t),r=g(t)?c:m,o=w(t,a),h=r[0].getBoundingClientRect(),p=r[1].getBoundingClientRect(),x=r[2].getBoundingClientRect(),b=o.parentNode,v=!n&&y(t),C=new S((p.left-h.left)/100,(p.top-h.top)/100,(x.left-h.left)/100,(x.top-h.top)/100,h.left+(v?0:f()),h.top+(v?0:u()));if(b.removeChild(o),l)for(h=l.length;h--;)p=l[h],p.scaleX=p.scaleY=0,p.renderTransform(1,p);return i?C.inverse():C}let k,V,E,L,B,_,T,I=1,N=(e,t)=>e.actions.forEach(e=>e.vars[t]&&e.vars[t](e)),X={},P=180/Math.PI,O=Math.PI/180,A={},M={},Y={},R=e=>"string"==typeof e?e.split(" ").join("").split(","):e,z=R("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),D=R("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),H=e=>k(e)[0]||console.warn("Element not found:",e),W=e=>Math.round(1e4*e)/1e4||0,F=(e,t,i)=>e.forEach(e=>e.classList[i](t)),q={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},j={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},J=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase(),U=(e,t)=>{let i,s={};for(i in e)t[i]||(s[i]=e[i]);return s},Z={},$=e=>{let t=Z[e]=R(e);return Y[e]=t.concat(D),t},G=(e,t,i=0)=>{let s=e.parentNode,a=1e3*10**i*(t?-1:1),n=t?900*-a:0;for(;e;)n+=a,e=e.previousSibling;return s?n+G(s,t,i+1):n},K=(e,t,i)=>(e.forEach(e=>e.d=G(i?e.element:e.t,t)),e.sort((e,t)=>e.d-t.d),e),Q=(e,t)=>{let i,s,a=e.element.style,n=e.css=e.css||[],l=t.length;for(;l--;)i=t[l],s=a[i]||a.getPropertyValue(i),n.push(s?i:M[i]||(M[i]=J(i)),s);return a},ee=e=>{let t=e.css,i=e.element.style,s=0;for(e.cache.uncache=1;s<t.length;s+=2)t[s+1]?i[t[s]]=t[s+1]:i.removeProperty(t[s])},te=(e,t)=>{e.forEach(e=>e.a.cache.uncache=1),t||e.finalStates.forEach(ee)},ie="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),se=(e,t,i)=>{let s,a,n,{element:l,width:r,height:o,uncache:h,getProp:p}=e,d=l.style,c=4;if("object"!=typeof t&&(t=e),E&&1!==i)return E._abs.push({t:l,b:e,a:e,sd:0}),E._final.push(()=>(e.cache.uncache=1)&&ee(e)),l;for(a="none"===p("display"),e.isVisible&&!a||(a&&(Q(e,["display"]).display=t.display),e.matrix=t.matrix,e.width=r=e.width||t.width,e.height=o=e.height||t.height),Q(e,ie),n=window.getComputedStyle(l);c--;)d[ie[c]]=n[ie[c]];if(d.gridArea="1 / 1 / 1 / 1",d.transition="none",d.position="absolute",d.width=r+"px",d.height=o+"px",d.top||(d.top="0px"),d.left||(d.left="0px"),h)s=new ve(l);else if(s=U(e,A),s.position="absolute",e.simple){let e=l.getBoundingClientRect();s.matrix=new S(1,0,0,1,e.left+f(),e.top+u())}else s.matrix=C(l,!1,!1,!0);return s=pe(s,e,!0),e.x=_(s.x,.01),e.y=_(s.y,.01),l},ae=(e,t)=>(!0!==t&&(t=k(t),e=e.filter(e=>{if(-1!==t.indexOf((e.sd<0?e.b:e.a).element))return!0;e.t._gsap.renderTransform(1),e.t.style.width=e.b.width+"px",e.t.style.height=e.b.height+"px"})),e),ne=e=>K(e,!0).forEach(e=>(e.a.isVisible||e.b.isVisible)&&se(e.sd<0?e.b:e.a,e.b,1)),le=(e,t,i,s)=>e instanceof ve?e:e instanceof we?((e,t)=>t&&e.idLookup[le(t).id]||e.elementStates[0])(e,s):new ve("string"==typeof e?H(e)||console.warn(e+" not found"):e,t,i),re=(e,t)=>{let i,s=e.style||e;for(i in t)s[i]=t[i]},oe=e=>e.map(e=>e.element),he=(e,t,i)=>e&&t.length&&i.add(e(oe(t),i,new we(t,0,!0)),0),pe=(e,t,i,s,a,n)=>{let l,r,o,h,p,d,c,{element:m,cache:u,parent:f,x:g,y:y}=e,{width:x,height:b,scaleX:w,scaleY:v,rotation:S,bounds:E}=t,L=n&&m.style.cssText,B=n&&m.getBBox&&m.getAttribute("transform"),T=e,{e:I,f:N}=t.matrix,X=e.bounds.width!==E.width||e.bounds.height!==E.height||e.scaleX!==w||e.scaleY!==v||e.rotation!==S,A=!X&&e.simple&&t.simple&&!a;return A||!f?(w=v=1,S=l=0):(p=(e=>{let t=e._gsap||V.core.getCache(e);return t.gmCache===V.ticker.frame?t.gMatrix:(t.gmCache=V.ticker.frame,t.gMatrix=C(e,!0,!1,!0))})(f),d=p.clone().multiply(t.ctm?t.matrix.clone().multiply(t.ctm):t.matrix),S=W(Math.atan2(d.b,d.a)*P),l=W(Math.atan2(d.c,d.d)*P+S)%360,w=Math.sqrt(d.a**2+d.b**2),v=Math.sqrt(d.c**2+d.d**2)*Math.cos(l*O),a&&(a=k(a)[0],h=V.getProperty(a),c=a.getBBox&&"function"==typeof a.getBBox&&a.getBBox(),T={scaleX:h("scaleX"),scaleY:h("scaleY"),width:c?c.width:Math.ceil(parseFloat(h("width","px"))),height:c?c.height:parseFloat(h("height","px"))}),u.rotation=S+"deg",u.skewX=l+"deg"),i?(w*=x!==T.width&&T.width?x/T.width:1,v*=b!==T.height&&T.height?b/T.height:1,u.scaleX=w,u.scaleY=v):(x=_(x*w/T.scaleX,0),b=_(b*v/T.scaleY,0),m.style.width=x+"px",m.style.height=b+"px"),s&&re(m,t.props),A||!f?(g+=I-e.matrix.e,y+=N-e.matrix.f):X||f!==t.parent?(u.renderTransform(1,u),d=C(a||m,!1,!1,!0),r=p.apply({x:d.e,y:d.f}),o=p.apply({x:I,y:N}),g+=o.x-r.x,y+=o.y-r.y):(p.e=p.f=0,o=p.apply({x:I-e.matrix.e,y:N-e.matrix.f}),g+=o.x,y+=o.y),g=_(g,.02),y=_(y,.02),!n||n instanceof ve?(u.x=g+"px",u.y=y+"px",u.renderTransform(1,u)):(m.style.cssText=L,m.getBBox&&m.setAttribute("transform",B||""),u.uncache=1),n&&(n.x=g,n.y=y,n.rotation=S,n.skewX=l,i?(n.scaleX=w,n.scaleY=v):(n.width=x,n.height=b)),n||u},de=(e,t)=>e instanceof we?e:new we(e,t),ce=(e,t,i)=>{let s=e.idLookup[i],a=e.alt[i];return!a.isVisible||(t.getElementState(a.element)||a).isVisible&&s.isVisible?s:a},me=[],ue="width,height,overflowX,overflowY".split(","),fe=e=>{if(e!==T){let t=B.style,i=B.clientWidth===window.outerWidth,s=B.clientHeight===window.outerHeight,a=4;if(e&&(i||s)){for(;a--;)me[a]=t[ue[a]];i&&(t.width=B.clientWidth+"px",t.overflowY="hidden"),s&&(t.height=B.clientHeight+"px",t.overflowX="hidden"),T=e}else if(T){for(;a--;)me[a]?t[ue[a]]=me[a]:t.removeProperty(J(ue[a]));T=e}}},ge=(e,t,i,s)=>{e instanceof we&&t instanceof we||console.warn("Not a valid state object."),i=i||{};let a,n,l,r,o,h,p,d,c,m,u,f,g,y,{clearProps:x,onEnter:b,onLeave:w,absolute:v,absoluteOnLeave:S,custom:k,delay:L,paused:B,repeat:_,repeatDelay:T,yoyo:I,toggleClass:N,nested:X,zIndex:P,scale:O,fade:A,stagger:M,spin:R,prune:H}=i,W=("props"in i?i:e).props,J=U(i,q),G=V.timeline({delay:L,paused:B,repeat:_,repeatDelay:T,yoyo:I}),ee=J,ie=[],se=[],le=[],re=[],oe=!0===R?1:R||0,de="function"==typeof R?R:()=>oe,me=e.interrupted||t.interrupted,ue=G[1!==s?"to":"from"];for(n in t.idLookup)u=t.alt[n]?ce(t,e,n):t.idLookup[n],o=u.element,m=e.idLookup[n],e.alt[n]&&o===m.element&&(e.alt[n].isVisible||!u.isVisible)&&(m=e.alt[n]),m?(h={t:o,b:m,a:u,sd:m.element===o?0:u.isVisible?1:-1},le.push(h),h.sd&&(h.sd<0&&(h.b=u,h.a=m),me&&Q(h.b,W?Y[W]:D),A&&le.push(h.swap={t:m.element,b:h.b,a:h.a,sd:-h.sd,swap:h})),o._flip=m.element._flip=E?E.timeline:G):u.isVisible&&(le.push({t:o,b:U(u,{isVisible:1}),a:u,sd:0,entering:1}),o._flip=E?E.timeline:G);return W&&(Z[W]||$(W)).forEach(e=>J[e]=t=>le[t].a.props[e]),le.finalStates=c=[],f=()=>{for(K(le),fe(!0),r=0;r<le.length;r++)h=le[r],g=h.a,y=h.b,!H||g.isDifferent(y)||h.entering?(o=h.t,X&&!(h.sd<0)&&r&&(g.matrix=C(o,!1,!1,!0)),h.sd||y.isVisible&&g.isVisible?(h.sd<0?(p=new ve(o,W,e.simple),pe(p,g,O,0,0,p),p.matrix=C(o,!1,!1,!0),p.css=h.b.css,h.a=g=p,A&&(o.style.opacity=me?y.opacity:g.opacity),M&&re.push(o)):h.sd>0&&A&&(o.style.opacity=me?g.opacity-y.opacity:"0"),pe(g,y,O,W)):y.isVisible!==g.isVisible&&(y.isVisible?g.isVisible||(y.css=g.css,se.push(y),le.splice(r--,1),v&&X&&pe(g,y,O,W)):(g.isVisible&&ie.push(g),le.splice(r--,1))),O||(o.style.maxWidth=Math.max(g.width,y.width)+"px",o.style.maxHeight=Math.max(g.height,y.height)+"px",o.style.minWidth=Math.min(g.width,y.width)+"px",o.style.minHeight=Math.min(g.height,y.height)+"px"),X&&N&&o.classList.add(N)):le.splice(r--,1),c.push(g);let t;if(N&&(t=c.map(e=>e.element),X&&t.forEach(e=>e.classList.remove(N))),fe(!1),O?(J.scaleX=e=>le[e].a.scaleX,J.scaleY=e=>le[e].a.scaleY):(J.width=e=>le[e].a.width+"px",J.height=e=>le[e].a.height+"px",J.autoRound=i.autoRound||!1),J.x=e=>le[e].a.x+"px",J.y=e=>le[e].a.y+"px",J.rotation=e=>le[e].a.rotation+(R?360*de(e,d[e],d):0),J.skewX=e=>le[e].a.skewX,d=le.map(e=>e.t),(P||0===P)&&(J.modifiers={zIndex:()=>P},J.zIndex=P,J.immediateRender=!1!==i.immediateRender),A&&(J.opacity=e=>le[e].sd<0?0:le[e].sd>0?le[e].a.opacity:"+=0"),re.length){M=V.utils.distribute(M);let e=d.slice(re.length);J.stagger=(t,i)=>M(~re.indexOf(i)?d.indexOf(le[t].swap.t):t,i,e)}if(z.forEach(e=>i[e]&&G.eventCallback(e,i[e],i[e+"Params"])),k&&d.length)for(n in ee=U(J,q),"scale"in k&&(k.scaleX=k.scaleY=k.scale,delete k.scale),k)a=U(k[n],j),a[n]=J[n],!("duration"in a)&&"duration"in J&&(a.duration=J.duration),a.stagger=J.stagger,ue.call(G,d,a,0),delete ee[n];(d.length||se.length||ie.length)&&(N&&G.add(()=>F(t,N,G._zTime<0?"remove":"add"),0)&&!B&&F(t,N,"add"),d.length&&ue.call(G,d,ee,0)),he(b,ie,G),he(w,se,G);let s=E&&E.timeline;s&&(s.add(G,0),E._final.push(()=>te(le,!x))),l=G.duration(),G.call(()=>{let e=G.time()>=l;e&&!s&&te(le,!x),N&&F(t,N,e?"remove":"add")})},S&&(v=le.filter(e=>!e.sd&&!e.a.isVisible&&e.b.isVisible).map(e=>e.a.element)),E?(v&&E._abs.push(...ae(le,v)),E._run.push(f)):(v&&ne(ae(le,v)),f()),E?E.timeline:G},ye=e=>{e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(ye)},xe=(e,t)=>{if(e&&e.progress()<1&&!e.paused())return t&&(ye(e),t<2&&e.progress(1),e.kill()),!0},be=e=>{let t,i=e.idLookup={},s=e.alt={},a=e.elementStates,n=a.length;for(;n--;)t=a[n],i[t.id]?s[t.id]=t:i[t.id]=t};class we{constructor(e,t,i){if(this.props=t&&t.props,this.simple=!(!t||!t.simple),i)this.targets=oe(e),this.elementStates=e,be(this);else{this.targets=k(e);let i=t&&(!1===t.kill||t.batch&&!t.kill);E&&!i&&E._kill.push(this),this.update(i||!!E)}}update(e){return this.elementStates=this.targets.map(e=>new ve(e,this.props,this.simple)),be(this),this.interrupt(e),this.recordInlineStyles(),this}clear(){return this.targets.length=this.elementStates.length=0,be(this),this}fit(e,t,i){let s,a,n=K(this.elementStates.slice(0),!1,!0),l=(e||this).idLookup,r=0;for(;r<n.length;r++)s=n[r],i&&(s.matrix=C(s.element,!1,!1,!0)),a=l[s.id],a&&pe(s,a,t,!0,0,s),s.matrix=C(s.element,!1,!1,!0);return this}getProperty(e,t){let i=this.getElementState(e)||A;return(t in i?i:i.props||A)[t]}add(e){let t,i,s,a=e.targets.length,n=this.idLookup,l=this.alt;for(;a--;)i=e.elementStates[a],s=n[i.id],s&&(i.element===s.element||l[i.id]&&l[i.id].element===i.element)?(t=this.elementStates.indexOf(i.element===s.element?s:l[i.id]),this.targets.splice(t,1,e.targets[a]),this.elementStates.splice(t,1,i)):(this.targets.push(e.targets[a]),this.elementStates.push(i));return e.interrupted&&(this.interrupted=!0),e.simple||(this.simple=!1),be(this),this}compare(e){let t,i,s,a,n,l,r,o,h=e.idLookup,p=this.idLookup,d=[],c=[],m=[],u=[],f=[],g=e.alt,y=this.alt,x=(e,t,i)=>(e.isVisible!==t.isVisible?e.isVisible?m:u:e.isVisible?c:d).push(i)&&f.push(i),b=(e,t,i)=>f.indexOf(i)<0&&x(e,t,i);for(s in h)n=g[s],l=y[s],t=n?ce(e,this,s):h[s],a=t.element,i=p[s],l?(o=i.isVisible||!l.isVisible&&a===i.element?i:l,r=!n||t.isVisible||n.isVisible||o.element!==n.element?t:n,r.isVisible&&o.isVisible&&r.element!==o.element?((r.isDifferent(o)?c:d).push(r.element,o.element),f.push(r.element,o.element)):x(r,o,r.element),n&&r.element===n.element&&(n=h[s]),b(r.element!==i.element&&n?n:r,i,i.element),b(n&&n.element===l.element?n:r,l,l.element),n&&b(n,l.element===n.element?l:i,n.element)):(i?i.isDifferent(t)?x(t,i,a):d.push(a):m.push(a),n&&b(n,i,n.element));for(s in p)h[s]||(u.push(p[s].element),y[s]&&u.push(y[s].element));return{changed:c,unchanged:d,enter:m,leave:u}}recordInlineStyles(){let e=Y[this.props]||D,t=this.elementStates.length;for(;t--;)Q(this.elementStates[t],e)}interrupt(e){let t=[];this.targets.forEach(i=>{let s=i._flip,a=xe(s,e?0:1);e&&a&&t.indexOf(s)<0&&s.add(()=>this.updateVisibility()),a&&t.push(s)}),!e&&t.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!t.length)}updateVisibility(){this.elementStates.forEach(e=>{let t=e.element.getBoundingClientRect();e.isVisible=!!(t.width||t.height||t.top||t.left),e.uncache=1})}getElementState(e){return this.elementStates[this.targets.indexOf(H(e))]}makeAbsolute(){return K(this.elementStates.slice(0),!0,!0).map(se)}}class ve{constructor(e,t,i){this.element=e,this.update(t,i)}isDifferent(e){let t=this.bounds,i=e.bounds;return t.top!==i.top||t.left!==i.left||t.width!==i.width||t.height!==i.height||!this.matrix.equals(e.matrix)||this.opacity!==e.opacity||this.props&&e.props&&JSON.stringify(this.props)!==JSON.stringify(e.props)}update(e,t){let i=this.element,s=V.getProperty(i),a=V.core.getCache(i),n=i.getBoundingClientRect(),l=i.getBBox&&"function"==typeof i.getBBox&&"svg"!==i.nodeName.toLowerCase()&&i.getBBox(),r=t?new S(1,0,0,1,n.left+f(),n.top+u()):C(i,!1,!1,!0);this.getProp=s,this.element=i,this.id=(e=>{let t=e.getAttribute("data-flip-id");return t||e.setAttribute("data-flip-id",t="auto-"+I++),t})(i),this.matrix=r,this.cache=a,this.bounds=n,this.isVisible=!!(n.width||n.height||n.left||n.top),this.display=s("display"),this.position=s("position"),this.parent=i.parentNode,this.x=s("x"),this.y=s("y"),this.scaleX=a.scaleX,this.scaleY=a.scaleY,this.rotation=s("rotation"),this.skewX=s("skewX"),this.opacity=s("opacity"),this.width=l?l.width:_(s("width","px"),.04),this.height=l?l.height:_(s("height","px"),.04),e&&((e,t)=>{let i=V.getProperty(e.element,null,"native"),s=e.props={},a=t.length;for(;a--;)s[t[a]]=(i(t[a])+"").trim();s.zIndex&&(s.zIndex=parseFloat(s.zIndex)||0)})(this,Z[e]||$(e)),this.ctm=i.getCTM&&"svg"===i.nodeName.toLowerCase()&&b(i).inverse(),this.simple=t||1===W(r.a)&&!W(r.b)&&!W(r.c)&&1===W(r.d),this.uncache=0}}class Se{constructor(e,t){this.vars=e,this.batch=t,this.states=[],this.timeline=t.timeline}getStateById(e){let t=this.states.length;for(;t--;)if(this.states[t].idLookup[e])return this.states[t]}kill(){this.batch.remove(this)}}class Ce{constructor(e){this.id=e,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new we,this.timeline=V.timeline()}add(e){let t=this.actions.filter(t=>t.vars===e);return t.length?t[0]:(t=new Se("function"==typeof e?{animate:e}:e,this),this.actions.push(t),t)}remove(e){let t=this.actions.indexOf(e);return t>=0&&this.actions.splice(t,1),this}getState(e){let t=E,i=L;return E=this,this.state.clear(),this._kill.length=0,this.actions.forEach(t=>{t.vars.getState&&(t.states.length=0,L=t,t.state=t.vars.getState(t)),e&&t.states.forEach(e=>this.state.add(e))}),L=i,E=t,this.killConflicts(),this}animate(){let e,t,i=E,s=this.timeline,a=this.actions.length;for(E=this,s.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(e=>{e.vars.animate&&e.vars.animate(e);let t,i,s=e.vars.onEnter,a=e.vars.onLeave,n=e.targets;n&&n.length&&(s||a)&&(t=new we,e.states.forEach(e=>t.add(e)),i=t.compare(ke.getState(n)),i.enter.length&&s&&s(i.enter),i.leave.length&&a&&a(i.leave))}),ne(this._abs),this._run.forEach(e=>e()),t=s.duration(),e=this._final.slice(0),s.add(()=>{t<=s.time()&&(e.forEach(e=>e()),N(this,"onComplete"))}),E=i;a--;)this.actions[a].vars.once&&this.actions[a].kill();return N(this,"onStart"),s.restart(),this}loadState(e){e||(e=()=>0);let t=[];return this.actions.forEach(i=>{if(i.vars.loadState){let s,a=n=>{n&&(i.targets=n),s=t.indexOf(a),~s&&(t.splice(s,1),t.length||e())};t.push(a),i.vars.loadState(a)}}),t.length||e(),this}setState(){return this.actions.forEach(e=>e.targets=e.vars.setState&&e.vars.setState(e)),this}killConflicts(e){return this.state.interrupt(e),this._kill.forEach(t=>t.interrupt(e)),this}run(e,t){return this!==E&&(e||this.getState(t),this.loadState(()=>{this._killed||(this.setState(),this.animate())})),this}clear(e){this.state.clear(),e||(this.actions.length=0)}getStateById(e){let t,i=this.actions.length;for(;i--;)if(t=this.actions[i].getStateById(e),t)return t;return this.state.idLookup[e]&&this.state}kill(){this._killed=1,this.clear(),delete X[this.id]}}class ke{static getState(e,t){let i=de(e,t);return L&&L.states.push(i),t&&t.batch&&ke.batch(t.batch).state.add(i),i}static from(e,t){return"clearProps"in(t=t||{})||(t.clearProps=!0),ge(e,de(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,-1)}static to(e,t){return ge(e,de(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,1)}static fromTo(e,t,i){return ge(e,t,i)}static fit(e,t,i){let s=i?U(i,j):{},{absolute:a,scale:n,getVars:l,props:r,runBackwards:o,onComplete:h,simple:p}=i||s,d=i&&i.fitChild&&H(i.fitChild),c=le(t,r,p,e),m=le(e,0,p,c),u=r?Y[r]:D;return r&&re(s,c.props),o&&(Q(m,u),"immediateRender"in s||(s.immediateRender=!0),s.onComplete=function(){ee(m),h&&h.apply(this,arguments)}),a&&se(m,c),s=pe(m,c,n||d,r,d,s.duration||l?s:0),l?s:s.duration?V.to(m.element,s):null}static makeAbsolute(e,t){return(e instanceof we?e:new we(e,t)).makeAbsolute()}static batch(e){return e||(e="default"),X[e]||(X[e]=new Ce(e))}static killFlipsOf(e,t){(e instanceof we?e.targets:k(e)).forEach(e=>e&&xe(e._flip,!1!==t?1:2))}static isFlipping(e){let t=ke.getByTarget(e);return!!t&&t.isActive()}static getByTarget(e){return(H(e)||A)._flip}static getElementState(e,t){return new ve(H(e),t)}static convertCoordinates(e,t,i){let s=C(t,!0,!0).multiply(C(e));return i?s.apply(i):s}static register(e){if(B="undefined"!=typeof document&&document.body,B){V=e,d(B),k=V.utils.toArray;let t=V.utils.snap(.1);_=(e,i)=>t(parseFloat(e)+i)}}}ke.version="3.10.2","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(ke);export default ke;export{ke as Flip}; | ||
let e,t,i,s,a,n,l,r,o,h="transform",p=h+"Origin",d=a=>{let n=a.ownerDocument||a;!(h in a.style)&&"msTransform"in a.style&&(h="msTransform",p=h+"Origin");for(;n.parentNode&&(n=n.parentNode););if(t=window,l=new S,n){e=n,i=n.documentElement,s=n.body,r=e.createElementNS("http://www.w3.org/2000/svg","g"),r.style.transform="none";let t=n.createElement("div"),a=n.createElement("div");s.appendChild(t),t.appendChild(a),t.style.position="static",t.style[h]="translate3d(0,0,1px)",o=a.offsetParent!==t,s.removeChild(t)}return n},c=[],m=[],u=()=>t.pageYOffset||e.scrollTop||i.scrollTop||s.scrollTop||0,f=()=>t.pageXOffset||e.scrollLeft||i.scrollLeft||s.scrollLeft||0,g=e=>e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null),y=e=>"fixed"===t.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?y(e):void 0),x=(t,i)=>{if(t.parentNode&&(e||d(t))){let s=g(t),l=s?s.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=s?i?"rect":"g":"div",o=2!==i?0:100,h=3===i?100:0,p="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",d=e.createElementNS?e.createElementNS(l.replace(/^https/,"http"),r):e.createElement(r);return i&&(s?(n||(n=x(t)),d.setAttribute("width",.01),d.setAttribute("height",.01),d.setAttribute("transform","translate("+o+","+h+")"),n.appendChild(d)):(a||(a=x(t),a.style.cssText=p),d.style.cssText=p+"width:0.1px;height:0.1px;top:"+h+"px;left:"+o+"px",a.appendChild(d))),d}throw"Need document and parent."},b=e=>{let t,i=e.getCTM();return i||(t=e.style[h],e.style[h]="none",e.appendChild(r),i=r.getCTM(),e.removeChild(r),t?e.style[h]=t:e.style.removeProperty(h.replace(/([A-Z])/g,"-$1").toLowerCase())),i||l.clone()},w=(e,i)=>{let s,r,d,u,f,y,w=g(e),v=e===w,C=w?c:m,k=e.parentNode;if(e===t)return e;if(C.length||C.push(x(e,1),x(e,2),x(e,3)),s=w?n:a,w)v?(d=b(e),u=-d.e/d.a,f=-d.f/d.d,r=l):e.getBBox?(d=e.getBBox(),r=e.transform?e.transform.baseVal:{},r=r.numberOfItems?r.numberOfItems>1?(e=>{let t=new S,i=0;for(;i<e.numberOfItems;i++)t.multiply(e.getItem(i).matrix);return t})(r):r.getItem(0).matrix:l,u=r.a*d.x+r.c*d.y,f=r.b*d.x+r.d*d.y):(r=new S,u=f=0),i&&"g"===e.tagName.toLowerCase()&&(u=f=0),(v?w:k).appendChild(s),s.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+u)+","+(r.f+f)+")");else{if(u=f=0,o)for(r=e.offsetParent,d=e;d&&(d=d.parentNode)&&d!==r&&d.parentNode;)(t.getComputedStyle(d)[h]+"").length>4&&(u=d.offsetLeft,f=d.offsetTop,d=0);if(y=t.getComputedStyle(e),"absolute"!==y.position&&"fixed"!==y.position)for(r=e.offsetParent;k&&k!==r;)u+=k.scrollLeft||0,f+=k.scrollTop||0,k=k.parentNode;d=s.style,d.top=e.offsetTop-f+"px",d.left=e.offsetLeft-u+"px",d[h]=y[h],d[p]=y[p],d.position="fixed"===y.position?"fixed":"absolute",e.parentNode.appendChild(s)}return s},v=(e,t,i,s,a,n,l)=>(e.a=t,e.b=i,e.c=s,e.d=a,e.e=n,e.f=l,e);class S{constructor(e=1,t=0,i=0,s=1,a=0,n=0){v(this,e,t,i,s,a,n)}inverse(){let{a:e,b:t,c:i,d:s,e:a,f:n}=this,l=e*s-t*i||1e-10;return v(this,s/l,-t/l,-i/l,e/l,(i*n-s*a)/l,-(e*n-t*a)/l)}multiply(e){let{a:t,b:i,c:s,d:a,e:n,f:l}=this,r=e.a,o=e.c,h=e.b,p=e.d,d=e.e,c=e.f;return v(this,r*t+h*s,r*i+h*a,o*t+p*s,o*i+p*a,n+d*t+c*s,l+d*i+c*a)}clone(){return new S(this.a,this.b,this.c,this.d,this.e,this.f)}equals(e){let{a:t,b:i,c:s,d:a,e:n,f:l}=this;return t===e.a&&i===e.b&&s===e.c&&a===e.d&&n===e.e&&l===e.f}apply(e,t={}){let{x:i,y:s}=e,{a:a,b:n,c:l,d:r,e:o,f:h}=this;return t.x=i*a+s*l+o||0,t.y=i*n+s*r+h||0,t}}function C(t,i,a,n){if(!t||!t.parentNode||(e||d(t)).documentElement===t)return new S;let l=(e=>{let t,i;for(;e&&e!==s;)i=e._gsap,i&&i.uncache&&i.get(e,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),t?t.push(i):t=[i]),e=e.parentNode;return t})(t),r=g(t)?c:m,o=w(t,a),h=r[0].getBoundingClientRect(),p=r[1].getBoundingClientRect(),x=r[2].getBoundingClientRect(),b=o.parentNode,v=!n&&y(t),C=new S((p.left-h.left)/100,(p.top-h.top)/100,(x.left-h.left)/100,(x.top-h.top)/100,h.left+(v?0:f()),h.top+(v?0:u()));if(b.removeChild(o),l)for(h=l.length;h--;)p=l[h],p.scaleX=p.scaleY=0,p.renderTransform(1,p);return i?C.inverse():C}let k,V,E,B,L,_,T,I=1,N=(e,t)=>e.actions.forEach(e=>e.vars[t]&&e.vars[t](e)),X={},P=180/Math.PI,O=Math.PI/180,A={},M={},Y={},R=e=>"string"==typeof e?e.split(" ").join("").split(","):e,z=R("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),D=R("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),H=e=>k(e)[0]||console.warn("Element not found:",e),W=e=>Math.round(1e4*e)/1e4||0,F=(e,t,i)=>e.forEach(e=>e.classList[i](t)),q={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},j={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},J=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase(),U=(e,t)=>{let i,s={};for(i in e)t[i]||(s[i]=e[i]);return s},Z={},$=e=>{let t=Z[e]=R(e);return Y[e]=t.concat(D),t},G=(e,t,i=0)=>{let s=e.parentNode,a=1e3*10**i*(t?-1:1),n=t?900*-a:0;for(;e;)n+=a,e=e.previousSibling;return s?n+G(s,t,i+1):n},K=(e,t,i)=>(e.forEach(e=>e.d=G(i?e.element:e.t,t)),e.sort((e,t)=>e.d-t.d),e),Q=(e,t)=>{let i,s,a=e.element.style,n=e.css=e.css||[],l=t.length;for(;l--;)i=t[l],s=a[i]||a.getPropertyValue(i),n.push(s?i:M[i]||(M[i]=J(i)),s);return a},ee=e=>{let t=e.css,i=e.element.style,s=0;for(e.cache.uncache=1;s<t.length;s+=2)t[s+1]?i[t[s]]=t[s+1]:i.removeProperty(t[s])},te=(e,t)=>{e.forEach(e=>e.a.cache.uncache=1),t||e.finalStates.forEach(ee)},ie="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),se=(e,t,i)=>{let s,a,n,{element:l,width:r,height:o,uncache:h,getProp:p}=e,d=l.style,c=4;if("object"!=typeof t&&(t=e),E&&1!==i)return E._abs.push({t:l,b:e,a:e,sd:0}),E._final.push(()=>(e.cache.uncache=1)&&ee(e)),l;for(a="none"===p("display"),e.isVisible&&!a||(a&&(Q(e,["display"]).display=t.display),e.matrix=t.matrix,e.width=r=e.width||t.width,e.height=o=e.height||t.height),Q(e,ie),n=window.getComputedStyle(l);c--;)d[ie[c]]=n[ie[c]];if(d.gridArea="1 / 1 / 1 / 1",d.transition="none",d.position="absolute",d.width=r+"px",d.height=o+"px",d.top||(d.top="0px"),d.left||(d.left="0px"),h)s=new ve(l);else if(s=U(e,A),s.position="absolute",e.simple){let e=l.getBoundingClientRect();s.matrix=new S(1,0,0,1,e.left+f(),e.top+u())}else s.matrix=C(l,!1,!1,!0);return s=pe(s,e,!0),e.x=_(s.x,.01),e.y=_(s.y,.01),l},ae=(e,t)=>(!0!==t&&(t=k(t),e=e.filter(e=>{if(-1!==t.indexOf((e.sd<0?e.b:e.a).element))return!0;e.t._gsap.renderTransform(1),e.t.style.width=e.b.width+"px",e.t.style.height=e.b.height+"px"})),e),ne=e=>K(e,!0).forEach(e=>(e.a.isVisible||e.b.isVisible)&&se(e.sd<0?e.b:e.a,e.b,1)),le=(e,t,i,s)=>e instanceof ve?e:e instanceof we?((e,t)=>t&&e.idLookup[le(t).id]||e.elementStates[0])(e,s):new ve("string"==typeof e?H(e)||console.warn(e+" not found"):e,t,i),re=(e,t)=>{let i,s=e.style||e;for(i in t)s[i]=t[i]},oe=e=>e.map(e=>e.element),he=(e,t,i)=>e&&t.length&&i.add(e(oe(t),i,new we(t,0,!0)),0),pe=(e,t,i,s,a,n)=>{let l,r,o,h,p,d,c,{element:m,cache:u,parent:f,x:g,y:y}=e,{width:x,height:b,scaleX:w,scaleY:v,rotation:S,bounds:E}=t,B=n&&m.style.cssText,L=n&&m.getBBox&&m.getAttribute("transform"),T=e,{e:I,f:N}=t.matrix,X=e.bounds.width!==E.width||e.bounds.height!==E.height||e.scaleX!==w||e.scaleY!==v||e.rotation!==S,A=!X&&e.simple&&t.simple&&!a;return A||!f?(w=v=1,S=l=0):(p=(e=>{let t=e._gsap||V.core.getCache(e);return t.gmCache===V.ticker.frame?t.gMatrix:(t.gmCache=V.ticker.frame,t.gMatrix=C(e,!0,!1,!0))})(f),d=p.clone().multiply(t.ctm?t.matrix.clone().multiply(t.ctm):t.matrix),S=W(Math.atan2(d.b,d.a)*P),l=W(Math.atan2(d.c,d.d)*P+S)%360,w=Math.sqrt(d.a**2+d.b**2),v=Math.sqrt(d.c**2+d.d**2)*Math.cos(l*O),a&&(a=k(a)[0],h=V.getProperty(a),c=a.getBBox&&"function"==typeof a.getBBox&&a.getBBox(),T={scaleX:h("scaleX"),scaleY:h("scaleY"),width:c?c.width:Math.ceil(parseFloat(h("width","px"))),height:c?c.height:parseFloat(h("height","px"))}),u.rotation=S+"deg",u.skewX=l+"deg"),i?(w*=x!==T.width&&T.width?x/T.width:1,v*=b!==T.height&&T.height?b/T.height:1,u.scaleX=w,u.scaleY=v):(x=_(x*w/T.scaleX,0),b=_(b*v/T.scaleY,0),m.style.width=x+"px",m.style.height=b+"px"),s&&re(m,t.props),A||!f?(g+=I-e.matrix.e,y+=N-e.matrix.f):X||f!==t.parent?(u.renderTransform(1,u),d=C(a||m,!1,!1,!0),r=p.apply({x:d.e,y:d.f}),o=p.apply({x:I,y:N}),g+=o.x-r.x,y+=o.y-r.y):(p.e=p.f=0,o=p.apply({x:I-e.matrix.e,y:N-e.matrix.f}),g+=o.x,y+=o.y),g=_(g,.02),y=_(y,.02),!n||n instanceof ve?(u.x=g+"px",u.y=y+"px",u.renderTransform(1,u)):(m.style.cssText=B,m.getBBox&&m.setAttribute("transform",L||""),u.uncache=1),n&&(n.x=g,n.y=y,n.rotation=S,n.skewX=l,i?(n.scaleX=w,n.scaleY=v):(n.width=x,n.height=b)),n||u},de=(e,t)=>e instanceof we?e:new we(e,t),ce=(e,t,i)=>{let s=e.idLookup[i],a=e.alt[i];return!a.isVisible||(t.getElementState(a.element)||a).isVisible&&s.isVisible?s:a},me=[],ue="width,height,overflowX,overflowY".split(","),fe=e=>{if(e!==T){let t=L.style,i=L.clientWidth===window.outerWidth,s=L.clientHeight===window.outerHeight,a=4;if(e&&(i||s)){for(;a--;)me[a]=t[ue[a]];i&&(t.width=L.clientWidth+"px",t.overflowY="hidden"),s&&(t.height=L.clientHeight+"px",t.overflowX="hidden"),T=e}else if(T){for(;a--;)me[a]?t[ue[a]]=me[a]:t.removeProperty(J(ue[a]));T=e}}},ge=(e,t,i,s)=>{e instanceof we&&t instanceof we||console.warn("Not a valid state object."),i=i||{};let a,n,l,r,o,h,p,d,c,m,u,f,g,y,{clearProps:x,onEnter:b,onLeave:w,absolute:v,absoluteOnLeave:S,custom:k,delay:B,paused:L,repeat:_,repeatDelay:T,yoyo:I,toggleClass:N,nested:X,zIndex:P,scale:O,fade:A,stagger:M,spin:R,prune:H}=i,W=("props"in i?i:e).props,J=U(i,q),G=V.timeline({delay:B,paused:L,repeat:_,repeatDelay:T,yoyo:I}),ee=J,ie=[],se=[],le=[],re=[],oe=!0===R?1:R||0,de="function"==typeof R?R:()=>oe,me=e.interrupted||t.interrupted,ue=G[1!==s?"to":"from"];for(n in t.idLookup)u=t.alt[n]?ce(t,e,n):t.idLookup[n],o=u.element,m=e.idLookup[n],e.alt[n]&&o===m.element&&(e.alt[n].isVisible||!u.isVisible)&&(m=e.alt[n]),m?(h={t:o,b:m,a:u,sd:m.element===o?0:u.isVisible?1:-1},le.push(h),h.sd&&(h.sd<0&&(h.b=u,h.a=m),me&&Q(h.b,W?Y[W]:D),A&&le.push(h.swap={t:m.element,b:h.b,a:h.a,sd:-h.sd,swap:h})),o._flip=m.element._flip=E?E.timeline:G):u.isVisible&&(le.push({t:o,b:U(u,{isVisible:1}),a:u,sd:0,entering:1}),o._flip=E?E.timeline:G);return W&&(Z[W]||$(W)).forEach(e=>J[e]=t=>le[t].a.props[e]),le.finalStates=c=[],f=()=>{for(K(le),fe(!0),r=0;r<le.length;r++)h=le[r],g=h.a,y=h.b,!H||g.isDifferent(y)||h.entering?(o=h.t,X&&!(h.sd<0)&&r&&(g.matrix=C(o,!1,!1,!0)),h.sd||y.isVisible&&g.isVisible?(h.sd<0?(p=new ve(o,W,e.simple),pe(p,g,O,0,0,p),p.matrix=C(o,!1,!1,!0),p.css=h.b.css,h.a=g=p,A&&(o.style.opacity=me?y.opacity:g.opacity),M&&re.push(o)):h.sd>0&&A&&(o.style.opacity=me?g.opacity-y.opacity:"0"),pe(g,y,O,W)):y.isVisible!==g.isVisible&&(y.isVisible?g.isVisible||(y.css=g.css,se.push(y),le.splice(r--,1),v&&X&&pe(g,y,O,W)):(g.isVisible&&ie.push(g),le.splice(r--,1))),O||(o.style.maxWidth=Math.max(g.width,y.width)+"px",o.style.maxHeight=Math.max(g.height,y.height)+"px",o.style.minWidth=Math.min(g.width,y.width)+"px",o.style.minHeight=Math.min(g.height,y.height)+"px"),X&&N&&o.classList.add(N)):le.splice(r--,1),c.push(g);let t;if(N&&(t=c.map(e=>e.element),X&&t.forEach(e=>e.classList.remove(N))),fe(!1),O?(J.scaleX=e=>le[e].a.scaleX,J.scaleY=e=>le[e].a.scaleY):(J.width=e=>le[e].a.width+"px",J.height=e=>le[e].a.height+"px",J.autoRound=i.autoRound||!1),J.x=e=>le[e].a.x+"px",J.y=e=>le[e].a.y+"px",J.rotation=e=>le[e].a.rotation+(R?360*de(e,d[e],d):0),J.skewX=e=>le[e].a.skewX,d=le.map(e=>e.t),(P||0===P)&&(J.modifiers={zIndex:()=>P},J.zIndex=P,J.immediateRender=!1!==i.immediateRender),A&&(J.opacity=e=>le[e].sd<0?0:le[e].sd>0?le[e].a.opacity:"+=0"),re.length){M=V.utils.distribute(M);let e=d.slice(re.length);J.stagger=(t,i)=>M(~re.indexOf(i)?d.indexOf(le[t].swap.t):t,i,e)}if(z.forEach(e=>i[e]&&G.eventCallback(e,i[e],i[e+"Params"])),k&&d.length)for(n in ee=U(J,q),"scale"in k&&(k.scaleX=k.scaleY=k.scale,delete k.scale),k)a=U(k[n],j),a[n]=J[n],!("duration"in a)&&"duration"in J&&(a.duration=J.duration),a.stagger=J.stagger,ue.call(G,d,a,0),delete ee[n];(d.length||se.length||ie.length)&&(N&&G.add(()=>F(t,N,G._zTime<0?"remove":"add"),0)&&!L&&F(t,N,"add"),d.length&&ue.call(G,d,ee,0)),he(b,ie,G),he(w,se,G);let s=E&&E.timeline;s&&(s.add(G,0),E._final.push(()=>te(le,!x))),l=G.duration(),G.call(()=>{let e=G.time()>=l;e&&!s&&te(le,!x),N&&F(t,N,e?"remove":"add")})},S&&(v=le.filter(e=>!e.sd&&!e.a.isVisible&&e.b.isVisible).map(e=>e.a.element)),E?(v&&E._abs.push(...ae(le,v)),E._run.push(f)):(v&&ne(ae(le,v)),f()),E?E.timeline:G},ye=e=>{e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(ye)},xe=(e,t)=>{if(e&&e.progress()<1&&!e.paused())return t&&(ye(e),t<2&&e.progress(1),e.kill()),!0},be=e=>{let t,i=e.idLookup={},s=e.alt={},a=e.elementStates,n=a.length;for(;n--;)t=a[n],i[t.id]?s[t.id]=t:i[t.id]=t};class we{constructor(e,t,i){if(this.props=t&&t.props,this.simple=!(!t||!t.simple),i)this.targets=oe(e),this.elementStates=e,be(this);else{this.targets=k(e);let i=t&&(!1===t.kill||t.batch&&!t.kill);E&&!i&&E._kill.push(this),this.update(i||!!E)}}update(e){return this.elementStates=this.targets.map(e=>new ve(e,this.props,this.simple)),be(this),this.interrupt(e),this.recordInlineStyles(),this}clear(){return this.targets.length=this.elementStates.length=0,be(this),this}fit(e,t,i){let s,a,n=K(this.elementStates.slice(0),!1,!0),l=(e||this).idLookup,r=0;for(;r<n.length;r++)s=n[r],i&&(s.matrix=C(s.element,!1,!1,!0)),a=l[s.id],a&&pe(s,a,t,!0,0,s),s.matrix=C(s.element,!1,!1,!0);return this}getProperty(e,t){let i=this.getElementState(e)||A;return(t in i?i:i.props||A)[t]}add(e){let t,i,s,a=e.targets.length,n=this.idLookup,l=this.alt;for(;a--;)i=e.elementStates[a],s=n[i.id],s&&(i.element===s.element||l[i.id]&&l[i.id].element===i.element)?(t=this.elementStates.indexOf(i.element===s.element?s:l[i.id]),this.targets.splice(t,1,e.targets[a]),this.elementStates.splice(t,1,i)):(this.targets.push(e.targets[a]),this.elementStates.push(i));return e.interrupted&&(this.interrupted=!0),e.simple||(this.simple=!1),be(this),this}compare(e){let t,i,s,a,n,l,r,o,h=e.idLookup,p=this.idLookup,d=[],c=[],m=[],u=[],f=[],g=e.alt,y=this.alt,x=(e,t,i)=>(e.isVisible!==t.isVisible?e.isVisible?m:u:e.isVisible?c:d).push(i)&&f.push(i),b=(e,t,i)=>f.indexOf(i)<0&&x(e,t,i);for(s in h)n=g[s],l=y[s],t=n?ce(e,this,s):h[s],a=t.element,i=p[s],l?(o=i.isVisible||!l.isVisible&&a===i.element?i:l,r=!n||t.isVisible||n.isVisible||o.element!==n.element?t:n,r.isVisible&&o.isVisible&&r.element!==o.element?((r.isDifferent(o)?c:d).push(r.element,o.element),f.push(r.element,o.element)):x(r,o,r.element),n&&r.element===n.element&&(n=h[s]),b(r.element!==i.element&&n?n:r,i,i.element),b(n&&n.element===l.element?n:r,l,l.element),n&&b(n,l.element===n.element?l:i,n.element)):(i?i.isDifferent(t)?x(t,i,a):d.push(a):m.push(a),n&&b(n,i,n.element));for(s in p)h[s]||(u.push(p[s].element),y[s]&&u.push(y[s].element));return{changed:c,unchanged:d,enter:m,leave:u}}recordInlineStyles(){let e=Y[this.props]||D,t=this.elementStates.length;for(;t--;)Q(this.elementStates[t],e)}interrupt(e){let t=[];this.targets.forEach(i=>{let s=i._flip,a=xe(s,e?0:1);e&&a&&t.indexOf(s)<0&&s.add(()=>this.updateVisibility()),a&&t.push(s)}),!e&&t.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!t.length)}updateVisibility(){this.elementStates.forEach(e=>{let t=e.element.getBoundingClientRect();e.isVisible=!!(t.width||t.height||t.top||t.left),e.uncache=1})}getElementState(e){return this.elementStates[this.targets.indexOf(H(e))]}makeAbsolute(){return K(this.elementStates.slice(0),!0,!0).map(se)}}class ve{constructor(e,t,i){this.element=e,this.update(t,i)}isDifferent(e){let t=this.bounds,i=e.bounds;return t.top!==i.top||t.left!==i.left||t.width!==i.width||t.height!==i.height||!this.matrix.equals(e.matrix)||this.opacity!==e.opacity||this.props&&e.props&&JSON.stringify(this.props)!==JSON.stringify(e.props)}update(e,t){let i=this.element,s=V.getProperty(i),a=V.core.getCache(i),n=i.getBoundingClientRect(),l=i.getBBox&&"function"==typeof i.getBBox&&"svg"!==i.nodeName.toLowerCase()&&i.getBBox(),r=t?new S(1,0,0,1,n.left+f(),n.top+u()):C(i,!1,!1,!0);this.getProp=s,this.element=i,this.id=(e=>{let t=e.getAttribute("data-flip-id");return t||e.setAttribute("data-flip-id",t="auto-"+I++),t})(i),this.matrix=r,this.cache=a,this.bounds=n,this.isVisible=!!(n.width||n.height||n.left||n.top),this.display=s("display"),this.position=s("position"),this.parent=i.parentNode,this.x=s("x"),this.y=s("y"),this.scaleX=a.scaleX,this.scaleY=a.scaleY,this.rotation=s("rotation"),this.skewX=s("skewX"),this.opacity=s("opacity"),this.width=l?l.width:_(s("width","px"),.04),this.height=l?l.height:_(s("height","px"),.04),e&&((e,t)=>{let i=V.getProperty(e.element,null,"native"),s=e.props={},a=t.length;for(;a--;)s[t[a]]=(i(t[a])+"").trim();s.zIndex&&(s.zIndex=parseFloat(s.zIndex)||0)})(this,Z[e]||$(e)),this.ctm=i.getCTM&&"svg"===i.nodeName.toLowerCase()&&b(i).inverse(),this.simple=t||1===W(r.a)&&!W(r.b)&&!W(r.c)&&1===W(r.d),this.uncache=0}}class Se{constructor(e,t){this.vars=e,this.batch=t,this.states=[],this.timeline=t.timeline}getStateById(e){let t=this.states.length;for(;t--;)if(this.states[t].idLookup[e])return this.states[t]}kill(){this.batch.remove(this)}}class Ce{constructor(e){this.id=e,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new we,this.timeline=V.timeline()}add(e){let t=this.actions.filter(t=>t.vars===e);return t.length?t[0]:(t=new Se("function"==typeof e?{animate:e}:e,this),this.actions.push(t),t)}remove(e){let t=this.actions.indexOf(e);return t>=0&&this.actions.splice(t,1),this}getState(e){let t=E,i=B;return E=this,this.state.clear(),this._kill.length=0,this.actions.forEach(t=>{t.vars.getState&&(t.states.length=0,B=t,t.state=t.vars.getState(t)),e&&t.states.forEach(e=>this.state.add(e))}),B=i,E=t,this.killConflicts(),this}animate(){let e,t,i=E,s=this.timeline,a=this.actions.length;for(E=this,s.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(e=>{e.vars.animate&&e.vars.animate(e);let t,i,s=e.vars.onEnter,a=e.vars.onLeave,n=e.targets;n&&n.length&&(s||a)&&(t=new we,e.states.forEach(e=>t.add(e)),i=t.compare(ke.getState(n)),i.enter.length&&s&&s(i.enter),i.leave.length&&a&&a(i.leave))}),ne(this._abs),this._run.forEach(e=>e()),t=s.duration(),e=this._final.slice(0),s.add(()=>{t<=s.time()&&(e.forEach(e=>e()),N(this,"onComplete"))}),E=i;a--;)this.actions[a].vars.once&&this.actions[a].kill();return N(this,"onStart"),s.restart(),this}loadState(e){e||(e=()=>0);let t=[];return this.actions.forEach(i=>{if(i.vars.loadState){let s,a=n=>{n&&(i.targets=n),s=t.indexOf(a),~s&&(t.splice(s,1),t.length||e())};t.push(a),i.vars.loadState(a)}}),t.length||e(),this}setState(){return this.actions.forEach(e=>e.targets=e.vars.setState&&e.vars.setState(e)),this}killConflicts(e){return this.state.interrupt(e),this._kill.forEach(t=>t.interrupt(e)),this}run(e,t){return this!==E&&(e||this.getState(t),this.loadState(()=>{this._killed||(this.setState(),this.animate())})),this}clear(e){this.state.clear(),e||(this.actions.length=0)}getStateById(e){let t,i=this.actions.length;for(;i--;)if(t=this.actions[i].getStateById(e),t)return t;return this.state.idLookup[e]&&this.state}kill(){this._killed=1,this.clear(),delete X[this.id]}}class ke{static getState(e,t){let i=de(e,t);return B&&B.states.push(i),t&&t.batch&&ke.batch(t.batch).state.add(i),i}static from(e,t){return"clearProps"in(t=t||{})||(t.clearProps=!0),ge(e,de(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,-1)}static to(e,t){return ge(e,de(t.targets||e.targets,{props:t.props||e.props,simple:t.simple,kill:!!t.kill}),t,1)}static fromTo(e,t,i){return ge(e,t,i)}static fit(e,t,i){let s=i?U(i,j):{},{absolute:a,scale:n,getVars:l,props:r,runBackwards:o,onComplete:h,simple:p}=i||s,d=i&&i.fitChild&&H(i.fitChild),c=le(t,r,p,e),m=le(e,0,p,c),u=r?Y[r]:D;return r&&re(s,c.props),o&&(Q(m,u),"immediateRender"in s||(s.immediateRender=!0),s.onComplete=function(){ee(m),h&&h.apply(this,arguments)}),a&&se(m,c),s=pe(m,c,n||d,r,d,s.duration||l?s:0),l?s:s.duration?V.to(m.element,s):null}static makeAbsolute(e,t){return(e instanceof we?e:new we(e,t)).makeAbsolute()}static batch(e){return e||(e="default"),X[e]||(X[e]=new Ce(e))}static killFlipsOf(e,t){(e instanceof we?e.targets:k(e)).forEach(e=>e&&xe(e._flip,!1!==t?1:2))}static isFlipping(e){let t=ke.getByTarget(e);return!!t&&t.isActive()}static getByTarget(e){return(H(e)||A)._flip}static getElementState(e,t){return new ve(H(e),t)}static convertCoordinates(e,t,i){let s=C(t,!0,!0).multiply(C(e));return i?s.apply(i):s}static register(e){if(L="undefined"!=typeof document&&document.body,L){V=e,d(L),k=V.utils.toArray;let t=V.utils.snap(.1);_=(e,i)=>t(parseFloat(e)+i)}}}ke.version="3.10.3","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(ke);export default ke;export{ke as Flip}; |
/*! | ||
* InertiaPlugin 3.10.2 | ||
* InertiaPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
let t,e,i,r,n,o,s,a,l,c=()=>t||"undefined"!=typeof window&&(t=window.gsap),g={},p=t=>l(t).id,u=t=>g[p("string"==typeof t?i(t)[0]:t)],d=t=>{let e,i=n;if(t-s>=.05)for(a=s,s=t;i;)e=i.g(i.t,i.p),(e!==i.v1||t-i.t1>.2)&&(i.v2=i.v1,i.v1=e,i.t2=i.t1,i.t1=t),i=i._next},h={deg:360,rad:2*Math.PI},f=()=>{t=c(),t&&(i=t.utils.toArray,r=t.utils.getUnit,l=t.core.getCache,o=t.ticker,e=1)};class m{constructor(t,e,i,n){this.t=t,this.p=e,this.g=t._gsap.get,this.rCap=h[i||r(this.g(t,e))],this.v1=this.v2=0,this.t1=this.t2=o.time,n&&(this._next=n,n._prev=this)}}class v{constructor(t,r){e||f(),this.target=i(t)[0],g[p(this.target)]=this,this._props={},r&&this.add(r)}static register(e){t=e,f()}get(t,e){let i,r,n,s=this._props[t]||console.warn("Not tracking "+t+" velocity.");return i=parseFloat(e?s.v1:s.g(s.t,s.p)),r=i-parseFloat(s.v2),n=s.rCap,n&&(r%=n,r!==r%(n/2)&&(r=r<0?r+n:r-n)),a=r/((e?s.t1:o.time)-s.t2),Math.round(1e4*a)/1e4;var a}getAll(){let t,e={},i=this._props;for(t in i)e[t]=this.get(t);return e}isTracking(t){return t in this._props}add(t,e){t in this._props||(n||(o.add(d),s=a=o.time),n=this._props[t]=new m(this.target,t,e,n))}remove(t){let e,i,r=this._props[t];r&&(e=r._prev,i=r._next,e&&(e._next=i),i?i._prev=e:n===r&&(o.remove(d),n=0),delete this._props[t])}kill(t){for(let t in this._props)this.remove(t);t||delete g[p(this.target)]}static track(t,r,n){e||f();let o,s,a=[],l=i(t),c=r.split(","),g=(n||"").split(","),p=l.length;for(;p--;){for(o=u(l[p])||new v(l[p]),s=c.length;s--;)o.add(c[s],g[s]||g[0]);a.push(o)}return a}static untrack(t,e){let r=(e||"").split(",");i(t).forEach(t=>{let e=u(t);e&&(r.length?r.forEach(t=>e.remove(t)):e.kill(1))})}static isTracking(t,e){let i=u(t);return i&&i.isTracking(e)}static getVelocity(t,e){let i=u(t);return i&&i.isTracking(e)?i.get(e):console.warn("Not tracking velocity of "+e)}}v.getByTarget=u,c()&&t.registerPlugin(v);let w,y,_,x,k,T,F,P,N,O,M,b,E=v.getByTarget,A=()=>w||"undefined"!=typeof window&&(w=window.gsap)&&w.registerPlugin&&w,C=t=>"number"==typeof t,I=t=>"object"==typeof t,B=t=>"function"==typeof t,R=function(){return String.fromCharCode.apply(null,arguments)},S=R(103,114,101,101,110,115,111,99,107,46,99,111,109),W=function(t){var e="undefined"!=typeof window,i=0===(e?window.location.href:"").indexOf(R(102,105,108,101,58,47,47))||-1!==t.indexOf(R(108,111,99,97,108,104,111,115,116))||-1!==t.indexOf(R(49,50,55,46,48,32,48,46,49)),r=[S,R(99,111,100,101,112,101,110,46,105,111),R(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),R(99,111,100,101,112,101,110,46,100,101,118),R(99,111,100,101,112,101,110,46,97,112,112),R(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),R(112,101,110,115,46,99,108,111,117,100),R(99,115,115,45,116,114,105,99,107,115,46,99,111,109),R(99,100,112,110,46,105,111),R(112,101,110,115,46,105,111),R(103,97,110,110,111,110,46,116,118),R(99,111,100,101,99,97,110,121,111,110,46,110,101,116),R(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),R(99,101,114,101,98,114,97,120,46,99,111,46,117,107),R(116,121,109,112,97,110,117,115,46,110,101,116),R(116,119,101,101,110,109,97,120,46,99,111,109),R(116,119,101,101,110,108,105,116,101,46,99,111,109),R(112,108,110,107,114,46,99,111),R(104,111,116,106,97,114,46,99,111,109),R(119,101,98,112,97,99,107,98,105,110,46,99,111,109),R(97,114,99,104,105,118,101,46,111,114,103),R(99,111,100,101,115,97,110,100,98,111,120,46,105,111),R(99,115,98,46,97,112,112),R(115,116,97,99,107,98,108,105,116,122,46,99,111,109),R(115,116,97,99,107,98,108,105,116,122,46,105,111),R(99,111,100,105,101,114,46,105,111),R(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),R(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),R(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),R(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){e&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",n):(document.removeEventListener("readystatechange",n),e&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(R(37,99,87,97,114,110,105,110,103),R(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(R(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"InertiaPlugin"+R(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(R(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),R(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},o=r.length;for(setTimeout(n,50);--o>-1;)if(-1!==t.indexOf(r[o]))return!0;return i||!setTimeout((function(){e&&(window.location.href=R(104,116,116,112,115,58,47,47)+S+R(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=InertiaPlugin&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),j=Array.isArray,L=t=>t,U=1e10,V=(t,e,i)=>{for(let r in e)r in t||r===i||(t[r]=e[r]);return t},q=t=>{let e,i,r={};for(e in t)r[e]=I(i=t[e])&&!j(i)?q(i):i;return r},z=(t,e,i,r,n)=>{let o,s,a,l,c=e.length,g=0,p=U;if(I(t)){for(;c--;){for(a in o=e[c],s=0,t)l=o[a]-t[a],s+=l*l;s<p&&(g=c,p=s)}if((n||U)<U&&n<Math.sqrt(p))return t}else for(;c--;)o=e[c],s=o-t,s<0&&(s=-s),s<p&&o>=r&&o<=i&&(g=c,p=s);return e[g]},D=(t,e,i,r,n,o,s)=>{if("auto"===t.end)return t;let a,l,c=t.end;if(i=isNaN(i)?U:i,r=isNaN(r)?-U:r,I(e)){if(a=e.calculated?e:(B(c)?c(e,s):z(e,c,i,r,o))||e,!e.calculated){for(l in a)e[l]=a[l];e.calculated=!0}a=a[n]}else a=B(c)?c(e,s):j(c)?z(e,c,i,r,o):parseFloat(c);return a>i?a=i:a<r&&(a=r),{max:a,min:a,unitFactor:t.unitFactor}},G=(t,e,i)=>isNaN(t[e])?i:+t[e],H=(t,e)=>.05*e*t/O,J=(t,e,i)=>Math.abs((e-t)*O/i/.05),K={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},Q=(t,e,i,r)=>{if(e.linkedProps){let n,o,s,a,l,c,g=e.linkedProps.split(","),p={};for(n=0;n<g.length;n++)o=g[n],s=e[o],s&&(C(s.velocity)?a=s.velocity:(l=l||E(t),a=l&&l.isTracking(o)?l.get(o):0),c=Math.abs(a/G(s,"resistance",r)),p[o]=parseFloat(i(t,o))+H(a,c));return p}},X=()=>{w=A(),w&&(_=w.parseEase,x=w.utils.toArray,F=w.utils.getUnit,N=w.core.getCache,M=w.utils.clamp,k=_("power3"),O=k(.05),P=w.core.PropTween,w.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),T=w.config(),w.registerPlugin(v),y=1)};const Y={version:"3.10.2",name:"inertia",register(t){w=t,X()},init(t,e,i,r,n){y||X();let o=E(t);if("auto"===e){if(!o)return void console.warn("No inertia tracking on "+t+". InertiaPlugin.track(target) first.");e=o.getAll()}this.target=t,this.tween=i,b=e;let s,a,l,c,g,p,u,d,h,f=t._gsap,m=f.get,v=e.duration,w=I(v),_=e.preventOvershoot||w&&0===v.overshoot,k=G(e,"resistance",T.resistance),O=C(v)?v:((t,e,i=10,r=.2,n=1,o=0)=>{if("string"==typeof t&&(t=x(t)[0]),!t)return 0;let s,a,l,c,g,p,u,d,h,f,m=0,v=U,w=e.inertia||e,y=N(t).get,_=G(w,"resistance",T.resistance);for(s in f=Q(t,w,y,_),w)K[s]||(a=w[s],I(a)||(d=d||E(t),d&&d.isTracking(s)?a=C(a)?{velocity:a}:{velocity:d.get(s)}:(c=+a||0,l=Math.abs(c/_))),I(a)&&(C(a.velocity)?c=a.velocity:(d=d||E(t),c=d&&d.isTracking(s)?d.get(s):0),l=M(r,i,Math.abs(c/G(a,"resistance",_))),g=parseFloat(y(t,s))||0,p=g+H(c,l),"end"in a&&(a=D(a,f&&s in f?f:p,a.max,a.min,s,w.radius,c),o&&(b===e&&(b=w=q(e)),w[s]=V(a,w[s],"end"))),"max"in a&&p>+a.max+1e-10?(h=a.unitFactor||T.unitFactors[s]||1,u=g>a.max&&a.min!==a.max||c*h>-15&&c*h<45?r+.1*(i-r):J(g,a.max,c),u+n<v&&(v=u+n)):"min"in a&&p<+a.min-1e-10&&(h=a.unitFactor||T.unitFactors[s]||1,u=g<a.min&&a.min!==a.max||c*h>-45&&c*h<15?r+.1*(i-r):J(g,a.min,c),u+n<v&&(v=u+n)),u>m&&(m=u)),l>m&&(m=l));return m>v&&(m=v),m>i?i:m<r?r:m})(t,e,w&&v.max||10,w&&v.min||.2,w&&"overshoot"in v?+v.overshoot:_?0:1,!0);for(s in e=b,b=0,h=Q(t,e,m,k),e)K[s]||(a=e[s],B(a)&&(a=a(r,t,n)),C(a)?g=a:I(a)&&!isNaN(a.velocity)?g=+a.velocity:o&&o.isTracking(s)?g=o.get(s):console.warn("ERROR: No velocity was defined for "+t+" property: "+s),p=H(g,O),d=0,l=m(t,s),c=F(l),l=parseFloat(l),I(a)&&(u=l+p,"end"in a&&(a=D(a,h&&s in h?h:u,a.max,a.min,s,e.radius,g)),"max"in a&&+a.max<u?_||a.preventOvershoot?p=a.max-l:d=a.max-l-p:"min"in a&&+a.min>u&&(_||a.preventOvershoot?p=a.min-l:d=a.min-l-p)),this._props.push(s),this._pt=new P(this._pt,t,s,l,0,L,0,f.set(t,s,this)),this._pt.u=c||0,this._pt.c1=p,this._pt.c2=d);return i.duration(O),W},render(t,e){let i=e._pt;for(t=k(e.tween._time/e.tween._dur);i;)i.set(i.t,i.p,(r=i.s+i.c1*t+i.c2*t*t,Math.round(1e4*r)/1e4+i.u),i.d,t),i=i._next;var r}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach(t=>Y[t]=v[t]),A()&&w.registerPlugin(Y);export default Y;export{Y as InertiaPlugin,v as VelocityTracker}; | ||
let t,e,i,r,n,o,s,a,l,c=()=>t||"undefined"!=typeof window&&(t=window.gsap),g={},p=t=>l(t).id,u=t=>g[p("string"==typeof t?i(t)[0]:t)],d=t=>{let e,i=n;if(t-s>=.05)for(a=s,s=t;i;)e=i.g(i.t,i.p),(e!==i.v1||t-i.t1>.2)&&(i.v2=i.v1,i.v1=e,i.t2=i.t1,i.t1=t),i=i._next},h={deg:360,rad:2*Math.PI},f=()=>{t=c(),t&&(i=t.utils.toArray,r=t.utils.getUnit,l=t.core.getCache,o=t.ticker,e=1)};class m{constructor(t,e,i,n){this.t=t,this.p=e,this.g=t._gsap.get,this.rCap=h[i||r(this.g(t,e))],this.v1=this.v2=0,this.t1=this.t2=o.time,n&&(this._next=n,n._prev=this)}}class v{constructor(t,r){e||f(),this.target=i(t)[0],g[p(this.target)]=this,this._props={},r&&this.add(r)}static register(e){t=e,f()}get(t,e){let i,r,n,s=this._props[t]||console.warn("Not tracking "+t+" velocity.");return i=parseFloat(e?s.v1:s.g(s.t,s.p)),r=i-parseFloat(s.v2),n=s.rCap,n&&(r%=n,r!==r%(n/2)&&(r=r<0?r+n:r-n)),a=r/((e?s.t1:o.time)-s.t2),Math.round(1e4*a)/1e4;var a}getAll(){let t,e={},i=this._props;for(t in i)e[t]=this.get(t);return e}isTracking(t){return t in this._props}add(t,e){t in this._props||(n||(o.add(d),s=a=o.time),n=this._props[t]=new m(this.target,t,e,n))}remove(t){let e,i,r=this._props[t];r&&(e=r._prev,i=r._next,e&&(e._next=i),i?i._prev=e:n===r&&(o.remove(d),n=0),delete this._props[t])}kill(t){for(let t in this._props)this.remove(t);t||delete g[p(this.target)]}static track(t,r,n){e||f();let o,s,a=[],l=i(t),c=r.split(","),g=(n||"").split(","),p=l.length;for(;p--;){for(o=u(l[p])||new v(l[p]),s=c.length;s--;)o.add(c[s],g[s]||g[0]);a.push(o)}return a}static untrack(t,e){let r=(e||"").split(",");i(t).forEach(t=>{let e=u(t);e&&(r.length?r.forEach(t=>e.remove(t)):e.kill(1))})}static isTracking(t,e){let i=u(t);return i&&i.isTracking(e)}static getVelocity(t,e){let i=u(t);return i&&i.isTracking(e)?i.get(e):console.warn("Not tracking velocity of "+e)}}v.getByTarget=u,c()&&t.registerPlugin(v);let w,y,_,x,k,T,F,P,N,O,M,b,E=v.getByTarget,A=()=>w||"undefined"!=typeof window&&(w=window.gsap)&&w.registerPlugin&&w,C=t=>"number"==typeof t,I=t=>"object"==typeof t,B=t=>"function"==typeof t,R=function(){return String.fromCharCode.apply(null,arguments)},S=R(103,114,101,101,110,115,111,99,107,46,99,111,109),W=function(t){var e="undefined"!=typeof window,i=0===(e?window.location.href:"").indexOf(R(102,105,108,101,58,47,47))||-1!==t.indexOf(R(108,111,99,97,108,104,111,115,116))||-1!==t.indexOf(R(49,50,55,46,48,32,48,46,49)),r=[S,R(99,111,100,101,112,101,110,46,105,111),R(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),R(99,111,100,101,112,101,110,46,100,101,118),R(99,111,100,101,112,101,110,46,97,112,112),R(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),R(112,101,110,115,46,99,108,111,117,100),R(99,115,115,45,116,114,105,99,107,115,46,99,111,109),R(99,100,112,110,46,105,111),R(112,101,110,115,46,105,111),R(103,97,110,110,111,110,46,116,118),R(99,111,100,101,99,97,110,121,111,110,46,110,101,116),R(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),R(99,101,114,101,98,114,97,120,46,99,111,46,117,107),R(116,121,109,112,97,110,117,115,46,110,101,116),R(116,119,101,101,110,109,97,120,46,99,111,109),R(116,119,101,101,110,108,105,116,101,46,99,111,109),R(112,108,110,107,114,46,99,111),R(104,111,116,106,97,114,46,99,111,109),R(119,101,98,112,97,99,107,98,105,110,46,99,111,109),R(97,114,99,104,105,118,101,46,111,114,103),R(99,111,100,101,115,97,110,100,98,111,120,46,105,111),R(99,115,98,46,97,112,112),R(115,116,97,99,107,98,108,105,116,122,46,99,111,109),R(115,116,97,99,107,98,108,105,116,122,46,105,111),R(99,111,100,105,101,114,46,105,111),R(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),R(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),R(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),R(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){e&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",n):(document.removeEventListener("readystatechange",n),e&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(R(37,99,87,97,114,110,105,110,103),R(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(R(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"InertiaPlugin"+R(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(R(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),R(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},o=r.length;for(setTimeout(n,50);--o>-1;)if(-1!==t.indexOf(r[o]))return!0;return i||!setTimeout((function(){e&&(window.location.href=R(104,116,116,112,115,58,47,47)+S+R(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=InertiaPlugin&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),j=Array.isArray,L=t=>t,U=1e10,V=(t,e,i)=>{for(let r in e)r in t||r===i||(t[r]=e[r]);return t},q=t=>{let e,i,r={};for(e in t)r[e]=I(i=t[e])&&!j(i)?q(i):i;return r},z=(t,e,i,r,n)=>{let o,s,a,l,c=e.length,g=0,p=U;if(I(t)){for(;c--;){for(a in o=e[c],s=0,t)l=o[a]-t[a],s+=l*l;s<p&&(g=c,p=s)}if((n||U)<U&&n<Math.sqrt(p))return t}else for(;c--;)o=e[c],s=o-t,s<0&&(s=-s),s<p&&o>=r&&o<=i&&(g=c,p=s);return e[g]},D=(t,e,i,r,n,o,s)=>{if("auto"===t.end)return t;let a,l,c=t.end;if(i=isNaN(i)?U:i,r=isNaN(r)?-U:r,I(e)){if(a=e.calculated?e:(B(c)?c(e,s):z(e,c,i,r,o))||e,!e.calculated){for(l in a)e[l]=a[l];e.calculated=!0}a=a[n]}else a=B(c)?c(e,s):j(c)?z(e,c,i,r,o):parseFloat(c);return a>i?a=i:a<r&&(a=r),{max:a,min:a,unitFactor:t.unitFactor}},G=(t,e,i)=>isNaN(t[e])?i:+t[e],H=(t,e)=>.05*e*t/O,J=(t,e,i)=>Math.abs((e-t)*O/i/.05),K={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},Q=(t,e,i,r)=>{if(e.linkedProps){let n,o,s,a,l,c,g=e.linkedProps.split(","),p={};for(n=0;n<g.length;n++)o=g[n],s=e[o],s&&(C(s.velocity)?a=s.velocity:(l=l||E(t),a=l&&l.isTracking(o)?l.get(o):0),c=Math.abs(a/G(s,"resistance",r)),p[o]=parseFloat(i(t,o))+H(a,c));return p}},X=()=>{w=A(),w&&(_=w.parseEase,x=w.utils.toArray,F=w.utils.getUnit,N=w.core.getCache,M=w.utils.clamp,k=_("power3"),O=k(.05),P=w.core.PropTween,w.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),T=w.config(),w.registerPlugin(v),y=1)};const Y={version:"3.10.3",name:"inertia",register(t){w=t,X()},init(t,e,i,r,n){y||X();let o=E(t);if("auto"===e){if(!o)return void console.warn("No inertia tracking on "+t+". InertiaPlugin.track(target) first.");e=o.getAll()}this.target=t,this.tween=i,b=e;let s,a,l,c,g,p,u,d,h,f=t._gsap,m=f.get,v=e.duration,w=I(v),_=e.preventOvershoot||w&&0===v.overshoot,k=G(e,"resistance",T.resistance),O=C(v)?v:((t,e,i=10,r=.2,n=1,o=0)=>{if("string"==typeof t&&(t=x(t)[0]),!t)return 0;let s,a,l,c,g,p,u,d,h,f,m=0,v=U,w=e.inertia||e,y=N(t).get,_=G(w,"resistance",T.resistance);for(s in f=Q(t,w,y,_),w)K[s]||(a=w[s],I(a)||(d=d||E(t),d&&d.isTracking(s)?a=C(a)?{velocity:a}:{velocity:d.get(s)}:(c=+a||0,l=Math.abs(c/_))),I(a)&&(C(a.velocity)?c=a.velocity:(d=d||E(t),c=d&&d.isTracking(s)?d.get(s):0),l=M(r,i,Math.abs(c/G(a,"resistance",_))),g=parseFloat(y(t,s))||0,p=g+H(c,l),"end"in a&&(a=D(a,f&&s in f?f:p,a.max,a.min,s,w.radius,c),o&&(b===e&&(b=w=q(e)),w[s]=V(a,w[s],"end"))),"max"in a&&p>+a.max+1e-10?(h=a.unitFactor||T.unitFactors[s]||1,u=g>a.max&&a.min!==a.max||c*h>-15&&c*h<45?r+.1*(i-r):J(g,a.max,c),u+n<v&&(v=u+n)):"min"in a&&p<+a.min-1e-10&&(h=a.unitFactor||T.unitFactors[s]||1,u=g<a.min&&a.min!==a.max||c*h>-45&&c*h<15?r+.1*(i-r):J(g,a.min,c),u+n<v&&(v=u+n)),u>m&&(m=u)),l>m&&(m=l));return m>v&&(m=v),m>i?i:m<r?r:m})(t,e,w&&v.max||10,w&&v.min||.2,w&&"overshoot"in v?+v.overshoot:_?0:1,!0);for(s in e=b,b=0,h=Q(t,e,m,k),e)K[s]||(a=e[s],B(a)&&(a=a(r,t,n)),C(a)?g=a:I(a)&&!isNaN(a.velocity)?g=+a.velocity:o&&o.isTracking(s)?g=o.get(s):console.warn("ERROR: No velocity was defined for "+t+" property: "+s),p=H(g,O),d=0,l=m(t,s),c=F(l),l=parseFloat(l),I(a)&&(u=l+p,"end"in a&&(a=D(a,h&&s in h?h:u,a.max,a.min,s,e.radius,g)),"max"in a&&+a.max<u?_||a.preventOvershoot?p=a.max-l:d=a.max-l-p:"min"in a&&+a.min>u&&(_||a.preventOvershoot?p=a.min-l:d=a.min-l-p)),this._props.push(s),this._pt=new P(this._pt,t,s,l,0,L,0,f.set(t,s,this)),this._pt.u=c||0,this._pt.c1=p,this._pt.c2=d);return i.duration(O),W},render(t,e){let i=e._pt;for(t=k(e.tween._time/e.tween._dur);i;)i.set(i.t,i.p,(r=i.s+i.c1*t+i.c2*t*t,Math.round(1e4*r)/1e4+i.u),i.d,t),i=i._next;var r}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach(t=>Y[t]=v[t]),A()&&w.registerPlugin(Y);export default Y;export{Y as InertiaPlugin,v as VelocityTracker}; |
/*! | ||
* MorphSVGPlugin 3.10.2 | ||
* MorphSVGPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
let e=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,t=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,r=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,n=/(^[#\.][a-z]|[a-y][a-z])/i,o=Math.PI/180,i=Math.sin,a=Math.cos,l=Math.abs,s=Math.sqrt,h=e=>"string"==typeof e,p=e=>"number"==typeof e,g=e=>Math.round(1e5*e)/1e5||0;function d(e){let t,r=0;for(e.reverse();r<e.length;r+=2)t=e[r],e[r]=e[r+1],e[r+1]=t;e.reversed=!e.reversed}let c={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function f(e,r){let n,o,i,a,l,s,h,p,g,d,f,u,m,w,x,M,P,b,N,S,T,v,z=e.tagName.toLowerCase(),A=.552284749831;return"path"!==z&&e.getBBox?(s=((e,t)=>{let r,n=document.createElementNS("http://www.w3.org/2000/svg","path"),o=[].slice.call(e.attributes),i=o.length;for(t=","+t+",";--i>-1;)r=o[i].nodeName.toLowerCase(),t.indexOf(","+r+",")<0&&n.setAttributeNS(null,r,o[i].nodeValue);return n})(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),v=((e,t)=>{let r=t?t.split(","):[],n={},o=r.length;for(;--o>-1;)n[r[o]]=+e.getAttribute(r[o])||0;return n})(e,c[z]),"rect"===z?(a=v.rx,l=v.ry||a,o=v.x,i=v.y,d=v.width-2*a,f=v.height-2*l,a||l?(u=o+a*(1-A),m=o+a,w=m+d,x=w+a*A,M=w+a,P=i+l*(1-A),b=i+l,N=b+f,S=N+l*A,T=N+l,n="M"+M+","+b+" V"+N+" C"+[M,S,x,T,w,T,w-(w-m)/3,T,m+(w-m)/3,T,m,T,u,T,o,S,o,N,o,N-(N-b)/3,o,b+(N-b)/3,o,b,o,P,u,i,m,i,m+(w-m)/3,i,w-(w-m)/3,i,w,i,x,i,M,P,M,b].join(",")+"z"):n="M"+(o+d)+","+i+" v"+f+" h"+-d+" v"+-f+" h"+d+"z"):"circle"===z||"ellipse"===z?("circle"===z?(a=l=v.r,p=a*A):(a=v.rx,l=v.ry,p=l*A),o=v.cx,i=v.cy,h=a*A,n="M"+(o+a)+","+i+" C"+[o+a,i+p,o+h,i+l,o,i+l,o-h,i+l,o-a,i+p,o-a,i,o-a,i-p,o-h,i-l,o,i-l,o+h,i-l,o+a,i-p,o+a,i].join(",")+"z"):"line"===z?n="M"+v.x1+","+v.y1+" L"+v.x2+","+v.y2:"polyline"!==z&&"polygon"!==z||(g=(e.getAttribute("points")+"").match(t)||[],o=g.shift(),i=g.shift(),n="M"+o+","+i+" L"+g.join(","),"polygon"===z&&(n+=","+o+","+i+"z")),s.setAttribute("d",y(s._gsRawPath=_(n))),r&&e.parentNode&&(e.parentNode.insertBefore(s,e),e.parentNode.removeChild(e)),s):e}function u(e,t,r,n,h,p,g,d,c){if(e===d&&t===c)return;r=l(r),n=l(n);let f=h%360*o,u=a(f),_=i(f),y=Math.PI,m=2*y,w=(e-d)/2,x=(t-c)/2,M=u*w+_*x,P=-_*w+u*x,b=M*M,N=P*P,S=b/(r*r)+N/(n*n);S>1&&(r=s(S)*r,n=s(S)*n);let T=r*r,v=n*n,z=(T*v-T*N-v*b)/(T*N+v*b);z<0&&(z=0);let A=(p===g?-1:1)*s(z),O=A*(r*P/n),C=A*(-n*M/r),R=(e+d)/2+(u*O-_*C),I=(t+c)/2+(_*O+u*C),L=(M-O)/r,F=(P-C)/n,V=(-M-O)/r,Y=(-P-C)/n,j=L*L+F*F,G=(F<0?-1:1)*Math.acos(L/s(j)),X=(L*Y-F*V<0?-1:1)*Math.acos((L*V+F*Y)/s(j*(V*V+Y*Y)));isNaN(X)&&(X=y),!g&&X>0?X-=m:g&&X<0&&(X+=m),G%=m,X%=m;let q,E=Math.ceil(l(X)/(m/4)),H=[],U=X/E,B=4/3*i(U/2)/(1+a(U/2)),D=u*r,W=_*r,Q=_*-n,Z=u*n;for(q=0;q<E;q++)M=a(h=G+q*U),P=i(h),L=a(h+=U),F=i(h),H.push(M-B*P,P+B*M,L+B*F,F-B*L,L,F);for(q=0;q<H.length;q+=2)M=H[q],P=H[q+1],H[q]=M*D+P*Q+R,H[q+1]=M*W+P*Z+I;return H[q-2]=d,H[q-1]=c,H}function _(t){let n,o,i,a,s,h,p,g,d,c,f,_,y,m,w,x=(t+"").replace(r,e=>{let t=+e;return t<1e-4&&t>-1e-4?0:t}).match(e)||[],M=[],P=0,b=0,N=x.length,S=0,T="ERROR: malformed path: "+t,v=function(e,t,r,n){c=(r-e)/3,f=(n-t)/3,p.push(e+c,t+f,r-c,n-f,r,n)};if(!t||!isNaN(x[0])||isNaN(x[1]))return console.log(T),M;for(n=0;n<N;n++)if(y=s,isNaN(x[n])?(s=x[n].toUpperCase(),h=s!==x[n]):n--,i=+x[n+1],a=+x[n+2],h&&(i+=P,a+=b),n||(g=i,d=a),"M"===s)p&&(p.length<8?M.length-=1:S+=p.length),P=g=i,b=d=a,p=[i,a],M.push(p),n+=2,s="L";else if("C"===s)p||(p=[0,0]),h||(P=b=0),p.push(i,a,P+1*x[n+3],b+1*x[n+4],P+=1*x[n+5],b+=1*x[n+6]),n+=6;else if("S"===s)c=P,f=b,"C"!==y&&"S"!==y||(c+=P-p[p.length-4],f+=b-p[p.length-3]),h||(P=b=0),p.push(c,f,i,a,P+=1*x[n+3],b+=1*x[n+4]),n+=4;else if("Q"===s)c=P+2/3*(i-P),f=b+2/3*(a-b),h||(P=b=0),P+=1*x[n+3],b+=1*x[n+4],p.push(c,f,P+2/3*(i-P),b+2/3*(a-b),P,b),n+=4;else if("T"===s)c=P-p[p.length-4],f=b-p[p.length-3],p.push(P+c,b+f,i+2/3*(P+1.5*c-i),a+2/3*(b+1.5*f-a),P=i,b=a),n+=2;else if("H"===s)v(P,b,P=i,b),n+=1;else if("V"===s)v(P,b,P,b=i+(h?b-P:0)),n+=1;else if("L"===s||"Z"===s)"Z"===s&&(i=g,a=d,p.closed=!0),("L"===s||l(P-i)>.5||l(b-a)>.5)&&(v(P,b,i,a),"L"===s&&(n+=2)),P=i,b=a;else if("A"===s){if(m=x[n+4],w=x[n+5],c=x[n+6],f=x[n+7],o=7,m.length>1&&(m.length<3?(f=c,c=w,o--):(f=w,c=m.substr(2),o-=2),w=m.charAt(1),m=m.charAt(0)),_=u(P,b,+x[n+1],+x[n+2],+x[n+3],+m,+w,(h?P:0)+1*c,(h?b:0)+1*f),n+=o,_)for(o=0;o<_.length;o++)p.push(_[o]);P=p[p.length-2],b=p[p.length-1]}else console.log(T);return n=p.length,n<6?(M.pop(),n=0):p[0]===p[n-2]&&p[1]===p[n-1]&&(p.closed=!0),M.totalPoints=S+n,M}function y(e){p(e[0])&&(e=[e]);let t,r,n,o,i="",a=e.length;for(r=0;r<a;r++){for(o=e[r],i+="M"+g(o[0])+","+g(o[1])+" C",t=o.length,n=2;n<t;n++)i+=g(o[n++])+","+g(o[n++])+" "+g(o[n++])+","+g(o[n++])+" "+g(o[n++])+","+g(o[n])+" ";o.closed&&(i+="z")}return i}let m,w,x,M,P,b=()=>m||"undefined"!=typeof window&&(m=window.gsap)&&m.registerPlugin&&m,N=e=>"function"==typeof e,S=Math.atan2,T=Math.cos,v=Math.sin,z=Math.sqrt,A=Math.PI,O=2*A,C=.3*A,R=.7*A,I=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,L=/(^[#\.][a-z]|[a-y][a-z])/i,F=/[achlmqstvz]/i,V=e=>console&&console.warn(e),Y=function(){return String.fromCharCode.apply(null,arguments)},j=Y(103,114,101,101,110,115,111,99,107,46,99,111,109),G=function(e){var t="undefined"!=typeof window,r=0===(t?window.location.href:"").indexOf(Y(102,105,108,101,58,47,47))||-1!==e.indexOf(Y(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(Y(49,50,55,46,48,32,48,46,49)),n=[j,Y(99,111,100,101,112,101,110,46,105,111),Y(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),Y(99,111,100,101,112,101,110,46,100,101,118),Y(99,111,100,101,112,101,110,46,97,112,112),Y(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),Y(112,101,110,115,46,99,108,111,117,100),Y(99,115,115,45,116,114,105,99,107,115,46,99,111,109),Y(99,100,112,110,46,105,111),Y(112,101,110,115,46,105,111),Y(103,97,110,110,111,110,46,116,118),Y(99,111,100,101,99,97,110,121,111,110,46,110,101,116),Y(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),Y(99,101,114,101,98,114,97,120,46,99,111,46,117,107),Y(116,121,109,112,97,110,117,115,46,110,101,116),Y(116,119,101,101,110,109,97,120,46,99,111,109),Y(116,119,101,101,110,108,105,116,101,46,99,111,109),Y(112,108,110,107,114,46,99,111),Y(104,111,116,106,97,114,46,99,111,109),Y(119,101,98,112,97,99,107,98,105,110,46,99,111,109),Y(97,114,99,104,105,118,101,46,111,114,103),Y(99,111,100,101,115,97,110,100,98,111,120,46,105,111),Y(99,115,98,46,97,112,112),Y(115,116,97,99,107,98,108,105,116,122,46,99,111,109),Y(115,116,97,99,107,98,108,105,116,122,46,105,111),Y(99,111,100,105,101,114,46,105,111),Y(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),Y(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),Y(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),Y(106,115,102,105,100,100,108,101,46,110,101,116)],o=function(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",o):(document.removeEventListener("readystatechange",o),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(Y(37,99,87,97,114,110,105,110,103),Y(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(Y(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"MorphSVGPlugin"+Y(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(Y(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),Y(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},i=n.length;for(setTimeout(o,50);--i>-1;)if(-1!==e.indexOf(n[i]))return!0;return r||!setTimeout((function(){t&&(window.location.href=Y(104,116,116,112,115,58,47,47)+j+Y(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=MorphSVGPlugin&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),X=e=>{let t,r=e.length,n=0,o=0;for(t=0;t<r;t++)n+=e[t++],o+=e[t];return[n/(r/2),o/(r/2)]},q=e=>{let t,r,n,o=e.length,i=e[0],a=i,l=e[1],s=l;for(n=6;n<o;n+=6)t=e[n],r=e[n+1],t>i?i=t:t<a&&(a=t),r>l?l=r:r<s&&(s=r);return e.centerX=(i+a)/2,e.centerY=(l+s)/2,e.size=(i-a)*(l-s)},E=(e,t=3)=>{let r,n,o,i,a,l,s,h,p,g,d,c,f,u,_,y,m=e.length,w=e[0][0],x=w,M=e[0][1],P=M,b=1/t;for(;--m>-1;)for(a=e[m],r=a.length,i=6;i<r;i+=6)for(p=a[i],g=a[i+1],d=a[i+2]-p,u=a[i+3]-g,c=a[i+4]-p,_=a[i+5]-g,f=a[i+6]-p,y=a[i+7]-g,l=t;--l>-1;)s=b*l,h=1-s,n=(s*s*f+3*h*(s*c+h*d))*s+p,o=(s*s*y+3*h*(s*_+h*u))*s+g,n>w?w=n:n<x&&(x=n),o>M?M=o:o<P&&(P=o);return e.centerX=(w+x)/2,e.centerY=(M+P)/2,e.left=x,e.width=w-x,e.top=P,e.height=M-P,e.size=(w-x)*(M-P)},H=(e,t)=>t.length-e.length,U=(e,t)=>{let r=e.size||q(e),n=t.size||q(t);return Math.abs(n-r)<(r+n)/20?t.centerX-e.centerX||t.centerY-e.centerY:n-r},B=(e,t)=>{let r,n,o=e.slice(0),i=e.length,a=i-2;for(t|=0,r=0;r<i;r++)n=(r+t)%a,e[r++]=o[n],e[r]=o[n+1]},D=(e,t,r,n,o)=>{let i,a,l,s,h=e.length,p=0,g=h-2;for(r*=6,a=0;a<h;a+=6)i=(a+r)%g,s=e[i]-(t[a]-n),l=e[i+1]-(t[a+1]-o),p+=z(l*l+s*s);return p},W=(e,t,r)=>{let n,o,i,a=e.length,l=X(e),s=X(t),h=s[0]-l[0],p=s[1]-l[1],g=D(e,t,0,h,p),c=0;for(i=6;i<a;i+=6)o=D(e,t,i/6,h,p),o<g&&(g=o,c=i);if(r)for(n=e.slice(0),d(n),i=6;i<a;i+=6)o=D(n,t,i/6,h,p),o<g&&(g=o,c=-i);return c/6},Q=(e,t,r)=>{let n,o,i,a,l,s,h=e.length,p=1e20,g=0,d=0;for(;--h>-1;)for(n=e[h],s=n.length,l=0;l<s;l+=6)o=n[l]-t,i=n[l+1]-r,a=z(o*o+i*i),a<p&&(p=a,g=n[l],d=n[l+1]);return[g,d]},Z=(e,t,r,n,o,i)=>{let a,l,s,h,p,g=t.length,d=0,c=Math.min(e.size||q(e),t[r].size||q(t[r]))*n,f=1e20,u=e.centerX+o,_=e.centerY+i;for(l=r;l<g&&(a=t[l].size||q(t[l]),!(a<c));l++)s=t[l].centerX-u,h=t[l].centerY-_,p=z(s*s+h*h),p<f&&(d=l,f=p);return p=t[d],t.splice(d,1),p},k=(e,t)=>{let r,n,o,i,a,l,s,h,p,g,d,c,f,u,_=0,y=e.length,m=t/((y-2)/6);for(f=2;f<y;f+=6)for(_+=m;_>.999999;)r=e[f-2],n=e[f-1],o=e[f],i=e[f+1],a=e[f+2],l=e[f+3],s=e[f+4],h=e[f+5],u=1/((Math.floor(_)||1)+1),p=r+(o-r)*u,d=o+(a-o)*u,p+=(d-p)*u,d+=(a+(s-a)*u-d)*u,g=n+(i-n)*u,c=i+(l-i)*u,g+=(c-g)*u,c+=(l+(h-l)*u-c)*u,e.splice(f,4,r+(o-r)*u,n+(i-n)*u,p,g,p+(d-p)*u,g+(c-g)*u,d,c,a+(s-a)*u,l+(h-l)*u),f+=6,y+=6,_--;return e},J=(e,t,r,n,o)=>{let i,a,l,s,h,p,g,c=t.length-e.length,f=c>0?t:e,u=c>0?e:t,_=0,y="complexity"===n?H:U,m="position"===n?0:"number"==typeof n?n:.8,w=u.length,x="object"==typeof r&&r.push?r.slice(0):[r],M="reverse"===x[0]||x[0]<0,P="log"===r;if(u[0]){if(f.length>1&&(e.sort(y),t.sort(y),p=f.size||E(f),p=u.size||E(u),p=f.centerX-u.centerX,g=f.centerY-u.centerY,y===U))for(w=0;w<u.length;w++)f.splice(w,0,Z(u[w],f,w,m,p,g));if(c)for(c<0&&(c=-c),f[0].length>u[0].length&&k(u[0],(f[0].length-u[0].length)/6|0),w=u.length;_<c;)s=f[w].size||q(f[w]),l=Q(u,f[w].centerX,f[w].centerY),s=l[0],h=l[1],u[w++]=[s,h,s,h,s,h,s,h],u.totalPoints+=8,_++;for(w=0;w<e.length;w++)i=t[w],a=e[w],c=i.length-a.length,c<0?k(i,-c/6|0):c>0&&k(a,c/6|0),M&&!1!==o&&!a.reversed&&d(a),(r=x[w]||0===x[w]?x[w]:"auto")&&(a.closed||Math.abs(a[0]-a[a.length-2])<.5&&Math.abs(a[1]-a[a.length-1])<.5?"auto"===r||"log"===r?(x[w]=r=W(a,i,!w||!1===o),r<0&&(M=!0,d(a),r=-r),B(a,6*r)):"reverse"!==r&&(w&&r<0&&d(a),B(a,6*(r<0?-r:r))):!M&&("auto"===r&&Math.abs(i[0]-a[0])+Math.abs(i[1]-a[1])+Math.abs(i[i.length-2]-a[a.length-2])+Math.abs(i[i.length-1]-a[a.length-1])>Math.abs(i[0]-a[a.length-2])+Math.abs(i[1]-a[a.length-1])+Math.abs(i[i.length-2]-a[0])+Math.abs(i[i.length-1]-a[1])||r%2)?(d(a),x[w]=-1,M=!0):"auto"===r?x[w]=0:"reverse"===r&&(x[w]=-1),a.closed!==i.closed&&(a.closed=i.closed=!1));return P&&V("shapeIndex:["+x.join(",")+"]"),e.shapeIndex=x,x}},K=(e,t,r,n,o)=>{let i=_(e[0]),a=_(e[1]);J(i,a,t||0===t?t:"auto",r,o)&&(e[0]=y(i),e[1]=y(a),"log"!==n&&!0!==n||V('precompile:["'+e[0]+'","'+e[1]+'"]'))},$=(e,t)=>{let r,n,o,i,a,l,s,h=0,p=parseFloat(e[0]),g=parseFloat(e[1]),d=p+","+g+" ";for(o=e.length,r=.5*t/(.5*o-1),n=0;n<o-2;n+=2){if(h+=r,l=parseFloat(e[n+2]),s=parseFloat(e[n+3]),h>.999999)for(a=1/(Math.floor(h)+1),i=1;h>.999999;)d+=(p+(l-p)*a*i).toFixed(2)+","+(g+(s-g)*a*i).toFixed(2)+" ",h--,i++;d+=l+","+s+" ",p=l,g=s}return d},ee=e=>{let t=e[0].match(I)||[],r=e[1].match(I)||[],n=r.length-t.length;n>0?e[0]=$(t,n):e[1]=$(r,-n)},te=e=>isNaN(e)?ee:t=>{ee(t),t[1]=((e,t)=>{if(!t)return e;let r,n,o,i=e.match(I)||[],a=i.length,l="";for("reverse"===t?(n=a-1,r=-2):(n=(2*(parseInt(t,10)||0)+1+100*a)%a,r=2),o=0;o<a;o+=2)l+=i[n-1]+","+i[n]+" ",n=(n+r)%a;return l})(t[1],parseInt(e,10))},re=(e,t)=>{let r,n,o,i,a,l,s,h,p,g,d,c,f=e.length,u=.2*(t||1);for(;--f>-1;){for(n=e[f],d=n.isSmooth=n.isSmooth||[0,0,0,0],c=n.smoothData=n.smoothData||[0,0,0,0],d.length=4,h=n.length-2,s=6;s<h;s+=6)o=n[s]-n[s-2],i=n[s+1]-n[s-1],a=n[s+2]-n[s],l=n[s+3]-n[s+1],p=S(i,o),g=S(l,a),r=Math.abs(p-g)<u,r&&(c[s-2]=p,c[s+2]=g,c[s-1]=z(o*o+i*i),c[s+3]=z(a*a+l*l)),d.push(r,r,0,0,r,r);n[h]===n[0]&&n[h+1]===n[1]&&(o=n[0]-n[h-2],i=n[1]-n[h-1],a=n[2]-n[0],l=n[3]-n[1],p=S(i,o),g=S(l,a),Math.abs(p-g)<u&&(c[h-2]=p,c[2]=g,c[h-1]=z(o*o+i*i),c[3]=z(a*a+l*l),d[h-2]=d[h-1]=!0))}return e},ne=e=>{let t=e.trim().split(" ");return{x:(~e.indexOf("left")?0:~e.indexOf("right")?100:isNaN(parseFloat(t[0]))?50:parseFloat(t[0]))/100,y:(~e.indexOf("top")?0:~e.indexOf("bottom")?100:isNaN(parseFloat(t[1]))?50:parseFloat(t[1]))/100}},oe="Use MorphSVGPlugin.convertToPath() to convert to a path before morphing.",ie=function(e,t,r,n){let o,i,a=this._origin,l=this._eOrigin,s=e[r]-a.x,h=e[r+1]-a.y,p=z(s*s+h*h),g=S(h,s);var d;return s=t[r]-l.x,h=t[r+1]-l.y,o=S(h,s)-g,i=(d=o)!==d%A?d+(d<0?O:-O):d,!n&&x&&Math.abs(i+x.ca)<C&&(n=x),this._anchorPT=x={_next:this._anchorPT,t:e,sa:g,ca:n&&i*n.ca<0&&Math.abs(i)>R?o:i,sl:p,cl:z(s*s+h*h)-p,i:r}},ae=e=>{m=b(),P=P||m&&m.plugins.morphSVG,m&&P?(w=m.utils.toArray,P.prototype._tweenRotation=ie,M=1):e&&V("Please gsap.registerPlugin(MorphSVGPlugin)")};const le={version:"3.10.2",name:"morphSVG",rawVars:1,register(e,t){m=e,P=t,ae()},init(e,t,r,n,o){if(M||ae(1),!t)return V("invalid shape"),!1;let i,a,l,s,h,p,g,d,c,u,m,P,b,S,T,v,z,A,O,C,R,Y;if(N(t)&&(t=t.call(r,n,e,o)),"string"==typeof t||t.getBBox||t[0])t={shape:t};else if("object"==typeof t){for(a in i={},t)i[a]=N(t[a])&&"render"!==a?t[a].call(r,n,e,o):t[a];t=i}let j=e.nodeType?window.getComputedStyle(e):{},X=j.fill+"",q=!("none"===X||"0"===(X.match(I)||[])[3]||"evenodd"===j.fillRule),H=(t.origin||"50 50").split(",");if(i=(e.nodeName+"").toUpperCase(),h="POLYLINE"===i||"POLYGON"===i,"PATH"!==i&&!h&&!t.prop)return V("Cannot morph a <"+i+"> element. "+oe),!1;if(a="PATH"===i?"d":"points",!t.prop&&!N(e.setAttribute))return!1;if(s=((e,t,r)=>{let n,o;return(!("string"==typeof e)||L.test(e)||(e.match(I)||[]).length<3)&&(n=w(e)[0],n?(o=(n.nodeName+"").toUpperCase(),t&&"PATH"!==o&&(n=f(n,!1),o="PATH"),e=n.getAttribute("PATH"===o?"d":"points")||"",n===r&&(e=n.getAttributeNS(null,"data-original")||e)):(V("WARNING: invalid morph to: "+e),e=!1)),e})(t.shape||t.d||t.points||"","d"===a,e),h&&F.test(s))return V("A <"+i+"> cannot accept path data. "+oe),!1;if(p=t.shapeIndex||0===t.shapeIndex?t.shapeIndex:"auto",g=t.map||le.defaultMap,this._prop=t.prop,this._render=t.render||le.defaultRender,this._apply="updateTarget"in t?t.updateTarget:le.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(t.precision)?2:+t.precision),this._tween=r,s){if(this._target=e,z="object"==typeof t.precompile,u=this._prop?e[this._prop]:e.getAttribute(a),this._prop||e.getAttributeNS(null,"data-original")||e.setAttributeNS(null,"data-original",u),"d"===a||this._prop){if(u=_(z?t.precompile[0]:u),m=_(z?t.precompile[1]:s),!z&&!J(u,m,p,g,q))return!1;for("log"!==t.precompile&&!0!==t.precompile||V('precompile:["'+y(u)+'","'+y(m)+'"]'),R="linear"!==(t.type||le.defaultType),R&&(u=re(u,t.smoothTolerance),m=re(m,t.smoothTolerance),u.size||E(u),m.size||E(m),C=ne(H[0]),this._origin=u.origin={x:u.left+C.x*u.width,y:u.top+C.y*u.height},H[1]&&(C=ne(H[1])),this._eOrigin={x:m.left+C.x*m.width,y:m.top+C.y*m.height}),this._rawPath=e._gsRawPath=u,b=u.length;--b>-1;)for(T=u[b],v=m[b],d=T.isSmooth||[],c=v.isSmooth||[],S=T.length,x=0,P=0;P<S;P+=2)v[P]===T[P]&&v[P+1]===T[P+1]||(R?d[P]&&c[P]?(A=T.smoothData,O=v.smoothData,Y=P+(P===S-4?7-S:5),this._controlPT={_next:this._controlPT,i:P,j:b,l1s:A[P+1],l1c:O[P+1]-A[P+1],l2s:A[Y],l2c:O[Y]-A[Y]},l=this._tweenRotation(T,v,P+2),this._tweenRotation(T,v,P,l),this._tweenRotation(T,v,Y-1,l),P+=4):this._tweenRotation(T,v,P):(l=this.add(T,P,T[P],v[P]),l=this.add(T,P+1,T[P+1],v[P+1])||l))}else l=this.add(e,"setAttribute",e.getAttribute(a)+"",s+"",n,o,0,te(p),a);R&&(this.add(this._origin,"x",this._origin.x,this._eOrigin.x),l=this.add(this._origin,"y",this._origin.y,this._eOrigin.y)),l&&(this._props.push("morphSVG"),l.end=s,l.endProp=a)}return G},render(e,t){let r,n,o,i,a,l,s,h,p,g,d,c,f,u=t._rawPath,_=t._controlPT,y=t._anchorPT,m=t._rnd,w=t._target,x=t._pt;for(;x;)x.r(e,x.d),x=x._next;if(1===e&&t._apply)for(x=t._pt;x;)x.end&&(t._prop?w[t._prop]=x.end:w.setAttribute(x.endProp,x.end)),x=x._next;else if(u){for(;y;)l=y.sa+e*y.ca,a=y.sl+e*y.cl,y.t[y.i]=t._origin.x+T(l)*a,y.t[y.i+1]=t._origin.y+v(l)*a,y=y._next;for(o=e<.5?2*e*e:(4-2*e)*e-1;_;)s=_.i,i=u[_.j],f=s+(s===i.length-4?7-i.length:5),l=S(i[f]-i[s+1],i[f-1]-i[s]),d=v(l),c=T(l),p=i[s+2],g=i[s+3],a=_.l1s+o*_.l1c,i[s]=p-c*a,i[s+1]=g-d*a,a=_.l2s+o*_.l2c,i[f-1]=p+c*a,i[f]=g+d*a,_=_._next;if(w._gsRawPath=u,t._apply){for(r="",n=" ",h=0;h<u.length;h++)for(i=u[h],a=i.length,r+="M"+(i[0]*m|0)/m+" "+(i[1]*m|0)/m+" C",s=2;s<a;s++)r+=(i[s]*m|0)/m+" ";t._prop?w[t._prop]=r:w.setAttribute("d",r)}}t._render&&u&&t._render.call(t._tween,u,w)},kill(e){this._pt=this._rawPath=0},getRawPath:function(e){let t,r=(e=h(e)&&n.test(e)&&document.querySelector(e)||e).getAttribute?e:0;return r&&(e=e.getAttribute("d"))?(r._gsPath||(r._gsPath={}),t=r._gsPath[e],t&&!t._dirty?t:r._gsPath[e]=_(e)):e?h(e)?_(e):p(e[0])?[e]:e:console.warn("Expecting a <path> element or an SVG path data string")},stringToRawPath:_,rawPathToString:y,normalizeStrings(e,t,{shapeIndex:r,map:n}){let o=[e,t];return K(o,r,n),o},pathFilter:K,pointsFilter:ee,getTotalSize:E,equalizeSegmentQuantity:J,convertToPath:(e,t)=>w(e).map(e=>f(e,!1!==t)),defaultType:"linear",defaultUpdateTarget:!0,defaultMap:"size"};b()&&m.registerPlugin(le);export default le;export{le as MorphSVGPlugin}; | ||
let e=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,t=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,r=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,n=/(^[#\.][a-z]|[a-y][a-z])/i,o=Math.PI/180,i=Math.sin,a=Math.cos,l=Math.abs,s=Math.sqrt,h=e=>"string"==typeof e,p=e=>"number"==typeof e,g=e=>Math.round(1e5*e)/1e5||0;function d(e){let t,r=0;for(e.reverse();r<e.length;r+=2)t=e[r],e[r]=e[r+1],e[r+1]=t;e.reversed=!e.reversed}let c={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function f(e,r){let n,o,i,a,l,s,h,p,g,d,f,u,m,w,x,M,P,b,N,S,T,v,z=e.tagName.toLowerCase(),A=.552284749831;return"path"!==z&&e.getBBox?(s=((e,t)=>{let r,n=document.createElementNS("http://www.w3.org/2000/svg","path"),o=[].slice.call(e.attributes),i=o.length;for(t=","+t+",";--i>-1;)r=o[i].nodeName.toLowerCase(),t.indexOf(","+r+",")<0&&n.setAttributeNS(null,r,o[i].nodeValue);return n})(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),v=((e,t)=>{let r=t?t.split(","):[],n={},o=r.length;for(;--o>-1;)n[r[o]]=+e.getAttribute(r[o])||0;return n})(e,c[z]),"rect"===z?(a=v.rx,l=v.ry||a,o=v.x,i=v.y,d=v.width-2*a,f=v.height-2*l,a||l?(u=o+a*(1-A),m=o+a,w=m+d,x=w+a*A,M=w+a,P=i+l*(1-A),b=i+l,N=b+f,S=N+l*A,T=N+l,n="M"+M+","+b+" V"+N+" C"+[M,S,x,T,w,T,w-(w-m)/3,T,m+(w-m)/3,T,m,T,u,T,o,S,o,N,o,N-(N-b)/3,o,b+(N-b)/3,o,b,o,P,u,i,m,i,m+(w-m)/3,i,w-(w-m)/3,i,w,i,x,i,M,P,M,b].join(",")+"z"):n="M"+(o+d)+","+i+" v"+f+" h"+-d+" v"+-f+" h"+d+"z"):"circle"===z||"ellipse"===z?("circle"===z?(a=l=v.r,p=a*A):(a=v.rx,l=v.ry,p=l*A),o=v.cx,i=v.cy,h=a*A,n="M"+(o+a)+","+i+" C"+[o+a,i+p,o+h,i+l,o,i+l,o-h,i+l,o-a,i+p,o-a,i,o-a,i-p,o-h,i-l,o,i-l,o+h,i-l,o+a,i-p,o+a,i].join(",")+"z"):"line"===z?n="M"+v.x1+","+v.y1+" L"+v.x2+","+v.y2:"polyline"!==z&&"polygon"!==z||(g=(e.getAttribute("points")+"").match(t)||[],o=g.shift(),i=g.shift(),n="M"+o+","+i+" L"+g.join(","),"polygon"===z&&(n+=","+o+","+i+"z")),s.setAttribute("d",y(s._gsRawPath=_(n))),r&&e.parentNode&&(e.parentNode.insertBefore(s,e),e.parentNode.removeChild(e)),s):e}function u(e,t,r,n,h,p,g,d,c){if(e===d&&t===c)return;r=l(r),n=l(n);let f=h%360*o,u=a(f),_=i(f),y=Math.PI,m=2*y,w=(e-d)/2,x=(t-c)/2,M=u*w+_*x,P=-_*w+u*x,b=M*M,N=P*P,S=b/(r*r)+N/(n*n);S>1&&(r=s(S)*r,n=s(S)*n);let T=r*r,v=n*n,z=(T*v-T*N-v*b)/(T*N+v*b);z<0&&(z=0);let A=(p===g?-1:1)*s(z),O=A*(r*P/n),C=A*(-n*M/r),R=(e+d)/2+(u*O-_*C),I=(t+c)/2+(_*O+u*C),L=(M-O)/r,F=(P-C)/n,V=(-M-O)/r,Y=(-P-C)/n,j=L*L+F*F,G=(F<0?-1:1)*Math.acos(L/s(j)),X=(L*Y-F*V<0?-1:1)*Math.acos((L*V+F*Y)/s(j*(V*V+Y*Y)));isNaN(X)&&(X=y),!g&&X>0?X-=m:g&&X<0&&(X+=m),G%=m,X%=m;let q,E=Math.ceil(l(X)/(m/4)),H=[],U=X/E,B=4/3*i(U/2)/(1+a(U/2)),D=u*r,W=_*r,Q=_*-n,Z=u*n;for(q=0;q<E;q++)M=a(h=G+q*U),P=i(h),L=a(h+=U),F=i(h),H.push(M-B*P,P+B*M,L+B*F,F-B*L,L,F);for(q=0;q<H.length;q+=2)M=H[q],P=H[q+1],H[q]=M*D+P*Q+R,H[q+1]=M*W+P*Z+I;return H[q-2]=d,H[q-1]=c,H}function _(t){let n,o,i,a,s,h,p,g,d,c,f,_,y,m,w,x=(t+"").replace(r,e=>{let t=+e;return t<1e-4&&t>-1e-4?0:t}).match(e)||[],M=[],P=0,b=0,N=x.length,S=0,T="ERROR: malformed path: "+t,v=function(e,t,r,n){c=(r-e)/3,f=(n-t)/3,p.push(e+c,t+f,r-c,n-f,r,n)};if(!t||!isNaN(x[0])||isNaN(x[1]))return console.log(T),M;for(n=0;n<N;n++)if(y=s,isNaN(x[n])?(s=x[n].toUpperCase(),h=s!==x[n]):n--,i=+x[n+1],a=+x[n+2],h&&(i+=P,a+=b),n||(g=i,d=a),"M"===s)p&&(p.length<8?M.length-=1:S+=p.length),P=g=i,b=d=a,p=[i,a],M.push(p),n+=2,s="L";else if("C"===s)p||(p=[0,0]),h||(P=b=0),p.push(i,a,P+1*x[n+3],b+1*x[n+4],P+=1*x[n+5],b+=1*x[n+6]),n+=6;else if("S"===s)c=P,f=b,"C"!==y&&"S"!==y||(c+=P-p[p.length-4],f+=b-p[p.length-3]),h||(P=b=0),p.push(c,f,i,a,P+=1*x[n+3],b+=1*x[n+4]),n+=4;else if("Q"===s)c=P+2/3*(i-P),f=b+2/3*(a-b),h||(P=b=0),P+=1*x[n+3],b+=1*x[n+4],p.push(c,f,P+2/3*(i-P),b+2/3*(a-b),P,b),n+=4;else if("T"===s)c=P-p[p.length-4],f=b-p[p.length-3],p.push(P+c,b+f,i+2/3*(P+1.5*c-i),a+2/3*(b+1.5*f-a),P=i,b=a),n+=2;else if("H"===s)v(P,b,P=i,b),n+=1;else if("V"===s)v(P,b,P,b=i+(h?b-P:0)),n+=1;else if("L"===s||"Z"===s)"Z"===s&&(i=g,a=d,p.closed=!0),("L"===s||l(P-i)>.5||l(b-a)>.5)&&(v(P,b,i,a),"L"===s&&(n+=2)),P=i,b=a;else if("A"===s){if(m=x[n+4],w=x[n+5],c=x[n+6],f=x[n+7],o=7,m.length>1&&(m.length<3?(f=c,c=w,o--):(f=w,c=m.substr(2),o-=2),w=m.charAt(1),m=m.charAt(0)),_=u(P,b,+x[n+1],+x[n+2],+x[n+3],+m,+w,(h?P:0)+1*c,(h?b:0)+1*f),n+=o,_)for(o=0;o<_.length;o++)p.push(_[o]);P=p[p.length-2],b=p[p.length-1]}else console.log(T);return n=p.length,n<6?(M.pop(),n=0):p[0]===p[n-2]&&p[1]===p[n-1]&&(p.closed=!0),M.totalPoints=S+n,M}function y(e){p(e[0])&&(e=[e]);let t,r,n,o,i="",a=e.length;for(r=0;r<a;r++){for(o=e[r],i+="M"+g(o[0])+","+g(o[1])+" C",t=o.length,n=2;n<t;n++)i+=g(o[n++])+","+g(o[n++])+" "+g(o[n++])+","+g(o[n++])+" "+g(o[n++])+","+g(o[n])+" ";o.closed&&(i+="z")}return i}let m,w,x,M,P,b=()=>m||"undefined"!=typeof window&&(m=window.gsap)&&m.registerPlugin&&m,N=e=>"function"==typeof e,S=Math.atan2,T=Math.cos,v=Math.sin,z=Math.sqrt,A=Math.PI,O=2*A,C=.3*A,R=.7*A,I=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,L=/(^[#\.][a-z]|[a-y][a-z])/i,F=/[achlmqstvz]/i,V=e=>console&&console.warn(e),Y=function(){return String.fromCharCode.apply(null,arguments)},j=Y(103,114,101,101,110,115,111,99,107,46,99,111,109),G=function(e){var t="undefined"!=typeof window,r=0===(t?window.location.href:"").indexOf(Y(102,105,108,101,58,47,47))||-1!==e.indexOf(Y(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(Y(49,50,55,46,48,32,48,46,49)),n=[j,Y(99,111,100,101,112,101,110,46,105,111),Y(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),Y(99,111,100,101,112,101,110,46,100,101,118),Y(99,111,100,101,112,101,110,46,97,112,112),Y(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),Y(112,101,110,115,46,99,108,111,117,100),Y(99,115,115,45,116,114,105,99,107,115,46,99,111,109),Y(99,100,112,110,46,105,111),Y(112,101,110,115,46,105,111),Y(103,97,110,110,111,110,46,116,118),Y(99,111,100,101,99,97,110,121,111,110,46,110,101,116),Y(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),Y(99,101,114,101,98,114,97,120,46,99,111,46,117,107),Y(116,121,109,112,97,110,117,115,46,110,101,116),Y(116,119,101,101,110,109,97,120,46,99,111,109),Y(116,119,101,101,110,108,105,116,101,46,99,111,109),Y(112,108,110,107,114,46,99,111),Y(104,111,116,106,97,114,46,99,111,109),Y(119,101,98,112,97,99,107,98,105,110,46,99,111,109),Y(97,114,99,104,105,118,101,46,111,114,103),Y(99,111,100,101,115,97,110,100,98,111,120,46,105,111),Y(99,115,98,46,97,112,112),Y(115,116,97,99,107,98,108,105,116,122,46,99,111,109),Y(115,116,97,99,107,98,108,105,116,122,46,105,111),Y(99,111,100,105,101,114,46,105,111),Y(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),Y(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),Y(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),Y(106,115,102,105,100,100,108,101,46,110,101,116)],o=function(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",o):(document.removeEventListener("readystatechange",o),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(Y(37,99,87,97,114,110,105,110,103),Y(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(Y(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"MorphSVGPlugin"+Y(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(Y(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),Y(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},i=n.length;for(setTimeout(o,50);--i>-1;)if(-1!==e.indexOf(n[i]))return!0;return r||!setTimeout((function(){t&&(window.location.href=Y(104,116,116,112,115,58,47,47)+j+Y(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=MorphSVGPlugin&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),X=e=>{let t,r=e.length,n=0,o=0;for(t=0;t<r;t++)n+=e[t++],o+=e[t];return[n/(r/2),o/(r/2)]},q=e=>{let t,r,n,o=e.length,i=e[0],a=i,l=e[1],s=l;for(n=6;n<o;n+=6)t=e[n],r=e[n+1],t>i?i=t:t<a&&(a=t),r>l?l=r:r<s&&(s=r);return e.centerX=(i+a)/2,e.centerY=(l+s)/2,e.size=(i-a)*(l-s)},E=(e,t=3)=>{let r,n,o,i,a,l,s,h,p,g,d,c,f,u,_,y,m=e.length,w=e[0][0],x=w,M=e[0][1],P=M,b=1/t;for(;--m>-1;)for(a=e[m],r=a.length,i=6;i<r;i+=6)for(p=a[i],g=a[i+1],d=a[i+2]-p,u=a[i+3]-g,c=a[i+4]-p,_=a[i+5]-g,f=a[i+6]-p,y=a[i+7]-g,l=t;--l>-1;)s=b*l,h=1-s,n=(s*s*f+3*h*(s*c+h*d))*s+p,o=(s*s*y+3*h*(s*_+h*u))*s+g,n>w?w=n:n<x&&(x=n),o>M?M=o:o<P&&(P=o);return e.centerX=(w+x)/2,e.centerY=(M+P)/2,e.left=x,e.width=w-x,e.top=P,e.height=M-P,e.size=(w-x)*(M-P)},H=(e,t)=>t.length-e.length,U=(e,t)=>{let r=e.size||q(e),n=t.size||q(t);return Math.abs(n-r)<(r+n)/20?t.centerX-e.centerX||t.centerY-e.centerY:n-r},B=(e,t)=>{let r,n,o=e.slice(0),i=e.length,a=i-2;for(t|=0,r=0;r<i;r++)n=(r+t)%a,e[r++]=o[n],e[r]=o[n+1]},D=(e,t,r,n,o)=>{let i,a,l,s,h=e.length,p=0,g=h-2;for(r*=6,a=0;a<h;a+=6)i=(a+r)%g,s=e[i]-(t[a]-n),l=e[i+1]-(t[a+1]-o),p+=z(l*l+s*s);return p},W=(e,t,r)=>{let n,o,i,a=e.length,l=X(e),s=X(t),h=s[0]-l[0],p=s[1]-l[1],g=D(e,t,0,h,p),c=0;for(i=6;i<a;i+=6)o=D(e,t,i/6,h,p),o<g&&(g=o,c=i);if(r)for(n=e.slice(0),d(n),i=6;i<a;i+=6)o=D(n,t,i/6,h,p),o<g&&(g=o,c=-i);return c/6},Q=(e,t,r)=>{let n,o,i,a,l,s,h=e.length,p=1e20,g=0,d=0;for(;--h>-1;)for(n=e[h],s=n.length,l=0;l<s;l+=6)o=n[l]-t,i=n[l+1]-r,a=z(o*o+i*i),a<p&&(p=a,g=n[l],d=n[l+1]);return[g,d]},Z=(e,t,r,n,o,i)=>{let a,l,s,h,p,g=t.length,d=0,c=Math.min(e.size||q(e),t[r].size||q(t[r]))*n,f=1e20,u=e.centerX+o,_=e.centerY+i;for(l=r;l<g&&(a=t[l].size||q(t[l]),!(a<c));l++)s=t[l].centerX-u,h=t[l].centerY-_,p=z(s*s+h*h),p<f&&(d=l,f=p);return p=t[d],t.splice(d,1),p},k=(e,t)=>{let r,n,o,i,a,l,s,h,p,g,d,c,f,u,_=0,y=e.length,m=t/((y-2)/6);for(f=2;f<y;f+=6)for(_+=m;_>.999999;)r=e[f-2],n=e[f-1],o=e[f],i=e[f+1],a=e[f+2],l=e[f+3],s=e[f+4],h=e[f+5],u=1/((Math.floor(_)||1)+1),p=r+(o-r)*u,d=o+(a-o)*u,p+=(d-p)*u,d+=(a+(s-a)*u-d)*u,g=n+(i-n)*u,c=i+(l-i)*u,g+=(c-g)*u,c+=(l+(h-l)*u-c)*u,e.splice(f,4,r+(o-r)*u,n+(i-n)*u,p,g,p+(d-p)*u,g+(c-g)*u,d,c,a+(s-a)*u,l+(h-l)*u),f+=6,y+=6,_--;return e},J=(e,t,r,n,o)=>{let i,a,l,s,h,p,g,c=t.length-e.length,f=c>0?t:e,u=c>0?e:t,_=0,y="complexity"===n?H:U,m="position"===n?0:"number"==typeof n?n:.8,w=u.length,x="object"==typeof r&&r.push?r.slice(0):[r],M="reverse"===x[0]||x[0]<0,P="log"===r;if(u[0]){if(f.length>1&&(e.sort(y),t.sort(y),p=f.size||E(f),p=u.size||E(u),p=f.centerX-u.centerX,g=f.centerY-u.centerY,y===U))for(w=0;w<u.length;w++)f.splice(w,0,Z(u[w],f,w,m,p,g));if(c)for(c<0&&(c=-c),f[0].length>u[0].length&&k(u[0],(f[0].length-u[0].length)/6|0),w=u.length;_<c;)s=f[w].size||q(f[w]),l=Q(u,f[w].centerX,f[w].centerY),s=l[0],h=l[1],u[w++]=[s,h,s,h,s,h,s,h],u.totalPoints+=8,_++;for(w=0;w<e.length;w++)i=t[w],a=e[w],c=i.length-a.length,c<0?k(i,-c/6|0):c>0&&k(a,c/6|0),M&&!1!==o&&!a.reversed&&d(a),(r=x[w]||0===x[w]?x[w]:"auto")&&(a.closed||Math.abs(a[0]-a[a.length-2])<.5&&Math.abs(a[1]-a[a.length-1])<.5?"auto"===r||"log"===r?(x[w]=r=W(a,i,!w||!1===o),r<0&&(M=!0,d(a),r=-r),B(a,6*r)):"reverse"!==r&&(w&&r<0&&d(a),B(a,6*(r<0?-r:r))):!M&&("auto"===r&&Math.abs(i[0]-a[0])+Math.abs(i[1]-a[1])+Math.abs(i[i.length-2]-a[a.length-2])+Math.abs(i[i.length-1]-a[a.length-1])>Math.abs(i[0]-a[a.length-2])+Math.abs(i[1]-a[a.length-1])+Math.abs(i[i.length-2]-a[0])+Math.abs(i[i.length-1]-a[1])||r%2)?(d(a),x[w]=-1,M=!0):"auto"===r?x[w]=0:"reverse"===r&&(x[w]=-1),a.closed!==i.closed&&(a.closed=i.closed=!1));return P&&V("shapeIndex:["+x.join(",")+"]"),e.shapeIndex=x,x}},K=(e,t,r,n,o)=>{let i=_(e[0]),a=_(e[1]);J(i,a,t||0===t?t:"auto",r,o)&&(e[0]=y(i),e[1]=y(a),"log"!==n&&!0!==n||V('precompile:["'+e[0]+'","'+e[1]+'"]'))},$=(e,t)=>{let r,n,o,i,a,l,s,h=0,p=parseFloat(e[0]),g=parseFloat(e[1]),d=p+","+g+" ";for(o=e.length,r=.5*t/(.5*o-1),n=0;n<o-2;n+=2){if(h+=r,l=parseFloat(e[n+2]),s=parseFloat(e[n+3]),h>.999999)for(a=1/(Math.floor(h)+1),i=1;h>.999999;)d+=(p+(l-p)*a*i).toFixed(2)+","+(g+(s-g)*a*i).toFixed(2)+" ",h--,i++;d+=l+","+s+" ",p=l,g=s}return d},ee=e=>{let t=e[0].match(I)||[],r=e[1].match(I)||[],n=r.length-t.length;n>0?e[0]=$(t,n):e[1]=$(r,-n)},te=e=>isNaN(e)?ee:t=>{ee(t),t[1]=((e,t)=>{if(!t)return e;let r,n,o,i=e.match(I)||[],a=i.length,l="";for("reverse"===t?(n=a-1,r=-2):(n=(2*(parseInt(t,10)||0)+1+100*a)%a,r=2),o=0;o<a;o+=2)l+=i[n-1]+","+i[n]+" ",n=(n+r)%a;return l})(t[1],parseInt(e,10))},re=(e,t)=>{let r,n,o,i,a,l,s,h,p,g,d,c,f=e.length,u=.2*(t||1);for(;--f>-1;){for(n=e[f],d=n.isSmooth=n.isSmooth||[0,0,0,0],c=n.smoothData=n.smoothData||[0,0,0,0],d.length=4,h=n.length-2,s=6;s<h;s+=6)o=n[s]-n[s-2],i=n[s+1]-n[s-1],a=n[s+2]-n[s],l=n[s+3]-n[s+1],p=S(i,o),g=S(l,a),r=Math.abs(p-g)<u,r&&(c[s-2]=p,c[s+2]=g,c[s-1]=z(o*o+i*i),c[s+3]=z(a*a+l*l)),d.push(r,r,0,0,r,r);n[h]===n[0]&&n[h+1]===n[1]&&(o=n[0]-n[h-2],i=n[1]-n[h-1],a=n[2]-n[0],l=n[3]-n[1],p=S(i,o),g=S(l,a),Math.abs(p-g)<u&&(c[h-2]=p,c[2]=g,c[h-1]=z(o*o+i*i),c[3]=z(a*a+l*l),d[h-2]=d[h-1]=!0))}return e},ne=e=>{let t=e.trim().split(" ");return{x:(~e.indexOf("left")?0:~e.indexOf("right")?100:isNaN(parseFloat(t[0]))?50:parseFloat(t[0]))/100,y:(~e.indexOf("top")?0:~e.indexOf("bottom")?100:isNaN(parseFloat(t[1]))?50:parseFloat(t[1]))/100}},oe="Use MorphSVGPlugin.convertToPath() to convert to a path before morphing.",ie=function(e,t,r,n){let o,i,a=this._origin,l=this._eOrigin,s=e[r]-a.x,h=e[r+1]-a.y,p=z(s*s+h*h),g=S(h,s);var d;return s=t[r]-l.x,h=t[r+1]-l.y,o=S(h,s)-g,i=(d=o)!==d%A?d+(d<0?O:-O):d,!n&&x&&Math.abs(i+x.ca)<C&&(n=x),this._anchorPT=x={_next:this._anchorPT,t:e,sa:g,ca:n&&i*n.ca<0&&Math.abs(i)>R?o:i,sl:p,cl:z(s*s+h*h)-p,i:r}},ae=e=>{m=b(),P=P||m&&m.plugins.morphSVG,m&&P?(w=m.utils.toArray,P.prototype._tweenRotation=ie,M=1):e&&V("Please gsap.registerPlugin(MorphSVGPlugin)")};const le={version:"3.10.3",name:"morphSVG",rawVars:1,register(e,t){m=e,P=t,ae()},init(e,t,r,n,o){if(M||ae(1),!t)return V("invalid shape"),!1;let i,a,l,s,h,p,g,d,c,u,m,P,b,S,T,v,z,A,O,C,R,Y;if(N(t)&&(t=t.call(r,n,e,o)),"string"==typeof t||t.getBBox||t[0])t={shape:t};else if("object"==typeof t){for(a in i={},t)i[a]=N(t[a])&&"render"!==a?t[a].call(r,n,e,o):t[a];t=i}let j=e.nodeType?window.getComputedStyle(e):{},X=j.fill+"",q=!("none"===X||"0"===(X.match(I)||[])[3]||"evenodd"===j.fillRule),H=(t.origin||"50 50").split(",");if(i=(e.nodeName+"").toUpperCase(),h="POLYLINE"===i||"POLYGON"===i,"PATH"!==i&&!h&&!t.prop)return V("Cannot morph a <"+i+"> element. "+oe),!1;if(a="PATH"===i?"d":"points",!t.prop&&!N(e.setAttribute))return!1;if(s=((e,t,r)=>{let n,o;return(!("string"==typeof e)||L.test(e)||(e.match(I)||[]).length<3)&&(n=w(e)[0],n?(o=(n.nodeName+"").toUpperCase(),t&&"PATH"!==o&&(n=f(n,!1),o="PATH"),e=n.getAttribute("PATH"===o?"d":"points")||"",n===r&&(e=n.getAttributeNS(null,"data-original")||e)):(V("WARNING: invalid morph to: "+e),e=!1)),e})(t.shape||t.d||t.points||"","d"===a,e),h&&F.test(s))return V("A <"+i+"> cannot accept path data. "+oe),!1;if(p=t.shapeIndex||0===t.shapeIndex?t.shapeIndex:"auto",g=t.map||le.defaultMap,this._prop=t.prop,this._render=t.render||le.defaultRender,this._apply="updateTarget"in t?t.updateTarget:le.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(t.precision)?2:+t.precision),this._tween=r,s){if(this._target=e,z="object"==typeof t.precompile,u=this._prop?e[this._prop]:e.getAttribute(a),this._prop||e.getAttributeNS(null,"data-original")||e.setAttributeNS(null,"data-original",u),"d"===a||this._prop){if(u=_(z?t.precompile[0]:u),m=_(z?t.precompile[1]:s),!z&&!J(u,m,p,g,q))return!1;for("log"!==t.precompile&&!0!==t.precompile||V('precompile:["'+y(u)+'","'+y(m)+'"]'),R="linear"!==(t.type||le.defaultType),R&&(u=re(u,t.smoothTolerance),m=re(m,t.smoothTolerance),u.size||E(u),m.size||E(m),C=ne(H[0]),this._origin=u.origin={x:u.left+C.x*u.width,y:u.top+C.y*u.height},H[1]&&(C=ne(H[1])),this._eOrigin={x:m.left+C.x*m.width,y:m.top+C.y*m.height}),this._rawPath=e._gsRawPath=u,b=u.length;--b>-1;)for(T=u[b],v=m[b],d=T.isSmooth||[],c=v.isSmooth||[],S=T.length,x=0,P=0;P<S;P+=2)v[P]===T[P]&&v[P+1]===T[P+1]||(R?d[P]&&c[P]?(A=T.smoothData,O=v.smoothData,Y=P+(P===S-4?7-S:5),this._controlPT={_next:this._controlPT,i:P,j:b,l1s:A[P+1],l1c:O[P+1]-A[P+1],l2s:A[Y],l2c:O[Y]-A[Y]},l=this._tweenRotation(T,v,P+2),this._tweenRotation(T,v,P,l),this._tweenRotation(T,v,Y-1,l),P+=4):this._tweenRotation(T,v,P):(l=this.add(T,P,T[P],v[P]),l=this.add(T,P+1,T[P+1],v[P+1])||l))}else l=this.add(e,"setAttribute",e.getAttribute(a)+"",s+"",n,o,0,te(p),a);R&&(this.add(this._origin,"x",this._origin.x,this._eOrigin.x),l=this.add(this._origin,"y",this._origin.y,this._eOrigin.y)),l&&(this._props.push("morphSVG"),l.end=s,l.endProp=a)}return G},render(e,t){let r,n,o,i,a,l,s,h,p,g,d,c,f,u=t._rawPath,_=t._controlPT,y=t._anchorPT,m=t._rnd,w=t._target,x=t._pt;for(;x;)x.r(e,x.d),x=x._next;if(1===e&&t._apply)for(x=t._pt;x;)x.end&&(t._prop?w[t._prop]=x.end:w.setAttribute(x.endProp,x.end)),x=x._next;else if(u){for(;y;)l=y.sa+e*y.ca,a=y.sl+e*y.cl,y.t[y.i]=t._origin.x+T(l)*a,y.t[y.i+1]=t._origin.y+v(l)*a,y=y._next;for(o=e<.5?2*e*e:(4-2*e)*e-1;_;)s=_.i,i=u[_.j],f=s+(s===i.length-4?7-i.length:5),l=S(i[f]-i[s+1],i[f-1]-i[s]),d=v(l),c=T(l),p=i[s+2],g=i[s+3],a=_.l1s+o*_.l1c,i[s]=p-c*a,i[s+1]=g-d*a,a=_.l2s+o*_.l2c,i[f-1]=p+c*a,i[f]=g+d*a,_=_._next;if(w._gsRawPath=u,t._apply){for(r="",n=" ",h=0;h<u.length;h++)for(i=u[h],a=i.length,r+="M"+(i[0]*m|0)/m+" "+(i[1]*m|0)/m+" C",s=2;s<a;s++)r+=(i[s]*m|0)/m+" ";t._prop?w[t._prop]=r:w.setAttribute("d",r)}}t._render&&u&&t._render.call(t._tween,u,w)},kill(e){this._pt=this._rawPath=0},getRawPath:function(e){let t,r=(e=h(e)&&n.test(e)&&document.querySelector(e)||e).getAttribute?e:0;return r&&(e=e.getAttribute("d"))?(r._gsPath||(r._gsPath={}),t=r._gsPath[e],t&&!t._dirty?t:r._gsPath[e]=_(e)):e?h(e)?_(e):p(e[0])?[e]:e:console.warn("Expecting a <path> element or an SVG path data string")},stringToRawPath:_,rawPathToString:y,normalizeStrings(e,t,{shapeIndex:r,map:n}){let o=[e,t];return K(o,r,n),o},pathFilter:K,pointsFilter:ee,getTotalSize:E,equalizeSegmentQuantity:J,convertToPath:(e,t)=>w(e).map(e=>f(e,!1!==t)),defaultType:"linear",defaultUpdateTarget:!0,defaultMap:"size"};b()&&m.registerPlugin(le);export default le;export{le as MorphSVGPlugin}; |
/*! | ||
* MotionPathHelper 3.10.2 | ||
* MotionPathHelper 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
let t,e=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,s=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,i=Math.PI/180,n=Math.sin,o=Math.cos,r=Math.abs,a=Math.sqrt,h=t=>Math.round(1e5*t)/1e5||0,l=(t,e)=>(e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e);function c(t){let e=[],s=0;for(;s<t.length;s++)e[s]=l(t[s],t[s].slice(0));return l(t,e)}function d(t,e,s,i,n,o,r){let a,h,l,c,d,g=t.length;for(;--g>-1;)for(a=t[g],h=a.length,l=0;l<h;l+=2)c=a[l],d=a[l+1],a[l]=c*e+d*i+o,a[l+1]=c*s+d*n+r;return t._dirty=1,t}function g(t,e,s,h,l,c,d,g,p){if(t===g&&e===p)return;s=r(s),h=r(h);let u=l%360*i,_=o(u),f=n(u),m=Math.PI,b=2*m,v=(t-g)/2,y=(e-p)/2,A=_*v+f*y,w=-f*v+_*y,P=A*A,x=w*w,S=P/(s*s)+x/(h*h);S>1&&(s=a(S)*s,h=a(S)*h);let C=s*s,E=h*h,k=(C*E-C*x-E*P)/(C*x+E*P);k<0&&(k=0);let M=(c===d?-1:1)*a(k),D=M*(s*w/h),T=M*(-h*A/s),H=(t+g)/2+(_*D-f*T),R=(e+p)/2+(f*D+_*T),N=(A-D)/s,L=(w-T)/h,X=(-A-D)/s,I=(-w-T)/h,O=N*N+L*L,q=(L<0?-1:1)*Math.acos(N/a(O)),Y=(N*I-L*X<0?-1:1)*Math.acos((N*X+L*I)/a(O*(X*X+I*I)));isNaN(Y)&&(Y=m),!d&&Y>0?Y-=b:d&&Y<0&&(Y+=b),q%=b,Y%=b;let V,G=Math.ceil(r(Y)/(b/4)),j=[],z=Y/G,W=4/3*n(z/2)/(1+o(z/2)),B=_*s,F=f*s,U=f*-h,Z=_*h;for(V=0;V<G;V++)A=o(l=q+V*z),w=n(l),N=o(l+=z),L=n(l),j.push(A-W*w,w+W*A,N+W*L,L-W*N,N,L);for(V=0;V<j.length;V+=2)A=j[V],w=j[V+1],j[V]=A*B+w*U+H,j[V+1]=A*F+w*Z+R;return j[V-2]=g,j[V-1]=p,j}function p(t){let i,n,o,a,h,l,c,d,p,u,_,f,m,b,v,y=(t+"").replace(s,t=>{let e=+t;return e<1e-4&&e>-1e-4?0:e}).match(e)||[],A=[],w=0,P=0,x=y.length,S=0,C="ERROR: malformed path: "+t,E=function(t,e,s,i){u=(s-t)/3,_=(i-e)/3,c.push(t+u,e+_,s-u,i-_,s,i)};if(!t||!isNaN(y[0])||isNaN(y[1]))return console.log(C),A;for(i=0;i<x;i++)if(m=h,isNaN(y[i])?(h=y[i].toUpperCase(),l=h!==y[i]):i--,o=+y[i+1],a=+y[i+2],l&&(o+=w,a+=P),i||(d=o,p=a),"M"===h)c&&(c.length<8?A.length-=1:S+=c.length),w=d=o,P=p=a,c=[o,a],A.push(c),i+=2,h="L";else if("C"===h)c||(c=[0,0]),l||(w=P=0),c.push(o,a,w+1*y[i+3],P+1*y[i+4],w+=1*y[i+5],P+=1*y[i+6]),i+=6;else if("S"===h)u=w,_=P,"C"!==m&&"S"!==m||(u+=w-c[c.length-4],_+=P-c[c.length-3]),l||(w=P=0),c.push(u,_,o,a,w+=1*y[i+3],P+=1*y[i+4]),i+=4;else if("Q"===h)u=w+2/3*(o-w),_=P+2/3*(a-P),l||(w=P=0),w+=1*y[i+3],P+=1*y[i+4],c.push(u,_,w+2/3*(o-w),P+2/3*(a-P),w,P),i+=4;else if("T"===h)u=w-c[c.length-4],_=P-c[c.length-3],c.push(w+u,P+_,o+2/3*(w+1.5*u-o),a+2/3*(P+1.5*_-a),w=o,P=a),i+=2;else if("H"===h)E(w,P,w=o,P),i+=1;else if("V"===h)E(w,P,w,P=o+(l?P-w:0)),i+=1;else if("L"===h||"Z"===h)"Z"===h&&(o=d,a=p,c.closed=!0),("L"===h||r(w-o)>.5||r(P-a)>.5)&&(E(w,P,o,a),"L"===h&&(i+=2)),w=o,P=a;else if("A"===h){if(b=y[i+4],v=y[i+5],u=y[i+6],_=y[i+7],n=7,b.length>1&&(b.length<3?(_=u,u=v,n--):(_=v,u=b.substr(2),n-=2),v=b.charAt(1),b=b.charAt(0)),f=g(w,P,+y[i+1],+y[i+2],+y[i+3],+b,+v,(l?w:0)+1*u,(l?P:0)+1*_),i+=n,f)for(n=0;n<f.length;n++)c.push(f[n]);w=c[c.length-2],P=c[c.length-1]}else console.log(C);return i=c.length,i<6?(A.pop(),i=0):c[0]===c[i-2]&&c[1]===c[i-1]&&(c.closed=!0),A.totalPoints=S+i,A}function u(t,e,s,i,n,o,a,h,l,c,d){let g,p=(t+s)/2,_=(e+i)/2,f=(s+n)/2,m=(i+o)/2,b=(n+a)/2,v=(o+h)/2,y=(p+f)/2,A=(_+m)/2,w=(f+b)/2,P=(m+v)/2,x=(y+w)/2,S=(A+P)/2,C=a-t,E=h-e,k=r((s-a)*E-(i-h)*C),M=r((n-a)*E-(o-h)*C);return c||(c=[t,e,a,h],d=2),c.splice(d||c.length-2,0,x,S),(k+M)*(k+M)>l*(C*C+E*E)&&(g=c.length,u(t,e,p,_,y,A,x,S,l,c,d),u(x,S,w,P,b,v,a,h,l,c,d+2+(c.length-g))),c}function _(t,e){r(t[0]-t[2])<1e-4&&r(t[1]-t[3])<1e-4&&(t=t.slice(2));let s,i,n,o,l,c,d,g,p,u,_,f,m,b,v,y=t.length-2,A=+t[0],w=+t[1],P=+t[2],x=+t[3],S=[A,w,A,w],C=P-A,E=x-w,k=Math.abs(t[y]-A)<.001&&Math.abs(t[y+1]-w)<.001;for(k&&(t.push(P,x),P=A,x=w,A=t[y-2],w=t[y-1],t.unshift(A,w),y+=4),e=e||0===e?+e:1,n=2;n<y;n+=2)s=A,i=w,A=P,w=x,P=+t[n+2],x=+t[n+3],A===P&&w===x||(o=C,l=E,C=P-A,E=x-w,c=a(o*o+l*l),d=a(C*C+E*E),g=a((C/d+o/c)**2+(E/d+l/c)**2),p=(c+d)*e*.25/g,u=A-(A-s)*(c?p/c:0),_=A+(P-A)*(d?p/d:0),f=A-(u+((_-u)*(3*c/(c+d)+.5)/4||0)),m=w-(w-i)*(c?p/c:0),b=w+(x-w)*(d?p/d:0),v=w-(m+((b-m)*(3*c/(c+d)+.5)/4||0)),A===s&&w===i||S.push(h(u+f),h(m+v),h(A),h(w),h(_+f),h(b+v)));return A!==P||w!==x||S.length<4?S.push(h(P),h(x),h(P),h(x)):S.length-=2,2===S.length?S.push(A,w,A,w,A,w):k&&(S.splice(0,6),S.length=S.length-6),S}function f(t,e,s,i,n,o){let r,a=n-s,h=o-i;return(a||h)&&(r=((t-s)*a+(e-i)*h)/(a*a+h*h),r>1?(s=n,i=o):r>0&&(s+=a*r,i+=h*r)),(t-s)**2+(e-i)**2}function m(t,e){let s,i,n,o,r,a,h,l=parseFloat(t[0]),c=parseFloat(t[1]),d=[l,c],g=t.length-2;for(e=(e||1)**2,s=2;s<g;s+=2)i=parseFloat(t[s]),n=parseFloat(t[s+1]),o=l-i,r=c-n,o*o+r*r>e&&(d.push(i,n),l=i,c=n);return d.push(parseFloat(t[g]),parseFloat(t[g+1])),h=d.length-2,a=[d[0],d[1]],function t(e,s,i,n,o){let r,a,h,l=n,c=e[s],d=e[s+1],g=e[i],p=e[i+1];for(a=s+2;a<i;a+=2)h=f(e[a],e[a+1],c,d,g,p),h>l&&(r=a,l=h);l>n&&(r-s>2&&t(e,s,r,n,o),o.push(e[r],e[r+1]),i-r>2&&t(e,r,i,n,o))}(d,0,h,e,a),a.push(d[h],d[h+1]),a}function b(e,s,i,n,o,r,a,h,l,c,d,g,p,u){let _,f,m,v,y,A,w=(o-n)/r,P=0,x=n;for(t=1e8;x<=o;)A=1-x,_=A*A*A*a+3*A*A*x*l+3*A*x*x*d+x*x*x*p,f=A*A*A*h+3*A*A*x*c+3*A*x*x*g+x*x*x*u,v=_-s,y=f-i,m=v*v+y*y,m<t&&(t=m,P=x),x+=w;return e>1?b(e-1,s,i,Math.max(P-w,0),Math.min(P+w,1),r,a,h,l,c,d,g,p,u):P}let v,y,A,w,P,x,S,C,E,k="transform",M=k+"Origin",D=t=>{let e=t.ownerDocument||t;!(k in t.style)&&"msTransform"in t.style&&(k="msTransform",M=k+"Origin");for(;e.parentNode&&(e=e.parentNode););if(y=window,S=new O,e){v=e,A=e.documentElement,w=e.body,C=v.createElementNS("http://www.w3.org/2000/svg","g"),C.style.transform="none";let t=e.createElement("div"),s=e.createElement("div");w.appendChild(t),t.appendChild(s),t.style.position="static",t.style[k]="translate3d(0,0,1px)",E=s.offsetParent!==t,w.removeChild(t)}return e},T=[],H=[],R=t=>t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null),N=t=>"fixed"===y.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?N(t):void 0),L=(t,e)=>{if(t.parentNode&&(v||D(t))){let s=R(t),i=s?s.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",n=s?e?"rect":"g":"div",o=2!==e?0:100,r=3===e?100:0,a="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",h=v.createElementNS?v.createElementNS(i.replace(/^https/,"http"),n):v.createElement(n);return e&&(s?(x||(x=L(t)),h.setAttribute("width",.01),h.setAttribute("height",.01),h.setAttribute("transform","translate("+o+","+r+")"),x.appendChild(h)):(P||(P=L(t),P.style.cssText=a),h.style.cssText=a+"width:0.1px;height:0.1px;top:"+r+"px;left:"+o+"px",P.appendChild(h))),h}throw"Need document and parent."},X=(t,e)=>{let s,i,n,o,r,a,h=R(t),l=t===h,c=h?T:H,d=t.parentNode;if(t===y)return t;if(c.length||c.push(L(t,1),L(t,2),L(t,3)),s=h?x:P,h)l?(n=(t=>{let e,s=t.getCTM();return s||(e=t.style[k],t.style[k]="none",t.appendChild(C),s=C.getCTM(),t.removeChild(C),e?t.style[k]=e:t.style.removeProperty(k.replace(/([A-Z])/g,"-$1").toLowerCase())),s||S.clone()})(t),o=-n.e/n.a,r=-n.f/n.d,i=S):(n=t.getBBox(),i=t.transform?t.transform.baseVal:{},i=i.numberOfItems?i.numberOfItems>1?(t=>{let e=new O,s=0;for(;s<t.numberOfItems;s++)e.multiply(t.getItem(s).matrix);return e})(i):i.getItem(0).matrix:S,o=i.a*n.x+i.c*n.y,r=i.b*n.x+i.d*n.y),e&&"g"===t.tagName.toLowerCase()&&(o=r=0),(l?h:d).appendChild(s),s.setAttribute("transform","matrix("+i.a+","+i.b+","+i.c+","+i.d+","+(i.e+o)+","+(i.f+r)+")");else{if(o=r=0,E)for(i=t.offsetParent,n=t;n&&(n=n.parentNode)&&n!==i&&n.parentNode;)(y.getComputedStyle(n)[k]+"").length>4&&(o=n.offsetLeft,r=n.offsetTop,n=0);if(a=y.getComputedStyle(t),"absolute"!==a.position&&"fixed"!==a.position)for(i=t.offsetParent;d&&d!==i;)o+=d.scrollLeft||0,r+=d.scrollTop||0,d=d.parentNode;n=s.style,n.top=t.offsetTop-r+"px",n.left=t.offsetLeft-o+"px",n[k]=a[k],n[M]=a[M],n.position="fixed"===a.position?"fixed":"absolute",t.parentNode.appendChild(s)}return s},I=(t,e,s,i,n,o,r)=>(t.a=e,t.b=s,t.c=i,t.d=n,t.e=o,t.f=r,t);class O{constructor(t=1,e=0,s=0,i=1,n=0,o=0){I(this,t,e,s,i,n,o)}inverse(){let{a:t,b:e,c:s,d:i,e:n,f:o}=this,r=t*i-e*s||1e-10;return I(this,i/r,-e/r,-s/r,t/r,(s*o-i*n)/r,-(t*o-e*n)/r)}multiply(t){let{a:e,b:s,c:i,d:n,e:o,f:r}=this,a=t.a,h=t.c,l=t.b,c=t.d,d=t.e,g=t.f;return I(this,a*e+l*i,a*s+l*n,h*e+c*i,h*s+c*n,o+d*e+g*i,r+d*s+g*n)}clone(){return new O(this.a,this.b,this.c,this.d,this.e,this.f)}equals(t){let{a:e,b:s,c:i,d:n,e:o,f:r}=this;return e===t.a&&s===t.b&&i===t.c&&n===t.d&&o===t.e&&r===t.f}apply(t,e={}){let{x:s,y:i}=t,{a:n,b:o,c:r,d:a,e:h,f:l}=this;return e.x=s*n+i*r+h||0,e.y=s*o+i*a+l||0,e}}function q(t,e,s,i){if(!t||!t.parentNode||(v||D(t)).documentElement===t)return new O;let n=(t=>{let e,s;for(;t&&t!==w;)s=t._gsap,s&&s.uncache&&s.get(t,"x"),s&&!s.scaleX&&!s.scaleY&&s.renderTransform&&(s.scaleX=s.scaleY=1e-4,s.renderTransform(1,s),e?e.push(s):e=[s]),t=t.parentNode;return e})(t),o=R(t)?T:H,r=X(t,s),a=o[0].getBoundingClientRect(),h=o[1].getBoundingClientRect(),l=o[2].getBoundingClientRect(),c=r.parentNode,d=!i&&N(t),g=new O((h.left-a.left)/100,(h.top-a.top)/100,(l.left-a.left)/100,(l.top-a.top)/100,a.left+(d?0:y.pageXOffset||v.scrollLeft||A.scrollLeft||w.scrollLeft||0),a.top+(d?0:y.pageYOffset||v.scrollTop||A.scrollTop||w.scrollTop||0));if(c.removeChild(r),n)for(a=n.length;a--;)h=n[a],h.scaleX=h.scaleY=0,h.renderTransform(1,h);return e?g.inverse():g}let Y,V,G,j,z,W,B,F,U,Z,$,K,Q,J=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,tt=Math.PI/180,et=Date.now||(()=>(new Date).getTime()),st=0,it=0,nt=()=>!1,ot={},rt=[],at={},ht=[],lt=[],ct=t=>{t.preventDefault&&(t.preventDefault(),t.preventManipulation&&t.preventManipulation())},dt=t=>Y.createElementNS?Y.createElementNS("http://www.w3.org/1999/xhtml",t):Y.createElement(t),gt=(t,e,s)=>{let i,n=Y.createElementNS("http://www.w3.org/2000/svg",t),o=/([a-z])([A-Z])/g;for(i in(s=s||{}).class=s.class||"path-editor",s)void 0!==n.style[i]?n.style[i]=s[i]:n.setAttributeNS(null,i.replace(o,"$1-$2").toLowerCase(),s[i]);return e.appendChild(n),n},pt={matrix:new O},ut=t=>(t.transform&&t.transform.baseVal.consolidate()||pt).matrix,_t=t=>~~(1e3*t+(t<0?-.5:.5))/1e3,ft=function(t){if(!t.target._gsSelection&&!it&&et()-st>100){let t=lt.length;for(;--t>-1;)lt[t].deselect();lt.length=0}},mt=0,bt=(t,e,s,i)=>{if(t.addEventListener){let n=$[e];i=i||{passive:!1},t.addEventListener(n||e,s,i),n&&e!==n&&"pointer"!==n.substr(0,7)&&t.addEventListener(e,s,i)}else t.attachEvent&&t.attachEvent("on"+e,s)},vt=(t,e,s)=>{if(t.removeEventListener){let i=$[e];t.removeEventListener(i||e,s),i&&e!==i&&"pointer"!==i.substr(0,7)&&t.removeEventListener(e,s)}else t.detachEvent&&t.detachEvent("on"+e,s)},yt=t=>{mt=t.touches&&_dragCount<t.touches.length,vt(t.target,"touchend",yt)},At=t=>{mt=t.touches&&_dragCount<t.touches.length,bt(t.target,"touchend",yt)},wt=(t,e)=>s=>t.call(e,s),Pt=(t,e,s)=>{let i=e.vars[t];return i&&i.call(e.vars.callbackScope||e,s||e),e},xt=()=>{K.style.display="block",K.select(),K.style.display="none"},St=()=>{Y=document,G=window,j=Y.body,Z=dt("div"),K=dt("textarea"),K.style.display="none",j&&j.appendChild(K),$=function(t){let e=t.split(","),s=(void 0!==Z.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==Z.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),i={},n=4;for(;--n>-1;)i[e[n]]=s[n],i[s[n]]=e[n];return i}("touchstart,touchmove,touchend,touchcancel"),SVGElement.prototype.getTransformToElement=SVGElement.prototype.getTransformToElement||function(t){return t.getScreenCTM().inverse().multiply(this.getScreenCTM())},Y.addEventListener("keydown",(function(t){let e,s,i,n,o=t.keyCode||t.which,r=t.key||o;if("Shift"===r||16===o)B=!0;else if("Control"===r||17===o)z=!0;else if("Meta"===r||91===o)F=!0;else if("Alt"===r||18===o)for(W=!0,e=lt.length;--e>-1;)lt[e]._onPressAlt();else if(("z"===r||90===o)&&(z||F)&&rt.length>1){if(rt.shift(),s=rt[0],s){for(n=s.path,n.path.setAttribute("d",s.d),n.path.setAttribute("transform",s.transform),n.init(),i=n._anchors,e=0;e<i.length;e++)-1!==s.selectedIndexes.indexOf(i[e].i)&&n._selectedAnchors.push(i[e]);n._updateAnchors(),n.update(),n.vars.onUndo&&n.vars.onUndo.call(n)}}else if("Delete"===r||"Backspace"===r||8===o||46===o||63272===o||"d"===o&&(z||F))for(e=lt.length;--e>-1;)lt[e]._deleteSelectedAnchors();else if(("a"===r||65===o)&&(F||z))for(e=lt.length;--e>-1;)lt[e].select(!0)}),!0),Y.addEventListener("keyup",(function(t){let e=t.key||t.keyCode||t.which;if("Shift"===e||16===e)B=!1;else if("Control"===e||17===e)z=!1;else if("Meta"===e||91===e)F=!1;else if("Alt"===e||18===e){W=!1;let t=lt.length;for(;--t>-1;)lt[t]._onReleaseAlt()}}),!0),V=!!G.PointerEvent,bt(Y,"mouseup",ft),bt(Y,"touchend",ft),bt(Y,"touchcancel",nt),bt(G,"touchmove",nt),j&&j.addEventListener("touchstart",nt),Q=1},Ct=function(t){let e,s,i=this,n=q(i.target.parentNode,!0);this._matrix=this.target.transform.baseVal.getItem(0).matrix,this._ctm=n,$[t.type]?(e=-1!==t.type.indexOf("touch")?t.currentTarget||t.target:Y,bt(e,"touchend",i._onRelease),bt(e,"touchmove",i._onMove),bt(e,"touchcancel",i._onRelease),bt(Y,"touchstart",At),bt(G,"touchforcechange",ct)):(e=null,bt(Y,"mousemove",i._onMove)),V||bt(Y,"mouseup",i._onRelease),ct(t),xt(),t.changedTouches?(t=i.touch=t.changedTouches[0],i.touchID=t.identifier):t.pointerId?i.touchID=t.pointerId:i.touch=i.touchID=null,i._startPointerY=i.pointerY=t.pageY,i._startPointerX=i.pointerX=t.pageX,i._startElementX=i._matrix.e,i._startElementY=i._matrix.f,1===this._ctm.a&&0===this._ctm.b&&0===this._ctm.c&&1===this._ctm.d?this._ctm=null:(s=i._startPointerX*this._ctm.a+i._startPointerY*this._ctm.c+this._ctm.e,i._startPointerY=i._startPointerX*this._ctm.b+i._startPointerY*this._ctm.d+this._ctm.f,i._startPointerX=s),i.isPressed=it=!0,i.touchEventTarget=e,i.vars.onPress&&i.vars.onPress.call(i.vars.callbackScope||i,i.pointerEvent)},Et=function(t){let e,s,i=this,n=t;if(i._enabled&&!mt&&i.isPressed&&t){if(i.pointerEvent=t,e=t.changedTouches,e){if((t=e[0])!==i.touch&&t.identifier!==i.touchID){for(s=e.length;--s>-1&&(t=e[s]).identifier!==i.touchID;);if(s<0)return}}else if(t.pointerId&&i.touchID&&t.pointerId!==i.touchID)return;ct(n),i.setPointerPosition(t.pageX,t.pageY),i.vars.onDrag&&i.vars.onDrag.call(i.vars.callbackScope||i,i.pointerEvent)}},kt=function(t,e){let s=this;if(!s._enabled||!s.isPressed||t&&null!=s.touchID&&!e&&(t.pointerId&&t.pointerId!==s.touchID||t.changedTouches&&!((t,e)=>{let s=t.length;for(;--s>-1;)if(t[s].identifier===e)return!0;return!1})(t.changedTouches,s.touchID)))return;st=et(),s.isPressed=it=!1;let i,n,o=t,r=s.isDragging,a=s.touchEventTarget;if(a?(vt(a,"touchend",s._onRelease),vt(a,"touchmove",s._onMove),vt(a,"touchcancel",s._onRelease),vt(Y,"touchstart",At)):vt(Y,"mousemove",s._onMove),V||(vt(Y,"mouseup",s._onRelease),t&&t.target&&vt(t.target,"mouseup",s._onRelease)),r?s.isDragging=!1:s.vars.onClick&&s.vars.onClick.call(s.vars.callbackScope||s,o),t){if(i=t.changedTouches,i&&(t=i[0])!==s.touch&&t.identifier!==s.touchID){for(n=i.length;--n>-1&&(t=i[n]).identifier!==s.touchID;);if(n<0)return}s.pointerEvent=o,s.pointerX=t.pageX,s.pointerY=t.pageY}return o&&!r&&s.vars.onDragRelease?s.vars.onDragRelease.call(s,s.pointerEvent):(o&&ct(o),s.vars.onRelease&&s.vars.onRelease.call(s.vars.callbackScope||s,s.pointerEvent)),r&&s.vars.onDragEnd&&s.vars.onDragEnd.call(s.vars.callbackScope||s,s.pointerEvent),!0},Mt=(t,e,s,i)=>{let n,o=t[e],r=o.length-(o.closed?6:0),a=[];for(n=0;n<r;n+=6)a.push(new Ht(s,t,e,n,i));return o.closed&&(a[0].isClosedStart=!0),a},Dt=(t,e,s)=>{let i=t[s]-t[e],n=t[s+1]-t[e+1];return Math.sqrt(i*i+n*n)};class Tt{constructor(t,e){this.target="string"==typeof t?Y.querySelectorAll(t)[0]:t,this.vars=e||{},this._onPress=wt(Ct,this),this._onMove=wt(Et,this),this._onRelease=wt(kt,this),this.target.setAttribute("transform",(this.target.getAttribute("transform")||"")+" translate(0,0)"),this._matrix=ut(this.target),this.x=this._matrix.e,this.y=this._matrix.f,this.snap=e.snap,isNaN(e.maxX)&&isNaN(e.minX)?this._bounds=0:(this._bounds=1,this.maxX=+e.maxX,this.minX=+e.minX),this.enabled(!0)}setPointerPosition(t,e){let s,i,n,o,r;this.pointerX=t,this.pointerY=e,this._ctm&&(r=t*this._ctm.a+e*this._ctm.c+this._ctm.e,e=t*this._ctm.b+e*this._ctm.d+this._ctm.f,t=r),i=e-this._startPointerY,s=t-this._startPointerX,i<1&&i>-1&&(i=0),s<1&&s>-1&&(s=0),n=(1e3*(this._startElementX+s)|0)/1e3,o=(1e3*(this._startElementY+i)|0)/1e3,this.snap&&!B&&(at.x=n,at.y=o,this.snap.call(this,at),n=at.x,o=at.y),this.x===n&&this.y===o||(this._matrix.f=this.y=o,this._matrix.e=this.x=n,!this.isDragging&&this.isPressed&&(this.isDragging=!0,Pt("onDragStart",this,this.pointerEvent)))}enabled(t){if(!arguments.length)return this._enabled;let e;return this._enabled=t,t?(V||bt(this.target,"mousedown",this._onPress),bt(this.target,"touchstart",this._onPress),bt(this.target,"click",this._onClick,!0)):(e=this.isDragging,vt(this.target,"mousedown",this._onPress),vt(this.target,"touchstart",this._onPress),vt(G,"touchforcechange",ct),vt(this.target,"click",this._onClick),this.touchEventTarget&&(vt(this.touchEventTarget,"touchcancel",this._onRelease),vt(this.touchEventTarget,"touchend",this._onRelease),vt(this.touchEventTarget,"touchmove",this._onMove)),vt(Y,"mouseup",this._onRelease),vt(Y,"mousemove",this._onMove),this.isDragging=this.isPressed=!1,e&&Pt("onDragEnd",this,this.pointerEvent)),this}endDrag(t){this._onRelease(t)}}class Ht{constructor(t,e,s,i,n){this.editor=t,this.element=gt("path",t._selection,{fill:"#4e7fff",stroke:"#4e7fff",strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this.update(e,s,i),this.element._gsSelection=!0,this.vars=n||{},this._draggable=new Tt(this.element,{callbackScope:this,onDrag:this.onDrag,snap:this.vars.snap,onPress:this.onPress,onRelease:this.onRelease,onClick:this.onClick,onDragEnd:this.onDragEnd})}onPress(){Pt("onPress",this)}onClick(){Pt("onClick",this)}onDrag(){let t=this.segment;this.vars.onDrag.call(this.vars.callbackScope||this,this,this._draggable.x-t[this.i],this._draggable.y-t[this.i+1])}onDragEnd(){Pt("onDragEnd",this)}onRelease(){Pt("onRelease",this)}update(t,e,s){t&&(this.rawPath=t),arguments.length<=1?(e=this.j,s=this.i):(this.j=e,this.i=s);let i=this.smooth,n=this.rawPath[e],o=0===s&&n.closed?n.length-4:s-2;this.segment=n,this.smooth=s>0&&s<n.length-2&&Math.abs(Math.atan2(n[s+1]-n[o+1],n[s]-n[o])-Math.atan2(n[s+3]-n[s+1],n[s+2]-n[s]))<.09?2:0,this.smooth!==i&&this.element.setAttribute("d",this.smooth?this.editor._circleHandle:this.editor._squareHandle),this.element.setAttribute("transform","translate("+n[s]+","+n[s+1]+")")}}class Rt{constructor(t,e){e=e||{},Q||St(),this.vars=e,this.path="string"==typeof t?Y.querySelectorAll(t)[0]:t,this._g=gt("g",this.path.ownerSVGElement,{class:"path-editor-g path-editor"}),this._selectionHittest=gt("path",this._g,{stroke:"transparent",strokeWidth:16,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selection=e._selection||gt("g",this._g,{class:"path-editor-selection path-editor"}),this._selectionPath=gt("path",this._selection,{stroke:"#4e7fff",strokeWidth:2,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selectedAnchors=[],this._line1=gt("polyline",this._selection,{stroke:"#4e7fff",strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line2=gt("polyline",this._selection,{stroke:"#4e7fff",strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line1.style.pointerEvents=this._line2.style.pointerEvents=this._selectionPath.style.pointerEvents="none",this._enabled=!0;let s=this.path.parentNode.getScreenCTM().inverse(),i=(s.a+s.d)/2*(e.handleSize||5);this._squareHandle=(t=>["M-"+(t=_t(t)),-t,t,-t,t,t,-t,t+"z"].join(","))(i),this._circleHandle=(t=>{let e=_t(.552284749831*t);return"M"+(t=_t(t))+",0C"+[t,e,e,t,0,t,-e,t,-t,e,-t,0,-t,-e,-e,-t,0,-t,e,-t,t,-e,t,0].join(",")+"z"})(1.15*i),this._handle1=gt("path",this._selection,{d:this._squareHandle,fill:"#4e7fff",stroke:"transparent",strokeWidth:6}),this._handle2=gt("path",this._selection,{d:this._squareHandle,fill:"#4e7fff",stroke:"transparent",strokeWidth:6}),this._handle1._draggable=new Tt(this._handle1,{onDrag:this._onDragHandle1,callbackScope:this,onPress:this._onPressHandle1,onRelease:this._onReleaseHandle,onClick:this._onClickHandle1,snap:e.handleSnap}),this._handle2._draggable=new Tt(this._handle2,{onDrag:this._onDragHandle2,callbackScope:this,onPress:this._onPressHandle2,onRelease:this._onReleaseHandle,onClick:this._onClickHandle2,snap:e.handleSnap}),this._handle1.style.visibility=this._handle2.style.visibility="hidden";let n=[this._handle1,this._handle2,this._line1,this._line2,this._selection,this._selectionPath,this._selectionHittest],o=n.length;for(;--o>-1;)n[o]._gsSelection=!0;!1!==e.draggable&&(this._draggable=new Tt(this._selectionHittest,{callbackScope:this,onPress:this.select,onRelease:this._onRelease,onDrag:this._onDragPath,onDragEnd:this._saveState,maxX:this.vars.maxX,minX:this.vars.minX})),this.init(),this._selection.style.visibility=!1===e.selected?"hidden":"visible",!1!==e.selected&&(this.path._gsSelection=!0,lt.push(this)),this._saveState(),V||(bt(this._selectionHittest,"mousedown",wt(this._onClickSelectionPath,this)),bt(this._selectionHittest,"mouseup",wt(this._onRelease,this))),bt(this._selectionHittest,"touchstart",wt(this._onClickSelectionPath,this)),bt(this._selectionHittest,"touchend",wt(this._onRelease,this))}_onRelease(t){let e=this._editingAnchor;e&&(ot.x=e.segment[e.i],ot.y=e.segment[e.i+1]),vt(G,"touchforcechange",ct),Pt("onRelease",this,t)}init(){let t,e,s=this.path.getAttribute("d"),i=p(s),n=this.path.getAttribute("transform")||"translate(0,0)",o=!this._rawPath||i.totalPoints!==this._rawPath.totalPoints||i.length!==this._rawPath.length,r={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX};if(o&&this._anchors&&this._anchors.length){for(e=0;e<this._anchors.length;e++)this._anchors[e].element.parentNode.removeChild(this._anchors[e].element),this._anchors[e]._draggable.enabled(!1);this._selectedAnchors.length=0}if(this._rawPath=i,o){if(this._anchors=Mt(i,0,this,r),t=i.length,t>1)for(e=1;e<t;e++)this._anchors=this._anchors.concat(Mt(i,e,this,r))}else for(e=this._anchors.length;--e>-1;)this._anchors[e].update(i);return this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),this._selectionPath.setAttribute("d",s),this._selectionHittest.setAttribute("d",s),this._g.setAttribute("transform",(t=>{let e=ut(t),s=t.ownerSVGElement;for(;(t=t.parentNode)&&t.ownerSVGElement===s;)e.multiply(ut(t));return"matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")"})(this.path.parentNode)||"translate(0,0)"),this._selection.setAttribute("transform",n),this._selectionHittest.setAttribute("transform",n),this._updateAnchors(),this}_saveState(){(t=>{let e,s=[],i=t._selectedAnchors;for(e=0;e<i.length;e++)s[e]=i[e].i;rt.unshift({path:t,d:t.path.getAttribute("d"),transform:t.path.getAttribute("transform")||"",selectedIndexes:s}),rt.length>30&&(rt.length=30)})(this)}_onClickSelectionPath(e){if("hidden"===this._selection.style.visibility)this.select();else if(W||e&&e.altKey){let s,i,n,o,r,a,l={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX},c=this._selection.getScreenCTM().inverse();for(this._draggable&&this._draggable._onRelease(e),c&&(o=e.clientX*c.a+e.clientY*c.c+c.e,r=e.clientX*c.b+e.clientY*c.d+c.f),a=function(e,s,i,n){let o,r,a,h,l={j:0,i:0,t:0},c=1e8;for(r=0;r<e.length;r++)for(h=e[r],o=0;o<h.length;o+=6)a=b(1,s,i,0,1,n||20,h[o],h[o+1],h[o+2],h[o+3],h[o+4],h[o+5],h[o+6],h[o+7]),c>t&&(c=t,l.j=r,l.i=o,l.t=a);return l}(this._rawPath,o,r),function(t,e,s){if(s<=0||s>=1)return 0;let i=t[e],n=t[e+1],o=t[e+2],r=t[e+3],a=t[e+4],l=t[e+5],c=i+(o-i)*s,d=o+(a-o)*s,g=n+(r-n)*s,p=r+(l-r)*s,u=c+(d-c)*s,_=g+(p-g)*s,f=a+(t[e+6]-a)*s,m=l+(t[e+7]-l)*s;d+=(f-d)*s,p+=(m-p)*s,t.splice(e+2,4,h(c),h(g),h(u),h(_),h(u+(d-u)*s),h(_+(p-_)*s),h(d),h(p),h(f),h(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0)}(this._rawPath[a.j],a.i,a.t),s=a.i+6,i=0;i<this._anchors.length;i++)this._anchors[i].i>=s&&(this._anchors[i].i+=6);n=new Ht(this,this._rawPath,a.j,s,l),this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),n._draggable._onPress(e),U=n,this._anchors.push(n),this._selectedAnchors.length=0,this._selectedAnchors.push(n),this._updateAnchors(),this.update(),this._saveState()}xt(),bt(G,"touchforcechange",ct),Pt("onPress",this)}_onClickHandle1(){let t=this._editingAnchor,e=t.i,s=t.segment,i=t.isClosedStart?s.length-4:e-2;W&&Math.abs(s[e]-s[i])<5&&Math.abs(s[e+1]-s[i+1])<5&&this._onClickAnchor(t)}_onClickHandle2(){let t=this._editingAnchor,e=t.i,s=t.segment;W&&Math.abs(s[e]-s[e+2])<5&&Math.abs(s[e+1]-s[e+3])<5&&this._onClickAnchor(t)}_onDragEndAnchor(t){U=null,this._saveState()}isSelected(){return this._selectedAnchors.length>0}select(t){if(this._selection.style.visibility="visible",this._editingAnchor=null,this.path._gsSelection=!0,!0===t){let t=this._anchors.length;for(;--t>-1;)this._selectedAnchors[t]=this._anchors[t]}return-1===lt.indexOf(this)&<.push(this),this._updateAnchors(),this}deselect(){return this._selection.style.visibility="hidden",this._selectedAnchors.length=0,this._editingAnchor=null,this.path._gsSelection=!1,lt.splice(lt.indexOf(this),1),this._updateAnchors(),this}_onDragPath(t){let e=this._selectionHittest.getAttribute("transform")||"translate(0,0)";this._selection.setAttribute("transform",e),this.path.setAttribute("transform",e)}_onPressAnchor(t){-1===this._selectedAnchors.indexOf(t)?(B||(this._selectedAnchors.length=0),this._selectedAnchors.push(t)):B&&(this._selectedAnchors.splice(this._selectedAnchors.indexOf(t),1),t._draggable.endDrag()),ot.x=t.segment[t.i],ot.y=t.segment[t.i+1],this._updateAnchors(),Pt("onPress",this)}_deleteSelectedAnchors(){let t,e,s,i=this._selectedAnchors,n=i.length;for(;--n>-1;)for(t=i[n],t.element.parentNode.removeChild(t.element),t._draggable.enabled(!1),e=t.i,e?e<t.segment.length-2?t.segment.splice(e-2,6):t.segment.splice(e-4,6):t.segment.splice(e,6),i.splice(n,1),this._anchors.splice(this._anchors.indexOf(t),1),s=0;s<this._anchors.length;s++)this._anchors[s].i>=e&&(this._anchors[s].i-=6);this._updateAnchors(),this.update(),this._saveState(),this.vars.onDeleteAnchor&&this.vars.onDeleteAnchor.call(this.vars.callbackScope||this)}_onClickAnchor(t){let e,s,i,n,o,r,a=t.i,h=t.segment,l=t.isClosedStart?h.length-4:a-2,c=!a||a>=h.length-2;W&&U!==t&&this._editingAnchor?(t.smooth=!t.smooth,c&&!t.isClosedStart&&(t.smooth=!1),t.element.setAttribute("d",t.smooth?this._circleHandle:this._squareHandle),!t.smooth||c&&!t.isClosedStart?t.smooth||c&&!t.isClosedStart||((a||t.isClosedStart)&&(h[l]=h[a],h[l+1]=h[a+1]),a<h.length-2&&(h[a+2]=h[a],h[a+3]=h[a+1]),this._updateAnchors(),this.update(),this._saveState()):(e=Math.atan2(h[a+1]-h[l+1],h[a]-h[l]),s=Math.atan2(h[a+3]-h[a+1],h[a+2]-h[a]),e=(e+s)/2,i=Dt(h,l,a),n=Dt(h,a,a+2),i<.2&&(i=Dt(h,a,l-4)/4,e=s||Math.atan2(h[a+7]-h[l-3],h[a+6]-h[l-4])),n<.2&&(n=Dt(h,a,a+6)/4,s=e||Math.atan2(h[a+7]-h[l-3],h[a+6]-h[l-4])),o=Math.sin(e),r=Math.cos(e),Math.abs(s-e)<Math.PI/2&&(o=-o,r=-r),h[l]=(1e3*(h[a]+r*i)|0)/1e3,h[l+1]=(1e3*(h[a+1]+o*i)|0)/1e3,h[a+2]=(1e3*(h[a]-r*n)|0)/1e3,h[a+3]=(1e3*(h[a+1]-o*n)|0)/1e3,this._updateAnchors(),this.update(),this._saveState())):B||(this._selectedAnchors.length=0,this._selectedAnchors.push(t)),U=null,this._updateAnchors()}_updateAnchors(){let t,e,s,i=1===this._selectedAnchors.length?this._selectedAnchors[0]:null,n=i?i.segment:null;for(this._editingAnchor=i,t=0;t<this._anchors.length;t++)this._anchors[t].element.style.fill=-1!==this._selectedAnchors.indexOf(this._anchors[t])?"#4e7fff":"white";i&&(this._handle1.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle),this._handle2.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle)),t=i?i.i:0,i&&(t||i.isClosedStart)?(e=i.isClosedStart?n[n.length-4]:n[t-2],s=i.isClosedStart?n[n.length-3]:n[t-1],this._handle1.style.visibility=this._line1.style.visibility=W||e!==n[t]||s!==n[t+1]?"visible":"hidden",this._handle1.setAttribute("transform","translate("+e+","+s+")"),this._line1.setAttribute("points",e+","+s+","+n[t]+","+n[t+1])):this._handle1.style.visibility=this._line1.style.visibility="hidden",i&&t<n.length-2?(e=n[t+2],s=n[t+3],this._handle2.style.visibility=this._line2.style.visibility=W||e!==n[t]||s!==n[t+1]?"visible":"hidden",this._handle2.setAttribute("transform","translate("+e+","+s+")"),this._line2.setAttribute("points",n[t]+","+n[t+1]+","+e+","+s)):this._handle2.style.visibility=this._line2.style.visibility="hidden"}_onPressAlt(){let t=this._editingAnchor;t&&((t.i||t.isClosedStart)&&(this._handle1.style.visibility=this._line1.style.visibility="visible"),t.i<t.segment.length-2&&(this._handle2.style.visibility=this._line2.style.visibility="visible"))}_onReleaseAlt(){let t,e,s,i=this._editingAnchor;i&&(t=i.segment,e=i.i,s=i.isClosedStart?t.length-4:e-2,t[e]===t[s]&&t[e+1]===t[s+1]&&(this._handle1.style.visibility=this._line1.style.visibility="hidden"),t[e]===t[e+2]&&t[e+1]===t[e+3]&&(this._handle2.style.visibility=this._line2.style.visibility="hidden"))}_onPressHandle1(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Dt(this._editingAnchor.segment,this._editingAnchor.i,this._editingAnchor.i+2)),Pt("onPress",this)}_onPressHandle2(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Dt(this._editingAnchor.segment,this._editingAnchor.isClosedStart?this._editingAnchor.segment.length-4:this._editingAnchor.i-2,this._editingAnchor.i)),Pt("onPress",this)}_onReleaseHandle(t){this._onRelease(t),this._saveState()}_onDragHandle1(){let t,e=this._editingAnchor,s=e.segment,i=e.i,n=e.isClosedStart?s.length-4:i-2,o=this._handle1._draggable.x,r=this._handle1._draggable.y;s[n]=o=(1e3*o|0)/1e3,s[n+1]=r=(1e3*r|0)/1e3,e.smooth&&(W?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(s[i+1]-r,s[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),s[i+2]=(1e3*(s[i]+o)|0)/1e3,s[i+3]=(1e3*(s[i+1]+r)|0)/1e3)),this.update()}_onDragHandle2(){let t,e=this._editingAnchor,s=e.segment,i=e.i,n=e.isClosedStart?s.length-4:i-2,o=this._handle2._draggable.x,r=this._handle2._draggable.y;s[i+2]=o=(1e3*o|0)/1e3,s[i+3]=r=(1e3*r|0)/1e3,e.smooth&&(W?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(s[i+1]-r,s[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),s[n]=(1e3*(s[i]+o)|0)/1e3,s[n+1]=(1e3*(s[i+1]+r)|0)/1e3)),this.update()}_onDragAnchor(t,e,s){let i,n,o,r,a,h=this._selectedAnchors,l=h.length,c=1e3;for(n=0;n<l;n++)r=h[n],i=r.i,o=r.segment,i?(o[i-2]=((o[i-2]+e)*c|0)/c,o[i-1]=((o[i-1]+s)*c|0)/c):r.isClosedStart&&(a=o.length-2,o[a]=_t(o[a]+e),o[a+1]=_t(o[a+1]+s),o[a-2]=_t(o[a-2]+e),o[a-1]=_t(o[a-1]+s)),o[i]=((o[i]+e)*c|0)/c,o[i+1]=((o[i+1]+s)*c|0)/c,i<o.length-2&&(o[i+2]=((o[i+2]+e)*c|0)/c,o[i+3]=((o[i+3]+s)*c|0)/c),r!==t&&r.element.setAttribute("transform","translate("+o[i]+","+o[i+1]+")");this.update()}enabled(t){if(!arguments.length)return this._enabled;let e=this._anchors.length;for(;--e>-1;)this._anchors[e]._draggable.enabled(t);return this._enabled=t,this._handle1._draggable.enabled(t),this._handle2._draggable.enabled(t),this._draggable&&this._draggable.enabled(t),t?this._selection.parentNode||(this.path.ownerSVGElement.appendChild(this._selectionHittest),this.path.ownerSVGElement.appendChild(this._selection),this.init(),this._saveState()):(this.deselect(),this.path.ownerSVGElement.removeChild(this._selectionHittest),this.path.ownerSVGElement.removeChild(this._selection)),this._updateAnchors(),this.update()}update(t){let e,s,i,n,o,r="",a=this._editingAnchor;if(t&&this.init(),a&&(e=a.i,s=a.segment,(e||a.isClosedStart)&&(o=a.isClosedStart?s.length-4:e-2,i=s[o],n=s[o+1],this._handle1.setAttribute("transform","translate("+i+","+n+")"),this._line1.setAttribute("points",i+","+n+","+s[e]+","+s[e+1])),e<s.length-2&&(i=s[e+2],n=s[e+3],this._handle2.setAttribute("transform","translate("+i+","+n+")"),this._line2.setAttribute("points",s[e]+","+s[e+1]+","+i+","+n))),t)r=this.path.getAttribute("d");else{for(e=0;e<this._rawPath.length;e++)s=this._rawPath[e],s.length>7&&(r+="M"+s[0]+","+s[1]+"C"+s.slice(2).join(","));this.path.setAttribute("d",r),this._selectionPath.setAttribute("d",r),this._selectionHittest.setAttribute("d",r)}return this.vars.onUpdate&&this._enabled&&Pt("onUpdate",this,r),this}getRawPath(t,e,s){if(t){let t=ut(this.path);return d(c(this._rawPath),1,0,0,1,t.e+(e||0),t.f+(s||0))}return this._rawPath}getString(t,e,s){if(t){let t=ut(this.path);return function(t){"number"==typeof t[0]&&(t=[t]);let e,s,i,n,o="",r=t.length;for(s=0;s<r;s++){for(n=t[s],o+="M"+h(n[0])+","+h(n[1])+" C",e=n.length,i=2;i<e;i++)o+=h(n[i++])+","+h(n[i++])+" "+h(n[i++])+","+h(n[i++])+" "+h(n[i++])+","+h(n[i])+" ";n.closed&&(o+="z")}return o}(d(c(this._rawPath),1,0,0,1,t.e+(e||0),t.f+(s||0)))}return this.path.getAttribute("d")}getNormalizedSVG(t,e,s,i){let n,o,r,a,h,l,c=this._rawPath[0],d=-1*c[0],g=0===e?0:-(e||c[1]),p=c.length,_=1/(c[p-2]+d),f=-t||c[p-1]+g;for(ht.length=0,f=f?1/f:-_,_*=1e3,f*=1e3,o=0;o<p;o+=2)ht[o]=((c[o]+d)*_|0)/1e3,ht[o+1]=((c[o+1]+g)*f|0)/1e3;if(i){for(n=[],p=ht.length,o=2;o<p;o+=6)r=ht[o-2],a=ht[o-1],h=ht[o+4],l=ht[o+5],n.push(r,a,h,l),u(r,a,ht[o],ht[o+1],ht[o+2],ht[o+3],h,l,.001,n,n.length-2);for(r=n[0],p=n.length,o=2;o<p;o+=2){if(h=n[o],h<r||h>1||h<0){i();break}r=h}}return s&&8===p&&0===ht[0]&&0===ht[1]&&1===ht[p-2]&&1===ht[p-1]?ht.slice(2,6).join(","):(ht[2]="C"+ht[2],"M"+ht.join(","))}}Rt.simplifyPoints=m,Rt.pointsToSegment=_,Rt.simplifySVG=(t,e)=>{let s,i,n,o,r,a,h,l,c,d,g,f;if(d=(e=e||{}).tolerance||1,c=e.precision||1/d,f=(void 0===e.cornerThreshold?18:+e.cornerThreshold)*tt,"string"!=typeof t&&(s=t,t=s.getAttribute("d")),"#"!==t.charAt(0)&&"."!==t.charAt(0)||(s=Y.querySelector(t),s&&(t=s.getAttribute("d"))),i=!1!==e.curved||/[achqstvz]/gi.test(t)?p(t)[0]:t.match(J),!1!==e.curved){for(l=i,i=[],g=l.length,n=2;n<g;n+=6)o=+l[n-2],a=+l[n-1],r=+l[n+4],h=+l[n+5],i.push(_t(o),_t(a),_t(r),_t(h)),u(o,a,+l[n],+l[n+1],+l[n+2],+l[n+3],r,h,1/(2e5*c),i,i.length-2);i=_(m(i,d),e.curviness),i[2]="C"+i[2]}else i=m(i,d);return t="M"+i.join(","),s&&s.setAttribute("d",t),t},Rt.create=(t,e)=>new Rt(t,e),Rt.editingAxis=ot,Rt.getSnapFunction=t=>{let e=t.radius||2,s=1e20,i=t.x||0===t.x?t.x:t.width?0:-s,n=t.y||0===t.y?t.y:t.height?0:-s,o=i+(t.width||s*s),r=n+(t.height||s*s),a=!1!==t.containX,h=!1!==t.containY,l=t.axis,c=t.gridSize;return e*=e,t=>{let s,d,g,p,u=t.x,_=t.y;a&&u<i||(g=u-i)*g<e?u=i:(a&&u>o||(g=o-u)*g<e)&&(u=o),h&&_<n||(p=_-n)*p<e?_=n:(h&&_>r||(p=r-_)*p<e)&&(_=r),l&&(g=u-l.x,p=_-l.y,g*g<e&&(u=l.x),p*p<e&&(_=l.y)),c&&(s=i+Math.round((u-i)/c)*c,g=s-u,d=n+Math.round((_-n)/c)*c,p=d-_,g*g+p*p<e&&(u=s,_=d)),t.x=u,t.y=_}},Rt.version="3.10.2";let Nt,Lt,Xt,It,Ot,qt,Yt,Vt,Gt,jt=function(){return String.fromCharCode.apply(null,arguments)},zt=jt(103,114,101,101,110,115,111,99,107,46,99,111,109),Wt=(function(t){var e="undefined"!=typeof window,s=0===(e?window.location.href:"").indexOf(jt(102,105,108,101,58,47,47))||-1!==t.indexOf(jt(108,111,99,97,108,104,111,115,116))||-1!==t.indexOf(jt(49,50,55,46,48,32,48,46,49)),i=[zt,jt(99,111,100,101,112,101,110,46,105,111),jt(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),jt(99,111,100,101,112,101,110,46,100,101,118),jt(99,111,100,101,112,101,110,46,97,112,112),jt(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),jt(112,101,110,115,46,99,108,111,117,100),jt(99,115,115,45,116,114,105,99,107,115,46,99,111,109),jt(99,100,112,110,46,105,111),jt(112,101,110,115,46,105,111),jt(103,97,110,110,111,110,46,116,118),jt(99,111,100,101,99,97,110,121,111,110,46,110,101,116),jt(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),jt(99,101,114,101,98,114,97,120,46,99,111,46,117,107),jt(116,121,109,112,97,110,117,115,46,110,101,116),jt(116,119,101,101,110,109,97,120,46,99,111,109),jt(116,119,101,101,110,108,105,116,101,46,99,111,109),jt(112,108,110,107,114,46,99,111),jt(104,111,116,106,97,114,46,99,111,109),jt(119,101,98,112,97,99,107,98,105,110,46,99,111,109),jt(97,114,99,104,105,118,101,46,111,114,103),jt(99,111,100,101,115,97,110,100,98,111,120,46,105,111),jt(99,115,98,46,97,112,112),jt(115,116,97,99,107,98,108,105,116,122,46,99,111,109),jt(115,116,97,99,107,98,108,105,116,122,46,105,111),jt(99,111,100,105,101,114,46,105,111),jt(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),jt(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),jt(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),jt(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){e&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",n):(document.removeEventListener("readystatechange",n),e&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(jt(37,99,87,97,114,110,105,110,103),jt(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(jt(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"MotionPathHelper"+jt(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(jt(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),jt(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},o=i.length;for(setTimeout(n,50);--o>-1;)if(-1!==t.indexOf(i[o]))return!0;s||setTimeout((function(){e&&(window.location.href=jt(104,116,116,112,115,58,47,47)+zt+jt(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=MotionPathHelper&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),/(^[#\.][a-z]|[a-y][a-z])/i),Bt=t=>"string"==typeof t,Ft=(t,e)=>{let s=Xt.createElementNS?Xt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Xt.createElement(t);return s.style?s:Xt.createElement(t)},Ut=(t,e,s)=>Bt(t)&&Wt.test(t)?Xt.querySelector(t):Array.isArray(t)?Vt(Yt([{x:Nt.getProperty(e,"x"),y:Nt.getProperty(e,"y")},...t],s)):Bt(t)||t&&"path"===(t.tagName+"").toLowerCase()?t:0,Zt={matrix:{a:1,b:0,c:0,d:1,e:0,f:0}},$t=(t,e)=>{let s="Please gsap.registerPlugin(MotionPathPlugin)";Lt=window,Nt=Nt||t||Lt.gsap||console.warn(s),Xt=document,Ot=Xt.body,It=Xt.documentElement,qt=Nt&&Nt.plugins.motionPath,qt?(Gt=Ft("textarea"),Gt.style.display="none",Ot.appendChild(Gt),Yt=qt.arrayToRawPath,Vt=qt.rawPathToString):!0===e&&console.warn(s)};class Kt{constructor(t,e={}){qt||$t(e.gsap,1);let s,i,n,o,r,a,h,l,c,d,g,p,u,_=Ft("div"),f=this,m={x:0,y:0};t instanceof Nt.core.Tween?(l=t,s=l.targets()[0]):(s=Nt.utils.toArray(t)[0],l=(t=>{let e=Nt.getTweensOf(t),s=0;for(;s<e.length;s++){if(e[s].vars.motionPath)return e[s];e[s].timeline&&e.push(...e[s].timeline.getChildren())}})(s)),i=Ut(e.path,s,e),this.offset=m,a=(t=>{let e=t.getBoundingClientRect(),s=It.clientTop-(Lt.pageYOffset||It.scrollTop||Ot.scrollTop||0),i=It.clientLeft-(Lt.pageXOffset||It.scrollLeft||Ot.scrollLeft||0);return{left:e.left+i,top:e.top+s,right:e.right+i,bottom:e.bottom+s}})(s),o=parseFloat(Nt.getProperty(s,"x","px")),r=parseFloat(Nt.getProperty(s,"y","px")),n=s.getCTM&&"svg"!==s.tagName.toLowerCase(),l&&!i&&(i=Ut(l.vars.motionPath.path||l.vars.motionPath,s,l.vars.motionPath)),_.setAttribute("class","copy-motion-path"),_.style.cssText="border-radius:8px; background-color:rgba(85, 85, 85, 0.7); color:#fff; cursor:pointer; padding:6px 12px; font-family:Signika Negative, Arial, sans-serif; position:fixed; left:50%; transform:translate(-50%, 0); font-size:19px; bottom:10px",_.innerText="COPY MOTION PATH",_._gsHelper=f,(Nt.utils.toArray(e.container)[0]||Ot).appendChild(_),((t,e,s)=>{t.addEventListener("click",i=>{if(i.target._gsHelper){let n=e(i.target);if(Gt.value=n,n&&Gt.select){console.log(n),Gt.style.display="block",Gt.select();try{Xt.execCommand("copy"),Gt.blur(),s&&s(t)}catch(t){console.warn("Copy didn't work; this browser doesn't permit that.")}Gt.style.display="none"}}})})(_,()=>f.getString(),()=>Nt.fromTo(_,{backgroundColor:"white"},{duration:.5,backgroundColor:"rgba(85, 85, 85, 0.6)"})),h=i&&i.ownerSVGElement,h||(c=n&&s.ownerSVGElement&&s.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg",n?(h=s.ownerSVGElement,d=s.getBBox(),g=(t=>(t.transform.baseVal.consolidate()||Zt).matrix)(s),o=g.e,r=g.f,m.x=d.x,m.y=d.y):(h=Ft("svg",c),Ot.appendChild(h),h.setAttribute("viewBox","0 0 100 100"),h.setAttribute("class","motion-path-helper"),h.style.cssText="overflow:visible; background-color: transparent; position:absolute; z-index:5000; width:100px; height:100px; top:"+(a.top-r)+"px; left:"+(a.left-o)+"px;"),d=Bt(i)&&!Wt.test(i)?i:((t,e)=>{let s,i=[0,31,8,58,24,75,40,90,69,100,100,100];for(s=0;s<i.length;s+=2)i[s]+=t,i[s+1]+=e;return"M"+t+","+e+"C"+i.join(",")})(o,r),i=Ft("path",c),i.setAttribute("d",d),i.setAttribute("vector-effect","non-scaling-stroke"),i.style.cssText="fill:transparent; stroke-width:"+(e.pathWidth||3)+"; stroke:"+(e.pathColor||"#555")+"; opacity:"+(e.pathOpacity||.6),h.appendChild(i),(m.x||m.y)&&Nt.set(i,{x:m.x,y:m.y})),"selected"in e||(e.selected=!0),"anchorSnap"in e||(e.anchorSnap=t=>{t.x*t.x+t.y*t.y<16&&(t.x=t.y=0)}),u=l&&"nested"===l.parent.data?l.parent.parent:l,e.onPress=()=>{u.pause(0)},p=()=>{l.invalidate(),u.restart()},e.onRelease=e.onDeleteAnchor=p,this.editor=Rt.create(i,e),e.center&&Nt.set(s,{transformOrigin:"50% 50%",xPercent:-50,yPercent:-50}),l?(l.vars.motionPath.path?l.vars.motionPath.path=i:l.vars.motionPath={path:i},u.parent!==Nt.globalTimeline&&Nt.globalTimeline.add(u,(t=>{let e=t.totalTime();for(;t;)e=t.startTime()+e/(t.timeScale()||1),t=t.parent;return e})(u)-u.delay()),u.repeat(-1).repeatDelay(1)):l=u=Nt.to(s,{motionPath:{path:i,start:e.start||0,end:"end"in e?e.end:1,autoRotate:"autoRotate"in e&&e.autoRotate,align:i,alignOrigin:e.alignOrigin},duration:e.duration||5,ease:e.ease||"power1.inOut",repeat:-1,repeatDelay:1,paused:!e.path}),this.animation=l}getString(){return this.editor.getString(!0,-this.offset.x,-this.offset.y)}}Kt.register=$t,Kt.create=(t,e)=>new Kt(t,e),Kt.editPath=(t,e)=>Rt.create(t,e),Kt.version="3.10.2";export default Kt;export{Kt as MotionPathHelper}; | ||
let t,e=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,s=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,i=Math.PI/180,n=Math.sin,o=Math.cos,r=Math.abs,a=Math.sqrt,h=t=>Math.round(1e5*t)/1e5||0,l=(t,e)=>(e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e);function c(t){let e=[],s=0;for(;s<t.length;s++)e[s]=l(t[s],t[s].slice(0));return l(t,e)}function d(t,e,s,i,n,o,r){let a,h,l,c,d,g=t.length;for(;--g>-1;)for(a=t[g],h=a.length,l=0;l<h;l+=2)c=a[l],d=a[l+1],a[l]=c*e+d*i+o,a[l+1]=c*s+d*n+r;return t._dirty=1,t}function g(t,e,s,h,l,c,d,g,p){if(t===g&&e===p)return;s=r(s),h=r(h);let u=l%360*i,_=o(u),f=n(u),m=Math.PI,b=2*m,v=(t-g)/2,y=(e-p)/2,A=_*v+f*y,w=-f*v+_*y,x=A*A,P=w*w,S=x/(s*s)+P/(h*h);S>1&&(s=a(S)*s,h=a(S)*h);let C=s*s,E=h*h,k=(C*E-C*P-E*x)/(C*P+E*x);k<0&&(k=0);let M=(c===d?-1:1)*a(k),D=M*(s*w/h),T=M*(-h*A/s),H=(t+g)/2+(_*D-f*T),R=(e+p)/2+(f*D+_*T),N=(A-D)/s,L=(w-T)/h,X=(-A-D)/s,I=(-w-T)/h,O=N*N+L*L,q=(L<0?-1:1)*Math.acos(N/a(O)),Y=(N*I-L*X<0?-1:1)*Math.acos((N*X+L*I)/a(O*(X*X+I*I)));isNaN(Y)&&(Y=m),!d&&Y>0?Y-=b:d&&Y<0&&(Y+=b),q%=b,Y%=b;let V,G=Math.ceil(r(Y)/(b/4)),j=[],z=Y/G,B=4/3*n(z/2)/(1+o(z/2)),W=_*s,F=f*s,U=f*-h,Z=_*h;for(V=0;V<G;V++)A=o(l=q+V*z),w=n(l),N=o(l+=z),L=n(l),j.push(A-B*w,w+B*A,N+B*L,L-B*N,N,L);for(V=0;V<j.length;V+=2)A=j[V],w=j[V+1],j[V]=A*W+w*U+H,j[V+1]=A*F+w*Z+R;return j[V-2]=g,j[V-1]=p,j}function p(t){let i,n,o,a,h,l,c,d,p,u,_,f,m,b,v,y=(t+"").replace(s,t=>{let e=+t;return e<1e-4&&e>-1e-4?0:e}).match(e)||[],A=[],w=0,x=0,P=y.length,S=0,C="ERROR: malformed path: "+t,E=function(t,e,s,i){u=(s-t)/3,_=(i-e)/3,c.push(t+u,e+_,s-u,i-_,s,i)};if(!t||!isNaN(y[0])||isNaN(y[1]))return console.log(C),A;for(i=0;i<P;i++)if(m=h,isNaN(y[i])?(h=y[i].toUpperCase(),l=h!==y[i]):i--,o=+y[i+1],a=+y[i+2],l&&(o+=w,a+=x),i||(d=o,p=a),"M"===h)c&&(c.length<8?A.length-=1:S+=c.length),w=d=o,x=p=a,c=[o,a],A.push(c),i+=2,h="L";else if("C"===h)c||(c=[0,0]),l||(w=x=0),c.push(o,a,w+1*y[i+3],x+1*y[i+4],w+=1*y[i+5],x+=1*y[i+6]),i+=6;else if("S"===h)u=w,_=x,"C"!==m&&"S"!==m||(u+=w-c[c.length-4],_+=x-c[c.length-3]),l||(w=x=0),c.push(u,_,o,a,w+=1*y[i+3],x+=1*y[i+4]),i+=4;else if("Q"===h)u=w+2/3*(o-w),_=x+2/3*(a-x),l||(w=x=0),w+=1*y[i+3],x+=1*y[i+4],c.push(u,_,w+2/3*(o-w),x+2/3*(a-x),w,x),i+=4;else if("T"===h)u=w-c[c.length-4],_=x-c[c.length-3],c.push(w+u,x+_,o+2/3*(w+1.5*u-o),a+2/3*(x+1.5*_-a),w=o,x=a),i+=2;else if("H"===h)E(w,x,w=o,x),i+=1;else if("V"===h)E(w,x,w,x=o+(l?x-w:0)),i+=1;else if("L"===h||"Z"===h)"Z"===h&&(o=d,a=p,c.closed=!0),("L"===h||r(w-o)>.5||r(x-a)>.5)&&(E(w,x,o,a),"L"===h&&(i+=2)),w=o,x=a;else if("A"===h){if(b=y[i+4],v=y[i+5],u=y[i+6],_=y[i+7],n=7,b.length>1&&(b.length<3?(_=u,u=v,n--):(_=v,u=b.substr(2),n-=2),v=b.charAt(1),b=b.charAt(0)),f=g(w,x,+y[i+1],+y[i+2],+y[i+3],+b,+v,(l?w:0)+1*u,(l?x:0)+1*_),i+=n,f)for(n=0;n<f.length;n++)c.push(f[n]);w=c[c.length-2],x=c[c.length-1]}else console.log(C);return i=c.length,i<6?(A.pop(),i=0):c[0]===c[i-2]&&c[1]===c[i-1]&&(c.closed=!0),A.totalPoints=S+i,A}function u(t,e,s,i,n,o,a,h,l,c,d){let g,p=(t+s)/2,_=(e+i)/2,f=(s+n)/2,m=(i+o)/2,b=(n+a)/2,v=(o+h)/2,y=(p+f)/2,A=(_+m)/2,w=(f+b)/2,x=(m+v)/2,P=(y+w)/2,S=(A+x)/2,C=a-t,E=h-e,k=r((s-a)*E-(i-h)*C),M=r((n-a)*E-(o-h)*C);return c||(c=[t,e,a,h],d=2),c.splice(d||c.length-2,0,P,S),(k+M)*(k+M)>l*(C*C+E*E)&&(g=c.length,u(t,e,p,_,y,A,P,S,l,c,d),u(P,S,w,x,b,v,a,h,l,c,d+2+(c.length-g))),c}function _(t,e){r(t[0]-t[2])<1e-4&&r(t[1]-t[3])<1e-4&&(t=t.slice(2));let s,i,n,o,l,c,d,g,p,u,_,f,m,b,v,y=t.length-2,A=+t[0],w=+t[1],x=+t[2],P=+t[3],S=[A,w,A,w],C=x-A,E=P-w,k=Math.abs(t[y]-A)<.001&&Math.abs(t[y+1]-w)<.001;for(k&&(t.push(x,P),x=A,P=w,A=t[y-2],w=t[y-1],t.unshift(A,w),y+=4),e=e||0===e?+e:1,n=2;n<y;n+=2)s=A,i=w,A=x,w=P,x=+t[n+2],P=+t[n+3],A===x&&w===P||(o=C,l=E,C=x-A,E=P-w,c=a(o*o+l*l),d=a(C*C+E*E),g=a((C/d+o/c)**2+(E/d+l/c)**2),p=(c+d)*e*.25/g,u=A-(A-s)*(c?p/c:0),_=A+(x-A)*(d?p/d:0),f=A-(u+((_-u)*(3*c/(c+d)+.5)/4||0)),m=w-(w-i)*(c?p/c:0),b=w+(P-w)*(d?p/d:0),v=w-(m+((b-m)*(3*c/(c+d)+.5)/4||0)),A===s&&w===i||S.push(h(u+f),h(m+v),h(A),h(w),h(_+f),h(b+v)));return A!==x||w!==P||S.length<4?S.push(h(x),h(P),h(x),h(P)):S.length-=2,2===S.length?S.push(A,w,A,w,A,w):k&&(S.splice(0,6),S.length=S.length-6),S}function f(t,e,s,i,n,o){let r,a=n-s,h=o-i;return(a||h)&&(r=((t-s)*a+(e-i)*h)/(a*a+h*h),r>1?(s=n,i=o):r>0&&(s+=a*r,i+=h*r)),(t-s)**2+(e-i)**2}function m(t,e){let s,i,n,o,r,a,h,l=parseFloat(t[0]),c=parseFloat(t[1]),d=[l,c],g=t.length-2;for(e=(e||1)**2,s=2;s<g;s+=2)i=parseFloat(t[s]),n=parseFloat(t[s+1]),o=l-i,r=c-n,o*o+r*r>e&&(d.push(i,n),l=i,c=n);return d.push(parseFloat(t[g]),parseFloat(t[g+1])),h=d.length-2,a=[d[0],d[1]],function t(e,s,i,n,o){let r,a,h,l=n,c=e[s],d=e[s+1],g=e[i],p=e[i+1];for(a=s+2;a<i;a+=2)h=f(e[a],e[a+1],c,d,g,p),h>l&&(r=a,l=h);l>n&&(r-s>2&&t(e,s,r,n,o),o.push(e[r],e[r+1]),i-r>2&&t(e,r,i,n,o))}(d,0,h,e,a),a.push(d[h],d[h+1]),a}function b(e,s,i,n,o,r,a,h,l,c,d,g,p,u){let _,f,m,v,y,A,w=(o-n)/r,x=0,P=n;for(t=1e8;P<=o;)A=1-P,_=A*A*A*a+3*A*A*P*l+3*A*P*P*d+P*P*P*p,f=A*A*A*h+3*A*A*P*c+3*A*P*P*g+P*P*P*u,v=_-s,y=f-i,m=v*v+y*y,m<t&&(t=m,x=P),P+=w;return e>1?b(e-1,s,i,Math.max(x-w,0),Math.min(x+w,1),r,a,h,l,c,d,g,p,u):x}let v,y,A,w,x,P,S,C,E,k="transform",M=k+"Origin",D=t=>{let e=t.ownerDocument||t;!(k in t.style)&&"msTransform"in t.style&&(k="msTransform",M=k+"Origin");for(;e.parentNode&&(e=e.parentNode););if(y=window,S=new O,e){v=e,A=e.documentElement,w=e.body,C=v.createElementNS("http://www.w3.org/2000/svg","g"),C.style.transform="none";let t=e.createElement("div"),s=e.createElement("div");w.appendChild(t),t.appendChild(s),t.style.position="static",t.style[k]="translate3d(0,0,1px)",E=s.offsetParent!==t,w.removeChild(t)}return e},T=[],H=[],R=t=>t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null),N=t=>"fixed"===y.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?N(t):void 0),L=(t,e)=>{if(t.parentNode&&(v||D(t))){let s=R(t),i=s?s.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",n=s?e?"rect":"g":"div",o=2!==e?0:100,r=3===e?100:0,a="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",h=v.createElementNS?v.createElementNS(i.replace(/^https/,"http"),n):v.createElement(n);return e&&(s?(P||(P=L(t)),h.setAttribute("width",.01),h.setAttribute("height",.01),h.setAttribute("transform","translate("+o+","+r+")"),P.appendChild(h)):(x||(x=L(t),x.style.cssText=a),h.style.cssText=a+"width:0.1px;height:0.1px;top:"+r+"px;left:"+o+"px",x.appendChild(h))),h}throw"Need document and parent."},X=(t,e)=>{let s,i,n,o,r,a,h=R(t),l=t===h,c=h?T:H,d=t.parentNode;if(t===y)return t;if(c.length||c.push(L(t,1),L(t,2),L(t,3)),s=h?P:x,h)l?(n=(t=>{let e,s=t.getCTM();return s||(e=t.style[k],t.style[k]="none",t.appendChild(C),s=C.getCTM(),t.removeChild(C),e?t.style[k]=e:t.style.removeProperty(k.replace(/([A-Z])/g,"-$1").toLowerCase())),s||S.clone()})(t),o=-n.e/n.a,r=-n.f/n.d,i=S):t.getBBox?(n=t.getBBox(),i=t.transform?t.transform.baseVal:{},i=i.numberOfItems?i.numberOfItems>1?(t=>{let e=new O,s=0;for(;s<t.numberOfItems;s++)e.multiply(t.getItem(s).matrix);return e})(i):i.getItem(0).matrix:S,o=i.a*n.x+i.c*n.y,r=i.b*n.x+i.d*n.y):(i=new O,o=r=0),e&&"g"===t.tagName.toLowerCase()&&(o=r=0),(l?h:d).appendChild(s),s.setAttribute("transform","matrix("+i.a+","+i.b+","+i.c+","+i.d+","+(i.e+o)+","+(i.f+r)+")");else{if(o=r=0,E)for(i=t.offsetParent,n=t;n&&(n=n.parentNode)&&n!==i&&n.parentNode;)(y.getComputedStyle(n)[k]+"").length>4&&(o=n.offsetLeft,r=n.offsetTop,n=0);if(a=y.getComputedStyle(t),"absolute"!==a.position&&"fixed"!==a.position)for(i=t.offsetParent;d&&d!==i;)o+=d.scrollLeft||0,r+=d.scrollTop||0,d=d.parentNode;n=s.style,n.top=t.offsetTop-r+"px",n.left=t.offsetLeft-o+"px",n[k]=a[k],n[M]=a[M],n.position="fixed"===a.position?"fixed":"absolute",t.parentNode.appendChild(s)}return s},I=(t,e,s,i,n,o,r)=>(t.a=e,t.b=s,t.c=i,t.d=n,t.e=o,t.f=r,t);class O{constructor(t=1,e=0,s=0,i=1,n=0,o=0){I(this,t,e,s,i,n,o)}inverse(){let{a:t,b:e,c:s,d:i,e:n,f:o}=this,r=t*i-e*s||1e-10;return I(this,i/r,-e/r,-s/r,t/r,(s*o-i*n)/r,-(t*o-e*n)/r)}multiply(t){let{a:e,b:s,c:i,d:n,e:o,f:r}=this,a=t.a,h=t.c,l=t.b,c=t.d,d=t.e,g=t.f;return I(this,a*e+l*i,a*s+l*n,h*e+c*i,h*s+c*n,o+d*e+g*i,r+d*s+g*n)}clone(){return new O(this.a,this.b,this.c,this.d,this.e,this.f)}equals(t){let{a:e,b:s,c:i,d:n,e:o,f:r}=this;return e===t.a&&s===t.b&&i===t.c&&n===t.d&&o===t.e&&r===t.f}apply(t,e={}){let{x:s,y:i}=t,{a:n,b:o,c:r,d:a,e:h,f:l}=this;return e.x=s*n+i*r+h||0,e.y=s*o+i*a+l||0,e}}function q(t,e,s,i){if(!t||!t.parentNode||(v||D(t)).documentElement===t)return new O;let n=(t=>{let e,s;for(;t&&t!==w;)s=t._gsap,s&&s.uncache&&s.get(t,"x"),s&&!s.scaleX&&!s.scaleY&&s.renderTransform&&(s.scaleX=s.scaleY=1e-4,s.renderTransform(1,s),e?e.push(s):e=[s]),t=t.parentNode;return e})(t),o=R(t)?T:H,r=X(t,s),a=o[0].getBoundingClientRect(),h=o[1].getBoundingClientRect(),l=o[2].getBoundingClientRect(),c=r.parentNode,d=!i&&N(t),g=new O((h.left-a.left)/100,(h.top-a.top)/100,(l.left-a.left)/100,(l.top-a.top)/100,a.left+(d?0:y.pageXOffset||v.scrollLeft||A.scrollLeft||w.scrollLeft||0),a.top+(d?0:y.pageYOffset||v.scrollTop||A.scrollTop||w.scrollTop||0));if(c.removeChild(r),n)for(a=n.length;a--;)h=n[a],h.scaleX=h.scaleY=0,h.renderTransform(1,h);return e?g.inverse():g}let Y,V,G,j,z,B,W,F,U,Z,$,K,Q,J=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,tt=Math.PI/180,et=Date.now||(()=>(new Date).getTime()),st=0,it=0,nt=()=>!1,ot={},rt=[],at={},ht=[],lt=[],ct=t=>{t.preventDefault&&(t.preventDefault(),t.preventManipulation&&t.preventManipulation())},dt=t=>Y.createElementNS?Y.createElementNS("http://www.w3.org/1999/xhtml",t):Y.createElement(t),gt=(t,e,s)=>{let i,n=Y.createElementNS("http://www.w3.org/2000/svg",t),o=/([a-z])([A-Z])/g;for(i in(s=s||{}).class=s.class||"path-editor",s)void 0!==n.style[i]?n.style[i]=s[i]:n.setAttributeNS(null,i.replace(o,"$1-$2").toLowerCase(),s[i]);return e.appendChild(n),n},pt={matrix:new O},ut=t=>(t.transform&&t.transform.baseVal.consolidate()||pt).matrix,_t=t=>~~(1e3*t+(t<0?-.5:.5))/1e3,ft=function(t){if(!t.target._gsSelection&&!it&&et()-st>100){let t=lt.length;for(;--t>-1;)lt[t].deselect();lt.length=0}},mt=0,bt=(t,e,s,i)=>{if(t.addEventListener){let n=$[e];i=i||{passive:!1},t.addEventListener(n||e,s,i),n&&e!==n&&"pointer"!==n.substr(0,7)&&t.addEventListener(e,s,i)}else t.attachEvent&&t.attachEvent("on"+e,s)},vt=(t,e,s)=>{if(t.removeEventListener){let i=$[e];t.removeEventListener(i||e,s),i&&e!==i&&"pointer"!==i.substr(0,7)&&t.removeEventListener(e,s)}else t.detachEvent&&t.detachEvent("on"+e,s)},yt=t=>{mt=t.touches&&_dragCount<t.touches.length,vt(t.target,"touchend",yt)},At=t=>{mt=t.touches&&_dragCount<t.touches.length,bt(t.target,"touchend",yt)},wt=(t,e)=>s=>t.call(e,s),xt=(t,e,s)=>{let i=e.vars[t];return i&&i.call(e.vars.callbackScope||e,s||e),e},Pt=()=>{K.style.display="block",K.select(),K.style.display="none"},St=()=>{Y=document,G=window,j=Y.body,Z=dt("div"),K=dt("textarea"),K.style.display="none",j&&j.appendChild(K),$=function(t){let e=t.split(","),s=(void 0!==Z.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==Z.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),i={},n=4;for(;--n>-1;)i[e[n]]=s[n],i[s[n]]=e[n];return i}("touchstart,touchmove,touchend,touchcancel"),SVGElement.prototype.getTransformToElement=SVGElement.prototype.getTransformToElement||function(t){return t.getScreenCTM().inverse().multiply(this.getScreenCTM())},Y.addEventListener("keydown",(function(t){let e,s,i,n,o=t.keyCode||t.which,r=t.key||o;if("Shift"===r||16===o)W=!0;else if("Control"===r||17===o)z=!0;else if("Meta"===r||91===o)F=!0;else if("Alt"===r||18===o)for(B=!0,e=lt.length;--e>-1;)lt[e]._onPressAlt();else if(("z"===r||90===o)&&(z||F)&&rt.length>1){if(rt.shift(),s=rt[0],s){for(n=s.path,n.path.setAttribute("d",s.d),n.path.setAttribute("transform",s.transform),n.init(),i=n._anchors,e=0;e<i.length;e++)-1!==s.selectedIndexes.indexOf(i[e].i)&&n._selectedAnchors.push(i[e]);n._updateAnchors(),n.update(),n.vars.onUndo&&n.vars.onUndo.call(n)}}else if("Delete"===r||"Backspace"===r||8===o||46===o||63272===o||"d"===o&&(z||F))for(e=lt.length;--e>-1;)lt[e]._deleteSelectedAnchors();else if(("a"===r||65===o)&&(F||z))for(e=lt.length;--e>-1;)lt[e].select(!0)}),!0),Y.addEventListener("keyup",(function(t){let e=t.key||t.keyCode||t.which;if("Shift"===e||16===e)W=!1;else if("Control"===e||17===e)z=!1;else if("Meta"===e||91===e)F=!1;else if("Alt"===e||18===e){B=!1;let t=lt.length;for(;--t>-1;)lt[t]._onReleaseAlt()}}),!0),V=!!G.PointerEvent,bt(Y,"mouseup",ft),bt(Y,"touchend",ft),bt(Y,"touchcancel",nt),bt(G,"touchmove",nt),j&&j.addEventListener("touchstart",nt),Q=1},Ct=function(t){let e,s,i=this,n=q(i.target.parentNode,!0);this._matrix=this.target.transform.baseVal.getItem(0).matrix,this._ctm=n,$[t.type]?(e=-1!==t.type.indexOf("touch")?t.currentTarget||t.target:Y,bt(e,"touchend",i._onRelease),bt(e,"touchmove",i._onMove),bt(e,"touchcancel",i._onRelease),bt(Y,"touchstart",At),bt(G,"touchforcechange",ct)):(e=null,bt(Y,"mousemove",i._onMove)),V||bt(Y,"mouseup",i._onRelease),ct(t),Pt(),t.changedTouches?(t=i.touch=t.changedTouches[0],i.touchID=t.identifier):t.pointerId?i.touchID=t.pointerId:i.touch=i.touchID=null,i._startPointerY=i.pointerY=t.pageY,i._startPointerX=i.pointerX=t.pageX,i._startElementX=i._matrix.e,i._startElementY=i._matrix.f,1===this._ctm.a&&0===this._ctm.b&&0===this._ctm.c&&1===this._ctm.d?this._ctm=null:(s=i._startPointerX*this._ctm.a+i._startPointerY*this._ctm.c+this._ctm.e,i._startPointerY=i._startPointerX*this._ctm.b+i._startPointerY*this._ctm.d+this._ctm.f,i._startPointerX=s),i.isPressed=it=!0,i.touchEventTarget=e,i.vars.onPress&&i.vars.onPress.call(i.vars.callbackScope||i,i.pointerEvent)},Et=function(t){let e,s,i=this,n=t;if(i._enabled&&!mt&&i.isPressed&&t){if(i.pointerEvent=t,e=t.changedTouches,e){if((t=e[0])!==i.touch&&t.identifier!==i.touchID){for(s=e.length;--s>-1&&(t=e[s]).identifier!==i.touchID;);if(s<0)return}}else if(t.pointerId&&i.touchID&&t.pointerId!==i.touchID)return;ct(n),i.setPointerPosition(t.pageX,t.pageY),i.vars.onDrag&&i.vars.onDrag.call(i.vars.callbackScope||i,i.pointerEvent)}},kt=function(t,e){let s=this;if(!s._enabled||!s.isPressed||t&&null!=s.touchID&&!e&&(t.pointerId&&t.pointerId!==s.touchID||t.changedTouches&&!((t,e)=>{let s=t.length;for(;--s>-1;)if(t[s].identifier===e)return!0;return!1})(t.changedTouches,s.touchID)))return;st=et(),s.isPressed=it=!1;let i,n,o=t,r=s.isDragging,a=s.touchEventTarget;if(a?(vt(a,"touchend",s._onRelease),vt(a,"touchmove",s._onMove),vt(a,"touchcancel",s._onRelease),vt(Y,"touchstart",At)):vt(Y,"mousemove",s._onMove),V||(vt(Y,"mouseup",s._onRelease),t&&t.target&&vt(t.target,"mouseup",s._onRelease)),r?s.isDragging=!1:s.vars.onClick&&s.vars.onClick.call(s.vars.callbackScope||s,o),t){if(i=t.changedTouches,i&&(t=i[0])!==s.touch&&t.identifier!==s.touchID){for(n=i.length;--n>-1&&(t=i[n]).identifier!==s.touchID;);if(n<0)return}s.pointerEvent=o,s.pointerX=t.pageX,s.pointerY=t.pageY}return o&&!r&&s.vars.onDragRelease?s.vars.onDragRelease.call(s,s.pointerEvent):(o&&ct(o),s.vars.onRelease&&s.vars.onRelease.call(s.vars.callbackScope||s,s.pointerEvent)),r&&s.vars.onDragEnd&&s.vars.onDragEnd.call(s.vars.callbackScope||s,s.pointerEvent),!0},Mt=(t,e,s,i)=>{let n,o=t[e],r=o.length-(o.closed?6:0),a=[];for(n=0;n<r;n+=6)a.push(new Ht(s,t,e,n,i));return o.closed&&(a[0].isClosedStart=!0),a},Dt=(t,e,s)=>{let i=t[s]-t[e],n=t[s+1]-t[e+1];return Math.sqrt(i*i+n*n)};class Tt{constructor(t,e){this.target="string"==typeof t?Y.querySelectorAll(t)[0]:t,this.vars=e||{},this._onPress=wt(Ct,this),this._onMove=wt(Et,this),this._onRelease=wt(kt,this),this.target.setAttribute("transform",(this.target.getAttribute("transform")||"")+" translate(0,0)"),this._matrix=ut(this.target),this.x=this._matrix.e,this.y=this._matrix.f,this.snap=e.snap,isNaN(e.maxX)&&isNaN(e.minX)?this._bounds=0:(this._bounds=1,this.maxX=+e.maxX,this.minX=+e.minX),this.enabled(!0)}setPointerPosition(t,e){let s,i,n,o,r;this.pointerX=t,this.pointerY=e,this._ctm&&(r=t*this._ctm.a+e*this._ctm.c+this._ctm.e,e=t*this._ctm.b+e*this._ctm.d+this._ctm.f,t=r),i=e-this._startPointerY,s=t-this._startPointerX,i<1&&i>-1&&(i=0),s<1&&s>-1&&(s=0),n=(1e3*(this._startElementX+s)|0)/1e3,o=(1e3*(this._startElementY+i)|0)/1e3,this.snap&&!W&&(at.x=n,at.y=o,this.snap.call(this,at),n=at.x,o=at.y),this.x===n&&this.y===o||(this._matrix.f=this.y=o,this._matrix.e=this.x=n,!this.isDragging&&this.isPressed&&(this.isDragging=!0,xt("onDragStart",this,this.pointerEvent)))}enabled(t){if(!arguments.length)return this._enabled;let e;return this._enabled=t,t?(V||bt(this.target,"mousedown",this._onPress),bt(this.target,"touchstart",this._onPress),bt(this.target,"click",this._onClick,!0)):(e=this.isDragging,vt(this.target,"mousedown",this._onPress),vt(this.target,"touchstart",this._onPress),vt(G,"touchforcechange",ct),vt(this.target,"click",this._onClick),this.touchEventTarget&&(vt(this.touchEventTarget,"touchcancel",this._onRelease),vt(this.touchEventTarget,"touchend",this._onRelease),vt(this.touchEventTarget,"touchmove",this._onMove)),vt(Y,"mouseup",this._onRelease),vt(Y,"mousemove",this._onMove),this.isDragging=this.isPressed=!1,e&&xt("onDragEnd",this,this.pointerEvent)),this}endDrag(t){this._onRelease(t)}}class Ht{constructor(t,e,s,i,n){this.editor=t,this.element=gt("path",t._selection,{fill:"#4e7fff",stroke:"#4e7fff",strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this.update(e,s,i),this.element._gsSelection=!0,this.vars=n||{},this._draggable=new Tt(this.element,{callbackScope:this,onDrag:this.onDrag,snap:this.vars.snap,onPress:this.onPress,onRelease:this.onRelease,onClick:this.onClick,onDragEnd:this.onDragEnd})}onPress(){xt("onPress",this)}onClick(){xt("onClick",this)}onDrag(){let t=this.segment;this.vars.onDrag.call(this.vars.callbackScope||this,this,this._draggable.x-t[this.i],this._draggable.y-t[this.i+1])}onDragEnd(){xt("onDragEnd",this)}onRelease(){xt("onRelease",this)}update(t,e,s){t&&(this.rawPath=t),arguments.length<=1?(e=this.j,s=this.i):(this.j=e,this.i=s);let i=this.smooth,n=this.rawPath[e],o=0===s&&n.closed?n.length-4:s-2;this.segment=n,this.smooth=s>0&&s<n.length-2&&Math.abs(Math.atan2(n[s+1]-n[o+1],n[s]-n[o])-Math.atan2(n[s+3]-n[s+1],n[s+2]-n[s]))<.09?2:0,this.smooth!==i&&this.element.setAttribute("d",this.smooth?this.editor._circleHandle:this.editor._squareHandle),this.element.setAttribute("transform","translate("+n[s]+","+n[s+1]+")")}}class Rt{constructor(t,e){e=e||{},Q||St(),this.vars=e,this.path="string"==typeof t?Y.querySelectorAll(t)[0]:t,this._g=gt("g",this.path.ownerSVGElement,{class:"path-editor-g path-editor"}),this._selectionHittest=gt("path",this._g,{stroke:"transparent",strokeWidth:16,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selection=e._selection||gt("g",this._g,{class:"path-editor-selection path-editor"}),this._selectionPath=gt("path",this._selection,{stroke:"#4e7fff",strokeWidth:2,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selectedAnchors=[],this._line1=gt("polyline",this._selection,{stroke:"#4e7fff",strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line2=gt("polyline",this._selection,{stroke:"#4e7fff",strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line1.style.pointerEvents=this._line2.style.pointerEvents=this._selectionPath.style.pointerEvents="none",this._enabled=!0;let s=this.path.parentNode.getScreenCTM().inverse(),i=(s.a+s.d)/2*(e.handleSize||5);this._squareHandle=(t=>["M-"+(t=_t(t)),-t,t,-t,t,t,-t,t+"z"].join(","))(i),this._circleHandle=(t=>{let e=_t(.552284749831*t);return"M"+(t=_t(t))+",0C"+[t,e,e,t,0,t,-e,t,-t,e,-t,0,-t,-e,-e,-t,0,-t,e,-t,t,-e,t,0].join(",")+"z"})(1.15*i),this._handle1=gt("path",this._selection,{d:this._squareHandle,fill:"#4e7fff",stroke:"transparent",strokeWidth:6}),this._handle2=gt("path",this._selection,{d:this._squareHandle,fill:"#4e7fff",stroke:"transparent",strokeWidth:6}),this._handle1._draggable=new Tt(this._handle1,{onDrag:this._onDragHandle1,callbackScope:this,onPress:this._onPressHandle1,onRelease:this._onReleaseHandle,onClick:this._onClickHandle1,snap:e.handleSnap}),this._handle2._draggable=new Tt(this._handle2,{onDrag:this._onDragHandle2,callbackScope:this,onPress:this._onPressHandle2,onRelease:this._onReleaseHandle,onClick:this._onClickHandle2,snap:e.handleSnap}),this._handle1.style.visibility=this._handle2.style.visibility="hidden";let n=[this._handle1,this._handle2,this._line1,this._line2,this._selection,this._selectionPath,this._selectionHittest],o=n.length;for(;--o>-1;)n[o]._gsSelection=!0;!1!==e.draggable&&(this._draggable=new Tt(this._selectionHittest,{callbackScope:this,onPress:this.select,onRelease:this._onRelease,onDrag:this._onDragPath,onDragEnd:this._saveState,maxX:this.vars.maxX,minX:this.vars.minX})),this.init(),this._selection.style.visibility=!1===e.selected?"hidden":"visible",!1!==e.selected&&(this.path._gsSelection=!0,lt.push(this)),this._saveState(),V||(bt(this._selectionHittest,"mousedown",wt(this._onClickSelectionPath,this)),bt(this._selectionHittest,"mouseup",wt(this._onRelease,this))),bt(this._selectionHittest,"touchstart",wt(this._onClickSelectionPath,this)),bt(this._selectionHittest,"touchend",wt(this._onRelease,this))}_onRelease(t){let e=this._editingAnchor;e&&(ot.x=e.segment[e.i],ot.y=e.segment[e.i+1]),vt(G,"touchforcechange",ct),xt("onRelease",this,t)}init(){let t,e,s=this.path.getAttribute("d"),i=p(s),n=this.path.getAttribute("transform")||"translate(0,0)",o=!this._rawPath||i.totalPoints!==this._rawPath.totalPoints||i.length!==this._rawPath.length,r={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX};if(o&&this._anchors&&this._anchors.length){for(e=0;e<this._anchors.length;e++)this._anchors[e].element.parentNode.removeChild(this._anchors[e].element),this._anchors[e]._draggable.enabled(!1);this._selectedAnchors.length=0}if(this._rawPath=i,o){if(this._anchors=Mt(i,0,this,r),t=i.length,t>1)for(e=1;e<t;e++)this._anchors=this._anchors.concat(Mt(i,e,this,r))}else for(e=this._anchors.length;--e>-1;)this._anchors[e].update(i);return this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),this._selectionPath.setAttribute("d",s),this._selectionHittest.setAttribute("d",s),this._g.setAttribute("transform",(t=>{let e=ut(t),s=t.ownerSVGElement;for(;(t=t.parentNode)&&t.ownerSVGElement===s;)e.multiply(ut(t));return"matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")"})(this.path.parentNode)||"translate(0,0)"),this._selection.setAttribute("transform",n),this._selectionHittest.setAttribute("transform",n),this._updateAnchors(),this}_saveState(){(t=>{let e,s=[],i=t._selectedAnchors;for(e=0;e<i.length;e++)s[e]=i[e].i;rt.unshift({path:t,d:t.path.getAttribute("d"),transform:t.path.getAttribute("transform")||"",selectedIndexes:s}),rt.length>30&&(rt.length=30)})(this)}_onClickSelectionPath(e){if("hidden"===this._selection.style.visibility)this.select();else if(B||e&&e.altKey){let s,i,n,o,r,a,l={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX},c=this._selection.getScreenCTM().inverse();for(this._draggable&&this._draggable._onRelease(e),c&&(o=e.clientX*c.a+e.clientY*c.c+c.e,r=e.clientX*c.b+e.clientY*c.d+c.f),a=function(e,s,i,n){let o,r,a,h,l={j:0,i:0,t:0},c=1e8;for(r=0;r<e.length;r++)for(h=e[r],o=0;o<h.length;o+=6)a=b(1,s,i,0,1,n||20,h[o],h[o+1],h[o+2],h[o+3],h[o+4],h[o+5],h[o+6],h[o+7]),c>t&&(c=t,l.j=r,l.i=o,l.t=a);return l}(this._rawPath,o,r),function(t,e,s){if(s<=0||s>=1)return 0;let i=t[e],n=t[e+1],o=t[e+2],r=t[e+3],a=t[e+4],l=t[e+5],c=i+(o-i)*s,d=o+(a-o)*s,g=n+(r-n)*s,p=r+(l-r)*s,u=c+(d-c)*s,_=g+(p-g)*s,f=a+(t[e+6]-a)*s,m=l+(t[e+7]-l)*s;d+=(f-d)*s,p+=(m-p)*s,t.splice(e+2,4,h(c),h(g),h(u),h(_),h(u+(d-u)*s),h(_+(p-_)*s),h(d),h(p),h(f),h(m)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0)}(this._rawPath[a.j],a.i,a.t),s=a.i+6,i=0;i<this._anchors.length;i++)this._anchors[i].i>=s&&(this._anchors[i].i+=6);n=new Ht(this,this._rawPath,a.j,s,l),this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),n._draggable._onPress(e),U=n,this._anchors.push(n),this._selectedAnchors.length=0,this._selectedAnchors.push(n),this._updateAnchors(),this.update(),this._saveState()}Pt(),bt(G,"touchforcechange",ct),xt("onPress",this)}_onClickHandle1(){let t=this._editingAnchor,e=t.i,s=t.segment,i=t.isClosedStart?s.length-4:e-2;B&&Math.abs(s[e]-s[i])<5&&Math.abs(s[e+1]-s[i+1])<5&&this._onClickAnchor(t)}_onClickHandle2(){let t=this._editingAnchor,e=t.i,s=t.segment;B&&Math.abs(s[e]-s[e+2])<5&&Math.abs(s[e+1]-s[e+3])<5&&this._onClickAnchor(t)}_onDragEndAnchor(t){U=null,this._saveState()}isSelected(){return this._selectedAnchors.length>0}select(t){if(this._selection.style.visibility="visible",this._editingAnchor=null,this.path._gsSelection=!0,!0===t){let t=this._anchors.length;for(;--t>-1;)this._selectedAnchors[t]=this._anchors[t]}return-1===lt.indexOf(this)&<.push(this),this._updateAnchors(),this}deselect(){return this._selection.style.visibility="hidden",this._selectedAnchors.length=0,this._editingAnchor=null,this.path._gsSelection=!1,lt.splice(lt.indexOf(this),1),this._updateAnchors(),this}_onDragPath(t){let e=this._selectionHittest.getAttribute("transform")||"translate(0,0)";this._selection.setAttribute("transform",e),this.path.setAttribute("transform",e)}_onPressAnchor(t){-1===this._selectedAnchors.indexOf(t)?(W||(this._selectedAnchors.length=0),this._selectedAnchors.push(t)):W&&(this._selectedAnchors.splice(this._selectedAnchors.indexOf(t),1),t._draggable.endDrag()),ot.x=t.segment[t.i],ot.y=t.segment[t.i+1],this._updateAnchors(),xt("onPress",this)}_deleteSelectedAnchors(){let t,e,s,i=this._selectedAnchors,n=i.length;for(;--n>-1;)for(t=i[n],t.element.parentNode.removeChild(t.element),t._draggable.enabled(!1),e=t.i,e?e<t.segment.length-2?t.segment.splice(e-2,6):t.segment.splice(e-4,6):t.segment.splice(e,6),i.splice(n,1),this._anchors.splice(this._anchors.indexOf(t),1),s=0;s<this._anchors.length;s++)this._anchors[s].i>=e&&(this._anchors[s].i-=6);this._updateAnchors(),this.update(),this._saveState(),this.vars.onDeleteAnchor&&this.vars.onDeleteAnchor.call(this.vars.callbackScope||this)}_onClickAnchor(t){let e,s,i,n,o,r,a=t.i,h=t.segment,l=t.isClosedStart?h.length-4:a-2,c=!a||a>=h.length-2;B&&U!==t&&this._editingAnchor?(t.smooth=!t.smooth,c&&!t.isClosedStart&&(t.smooth=!1),t.element.setAttribute("d",t.smooth?this._circleHandle:this._squareHandle),!t.smooth||c&&!t.isClosedStart?t.smooth||c&&!t.isClosedStart||((a||t.isClosedStart)&&(h[l]=h[a],h[l+1]=h[a+1]),a<h.length-2&&(h[a+2]=h[a],h[a+3]=h[a+1]),this._updateAnchors(),this.update(),this._saveState()):(e=Math.atan2(h[a+1]-h[l+1],h[a]-h[l]),s=Math.atan2(h[a+3]-h[a+1],h[a+2]-h[a]),e=(e+s)/2,i=Dt(h,l,a),n=Dt(h,a,a+2),i<.2&&(i=Dt(h,a,l-4)/4,e=s||Math.atan2(h[a+7]-h[l-3],h[a+6]-h[l-4])),n<.2&&(n=Dt(h,a,a+6)/4,s=e||Math.atan2(h[a+7]-h[l-3],h[a+6]-h[l-4])),o=Math.sin(e),r=Math.cos(e),Math.abs(s-e)<Math.PI/2&&(o=-o,r=-r),h[l]=(1e3*(h[a]+r*i)|0)/1e3,h[l+1]=(1e3*(h[a+1]+o*i)|0)/1e3,h[a+2]=(1e3*(h[a]-r*n)|0)/1e3,h[a+3]=(1e3*(h[a+1]-o*n)|0)/1e3,this._updateAnchors(),this.update(),this._saveState())):W||(this._selectedAnchors.length=0,this._selectedAnchors.push(t)),U=null,this._updateAnchors()}_updateAnchors(){let t,e,s,i=1===this._selectedAnchors.length?this._selectedAnchors[0]:null,n=i?i.segment:null;for(this._editingAnchor=i,t=0;t<this._anchors.length;t++)this._anchors[t].element.style.fill=-1!==this._selectedAnchors.indexOf(this._anchors[t])?"#4e7fff":"white";i&&(this._handle1.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle),this._handle2.setAttribute("d",i.smooth?this._circleHandle:this._squareHandle)),t=i?i.i:0,i&&(t||i.isClosedStart)?(e=i.isClosedStart?n[n.length-4]:n[t-2],s=i.isClosedStart?n[n.length-3]:n[t-1],this._handle1.style.visibility=this._line1.style.visibility=B||e!==n[t]||s!==n[t+1]?"visible":"hidden",this._handle1.setAttribute("transform","translate("+e+","+s+")"),this._line1.setAttribute("points",e+","+s+","+n[t]+","+n[t+1])):this._handle1.style.visibility=this._line1.style.visibility="hidden",i&&t<n.length-2?(e=n[t+2],s=n[t+3],this._handle2.style.visibility=this._line2.style.visibility=B||e!==n[t]||s!==n[t+1]?"visible":"hidden",this._handle2.setAttribute("transform","translate("+e+","+s+")"),this._line2.setAttribute("points",n[t]+","+n[t+1]+","+e+","+s)):this._handle2.style.visibility=this._line2.style.visibility="hidden"}_onPressAlt(){let t=this._editingAnchor;t&&((t.i||t.isClosedStart)&&(this._handle1.style.visibility=this._line1.style.visibility="visible"),t.i<t.segment.length-2&&(this._handle2.style.visibility=this._line2.style.visibility="visible"))}_onReleaseAlt(){let t,e,s,i=this._editingAnchor;i&&(t=i.segment,e=i.i,s=i.isClosedStart?t.length-4:e-2,t[e]===t[s]&&t[e+1]===t[s+1]&&(this._handle1.style.visibility=this._line1.style.visibility="hidden"),t[e]===t[e+2]&&t[e+1]===t[e+3]&&(this._handle2.style.visibility=this._line2.style.visibility="hidden"))}_onPressHandle1(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Dt(this._editingAnchor.segment,this._editingAnchor.i,this._editingAnchor.i+2)),xt("onPress",this)}_onPressHandle2(){this._editingAnchor.smooth&&(this._oppositeHandleLength=Dt(this._editingAnchor.segment,this._editingAnchor.isClosedStart?this._editingAnchor.segment.length-4:this._editingAnchor.i-2,this._editingAnchor.i)),xt("onPress",this)}_onReleaseHandle(t){this._onRelease(t),this._saveState()}_onDragHandle1(){let t,e=this._editingAnchor,s=e.segment,i=e.i,n=e.isClosedStart?s.length-4:i-2,o=this._handle1._draggable.x,r=this._handle1._draggable.y;s[n]=o=(1e3*o|0)/1e3,s[n+1]=r=(1e3*r|0)/1e3,e.smooth&&(B?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(s[i+1]-r,s[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),s[i+2]=(1e3*(s[i]+o)|0)/1e3,s[i+3]=(1e3*(s[i+1]+r)|0)/1e3)),this.update()}_onDragHandle2(){let t,e=this._editingAnchor,s=e.segment,i=e.i,n=e.isClosedStart?s.length-4:i-2,o=this._handle2._draggable.x,r=this._handle2._draggable.y;s[i+2]=o=(1e3*o|0)/1e3,s[i+3]=r=(1e3*r|0)/1e3,e.smooth&&(B?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(s[i+1]-r,s[i]-o),o=this._oppositeHandleLength*Math.cos(t),r=this._oppositeHandleLength*Math.sin(t),s[n]=(1e3*(s[i]+o)|0)/1e3,s[n+1]=(1e3*(s[i+1]+r)|0)/1e3)),this.update()}_onDragAnchor(t,e,s){let i,n,o,r,a,h=this._selectedAnchors,l=h.length,c=1e3;for(n=0;n<l;n++)r=h[n],i=r.i,o=r.segment,i?(o[i-2]=((o[i-2]+e)*c|0)/c,o[i-1]=((o[i-1]+s)*c|0)/c):r.isClosedStart&&(a=o.length-2,o[a]=_t(o[a]+e),o[a+1]=_t(o[a+1]+s),o[a-2]=_t(o[a-2]+e),o[a-1]=_t(o[a-1]+s)),o[i]=((o[i]+e)*c|0)/c,o[i+1]=((o[i+1]+s)*c|0)/c,i<o.length-2&&(o[i+2]=((o[i+2]+e)*c|0)/c,o[i+3]=((o[i+3]+s)*c|0)/c),r!==t&&r.element.setAttribute("transform","translate("+o[i]+","+o[i+1]+")");this.update()}enabled(t){if(!arguments.length)return this._enabled;let e=this._anchors.length;for(;--e>-1;)this._anchors[e]._draggable.enabled(t);return this._enabled=t,this._handle1._draggable.enabled(t),this._handle2._draggable.enabled(t),this._draggable&&this._draggable.enabled(t),t?this._selection.parentNode||(this.path.ownerSVGElement.appendChild(this._selectionHittest),this.path.ownerSVGElement.appendChild(this._selection),this.init(),this._saveState()):(this.deselect(),this.path.ownerSVGElement.removeChild(this._selectionHittest),this.path.ownerSVGElement.removeChild(this._selection)),this._updateAnchors(),this.update()}update(t){let e,s,i,n,o,r="",a=this._editingAnchor;if(t&&this.init(),a&&(e=a.i,s=a.segment,(e||a.isClosedStart)&&(o=a.isClosedStart?s.length-4:e-2,i=s[o],n=s[o+1],this._handle1.setAttribute("transform","translate("+i+","+n+")"),this._line1.setAttribute("points",i+","+n+","+s[e]+","+s[e+1])),e<s.length-2&&(i=s[e+2],n=s[e+3],this._handle2.setAttribute("transform","translate("+i+","+n+")"),this._line2.setAttribute("points",s[e]+","+s[e+1]+","+i+","+n))),t)r=this.path.getAttribute("d");else{for(e=0;e<this._rawPath.length;e++)s=this._rawPath[e],s.length>7&&(r+="M"+s[0]+","+s[1]+"C"+s.slice(2).join(","));this.path.setAttribute("d",r),this._selectionPath.setAttribute("d",r),this._selectionHittest.setAttribute("d",r)}return this.vars.onUpdate&&this._enabled&&xt("onUpdate",this,r),this}getRawPath(t,e,s){if(t){let t=ut(this.path);return d(c(this._rawPath),1,0,0,1,t.e+(e||0),t.f+(s||0))}return this._rawPath}getString(t,e,s){if(t){let t=ut(this.path);return function(t){"number"==typeof t[0]&&(t=[t]);let e,s,i,n,o="",r=t.length;for(s=0;s<r;s++){for(n=t[s],o+="M"+h(n[0])+","+h(n[1])+" C",e=n.length,i=2;i<e;i++)o+=h(n[i++])+","+h(n[i++])+" "+h(n[i++])+","+h(n[i++])+" "+h(n[i++])+","+h(n[i])+" ";n.closed&&(o+="z")}return o}(d(c(this._rawPath),1,0,0,1,t.e+(e||0),t.f+(s||0)))}return this.path.getAttribute("d")}getNormalizedSVG(t,e,s,i){let n,o,r,a,h,l,c=this._rawPath[0],d=-1*c[0],g=0===e?0:-(e||c[1]),p=c.length,_=1/(c[p-2]+d),f=-t||c[p-1]+g;for(ht.length=0,f=f?1/f:-_,_*=1e3,f*=1e3,o=0;o<p;o+=2)ht[o]=((c[o]+d)*_|0)/1e3,ht[o+1]=((c[o+1]+g)*f|0)/1e3;if(i){for(n=[],p=ht.length,o=2;o<p;o+=6)r=ht[o-2],a=ht[o-1],h=ht[o+4],l=ht[o+5],n.push(r,a,h,l),u(r,a,ht[o],ht[o+1],ht[o+2],ht[o+3],h,l,.001,n,n.length-2);for(r=n[0],p=n.length,o=2;o<p;o+=2){if(h=n[o],h<r||h>1||h<0){i();break}r=h}}return s&&8===p&&0===ht[0]&&0===ht[1]&&1===ht[p-2]&&1===ht[p-1]?ht.slice(2,6).join(","):(ht[2]="C"+ht[2],"M"+ht.join(","))}}Rt.simplifyPoints=m,Rt.pointsToSegment=_,Rt.simplifySVG=(t,e)=>{let s,i,n,o,r,a,h,l,c,d,g,f;if(d=(e=e||{}).tolerance||1,c=e.precision||1/d,f=(void 0===e.cornerThreshold?18:+e.cornerThreshold)*tt,"string"!=typeof t&&(s=t,t=s.getAttribute("d")),"#"!==t.charAt(0)&&"."!==t.charAt(0)||(s=Y.querySelector(t),s&&(t=s.getAttribute("d"))),i=!1!==e.curved||/[achqstvz]/gi.test(t)?p(t)[0]:t.match(J),!1!==e.curved){for(l=i,i=[],g=l.length,n=2;n<g;n+=6)o=+l[n-2],a=+l[n-1],r=+l[n+4],h=+l[n+5],i.push(_t(o),_t(a),_t(r),_t(h)),u(o,a,+l[n],+l[n+1],+l[n+2],+l[n+3],r,h,1/(2e5*c),i,i.length-2);i=_(m(i,d),e.curviness),i[2]="C"+i[2]}else i=m(i,d);return t="M"+i.join(","),s&&s.setAttribute("d",t),t},Rt.create=(t,e)=>new Rt(t,e),Rt.editingAxis=ot,Rt.getSnapFunction=t=>{let e=t.radius||2,s=1e20,i=t.x||0===t.x?t.x:t.width?0:-s,n=t.y||0===t.y?t.y:t.height?0:-s,o=i+(t.width||s*s),r=n+(t.height||s*s),a=!1!==t.containX,h=!1!==t.containY,l=t.axis,c=t.gridSize;return e*=e,t=>{let s,d,g,p,u=t.x,_=t.y;a&&u<i||(g=u-i)*g<e?u=i:(a&&u>o||(g=o-u)*g<e)&&(u=o),h&&_<n||(p=_-n)*p<e?_=n:(h&&_>r||(p=r-_)*p<e)&&(_=r),l&&(g=u-l.x,p=_-l.y,g*g<e&&(u=l.x),p*p<e&&(_=l.y)),c&&(s=i+Math.round((u-i)/c)*c,g=s-u,d=n+Math.round((_-n)/c)*c,p=d-_,g*g+p*p<e&&(u=s,_=d)),t.x=u,t.y=_}},Rt.version="3.10.3";let Nt,Lt,Xt,It,Ot,qt,Yt,Vt,Gt,jt=function(){return String.fromCharCode.apply(null,arguments)},zt=jt(103,114,101,101,110,115,111,99,107,46,99,111,109),Bt=(function(t){var e="undefined"!=typeof window,s=0===(e?window.location.href:"").indexOf(jt(102,105,108,101,58,47,47))||-1!==t.indexOf(jt(108,111,99,97,108,104,111,115,116))||-1!==t.indexOf(jt(49,50,55,46,48,32,48,46,49)),i=[zt,jt(99,111,100,101,112,101,110,46,105,111),jt(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),jt(99,111,100,101,112,101,110,46,100,101,118),jt(99,111,100,101,112,101,110,46,97,112,112),jt(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),jt(112,101,110,115,46,99,108,111,117,100),jt(99,115,115,45,116,114,105,99,107,115,46,99,111,109),jt(99,100,112,110,46,105,111),jt(112,101,110,115,46,105,111),jt(103,97,110,110,111,110,46,116,118),jt(99,111,100,101,99,97,110,121,111,110,46,110,101,116),jt(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),jt(99,101,114,101,98,114,97,120,46,99,111,46,117,107),jt(116,121,109,112,97,110,117,115,46,110,101,116),jt(116,119,101,101,110,109,97,120,46,99,111,109),jt(116,119,101,101,110,108,105,116,101,46,99,111,109),jt(112,108,110,107,114,46,99,111),jt(104,111,116,106,97,114,46,99,111,109),jt(119,101,98,112,97,99,107,98,105,110,46,99,111,109),jt(97,114,99,104,105,118,101,46,111,114,103),jt(99,111,100,101,115,97,110,100,98,111,120,46,105,111),jt(99,115,98,46,97,112,112),jt(115,116,97,99,107,98,108,105,116,122,46,99,111,109),jt(115,116,97,99,107,98,108,105,116,122,46,105,111),jt(99,111,100,105,101,114,46,105,111),jt(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),jt(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),jt(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),jt(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){e&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",n):(document.removeEventListener("readystatechange",n),e&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(jt(37,99,87,97,114,110,105,110,103),jt(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(jt(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"MotionPathHelper"+jt(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(jt(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),jt(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},o=i.length;for(setTimeout(n,50);--o>-1;)if(-1!==t.indexOf(i[o]))return!0;s||setTimeout((function(){e&&(window.location.href=jt(104,116,116,112,115,58,47,47)+zt+jt(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=MotionPathHelper&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),/(^[#\.][a-z]|[a-y][a-z])/i),Wt=t=>"string"==typeof t,Ft=(t,e)=>{let s=Xt.createElementNS?Xt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Xt.createElement(t);return s.style?s:Xt.createElement(t)},Ut=(t,e,s)=>Wt(t)&&Bt.test(t)?Xt.querySelector(t):Array.isArray(t)?Vt(Yt([{x:Nt.getProperty(e,"x"),y:Nt.getProperty(e,"y")},...t],s)):Wt(t)||t&&"path"===(t.tagName+"").toLowerCase()?t:0,Zt={matrix:{a:1,b:0,c:0,d:1,e:0,f:0}},$t=(t,e)=>{let s="Please gsap.registerPlugin(MotionPathPlugin)";Lt=window,Nt=Nt||t||Lt.gsap||console.warn(s),Xt=document,Ot=Xt.body,It=Xt.documentElement,qt=Nt&&Nt.plugins.motionPath,qt?(Gt=Ft("textarea"),Gt.style.display="none",Ot.appendChild(Gt),Yt=qt.arrayToRawPath,Vt=qt.rawPathToString):!0===e&&console.warn(s)};class Kt{constructor(t,e={}){qt||$t(e.gsap,1);let s,i,n,o,r,a,h,l,c,d,g,p,u,_=Ft("div"),f=this,m={x:0,y:0};t instanceof Nt.core.Tween?(l=t,s=l.targets()[0]):(s=Nt.utils.toArray(t)[0],l=(t=>{let e=Nt.getTweensOf(t),s=0;for(;s<e.length;s++){if(e[s].vars.motionPath)return e[s];e[s].timeline&&e.push(...e[s].timeline.getChildren())}})(s)),i=Ut(e.path,s,e),this.offset=m,a=(t=>{let e=t.getBoundingClientRect(),s=It.clientTop-(Lt.pageYOffset||It.scrollTop||Ot.scrollTop||0),i=It.clientLeft-(Lt.pageXOffset||It.scrollLeft||Ot.scrollLeft||0);return{left:e.left+i,top:e.top+s,right:e.right+i,bottom:e.bottom+s}})(s),o=parseFloat(Nt.getProperty(s,"x","px")),r=parseFloat(Nt.getProperty(s,"y","px")),n=s.getCTM&&"svg"!==s.tagName.toLowerCase(),l&&!i&&(i=Ut(l.vars.motionPath.path||l.vars.motionPath,s,l.vars.motionPath)),_.setAttribute("class","copy-motion-path"),_.style.cssText="border-radius:8px; background-color:rgba(85, 85, 85, 0.7); color:#fff; cursor:pointer; padding:6px 12px; font-family:Signika Negative, Arial, sans-serif; position:fixed; left:50%; transform:translate(-50%, 0); font-size:19px; bottom:10px",_.innerText="COPY MOTION PATH",_._gsHelper=f,(Nt.utils.toArray(e.container)[0]||Ot).appendChild(_),((t,e,s)=>{t.addEventListener("click",i=>{if(i.target._gsHelper){let n=e(i.target);if(Gt.value=n,n&&Gt.select){console.log(n),Gt.style.display="block",Gt.select();try{Xt.execCommand("copy"),Gt.blur(),s&&s(t)}catch(t){console.warn("Copy didn't work; this browser doesn't permit that.")}Gt.style.display="none"}}})})(_,()=>f.getString(),()=>Nt.fromTo(_,{backgroundColor:"white"},{duration:.5,backgroundColor:"rgba(85, 85, 85, 0.6)"})),h=i&&i.ownerSVGElement,h||(c=n&&s.ownerSVGElement&&s.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg",n?(h=s.ownerSVGElement,d=s.getBBox(),g=(t=>(t.transform.baseVal.consolidate()||Zt).matrix)(s),o=g.e,r=g.f,m.x=d.x,m.y=d.y):(h=Ft("svg",c),Ot.appendChild(h),h.setAttribute("viewBox","0 0 100 100"),h.setAttribute("class","motion-path-helper"),h.style.cssText="overflow:visible; background-color: transparent; position:absolute; z-index:5000; width:100px; height:100px; top:"+(a.top-r)+"px; left:"+(a.left-o)+"px;"),d=Wt(i)&&!Bt.test(i)?i:((t,e)=>{let s,i=[0,31,8,58,24,75,40,90,69,100,100,100];for(s=0;s<i.length;s+=2)i[s]+=t,i[s+1]+=e;return"M"+t+","+e+"C"+i.join(",")})(o,r),i=Ft("path",c),i.setAttribute("d",d),i.setAttribute("vector-effect","non-scaling-stroke"),i.style.cssText="fill:transparent; stroke-width:"+(e.pathWidth||3)+"; stroke:"+(e.pathColor||"#555")+"; opacity:"+(e.pathOpacity||.6),h.appendChild(i),(m.x||m.y)&&Nt.set(i,{x:m.x,y:m.y})),"selected"in e||(e.selected=!0),"anchorSnap"in e||(e.anchorSnap=t=>{t.x*t.x+t.y*t.y<16&&(t.x=t.y=0)}),u=l&&"nested"===l.parent.data?l.parent.parent:l,e.onPress=()=>{u.pause(0)},p=()=>{l.invalidate(),u.restart()},e.onRelease=e.onDeleteAnchor=p,this.editor=Rt.create(i,e),e.center&&Nt.set(s,{transformOrigin:"50% 50%",xPercent:-50,yPercent:-50}),l?(l.vars.motionPath.path?l.vars.motionPath.path=i:l.vars.motionPath={path:i},u.parent!==Nt.globalTimeline&&Nt.globalTimeline.add(u,(t=>{let e=t.totalTime();for(;t;)e=t.startTime()+e/(t.timeScale()||1),t=t.parent;return e})(u)-u.delay()),u.repeat(-1).repeatDelay(1)):l=u=Nt.to(s,{motionPath:{path:i,start:e.start||0,end:"end"in e?e.end:1,autoRotate:"autoRotate"in e&&e.autoRotate,align:i,alignOrigin:e.alignOrigin},duration:e.duration||5,ease:e.ease||"power1.inOut",repeat:-1,repeatDelay:1,paused:!e.path}),this.animation=l}getString(){return this.editor.getString(!0,-this.offset.x,-this.offset.y)}}Kt.register=$t,Kt.create=(t,e)=>new Kt(t,e),Kt.editPath=(t,e)=>Rt.create(t,e),Kt.version="3.10.3";export default Kt;export{Kt as MotionPathHelper}; |
/*! | ||
* MotionPathPlugin 3.10.2 | ||
* MotionPathPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
let t=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,e=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,n=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,l=Math.PI/180,o=180/Math.PI,s=Math.sin,i=Math.cos,a=Math.abs,h=Math.sqrt,g=Math.atan2,p=t=>"string"==typeof t,f=t=>"number"==typeof t,u={},c={},d=t=>Math.round((t+1e8)%1*1e5)/1e5||(t<0?0:1),m=t=>Math.round(1e5*t)/1e5||0,y=t=>Math.round(1e10*t)/1e10||0,x=(t,e,n,r)=>{let l=t[e],o=1===r?6:S(l,n,r);if(o&&o+n+2<l.length)return t.splice(e,0,l.slice(0,n+o+2)),l.splice(0,n+o),1},w=(t,e,n)=>{let r=t.length,l=~~(n*r);if(t[l]>e){for(;--l&&t[l]>e;);l<0&&(l=0)}else for(;t[++l]<e&&l<r;);return l<r?l:r-1},b=(t,e)=>(e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e),L=(t,e)=>{let n=t.length,r=t[n-1]||[],l=r.length;n&&e[0]===r[l-2]&&e[1]===r[l-1]&&(e=r.concat(e.slice(2)),n--),t[n]=e};function P(t){let e,n=(t=p(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),e=n._gsPath[t],e&&!e._dirty?e:n._gsPath[t]=I(t)):t?p(t)?I(t):f(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function v(t){let e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}let N={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function M(t,n){let r,l,o,s,i,a,h,g,p,f,u,c,d,m,y,x,w,b,L,P,v,M,C=t.tagName.toLowerCase(),T=.552284749831;return"path"!==C&&t.getBBox?(a=((t,e)=>{let n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),l=[].slice.call(t.attributes),o=l.length;for(e=","+e+",";--o>-1;)n=l[o].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,l[o].nodeValue);return r})(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),M=((t,e)=>{let n=e?e.split(","):[],r={},l=n.length;for(;--l>-1;)r[n[l]]=+t.getAttribute(n[l])||0;return r})(t,N[C]),"rect"===C?(s=M.rx,i=M.ry||s,l=M.x,o=M.y,f=M.width-2*s,u=M.height-2*i,s||i?(c=l+s*(1-T),d=l+s,m=d+f,y=m+s*T,x=m+s,w=o+i*(1-T),b=o+i,L=b+u,P=L+i*T,v=L+i,r="M"+x+","+b+" V"+L+" C"+[x,P,y,v,m,v,m-(m-d)/3,v,d+(m-d)/3,v,d,v,c,v,l,P,l,L,l,L-(L-b)/3,l,b+(L-b)/3,l,b,l,w,c,o,d,o,d+(m-d)/3,o,m-(m-d)/3,o,m,o,y,o,x,w,x,b].join(",")+"z"):r="M"+(l+f)+","+o+" v"+u+" h"+-f+" v"+-u+" h"+f+"z"):"circle"===C||"ellipse"===C?("circle"===C?(s=i=M.r,g=s*T):(s=M.rx,i=M.ry,g=i*T),l=M.cx,o=M.cy,h=s*T,r="M"+(l+s)+","+o+" C"+[l+s,o+g,l+h,o+i,l,o+i,l-h,o+i,l-s,o+g,l-s,o,l-s,o-g,l-h,o-i,l,o-i,l+h,o-i,l+s,o-g,l+s,o].join(",")+"z"):"line"===C?r="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==C&&"polygon"!==C||(p=(t.getAttribute("points")+"").match(e)||[],l=p.shift(),o=p.shift(),r="M"+l+","+o+" L"+p.join(","),"polygon"===C&&(r+=","+l+","+o+"z")),a.setAttribute("d",z(a._gsRawPath=I(r))),n&&t.parentNode&&(t.parentNode.insertBefore(a,t),t.parentNode.removeChild(t)),a):t}function C(t,e,n){let r,l=t[e],s=t[e+2],i=t[e+4];return l+=(s-l)*n,s+=(i-s)*n,l+=(s-l)*n,r=s+(i+(t[e+6]-i)*n-s)*n-l,l=t[e+1],s=t[e+3],i=t[e+5],l+=(s-l)*n,s+=(i-s)*n,l+=(s-l)*n,m(g(s+(i+(t[e+7]-i)*n-s)*n-l,r)*o)}function T(t,e,n){n=void 0===n?1:y(n)||0,e=y(e)||0;let r=Math.max(0,~~(a(n-e)-1e-8)),l=function(t){let e=[],n=0;for(;n<t.length;n++)e[n]=b(t[n],t[n].slice(0));return b(t,e)}(t);if(e>n&&(e=1-e,n=1-n,((t,e)=>{let n=t.length;for(e||t.reverse();n--;)t[n].reversed||v(t[n])})(l),l.totalLength=0),e<0||n<0){let t=Math.abs(~~Math.min(e,n))+1;e+=t,n+=t}l.totalLength||B(l);let o,s,i,h,g,p,f,d,m=n>1,w=O(l,e,u,!0),P=O(l,n,c),N=P.segment,M=w.segment,T=P.segIndex,A=w.segIndex,_=P.i,R=w.i,E=A===T,I=_===R&&E;if(m||r){for(o=T<A||E&&_<R||I&&P.t<w.t,x(l,A,R,w.t)&&(A++,o||(T++,I?(P.t=(P.t-w.t)/(1-w.t),_=0):E&&(_-=R))),Math.abs(1-(n-e))<1e-5?T=A-1:!P.t&&T?T--:x(l,T,_,P.t)&&o&&A++,1===w.t&&(A=(A+1)%l.length),g=[],p=l.length,f=1+p*r,d=A,f+=(p-A+T)%p,h=0;h<f;h++)L(g,l[d++%p]);l=g}else if(i=1===P.t?6:S(N,_,P.t),e!==n)for(s=S(M,R,I?w.t/P.t:w.t),E&&(i+=s),N.splice(_+i+2),(s||R)&&M.splice(0,R+s),h=l.length;h--;)(h<A||h>T)&&l.splice(h,1);else N.angle=C(N,_+i,0),_+=i,w=N[_],P=N[_+1],N.length=N.totalLength=0,N.totalPoints=l.totalPoints=8,N.push(w,P,w,P,w,P,w,P);return l.totalLength=0,l}function A(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);let r,l,o,s,i,g,p,f,u,c,d,m,y,x,w,b,L,P=~~t.resolution||12,v=1/P,N=n?e+6*n+1:t.length,M=t[e],C=t[e+1],T=e?e/6*P:0,A=t.samples,B=t.lookup,S=(e?t.minLength:1e8)||1e8,O=A[T+n*P-1],_=e?A[T-1]:0;for(A.length=B.length=0,l=e+2;l<N;l+=6){if(o=t[l+4]-M,s=t[l+2]-M,i=t[l]-M,f=t[l+5]-C,u=t[l+3]-C,c=t[l+1]-C,g=p=d=m=0,a(o)<.01&&a(f)<.01&&a(i)+a(c)<.01)t.length>8&&(t.splice(l,6),l-=6,N-=6);else for(r=1;r<=P;r++)x=v*r,y=1-x,g=p-(p=(x*x*o+3*y*(x*s+y*i))*x),d=m-(m=(x*x*f+3*y*(x*u+y*c))*x),b=h(d*d+g*g),b<S&&(S=b),_+=b,A[T++]=_;M+=o,C+=f}if(O)for(O-=_;T<A.length;T++)A[T]+=O;if(A.length&&S){if(t.totalLength=L=A[A.length-1]||0,t.minLength=S,L/S<9999)for(b=w=0,r=0;r<L;r+=S)B[b++]=A[w]<r?++w:w}else t.totalLength=A[0]=0;return e?_-A[e/2-1]:_}function B(t,e){let n,r,l;for(l=n=r=0;l<t.length;l++)t[l].resolution=~~e||12,r+=t[l].length,n+=A(t[l]);return t.totalPoints=r,t.totalLength=n,t}function S(t,e,n){if(n<=0||n>=1)return 0;let r=t[e],l=t[e+1],o=t[e+2],s=t[e+3],i=t[e+4],a=t[e+5],h=r+(o-r)*n,g=o+(i-o)*n,p=l+(s-l)*n,f=s+(a-s)*n,u=h+(g-h)*n,c=p+(f-p)*n,d=i+(t[e+6]-i)*n,y=a+(t[e+7]-a)*n;return g+=(d-g)*n,f+=(y-f)*n,t.splice(e+2,4,m(h),m(p),m(u),m(c),m(u+(g-u)*n),m(c+(f-c)*n),m(g),m(f),m(d),m(y)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function O(t,e,n,r){n=n||{},t.totalLength||B(t),(e<0||e>1)&&(e=d(e));let l,o,s,i,a,h,g,p=0,f=t[0];if(e)if(1===e)g=1,p=t.length-1,f=t[p],h=f.length-8;else{if(t.length>1){for(s=t.totalLength*e,a=h=0;(a+=t[h++].totalLength)<s;)p=h;f=t[p],i=a-f.totalLength,e=(s-i)/(a-i)||0}l=f.samples,o=f.resolution,s=f.totalLength*e,h=f.lookup.length?f.lookup[~~(s/f.minLength)]||0:w(l,s,e),i=h?l[h-1]:0,a=l[h],a<s&&(i=a,a=l[++h]),g=1/o*((s-i)/(a-i)+h%o),h=6*~~(h/o),r&&1===g&&(h+6<f.length?(h+=6,g=0):p+1<t.length&&(h=g=0,f=t[++p]))}else g=h=p=0,f=t[0];return n.t=g,n.i=h,n.path=t,n.segment=f,n.segIndex=p,n}function _(t,e,n,r){let l,o,s,i,a,h,g,p,f,u=t[0],c=r||{};if((e<0||e>1)&&(e=d(e)),t.length>1){for(s=t.totalLength*e,a=h=0;(a+=t[h++].totalLength)<s;)u=t[h];i=a-u.totalLength,e=(s-i)/(a-i)||0}return l=u.samples,o=u.resolution,s=u.totalLength*e,h=u.lookup.length?u.lookup[e<1?~~(s/u.minLength):u.lookup.length-1]||0:w(l,s,e),i=h?l[h-1]:0,a=l[h],a<s&&(i=a,a=l[++h]),g=1/o*((s-i)/(a-i)+h%o)||0,f=1-g,h=6*~~(h/o),p=u[h],c.x=m((g*g*(u[h+6]-p)+3*f*(g*(u[h+4]-p)+f*(u[h+2]-p)))*g+p),c.y=m((g*g*(u[h+7]-(p=u[h+1]))+3*f*(g*(u[h+5]-p)+f*(u[h+3]-p)))*g+p),n&&(c.angle=u.totalLength?C(u,h,g>=1?1-1e-9:g||1e-9):u.angle||0),c}function R(t,e,n,r,l,o,s){let i,a,h,g,p,f=t.length;for(;--f>-1;)for(i=t[f],a=i.length,h=0;h<a;h+=2)g=i[h],p=i[h+1],i[h]=g*e+p*r+o,i[h+1]=g*n+p*l+s;return t._dirty=1,t}function E(t,e,n,r,o,g,p,f,u){if(t===f&&e===u)return;n=a(n),r=a(r);let c=o%360*l,d=i(c),m=s(c),y=Math.PI,x=2*y,w=(t-f)/2,b=(e-u)/2,L=d*w+m*b,P=-m*w+d*b,v=L*L,N=P*P,M=v/(n*n)+N/(r*r);M>1&&(n=h(M)*n,r=h(M)*r);let C=n*n,T=r*r,A=(C*T-C*N-T*v)/(C*N+T*v);A<0&&(A=0);let B=(g===p?-1:1)*h(A),S=B*(n*P/r),O=B*(-r*L/n),_=(t+f)/2+(d*S-m*O),R=(e+u)/2+(m*S+d*O),E=(L-S)/n,I=(P-O)/r,k=(-L-S)/n,V=(-P-O)/r,z=E*E+I*I,X=(I<0?-1:1)*Math.acos(E/h(z)),Y=(E*V-I*k<0?-1:1)*Math.acos((E*k+I*V)/h(z*(k*k+V*V)));isNaN(Y)&&(Y=y),!p&&Y>0?Y-=x:p&&Y<0&&(Y+=x),X%=x,Y%=x;let G,j=Math.ceil(a(Y)/(x/4)),q=[],F=Y/j,Z=4/3*s(F/2)/(1+i(F/2)),H=d*n,U=m*n,D=m*-r,Q=d*r;for(G=0;G<j;G++)L=i(o=X+G*F),P=s(o),E=i(o+=F),I=s(o),q.push(L-Z*P,P+Z*L,E+Z*I,I-Z*E,E,I);for(G=0;G<q.length;G+=2)L=q[G],P=q[G+1],q[G]=L*H+P*D+_,q[G+1]=L*U+P*Q+R;return q[G-2]=f,q[G-1]=u,q}function I(e){let r,l,o,s,i,h,g,p,f,u,c,d,m,y,x,w=(e+"").replace(n,t=>{let e=+t;return e<1e-4&&e>-1e-4?0:e}).match(t)||[],b=[],L=0,P=0,v=w.length,N=0,M="ERROR: malformed path: "+e,C=function(t,e,n,r){u=(n-t)/3,c=(r-e)/3,g.push(t+u,e+c,n-u,r-c,n,r)};if(!e||!isNaN(w[0])||isNaN(w[1]))return console.log(M),b;for(r=0;r<v;r++)if(m=i,isNaN(w[r])?(i=w[r].toUpperCase(),h=i!==w[r]):r--,o=+w[r+1],s=+w[r+2],h&&(o+=L,s+=P),r||(p=o,f=s),"M"===i)g&&(g.length<8?b.length-=1:N+=g.length),L=p=o,P=f=s,g=[o,s],b.push(g),r+=2,i="L";else if("C"===i)g||(g=[0,0]),h||(L=P=0),g.push(o,s,L+1*w[r+3],P+1*w[r+4],L+=1*w[r+5],P+=1*w[r+6]),r+=6;else if("S"===i)u=L,c=P,"C"!==m&&"S"!==m||(u+=L-g[g.length-4],c+=P-g[g.length-3]),h||(L=P=0),g.push(u,c,o,s,L+=1*w[r+3],P+=1*w[r+4]),r+=4;else if("Q"===i)u=L+2/3*(o-L),c=P+2/3*(s-P),h||(L=P=0),L+=1*w[r+3],P+=1*w[r+4],g.push(u,c,L+2/3*(o-L),P+2/3*(s-P),L,P),r+=4;else if("T"===i)u=L-g[g.length-4],c=P-g[g.length-3],g.push(L+u,P+c,o+2/3*(L+1.5*u-o),s+2/3*(P+1.5*c-s),L=o,P=s),r+=2;else if("H"===i)C(L,P,L=o,P),r+=1;else if("V"===i)C(L,P,L,P=o+(h?P-L:0)),r+=1;else if("L"===i||"Z"===i)"Z"===i&&(o=p,s=f,g.closed=!0),("L"===i||a(L-o)>.5||a(P-s)>.5)&&(C(L,P,o,s),"L"===i&&(r+=2)),L=o,P=s;else if("A"===i){if(y=w[r+4],x=w[r+5],u=w[r+6],c=w[r+7],l=7,y.length>1&&(y.length<3?(c=u,u=x,l--):(c=x,u=y.substr(2),l-=2),x=y.charAt(1),y=y.charAt(0)),d=E(L,P,+w[r+1],+w[r+2],+w[r+3],+y,+x,(h?L:0)+1*u,(h?P:0)+1*c),r+=l,d)for(l=0;l<d.length;l++)g.push(d[l]);L=g[g.length-2],P=g[g.length-1]}else console.log(M);return r=g.length,r<6?(b.pop(),r=0):g[0]===g[r-2]&&g[1]===g[r-1]&&(g.closed=!0),b.totalPoints=N+r,b}function k(t,e=1){let n=t[0],r=0,l=[n,r],o=2;for(;o<t.length;o+=2)l.push(n,r,t[o],r=(t[o]-n)*e/2,n=t[o],-r);return l}function V(t,e){a(t[0]-t[2])<1e-4&&a(t[1]-t[3])<1e-4&&(t=t.slice(2));let n,r,l,o,s,i,g,p,f,u,c,d,y,x,w,b=t.length-2,L=+t[0],P=+t[1],v=+t[2],N=+t[3],M=[L,P,L,P],C=v-L,T=N-P,A=Math.abs(t[b]-L)<.001&&Math.abs(t[b+1]-P)<.001;for(A&&(t.push(v,N),v=L,N=P,L=t[b-2],P=t[b-1],t.unshift(L,P),b+=4),e=e||0===e?+e:1,l=2;l<b;l+=2)n=L,r=P,L=v,P=N,v=+t[l+2],N=+t[l+3],L===v&&P===N||(o=C,s=T,C=v-L,T=N-P,i=h(o*o+s*s),g=h(C*C+T*T),p=h((C/g+o/i)**2+(T/g+s/i)**2),f=(i+g)*e*.25/p,u=L-(L-n)*(i?f/i:0),c=L+(v-L)*(g?f/g:0),d=L-(u+((c-u)*(3*i/(i+g)+.5)/4||0)),y=P-(P-r)*(i?f/i:0),x=P+(N-P)*(g?f/g:0),w=P-(y+((x-y)*(3*i/(i+g)+.5)/4||0)),L===n&&P===r||M.push(m(u+d),m(y+w),m(L),m(P),m(c+d),m(x+w)));return L!==v||P!==N||M.length<4?M.push(m(v),m(N),m(v),m(N)):M.length-=2,2===M.length?M.push(L,P,L,P,L,P):A&&(M.splice(0,6),M.length=M.length-6),M}function z(t){f(t[0])&&(t=[t]);let e,n,r,l,o="",s=t.length;for(n=0;n<s;n++){for(l=t[n],o+="M"+m(l[0])+","+m(l[1])+" C",e=l.length,r=2;r<e;r++)o+=m(l[r++])+","+m(l[r++])+" "+m(l[r++])+","+m(l[r++])+" "+m(l[r++])+","+m(l[r])+" ";l.closed&&(o+="z")}return o}let X,Y,G,j,q,F,Z,H,U,D="transform",Q=D+"Origin",W=t=>{let e=t.ownerDocument||t;!(D in t.style)&&"msTransform"in t.style&&(D="msTransform",Q=D+"Origin");for(;e.parentNode&&(e=e.parentNode););if(Y=window,Z=new lt,e){X=e,G=e.documentElement,j=e.body,H=X.createElementNS("http://www.w3.org/2000/svg","g"),H.style.transform="none";let t=e.createElement("div"),n=e.createElement("div");j.appendChild(t),t.appendChild(n),t.style.position="static",t.style[D]="translate3d(0,0,1px)",U=n.offsetParent!==t,j.removeChild(t)}return e},$=[],J=[],K=t=>t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null),tt=t=>"fixed"===Y.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?tt(t):void 0),et=(t,e)=>{if(t.parentNode&&(X||W(t))){let n=K(t),r=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l=n?e?"rect":"g":"div",o=2!==e?0:100,s=3===e?100:0,i="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",a=X.createElementNS?X.createElementNS(r.replace(/^https/,"http"),l):X.createElement(l);return e&&(n?(F||(F=et(t)),a.setAttribute("width",.01),a.setAttribute("height",.01),a.setAttribute("transform","translate("+o+","+s+")"),F.appendChild(a)):(q||(q=et(t),q.style.cssText=i),a.style.cssText=i+"width:0.1px;height:0.1px;top:"+s+"px;left:"+o+"px",q.appendChild(a))),a}throw"Need document and parent."},nt=(t,e)=>{let n,r,l,o,s,i,a=K(t),h=t===a,g=a?$:J,p=t.parentNode;if(t===Y)return t;if(g.length||g.push(et(t,1),et(t,2),et(t,3)),n=a?F:q,a)h?(l=(t=>{let e,n=t.getCTM();return n||(e=t.style[D],t.style[D]="none",t.appendChild(H),n=H.getCTM(),t.removeChild(H),e?t.style[D]=e:t.style.removeProperty(D.replace(/([A-Z])/g,"-$1").toLowerCase())),n||Z.clone()})(t),o=-l.e/l.a,s=-l.f/l.d,r=Z):(l=t.getBBox(),r=t.transform?t.transform.baseVal:{},r=r.numberOfItems?r.numberOfItems>1?(t=>{let e=new lt,n=0;for(;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e})(r):r.getItem(0).matrix:Z,o=r.a*l.x+r.c*l.y,s=r.b*l.x+r.d*l.y),e&&"g"===t.tagName.toLowerCase()&&(o=s=0),(h?a:p).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+o)+","+(r.f+s)+")");else{if(o=s=0,U)for(r=t.offsetParent,l=t;l&&(l=l.parentNode)&&l!==r&&l.parentNode;)(Y.getComputedStyle(l)[D]+"").length>4&&(o=l.offsetLeft,s=l.offsetTop,l=0);if(i=Y.getComputedStyle(t),"absolute"!==i.position&&"fixed"!==i.position)for(r=t.offsetParent;p&&p!==r;)o+=p.scrollLeft||0,s+=p.scrollTop||0,p=p.parentNode;l=n.style,l.top=t.offsetTop-s+"px",l.left=t.offsetLeft-o+"px",l[D]=i[D],l[Q]=i[Q],l.position="fixed"===i.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n},rt=(t,e,n,r,l,o,s)=>(t.a=e,t.b=n,t.c=r,t.d=l,t.e=o,t.f=s,t);class lt{constructor(t=1,e=0,n=0,r=1,l=0,o=0){rt(this,t,e,n,r,l,o)}inverse(){let{a:t,b:e,c:n,d:r,e:l,f:o}=this,s=t*r-e*n||1e-10;return rt(this,r/s,-e/s,-n/s,t/s,(n*o-r*l)/s,-(t*o-e*l)/s)}multiply(t){let{a:e,b:n,c:r,d:l,e:o,f:s}=this,i=t.a,a=t.c,h=t.b,g=t.d,p=t.e,f=t.f;return rt(this,i*e+h*r,i*n+h*l,a*e+g*r,a*n+g*l,o+p*e+f*r,s+p*n+f*l)}clone(){return new lt(this.a,this.b,this.c,this.d,this.e,this.f)}equals(t){let{a:e,b:n,c:r,d:l,e:o,f:s}=this;return e===t.a&&n===t.b&&r===t.c&&l===t.d&&o===t.e&&s===t.f}apply(t,e={}){let{x:n,y:r}=t,{a:l,b:o,c:s,d:i,e:a,f:h}=this;return e.x=n*l+r*s+a||0,e.y=n*o+r*i+h||0,e}}function ot(t,e,n,r){if(!t||!t.parentNode||(X||W(t)).documentElement===t)return new lt;let l=(t=>{let e,n;for(;t&&t!==j;)n=t._gsap,n&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e})(t),o=K(t)?$:J,s=nt(t,n),i=o[0].getBoundingClientRect(),a=o[1].getBoundingClientRect(),h=o[2].getBoundingClientRect(),g=s.parentNode,p=!r&&tt(t),f=new lt((a.left-i.left)/100,(a.top-i.top)/100,(h.left-i.left)/100,(h.top-i.top)/100,i.left+(p?0:Y.pageXOffset||X.scrollLeft||G.scrollLeft||j.scrollLeft||0),i.top+(p?0:Y.pageYOffset||X.scrollTop||G.scrollTop||j.scrollTop||0));if(g.removeChild(s),l)for(i=l.length;i--;)a=l[i],a.scaleX=a.scaleY=0,a.renderTransform(1,a);return e?f.inverse():f}let st,it,at,ht,gt="x,translateX,left,marginLeft,xPercent".split(","),pt="y,translateY,top,marginTop,yPercent".split(","),ft=Math.PI/180,ut=(t,e,n,r)=>{let l,o=e.length,s=2===r?0:r,i=0;for(;i<o;i++)t[s]=l=parseFloat(e[i][n]),2===r&&(t[s+1]=0),s+=2;return t},ct=(t,e,n)=>parseFloat(t._gsap.get(t,e,n||"px"))||0,dt=t=>{let e,n=t[0],r=t[1];for(e=2;e<t.length;e+=2)n=t[e]+=n,r=t[e+1]+=r},mt=(t,e,n,r,l,o,s,i,a)=>{if("cubic"===s.type)e=[e];else{!1!==s.fromCurrent&&e.unshift(ct(n,r,i),l?ct(n,l,a):0),s.relative&&dt(e),e=[(l?V:k)(e,s.curviness)]}return e=o(Lt(e,n,s)),Pt(t,n,r,e,"x",i),l&&Pt(t,n,l,e,"y",a),B(e,s.resolution||(0===s.curviness?20:12))},yt=t=>t,xt=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,wt=(t,e,n)=>{let r,l=ot(t),o=0,s=0;return"svg"===(t.tagName+"").toLowerCase()?(r=t.viewBox.baseVal,r.width||(r={width:+t.getAttribute("width"),height:+t.getAttribute("height")})):r=e&&t.getBBox&&t.getBBox(),e&&"auto"!==e&&(o=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,s=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),n.apply(o||s?l.apply({x:o,y:s}):{x:l.e,y:l.f})},bt=(t,e,n,r)=>{let l,o=ot(t.parentNode,!0,!0),s=o.clone().multiply(ot(e)),i=wt(t,n,o),{x:a,y:h}=wt(e,r,o);return s.e=s.f=0,"auto"===r&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(l=e.getAttribute("d").match(xt)||[],l=s.apply({x:+l[0],y:+l[1]}),a+=l.x,h+=l.y),(l||e.getBBox&&t.getBBox&&e.ownerSVGElement===t.ownerSVGElement)&&(l=s.apply(e.getBBox()),a-=l.x,h-=l.y),s.e=a-i.x,s.f=h-i.y,s},Lt=(t,e,{align:n,matrix:r,offsetX:l,offsetY:o,alignOrigin:s})=>{let i,a,h,g=t[0][0],p=t[0][1],f=ct(e,"x"),u=ct(e,"y");return t&&t.length?(n&&("self"===n||(i=ht(n)[0]||e)===e?R(t,1,0,0,1,f-g,u-p):(s&&!1!==s[2]?st.set(e,{transformOrigin:100*s[0]+"% "+100*s[1]+"%"}):s=[ct(e,"xPercent")/-100,ct(e,"yPercent")/-100],a=bt(e,i,s,"auto"),h=a.apply({x:g,y:p}),R(t,a.a,a.b,a.c,a.d,f+a.e-(h.x-a.e),u+a.f-(h.y-a.f)))),r?R(t,r.a,r.b,r.c,r.d,r.e,r.f):(l||o)&&R(t,1,0,0,1,l||0,o||0),t):P("M0,0L0,0")},Pt=(t,e,n,r,l,o)=>{let s=e._gsap,i=s.harness,a=i&&i.aliases&&i.aliases[n],h=a&&a.indexOf(",")<0?a:n,g=t._pt=new it(t._pt,e,h,0,0,yt,0,s.set(e,h,t));g.u=at(s.get(e,h,o))||0,g.path=r,g.pp=l,t._props.push(h)};const vt={version:"3.10.2",name:"motionPath",register(t,e,n){st=t,at=st.utils.getUnit,ht=st.utils.toArray,it=n},init(t,e){if(!st)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});let n,r,l=[],{path:o,autoRotate:s,unitX:i,unitY:a,x:h,y:g}=e,p=o[0],f=(u=e.start,c="end"in e?e.end:1,t=>u||1!==c?T(t,u,c):t);var u,c;if(this.rawPaths=l,this.target=t,(this.rotate=s||0===s)&&(this.rOffset=parseFloat(s)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=at(t._gsap.get(t,this.rProp))||0),Array.isArray(o)&&!("closed"in o)&&"number"!=typeof p){for(r in p)!h&&~gt.indexOf(r)?h=r:!g&&~pt.indexOf(r)&&(g=r);for(r in h&&g?l.push(mt(this,ut(ut([],o,h,0),o,g,1),t,h,g,f,e,i||at(o[0][h]),a||at(o[0][g]))):h=g=0,p)r!==h&&r!==g&&l.push(mt(this,ut([],o,r,2),t,r,0,f,e,at(o[0][r])))}else n=f(Lt(P(e.path),t,e)),B(n,e.resolution),l.push(n),Pt(this,t,e.x||"x",n,"x",e.unitX||"px"),Pt(this,t,e.y||"y",n,"y",e.unitY||"px")},render(t,e){let n=e.rawPaths,r=n.length,l=e._pt;for(t>1?t=1:t<0&&(t=0);r--;)_(n[r],t,!r&&e.rotate,n[r]);for(;l;)l.set(l.t,l.p,l.path[l.pp]+l.u,l.d,t),l=l._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?ft:1)+e.rOffset+e.ru,e,t)},getLength:t=>B(P(t)).totalLength,sliceRawPath:T,getRawPath:P,pointsToSegment:V,stringToRawPath:I,rawPathToString:z,transformRawPath:R,getGlobalMatrix:ot,getPositionOnPath:_,cacheRawPathMeasurements:B,convertToPath:(t,e)=>ht(t).map(t=>M(t,!1!==e)),convertCoordinates(t,e,n){let r=ot(e,!0,!0).multiply(ot(t));return n?r.apply(n):r},getAlignMatrix:bt,getRelativePosition(t,e,n,r){let l=bt(t,e,n,r);return{x:l.e,y:l.f}},arrayToRawPath(t,e){let n=ut(ut([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&dt(n),["cubic"===e.type?n:V(n,e.curviness)]}};(st||"undefined"!=typeof window&&(st=window.gsap)&&st.registerPlugin&&st)&&st.registerPlugin(vt);export default vt;export{vt as MotionPathPlugin}; | ||
let t=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,e=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,n=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,r=/(^[#\.][a-z]|[a-y][a-z])/i,l=Math.PI/180,o=180/Math.PI,s=Math.sin,i=Math.cos,a=Math.abs,h=Math.sqrt,g=Math.atan2,p=t=>"string"==typeof t,f=t=>"number"==typeof t,u={},c={},d=t=>Math.round((t+1e8)%1*1e5)/1e5||(t<0?0:1),m=t=>Math.round(1e5*t)/1e5||0,y=t=>Math.round(1e10*t)/1e10||0,x=(t,e,n,r)=>{let l=t[e],o=1===r?6:S(l,n,r);if(o&&o+n+2<l.length)return t.splice(e,0,l.slice(0,n+o+2)),l.splice(0,n+o),1},w=(t,e,n)=>{let r=t.length,l=~~(n*r);if(t[l]>e){for(;--l&&t[l]>e;);l<0&&(l=0)}else for(;t[++l]<e&&l<r;);return l<r?l:r-1},b=(t,e)=>(e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e),L=(t,e)=>{let n=t.length,r=t[n-1]||[],l=r.length;n&&e[0]===r[l-2]&&e[1]===r[l-1]&&(e=r.concat(e.slice(2)),n--),t[n]=e};function P(t){let e,n=(t=p(t)&&r.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),e=n._gsPath[t],e&&!e._dirty?e:n._gsPath[t]=I(t)):t?p(t)?I(t):f(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function v(t){let e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}let N={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function M(t,n){let r,l,o,s,i,a,h,g,p,f,u,c,d,m,y,x,w,b,L,P,v,M,C=t.tagName.toLowerCase(),T=.552284749831;return"path"!==C&&t.getBBox?(a=((t,e)=>{let n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),l=[].slice.call(t.attributes),o=l.length;for(e=","+e+",";--o>-1;)n=l[o].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,l[o].nodeValue);return r})(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),M=((t,e)=>{let n=e?e.split(","):[],r={},l=n.length;for(;--l>-1;)r[n[l]]=+t.getAttribute(n[l])||0;return r})(t,N[C]),"rect"===C?(s=M.rx,i=M.ry||s,l=M.x,o=M.y,f=M.width-2*s,u=M.height-2*i,s||i?(c=l+s*(1-T),d=l+s,m=d+f,y=m+s*T,x=m+s,w=o+i*(1-T),b=o+i,L=b+u,P=L+i*T,v=L+i,r="M"+x+","+b+" V"+L+" C"+[x,P,y,v,m,v,m-(m-d)/3,v,d+(m-d)/3,v,d,v,c,v,l,P,l,L,l,L-(L-b)/3,l,b+(L-b)/3,l,b,l,w,c,o,d,o,d+(m-d)/3,o,m-(m-d)/3,o,m,o,y,o,x,w,x,b].join(",")+"z"):r="M"+(l+f)+","+o+" v"+u+" h"+-f+" v"+-u+" h"+f+"z"):"circle"===C||"ellipse"===C?("circle"===C?(s=i=M.r,g=s*T):(s=M.rx,i=M.ry,g=i*T),l=M.cx,o=M.cy,h=s*T,r="M"+(l+s)+","+o+" C"+[l+s,o+g,l+h,o+i,l,o+i,l-h,o+i,l-s,o+g,l-s,o,l-s,o-g,l-h,o-i,l,o-i,l+h,o-i,l+s,o-g,l+s,o].join(",")+"z"):"line"===C?r="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==C&&"polygon"!==C||(p=(t.getAttribute("points")+"").match(e)||[],l=p.shift(),o=p.shift(),r="M"+l+","+o+" L"+p.join(","),"polygon"===C&&(r+=","+l+","+o+"z")),a.setAttribute("d",z(a._gsRawPath=I(r))),n&&t.parentNode&&(t.parentNode.insertBefore(a,t),t.parentNode.removeChild(t)),a):t}function C(t,e,n){let r,l=t[e],s=t[e+2],i=t[e+4];return l+=(s-l)*n,s+=(i-s)*n,l+=(s-l)*n,r=s+(i+(t[e+6]-i)*n-s)*n-l,l=t[e+1],s=t[e+3],i=t[e+5],l+=(s-l)*n,s+=(i-s)*n,l+=(s-l)*n,m(g(s+(i+(t[e+7]-i)*n-s)*n-l,r)*o)}function T(t,e,n){n=void 0===n?1:y(n)||0,e=y(e)||0;let r=Math.max(0,~~(a(n-e)-1e-8)),l=function(t){let e=[],n=0;for(;n<t.length;n++)e[n]=b(t[n],t[n].slice(0));return b(t,e)}(t);if(e>n&&(e=1-e,n=1-n,((t,e)=>{let n=t.length;for(e||t.reverse();n--;)t[n].reversed||v(t[n])})(l),l.totalLength=0),e<0||n<0){let t=Math.abs(~~Math.min(e,n))+1;e+=t,n+=t}l.totalLength||B(l);let o,s,i,h,g,p,f,d,m=n>1,w=O(l,e,u,!0),P=O(l,n,c),N=P.segment,M=w.segment,T=P.segIndex,A=w.segIndex,_=P.i,R=w.i,E=A===T,I=_===R&&E;if(m||r){for(o=T<A||E&&_<R||I&&P.t<w.t,x(l,A,R,w.t)&&(A++,o||(T++,I?(P.t=(P.t-w.t)/(1-w.t),_=0):E&&(_-=R))),Math.abs(1-(n-e))<1e-5?T=A-1:!P.t&&T?T--:x(l,T,_,P.t)&&o&&A++,1===w.t&&(A=(A+1)%l.length),g=[],p=l.length,f=1+p*r,d=A,f+=(p-A+T)%p,h=0;h<f;h++)L(g,l[d++%p]);l=g}else if(i=1===P.t?6:S(N,_,P.t),e!==n)for(s=S(M,R,I?w.t/P.t:w.t),E&&(i+=s),N.splice(_+i+2),(s||R)&&M.splice(0,R+s),h=l.length;h--;)(h<A||h>T)&&l.splice(h,1);else N.angle=C(N,_+i,0),_+=i,w=N[_],P=N[_+1],N.length=N.totalLength=0,N.totalPoints=l.totalPoints=8,N.push(w,P,w,P,w,P,w,P);return l.totalLength=0,l}function A(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);let r,l,o,s,i,g,p,f,u,c,d,m,y,x,w,b,L,P=~~t.resolution||12,v=1/P,N=n?e+6*n+1:t.length,M=t[e],C=t[e+1],T=e?e/6*P:0,A=t.samples,B=t.lookup,S=(e?t.minLength:1e8)||1e8,O=A[T+n*P-1],_=e?A[T-1]:0;for(A.length=B.length=0,l=e+2;l<N;l+=6){if(o=t[l+4]-M,s=t[l+2]-M,i=t[l]-M,f=t[l+5]-C,u=t[l+3]-C,c=t[l+1]-C,g=p=d=m=0,a(o)<.01&&a(f)<.01&&a(i)+a(c)<.01)t.length>8&&(t.splice(l,6),l-=6,N-=6);else for(r=1;r<=P;r++)x=v*r,y=1-x,g=p-(p=(x*x*o+3*y*(x*s+y*i))*x),d=m-(m=(x*x*f+3*y*(x*u+y*c))*x),b=h(d*d+g*g),b<S&&(S=b),_+=b,A[T++]=_;M+=o,C+=f}if(O)for(O-=_;T<A.length;T++)A[T]+=O;if(A.length&&S){if(t.totalLength=L=A[A.length-1]||0,t.minLength=S,L/S<9999)for(b=w=0,r=0;r<L;r+=S)B[b++]=A[w]<r?++w:w}else t.totalLength=A[0]=0;return e?_-A[e/2-1]:_}function B(t,e){let n,r,l;for(l=n=r=0;l<t.length;l++)t[l].resolution=~~e||12,r+=t[l].length,n+=A(t[l]);return t.totalPoints=r,t.totalLength=n,t}function S(t,e,n){if(n<=0||n>=1)return 0;let r=t[e],l=t[e+1],o=t[e+2],s=t[e+3],i=t[e+4],a=t[e+5],h=r+(o-r)*n,g=o+(i-o)*n,p=l+(s-l)*n,f=s+(a-s)*n,u=h+(g-h)*n,c=p+(f-p)*n,d=i+(t[e+6]-i)*n,y=a+(t[e+7]-a)*n;return g+=(d-g)*n,f+=(y-f)*n,t.splice(e+2,4,m(h),m(p),m(u),m(c),m(u+(g-u)*n),m(c+(f-c)*n),m(g),m(f),m(d),m(y)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function O(t,e,n,r){n=n||{},t.totalLength||B(t),(e<0||e>1)&&(e=d(e));let l,o,s,i,a,h,g,p=0,f=t[0];if(e)if(1===e)g=1,p=t.length-1,f=t[p],h=f.length-8;else{if(t.length>1){for(s=t.totalLength*e,a=h=0;(a+=t[h++].totalLength)<s;)p=h;f=t[p],i=a-f.totalLength,e=(s-i)/(a-i)||0}l=f.samples,o=f.resolution,s=f.totalLength*e,h=f.lookup.length?f.lookup[~~(s/f.minLength)]||0:w(l,s,e),i=h?l[h-1]:0,a=l[h],a<s&&(i=a,a=l[++h]),g=1/o*((s-i)/(a-i)+h%o),h=6*~~(h/o),r&&1===g&&(h+6<f.length?(h+=6,g=0):p+1<t.length&&(h=g=0,f=t[++p]))}else g=h=p=0,f=t[0];return n.t=g,n.i=h,n.path=t,n.segment=f,n.segIndex=p,n}function _(t,e,n,r){let l,o,s,i,a,h,g,p,f,u=t[0],c=r||{};if((e<0||e>1)&&(e=d(e)),t.length>1){for(s=t.totalLength*e,a=h=0;(a+=t[h++].totalLength)<s;)u=t[h];i=a-u.totalLength,e=(s-i)/(a-i)||0}return l=u.samples,o=u.resolution,s=u.totalLength*e,h=u.lookup.length?u.lookup[e<1?~~(s/u.minLength):u.lookup.length-1]||0:w(l,s,e),i=h?l[h-1]:0,a=l[h],a<s&&(i=a,a=l[++h]),g=1/o*((s-i)/(a-i)+h%o)||0,f=1-g,h=6*~~(h/o),p=u[h],c.x=m((g*g*(u[h+6]-p)+3*f*(g*(u[h+4]-p)+f*(u[h+2]-p)))*g+p),c.y=m((g*g*(u[h+7]-(p=u[h+1]))+3*f*(g*(u[h+5]-p)+f*(u[h+3]-p)))*g+p),n&&(c.angle=u.totalLength?C(u,h,g>=1?1-1e-9:g||1e-9):u.angle||0),c}function R(t,e,n,r,l,o,s){let i,a,h,g,p,f=t.length;for(;--f>-1;)for(i=t[f],a=i.length,h=0;h<a;h+=2)g=i[h],p=i[h+1],i[h]=g*e+p*r+o,i[h+1]=g*n+p*l+s;return t._dirty=1,t}function E(t,e,n,r,o,g,p,f,u){if(t===f&&e===u)return;n=a(n),r=a(r);let c=o%360*l,d=i(c),m=s(c),y=Math.PI,x=2*y,w=(t-f)/2,b=(e-u)/2,L=d*w+m*b,P=-m*w+d*b,v=L*L,N=P*P,M=v/(n*n)+N/(r*r);M>1&&(n=h(M)*n,r=h(M)*r);let C=n*n,T=r*r,A=(C*T-C*N-T*v)/(C*N+T*v);A<0&&(A=0);let B=(g===p?-1:1)*h(A),S=B*(n*P/r),O=B*(-r*L/n),_=(t+f)/2+(d*S-m*O),R=(e+u)/2+(m*S+d*O),E=(L-S)/n,I=(P-O)/r,k=(-L-S)/n,V=(-P-O)/r,z=E*E+I*I,X=(I<0?-1:1)*Math.acos(E/h(z)),Y=(E*V-I*k<0?-1:1)*Math.acos((E*k+I*V)/h(z*(k*k+V*V)));isNaN(Y)&&(Y=y),!p&&Y>0?Y-=x:p&&Y<0&&(Y+=x),X%=x,Y%=x;let G,j=Math.ceil(a(Y)/(x/4)),q=[],F=Y/j,Z=4/3*s(F/2)/(1+i(F/2)),H=d*n,U=m*n,D=m*-r,Q=d*r;for(G=0;G<j;G++)L=i(o=X+G*F),P=s(o),E=i(o+=F),I=s(o),q.push(L-Z*P,P+Z*L,E+Z*I,I-Z*E,E,I);for(G=0;G<q.length;G+=2)L=q[G],P=q[G+1],q[G]=L*H+P*D+_,q[G+1]=L*U+P*Q+R;return q[G-2]=f,q[G-1]=u,q}function I(e){let r,l,o,s,i,h,g,p,f,u,c,d,m,y,x,w=(e+"").replace(n,t=>{let e=+t;return e<1e-4&&e>-1e-4?0:e}).match(t)||[],b=[],L=0,P=0,v=w.length,N=0,M="ERROR: malformed path: "+e,C=function(t,e,n,r){u=(n-t)/3,c=(r-e)/3,g.push(t+u,e+c,n-u,r-c,n,r)};if(!e||!isNaN(w[0])||isNaN(w[1]))return console.log(M),b;for(r=0;r<v;r++)if(m=i,isNaN(w[r])?(i=w[r].toUpperCase(),h=i!==w[r]):r--,o=+w[r+1],s=+w[r+2],h&&(o+=L,s+=P),r||(p=o,f=s),"M"===i)g&&(g.length<8?b.length-=1:N+=g.length),L=p=o,P=f=s,g=[o,s],b.push(g),r+=2,i="L";else if("C"===i)g||(g=[0,0]),h||(L=P=0),g.push(o,s,L+1*w[r+3],P+1*w[r+4],L+=1*w[r+5],P+=1*w[r+6]),r+=6;else if("S"===i)u=L,c=P,"C"!==m&&"S"!==m||(u+=L-g[g.length-4],c+=P-g[g.length-3]),h||(L=P=0),g.push(u,c,o,s,L+=1*w[r+3],P+=1*w[r+4]),r+=4;else if("Q"===i)u=L+2/3*(o-L),c=P+2/3*(s-P),h||(L=P=0),L+=1*w[r+3],P+=1*w[r+4],g.push(u,c,L+2/3*(o-L),P+2/3*(s-P),L,P),r+=4;else if("T"===i)u=L-g[g.length-4],c=P-g[g.length-3],g.push(L+u,P+c,o+2/3*(L+1.5*u-o),s+2/3*(P+1.5*c-s),L=o,P=s),r+=2;else if("H"===i)C(L,P,L=o,P),r+=1;else if("V"===i)C(L,P,L,P=o+(h?P-L:0)),r+=1;else if("L"===i||"Z"===i)"Z"===i&&(o=p,s=f,g.closed=!0),("L"===i||a(L-o)>.5||a(P-s)>.5)&&(C(L,P,o,s),"L"===i&&(r+=2)),L=o,P=s;else if("A"===i){if(y=w[r+4],x=w[r+5],u=w[r+6],c=w[r+7],l=7,y.length>1&&(y.length<3?(c=u,u=x,l--):(c=x,u=y.substr(2),l-=2),x=y.charAt(1),y=y.charAt(0)),d=E(L,P,+w[r+1],+w[r+2],+w[r+3],+y,+x,(h?L:0)+1*u,(h?P:0)+1*c),r+=l,d)for(l=0;l<d.length;l++)g.push(d[l]);L=g[g.length-2],P=g[g.length-1]}else console.log(M);return r=g.length,r<6?(b.pop(),r=0):g[0]===g[r-2]&&g[1]===g[r-1]&&(g.closed=!0),b.totalPoints=N+r,b}function k(t,e=1){let n=t[0],r=0,l=[n,r],o=2;for(;o<t.length;o+=2)l.push(n,r,t[o],r=(t[o]-n)*e/2,n=t[o],-r);return l}function V(t,e){a(t[0]-t[2])<1e-4&&a(t[1]-t[3])<1e-4&&(t=t.slice(2));let n,r,l,o,s,i,g,p,f,u,c,d,y,x,w,b=t.length-2,L=+t[0],P=+t[1],v=+t[2],N=+t[3],M=[L,P,L,P],C=v-L,T=N-P,A=Math.abs(t[b]-L)<.001&&Math.abs(t[b+1]-P)<.001;for(A&&(t.push(v,N),v=L,N=P,L=t[b-2],P=t[b-1],t.unshift(L,P),b+=4),e=e||0===e?+e:1,l=2;l<b;l+=2)n=L,r=P,L=v,P=N,v=+t[l+2],N=+t[l+3],L===v&&P===N||(o=C,s=T,C=v-L,T=N-P,i=h(o*o+s*s),g=h(C*C+T*T),p=h((C/g+o/i)**2+(T/g+s/i)**2),f=(i+g)*e*.25/p,u=L-(L-n)*(i?f/i:0),c=L+(v-L)*(g?f/g:0),d=L-(u+((c-u)*(3*i/(i+g)+.5)/4||0)),y=P-(P-r)*(i?f/i:0),x=P+(N-P)*(g?f/g:0),w=P-(y+((x-y)*(3*i/(i+g)+.5)/4||0)),L===n&&P===r||M.push(m(u+d),m(y+w),m(L),m(P),m(c+d),m(x+w)));return L!==v||P!==N||M.length<4?M.push(m(v),m(N),m(v),m(N)):M.length-=2,2===M.length?M.push(L,P,L,P,L,P):A&&(M.splice(0,6),M.length=M.length-6),M}function z(t){f(t[0])&&(t=[t]);let e,n,r,l,o="",s=t.length;for(n=0;n<s;n++){for(l=t[n],o+="M"+m(l[0])+","+m(l[1])+" C",e=l.length,r=2;r<e;r++)o+=m(l[r++])+","+m(l[r++])+" "+m(l[r++])+","+m(l[r++])+" "+m(l[r++])+","+m(l[r])+" ";l.closed&&(o+="z")}return o}let X,Y,G,j,q,F,Z,H,U,D="transform",Q=D+"Origin",W=t=>{let e=t.ownerDocument||t;!(D in t.style)&&"msTransform"in t.style&&(D="msTransform",Q=D+"Origin");for(;e.parentNode&&(e=e.parentNode););if(Y=window,Z=new lt,e){X=e,G=e.documentElement,j=e.body,H=X.createElementNS("http://www.w3.org/2000/svg","g"),H.style.transform="none";let t=e.createElement("div"),n=e.createElement("div");j.appendChild(t),t.appendChild(n),t.style.position="static",t.style[D]="translate3d(0,0,1px)",U=n.offsetParent!==t,j.removeChild(t)}return e},$=[],J=[],K=t=>t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null),tt=t=>"fixed"===Y.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?tt(t):void 0),et=(t,e)=>{if(t.parentNode&&(X||W(t))){let n=K(t),r=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l=n?e?"rect":"g":"div",o=2!==e?0:100,s=3===e?100:0,i="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",a=X.createElementNS?X.createElementNS(r.replace(/^https/,"http"),l):X.createElement(l);return e&&(n?(F||(F=et(t)),a.setAttribute("width",.01),a.setAttribute("height",.01),a.setAttribute("transform","translate("+o+","+s+")"),F.appendChild(a)):(q||(q=et(t),q.style.cssText=i),a.style.cssText=i+"width:0.1px;height:0.1px;top:"+s+"px;left:"+o+"px",q.appendChild(a))),a}throw"Need document and parent."},nt=(t,e)=>{let n,r,l,o,s,i,a=K(t),h=t===a,g=a?$:J,p=t.parentNode;if(t===Y)return t;if(g.length||g.push(et(t,1),et(t,2),et(t,3)),n=a?F:q,a)h?(l=(t=>{let e,n=t.getCTM();return n||(e=t.style[D],t.style[D]="none",t.appendChild(H),n=H.getCTM(),t.removeChild(H),e?t.style[D]=e:t.style.removeProperty(D.replace(/([A-Z])/g,"-$1").toLowerCase())),n||Z.clone()})(t),o=-l.e/l.a,s=-l.f/l.d,r=Z):t.getBBox?(l=t.getBBox(),r=t.transform?t.transform.baseVal:{},r=r.numberOfItems?r.numberOfItems>1?(t=>{let e=new lt,n=0;for(;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e})(r):r.getItem(0).matrix:Z,o=r.a*l.x+r.c*l.y,s=r.b*l.x+r.d*l.y):(r=new lt,o=s=0),e&&"g"===t.tagName.toLowerCase()&&(o=s=0),(h?a:p).appendChild(n),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+o)+","+(r.f+s)+")");else{if(o=s=0,U)for(r=t.offsetParent,l=t;l&&(l=l.parentNode)&&l!==r&&l.parentNode;)(Y.getComputedStyle(l)[D]+"").length>4&&(o=l.offsetLeft,s=l.offsetTop,l=0);if(i=Y.getComputedStyle(t),"absolute"!==i.position&&"fixed"!==i.position)for(r=t.offsetParent;p&&p!==r;)o+=p.scrollLeft||0,s+=p.scrollTop||0,p=p.parentNode;l=n.style,l.top=t.offsetTop-s+"px",l.left=t.offsetLeft-o+"px",l[D]=i[D],l[Q]=i[Q],l.position="fixed"===i.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n},rt=(t,e,n,r,l,o,s)=>(t.a=e,t.b=n,t.c=r,t.d=l,t.e=o,t.f=s,t);class lt{constructor(t=1,e=0,n=0,r=1,l=0,o=0){rt(this,t,e,n,r,l,o)}inverse(){let{a:t,b:e,c:n,d:r,e:l,f:o}=this,s=t*r-e*n||1e-10;return rt(this,r/s,-e/s,-n/s,t/s,(n*o-r*l)/s,-(t*o-e*l)/s)}multiply(t){let{a:e,b:n,c:r,d:l,e:o,f:s}=this,i=t.a,a=t.c,h=t.b,g=t.d,p=t.e,f=t.f;return rt(this,i*e+h*r,i*n+h*l,a*e+g*r,a*n+g*l,o+p*e+f*r,s+p*n+f*l)}clone(){return new lt(this.a,this.b,this.c,this.d,this.e,this.f)}equals(t){let{a:e,b:n,c:r,d:l,e:o,f:s}=this;return e===t.a&&n===t.b&&r===t.c&&l===t.d&&o===t.e&&s===t.f}apply(t,e={}){let{x:n,y:r}=t,{a:l,b:o,c:s,d:i,e:a,f:h}=this;return e.x=n*l+r*s+a||0,e.y=n*o+r*i+h||0,e}}function ot(t,e,n,r){if(!t||!t.parentNode||(X||W(t)).documentElement===t)return new lt;let l=(t=>{let e,n;for(;t&&t!==j;)n=t._gsap,n&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e})(t),o=K(t)?$:J,s=nt(t,n),i=o[0].getBoundingClientRect(),a=o[1].getBoundingClientRect(),h=o[2].getBoundingClientRect(),g=s.parentNode,p=!r&&tt(t),f=new lt((a.left-i.left)/100,(a.top-i.top)/100,(h.left-i.left)/100,(h.top-i.top)/100,i.left+(p?0:Y.pageXOffset||X.scrollLeft||G.scrollLeft||j.scrollLeft||0),i.top+(p?0:Y.pageYOffset||X.scrollTop||G.scrollTop||j.scrollTop||0));if(g.removeChild(s),l)for(i=l.length;i--;)a=l[i],a.scaleX=a.scaleY=0,a.renderTransform(1,a);return e?f.inverse():f}let st,it,at,ht,gt="x,translateX,left,marginLeft,xPercent".split(","),pt="y,translateY,top,marginTop,yPercent".split(","),ft=Math.PI/180,ut=(t,e,n,r)=>{let l,o=e.length,s=2===r?0:r,i=0;for(;i<o;i++)t[s]=l=parseFloat(e[i][n]),2===r&&(t[s+1]=0),s+=2;return t},ct=(t,e,n)=>parseFloat(t._gsap.get(t,e,n||"px"))||0,dt=t=>{let e,n=t[0],r=t[1];for(e=2;e<t.length;e+=2)n=t[e]+=n,r=t[e+1]+=r},mt=(t,e,n,r,l,o,s,i,a)=>{if("cubic"===s.type)e=[e];else{!1!==s.fromCurrent&&e.unshift(ct(n,r,i),l?ct(n,l,a):0),s.relative&&dt(e),e=[(l?V:k)(e,s.curviness)]}return e=o(Lt(e,n,s)),Pt(t,n,r,e,"x",i),l&&Pt(t,n,l,e,"y",a),B(e,s.resolution||(0===s.curviness?20:12))},yt=t=>t,xt=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,wt=(t,e,n)=>{let r,l=ot(t),o=0,s=0;return"svg"===(t.tagName+"").toLowerCase()?(r=t.viewBox.baseVal,r.width||(r={width:+t.getAttribute("width"),height:+t.getAttribute("height")})):r=e&&t.getBBox&&t.getBBox(),e&&"auto"!==e&&(o=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,s=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),n.apply(o||s?l.apply({x:o,y:s}):{x:l.e,y:l.f})},bt=(t,e,n,r)=>{let l,o=ot(t.parentNode,!0,!0),s=o.clone().multiply(ot(e)),i=wt(t,n,o),{x:a,y:h}=wt(e,r,o);return s.e=s.f=0,"auto"===r&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(l=e.getAttribute("d").match(xt)||[],l=s.apply({x:+l[0],y:+l[1]}),a+=l.x,h+=l.y),(l||e.getBBox&&t.getBBox&&e.ownerSVGElement===t.ownerSVGElement)&&(l=s.apply(e.getBBox()),a-=l.x,h-=l.y),s.e=a-i.x,s.f=h-i.y,s},Lt=(t,e,{align:n,matrix:r,offsetX:l,offsetY:o,alignOrigin:s})=>{let i,a,h,g=t[0][0],p=t[0][1],f=ct(e,"x"),u=ct(e,"y");return t&&t.length?(n&&("self"===n||(i=ht(n)[0]||e)===e?R(t,1,0,0,1,f-g,u-p):(s&&!1!==s[2]?st.set(e,{transformOrigin:100*s[0]+"% "+100*s[1]+"%"}):s=[ct(e,"xPercent")/-100,ct(e,"yPercent")/-100],a=bt(e,i,s,"auto"),h=a.apply({x:g,y:p}),R(t,a.a,a.b,a.c,a.d,f+a.e-(h.x-a.e),u+a.f-(h.y-a.f)))),r?R(t,r.a,r.b,r.c,r.d,r.e,r.f):(l||o)&&R(t,1,0,0,1,l||0,o||0),t):P("M0,0L0,0")},Pt=(t,e,n,r,l,o)=>{let s=e._gsap,i=s.harness,a=i&&i.aliases&&i.aliases[n],h=a&&a.indexOf(",")<0?a:n,g=t._pt=new it(t._pt,e,h,0,0,yt,0,s.set(e,h,t));g.u=at(s.get(e,h,o))||0,g.path=r,g.pp=l,t._props.push(h)};const vt={version:"3.10.3",name:"motionPath",register(t,e,n){st=t,at=st.utils.getUnit,ht=st.utils.toArray,it=n},init(t,e){if(!st)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});let n,r,l=[],{path:o,autoRotate:s,unitX:i,unitY:a,x:h,y:g}=e,p=o[0],f=(u=e.start,c="end"in e?e.end:1,t=>u||1!==c?T(t,u,c):t);var u,c;if(this.rawPaths=l,this.target=t,(this.rotate=s||0===s)&&(this.rOffset=parseFloat(s)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=at(t._gsap.get(t,this.rProp))||0),Array.isArray(o)&&!("closed"in o)&&"number"!=typeof p){for(r in p)!h&&~gt.indexOf(r)?h=r:!g&&~pt.indexOf(r)&&(g=r);for(r in h&&g?l.push(mt(this,ut(ut([],o,h,0),o,g,1),t,h,g,f,e,i||at(o[0][h]),a||at(o[0][g]))):h=g=0,p)r!==h&&r!==g&&l.push(mt(this,ut([],o,r,2),t,r,0,f,e,at(o[0][r])))}else n=f(Lt(P(e.path),t,e)),B(n,e.resolution),l.push(n),Pt(this,t,e.x||"x",n,"x",e.unitX||"px"),Pt(this,t,e.y||"y",n,"y",e.unitY||"px")},render(t,e){let n=e.rawPaths,r=n.length,l=e._pt;for(t>1?t=1:t<0&&(t=0);r--;)_(n[r],t,!r&&e.rotate,n[r]);for(;l;)l.set(l.t,l.p,l.path[l.pp]+l.u,l.d,t),l=l._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?ft:1)+e.rOffset+e.ru,e,t)},getLength:t=>B(P(t)).totalLength,sliceRawPath:T,getRawPath:P,pointsToSegment:V,stringToRawPath:I,rawPathToString:z,transformRawPath:R,getGlobalMatrix:ot,getPositionOnPath:_,cacheRawPathMeasurements:B,convertToPath:(t,e)=>ht(t).map(t=>M(t,!1!==e)),convertCoordinates(t,e,n){let r=ot(e,!0,!0).multiply(ot(t));return n?r.apply(n):r},getAlignMatrix:bt,getRelativePosition(t,e,n,r){let l=bt(t,e,n,r);return{x:l.e,y:l.f}},arrayToRawPath(t,e){let n=ut(ut([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&dt(n),["cubic"===e.type?n:V(n,e.curviness)]}};(st||"undefined"!=typeof window&&(st=window.gsap)&&st.registerPlugin&&st)&&st.registerPlugin(vt);export default vt;export{vt as MotionPathPlugin}; |
/*! | ||
* Observer 3.10.2 | ||
* Observer 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
let e,t,n,o,r,s,l,i,a,c,d,u,g=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,h=1,p=[],f=[],v=[],m=Date.now,x=(e,t)=>t,y=(e,t)=>~v.indexOf(e)&&v[v.indexOf(e)+1][t],b=e=>!!~d.indexOf(e),w=(e,t,n,o)=>e.addEventListener(t,n,{passive:!o}),T=(e,t,n)=>e.removeEventListener(t,n),X=()=>u&&u.isPressed||f.cache++,Y=e=>t=>(t||0===t?(h&&(o.history.scrollRestoration="manual"),e(t),e.v=t,e.c=f.cache,u&&u.isPressed&&x("ss",t)):(f.cache!==e.c||x("ref"))&&(e.c=f.cache,e.v=e()),e.v),D={s:"scrollLeft",p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Y((function(e){return arguments.length?o.scrollTo(e,M.sc()):o.pageXOffset||r.scrollLeft||s.scrollLeft||l.scrollLeft||0}))},M={s:"scrollTop",p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:D,sc:Y((function(e){return arguments.length?o.scrollTo(D.sc(),e):o.pageYOffset||r.scrollTop||s.scrollTop||l.scrollTop||0}))},O=t=>e.utils.toArray(t)[0]||("string"==typeof t&&!1!==e.config().nullTargetWarn?console.warn("Element not found:",t):null),_=(e,{s:t,sc:n})=>{let o=f.indexOf(e),r=n===M.sc?1:2;return!~o&&(o=f.push(e)-1),f[o+r]||(f[o+r]=y(e,t)||(b(e)?n:function(n){return arguments.length?e[t]=n:e[t]}))},P=(e,t,n)=>{let o=e,r=e,s=m(),l=s,i=t||50,a=Math.max(500,3*i),c=(e,t)=>{let a=m();t||a-s>i?(r=o,o=e,l=s,s=a):n?o+=e:o=r+(e-r)/(a-l)*(s-l)};return{update:c,reset:()=>{r=o=n?0:o,l=s=0},getVelocity:e=>{let t=l,i=r,d=m();return(e||0===e)&&e!==o&&c(e),s===l||d-l>a?0:(o+(n?i:-i))/((n?d:s)-t)*1e3}}},E=(e,t)=>(t&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e),L=e=>{let t=Math.max(...e),n=Math.min(...e);return Math.abs(t)>=Math.abs(n)?t:n},S=c=>(e=c||g(),e&&!t&&"undefined"!=typeof document&&document.body&&(o=window,r=document,s=r.documentElement,l=r.body,d=[o,r,s,l],n=e.utils.clamp,a="onpointerenter"in l?"pointer":"mouse",i=C.isTouch=o.matchMedia&&o.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in o||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,setTimeout(()=>h=0,500),t=1),t);D.op=M,f.cache=0;class C{constructor(e){this.init(e)}init(n){t||S(e)||console.warn("Please gsap.registerPlugin(Observer)"),c||(c=e.core.globals().ScrollTrigger,c&&c.core&&(()=>{let e=c.core,t=e.bridge||{},n=e._scrollers,o=e._proxies;n.push(...f),o.push(...v),f=n,v=o,x=(e,n)=>t[e](n)})());let{tolerance:d,dragMinimum:g,type:h,target:m,lineHeight:y,debounce:Y,preventDefault:C,onStop:G,onStopDelay:H,ignore:k,wheelSpeed:A,event:R,onDragStart:V,onDragEnd:W,onDrag:B,onPress:F,onRelease:q,onRight:z,onLeft:I,onUp:N,onDown:U,onChangeX:j,onChangeY:J,onChange:K,onToggleX:Q,onToggleY:Z,onHover:$,onHoverEnd:ee,onMove:te,ignoreCheck:ne,isNormalizer:oe,onGestureStart:re,onGestureEnd:se,onWheel:le,onEnable:ie,onDisable:ae,onClick:ce,scrollSpeed:de}=n;this.target=m=O(m)||s,this.vars=n,k&&(k=e.utils.toArray(k)),d=d||0,g=g||0,A=A||1,de=de||1,h=h||"wheel,touch,pointer",Y=!1!==Y,y||(y=parseFloat(o.getComputedStyle(l).lineHeight)||22);let ue,ge,he,pe,fe,ve=this,me=0,xe=0,ye=_(m,D),be=_(m,M),we=ye(),Te=be(),Xe=("ontouchstart"in s?"touchstart,touchmove,touchcancel,touchend":h.indexOf("pointer")>=0&&!("onpointerdown"in s)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),Ye=~h.indexOf("touch")&&!~h.indexOf("pointer")&&"pointerdown"===Xe[0],De=b(m),Me=m.ownerDocument||r,Oe=[0,0,0],_e=[0,0,0],Pe=(e,t)=>(ve.event=e)&&k&&~k.indexOf(e.target)||t&&Ye&&"touch"!==e.pointerType||ne&&ne(e),Ee=()=>{let e=ve.deltaX=L(Oe),t=ve.deltaY=L(_e),n=Math.abs(e)>=d,o=Math.abs(t)>=d;K&&(n||o)&&K(ve,e,t,Oe,_e),n&&(z&&ve.deltaX>0&&z(ve),I&&ve.deltaX<0&&I(ve),j&&j(ve),Q&&ve.deltaX<0!=me<0&&Q(ve),me=ve.deltaX,Oe[0]=Oe[1]=Oe[2]=0),o&&(U&&ve.deltaY>0&&U(ve),N&&ve.deltaY<0&&N(ve),J&&J(ve),Z&&ve.deltaY<0!=xe<0&&Z(ve),xe=ve.deltaY,_e[0]=_e[1]=_e[2]=0),pe&&(te(ve),pe=!1),he&&(B(ve),he=!1),fe&&(le(ve),fe=!1),ue=0},Le=(e,t,n)=>{Oe[n]+=e,_e[n]+=t,ve._vx.update(e,2===n),ve._vy.update(t,2===n),Y?ue||(ue=requestAnimationFrame(Ee)):Ee()},Se=e=>{if(Pe(e,1))return;let t=(e=E(e,C)).clientX,n=e.clientY,o=t-ve.x,r=n-ve.y,s=ve.isDragging;ve.x=t,ve.y=n,(s||Math.abs(ve.startX-t)>=g||Math.abs(ve.startY-n)>=g)&&(B&&(he=!0),s||(ve.isDragging=!0),Le(o,r,2),s||V&&V(ve))},Ce=ve.onPress=e=>{Pe(e,1)||(ge.pause(),ve.isPressed=!0,e=E(e,C),me=xe=0,ve.startX=ve.x=e.clientX,ve.startY=ve.y=e.clientY,ve._vx.reset(),ve._vy.reset(),w(oe?m:Me,Xe[1],Se,C),ve.deltaX=ve.deltaY=0,F&&F(ve))},Ge=e=>{if(Pe(e,1))return;T(oe?m:Me,Xe[1],Se);let t=ve.isDragging;t||(ve._vx.reset(),ve._vy.reset()),ve.isDragging=ve.isGesturing=ve.isPressed=!1,G&&!oe&&ge.restart(!0),W&&t&&W(ve),q&&q(ve,t)},He=e=>e.touches&&e.touches.length>1&&(ve.isGesturing=!0)&&re(e,ve.isDragging),ke=()=>(ve.isGesturing=!1)||se(ve),Ae=e=>{if(Pe(e))return;let t=ye(),n=be();Le((t-we)*de,(n-Te)*de,1),we=t,Te=n,G&&ge.restart(!0)},Re=e=>{if(Pe(e))return;e=E(e,C),le&&(fe=!0);let t=(1===e.deltaMode?y:2===e.deltaMode?o.innerHeight:1)*A;Le(e.deltaX*t,e.deltaY*t,0),G&&!oe&&ge.restart(!0)},Ve=e=>{if(Pe(e))return;let t=e.clientX,n=e.clientY,o=t-ve.x,r=n-ve.y;ve.x=t,ve.y=n,te&&(pe=!0),(o||r)&&Le(o,r,2)},We=e=>{ve.event=e,$(ve)},Be=e=>{ve.event=e,ee(ve)},Fe=e=>Pe(e)||E(e,C)&&ce(ve);ge=ve._dc=e.delayedCall(H||.25,()=>{ve._vx.reset(),ve._vy.reset(),ge.pause(),G&&G(ve)}).pause(),ve.deltaX=ve.deltaY=0,ve._vx=P(0,50,!0),ve._vy=P(0,50,!0),ve.scrollX=ye,ve.scrollY=be,ve.isDragging=ve.isGesturing=ve.isPressed=!1,ve.enable=e=>(ve.isEnabled||(w(De?Me:m,"scroll",X),h.indexOf("scroll")>=0&&w(De?Me:m,"scroll",Ae,C),h.indexOf("wheel")>=0&&w(m,"wheel",Re,C),(h.indexOf("touch")>=0&&i||h.indexOf("pointer")>=0)&&(w(m,Xe[0],Ce,C),w(Me,Xe[2],Ge),w(Me,Xe[3],Ge),ce&&w(m,"click",Fe),re&&w(Me,"gesturestart",He),se&&w(Me,"gestureend",ke),$&&w(m,a+"enter",We),ee&&w(m,a+"leave",Be),te&&w(m,a+"move",Ve)),ve.isEnabled=!0,e&&e.type&&Ce(e),ie&&ie(ve)),ve),ve.disable=()=>{ve.isEnabled&&(p.filter(e=>e!==ve&&b(e.target)).length||T(De?Me:m,"scroll",X),T(De?Me:m,"scroll",Ae),T(m,"wheel",Re),T(m,Xe[0],Ce),T(Me,Xe[2],Ge),T(Me,Xe[3],Ge),T(m,"click",Fe),T(Me,"gesturestart",He),T(Me,"gestureend",ke),T(m,a+"enter",We),T(m,a+"leave",Be),T(m,a+"move",Ve),ve.isEnabled=!1,ae&&ae(ve))},ve.kill=()=>{ve.disable();let e=p.indexOf(ve);e>=0&&p.splice(e,1),u===ve&&(u=0)},p.push(ve),oe&&(u=ve),ve.enable(R)}get velocityX(){return this._vx.getVelocity()}get velocityY(){return this._vy.getVelocity()}}C.version="3.10.2",C.create=e=>new C(e),C.register=S,C.getAll=()=>p.slice(),C.getById=e=>p.filter(t=>t.vars.id===e)[0],g()&&e.registerPlugin(C);export default C;export{C as Observer,y as _getProxyProp,_ as _getScrollFunc,O as _getTarget,P as _getVelocityProp,D as _horizontal,b as _isViewport,v as _proxies,f as _scrollers,M as _vertical}; | ||
let e,t,n,s,r,o,l,i,a,c,d,u,g,h=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,p=1,v=[],f=[],x=[],m=Date.now,y=(e,t)=>t,b=(e,t)=>~x.indexOf(e)&&x[x.indexOf(e)+1][t],w=e=>!!~d.indexOf(e),M=(e,t,n,s,r)=>e.addEventListener(t,n,{passive:!s,capture:!!r}),X=(e,t,n)=>e.removeEventListener(t,n),Y=()=>u&&u.isPressed||f.cache++,_=e=>t=>(t||0===t?(p&&(s.history.scrollRestoration="manual"),e(t),e.v=t,e.c=f.cache,u&&u.isPressed&&y("ss",t)):(f.cache!==e.c||y("ref"))&&(e.c=f.cache,e.v=e()),e.v),T={s:"scrollLeft",p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:_((function(e){return arguments.length?s.scrollTo(e,D.sc()):s.pageXOffset||r.scrollLeft||o.scrollLeft||l.scrollLeft||0}))},D={s:"scrollTop",p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:T,sc:_((function(e){return arguments.length?s.scrollTo(T.sc(),e):s.pageYOffset||r.scrollTop||o.scrollTop||l.scrollTop||0}))},E=t=>e.utils.toArray(t)[0]||("string"==typeof t&&!1!==e.config().nullTargetWarn?console.warn("Element not found:",t):null),P=(e,{s:t,sc:n})=>{let s=f.indexOf(e),r=n===D.sc?1:2;return!~s&&(s=f.push(e)-1),f[s+r]||(f[s+r]=b(e,t)||(w(e)?n:_((function(n){return arguments.length?e[t]=n:e[t]}))))},O=(e,t,n)=>{let s=e,r=e,o=m(),l=o,i=t||50,a=Math.max(500,3*i),c=(e,t)=>{let a=m();t||a-o>i?(r=s,s=e,l=o,o=a):n?s+=e:s=r+(e-r)/(a-l)*(o-l)};return{update:c,reset:()=>{r=s=n?0:s,l=o=0},getVelocity:e=>{let t=l,i=r,d=m();return(e||0===e)&&e!==s&&c(e),o===l||d-l>a?0:(s+(n?i:-i))/((n?d:o)-t)*1e3}}},k=(e,t)=>(t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e),C=e=>{let t=Math.max(...e),n=Math.min(...e);return Math.abs(t)>=Math.abs(n)?t:n},L=()=>{c=e.core.globals().ScrollTrigger,c&&c.core&&(()=>{let e=c.core,t=e.bridge||{},n=e._scrollers,s=e._proxies;n.push(...f),s.push(...x),f=n,x=s,y=(e,n)=>t[e](n)})()},A=c=>(e=c||h(),e&&"undefined"!=typeof document&&document.body&&(s=window,r=document,o=r.documentElement,l=r.body,d=[s,r,o,l],n=e.utils.clamp,a="onpointerenter"in l?"pointer":"mouse",i=S.isTouch=s.matchMedia&&s.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in s||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,g=S.eventTypes=("ontouchstart"in o?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in o?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(()=>p=0,500),L(),t=1),t);T.op=D,f.cache=0;class S{constructor(e){this.init(e)}init(n){t||A(e)||console.warn("Please gsap.registerPlugin(Observer)"),c||L();let{tolerance:d,dragMinimum:h,type:p,target:f,lineHeight:x,debounce:y,preventDefault:b,onStop:_,onStopDelay:S,ignore:G,wheelSpeed:H,event:R,onDragStart:F,onDragEnd:V,onDrag:W,onPress:q,onRelease:B,onRight:z,onLeft:I,onUp:N,onDown:U,onChangeX:j,onChangeY:J,onChange:K,onToggleX:Q,onToggleY:Z,onHover:$,onHoverEnd:ee,onMove:te,ignoreCheck:ne,isNormalizer:se,onGestureStart:re,onGestureEnd:oe,onWheel:le,onEnable:ie,onDisable:ae,onClick:ce,scrollSpeed:de,capture:ue,allowClicks:ge,lockAxis:he,onLockAxis:pe}=n;this.target=f=E(f)||o,this.vars=n,G&&(G=e.utils.toArray(G)),d=d||0,h=h||0,H=H||1,de=de||1,p=p||"wheel,touch,pointer",y=!1!==y,x||(x=parseFloat(s.getComputedStyle(l).lineHeight)||22);let ve,fe,xe,me,ye,be,we,Me=this,Xe=0,Ye=0,_e=P(f,T),Te=P(f,D),De=_e(),Ee=Te(),Pe=~p.indexOf("touch")&&!~p.indexOf("pointer")&&"pointerdown"===g[0],Oe=w(f),ke=f.ownerDocument||r,Ce=[0,0,0],Le=[0,0,0],Ae=0,Se=()=>Ae=m(),Ge=(e,t)=>(Me.event=e)&&G&&~G.indexOf(e.target)||t&&Pe&&"touch"!==e.pointerType||ne&&ne(e,t),He=()=>{let e=Me.deltaX=C(Ce),t=Me.deltaY=C(Le),n=Math.abs(e)>=d,s=Math.abs(t)>=d;K&&(n||s)&&K(Me,e,t,Ce,Le),n&&(z&&Me.deltaX>0&&z(Me),I&&Me.deltaX<0&&I(Me),j&&j(Me),Q&&Me.deltaX<0!=Xe<0&&Q(Me),Xe=Me.deltaX,Ce[0]=Ce[1]=Ce[2]=0),s&&(U&&Me.deltaY>0&&U(Me),N&&Me.deltaY<0&&N(Me),J&&J(Me),Z&&Me.deltaY<0!=Ye<0&&Z(Me),Ye=Me.deltaY,Le[0]=Le[1]=Le[2]=0),(me||xe)&&(te&&te(Me),pe&&be&&pe(Me),xe&&(W(Me),xe=!1),me=be=!1),ye&&(le(Me),ye=!1),ve=0},Re=(e,t,n)=>{Ce[n]+=e,Le[n]+=t,Me._vx.update(e),Me._vy.update(t),y?ve||(ve=requestAnimationFrame(He)):He()},Fe=(e,t)=>{"y"!==we&&(Ce[2]+=e,Me._vx.update(e,!0)),"x"!==we&&(Le[2]+=t,Me._vy.update(t,!0)),he&&!we&&(Me.axis=we=Math.abs(e)>Math.abs(t)?"x":"y",be=!0),y?ve||(ve=requestAnimationFrame(He)):He()},Ve=e=>{if(Ge(e,1))return;let t=(e=k(e,b)).clientX,n=e.clientY,s=t-Me.x,r=n-Me.y,o=Me.isDragging;Me.x=t,Me.y=n,(o||Math.abs(Me.startX-t)>=h||Math.abs(Me.startY-n)>=h)&&(W&&(xe=!0),o||(Me.isDragging=!0),Fe(s,r),o||F&&F(Me))},We=Me.onPress=e=>{Ge(e,1)||(Me.axis=we=null,fe.pause(),Me.isPressed=!0,e=k(e),Xe=Ye=0,Me.startX=Me.x=e.clientX,Me.startY=Me.y=e.clientY,Me._vx.reset(),Me._vy.reset(),M(se?f:ke,g[1],Ve,b,ue),Me.deltaX=Me.deltaY=0,q&&q(Me))},qe=t=>{if(Ge(t,1))return;X(se?f:ke,g[1],Ve);let n=Me.isDragging&&(Math.abs(Me.x-Me.startX)>3||Math.abs(Me.y-Me.startY)>3),r=k(t);n||(Me._vx.reset(),Me._vy.reset(),b&&ge&&e.delayedCall(.05,()=>{if(m()-Ae>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(ke.createEvent){let e=ke.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,s,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),Me.isDragging=Me.isGesturing=Me.isPressed=!1,_&&!se&&fe.restart(!0),V&&n&&V(Me),B&&B(Me,n)},Be=e=>e.touches&&e.touches.length>1&&(Me.isGesturing=!0)&&re(e,Me.isDragging),ze=()=>(Me.isGesturing=!1)||oe(Me),Ie=e=>{if(Ge(e))return;let t=_e(),n=Te();Re((t-De)*de,(n-Ee)*de,1),De=t,Ee=n,_&&fe.restart(!0)},Ne=e=>{if(Ge(e))return;e=k(e,b),le&&(ye=!0);let t=(1===e.deltaMode?x:2===e.deltaMode?s.innerHeight:1)*H;Re(e.deltaX*t,e.deltaY*t,0),_&&!se&&fe.restart(!0)},Ue=e=>{if(Ge(e))return;let t=e.clientX,n=e.clientY,s=t-Me.x,r=n-Me.y;Me.x=t,Me.y=n,me=!0,(s||r)&&Fe(s,r)},je=e=>{Me.event=e,$(Me)},Je=e=>{Me.event=e,ee(Me)},Ke=e=>Ge(e)||k(e,b)&&ce(Me);fe=Me._dc=e.delayedCall(S||.25,()=>{Me._vx.reset(),Me._vy.reset(),fe.pause(),_&&_(Me)}).pause(),Me.deltaX=Me.deltaY=0,Me._vx=O(0,50,!0),Me._vy=O(0,50,!0),Me.scrollX=_e,Me.scrollY=Te,Me.isDragging=Me.isGesturing=Me.isPressed=!1,Me.enable=e=>(Me.isEnabled||(M(Oe?ke:f,"scroll",Y),p.indexOf("scroll")>=0&&M(Oe?ke:f,"scroll",Ie,b,ue),p.indexOf("wheel")>=0&&M(f,"wheel",Ne,b,ue),(p.indexOf("touch")>=0&&i||p.indexOf("pointer")>=0)&&(M(f,g[0],We,b,ue),M(ke,g[2],qe),M(ke,g[3],qe),ge&&M(f,"click",Se,!1,!0),ce&&M(f,"click",Ke),re&&M(ke,"gesturestart",Be),oe&&M(ke,"gestureend",ze),$&&M(f,a+"enter",je),ee&&M(f,a+"leave",Je),te&&M(f,a+"move",Ue)),Me.isEnabled=!0,e&&e.type&&We(e),ie&&ie(Me)),Me),Me.disable=()=>{Me.isEnabled&&(v.filter(e=>e!==Me&&w(e.target)).length||X(Oe?ke:f,"scroll",Y),Me.isPressed&&(Me._vx.reset(),Me._vy.reset(),X(se?f:ke,g[1],Ve)),X(Oe?ke:f,"scroll",Ie),X(f,"wheel",Ne),X(f,g[0],We),X(ke,g[2],qe),X(ke,g[3],qe),X(f,"click",Se),X(f,"click",Ke),X(ke,"gesturestart",Be),X(ke,"gestureend",ze),X(f,a+"enter",je),X(f,a+"leave",Je),X(f,a+"move",Ue),Me.isEnabled=Me.isPressed=Me.isDragging=!1,ae&&ae(Me))},Me.kill=()=>{Me.disable();let e=v.indexOf(Me);e>=0&&v.splice(e,1),u===Me&&(u=0)},v.push(Me),se&&w(f)&&(u=Me),Me.enable(R)}get velocityX(){return this._vx.getVelocity()}get velocityY(){return this._vy.getVelocity()}}S.version="3.10.3",S.create=e=>new S(e),S.register=A,S.getAll=()=>v.slice(),S.getById=e=>v.filter(t=>t.vars.id===e)[0],h()&&e.registerPlugin(S);export default S;export{S as Observer,b as _getProxyProp,P as _getScrollFunc,E as _getTarget,O as _getVelocityProp,T as _horizontal,w as _isViewport,x as _proxies,f as _scrollers,D as _vertical}; |
{ | ||
"name": "gsap-trial", | ||
"version": "3.10.2", | ||
"version": "3.10.3", | ||
"description": "Trial version of GSAP that includes all bonus plugins which are normally available exclusively to Club GreenSock members. *** DO NOT DEPLOY THESE FILES *** They only work locally or on domains like codepen.io, codesandbox.io, stackblitz.com and jsfiddle.com. If used elsewhere, it violates the license and redirects the browser. To get the unrestricted files, sign up at https://greensock.com/club", | ||
@@ -5,0 +5,0 @@ "homepage": "https://greensock.com", |
/*! | ||
* Physics2DPlugin 3.10.2 | ||
* Physics2DPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
let t,e,i,s=Math.PI/180,n=()=>t||"undefined"!=typeof window&&(t=window.gsap)&&t.registerPlugin&&t,o=t=>Math.round(1e4*t)/1e4,a=function(){return String.fromCharCode.apply(null,arguments)},r=a(103,114,101,101,110,115,111,99,107,46,99,111,109),l=(function(t){var e="undefined"!=typeof window,i=0===(e?window.location.href:"").indexOf(a(102,105,108,101,58,47,47))||-1!==t.indexOf(a(108,111,99,97,108,104,111,115,116))||-1!==t.indexOf(a(49,50,55,46,48,32,48,46,49)),s=[r,a(99,111,100,101,112,101,110,46,105,111),a(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),a(99,111,100,101,112,101,110,46,100,101,118),a(99,111,100,101,112,101,110,46,97,112,112),a(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),a(112,101,110,115,46,99,108,111,117,100),a(99,115,115,45,116,114,105,99,107,115,46,99,111,109),a(99,100,112,110,46,105,111),a(112,101,110,115,46,105,111),a(103,97,110,110,111,110,46,116,118),a(99,111,100,101,99,97,110,121,111,110,46,110,101,116),a(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),a(99,101,114,101,98,114,97,120,46,99,111,46,117,107),a(116,121,109,112,97,110,117,115,46,110,101,116),a(116,119,101,101,110,109,97,120,46,99,111,109),a(116,119,101,101,110,108,105,116,101,46,99,111,109),a(112,108,110,107,114,46,99,111),a(104,111,116,106,97,114,46,99,111,109),a(119,101,98,112,97,99,107,98,105,110,46,99,111,109),a(97,114,99,104,105,118,101,46,111,114,103),a(99,111,100,101,115,97,110,100,98,111,120,46,105,111),a(99,115,98,46,97,112,112),a(115,116,97,99,107,98,108,105,116,122,46,99,111,109),a(115,116,97,99,107,98,108,105,116,122,46,105,111),a(99,111,100,105,101,114,46,105,111),a(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),a(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),a(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),a(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){e&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",n):(document.removeEventListener("readystatechange",n),e&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(a(37,99,87,97,114,110,105,110,103),a(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(a(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"Physics2DPlugin"+a(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(a(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),a(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},o=s.length;for(setTimeout(n,50);--o>-1;)if(-1!==t.indexOf(s[o]))return!0;i||setTimeout((function(){e&&(window.location.href=a(104,116,116,112,115,58,47,47)+r+a(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=Physics2DPlugin&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),s=>{t=s||n(),e||(i=t.utils.getUnit,e=1)});class c{constructor(t,e,s,n,o){let a=t._gsap,r=a.get(t,e);this.p=e,this.set=a.set(t,e),this.s=this.val=parseFloat(r),this.u=i(r)||0,this.vel=s||0,this.v=this.vel/o,n||0===n?(this.acc=n,this.a=this.acc/(o*o)):this.acc=this.a=0}}const p={version:"3.10.2",name:"physics2D",register:l,init(t,i,n){e||l();let o=+i.angle||0,a=+i.velocity||0,r=+i.acceleration||0,p=i.xProp||"x",h=i.yProp||"y",d=i.accelerationAngle||0===i.accelerationAngle?+i.accelerationAngle:o;this.target=t,this.tween=n,this.step=0,this.sps=30,i.gravity&&(r=+i.gravity,d=90),o*=s,d*=s,this.fr=1-(+i.friction||0),this._props.push(p,h),this.xp=new c(t,p,Math.cos(o)*a,Math.cos(d)*r,this.sps),this.yp=new c(t,h,Math.sin(o)*a,Math.sin(d)*r,this.sps),this.skipX=this.skipY=0},render(t,e){let i,s,n,a,r,l,{xp:c,yp:p,tween:h,target:d,step:g,sps:v,fr:u,skipX:f,skipY:w}=e,y=h._from?h._dur-h._time:h._time;if(1===u)n=y*y*.5,i=c.s+c.vel*y+c.acc*n,s=p.s+p.vel*y+p.acc*n;else{for(y*=v,a=l=(0|y)-g,l<0&&(c.v=c.vel/v,p.v=p.vel/v,c.val=c.s,p.val=p.s,e.step=0,a=l=0|y),r=y%1*u;l--;)c.v+=c.a,p.v+=p.a,c.v*=u,p.v*=u,c.val+=c.v,p.val+=p.v;i=c.val+c.v*r,s=p.val+p.v*r,e.step+=a}f||c.set(d,c.p,o(i)+c.u),w||p.set(d,p.p,o(s)+p.u)},kill(t){this.xp.p===t&&(this.skipX=1),this.yp.p===t&&(this.skipY=1)}};n()&&t.registerPlugin(p);export default p;export{p as Physics2DPlugin}; | ||
let t,e,i,s=Math.PI/180,n=()=>t||"undefined"!=typeof window&&(t=window.gsap)&&t.registerPlugin&&t,o=t=>Math.round(1e4*t)/1e4,a=function(){return String.fromCharCode.apply(null,arguments)},r=a(103,114,101,101,110,115,111,99,107,46,99,111,109),l=(function(t){var e="undefined"!=typeof window,i=0===(e?window.location.href:"").indexOf(a(102,105,108,101,58,47,47))||-1!==t.indexOf(a(108,111,99,97,108,104,111,115,116))||-1!==t.indexOf(a(49,50,55,46,48,32,48,46,49)),s=[r,a(99,111,100,101,112,101,110,46,105,111),a(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),a(99,111,100,101,112,101,110,46,100,101,118),a(99,111,100,101,112,101,110,46,97,112,112),a(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),a(112,101,110,115,46,99,108,111,117,100),a(99,115,115,45,116,114,105,99,107,115,46,99,111,109),a(99,100,112,110,46,105,111),a(112,101,110,115,46,105,111),a(103,97,110,110,111,110,46,116,118),a(99,111,100,101,99,97,110,121,111,110,46,110,101,116),a(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),a(99,101,114,101,98,114,97,120,46,99,111,46,117,107),a(116,121,109,112,97,110,117,115,46,110,101,116),a(116,119,101,101,110,109,97,120,46,99,111,109),a(116,119,101,101,110,108,105,116,101,46,99,111,109),a(112,108,110,107,114,46,99,111),a(104,111,116,106,97,114,46,99,111,109),a(119,101,98,112,97,99,107,98,105,110,46,99,111,109),a(97,114,99,104,105,118,101,46,111,114,103),a(99,111,100,101,115,97,110,100,98,111,120,46,105,111),a(99,115,98,46,97,112,112),a(115,116,97,99,107,98,108,105,116,122,46,99,111,109),a(115,116,97,99,107,98,108,105,116,122,46,105,111),a(99,111,100,105,101,114,46,105,111),a(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),a(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),a(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),a(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){e&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",n):(document.removeEventListener("readystatechange",n),e&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(a(37,99,87,97,114,110,105,110,103),a(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(a(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"Physics2DPlugin"+a(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(a(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),a(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},o=s.length;for(setTimeout(n,50);--o>-1;)if(-1!==t.indexOf(s[o]))return!0;i||setTimeout((function(){e&&(window.location.href=a(104,116,116,112,115,58,47,47)+r+a(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=Physics2DPlugin&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),s=>{t=s||n(),e||(i=t.utils.getUnit,e=1)});class c{constructor(t,e,s,n,o){let a=t._gsap,r=a.get(t,e);this.p=e,this.set=a.set(t,e),this.s=this.val=parseFloat(r),this.u=i(r)||0,this.vel=s||0,this.v=this.vel/o,n||0===n?(this.acc=n,this.a=this.acc/(o*o)):this.acc=this.a=0}}const p={version:"3.10.3",name:"physics2D",register:l,init(t,i,n){e||l();let o=+i.angle||0,a=+i.velocity||0,r=+i.acceleration||0,p=i.xProp||"x",h=i.yProp||"y",d=i.accelerationAngle||0===i.accelerationAngle?+i.accelerationAngle:o;this.target=t,this.tween=n,this.step=0,this.sps=30,i.gravity&&(r=+i.gravity,d=90),o*=s,d*=s,this.fr=1-(+i.friction||0),this._props.push(p,h),this.xp=new c(t,p,Math.cos(o)*a,Math.cos(d)*r,this.sps),this.yp=new c(t,h,Math.sin(o)*a,Math.sin(d)*r,this.sps),this.skipX=this.skipY=0},render(t,e){let i,s,n,a,r,l,{xp:c,yp:p,tween:h,target:d,step:g,sps:v,fr:u,skipX:f,skipY:w}=e,y=h._from?h._dur-h._time:h._time;if(1===u)n=y*y*.5,i=c.s+c.vel*y+c.acc*n,s=p.s+p.vel*y+p.acc*n;else{for(y*=v,a=l=(0|y)-g,l<0&&(c.v=c.vel/v,p.v=p.vel/v,c.val=c.s,p.val=p.s,e.step=0,a=l=0|y),r=y%1*u;l--;)c.v+=c.a,p.v+=p.a,c.v*=u,p.v*=u,c.val+=c.v,p.val+=p.v;i=c.val+c.v*r,s=p.val+p.v*r,e.step+=a}f||c.set(d,c.p,o(i)+c.u),w||p.set(d,p.p,o(s)+p.u)},kill(t){this.xp.p===t&&(this.skipX=1),this.yp.p===t&&(this.skipY=1)}};n()&&t.registerPlugin(p);export default p;export{p as Physics2DPlugin}; |
/*! | ||
* PhysicsPropsPlugin 3.10.2 | ||
* PhysicsPropsPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
let e,t,i,s=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,n=e=>Math.round(1e4*e)/1e4,o=function(){return String.fromCharCode.apply(null,arguments)},r=o(103,114,101,101,110,115,111,99,107,46,99,111,109),a=(function(e){var t="undefined"!=typeof window,i=0===(t?window.location.href:"").indexOf(o(102,105,108,101,58,47,47))||-1!==e.indexOf(o(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(o(49,50,55,46,48,32,48,46,49)),s=[r,o(99,111,100,101,112,101,110,46,105,111),o(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),o(99,111,100,101,112,101,110,46,100,101,118),o(99,111,100,101,112,101,110,46,97,112,112),o(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),o(112,101,110,115,46,99,108,111,117,100),o(99,115,115,45,116,114,105,99,107,115,46,99,111,109),o(99,100,112,110,46,105,111),o(112,101,110,115,46,105,111),o(103,97,110,110,111,110,46,116,118),o(99,111,100,101,99,97,110,121,111,110,46,110,101,116),o(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),o(99,101,114,101,98,114,97,120,46,99,111,46,117,107),o(116,121,109,112,97,110,117,115,46,110,101,116),o(116,119,101,101,110,109,97,120,46,99,111,109),o(116,119,101,101,110,108,105,116,101,46,99,111,109),o(112,108,110,107,114,46,99,111),o(104,111,116,106,97,114,46,99,111,109),o(119,101,98,112,97,99,107,98,105,110,46,99,111,109),o(97,114,99,104,105,118,101,46,111,114,103),o(99,111,100,101,115,97,110,100,98,111,120,46,105,111),o(99,115,98,46,97,112,112),o(115,116,97,99,107,98,108,105,116,122,46,99,111,109),o(115,116,97,99,107,98,108,105,116,122,46,105,111),o(99,111,100,105,101,114,46,105,111),o(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),o(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),o(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),o(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",n):(document.removeEventListener("readystatechange",n),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(o(37,99,87,97,114,110,105,110,103),o(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(o(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"PhysicsPropsPlugin"+o(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(o(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),o(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},a=s.length;for(setTimeout(n,50);--a>-1;)if(-1!==e.indexOf(s[a]))return!0;i||setTimeout((function(){t&&(window.location.href=o(104,116,116,112,115,58,47,47)+r+o(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=PhysicsPropsPlugin&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),n=>{e=n||s(),t||(i=e.utils.getUnit,t=1)});class l{constructor(e,t,s,n,o,r){let a=e._gsap,l=a.get(e,t);this.p=t,this.set=a.set(e,t),this.s=this.val=parseFloat(l),this.u=i(l)||0,this.vel=s||0,this.v=this.vel/r,n||0===n?(this.acc=n,this.a=this.acc/(r*r)):this.acc=this.a=0,this.fr=1-(o||0)}}const c={version:"3.10.2",name:"physicsProps",register:a,init(e,i,s){t||a();let n,o=this;for(n in o.target=e,o.tween=s,o.step=0,o.sps=30,o.vProps=[],i){let{velocity:t,acceleration:s,friction:r}=i[n];(t||s)&&(o.vProps.push(new l(e,n,t,s,r,o.sps)),o._props.push(n),r&&(o.hasFr=1))}},render(e,t){let i,s,o,r,a,{vProps:l,tween:c,target:d,step:p,hasFr:f,sps:h}=t,u=l.length,g=c._from?c._dur-c._time:c._time;if(f){if(g*=h,s=(0|g)-p,s<0){for(;u--;)i=l[u],i.v=i.vel/h,i.val=i.s;u=l.length,t.step=p=0,s=0|g}for(o=g%1;u--;){for(i=l[u],r=s;r--;)i.v+=i.a,i.v*=i.fr,i.val+=i.v;i.set(d,i.p,n(i.val+i.v*o*i.fr)+i.u)}t.step+=s}else for(a=g*g*.5;u--;)i=l[u],i.set(d,i.p,n(i.s+i.vel*g+i.acc*a)+i.u)},kill(e){let t=this.vProps,i=t.length;for(;i--;)t[i].p===e&&t.splice(i,1)}};s()&&e.registerPlugin(c);export default c;export{c as PhysicsPropsPlugin}; | ||
let e,t,i,s=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,n=e=>Math.round(1e4*e)/1e4,o=function(){return String.fromCharCode.apply(null,arguments)},r=o(103,114,101,101,110,115,111,99,107,46,99,111,109),a=(function(e){var t="undefined"!=typeof window,i=0===(t?window.location.href:"").indexOf(o(102,105,108,101,58,47,47))||-1!==e.indexOf(o(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(o(49,50,55,46,48,32,48,46,49)),s=[r,o(99,111,100,101,112,101,110,46,105,111),o(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),o(99,111,100,101,112,101,110,46,100,101,118),o(99,111,100,101,112,101,110,46,97,112,112),o(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),o(112,101,110,115,46,99,108,111,117,100),o(99,115,115,45,116,114,105,99,107,115,46,99,111,109),o(99,100,112,110,46,105,111),o(112,101,110,115,46,105,111),o(103,97,110,110,111,110,46,116,118),o(99,111,100,101,99,97,110,121,111,110,46,110,101,116),o(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),o(99,101,114,101,98,114,97,120,46,99,111,46,117,107),o(116,121,109,112,97,110,117,115,46,110,101,116),o(116,119,101,101,110,109,97,120,46,99,111,109),o(116,119,101,101,110,108,105,116,101,46,99,111,109),o(112,108,110,107,114,46,99,111),o(104,111,116,106,97,114,46,99,111,109),o(119,101,98,112,97,99,107,98,105,110,46,99,111,109),o(97,114,99,104,105,118,101,46,111,114,103),o(99,111,100,101,115,97,110,100,98,111,120,46,105,111),o(99,115,98,46,97,112,112),o(115,116,97,99,107,98,108,105,116,122,46,99,111,109),o(115,116,97,99,107,98,108,105,116,122,46,105,111),o(99,111,100,105,101,114,46,105,111),o(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),o(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),o(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),o(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",n):(document.removeEventListener("readystatechange",n),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(o(37,99,87,97,114,110,105,110,103),o(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(o(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"PhysicsPropsPlugin"+o(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(o(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),o(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},a=s.length;for(setTimeout(n,50);--a>-1;)if(-1!==e.indexOf(s[a]))return!0;i||setTimeout((function(){t&&(window.location.href=o(104,116,116,112,115,58,47,47)+r+o(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=PhysicsPropsPlugin&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),n=>{e=n||s(),t||(i=e.utils.getUnit,t=1)});class l{constructor(e,t,s,n,o,r){let a=e._gsap,l=a.get(e,t);this.p=t,this.set=a.set(e,t),this.s=this.val=parseFloat(l),this.u=i(l)||0,this.vel=s||0,this.v=this.vel/r,n||0===n?(this.acc=n,this.a=this.acc/(r*r)):this.acc=this.a=0,this.fr=1-(o||0)}}const c={version:"3.10.3",name:"physicsProps",register:a,init(e,i,s){t||a();let n,o=this;for(n in o.target=e,o.tween=s,o.step=0,o.sps=30,o.vProps=[],i){let{velocity:t,acceleration:s,friction:r}=i[n];(t||s)&&(o.vProps.push(new l(e,n,t,s,r,o.sps)),o._props.push(n),r&&(o.hasFr=1))}},render(e,t){let i,s,o,r,a,{vProps:l,tween:c,target:d,step:p,hasFr:f,sps:h}=t,u=l.length,g=c._from?c._dur-c._time:c._time;if(f){if(g*=h,s=(0|g)-p,s<0){for(;u--;)i=l[u],i.v=i.vel/h,i.val=i.s;u=l.length,t.step=p=0,s=0|g}for(o=g%1;u--;){for(i=l[u],r=s;r--;)i.v+=i.a,i.v*=i.fr,i.val+=i.v;i.set(d,i.p,n(i.val+i.v*o*i.fr)+i.u)}t.step+=s}else for(a=g*g*.5;u--;)i=l[u],i.set(d,i.p,n(i.s+i.vel*g+i.acc*a)+i.u)},kill(e){let t=this.vProps,i=t.length;for(;i--;)t[i].p===e&&t.splice(i,1)}};s()&&e.registerPlugin(c);export default c;export{c as PhysicsPropsPlugin}; |
/*! | ||
* PixiPlugin 3.10.2 | ||
* PixiPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
let t,r,i,e,o,s,l,n,a,u,h=()=>"undefined"!=typeof window,c=()=>t||h()&&(t=window.gsap)&&t.registerPlugin&&t,p=t=>"function"==typeof t,g=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],d=.212671,f=.71516,b=.072169,x=(t,r)=>{let i,e,o=[],s=0,l=0;for(i=0;i<4;i++){for(e=0;e<5;e++)l=4===e?t[s+4]:0,o[s+e]=t[s]*r[e]+t[s+1]*r[e+5]+t[s+2]*r[e+10]+t[s+3]*r[e+15]+l;s+=5}return o},m=(t,r)=>{let i=1-r,e=i*d,o=i*f,s=i*b;return x([e+r,o,s,0,0,e,o+r,s,0,0,e,o,s+r,0,0,0,0,0,1,0],t)},P=(t,r,e)=>{let o=i(r),s=o[0]/255,l=o[1]/255,n=o[2]/255,a=1-e;return x([a+e*s*d,e*s*f,e*s*b,0,0,e*l*d,a+e*l*f,e*l*b,0,0,e*n*d,e*n*f,a+e*n*b,0,0,0,0,0,1,0],t)},w=(t,r)=>{r*=Math.PI/180;let i=Math.cos(r),e=Math.sin(r);return x([d+i*(1-d)+e*-d,f+i*-f+e*-f,b+i*-b+e*(1-b),0,0,d+i*-d+.143*e,f+.28484*i+.14*e,b+i*-b+-.283*e,0,0,d+i*-d+-.787329*e,f+i*-f+e*f,b+i*(1-b)+e*b,0,0,0,0,0,1,0,0,0,0,0,1],t)},z=(t,r)=>x([r,0,0,0,.5*(1-r),0,r,0,0,.5*(1-r),0,0,r,0,.5*(1-r),0,0,0,1,0],t),M=(t,r)=>{let i,e=o.filters[r],s=t.filters||[],l=s.length;var n;for(e||(n=r+" not found. PixiPlugin.registerPIXI(PIXI)",console.warn(n));--l>-1;)if(s[l]instanceof e)return s[l];return i=new e,"BlurFilter"===r&&(i.blur=0),s.push(i),t.filters=s,i},A=(t,r,i,e)=>{r.add(i,t,i[t],e[t]),r._props.push(t)},I=(t,r)=>{let i=new o.filters.ColorMatrixFilter;return i.matrix=r,i.brightness(t,!0),i.matrix},F={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},_=(t,r,i)=>{let e,o,s,l=M(t,"ColorMatrixFilter"),n=t._gsColorMatrixFilter=t._gsColorMatrixFilter||(t=>{let r,i={};for(r in t)i[r]=t[r];return i})(F),a=r.combineCMF&&!("colorMatrixFilter"in r&&!r.colorMatrixFilter);s=l.matrix,r.resolution&&(l.resolution=r.resolution),r.matrix&&r.matrix.length===s.length?(o=r.matrix,1!==n.contrast&&A("contrast",i,n,F),n.hue&&A("hue",i,n,F),1!==n.brightness&&A("brightness",i,n,F),n.colorizeAmount&&(A("colorize",i,n,F),A("colorizeAmount",i,n,F)),1!==n.saturation&&A("saturation",i,n,F)):(o=g.slice(),null!=r.contrast?(o=z(o,+r.contrast),A("contrast",i,n,r)):1!==n.contrast&&(a?o=z(o,n.contrast):A("contrast",i,n,F)),null!=r.hue?(o=w(o,+r.hue),A("hue",i,n,r)):n.hue&&(a?o=w(o,n.hue):A("hue",i,n,F)),null!=r.brightness?(o=I(+r.brightness,o),A("brightness",i,n,r)):1!==n.brightness&&(a?o=I(n.brightness,o):A("brightness",i,n,F)),null!=r.colorize?(r.colorizeAmount="colorizeAmount"in r?+r.colorizeAmount:1,o=P(o,r.colorize,r.colorizeAmount),A("colorize",i,n,r),A("colorizeAmount",i,n,r)):n.colorizeAmount&&(a?o=P(o,n.colorize,n.colorizeAmount):(A("colorize",i,n,F),A("colorizeAmount",i,n,F))),null!=r.saturation?(o=m(o,+r.saturation),A("saturation",i,n,r)):1!==n.saturation&&(a?o=m(o,n.saturation):A("saturation",i,n,F))),e=o.length;for(;--e>-1;)o[e]!==s[e]&&i.add(s,e,s[e],o[e],"colorMatrixFilter");i._props.push("colorMatrixFilter")},y=(t,{t:r,p:i,color:e,set:o})=>{o(r,i,e[0]<<16|e[1]<<8|e[2])},C=(t,{g:r})=>{r&&(r.dirty++,r.clearDirty++)},X=(t,r)=>{r.t.visible=!!r.t.alpha},v=(t,r,e,o)=>{let n=t[r],a=i(p(n)?t[r.indexOf("set")||!p(t["get"+r.substr(3)])?r:"get"+r.substr(3)]():n),u=i(e);o._pt=new s(o._pt,t,r,0,0,y,{t:t,p:r,color:a,set:l(t,r)}),o.add(a,0,a[0],u[0]),o.add(a,1,a[1],u[1]),o.add(a,2,a[2],u[2])},O={tint:1,lineColor:1,fillColor:1},S="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),D={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},Y={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},j=Math.PI/180,k=t=>"string"==typeof t,B=t=>k(t)&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*j:t*j,E=(t,r)=>r.set(r.t,r.p,1===t?r.e:Math.round(1e5*(r.s+r.c*t))/1e5,r),N=(t,r,i,e,o,l)=>{let n,a,u=360*(l?j:1),h=k(o),c=h&&"="===o.charAt(1)?+(o.charAt(0)+"1"):0,p=parseFloat(c?o.substr(2):o)*(l?j:1),g=c?p*c:p-e,d=e+g;return h&&(n=o.split("_")[1],"short"===n&&(g%=u,g!==g%(u/2)&&(g+=g<0?u:-u)),"cw"===n&&g<0?g=(g+1e10*u)%u-~~(g/u)*u:"ccw"===n&&g>0&&(g=(g-1e10*u)%u-~~(g/u)*u)),t._pt=a=new s(t._pt,r,i,e,g,E),a.e=d,a},R=()=>{h()&&(r=window,t=c(),o=e=o||r.PIXI,n=o&&o.VERSION&&"4"===o.VERSION.charAt(0),i=r=>t.utils.splitColor("0x"===(r+"").substr(0,2)?"#"+r.substr(2):r))};for(a=0;a<S.length;a++)u=S[a],D[u+"X"]=u,D[u+"Y"]=u;const V={version:"3.10.2",name:"pixi",register(r,i,e){t=r,s=e,l=i.getSetter,R()},registerPIXI(t){o=t},init(t,r,i,e,l){if(o||R(),!(o&&t instanceof o.DisplayObject))return console.warn(t,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;let a,u,h,c,p,g,d,f,b;for(g in r){if(a=D[g],h=r[g],a)u=~g.charAt(g.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[a],u,t[a][u],"skew"===a?B(h):h);else if("scale"===g||"anchor"===g||"pivot"===g||"tileScale"===g)this.add(t[g],"x",t[g].x,h),this.add(t[g],"y",t[g].y,h);else if("rotation"===g||"angle"===g)N(this,t,g,t[g],h,"rotation"===g);else if(Y[g])c||(_(t,r.colorMatrixFilter||r,this),c=!0);else if("blur"===g||"blurX"===g||"blurY"===g||"blurPadding"===g){if(p=M(t,"BlurFilter"),this.add(p,g,p[g],h),0!==r.blurPadding)for(d=r.blurPadding||2*Math.max(p[g],h),f=t.filters.length;--f>-1;)t.filters[f].padding=Math.max(t.filters[f].padding,d)}else if(O[g])if(("lineColor"===g||"fillColor"===g)&&t instanceof o.Graphics)for(b=(t.geometry||t).graphicsData,this._pt=new s(this._pt,t,g,0,0,C,{g:t.geometry||t}),f=b.length;--f>-1;)v(n?b[f]:b[f][g.substr(0,4)+"Style"],n?g:"color",h,this);else v(t,g,h,this);else"autoAlpha"===g?(this._pt=new s(this._pt,t,"visible",0,0,X),this.add(t,"alpha",t.alpha,h),this._props.push("alpha","visible")):"resolution"!==g&&this.add(t,g,"get",h);this._props.push(g)}}};c()&&t.registerPlugin(V);export default V;export{V as PixiPlugin}; | ||
let t,r,i,e,o,s,l,n,a,u,h=()=>"undefined"!=typeof window,c=()=>t||h()&&(t=window.gsap)&&t.registerPlugin&&t,p=t=>"function"==typeof t,g=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],d=.212671,f=.71516,b=.072169,x=(t,r)=>{let i,e,o=[],s=0,l=0;for(i=0;i<4;i++){for(e=0;e<5;e++)l=4===e?t[s+4]:0,o[s+e]=t[s]*r[e]+t[s+1]*r[e+5]+t[s+2]*r[e+10]+t[s+3]*r[e+15]+l;s+=5}return o},m=(t,r)=>{let i=1-r,e=i*d,o=i*f,s=i*b;return x([e+r,o,s,0,0,e,o+r,s,0,0,e,o,s+r,0,0,0,0,0,1,0],t)},P=(t,r,e)=>{let o=i(r),s=o[0]/255,l=o[1]/255,n=o[2]/255,a=1-e;return x([a+e*s*d,e*s*f,e*s*b,0,0,e*l*d,a+e*l*f,e*l*b,0,0,e*n*d,e*n*f,a+e*n*b,0,0,0,0,0,1,0],t)},w=(t,r)=>{r*=Math.PI/180;let i=Math.cos(r),e=Math.sin(r);return x([d+i*(1-d)+e*-d,f+i*-f+e*-f,b+i*-b+e*(1-b),0,0,d+i*-d+.143*e,f+.28484*i+.14*e,b+i*-b+-.283*e,0,0,d+i*-d+-.787329*e,f+i*-f+e*f,b+i*(1-b)+e*b,0,0,0,0,0,1,0,0,0,0,0,1],t)},z=(t,r)=>x([r,0,0,0,.5*(1-r),0,r,0,0,.5*(1-r),0,0,r,0,.5*(1-r),0,0,0,1,0],t),M=(t,r)=>{let i,e=o.filters[r],s=t.filters||[],l=s.length;var n;for(e||(n=r+" not found. PixiPlugin.registerPIXI(PIXI)",console.warn(n));--l>-1;)if(s[l]instanceof e)return s[l];return i=new e,"BlurFilter"===r&&(i.blur=0),s.push(i),t.filters=s,i},A=(t,r,i,e)=>{r.add(i,t,i[t],e[t]),r._props.push(t)},I=(t,r)=>{let i=new o.filters.ColorMatrixFilter;return i.matrix=r,i.brightness(t,!0),i.matrix},F={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},_=(t,r,i)=>{let e,o,s,l=M(t,"ColorMatrixFilter"),n=t._gsColorMatrixFilter=t._gsColorMatrixFilter||(t=>{let r,i={};for(r in t)i[r]=t[r];return i})(F),a=r.combineCMF&&!("colorMatrixFilter"in r&&!r.colorMatrixFilter);s=l.matrix,r.resolution&&(l.resolution=r.resolution),r.matrix&&r.matrix.length===s.length?(o=r.matrix,1!==n.contrast&&A("contrast",i,n,F),n.hue&&A("hue",i,n,F),1!==n.brightness&&A("brightness",i,n,F),n.colorizeAmount&&(A("colorize",i,n,F),A("colorizeAmount",i,n,F)),1!==n.saturation&&A("saturation",i,n,F)):(o=g.slice(),null!=r.contrast?(o=z(o,+r.contrast),A("contrast",i,n,r)):1!==n.contrast&&(a?o=z(o,n.contrast):A("contrast",i,n,F)),null!=r.hue?(o=w(o,+r.hue),A("hue",i,n,r)):n.hue&&(a?o=w(o,n.hue):A("hue",i,n,F)),null!=r.brightness?(o=I(+r.brightness,o),A("brightness",i,n,r)):1!==n.brightness&&(a?o=I(n.brightness,o):A("brightness",i,n,F)),null!=r.colorize?(r.colorizeAmount="colorizeAmount"in r?+r.colorizeAmount:1,o=P(o,r.colorize,r.colorizeAmount),A("colorize",i,n,r),A("colorizeAmount",i,n,r)):n.colorizeAmount&&(a?o=P(o,n.colorize,n.colorizeAmount):(A("colorize",i,n,F),A("colorizeAmount",i,n,F))),null!=r.saturation?(o=m(o,+r.saturation),A("saturation",i,n,r)):1!==n.saturation&&(a?o=m(o,n.saturation):A("saturation",i,n,F))),e=o.length;for(;--e>-1;)o[e]!==s[e]&&i.add(s,e,s[e],o[e],"colorMatrixFilter");i._props.push("colorMatrixFilter")},y=(t,{t:r,p:i,color:e,set:o})=>{o(r,i,e[0]<<16|e[1]<<8|e[2])},C=(t,{g:r})=>{r&&(r.dirty++,r.clearDirty++)},X=(t,r)=>{r.t.visible=!!r.t.alpha},v=(t,r,e,o)=>{let n=t[r],a=i(p(n)?t[r.indexOf("set")||!p(t["get"+r.substr(3)])?r:"get"+r.substr(3)]():n),u=i(e);o._pt=new s(o._pt,t,r,0,0,y,{t:t,p:r,color:a,set:l(t,r)}),o.add(a,0,a[0],u[0]),o.add(a,1,a[1],u[1]),o.add(a,2,a[2],u[2])},O={tint:1,lineColor:1,fillColor:1},S="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),D={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},Y={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},j=Math.PI/180,k=t=>"string"==typeof t,B=t=>k(t)&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*j:t*j,E=(t,r)=>r.set(r.t,r.p,1===t?r.e:Math.round(1e5*(r.s+r.c*t))/1e5,r),N=(t,r,i,e,o,l)=>{let n,a,u=360*(l?j:1),h=k(o),c=h&&"="===o.charAt(1)?+(o.charAt(0)+"1"):0,p=parseFloat(c?o.substr(2):o)*(l?j:1),g=c?p*c:p-e,d=e+g;return h&&(n=o.split("_")[1],"short"===n&&(g%=u,g!==g%(u/2)&&(g+=g<0?u:-u)),"cw"===n&&g<0?g=(g+1e10*u)%u-~~(g/u)*u:"ccw"===n&&g>0&&(g=(g-1e10*u)%u-~~(g/u)*u)),t._pt=a=new s(t._pt,r,i,e,g,E),a.e=d,a},R=()=>{h()&&(r=window,t=c(),o=e=o||r.PIXI,n=o&&o.VERSION&&"4"===o.VERSION.charAt(0),i=r=>t.utils.splitColor("0x"===(r+"").substr(0,2)?"#"+r.substr(2):r))};for(a=0;a<S.length;a++)u=S[a],D[u+"X"]=u,D[u+"Y"]=u;const V={version:"3.10.3",name:"pixi",register(r,i,e){t=r,s=e,l=i.getSetter,R()},registerPIXI(t){o=t},init(t,r,i,e,l){if(o||R(),!(o&&t instanceof o.DisplayObject))return console.warn(t,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;let a,u,h,c,p,g,d,f,b;for(g in r){if(a=D[g],h=r[g],a)u=~g.charAt(g.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[a],u,t[a][u],"skew"===a?B(h):h);else if("scale"===g||"anchor"===g||"pivot"===g||"tileScale"===g)this.add(t[g],"x",t[g].x,h),this.add(t[g],"y",t[g].y,h);else if("rotation"===g||"angle"===g)N(this,t,g,t[g],h,"rotation"===g);else if(Y[g])c||(_(t,r.colorMatrixFilter||r,this),c=!0);else if("blur"===g||"blurX"===g||"blurY"===g||"blurPadding"===g){if(p=M(t,"BlurFilter"),this.add(p,g,p[g],h),0!==r.blurPadding)for(d=r.blurPadding||2*Math.max(p[g],h),f=t.filters.length;--f>-1;)t.filters[f].padding=Math.max(t.filters[f].padding,d)}else if(O[g])if(("lineColor"===g||"fillColor"===g)&&t instanceof o.Graphics)for(b=(t.geometry||t).graphicsData,this._pt=new s(this._pt,t,g,0,0,C,{g:t.geometry||t}),f=b.length;--f>-1;)v(n?b[f]:b[f][g.substr(0,4)+"Style"],n?g:"color",h,this);else v(t,g,h,this);else"autoAlpha"===g?(this._pt=new s(this._pt,t,"visible",0,0,X),this.add(t,"alpha",t.alpha,h),this._props.push("alpha","visible")):"resolution"!==g&&this.add(t,g,"get",h);this._props.push(g)}}};c()&&t.registerPlugin(V);export default V;export{V as PixiPlugin}; |
/*! | ||
* ScrambleTextPlugin 3.10.2 | ||
* ScrambleTextPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
let D=/(^\s+|\s+$)/g;const u=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function F(D){let u=D.nodeType,C="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)C+=F(D)}else if(3===u||4===u)return D.nodeValue;return C}function C(F,C,E,e){if(F+="",E&&(F=F.replace(D,"")),C&&""!==C)return F.replace(/>/g,">").replace(/</g,"<").split(C);let t,n,r=[],s=F.length,i=0;for(;i<s;i++)n=F.charAt(i),(n.charCodeAt(0)>=55296&&n.charCodeAt(0)<=56319||F.charCodeAt(i+1)>=65024&&F.charCodeAt(i+1)<=65039)&&(t=((F.substr(i,12).split(u)||[])[1]||"").length||2,n=F.substr(i,t),r.emoji=1,i+=t-1),r.push(">"===n?">":"<"===n?"<":!e||" "!==n||" "!==F.charAt(i-1)&&" "!==F.charAt(i+1)?n:" ");return r}class E{constructor(D){this.chars=C(D),this.sets=[],this.length=50;for(let D=0;D<20;D++)this.sets[D]=a(80,this.chars)}grow(D){for(let u=0;u<20;u++)this.sets[u]+=a(D-this.length,this.chars);this.length=D}}let e,t,n=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,r=function(){return String.fromCharCode.apply(null,arguments)},s=r(103,114,101,101,110,115,111,99,107,46,99,111,109),i=function(D){var u="undefined"!=typeof window,F=0===(u?window.location.href:"").indexOf(r(102,105,108,101,58,47,47))||-1!==D.indexOf(r(108,111,99,97,108,104,111,115,116))||-1!==D.indexOf(r(49,50,55,46,48,32,48,46,49)),C=[s,r(99,111,100,101,112,101,110,46,105,111),r(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),r(99,111,100,101,112,101,110,46,100,101,118),r(99,111,100,101,112,101,110,46,97,112,112),r(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),r(112,101,110,115,46,99,108,111,117,100),r(99,115,115,45,116,114,105,99,107,115,46,99,111,109),r(99,100,112,110,46,105,111),r(112,101,110,115,46,105,111),r(103,97,110,110,111,110,46,116,118),r(99,111,100,101,99,97,110,121,111,110,46,110,101,116),r(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),r(99,101,114,101,98,114,97,120,46,99,111,46,117,107),r(116,121,109,112,97,110,117,115,46,110,101,116),r(116,119,101,101,110,109,97,120,46,99,111,109),r(116,119,101,101,110,108,105,116,101,46,99,111,109),r(112,108,110,107,114,46,99,111),r(104,111,116,106,97,114,46,99,111,109),r(119,101,98,112,97,99,107,98,105,110,46,99,111,109),r(97,114,99,104,105,118,101,46,111,114,103),r(99,111,100,101,115,97,110,100,98,111,120,46,105,111),r(99,115,98,46,97,112,112),r(115,116,97,99,107,98,108,105,116,122,46,99,111,109),r(115,116,97,99,107,98,108,105,116,122,46,105,111),r(99,111,100,105,101,114,46,105,111),r(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),r(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),r(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),r(106,115,102,105,100,100,108,101,46,110,101,116)],E=function(){u&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",E):(document.removeEventListener("readystatechange",E),u&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(r(37,99,87,97,114,110,105,110,103),r(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(r(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"ScrambleTextPlugin"+r(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(r(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),r(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},e=C.length;for(setTimeout(E,50);--e>-1;)if(-1!==D.indexOf(C[e]))return!0;return F||!setTimeout((function(){u&&(window.location.href=r(104,116,116,112,115,58,47,47)+s+r(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=ScrambleTextPlugin&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),o=/\s+/g,a=(D,u)=>{let F=u.length,C="";for(;--D>-1;)C+=u[~~(Math.random()*F)];return C},l="ABCDEFGHIJKLMNOPQRSTUVWXYZ",B=l.toLowerCase(),A={upperCase:new E(l),lowerCase:new E(B),upperAndLowerCase:new E(l+B)},h=()=>{t=e=n()};const c={version:"3.10.2",name:"scrambleText",register(D,u,F){e=D,h()},init(D,u,e,n,r){if(t||h(),this.prop="innerHTML"in D?"innerHTML":"textContent"in D?"textContent":0,!this.prop)return;this.target=D,"object"!=typeof u&&(u={text:u});let s,a,l,B,c=u.text||u.value||"",d=!1!==u.trim,g=this;return g.delimiter=s=u.delimiter||"",g.original=C(F(D).replace(o," ").split(" ").join(""),s,d),"{original}"!==c&&!0!==c&&null!=c||(c=g.original.join(s)),g.text=C((c||"").replace(o," "),s,d),g.hasClass=!(!u.newClass&&!u.oldClass),g.newClass=u.newClass,g.oldClass=u.oldClass,B=""===s,g.textHasEmoji=B&&!!g.text.emoji,g.charsHaveEmoji=!!u.chars&&!!C(u.chars).emoji,g.length=B?g.original.length:g.original.join(s).length,g.lengthDif=(B?g.text.length:g.text.join(s).length)-g.length,g.fillChar=u.fillChar||u.chars&&~u.chars.indexOf(" ")?" ":"",g.charSet=l=A[u.chars||"upperCase"]||new E(u.chars),g.speed=.05/(u.speed||1),g.prevScrambleTime=0,g.setIndex=20*Math.random()|0,a=g.length+Math.max(g.lengthDif,0),a>l.length&&l.grow(a),g.chars=l.sets[g.setIndex],g.revealDelay=u.revealDelay||0,g.tweenLength=!1!==u.tweenLength,g.tween=e,g.rightToLeft=!!u.rightToLeft,g._props.push("scrambleText","text"),i},render(D,u){let F,E,e,t,n,r,s,i,o,a,l,{target:B,prop:A,text:h,delimiter:c,tween:d,prevScrambleTime:g,revealDelay:p,setIndex:f,chars:w,charSet:m,length:x,textHasEmoji:j,charsHaveEmoji:b,lengthDif:T,tweenLength:v,oldClass:y,newClass:S,rightToLeft:L,fillChar:_,speed:H,original:M,hasClass:O}=u,I=h.length,P=d._time,W=P-g;p&&(d._from&&(P=d._dur-P),D=0===P?0:P<p?1e-6:P===d._dur?1:d._ease((P-p)/(d._dur-p))),D<0?D=0:D>1&&(D=1),L&&(D=1-D),F=~~(D*I+.5),D?((W>H||W<-H)&&(u.setIndex=f=(f+(19*Math.random()|0))%20,u.chars=m.sets[f],u.prevScrambleTime+=W),t=w):t=M.join(c),l=d._from?D:1-D,a=x+(v?d._from?l*l*l:1-l*l*l:1)*T,L?1!==D||!d._from&&"isFromStart"!==d.data?(s=h.slice(F).join(c),e=b?C(t).slice(0,a-(j?C(s):s).length+.5|0).join(""):t.substr(0,a-(j?C(s):s).length+.5|0),t=s):(e="",t=M.join(c)):(e=h.slice(0,F).join(c),E=(j?C(e):e).length,t=b?C(t).slice(E,a+.5|0).join(""):t.substr(E,a-E+.5|0)),O?(i=L?y:S,o=L?S:y,n=i&&0!==F,r=o&&F!==I,s=(n?"<span class='"+i+"'>":"")+e+(n?"</span>":"")+(r?"<span class='"+o+"'>":"")+c+t+(r?"</span>":"")):s=e+c+t,B[A]=" "===_&&~s.indexOf(" ")?s.split(" ").join(" "):s}};c.emojiSafeSplit=C,c.getText=F,n()&&e.registerPlugin(c);export default c;export{c as ScrambleTextPlugin}; | ||
let D=/(^\s+|\s+$)/g;const u=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function F(D){let u=D.nodeType,C="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)C+=F(D)}else if(3===u||4===u)return D.nodeValue;return C}function C(F,C,E,e){if(F+="",E&&(F=F.replace(D,"")),C&&""!==C)return F.replace(/>/g,">").replace(/</g,"<").split(C);let t,n,r=[],s=F.length,i=0;for(;i<s;i++)n=F.charAt(i),(n.charCodeAt(0)>=55296&&n.charCodeAt(0)<=56319||F.charCodeAt(i+1)>=65024&&F.charCodeAt(i+1)<=65039)&&(t=((F.substr(i,12).split(u)||[])[1]||"").length||2,n=F.substr(i,t),r.emoji=1,i+=t-1),r.push(">"===n?">":"<"===n?"<":!e||" "!==n||" "!==F.charAt(i-1)&&" "!==F.charAt(i+1)?n:" ");return r}class E{constructor(D){this.chars=C(D),this.sets=[],this.length=50;for(let D=0;D<20;D++)this.sets[D]=a(80,this.chars)}grow(D){for(let u=0;u<20;u++)this.sets[u]+=a(D-this.length,this.chars);this.length=D}}let e,t,n=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,r=function(){return String.fromCharCode.apply(null,arguments)},s=r(103,114,101,101,110,115,111,99,107,46,99,111,109),i=function(D){var u="undefined"!=typeof window,F=0===(u?window.location.href:"").indexOf(r(102,105,108,101,58,47,47))||-1!==D.indexOf(r(108,111,99,97,108,104,111,115,116))||-1!==D.indexOf(r(49,50,55,46,48,32,48,46,49)),C=[s,r(99,111,100,101,112,101,110,46,105,111),r(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),r(99,111,100,101,112,101,110,46,100,101,118),r(99,111,100,101,112,101,110,46,97,112,112),r(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),r(112,101,110,115,46,99,108,111,117,100),r(99,115,115,45,116,114,105,99,107,115,46,99,111,109),r(99,100,112,110,46,105,111),r(112,101,110,115,46,105,111),r(103,97,110,110,111,110,46,116,118),r(99,111,100,101,99,97,110,121,111,110,46,110,101,116),r(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),r(99,101,114,101,98,114,97,120,46,99,111,46,117,107),r(116,121,109,112,97,110,117,115,46,110,101,116),r(116,119,101,101,110,109,97,120,46,99,111,109),r(116,119,101,101,110,108,105,116,101,46,99,111,109),r(112,108,110,107,114,46,99,111),r(104,111,116,106,97,114,46,99,111,109),r(119,101,98,112,97,99,107,98,105,110,46,99,111,109),r(97,114,99,104,105,118,101,46,111,114,103),r(99,111,100,101,115,97,110,100,98,111,120,46,105,111),r(99,115,98,46,97,112,112),r(115,116,97,99,107,98,108,105,116,122,46,99,111,109),r(115,116,97,99,107,98,108,105,116,122,46,105,111),r(99,111,100,105,101,114,46,105,111),r(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),r(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),r(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),r(106,115,102,105,100,100,108,101,46,110,101,116)],E=function(){u&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",E):(document.removeEventListener("readystatechange",E),u&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(r(37,99,87,97,114,110,105,110,103),r(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(r(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"ScrambleTextPlugin"+r(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(r(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),r(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},e=C.length;for(setTimeout(E,50);--e>-1;)if(-1!==D.indexOf(C[e]))return!0;return F||!setTimeout((function(){u&&(window.location.href=r(104,116,116,112,115,58,47,47)+s+r(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=ScrambleTextPlugin&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),o=/\s+/g,a=(D,u)=>{let F=u.length,C="";for(;--D>-1;)C+=u[~~(Math.random()*F)];return C},l="ABCDEFGHIJKLMNOPQRSTUVWXYZ",B=l.toLowerCase(),A={upperCase:new E(l),lowerCase:new E(B),upperAndLowerCase:new E(l+B)},h=()=>{t=e=n()};const c={version:"3.10.3",name:"scrambleText",register(D,u,F){e=D,h()},init(D,u,e,n,r){if(t||h(),this.prop="innerHTML"in D?"innerHTML":"textContent"in D?"textContent":0,!this.prop)return;this.target=D,"object"!=typeof u&&(u={text:u});let s,a,l,B,c=u.text||u.value||"",d=!1!==u.trim,g=this;return g.delimiter=s=u.delimiter||"",g.original=C(F(D).replace(o," ").split(" ").join(""),s,d),"{original}"!==c&&!0!==c&&null!=c||(c=g.original.join(s)),g.text=C((c||"").replace(o," "),s,d),g.hasClass=!(!u.newClass&&!u.oldClass),g.newClass=u.newClass,g.oldClass=u.oldClass,B=""===s,g.textHasEmoji=B&&!!g.text.emoji,g.charsHaveEmoji=!!u.chars&&!!C(u.chars).emoji,g.length=B?g.original.length:g.original.join(s).length,g.lengthDif=(B?g.text.length:g.text.join(s).length)-g.length,g.fillChar=u.fillChar||u.chars&&~u.chars.indexOf(" ")?" ":"",g.charSet=l=A[u.chars||"upperCase"]||new E(u.chars),g.speed=.05/(u.speed||1),g.prevScrambleTime=0,g.setIndex=20*Math.random()|0,a=g.length+Math.max(g.lengthDif,0),a>l.length&&l.grow(a),g.chars=l.sets[g.setIndex],g.revealDelay=u.revealDelay||0,g.tweenLength=!1!==u.tweenLength,g.tween=e,g.rightToLeft=!!u.rightToLeft,g._props.push("scrambleText","text"),i},render(D,u){let F,E,e,t,n,r,s,i,o,a,l,{target:B,prop:A,text:h,delimiter:c,tween:d,prevScrambleTime:g,revealDelay:p,setIndex:f,chars:w,charSet:m,length:x,textHasEmoji:j,charsHaveEmoji:b,lengthDif:T,tweenLength:v,oldClass:y,newClass:S,rightToLeft:L,fillChar:_,speed:H,original:M,hasClass:O}=u,I=h.length,P=d._time,W=P-g;p&&(d._from&&(P=d._dur-P),D=0===P?0:P<p?1e-6:P===d._dur?1:d._ease((P-p)/(d._dur-p))),D<0?D=0:D>1&&(D=1),L&&(D=1-D),F=~~(D*I+.5),D?((W>H||W<-H)&&(u.setIndex=f=(f+(19*Math.random()|0))%20,u.chars=m.sets[f],u.prevScrambleTime+=W),t=w):t=M.join(c),l=d._from?D:1-D,a=x+(v?d._from?l*l*l:1-l*l*l:1)*T,L?1!==D||!d._from&&"isFromStart"!==d.data?(s=h.slice(F).join(c),e=b?C(t).slice(0,a-(j?C(s):s).length+.5|0).join(""):t.substr(0,a-(j?C(s):s).length+.5|0),t=s):(e="",t=M.join(c)):(e=h.slice(0,F).join(c),E=(j?C(e):e).length,t=b?C(t).slice(E,a+.5|0).join(""):t.substr(E,a-E+.5|0)),O?(i=L?y:S,o=L?S:y,n=i&&0!==F,r=o&&F!==I,s=(n?"<span class='"+i+"'>":"")+e+(n?"</span>":"")+(r?"<span class='"+o+"'>":"")+c+t+(r?"</span>":"")):s=e+c+t,B[A]=" "===_&&~s.indexOf(" ")?s.split(" ").join(" "):s}};c.emojiSafeSplit=C,c.getText=F,n()&&e.registerPlugin(c);export default c;export{c as ScrambleTextPlugin}; |
/*! | ||
* ScrollSmoother 3.10.2 | ||
* ScrollSmoother 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
let e,t,r,o,n,s,i,a,l,c,h,d,g=()=>"undefined"!=typeof window,f=()=>e||g()&&(e=window.gsap)&&e.registerPlugin&&e,u=function(){return String.fromCharCode.apply(null,arguments)},p=u(103,114,101,101,110,115,111,99,107,46,99,111,109),m=(function(e){var t="undefined"!=typeof window,r=0===(t?window.location.href:"").indexOf(u(102,105,108,101,58,47,47))||-1!==e.indexOf(u(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(u(49,50,55,46,48,32,48,46,49)),o=[p,u(99,111,100,101,112,101,110,46,105,111),u(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),u(99,111,100,101,112,101,110,46,100,101,118),u(99,111,100,101,112,101,110,46,97,112,112),u(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),u(112,101,110,115,46,99,108,111,117,100),u(99,115,115,45,116,114,105,99,107,115,46,99,111,109),u(99,100,112,110,46,105,111),u(112,101,110,115,46,105,111),u(103,97,110,110,111,110,46,116,118),u(99,111,100,101,99,97,110,121,111,110,46,110,101,116),u(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),u(99,101,114,101,98,114,97,120,46,99,111,46,117,107),u(116,121,109,112,97,110,117,115,46,110,101,116),u(116,119,101,101,110,109,97,120,46,99,111,109),u(116,119,101,101,110,108,105,116,101,46,99,111,109),u(112,108,110,107,114,46,99,111),u(104,111,116,106,97,114,46,99,111,109),u(119,101,98,112,97,99,107,98,105,110,46,99,111,109),u(97,114,99,104,105,118,101,46,111,114,103),u(99,111,100,101,115,97,110,100,98,111,120,46,105,111),u(99,115,98,46,97,112,112),u(115,116,97,99,107,98,108,105,116,122,46,99,111,109),u(115,116,97,99,107,98,108,105,116,122,46,105,111),u(99,111,100,105,101,114,46,105,111),u(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),u(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),u(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),u(106,115,102,105,100,100,108,101,46,110,101,116)],n=function(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",n):(document.removeEventListener("readystatechange",n),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(u(37,99,87,97,114,110,105,110,103),u(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(u(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"ScrollSmoother"+u(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(u(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),u(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},s=o.length;for(setTimeout(n,50);--s>-1;)if(-1!==e.indexOf(o[s]))return!0;r||setTimeout((function(){t&&(window.location.href=u(104,116,116,112,115,58,47,47)+p+u(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=ScrollSmoother&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),e=>{let t=o.createElement("div");return t.classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(t,e),t.appendChild(e),t});class w{constructor(g){t||w.register(e)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),g=this.vars=g||{},c&&c.kill(),c=this;let f,u,p,y,v,S,b,T,x,E,k,P,C=l.getScrollFunc(r),R=1===l.isTouch?!0===g.smoothTouch?.8:parseFloat(g.smoothTouch)||0:0===g.smooth||!1===g.smooth?0:parseFloat(g.smooth)||.8,A=0,M=0,_=1,F=g.onUpdate,H=g.onStop,L=d(0),B=()=>L.update(-A),I={y:0},O=()=>f.style.overflow="visible",N=e=>{let t=e.getTween();t&&(t.pause(),t._time=t._dur,t._tTime=t._tDur),k=!1,e.animation.progress(e.progress,!0)},U=(e,t)=>{(e!==A&&!x||t)&&(R&&(f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+e+", 0, 1)"),M=e-A,A=e,l.isUpdating||l.update())},z=function(e){return arguments.length?(x&&(A=-e),I.y=-e,k=!0,C(e),this):-A},V=e=>{u.scrollTop=0,l.isInViewport(e.target)||e.target===P||this.scrollTo(e.target,!1,"center center"),P=e.target},W=(t,r)=>{let o,n,s,i;v.forEach(r=>{o=r.pins,i=r.markers,t.forEach(t=>{t.trigger!==r.trigger&&t.pinnedContainer!==r.trigger||r===t||(n=t.start,s=(n-r.start-r.offset)/r.ratio-(n-r.start),o.forEach(e=>s-=e.distance/r.ratio-e.distance),t.setPositions(n+s,t.end+s),t.markerStart&&i.push(e.quickSetter([t.markerStart,t.markerEnd],"y","px")),t.pin&&t.end>0&&(s=t.end-t.start,o.push({start:t.start,end:t.end,distance:s,trig:t}),r.setPositions(r.start,r.end+s),r.vars.onRefresh(r)))})})},q=()=>{O(),requestAnimationFrame(O),v&&(v.forEach(e=>{let t=e.start,r=e.auto?Math.min(l.maxScroll(e.scroller),e.end):t+(e.end-t)/e.ratio,o=(r-e.end)/2;t-=o,r-=o,e.offset=o||1e-4,e.pins.length=0,e.setPositions(Math.min(t,r),Math.max(t,r)),e.vars.onRefresh(e)}),W(l.sort())),L.reset()},D=()=>v&&v.forEach(e=>e.vars.onRefresh(e)),Y=()=>(v&&v.forEach(e=>e.vars.onRefreshInit(e)),D),j=(e,t,r,o)=>()=>{let n="function"==typeof t?t(r,o):t;return n||0===n||(n=o.getAttribute("data-"+e)||("speed"===e?1:0)),o.setAttribute("data-"+e,n),"auto"===n?n:parseFloat(n)},K=(t,o,s,i)=>{let c,d,g,f,p,m,w=j("speed",o,i,t),y=j("lag",s,i,t),S=e.getProperty(t,"y"),b=t._gsap,T=()=>{o=w(),s=y(),c=parseFloat(o)||1,g="auto"===o,p=g?0:.5,f&&f.kill(),f=s&&e.to(t,{ease:h,overwrite:!1,y:"+=0",duration:s}),d&&(d.ratio=c,d.autoSpeed=g)},x=()=>{b.y=S+"px",b.renderTransform(1),T()},E=[],k=[],P=0,C=e=>{if(g){x();let o=((e,t)=>{let o,s,i=e.parentNode||n,a=e.getBoundingClientRect(),l=i.getBoundingClientRect(),c=l.top-a.top,h=l.bottom-a.bottom,d=(Math.abs(c)>Math.abs(h)?c:h)/(1-t),g=-d*t;return d>0&&(o=l.height/(r.innerHeight+l.height),s=.5===o?2*l.height:2*Math.min(l.height,-d*o/(2*o-1)),g+=-s/2,d+=s),{change:d,offset:g}})(t,a(0,1,-e.start/(e.end-e.start)));P=o.change,m=o.offset}else P=(e.end-e.start)*(1-c),m=0;E.forEach(e=>P-=e.distance*(1-c)),e.vars.onUpdate(e),f&&f.progress(1)};return T(),(1!==c||g||f)&&(d=l.create({trigger:g?t.parentNode:t,scroller:u,scrub:!0,refreshPriority:-999,onRefreshInit:x,onRefresh:C,onKill:e=>{let t=v.indexOf(e);t>=0&&v.splice(t,1)},onUpdate:t=>{let r,o,n,s=S+P*(t.progress-p),i=E.length,a=0;if(t.offset){if(i){for(o=-I.y,n=t.end;i--;){if(r=E[i],r.trig.isActive||o>=r.start&&o<=r.end)return void(f&&(r.trig.progress+=r.trig.direction<0?.001:-.001,r.trig.update(0,0,1),f.resetTo("y",parseFloat(b.y),-M,!0),_&&f.progress(1)));o>r.end&&(a+=r.distance),n-=r.distance}s=S+a+P*((e.utils.clamp(t.start,t.end,o)-t.start-a)/(n-t.start)-p)}l=s+m,s=Math.round(1e5*l)/1e5||0,k.length&&!g&&k.forEach(e=>e(s-a)),f?(f.resetTo("y",s,-M,!0),_&&f.progress(1)):(b.y=s+"px",b.renderTransform(1))}var l}}),C(d),e.core.getCache(d.trigger).stRevert=Y,d.startY=S,d.pins=E,d.markers=k,d.ratio=c,d.autoSpeed=g,t.style.willChange="transform"),d};function G(){return p=f.clientHeight,f.style.overflow="visible",s.style.height=p+"px",p-r.innerHeight}l.addEventListener("refresh",q),e.delayedCall(.5,()=>_=0),this.scrollTop=z,this.scrollTo=(t,o,n)=>{let s=e.utils.clamp(0,l.maxScroll(r),isNaN(t)?this.offset(t,n):+t);o?x?e.to(this,{duration:R,scrollTop:s,overwrite:"auto",ease:h}):C(s):z(s)},this.offset=(t,r)=>{t=i(t)[0];let o,n=e.getProperty(t,"y"),s=l.create({trigger:t,start:r||"top top"});return v&&W([s]),o=s.start,s.kill(!1),e.set(t,{y:n}),o},this.content=function(t){return arguments.length?(f=i(t||"#smooth-content")[0]||s.children[0],T=f.getAttribute("style")||"",e.set(f,{overflow:"visible",width:"100%"}),this):f},this.wrapper=function(t){return arguments.length?(u=i(t||"#smooth-wrapper")[0]||m(f),b=u.getAttribute("style")||"",G(),e.set(u,R?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):u},this.effects=(e,t)=>{if(v||(v=[]),!e)return v.slice(0);(e=i(e)).forEach(e=>{let t=v.length;for(;t--;)v[t].trigger===e&&(v[t].kill(),v.splice(t,1))}),t=t||{};let r,o,{speed:n,lag:s}=t,a=[];for(r=0;r<e.length;r++)o=K(e[r],n,s,r),o&&a.push(o);return v.push(...a),a},this.content(g.content),this.wrapper(g.wrapper),this.render=e=>U(e||0===e?e:A),this.getVelocity=()=>L.getVelocity(-A),l.scrollerProxy(u,{scrollTop:z,scrollHeight:()=>s.scrollHeight,fixedMarkers:!1!==g.fixedMarkers&&!!R,content:f,getBoundingClientRect:()=>({top:0,left:0,width:r.innerWidth,height:r.innerHeight})}),l.defaults({scroller:u});let J=l.getAll().filter(e=>e.scroller===r||e.scroller===u);J.forEach(e=>e.revert(!0)),y=l.create({animation:e.to(I,{y:()=>r.innerHeight-p,ease:"none",data:"ScrollSmoother",duration:100,onUpdate:()=>{let e=k;e&&(I.y=A,N(y)),U(I.y,e),B(),F&&!x&&F(this)}}),onRefreshInit:()=>I.y=0,id:"ScrollSmoother",scroller:r,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:G,onScrubComplete:()=>{L.reset(),H&&H(this)},scrub:R||!0,onRefresh:e=>{N(e),U(I.y)}}),this.smooth=function(e){return R=e,arguments.length?y.scrubDuration(e):y.getTween()?y.getTween().duration():0},y.getTween()&&(y.getTween().vars.ease=g.ease||h),this.scrollTrigger=y,g.effects&&this.effects(!0===g.effects?"[data-speed], [data-lag]":g.effects,{}),J.forEach(e=>{e.vars.scroller=u,e.init(e.vars,e.animation)}),this.paused=function(e){return arguments.length?(!!x!==e&&(e?(y.getTween()&&y.getTween().pause(),C(-A),L.reset(),E=l.normalizeScroll(),E&&E.disable(),x=l.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,onChangeY:()=>z(-A)})):(x.kill(),x=0,E&&E.enable(),y.progress=(-A-y.start)/(y.end-y.start),N(y))),this):!!x},this.kill=()=>{this.paused(!1),N(y),y.kill();let e=v?v.length:0;for(;e--;)v[e].kill();l.scrollerProxy(u),l.removeEventListener("refresh",q),u.style.cssText=b,f.style.cssText=T;let t=l.defaults({});t&&t.scroller===u&&l.defaults({scroller:r}),this.observer&&l.normalizeScroll(!1),clearInterval(S),c=null,r.removeEventListener("focusin",V)},g.normalizeScroll&&(this.observer=l.normalizeScroll({debounce:!0})),l.config(g),"overscrollBehavior"in r.getComputedStyle(s)&&e.set(s,{overscrollBehavior:"none"}),r.addEventListener("focusin",V),S=setInterval(B,250),"loading"===o.readyState||requestAnimationFrame(()=>l.refresh())}get progress(){return this.scrollTrigger.animation._time/100}static register(c){return t||(e=c||f(),g()&&window.document&&(r=window,o=document,n=o.documentElement,s=o.body),e&&(i=e.utils.toArray,a=e.utils.clamp,h=e.parseEase("expo"),l=e.core.globals().ScrollTrigger,e.core.globals("ScrollSmoother",w),s&&l&&(d=l.core._getVelocityProp,t=1))),t}}w.version="3.10.2",w.create=e=>c&&e&&c.content()===i(e.content)[0]?c:new w(e),w.get=()=>c,f()&&e.registerPlugin(w);export default w;export{w as ScrollSmoother}; | ||
let e,t,r,o,s,n,i,l,a,c,h,d,g,u=()=>"undefined"!=typeof window,f=()=>e||u()&&(e=window.gsap)&&e.registerPlugin&&e,p=function(){return String.fromCharCode.apply(null,arguments)},m=p(103,114,101,101,110,115,111,99,107,46,99,111,109),w=(function(e){var t="undefined"!=typeof window,r=0===(t?window.location.href:"").indexOf(p(102,105,108,101,58,47,47))||-1!==e.indexOf(p(108,111,99,97,108,104,111,115,116))||-1!==e.indexOf(p(49,50,55,46,48,32,48,46,49)),o=[m,p(99,111,100,101,112,101,110,46,105,111),p(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),p(99,111,100,101,112,101,110,46,100,101,118),p(99,111,100,101,112,101,110,46,97,112,112),p(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),p(112,101,110,115,46,99,108,111,117,100),p(99,115,115,45,116,114,105,99,107,115,46,99,111,109),p(99,100,112,110,46,105,111),p(112,101,110,115,46,105,111),p(103,97,110,110,111,110,46,116,118),p(99,111,100,101,99,97,110,121,111,110,46,110,101,116),p(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),p(99,101,114,101,98,114,97,120,46,99,111,46,117,107),p(116,121,109,112,97,110,117,115,46,110,101,116),p(116,119,101,101,110,109,97,120,46,99,111,109),p(116,119,101,101,110,108,105,116,101,46,99,111,109),p(112,108,110,107,114,46,99,111),p(104,111,116,106,97,114,46,99,111,109),p(119,101,98,112,97,99,107,98,105,110,46,99,111,109),p(97,114,99,104,105,118,101,46,111,114,103),p(99,111,100,101,115,97,110,100,98,111,120,46,105,111),p(99,115,98,46,97,112,112),p(115,116,97,99,107,98,108,105,116,122,46,99,111,109),p(115,116,97,99,107,98,108,105,116,122,46,105,111),p(99,111,100,105,101,114,46,105,111),p(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),p(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),p(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),p(106,115,102,105,100,100,108,101,46,110,101,116)],s=function(){t&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",s):(document.removeEventListener("readystatechange",s),t&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(p(37,99,87,97,114,110,105,110,103),p(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(p(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"ScrollSmoother"+p(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(p(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),p(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},n=o.length;for(setTimeout(s,50);--n>-1;)if(-1!==e.indexOf(o[n]))return!0;r||setTimeout((function(){t&&(window.location.href=p(104,116,116,112,115,58,47,47)+m+p(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=ScrollSmoother&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),e=>{let t=o.querySelector(".ScrollSmoother-wrapper");return t||(t=o.createElement("div"),t.classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(t,e),t.appendChild(e)),t});class y{constructor(u){t||y.register(e)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),u=this.vars=u||{},c&&c.kill(),c=this;let f,p,m,v,S,b,T,x,E,k,C,P,R,A,{smoothTouch:_,onUpdate:F,onStop:M,smooth:z,onFocusIn:I,normalizeScroll:L}=u,O=a.getScrollFunc(r),B=1===a.isTouch?!0===_?.8:parseFloat(_)||0:0===z||!1===z?0:parseFloat(z)||.8,H=0,N=0,U=1,q=d(0),V=()=>q.update(-H),W={y:0},D=()=>f.style.overflow="visible",Y=e=>{e.update();let t=e.getTween();t&&(t.pause(),t._time=t._dur,t._tTime=t._tDur),R=!1,e.animation.progress(e.progress,!0)},j=(e,t)=>{(e!==H&&!k||t)&&(B&&(f.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+e+", 0, 1)"),N=e-H,H=e,a.isUpdating||a.update())},K=function(e){return arguments.length?(k&&(H=-e),W.y=-e,R=!0,O(e),this):-W.y},G=e=>{p.scrollTop=0,I&&!1===I(this,e)||(a.isInViewport(e.target)||e.target===A||this.scrollTo(e.target,!1,"center center"),A=e.target)},J=(t,r)=>{let o,s,n,i;S.forEach(r=>{o=r.pins,i=r.markers,t.forEach(t=>{t.trigger!==r.trigger&&t.pinnedContainer!==r.trigger||r===t||(s=t.start,n=(s-r.start-r.offset)/r.ratio-(s-r.start),o.forEach(e=>n-=e.distance/r.ratio-e.distance),t.setPositions(s+n,t.end+n),t.markerStart&&i.push(e.quickSetter([t.markerStart,t.markerEnd],"y","px")),t.pin&&t.end>0&&(n=t.end-t.start,o.push({start:t.start,end:t.end,distance:n,trig:t}),r.setPositions(r.start,r.end+n),r.vars.onRefresh(r)))})})},Q=()=>{D(),requestAnimationFrame(D),S&&(S.forEach(e=>{let t=e.start,r=e.auto?Math.min(a.maxScroll(e.scroller),e.end):t+(e.end-t)/e.ratio,o=(r-e.end)/2;t-=o,r-=o,e.offset=o||1e-4,e.pins.length=0,e.setPositions(Math.min(t,r),Math.max(t,r)),e.vars.onRefresh(e)}),J(a.sort())),q.reset()},X=()=>S&&S.forEach(e=>e.vars.onRefresh(e)),Z=()=>(S&&S.forEach(e=>e.vars.onRefreshInit(e)),X),$=(e,t,r,o)=>()=>{let s="function"==typeof t?t(r,o):t;return s||0===s||(s=o.getAttribute("data-"+e)||("speed"===e?1:0)),o.setAttribute("data-"+e,s),"auto"===s?s:parseFloat(s)},ee=(t,o,n,i)=>{let c,d,g,u,f,m,w=$("speed",o,i,t),y=$("lag",n,i,t),v=e.getProperty(t,"y"),b=t._gsap,T=()=>{o=w(),n=y(),c=parseFloat(o)||1,g="auto"===o,f=g?0:.5,u&&u.kill(),u=n&&e.to(t,{ease:h,overwrite:!1,y:"+=0",duration:n}),d&&(d.ratio=c,d.autoSpeed=g)},x=()=>{b.y=v+"px",b.renderTransform(1),T()},E=[],k=[],C=0,P=e=>{if(g){x();let o=((e,t)=>{let o,n,i=e.parentNode||s,l=e.getBoundingClientRect(),a=i.getBoundingClientRect(),c=a.top-l.top,h=a.bottom-l.bottom,d=(Math.abs(c)>Math.abs(h)?c:h)/(1-t),g=-d*t;return d>0&&(o=a.height/(r.innerHeight+a.height),n=.5===o?2*a.height:2*Math.min(a.height,-d*o/(2*o-1)),g+=-n/2,d+=n),{change:d,offset:g}})(t,l(0,1,-e.start/(e.end-e.start)));C=o.change,m=o.offset}else C=(e.end-e.start)*(1-c),m=0;E.forEach(e=>C-=e.distance*(1-c)),e.vars.onUpdate(e),u&&u.progress(1)};return T(),(1!==c||g||u)&&(d=a.create({trigger:g?t.parentNode:t,scroller:p,scrub:!0,refreshPriority:-999,onRefreshInit:x,onRefresh:P,onKill:e=>{let t=S.indexOf(e);t>=0&&S.splice(t,1),x()},onUpdate:t=>{let r,o,s,n=v+C*(t.progress-f),i=E.length,l=0;if(t.offset){if(i){for(o=-W.y,s=t.end;i--;){if(r=E[i],r.trig.isActive||o>=r.start&&o<=r.end)return void(u&&(r.trig.progress+=r.trig.direction<0?.001:-.001,r.trig.update(0,0,1),u.resetTo("y",parseFloat(b.y),-N,!0),U&&u.progress(1)));o>r.end&&(l+=r.distance),s-=r.distance}n=v+l+C*((e.utils.clamp(t.start,t.end,o)-t.start-l)/(s-t.start)-f)}a=n+m,n=Math.round(1e5*a)/1e5||0,k.length&&!g&&k.forEach(e=>e(n-l)),u?(u.resetTo("y",n,-N,!0),U&&u.progress(1)):(b.y=n+"px",b.renderTransform(1))}var a}}),P(d),e.core.getCache(d.trigger).stRevert=Z,d.startY=v,d.pins=E,d.markers=k,d.ratio=c,d.autoSpeed=g,t.style.willChange="transform"),d};function te(){return m=f.clientHeight,f.style.overflow="visible",n.style.height=m+"px",m-r.innerHeight}a.addEventListener("refresh",Q),e.delayedCall(.5,()=>U=0),this.scrollTop=K,this.scrollTo=(t,o,s)=>{let n=e.utils.clamp(0,a.maxScroll(r),isNaN(t)?this.offset(t,s):+t);o?k?e.to(this,{duration:B,scrollTop:n,overwrite:"auto",ease:h}):O(n):K(n)},this.offset=(t,r)=>{let o,s=(t=i(t)[0]).style.cssText,n=a.create({trigger:t,start:r||"top top"});return S&&J([n]),o=n.start,n.kill(!1),t.style.cssText=s,e.core.getCache(t).uncache=1,o},this.content=function(t){if(arguments.length){let r=i(t||"#smooth-content")[0]||n.children[0];return r!==f&&(f=r,E=f.getAttribute("style")||"",e.set(f,{overflow:"visible",width:"100%",boxSizing:"border-box"})),this}return f},this.wrapper=function(t){return arguments.length?(p=i(t||"#smooth-wrapper")[0]||w(f),x=p.getAttribute("style")||"",te(),e.set(p,B?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):p},this.effects=(e,t)=>{if(S||(S=[]),!e)return S.slice(0);(e=i(e)).forEach(e=>{let t=S.length;for(;t--;)S[t].trigger===e&&(S[t].kill(),S.splice(t,1))}),t=t||{};let r,o,{speed:s,lag:n}=t,l=[];for(r=0;r<e.length;r++)o=ee(e[r],s,n,r),o&&l.push(o);return S.push(...l),l},this.sections=(e,t)=>{if(b||(b=[]),!e)return b.slice(0);let r=i(e).map(e=>a.create({trigger:e,start:"top 120%",end:"bottom -20%",onToggle:t=>{e.style.opacity=t.isActive?"1":"0",e.style.pointerEvents=t.isActive?"all":"none"}}));return t&&t.add?b.push(...r):b=r.slice(0),r},this.content(u.content),this.wrapper(u.wrapper),this.render=e=>j(e||0===e?e:H),this.getVelocity=()=>q.getVelocity(-H),a.scrollerProxy(p,{scrollTop:K,scrollHeight:()=>te()&&n.scrollHeight,fixedMarkers:!1!==u.fixedMarkers&&!!B,content:f,getBoundingClientRect:()=>({top:0,left:0,width:r.innerWidth,height:r.innerHeight})}),a.defaults({scroller:p});let re=a.getAll().filter(e=>e.scroller===r||e.scroller===p);re.forEach(e=>e.revert(!0)),v=a.create({animation:e.to(W,{y:()=>-te(),ease:"none",data:"ScrollSmoother",duration:100,onUpdate:()=>{let e=R;e&&(W.y=H,Y(v)),j(W.y,e),V(),F&&!k&&F(this)}}),onRefreshInit:()=>{P=W.y,W.y=0},id:"ScrollSmoother",scroller:r,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:te,onScrubComplete:()=>{q.reset(),M&&M(this)},scrub:B||!0,onRefresh:e=>{Y(e),W.y=H=-O(),e.animation.progress(P/-e.end)}}),this.smooth=function(e){return B=e,arguments.length?v.scrubDuration(e):v.getTween()?v.getTween().duration():0},v.getTween()&&(v.getTween().vars.ease=u.ease||h),this.scrollTrigger=v,u.effects&&this.effects(!0===u.effects?"[data-speed], [data-lag]":u.effects,{}),u.sections&&this.sections(!0===u.sections?"[data-section]":u.sections),re.forEach(e=>{e.vars.scroller=p,e.init(e.vars,e.animation)}),this.paused=function(e,t){return arguments.length?(!!k!==e&&(e?(v.getTween()&&v.getTween().pause(),O(-H),q.reset(),C=a.normalizeScroll(),C&&C.disable(),k=a.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:()=>K(-H)}),k.nested=g(s,"wheel,touch,scroll",!0,!1!==t)):(k.nested.kill(),k.kill(),k=0,C&&C.enable(),v.progress=(-H-v.start)/(v.end-v.start),Y(v))),this):!!k},this.kill=()=>{this.paused(!1),Y(v),v.kill();let e=(S||[]).concat(b||[]),t=e.length;for(;t--;)e[t].kill();a.scrollerProxy(p),a.removeEventListener("refresh",Q),n.style.removeProperty("height"),p.style.cssText=x,f.style.cssText=E;let o=a.defaults({});o&&o.scroller===p&&a.defaults({scroller:r}),this.normalizer&&a.normalizeScroll(!1),clearInterval(T),c=null,r.removeEventListener("focusin",G)},this.refresh=(e,t)=>v.refresh(e,t),L&&(this.normalizer=a.normalizeScroll(!0===L?{debounce:!0}:L)),a.config(u),"overscrollBehavior"in r.getComputedStyle(n)&&e.set(n,{overscrollBehavior:"none"}),r.addEventListener("focusin",G),T=setInterval(V,250),"loading"===o.readyState||requestAnimationFrame(()=>a.refresh())}get progress(){return this.scrollTrigger.animation._time/100}static register(c){return t||(e=c||f(),u()&&window.document&&(r=window,o=document,s=o.documentElement,n=o.body),e&&(i=e.utils.toArray,l=e.utils.clamp,h=e.parseEase("expo"),a=e.core.globals().ScrollTrigger,e.core.globals("ScrollSmoother",y),n&&a&&(d=a.core._getVelocityProp,g=a.core._inputObserver,y.refresh=a.refresh,t=1))),t}}y.version="3.10.3",y.create=e=>c&&e&&c.content()===i(e.content)[0]?c:new y(e),y.get=()=>c,f()&&e.registerPlugin(y);export default y;export{y as ScrollSmoother}; |
/*! | ||
* ScrollToPlugin 3.10.2 | ||
* ScrollToPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
let e,t,l,o,s,r,n,i=()=>"undefined"!=typeof window,p=()=>e||i()&&(e=window.gsap)&&e.registerPlugin&&e,a=e=>"string"==typeof e,c=e=>"function"==typeof e,y=(e,t)=>{let r="x"===t?"Width":"Height",n="scroll"+r,i="client"+r;return e===l||e===o||e===s?Math.max(o[n],s[n])-(l["inner"+r]||o[i]||s[i]):e[n]-e["offset"+r]},f=(e,t)=>{let r="scroll"+("x"===t?"Left":"Top");return e===l&&(null!=e.pageXOffset?r="page"+t.toUpperCase()+"Offset":e=null!=o[r]?o:s),()=>e[r]},u=(e,t)=>{if(!(e=r(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};let n=e.getBoundingClientRect(),i=!t||t===l||t===s,p=i?{top:o.clientTop-(l.pageYOffset||o.scrollTop||s.scrollTop||0),left:o.clientLeft-(l.pageXOffset||o.scrollLeft||s.scrollLeft||0)}:t.getBoundingClientRect(),a={x:n.left-p.left,y:n.top-p.top};return!i&&t&&(a.x+=f(t,"x")(),a.y+=f(t,"y")()),a},x=(e,t,l,o,s)=>isNaN(e)||"object"==typeof e?a(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+o-s:"max"===e?y(t,l)-s:Math.min(y(t,l),u(e,t)[l]-s):parseFloat(e)-s,g=()=>{e=p(),i()&&e&&document.body&&(l=window,s=document.body,o=document.documentElement,r=e.utils.toArray,e.config({autoKillThreshold:7}),n=e.config(),t=1)};const d={version:"3.10.2",name:"scrollTo",rawVars:1,register(t){e=t,g()},init(o,s,r,n,i){t||g();let p=this,y=e.getProperty(o,"scrollSnapType");p.isWin=o===l,p.target=o,p.tween=r,s=((e,t,l,o)=>{if(c(e)&&(e=e(t,l,o)),"object"!=typeof e)return a(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};{let s,r={};for(s in e)r[s]="onAutoKill"!==s&&c(e[s])?e[s](t,l,o):e[s];return r}})(s,n,o,i),p.vars=s,p.autoKill=!!s.autoKill,p.getX=f(o,"x"),p.getY=f(o,"y"),p.x=p.xPrev=p.getX(),p.y=p.yPrev=p.getY(),y&&"none"!==y&&(p.snap=1,p.snapInline=o.style.scrollSnapType,o.style.scrollSnapType="none"),null!=s.x?(p.add(p,"x",p.x,x(s.x,o,"x",p.x,s.offsetX||0),n,i),p._props.push("scrollTo_x")):p.skipX=1,null!=s.y?(p.add(p,"y",p.y,x(s.y,o,"y",p.y,s.offsetY||0),n,i),p._props.push("scrollTo_y")):p.skipY=1},render(e,t){let o,s,r,i,p,a=t._pt,{target:c,tween:f,autoKill:u,xPrev:x,yPrev:g,isWin:d,snap:T,snapInline:k}=t;for(;a;)a.r(e,a.d),a=a._next;o=d||!t.skipX?t.getX():x,s=d||!t.skipY?t.getY():g,r=s-g,i=o-x,p=n.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),u&&(!t.skipX&&(i>p||i<-p)&&o<y(c,"x")&&(t.skipX=1),!t.skipY&&(r>p||r<-p)&&s<y(c,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(f.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(f,t.vars.onAutoKillParams||[]))),d?l.scrollTo(t.skipX?o:t.x,t.skipY?s:t.y):(t.skipY||(c.scrollTop=t.y),t.skipX||(c.scrollLeft=t.x)),!T||1!==e&&0!==e||(s=c.scrollTop,o=c.scrollLeft,k?c.style.scrollSnapType=k:c.style.removeProperty("scroll-snap-type"),c.scrollTop=s+1,c.scrollLeft=o+1,c.scrollTop=s,c.scrollLeft=o),t.xPrev=t.x,t.yPrev=t.y},kill(e){let t="scrollTo"===e;(t||"scrollTo_x"===e)&&(this.skipX=1),(t||"scrollTo_y"===e)&&(this.skipY=1)}};d.max=y,d.getOffset=u,d.buildGetter=f,p()&&e.registerPlugin(d);export default d;export{d as ScrollToPlugin}; | ||
let e,t,l,o,s,r,n,i=()=>"undefined"!=typeof window,p=()=>e||i()&&(e=window.gsap)&&e.registerPlugin&&e,a=e=>"string"==typeof e,c=e=>"function"==typeof e,y=(e,t)=>{let r="x"===t?"Width":"Height",n="scroll"+r,i="client"+r;return e===l||e===o||e===s?Math.max(o[n],s[n])-(l["inner"+r]||o[i]||s[i]):e[n]-e["offset"+r]},f=(e,t)=>{let r="scroll"+("x"===t?"Left":"Top");return e===l&&(null!=e.pageXOffset?r="page"+t.toUpperCase()+"Offset":e=null!=o[r]?o:s),()=>e[r]},u=(e,t)=>{if(!(e=r(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};let n=e.getBoundingClientRect(),i=!t||t===l||t===s,p=i?{top:o.clientTop-(l.pageYOffset||o.scrollTop||s.scrollTop||0),left:o.clientLeft-(l.pageXOffset||o.scrollLeft||s.scrollLeft||0)}:t.getBoundingClientRect(),a={x:n.left-p.left,y:n.top-p.top};return!i&&t&&(a.x+=f(t,"x")(),a.y+=f(t,"y")()),a},x=(e,t,l,o,s)=>isNaN(e)||"object"==typeof e?a(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+o-s:"max"===e?y(t,l)-s:Math.min(y(t,l),u(e,t)[l]-s):parseFloat(e)-s,g=()=>{e=p(),i()&&e&&document.body&&(l=window,s=document.body,o=document.documentElement,r=e.utils.toArray,e.config({autoKillThreshold:7}),n=e.config(),t=1)};const d={version:"3.10.3",name:"scrollTo",rawVars:1,register(t){e=t,g()},init(o,s,r,n,i){t||g();let p=this,y=e.getProperty(o,"scrollSnapType");p.isWin=o===l,p.target=o,p.tween=r,s=((e,t,l,o)=>{if(c(e)&&(e=e(t,l,o)),"object"!=typeof e)return a(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};{let s,r={};for(s in e)r[s]="onAutoKill"!==s&&c(e[s])?e[s](t,l,o):e[s];return r}})(s,n,o,i),p.vars=s,p.autoKill=!!s.autoKill,p.getX=f(o,"x"),p.getY=f(o,"y"),p.x=p.xPrev=p.getX(),p.y=p.yPrev=p.getY(),y&&"none"!==y&&(p.snap=1,p.snapInline=o.style.scrollSnapType,o.style.scrollSnapType="none"),null!=s.x?(p.add(p,"x",p.x,x(s.x,o,"x",p.x,s.offsetX||0),n,i),p._props.push("scrollTo_x")):p.skipX=1,null!=s.y?(p.add(p,"y",p.y,x(s.y,o,"y",p.y,s.offsetY||0),n,i),p._props.push("scrollTo_y")):p.skipY=1},render(e,t){let o,s,r,i,p,a=t._pt,{target:c,tween:f,autoKill:u,xPrev:x,yPrev:g,isWin:d,snap:T,snapInline:k}=t;for(;a;)a.r(e,a.d),a=a._next;o=d||!t.skipX?t.getX():x,s=d||!t.skipY?t.getY():g,r=s-g,i=o-x,p=n.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),u&&(!t.skipX&&(i>p||i<-p)&&o<y(c,"x")&&(t.skipX=1),!t.skipY&&(r>p||r<-p)&&s<y(c,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(f.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(f,t.vars.onAutoKillParams||[]))),d?l.scrollTo(t.skipX?o:t.x,t.skipY?s:t.y):(t.skipY||(c.scrollTop=t.y),t.skipX||(c.scrollLeft=t.x)),!T||1!==e&&0!==e||(s=c.scrollTop,o=c.scrollLeft,k?c.style.scrollSnapType=k:c.style.removeProperty("scroll-snap-type"),c.scrollTop=s+1,c.scrollLeft=o+1,c.scrollTop=s,c.scrollLeft=o),t.xPrev=t.x,t.yPrev=t.y},kill(e){let t="scrollTo"===e;(t||"scrollTo_x"===e)&&(this.skipX=1),(t||"scrollTo_y"===e)&&(this.skipY=1)}};d.max=y,d.getOffset=u,d.buildGetter=f,p()&&e.registerPlugin(d);export default d;export{d as ScrollToPlugin}; |
/*! | ||
* ScrollTrigger 3.10.2 | ||
* ScrollTrigger 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
let e,t,r,i,n,s,o,a,l,d,c,p,h=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,g=1,u=[],f=[],m=[],v=Date.now,y=(e,t)=>t,b=(e,t)=>~m.indexOf(e)&&m[m.indexOf(e)+1][t],x=e=>!!~c.indexOf(e),w=(e,t,r,i)=>e.addEventListener(t,r,{passive:!i}),T=(e,t,r)=>e.removeEventListener(t,r),S=()=>p&&p.isPressed||f.cache++,k=e=>t=>(t||0===t?(g&&(i.history.scrollRestoration="manual"),e(t),e.v=t,e.c=f.cache,p&&p.isPressed&&y("ss",t)):(f.cache!==e.c||y("ref"))&&(e.c=f.cache,e.v=e()),e.v),E={s:"scrollLeft",p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:k((function(e){return arguments.length?i.scrollTo(e,M.sc()):i.pageXOffset||n.scrollLeft||s.scrollLeft||o.scrollLeft||0}))},M={s:"scrollTop",p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:E,sc:k((function(e){return arguments.length?i.scrollTo(E.sc(),e):i.pageYOffset||n.scrollTop||s.scrollTop||o.scrollTop||0}))},P=t=>e.utils.toArray(t)[0]||("string"==typeof t&&!1!==e.config().nullTargetWarn?console.warn("Element not found:",t):null),C=(e,{s:t,sc:r})=>{let i=f.indexOf(e),n=r===M.sc?1:2;return!~i&&(i=f.push(e)-1),f[i+n]||(f[i+n]=b(e,t)||(x(e)?r:function(r){return arguments.length?e[t]=r:e[t]}))},_=(e,t,r)=>{let i=e,n=e,s=v(),o=s,a=t||50,l=Math.max(500,3*a),d=(e,t)=>{let l=v();t||l-s>a?(n=i,i=e,o=s,s=l):r?i+=e:i=n+(e-n)/(l-o)*(s-o)};return{update:d,reset:()=>{n=i=r?0:i,o=s=0},getVelocity:e=>{let t=o,a=n,c=v();return(e||0===e)&&e!==i&&d(e),s===o||c-o>l?0:(i+(r?a:-a))/((r?c:s)-t)*1e3}}},O=(e,t)=>(t&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e),A=e=>{let t=Math.max(...e),r=Math.min(...e);return Math.abs(t)>=Math.abs(r)?t:r},R=d=>(e=d||h(),e&&!t&&"undefined"!=typeof document&&document.body&&(i=window,n=document,s=n.documentElement,o=n.body,c=[i,n,s,o],r=e.utils.clamp,l="onpointerenter"in o?"pointer":"mouse",a=D.isTouch=i.matchMedia&&i.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in i||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,setTimeout(()=>g=0,500),t=1),t);E.op=M,f.cache=0;class D{constructor(e){this.init(e)}init(r){t||R(e)||console.warn("Please gsap.registerPlugin(Observer)"),d||(d=e.core.globals().ScrollTrigger,d&&d.core&&(()=>{let e=d.core,t=e.bridge||{},r=e._scrollers,i=e._proxies;r.push(...f),i.push(...m),f=r,m=i,y=(e,r)=>t[e](r)})());let{tolerance:c,dragMinimum:h,type:g,target:v,lineHeight:b,debounce:k,preventDefault:D,onStop:Y,onStopDelay:L,ignore:X,wheelSpeed:z,event:B,onDragStart:I,onDragEnd:H,onDrag:W,onPress:N,onRelease:F,onRight:V,onLeft:G,onUp:q,onDown:U,onChangeX:j,onChangeY:K,onChange:Z,onToggleX:$,onToggleY:J,onHover:Q,onHoverEnd:ee,onMove:te,ignoreCheck:re,isNormalizer:ie,onGestureStart:ne,onGestureEnd:se,onWheel:oe,onEnable:ae,onDisable:le,onClick:de,scrollSpeed:ce}=r;this.target=v=P(v)||s,this.vars=r,X&&(X=e.utils.toArray(X)),c=c||0,h=h||0,z=z||1,ce=ce||1,g=g||"wheel,touch,pointer",k=!1!==k,b||(b=parseFloat(i.getComputedStyle(o).lineHeight)||22);let pe,he,ge,ue,fe,me=this,ve=0,ye=0,be=C(v,E),xe=C(v,M),we=be(),Te=xe(),Se=("ontouchstart"in s?"touchstart,touchmove,touchcancel,touchend":g.indexOf("pointer")>=0&&!("onpointerdown"in s)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),ke=~g.indexOf("touch")&&!~g.indexOf("pointer")&&"pointerdown"===Se[0],Ee=x(v),Me=v.ownerDocument||n,Pe=[0,0,0],Ce=[0,0,0],_e=(e,t)=>(me.event=e)&&X&&~X.indexOf(e.target)||t&&ke&&"touch"!==e.pointerType||re&&re(e),Oe=()=>{let e=me.deltaX=A(Pe),t=me.deltaY=A(Ce),r=Math.abs(e)>=c,i=Math.abs(t)>=c;Z&&(r||i)&&Z(me,e,t,Pe,Ce),r&&(V&&me.deltaX>0&&V(me),G&&me.deltaX<0&&G(me),j&&j(me),$&&me.deltaX<0!=ve<0&&$(me),ve=me.deltaX,Pe[0]=Pe[1]=Pe[2]=0),i&&(U&&me.deltaY>0&&U(me),q&&me.deltaY<0&&q(me),K&&K(me),J&&me.deltaY<0!=ye<0&&J(me),ye=me.deltaY,Ce[0]=Ce[1]=Ce[2]=0),ue&&(te(me),ue=!1),ge&&(W(me),ge=!1),fe&&(oe(me),fe=!1),pe=0},Ae=(e,t,r)=>{Pe[r]+=e,Ce[r]+=t,me._vx.update(e,2===r),me._vy.update(t,2===r),k?pe||(pe=requestAnimationFrame(Oe)):Oe()},Re=e=>{if(_e(e,1))return;let t=(e=O(e,D)).clientX,r=e.clientY,i=t-me.x,n=r-me.y,s=me.isDragging;me.x=t,me.y=r,(s||Math.abs(me.startX-t)>=h||Math.abs(me.startY-r)>=h)&&(W&&(ge=!0),s||(me.isDragging=!0),Ae(i,n,2),s||I&&I(me))},De=me.onPress=e=>{_e(e,1)||(he.pause(),me.isPressed=!0,e=O(e,D),ve=ye=0,me.startX=me.x=e.clientX,me.startY=me.y=e.clientY,me._vx.reset(),me._vy.reset(),w(ie?v:Me,Se[1],Re,D),me.deltaX=me.deltaY=0,N&&N(me))},Ye=e=>{if(_e(e,1))return;T(ie?v:Me,Se[1],Re);let t=me.isDragging;t||(me._vx.reset(),me._vy.reset()),me.isDragging=me.isGesturing=me.isPressed=!1,Y&&!ie&&he.restart(!0),H&&t&&H(me),F&&F(me,t)},Le=e=>e.touches&&e.touches.length>1&&(me.isGesturing=!0)&&ne(e,me.isDragging),Xe=()=>(me.isGesturing=!1)||se(me),ze=e=>{if(_e(e))return;let t=be(),r=xe();Ae((t-we)*ce,(r-Te)*ce,1),we=t,Te=r,Y&&he.restart(!0)},Be=e=>{if(_e(e))return;e=O(e,D),oe&&(fe=!0);let t=(1===e.deltaMode?b:2===e.deltaMode?i.innerHeight:1)*z;Ae(e.deltaX*t,e.deltaY*t,0),Y&&!ie&&he.restart(!0)},Ie=e=>{if(_e(e))return;let t=e.clientX,r=e.clientY,i=t-me.x,n=r-me.y;me.x=t,me.y=r,te&&(ue=!0),(i||n)&&Ae(i,n,2)},He=e=>{me.event=e,Q(me)},We=e=>{me.event=e,ee(me)},Ne=e=>_e(e)||O(e,D)&&de(me);he=me._dc=e.delayedCall(L||.25,()=>{me._vx.reset(),me._vy.reset(),he.pause(),Y&&Y(me)}).pause(),me.deltaX=me.deltaY=0,me._vx=_(0,50,!0),me._vy=_(0,50,!0),me.scrollX=be,me.scrollY=xe,me.isDragging=me.isGesturing=me.isPressed=!1,me.enable=e=>(me.isEnabled||(w(Ee?Me:v,"scroll",S),g.indexOf("scroll")>=0&&w(Ee?Me:v,"scroll",ze,D),g.indexOf("wheel")>=0&&w(v,"wheel",Be,D),(g.indexOf("touch")>=0&&a||g.indexOf("pointer")>=0)&&(w(v,Se[0],De,D),w(Me,Se[2],Ye),w(Me,Se[3],Ye),de&&w(v,"click",Ne),ne&&w(Me,"gesturestart",Le),se&&w(Me,"gestureend",Xe),Q&&w(v,l+"enter",He),ee&&w(v,l+"leave",We),te&&w(v,l+"move",Ie)),me.isEnabled=!0,e&&e.type&&De(e),ae&&ae(me)),me),me.disable=()=>{me.isEnabled&&(u.filter(e=>e!==me&&x(e.target)).length||T(Ee?Me:v,"scroll",S),T(Ee?Me:v,"scroll",ze),T(v,"wheel",Be),T(v,Se[0],De),T(Me,Se[2],Ye),T(Me,Se[3],Ye),T(v,"click",Ne),T(Me,"gesturestart",Le),T(Me,"gestureend",Xe),T(v,l+"enter",He),T(v,l+"leave",We),T(v,l+"move",Ie),me.isEnabled=!1,le&&le(me))},me.kill=()=>{me.disable();let e=u.indexOf(me);e>=0&&u.splice(e,1),p===me&&(p=0)},u.push(me),ie&&(p=me),me.enable(B)}get velocityX(){return this._vx.getVelocity()}get velocityY(){return this._vy.getVelocity()}}D.version="3.10.2",D.create=e=>new D(e),D.register=R,D.getAll=()=>u.slice(),D.getById=e=>u.filter(t=>t.vars.id===e)[0],h()&&e.registerPlugin(D);let Y,L,X,z,B,I,H,W,N,F,V,G,q,U,j,K,Z,$,J,Q,ee,te,re,ie,ne,se,oe,ae,le,de,ce,pe,he=1,ge=Date.now,ue=ge(),fe=0,me=0,ve=()=>U=1,ye=()=>U=0,be=e=>e,xe=e=>Math.round(1e5*e)/1e5||0,we=()=>"undefined"!=typeof window,Te=()=>Y||we()&&(Y=window.gsap)&&Y.registerPlugin&&Y,Se=e=>!!~H.indexOf(e),ke=e=>b(e,"getBoundingClientRect")||(Se(e)?()=>(Mt.width=X.innerWidth,Mt.height=X.innerHeight,Mt):()=>He(e)),Ee=(e,{s:t,d2:r,d:i,a:n})=>(t="scroll"+r)&&(n=b(e,t))?n()-ke(e)()[i]:Se(e)?(B[t]||I[t])-(X["inner"+r]||B["client"+r]||I["client"+r]):e[t]-e["offset"+r],Me=(e,t)=>{for(let r=0;r<J.length;r+=3)(!t||~t.indexOf(J[r+1]))&&e(J[r],J[r+1],J[r+2])},Pe=e=>"string"==typeof e,Ce=e=>"function"==typeof e,_e=e=>"number"==typeof e,Oe=e=>"object"==typeof e,Ae=e=>Ce(e)&&e(),Re=(e,t)=>()=>{let r=Ae(e),i=Ae(t);return()=>{Ae(r),Ae(i)}},De=(e,t,r)=>e&&e.progress(t?0:1)&&r&&e.pause(),Ye=(e,t)=>{if(e.enabled){let r=t(e);r&&r.totalTime&&(e.callbackAnimation=r)}},Le=Math.abs,Xe="padding",ze="px",Be=e=>X.getComputedStyle(e),Ie=(e,t)=>{for(let r in t)r in e||(e[r]=t[r]);return e},He=(e,t)=>{let r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==Be(e)[j]&&Y.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return r&&r.progress(0).kill(),i},We=(e,{d2:t})=>e["offset"+t]||e["client"+t]||0,Ne=e=>{let t,r=[],i=e.labels,n=e.duration();for(t in i)r.push(i[t]/n);return r},Fe=e=>{let t=Y.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort((e,t)=>e-t);return r?(e,i,n=.001)=>{let s;if(!i)return t(e);if(i>0){for(e-=n,s=0;s<r.length;s++)if(r[s]>=e)return r[s];return r[s-1]}for(s=r.length,e+=n;s--;)if(r[s]<=e)return r[s];return r[0]}:(r,i,n=.001)=>{let s=t(r);return!i||Math.abs(s-r)<n||s-r<0==i<0?s:t(i<0?r-e:r+e)}},Ve=(e,t,r,i)=>r.split(",").forEach(r=>e(t,r,i)),Ge=(e,t,r,i)=>e.addEventListener(t,r,{passive:!i}),qe=(e,t,r)=>e.removeEventListener(t,r),Ue=(e,t,r)=>r&&r.wheelHandler&&e(t,"wheel",r),je={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Ke={toggleActions:"play",anticipatePin:0},Ze={top:0,left:0,center:.5,bottom:1,right:1},$e=(e,t)=>{if(Pe(e)){let r=e.indexOf("="),i=~r?+(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(i*=t/100),e=e.substr(0,r-1)),e=i+(e in Ze?Ze[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},Je=(e,t,r,i,{startColor:n,endColor:s,fontSize:o,indent:a,fontWeight:l},d,c,p)=>{let h=z.createElement("div"),g=Se(r)||"fixed"===b(r,"pinType"),u=-1!==e.indexOf("scroller"),f=g?I:r,m=-1!==e.indexOf("start"),v=m?n:s,y="border-color:"+v+";font-size:"+o+";color:"+v+";font-weight:"+l+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((u||p)&&g?"fixed;":"absolute;"),(u||p||!g)&&(y+=(i===M?"right":"bottom")+":"+(d+parseFloat(a))+"px;"),c&&(y+="box-sizing:border-box;text-align:left;width:"+c.offsetWidth+"px;"),h._isStart=m,h.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),h.style.cssText=y,h.innerText=t||0===t?e+"-"+t:e,f.children[0]?f.insertBefore(h,f.children[0]):f.appendChild(h),h._offset=h["offset"+i.op.d2],Qe(h,0,i,m),h},Qe=(e,t,r,i)=>{let n={display:"block"},s=r[i?"os2":"p2"],o=r[i?"p2":"os2"];e._isFlipped=i,n[r.a+"Percent"]=i?-100:0,n[r.a]=i?"1px":0,n["border"+s+"Width"]=1,n["border"+o+"Width"]=0,n[r.p]=t+"px",Y.set(e,n)},et=[],tt={},rt=()=>ge()-fe>34&&bt(),it=()=>{re&&re.isPressed||(f.cache++,ae||(ae=requestAnimationFrame(bt)),fe||ct("scrollStart"),fe=ge())},nt=()=>{f.cache++,!q&&!te&&!z.fullscreenElement&&(!ie||se!==X.innerWidth||Math.abs(X.innerHeight-ne)>.25*X.innerHeight)&&W.restart(!0)},st={},ot=[],at=[],lt=e=>{let t,r=Y.ticker.frame,i=[],n=0;if(de!==r||he){for(gt();n<at.length;n+=4)t=X.matchMedia(at[n]).matches,t!==at[n+3]&&(at[n+3]=t,t?i.push(n):gt(1,at[n])||Ce(at[n+2])&&at[n+2]());for(ht(),n=0;n<i.length;n++)t=i[n],le=at[t],at[t+2]=at[t+1](e);le=0,L&&mt(0,1),de=r,ct("matchMedia")}},dt=()=>qe(At,"scrollEnd",dt)||mt(!0),ct=e=>st[e]&&st[e].map(e=>e())||ot,pt=[],ht=e=>{for(let t=0;t<pt.length;t+=5)e&&pt[t+4]!==e||(pt[t].style.cssText=pt[t+1],pt[t].getBBox&&pt[t].setAttribute("transform",pt[t+2]||""),pt[t+3].uncache=1)},gt=(e,t)=>{let r;for(K=0;K<et.length;K++)r=et[K],t&&r.media!==t||(e?r.kill(1):r.revert());t&&ht(t),t||ct("revert")},ut=()=>f.cache++&&f.forEach(e=>"function"==typeof e&&(e.rec=0)),ft=0,mt=(e,t)=>{if(fe&&!e)return void Ge(At,"scrollEnd",dt);ce=!0;let r=ct("refreshInit");Q&&At.sort(),t||gt(),et.slice(0).forEach(e=>e.refresh()),et.forEach(e=>"max"===e.vars.end&&e.setPositions(e.start,Ee(e.scroller,e._dir))),r.forEach(e=>e&&e.render&&e.render(-1)),ut(),W.pause(),ft++,ce=!1,ct("refresh")},vt=0,yt=1,bt=()=>{if(!ce){pe&&pe.update(0),At.isUpdating=!0;let e=et.length,t=ge(),r=t-ue>=50,i=e&&et[0].scroll();if(yt=vt>i?-1:1,vt=i,r&&(fe&&!U&&t-fe>200&&(fe=0,ct("scrollEnd")),V=ue,ue=t),yt<0){for(K=e;K-- >0;)et[K]&&et[K].update(0,r);yt=1}else for(K=0;K<e;K++)et[K]&&et[K].update(0,r);At.isUpdating=!1}ae=0},xt=["left","top","bottom","right","marginBottom","marginRight","marginTop","marginLeft","display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],wt=xt.concat(["width","height","boxSizing","maxWidth","maxHeight","position","margin",Xe,"paddingTop","paddingRight","paddingBottom","paddingLeft"]),Tt=(e,t,r,i)=>{if(e.parentNode!==t){let n,s=xt.length,o=t.style,a=e.style;for(;s--;)n=xt[s],o[n]=r[n];o.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(o.display="inline-block"),a.bottom=a.right=o.flexBasis="auto",o.overflow="visible",o.boxSizing="border-box",o.width=We(e,E)+ze,o.height=We(e,M)+ze,o.padding=a.margin=a.top=a.left="0",kt(i),a.width=a.maxWidth=r.width,a.height=a.maxHeight=r.height,a.padding=r.padding,e.parentNode.insertBefore(t,e),t.appendChild(e)}},St=/([A-Z])/g,kt=e=>{if(e){let t,r,i=e.t.style,n=e.length,s=0;for((e.t._gsap||Y.core.getCache(e.t)).uncache=1;s<n;s+=2)r=e[s+1],t=e[s],r?i[t]=r:i[t]&&i.removeProperty(t.replace(St,"-$1").toLowerCase())}},Et=e=>{let t=wt.length,r=e.style,i=[],n=0;for(;n<t;n++)i.push(wt[n],r[wt[n]]);return i.t=e,i},Mt={left:0,top:0},Pt=(e,t,r,i,n,s,o,a,l,d,c,p,h)=>{Ce(e)&&(e=e(a)),Pe(e)&&"max"===e.substr(0,3)&&(e=p+("="===e.charAt(4)?$e("0"+e.substr(3),r):0));let g,u,f,m=h?h.time():0;if(h&&h.seek(0),_e(e))o&&Qe(o,r,i,!0);else{Ce(t)&&(t=t(a));let s,c,p,h,g=e.split(" ");f=P(t)||I,s=He(f)||{},s&&(s.left||s.top)||"none"!==Be(f).display||(h=f.style.display,f.style.display="block",s=He(f),h?f.style.display=h:f.style.removeProperty("display")),c=$e(g[0],s[i.d]),p=$e(g[1]||"0",r),e=s[i.p]-l[i.p]-d+c+n-p,o&&Qe(o,p,i,r-p<20||o._isStart&&p>20),r-=r-p}if(s){let t=e+r,n=s._isStart;g="scroll"+i.d2,Qe(s,t,i,n&&t>20||!n&&(c?Math.max(I[g],B[g]):s.parentNode[g])<=t+1),c&&(l=He(o),c&&(s.style[i.op.p]=l[i.op.p]-i.op.m-s._offset+ze))}return h&&f&&(g=He(f),h.seek(p),u=He(f),h._caScrollDist=g[i.p]-u[i.p],e=e/h._caScrollDist*p),h&&h.seek(m),h?e:Math.round(e)},Ct=/(webkit|moz|length|cssText|inset)/i,_t=(e,t,r,i)=>{if(e.parentNode!==t){let n,s,o=e.style;if(t===I){for(n in e._stOrig=o.cssText,s=Be(e),s)+n||Ct.test(n)||!s[n]||"string"!=typeof o[n]||"0"===n||(o[n]=s[n]);o.top=r,o.left=i}else o.cssText=e._stOrig;Y.core.getCache(e).uncache=1,t.appendChild(e)}},Ot=(e,t)=>{let r,i,n=C(e,t),s="_scroll"+t.p2,o=(t,a,l,d,c)=>{let p=o.tween,h=a.onComplete,g={};return l=l||n(),c=d&&c||0,d=d||t-l,p&&p.kill(),r=Math.round(l),a[s]=t,a.modifiers=g,g[s]=e=>((e=xe(n()))!==r&&e!==i&&Math.abs(e-r)>2&&Math.abs(e-i)>2?(p.kill(),o.tween=0):e=l+d*p.ratio+c*p.ratio*p.ratio,i=r,r=xe(e)),a.onComplete=()=>{o.tween=0,h&&h.call(p)},p=o.tween=Y.to(e,a),p};return e[s]=n,n.wheelHandler=()=>o.tween&&o.tween.kill()&&(o.tween=0),Ge(e,"wheel",n.wheelHandler),o};class At{constructor(e,t){L||At.register(Y)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,t)}init(e,t){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!me)return void(this.update=this.refresh=this.kill=be);e=Ie(Pe(e)||_e(e)||e.nodeType?{trigger:e}:e,Ke);let r,i,n,s,o,a,l,d,c,p,h,g,u,f,v,y,x,w,T,S,k,_,O,A,R,D,L,H,W,G,j,Z,$,J,te,re,ie,ne,{onUpdate:se,toggleClass:ae,id:de,onToggle:ue,onRefresh:ve,scrub:ye,trigger:we,pin:Te,pinSpacing:Me,invalidateOnRefresh:Ae,anticipatePin:Re,onScrubComplete:Ve,onSnapComplete:Ue,once:Ze,snap:Qe,pinReparent:rt,pinSpacer:st,containerAnimation:ot,fastScrollEnd:at,preventOverlaps:lt}=e,ct=e.horizontal||e.containerAnimation&&!1!==e.horizontal?E:M,pt=!ye&&0!==ye,ht=P(e.scroller||X),gt=Y.core.getCache(ht),ut=Se(ht),ft="fixed"===("pinType"in e?e.pinType:b(ht,"pinType")||ut&&"fixed"),mt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],vt=pt&&e.toggleActions.split(" "),bt="markers"in e?e.markers:Ke.markers,xt=ut?0:parseFloat(Be(ht)["border"+ct.p2+"Width"])||0,wt=this,St=e.onRefreshInit&&(()=>e.onRefreshInit(wt)),Ct=((e,t,{d:r,d2:i,a:n})=>(n=b(e,"getBoundingClientRect"))?()=>n()[r]:()=>(t?X["inner"+i]:e["client"+i])||0)(ht,ut,ct),Rt=((e,t)=>!t||~m.indexOf(e)?ke(e):()=>Mt)(ht,ut),Dt=0,Yt=C(ht,ct);var Lt;if(wt.media=le,wt._dir=ct,Re*=45,wt.scroller=ht,wt.scroll=ot?ot.time.bind(ot):Yt,s=Yt(),wt.vars=e,t=t||e.animation,"refreshPriority"in e&&(Q=1,-9999===e.refreshPriority&&(pe=wt)),gt.tweenScroll=gt.tweenScroll||{top:Ot(ht,M),left:Ot(ht,E)},wt.tweenTo=r=gt.tweenScroll[ct.p],wt.scrubDuration=e=>{j=_e(e)&&e,j?G?G.duration(e):G=Y.to(t,{ease:"expo",totalProgress:"+=0.001",duration:j,paused:!0,onComplete:()=>Ve&&Ve(wt)}):(G&&G.progress(1).kill(),G=0)},t&&(t.vars.lazy=!1,t._initted||!1!==t.vars.immediateRender&&!1!==e.immediateRender&&t.render(0,!0,!0),wt.animation=t.pause(),t.scrollTrigger=wt,wt.scrubDuration(ye),H=0,de||(de=t.vars.id)),et.push(wt),Qe&&(Oe(Qe)&&!Qe.push||(Qe={snapTo:Qe}),"scrollBehavior"in I.style&&Y.set(ut?[I,B]:ht,{scrollBehavior:"auto"}),n=Ce(Qe.snapTo)?Qe.snapTo:"labels"===Qe.snapTo?(e=>t=>Y.utils.snap(Ne(e),t))(t):"labelsDirectional"===Qe.snapTo?(Lt=t,(e,t)=>Fe(Ne(Lt))(e,t.direction)):!1!==Qe.directional?(e,t)=>Fe(Qe.snapTo)(e,q?0:t.direction):Y.utils.snap(Qe.snapTo),Z=Qe.duration||{min:.1,max:2},Z=Oe(Z)?F(Z.min,Z.max):F(Z,Z),$=Y.delayedCall(Qe.delay||j/2||.1,()=>{if(Math.abs(wt.getVelocity())<10&&!U&&Dt!==Yt()){let e=t&&!pt?t.totalProgress():wt.progress,i=(e-W)/(ge()-V)*1e3||0,s=Y.utils.clamp(-wt.progress,1-wt.progress,Le(i/2)*i/.185),o=wt.progress+(!1===Qe.inertia?0:s),d=F(0,1,n(o,wt)),c=Yt(),p=Math.round(a+d*u),{onStart:h,onInterrupt:g,onComplete:f}=Qe,m=r.tween;if(c<=l&&c>=a&&p!==c){if(m&&!m._initted&&m.data<=Le(p-c))return;!1===Qe.inertia&&(s=d-wt.progress),r(p,{duration:Z(Le(.185*Math.max(Le(o-e),Le(d-e))/i/.05||0)),ease:Qe.ease||"power3",data:Le(p-c),onInterrupt:()=>$.restart(!0)&&g&&g(wt),onComplete:()=>{wt.update(),Dt=Yt(),H=W=t&&!pt?t.totalProgress():wt.progress,Ue&&Ue(wt),f&&f(wt)}},c,s*u,p-c-s*u),h&&h(wt,r.tween)}}else wt.isActive&&$.restart(!0)}).pause()),de&&(tt[de]=wt),we=wt.trigger=P(we||Te),ne=we&&we._gsap&&we._gsap.stRevert,ne&&(ne=ne(wt)),Te=!0===Te?we:P(Te),Pe(ae)&&(ae={targets:we,className:ae}),Te&&(!1===Me||"margin"===Me||(Me=!(!Me&&"flex"===Be(Te.parentNode).display)&&Xe),wt.pin=Te,!1!==e.force3D&&Y.set(Te,{force3D:!0}),i=Y.core.getCache(Te),i.spacer?f=i.pinState:(st&&(st=P(st),st&&!st.nodeType&&(st=st.current||st.nativeElement),i.spacerIsNative=!!st,st&&(i.spacerState=Et(st))),i.spacer=x=st||z.createElement("div"),x.classList.add("pin-spacer"),de&&x.classList.add("pin-spacer-"+de),i.pinState=f=Et(Te)),wt.spacer=x=i.spacer,L=Be(Te),O=L[Me+ct.os2],T=Y.getProperty(Te),S=Y.quickSetter(Te,ct.a,ze),Tt(Te,x,L),y=Et(Te)),bt){g=Oe(bt)?Ie(bt,je):je,p=Je("scroller-start",de,ht,ct,g,0),h=Je("scroller-end",de,ht,ct,g,0,p),w=p["offset"+ct.op.d2];let e=P(b(ht,"content")||ht);d=this.markerStart=Je("start",de,e,ct,g,w,0,ot),c=this.markerEnd=Je("end",de,e,ct,g,w,0,ot),ot&&(ie=Y.quickSetter([d,c],ct.a,ze)),ft||m.length&&!0===b(ht,"fixedMarkers")||((e=>{let t=Be(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"})(ut?I:ht),Y.set([p,h],{force3D:!0}),R=Y.quickSetter(p,ct.a,ze),D=Y.quickSetter(h,ct.a,ze))}if(ot){let e=ot.vars.onUpdate,t=ot.vars.onUpdateParams;ot.eventCallback("onUpdate",()=>{wt.update(0,0,1),e&&e.apply(t||[])})}wt.previous=()=>et[et.indexOf(wt)-1],wt.next=()=>et[et.indexOf(wt)+1],wt.revert=e=>{let r=!1!==e||!wt.enabled,i=q;r!==wt.isReverted&&(r&&(wt.scroll.rec||!q||!ce||(wt.scroll.rec=Yt()),te=Math.max(Yt(),wt.scroll.rec||0),J=wt.progress,re=t&&t.progress()),d&&[d,c,p,h].forEach(e=>e.style.display=r?"none":"block"),r&&(q=1),wt.update(r),q=i,Te&&(r?((e,t,r)=>{kt(r);let i=e._gsap;if(i.spacerIsNative)kt(i.spacerState);else if(e.parentNode===t){let r=t.parentNode;r&&(r.insertBefore(e,t),r.removeChild(t))}})(Te,x,f):(!rt||!wt.isActive)&&Tt(Te,x,Be(Te),A)),wt.isReverted=r)},wt.refresh=(r,i)=>{if((q||!wt.enabled)&&!i)return;if(Te&&r&&fe)return void Ge(At,"scrollEnd",dt);!ce&&St&&St(wt),q=1,G&&G.pause(),Ae&&t&&t.time(-.01,!0).invalidate(),wt.isReverted||wt.revert();let n,g,m,b,w,S,O,R,D,L,X=Ct(),z=Rt(),B=ot?ot.duration():Ee(ht,ct),H=0,W=0,N=e.end,F=e.endTrigger||we,V=e.start||(0!==e.start&&we?Te?"0 0":"0 100%":0),U=wt.pinnedContainer=e.pinnedContainer&&P(e.pinnedContainer),j=we&&Math.max(0,et.indexOf(wt))||0,K=j;for(;K--;)S=et[K],S.end||S.refresh(0,1)||(q=1),O=S.pin,!O||O!==we&&O!==Te||S.isReverted||(L||(L=[]),L.unshift(S),S.revert()),S!==et[K]&&(j--,K--);for(Ce(V)&&(V=V(wt)),a=Pt(V,we,X,ct,Yt(),d,p,wt,z,xt,ft,B,ot)||(Te?-.001:0),Ce(N)&&(N=N(wt)),Pe(N)&&!N.indexOf("+=")&&(~N.indexOf(" ")?N=(Pe(V)?V.split(" ")[0]:"")+N:(H=$e(N.substr(2),X),N=Pe(V)?V:a+H,F=we)),l=Math.max(a,Pt(N||(F?"100% 0":B),F,X,ct,Yt()+H,c,h,wt,z,xt,ft,B,ot))||-.001,u=l-a||(a-=.01)&&.001,H=0,K=j;K--;)S=et[K],O=S.pin,O&&S.start-S._pinPush<a&&!ot&&S.end>0&&(n=S.end-S.start,O!==we&&O!==U||_e(V)||(H+=n*(1-S.progress)),O===Te&&(W+=n));if(a+=H,l+=H,wt._pinPush=W,d&&H&&(n={},n[ct.a]="+="+H,U&&(n[ct.p]="-="+Yt()),Y.set([d,c],n)),Te)n=Be(Te),b=ct===M,m=Yt(),k=parseFloat(T(ct.a))+W,!B&&l>1&&((ut?I:ht).style["overflow-"+ct.a]="scroll"),Tt(Te,x,n),y=Et(Te),g=He(Te,!0),R=ft&&C(ht,b?E:M)(),Me&&(A=[Me+ct.os2,u+W+ze],A.t=x,K=Me===Xe?We(Te,ct)+u+W:0,K&&A.push(ct.d,K+ze),kt(A),ft&&Yt(te)),ft&&(w={top:g.top+(b?m-a:R)+ze,left:g.left+(b?R:m-a)+ze,boxSizing:"border-box",position:"fixed"},w.width=w.maxWidth=Math.ceil(g.width)+ze,w.height=w.maxHeight=Math.ceil(g.height)+ze,w.margin=w.marginTop=w.marginRight=w.marginBottom=w.marginLeft="0",w.padding=n.padding,w.paddingTop=n.paddingTop,w.paddingRight=n.paddingRight,w.paddingBottom=n.paddingBottom,w.paddingLeft=n.paddingLeft,v=((e,t,r)=>{let i,n=[],s=e.length,o=r?8:0;for(;o<s;o+=2)i=e[o],n.push(i,i in t?t[i]:e[o+1]);return n.t=e.t,n})(f,w,rt)),t?(D=t._initted,ee(1),t.render(t.duration(),!0,!0),_=T(ct.a)-k+u+W,u!==_&&v.splice(v.length-2,2),t.render(0,!0,!0),D||t.invalidate(),ee(0)):_=u;else if(we&&Yt()&&!ot)for(g=we.parentNode;g&&g!==I;)g._pinOffset&&(a-=g._pinOffset,l-=g._pinOffset),g=g.parentNode;L&&L.forEach(e=>e.revert(!1)),wt.start=a,wt.end=l,s=o=Yt(),ot||(s<te&&Yt(te),wt.scroll.rec=0),wt.revert(!1),$&&wt.isActive&&Yt(a+u*J),q=0,t&&pt&&(t._initted||re)&&t.progress()!==re&&t.progress(re,!0).render(t.time(),!0,!0),(J!==wt.progress||ot)&&(t&&!pt&&t.totalProgress(J,!0),wt.progress=J,wt.update(0,0,1)),Te&&Me&&(x._pinOffset=Math.round(wt.progress*_)),ve&&ve(wt)},wt.getVelocity=()=>(Yt()-o)/(ge()-V)*1e3||0,wt.endAnimation=()=>{De(wt.callbackAnimation),t&&(G?G.progress(1):t.paused()?pt||De(t,wt.direction<0,1):De(t,t.reversed()))},wt.labelToScroll=e=>t&&t.labels&&(a||wt.refresh()||a)+t.labels[e]/t.duration()*u||0,wt.getTrailing=e=>{let t=et.indexOf(wt),r=wt.direction>0?et.slice(0,t).reverse():et.slice(t+1);return(Pe(e)?r.filter(t=>t.vars.preventOverlaps===e):r).filter(e=>wt.direction>0?e.end<=a:e.start>=l)},wt.update=(e,i,n)=>{if(ot&&!n&&!e)return;let d,c,h,g,f,m,b,w,T=wt.scroll(),E=e?0:(T-a)/u,P=E<0?0:E>1?1:E||0,C=wt.progress;if(i&&(o=s,s=ot?Yt():T,Qe&&(W=H,H=t&&!pt?t.totalProgress():P)),Re&&!P&&Te&&!q&&!he&&fe&&a<T+(T-o)/(ge()-V)*Re&&(P=1e-4),P!==C&&wt.enabled){if(d=wt.isActive=!!P&&P<1,c=!!C&&C<1,m=d!==c,f=m||!!P!=!!C,wt.direction=P>C?1:-1,wt.progress=P,f&&!q&&(h=P&&!C?0:1===P?1:1===C?2:3,pt&&(g=!m&&"none"!==vt[h+1]&&vt[h+1]||vt[h],w=t&&("complete"===g||"reset"===g||g in t))),lt&&(m||w)&&(w||ye||!t)&&(Ce(lt)?lt(wt):wt.getTrailing(lt).forEach(e=>e.endAnimation())),pt||(!G||q||he?t&&t.totalProgress(P,!!q):((ot||pe&&pe!==wt)&&G.render(G._dp._time-G._start),G.resetTo?G.resetTo("totalProgress",P,t._tTime/t._tDur):(G.vars.totalProgress=P,G.invalidate().restart()))),Te)if(e&&Me&&(x.style[Me+ct.os2]=O),ft){if(f){if(b=!e&&P>C&&l+1>T&&T+1>=Ee(ht,ct),rt)if(e||!d&&!b)_t(Te,x);else{let e=He(Te,!0),t=T-a;_t(Te,I,e.top+(ct===M?t:0)+ze,e.left+(ct===M?0:t)+ze)}kt(d||b?v:y),_!==u&&P<1&&d||S(k+(1!==P||b?0:_))}}else S(xe(k+_*P));Qe&&!r.tween&&!q&&!he&&$.restart(!0),ae&&(m||Ze&&P&&(P<1||!oe))&&N(ae.targets).forEach(e=>e.classList[d||Ze?"add":"remove"](ae.className)),se&&!pt&&!e&&se(wt),f&&!q?(pt&&(w&&("complete"===g?t.pause().totalProgress(1):"reset"===g?t.restart(!0).pause():"restart"===g?t.restart(!0):t[g]()),se&&se(wt)),!m&&oe||(ue&&m&&Ye(wt,ue),mt[h]&&Ye(wt,mt[h]),Ze&&(1===P?wt.kill(!1,1):mt[h]=0),m||(h=1===P?1:3,mt[h]&&Ye(wt,mt[h]))),at&&!d&&Math.abs(wt.getVelocity())>(_e(at)?at:2500)&&(De(wt.callbackAnimation),G?G.progress(1):De(t,!P,1))):pt&&se&&!q&&se(wt)}if(D){let e=ot?T/ot.duration()*(ot._caScrollDist||0):T;R(e+(p._isFlipped?1:0)),D(e)}ie&&ie(-T/ot.duration()*(ot._caScrollDist||0))},wt.enable=(e,t)=>{wt.enabled||(wt.enabled=!0,Ge(ht,"resize",nt),Ge(ut?z:ht,"scroll",it),St&&Ge(At,"refreshInit",St),!1!==e&&(wt.progress=J=0,s=o=Dt=Yt()),!1!==t&&wt.refresh())},wt.getTween=e=>e&&r?r.tween:G,wt.setPositions=(e,t)=>{Te&&(k+=e-a,_+=t-e-u),wt.start=a=e,wt.end=l=t,u=t-e,wt.update()},wt.disable=(e,t)=>{if(wt.enabled&&(!1!==e&&wt.revert(),wt.enabled=wt.isActive=!1,t||G&&G.pause(),te=0,i&&(i.uncache=1),St&&qe(At,"refreshInit",St),$&&($.pause(),r.tween&&r.tween.kill()&&(r.tween=0)),!ut)){let e=et.length;for(;e--;)if(et[e].scroller===ht&&et[e]!==wt)return;qe(ht,"resize",nt),qe(ht,"scroll",it)}},wt.kill=(r,n)=>{wt.disable(r,n),G&&!n&&G.kill(),de&&delete tt[de];let s=et.indexOf(wt);s>=0&&et.splice(s,1),s===K&&yt>0&&K--,s=0,et.forEach(e=>e.scroller===wt.scroller&&(s=1)),s||(wt.scroll.rec=0),t&&(t.scrollTrigger=null,r&&t.render(-1),n||t.kill()),d&&[d,c,p,h].forEach(e=>e.parentNode&&e.parentNode.removeChild(e)),Te&&(i&&(i.uncache=1),s=0,et.forEach(e=>e.pin===Te&&s++),s||(i.spacer=0)),e.onKill&&e.onKill(wt)},wt.enable(!1,!1),ne&&ne(wt),t&&t.add&&!u?Y.delayedCall(.01,()=>a||l||wt.refresh())&&(u=.01)&&(a=l=0):wt.refresh()}static register(e){return L||(Y=e||Te(),we()&&window.document&&At.enable(),L=me),L}static defaults(e){if(e)for(let t in e)Ke[t]=e[t];return Ke}static disable(e,t){me=0,et.forEach(r=>r[t?"kill":"disable"](e)),qe(X,"wheel",it),qe(z,"scroll",it),clearInterval(G),qe(z,"touchcancel",be),qe(I,"touchstart",be),Ve(qe,z,"pointerdown,touchstart,mousedown",ve),Ve(qe,z,"pointerup,touchend,mouseup",ye),W.kill(),Me(qe);for(let e=0;e<f.length;e+=3)Ue(qe,f[e],f[e+1]),Ue(qe,f[e],f[e+2])}static enable(){if(X=window,z=document,B=z.documentElement,I=z.body,Y&&(N=Y.utils.toArray,F=Y.utils.clamp,ee=Y.core.suppressOverwrites||be,Y.core.globals("ScrollTrigger",At),I)){me=1,At.isTouch=X.matchMedia&&X.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in X||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,H=[X,z,B,I],ne=X.innerHeight,se=X.innerWidth,D.register(Y),Ge(z,"scroll",it);let e,t,r=I.style,i=r.borderTopStyle;for(r.borderTopStyle="solid",e=He(I),M.m=Math.round(e.top+M.sc())||0,E.m=Math.round(e.left+E.sc())||0,i?r.borderTopStyle=i:r.removeProperty("border-top-style"),G=setInterval(rt,250),Y.delayedCall(.5,()=>he=0),Ge(z,"touchcancel",be),Ge(I,"touchstart",be),Ve(Ge,z,"pointerdown,touchstart,mousedown",ve),Ve(Ge,z,"pointerup,touchend,mouseup",ye),j=Y.utils.checkPrefix("transform"),wt.push(j),L=ge(),W=Y.delayedCall(.2,mt).pause(),J=[z,"visibilitychange",()=>{let e=X.innerWidth,t=X.innerHeight;z.hidden?(Z=e,$=t):Z===e&&$===t||nt()},z,"DOMContentLoaded",mt,X,"load",mt,X,"resize",nt],Me(Ge),et.forEach(e=>e.enable(0,1)),t=0;t<f.length;t+=3)Ue(qe,f[t],f[t+1]),Ue(qe,f[t],f[t+2])}}static config(e){"limitCallbacks"in e&&(oe=!!e.limitCallbacks);let t=e.syncInterval;t&&clearInterval(G)||(G=t)&&setInterval(rt,t),"ignoreMobileResize"in e&&(ie=1===At.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Me(qe)||Me(Ge,e.autoRefreshEvents||"none"),te=-1===(e.autoRefreshEvents+"").indexOf("resize"))}static scrollerProxy(e,t){let r=P(e),i=f.indexOf(r),n=Se(r);~i&&f.splice(i,n?6:2),t&&(n?m.unshift(X,t,I,t,B,t):m.unshift(r,t))}static matchMedia(e){let t,r,i,n,s;for(r in e)i=at.indexOf(r),n=e[r],le=r,"all"===r?n():(t=X.matchMedia(r),t&&(t.matches&&(s=n()),~i?(at[i+1]=Re(at[i+1],n),at[i+2]=Re(at[i+2],s)):(i=at.length,at.push(r,n,s),t.addListener?t.addListener(lt):t.addEventListener("change",lt)),at[i+3]=t.matches)),le=0;return at}static clearMatchMedia(e){e||(at.length=0),(e=at.indexOf(e))>=0&&at.splice(e,4)}static isInViewport(e,t,r){let i=(Pe(e)?P(e):e).getBoundingClientRect(),n=i[r?"width":"height"]*t||0;return r?i.right-n>0&&i.left+n<X.innerWidth:i.bottom-n>0&&i.top+n<X.innerHeight}static positionInViewport(e,t,r){Pe(e)&&(e=P(e));let i=e.getBoundingClientRect(),n=i[r?"width":"height"],s=null==t?n/2:t in Ze?Ze[t]*n:~t.indexOf("%")?parseFloat(t)*n/100:parseFloat(t)||0;return r?(i.left+s)/X.innerWidth:(i.top+s)/X.innerHeight}}At.version="3.10.2",At.saveStyles=e=>e?N(e).forEach(e=>{if(e&&e.style){let t=pt.indexOf(e);t>=0&&pt.splice(t,5),pt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Y.core.getCache(e),le)}}):pt,At.revert=(e,t)=>gt(!e,t),At.create=(e,t)=>new At(e,t),At.refresh=e=>e?nt():(L||At.register())&&mt(!0),At.update=bt,At.clearScrollMemory=ut,At.maxScroll=(e,t)=>Ee(e,t?E:M),At.getScrollFunc=(e,t)=>C(P(e),t?E:M),At.getById=e=>tt[e],At.getAll=()=>et.filter(e=>"ScrollSmoother"!==e.vars.id),At.isScrolling=()=>!!fe,At.snapDirectional=Fe,At.addEventListener=(e,t)=>{let r=st[e]||(st[e]=[]);~r.indexOf(t)||r.push(t)},At.removeEventListener=(e,t)=>{let r=st[e],i=r&&r.indexOf(t);i>=0&&r.splice(i,1)},At.batch=(e,t)=>{let r,i=[],n={},s=t.interval||.016,o=t.batchMax||1e9,a=(e,t)=>{let r=[],i=[],n=Y.delayedCall(s,()=>{t(r,i),r=[],i=[]}).pause();return e=>{r.length||n.restart(!0),r.push(e.trigger),i.push(e),o<=r.length&&n.progress(1)}};for(r in t)n[r]="on"===r.substr(0,2)&&Ce(t[r])&&"onRefreshInit"!==r?a(0,t[r]):t[r];return Ce(o)&&(o=o(),Ge(At,"refresh",()=>o=t.batchMax())),N(e).forEach(e=>{let t={};for(r in n)t[r]=n[r];t.trigger=e,i.push(At.create(t))}),i};let Rt=(e,t,r,i)=>(t>i?e(i):t<0&&e(0),r>i?(i-t)/(r-t):r<0?t/(t-r):1),Dt=e=>{!0===e?(I.style.removeProperty("touch-action"),B.style.removeProperty("touch-action")):I.style.touchAction=B.style.touchAction=e?"pan-"+e:"none"},Yt=e=>{Oe(e)||(e={}),e.preventDefault=e.isNormalizer=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";let t,r,i,n,s,o,a,l,d,{normalizeScrollX:c,momentum:p}=e,h=0,g=C(B,M),u=C(B,E),f=1,m=Ce(p)?()=>p(t):()=>p||2.8,v=()=>h=ge(),y=()=>i=!1,b=be,x=be,w=()=>{r=Ee(B,M),x=F(0,r),c&&(b=F(0,Ee(B,E))),n=ft},T=At.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),S=()=>{w(),s.isActive()&&s.vars.scrollY>r&&s.resetTo("scrollY",Ee(B,M))};return e.ignoreCheck=e=>T&&"touchmove"===e.type&&(()=>{if(i)return requestAnimationFrame(y),!0;i=!0})()||f>1||t.isGesturing||e.touches&&e.touches.length>1,e.onPress=()=>{let e=f;f=X.visualViewport&&X.visualViewport.scale||1,s.pause(),e!==f&&Dt(f>1||!c&&"x"),i=!1,o=u(),a=g(),w(),n=ft},e.onRelease=e.onGestureStart=(e,t)=>{let r=e.event,i=r.changedTouches?r.changedTouches[0]:r;if(!t||Math.abs(e.x-e.startX)<=3&&Math.abs(e.y-e.startY)<=3)Y.delayedCall(.05,()=>{if(ge()-h>300&&!r.defaultPrevented)if(r.target.click)r.target.click();else if(l.createEvent){let e=l.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,X,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),r.target.dispatchEvent(e)}}),d.restart(!0);else{let t,r,i=m();c&&(t=u(),r=t+.05*i*-e.velocityX/.227/f,i*=Rt(u,t,r,Ee(B,E)),s.vars.scrollX=b(r)),t=g(),r=t+.05*i*-e.velocityY/.227/f,i*=Rt(g,t,r,Ee(B,M)),s.vars.scrollY=x(r),s.invalidate().duration(i).play(.01)}},e.onWheel=()=>s._ts&&s.pause(),e.onChange=(e,t,r,i,s)=>{ft!==n&&w(),t&&c&&u(b(i[2]===t?o+(e.startX-e.x)/f:u()+t-i[1])),r&&g(x(s[2]===r?a+(e.startY-e.y)/f:g()+r-s[1])),bt()},e.onEnable=e=>{Dt(!c&&"x"),Ge(X,"resize",S),e.target.addEventListener("click",v,{capture:!0})},e.onDisable=e=>{Dt(!0),qe(X,"resize",S),qe(e.target,"click",v)},t=new D(e),l=t.target.ownerDocument||z,d=t._dc,s=Y.to(t,{ease:"power4",paused:!0,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",onComplete:d.vars.onComplete}),t};At.sort=e=>et.sort(e||((e,t)=>-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0)))),At.observe=e=>new D(e),At.normalizeScroll=e=>{if(void 0===e)return re;if(!0===e&&re)return re.enable();let t=e instanceof D;return re&&(!1===e||t&&e!==re)&&re.kill(),e&&!t&&(e=Yt(e)),re=e&&e.enable()},At.core={_getVelocityProp:_,_scrollers:f,_proxies:m,bridge:{ss:()=>{fe||ct("scrollStart"),fe=ge()},ref:()=>q}},Te()&&Y.registerPlugin(At);export default At;export{At as ScrollTrigger}; | ||
let e,t,r,i,n,s,o,l,a,d,c,p,h,g=()=>e||"undefined"!=typeof window&&(e=window.gsap)&&e.registerPlugin&&e,u=1,f=[],m=[],v=[],y=Date.now,b=(e,t)=>t,x=(e,t)=>~v.indexOf(e)&&v[v.indexOf(e)+1][t],w=e=>!!~c.indexOf(e),T=(e,t,r,i,n)=>e.addEventListener(t,r,{passive:!i,capture:!!n}),S=(e,t,r)=>e.removeEventListener(t,r),_=()=>p&&p.isPressed||m.cache++,k=e=>t=>(t||0===t?(u&&(i.history.scrollRestoration="manual"),e(t),e.v=t,e.c=m.cache,p&&p.isPressed&&b("ss",t)):(m.cache!==e.c||b("ref"))&&(e.c=m.cache,e.v=e()),e.v),C={s:"scrollLeft",p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:k((function(e){return arguments.length?i.scrollTo(e,E.sc()):i.pageXOffset||n.scrollLeft||s.scrollLeft||o.scrollLeft||0}))},E={s:"scrollTop",p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:C,sc:k((function(e){return arguments.length?i.scrollTo(C.sc(),e):i.pageYOffset||n.scrollTop||s.scrollTop||o.scrollTop||0}))},M=t=>e.utils.toArray(t)[0]||("string"==typeof t&&!1!==e.config().nullTargetWarn?console.warn("Element not found:",t):null),P=(e,{s:t,sc:r})=>{let i=m.indexOf(e),n=r===E.sc?1:2;return!~i&&(i=m.push(e)-1),m[i+n]||(m[i+n]=x(e,t)||(w(e)?r:k((function(r){return arguments.length?e[t]=r:e[t]}))))},O=(e,t,r)=>{let i=e,n=e,s=y(),o=s,l=t||50,a=Math.max(500,3*l),d=(e,t)=>{let a=y();t||a-s>l?(n=i,i=e,o=s,s=a):r?i+=e:i=n+(e-n)/(a-o)*(s-o)};return{update:d,reset:()=>{n=i=r?0:i,o=s=0},getVelocity:e=>{let t=o,l=n,c=y();return(e||0===e)&&e!==i&&d(e),s===o||c-o>a?0:(i+(r?l:-l))/((r?c:s)-t)*1e3}}},A=(e,t)=>(t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e),D=e=>{let t=Math.max(...e),r=Math.min(...e);return Math.abs(t)>=Math.abs(r)?t:r},R=()=>{d=e.core.globals().ScrollTrigger,d&&d.core&&(()=>{let e=d.core,t=e.bridge||{},r=e._scrollers,i=e._proxies;r.push(...m),i.push(...v),m=r,v=i,b=(e,r)=>t[e](r)})()},Y=d=>(e=d||g(),e&&"undefined"!=typeof document&&document.body&&(i=window,n=document,s=n.documentElement,o=n.body,c=[i,n,s,o],r=e.utils.clamp,a="onpointerenter"in o?"pointer":"mouse",l=X.isTouch=i.matchMedia&&i.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in i||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,h=X.eventTypes=("ontouchstart"in s?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in s?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(()=>u=0,500),R(),t=1),t);C.op=E,m.cache=0;class X{constructor(e){this.init(e)}init(r){t||Y(e)||console.warn("Please gsap.registerPlugin(Observer)"),d||R();let{tolerance:c,dragMinimum:g,type:u,target:m,lineHeight:v,debounce:b,preventDefault:x,onStop:k,onStopDelay:X,ignore:L,wheelSpeed:z,event:B,onDragStart:H,onDragEnd:I,onDrag:N,onPress:W,onRelease:F,onRight:V,onLeft:q,onUp:G,onDown:U,onChangeX:j,onChangeY:K,onChange:Z,onToggleX:$,onToggleY:J,onHover:Q,onHoverEnd:ee,onMove:te,ignoreCheck:re,isNormalizer:ie,onGestureStart:ne,onGestureEnd:se,onWheel:oe,onEnable:le,onDisable:ae,onClick:de,scrollSpeed:ce,capture:pe,allowClicks:he,lockAxis:ge,onLockAxis:ue}=r;this.target=m=M(m)||s,this.vars=r,L&&(L=e.utils.toArray(L)),c=c||0,g=g||0,z=z||1,ce=ce||1,u=u||"wheel,touch,pointer",b=!1!==b,v||(v=parseFloat(i.getComputedStyle(o).lineHeight)||22);let fe,me,ve,ye,be,xe,we,Te=this,Se=0,_e=0,ke=P(m,C),Ce=P(m,E),Ee=ke(),Me=Ce(),Pe=~u.indexOf("touch")&&!~u.indexOf("pointer")&&"pointerdown"===h[0],Oe=w(m),Ae=m.ownerDocument||n,De=[0,0,0],Re=[0,0,0],Ye=0,Xe=()=>Ye=y(),Le=(e,t)=>(Te.event=e)&&L&&~L.indexOf(e.target)||t&&Pe&&"touch"!==e.pointerType||re&&re(e,t),ze=()=>{let e=Te.deltaX=D(De),t=Te.deltaY=D(Re),r=Math.abs(e)>=c,i=Math.abs(t)>=c;Z&&(r||i)&&Z(Te,e,t,De,Re),r&&(V&&Te.deltaX>0&&V(Te),q&&Te.deltaX<0&&q(Te),j&&j(Te),$&&Te.deltaX<0!=Se<0&&$(Te),Se=Te.deltaX,De[0]=De[1]=De[2]=0),i&&(U&&Te.deltaY>0&&U(Te),G&&Te.deltaY<0&&G(Te),K&&K(Te),J&&Te.deltaY<0!=_e<0&&J(Te),_e=Te.deltaY,Re[0]=Re[1]=Re[2]=0),(ye||ve)&&(te&&te(Te),ue&&xe&&ue(Te),ve&&(N(Te),ve=!1),ye=xe=!1),be&&(oe(Te),be=!1),fe=0},Be=(e,t,r)=>{De[r]+=e,Re[r]+=t,Te._vx.update(e),Te._vy.update(t),b?fe||(fe=requestAnimationFrame(ze)):ze()},He=(e,t)=>{"y"!==we&&(De[2]+=e,Te._vx.update(e,!0)),"x"!==we&&(Re[2]+=t,Te._vy.update(t,!0)),ge&&!we&&(Te.axis=we=Math.abs(e)>Math.abs(t)?"x":"y",xe=!0),b?fe||(fe=requestAnimationFrame(ze)):ze()},Ie=e=>{if(Le(e,1))return;let t=(e=A(e,x)).clientX,r=e.clientY,i=t-Te.x,n=r-Te.y,s=Te.isDragging;Te.x=t,Te.y=r,(s||Math.abs(Te.startX-t)>=g||Math.abs(Te.startY-r)>=g)&&(N&&(ve=!0),s||(Te.isDragging=!0),He(i,n),s||H&&H(Te))},Ne=Te.onPress=e=>{Le(e,1)||(Te.axis=we=null,me.pause(),Te.isPressed=!0,e=A(e),Se=_e=0,Te.startX=Te.x=e.clientX,Te.startY=Te.y=e.clientY,Te._vx.reset(),Te._vy.reset(),T(ie?m:Ae,h[1],Ie,x,pe),Te.deltaX=Te.deltaY=0,W&&W(Te))},We=t=>{if(Le(t,1))return;S(ie?m:Ae,h[1],Ie);let r=Te.isDragging&&(Math.abs(Te.x-Te.startX)>3||Math.abs(Te.y-Te.startY)>3),n=A(t);r||(Te._vx.reset(),Te._vy.reset(),x&&he&&e.delayedCall(.05,()=>{if(y()-Ye>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(Ae.createEvent){let e=Ae.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,i,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}})),Te.isDragging=Te.isGesturing=Te.isPressed=!1,k&&!ie&&me.restart(!0),I&&r&&I(Te),F&&F(Te,r)},Fe=e=>e.touches&&e.touches.length>1&&(Te.isGesturing=!0)&&ne(e,Te.isDragging),Ve=()=>(Te.isGesturing=!1)||se(Te),qe=e=>{if(Le(e))return;let t=ke(),r=Ce();Be((t-Ee)*ce,(r-Me)*ce,1),Ee=t,Me=r,k&&me.restart(!0)},Ge=e=>{if(Le(e))return;e=A(e,x),oe&&(be=!0);let t=(1===e.deltaMode?v:2===e.deltaMode?i.innerHeight:1)*z;Be(e.deltaX*t,e.deltaY*t,0),k&&!ie&&me.restart(!0)},Ue=e=>{if(Le(e))return;let t=e.clientX,r=e.clientY,i=t-Te.x,n=r-Te.y;Te.x=t,Te.y=r,ye=!0,(i||n)&&He(i,n)},je=e=>{Te.event=e,Q(Te)},Ke=e=>{Te.event=e,ee(Te)},Ze=e=>Le(e)||A(e,x)&&de(Te);me=Te._dc=e.delayedCall(X||.25,()=>{Te._vx.reset(),Te._vy.reset(),me.pause(),k&&k(Te)}).pause(),Te.deltaX=Te.deltaY=0,Te._vx=O(0,50,!0),Te._vy=O(0,50,!0),Te.scrollX=ke,Te.scrollY=Ce,Te.isDragging=Te.isGesturing=Te.isPressed=!1,Te.enable=e=>(Te.isEnabled||(T(Oe?Ae:m,"scroll",_),u.indexOf("scroll")>=0&&T(Oe?Ae:m,"scroll",qe,x,pe),u.indexOf("wheel")>=0&&T(m,"wheel",Ge,x,pe),(u.indexOf("touch")>=0&&l||u.indexOf("pointer")>=0)&&(T(m,h[0],Ne,x,pe),T(Ae,h[2],We),T(Ae,h[3],We),he&&T(m,"click",Xe,!1,!0),de&&T(m,"click",Ze),ne&&T(Ae,"gesturestart",Fe),se&&T(Ae,"gestureend",Ve),Q&&T(m,a+"enter",je),ee&&T(m,a+"leave",Ke),te&&T(m,a+"move",Ue)),Te.isEnabled=!0,e&&e.type&&Ne(e),le&&le(Te)),Te),Te.disable=()=>{Te.isEnabled&&(f.filter(e=>e!==Te&&w(e.target)).length||S(Oe?Ae:m,"scroll",_),Te.isPressed&&(Te._vx.reset(),Te._vy.reset(),S(ie?m:Ae,h[1],Ie)),S(Oe?Ae:m,"scroll",qe),S(m,"wheel",Ge),S(m,h[0],Ne),S(Ae,h[2],We),S(Ae,h[3],We),S(m,"click",Xe),S(m,"click",Ze),S(Ae,"gesturestart",Fe),S(Ae,"gestureend",Ve),S(m,a+"enter",je),S(m,a+"leave",Ke),S(m,a+"move",Ue),Te.isEnabled=Te.isPressed=Te.isDragging=!1,ae&&ae(Te))},Te.kill=()=>{Te.disable();let e=f.indexOf(Te);e>=0&&f.splice(e,1),p===Te&&(p=0)},f.push(Te),ie&&w(m)&&(p=Te),Te.enable(B)}get velocityX(){return this._vx.getVelocity()}get velocityY(){return this._vy.getVelocity()}}X.version="3.10.3",X.create=e=>new X(e),X.register=Y,X.getAll=()=>f.slice(),X.getById=e=>f.filter(t=>t.vars.id===e)[0],g()&&e.registerPlugin(X);let L,z,B,H,I,N,W,F,V,q,G,U,j,K,Z,$,J,Q,ee,te,re,ie,ne,se,oe,le,ae,de,ce,pe,he,ge,ue=1,fe=Date.now,me=fe(),ve=0,ye=0,be=()=>K=1,xe=()=>K=0,we=e=>e,Te=e=>Math.round(1e5*e)/1e5||0,Se=()=>"undefined"!=typeof window,_e=()=>L||Se()&&(L=window.gsap)&&L.registerPlugin&&L,ke=e=>!!~W.indexOf(e),Ce=e=>x(e,"getBoundingClientRect")||(ke(e)?()=>(Pt.width=B.innerWidth,Pt.height=B.innerHeight,Pt):()=>We(e)),Ee=(e,{s:t,d2:r,d:i,a:n})=>(t="scroll"+r)&&(n=x(e,t))?n()-Ce(e)()[i]:ke(e)?(I[t]||N[t])-(B["inner"+r]||I["client"+r]||N["client"+r]):e[t]-e["offset"+r],Me=(e,t)=>{for(let r=0;r<ee.length;r+=3)(!t||~t.indexOf(ee[r+1]))&&e(ee[r],ee[r+1],ee[r+2])},Pe=e=>"string"==typeof e,Oe=e=>"function"==typeof e,Ae=e=>"number"==typeof e,De=e=>"object"==typeof e,Re=e=>Oe(e)&&e(),Ye=(e,t)=>()=>{let r=Re(e),i=Re(t);return()=>{Re(r),Re(i)}},Xe=(e,t,r)=>e&&e.progress(t?0:1)&&r&&e.pause(),Le=(e,t)=>{if(e.enabled){let r=t(e);r&&r.totalTime&&(e.callbackAnimation=r)}},ze=Math.abs,Be="padding",He="px",Ie=e=>B.getComputedStyle(e),Ne=(e,t)=>{for(let r in t)r in e||(e[r]=t[r]);return e},We=(e,t)=>{let r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==Ie(e)[Z]&&L.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return r&&r.progress(0).kill(),i},Fe=(e,{d2:t})=>e["offset"+t]||e["client"+t]||0,Ve=e=>{let t,r=[],i=e.labels,n=e.duration();for(t in i)r.push(i[t]/n);return r},qe=e=>{let t=L.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort((e,t)=>e-t);return r?(e,i,n=.001)=>{let s;if(!i)return t(e);if(i>0){for(e-=n,s=0;s<r.length;s++)if(r[s]>=e)return r[s];return r[s-1]}for(s=r.length,e+=n;s--;)if(r[s]<=e)return r[s];return r[0]}:(r,i,n=.001)=>{let s=t(r);return!i||Math.abs(s-r)<n||s-r<0==i<0?s:t(i<0?r-e:r+e)}},Ge=(e,t,r,i)=>r.split(",").forEach(r=>e(t,r,i)),Ue=(e,t,r,i,n)=>e.addEventListener(t,r,{passive:!i,capture:!!n}),je=(e,t,r)=>e.removeEventListener(t,r),Ke=(e,t,r)=>r&&r.wheelHandler&&e(t,"wheel",r),Ze={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},$e={toggleActions:"play",anticipatePin:0},Je={top:0,left:0,center:.5,bottom:1,right:1},Qe=(e,t)=>{if(Pe(e)){let r=e.indexOf("="),i=~r?+(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(i*=t/100),e=e.substr(0,r-1)),e=i+(e in Je?Je[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},et=(e,t,r,i,{startColor:n,endColor:s,fontSize:o,indent:l,fontWeight:a},d,c,p)=>{let h=H.createElement("div"),g=ke(r)||"fixed"===x(r,"pinType"),u=-1!==e.indexOf("scroller"),f=g?N:r,m=-1!==e.indexOf("start"),v=m?n:s,y="border-color:"+v+";font-size:"+o+";color:"+v+";font-weight:"+a+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((u||p)&&g?"fixed;":"absolute;"),(u||p||!g)&&(y+=(i===E?"right":"bottom")+":"+(d+parseFloat(l))+"px;"),c&&(y+="box-sizing:border-box;text-align:left;width:"+c.offsetWidth+"px;"),h._isStart=m,h.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),h.style.cssText=y,h.innerText=t||0===t?e+"-"+t:e,f.children[0]?f.insertBefore(h,f.children[0]):f.appendChild(h),h._offset=h["offset"+i.op.d2],tt(h,0,i,m),h},tt=(e,t,r,i)=>{let n={display:"block"},s=r[i?"os2":"p2"],o=r[i?"p2":"os2"];e._isFlipped=i,n[r.a+"Percent"]=i?-100:0,n[r.a]=i?"1px":0,n["border"+s+"Width"]=1,n["border"+o+"Width"]=0,n[r.p]=t+"px",L.set(e,n)},rt=[],it={},nt=()=>fe()-ve>34&&Tt(),st=()=>{ne&&ne.isPressed||(m.cache++,de||(de=requestAnimationFrame(Tt)),ve||gt("scrollStart"),ve=fe())},ot=()=>{le=B.innerWidth,oe=B.innerHeight},lt=()=>{m.cache++,!j&&!ie&&!H.fullscreenElement&&(!se||le!==B.innerWidth||Math.abs(B.innerHeight-oe)>.25*B.innerHeight)&&F.restart(!0)},at={},dt=[],ct=[],pt=e=>{let t,r=L.ticker.frame,i=[],n=0;if(pe!==r||ue){for(mt();n<ct.length;n+=4)t=B.matchMedia(ct[n]).matches,t!==ct[n+3]&&(ct[n+3]=t,t?i.push(n):mt(1,ct[n])||Oe(ct[n+2])&&ct[n+2]());for(ft(),n=0;n<i.length;n++)t=i[n],ce=ct[t],ct[t+2]=ct[t+1](e);ce=0,z&&bt(0,1),pe=r,gt("matchMedia")}},ht=()=>je(Yt,"scrollEnd",ht)||bt(!0),gt=e=>at[e]&&at[e].map(e=>e())||dt,ut=[],ft=e=>{for(let t=0;t<ut.length;t+=5)e&&ut[t+4]!==e||(ut[t].style.cssText=ut[t+1],ut[t].getBBox&&ut[t].setAttribute("transform",ut[t+2]||""),ut[t+3].uncache=1)},mt=(e,t)=>{let r;for($=0;$<rt.length;$++)r=rt[$],t&&r.media!==t||(e?r.kill(1):r.revert());t&&ft(t),t||gt("revert")},vt=()=>m.cache++&&m.forEach(e=>"function"==typeof e&&(e.rec=0)),yt=0,bt=(e,t)=>{if(ve&&!e)return void Ue(Yt,"scrollEnd",ht);he=!0;let r=gt("refreshInit");te&&Yt.sort(),t||mt(),rt.slice(0).forEach(e=>e.refresh()),rt.forEach(e=>"max"===e.vars.end&&e.setPositions(e.start,Ee(e.scroller,e._dir))),r.forEach(e=>e&&e.render&&e.render(-1)),vt(),F.pause(),yt++,he=!1,gt("refresh")},xt=0,wt=1,Tt=()=>{if(!he){ge&&ge.update(0),Yt.isUpdating=!0;let e=rt.length,t=fe(),r=t-me>=50,i=e&&rt[0].scroll();if(wt=xt>i?-1:1,xt=i,r&&(ve&&!K&&t-ve>200&&(ve=0,gt("scrollEnd")),G=me,me=t),wt<0){for($=e;$-- >0;)rt[$]&&rt[$].update(0,r);wt=1}else for($=0;$<e;$++)rt[$]&&rt[$].update(0,r);Yt.isUpdating=!1}de=0},St=["left","top","bottom","right","marginBottom","marginRight","marginTop","marginLeft","display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],_t=St.concat(["width","height","boxSizing","maxWidth","maxHeight","position","margin",Be,"paddingTop","paddingRight","paddingBottom","paddingLeft"]),kt=(e,t,r,i)=>{if(e.parentNode!==t){let n,s=St.length,o=t.style,l=e.style;for(;s--;)n=St[s],o[n]=r[n];o.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(o.display="inline-block"),l.bottom=l.right=o.flexBasis="auto",o.overflow="visible",o.boxSizing="border-box",o.width=Fe(e,C)+He,o.height=Fe(e,E)+He,o.padding=l.margin=l.top=l.left="0",Et(i),l.width=l.maxWidth=r.width,l.height=l.maxHeight=r.height,l.padding=r.padding,e.parentNode.insertBefore(t,e),t.appendChild(e)}},Ct=/([A-Z])/g,Et=e=>{if(e){let t,r,i=e.t.style,n=e.length,s=0;for((e.t._gsap||L.core.getCache(e.t)).uncache=1;s<n;s+=2)r=e[s+1],t=e[s],r?i[t]=r:i[t]&&i.removeProperty(t.replace(Ct,"-$1").toLowerCase())}},Mt=e=>{let t=_t.length,r=e.style,i=[],n=0;for(;n<t;n++)i.push(_t[n],r[_t[n]]);return i.t=e,i},Pt={left:0,top:0},Ot=(e,t,r,i,n,s,o,l,a,d,c,p,h)=>{Oe(e)&&(e=e(l)),Pe(e)&&"max"===e.substr(0,3)&&(e=p+("="===e.charAt(4)?Qe("0"+e.substr(3),r):0));let g,u,f,m=h?h.time():0;if(h&&h.seek(0),Ae(e))o&&tt(o,r,i,!0);else{Oe(t)&&(t=t(l));let s,c,p,h,g=e.split(" ");f=M(t)||N,s=We(f)||{},s&&(s.left||s.top)||"none"!==Ie(f).display||(h=f.style.display,f.style.display="block",s=We(f),h?f.style.display=h:f.style.removeProperty("display")),c=Qe(g[0],s[i.d]),p=Qe(g[1]||"0",r),e=s[i.p]-a[i.p]-d+c+n-p,o&&tt(o,p,i,r-p<20||o._isStart&&p>20),r-=r-p}if(s){let t=e+r,n=s._isStart;g="scroll"+i.d2,tt(s,t,i,n&&t>20||!n&&(c?Math.max(N[g],I[g]):s.parentNode[g])<=t+1),c&&(a=We(o),c&&(s.style[i.op.p]=a[i.op.p]-i.op.m-s._offset+He))}return h&&f&&(g=We(f),h.seek(p),u=We(f),h._caScrollDist=g[i.p]-u[i.p],e=e/h._caScrollDist*p),h&&h.seek(m),h?e:Math.round(e)},At=/(webkit|moz|length|cssText|inset)/i,Dt=(e,t,r,i)=>{if(e.parentNode!==t){let n,s,o=e.style;if(t===N){for(n in e._stOrig=o.cssText,s=Ie(e),s)+n||At.test(n)||!s[n]||"string"!=typeof o[n]||"0"===n||(o[n]=s[n]);o.top=r,o.left=i}else o.cssText=e._stOrig;L.core.getCache(e).uncache=1,t.appendChild(e)}},Rt=(e,t)=>{let r,i,n=P(e,t),s="_scroll"+t.p2,o=(t,l,a,d,c)=>{let p=o.tween,h=l.onComplete,g={};return a=a||n(),c=d&&c||0,d=d||t-a,p&&p.kill(),r=Math.round(a),l[s]=t,l.modifiers=g,g[s]=e=>((e=Te(n()))!==r&&e!==i&&Math.abs(e-r)>2&&Math.abs(e-i)>2?(p.kill(),o.tween=0):e=a+d*p.ratio+c*p.ratio*p.ratio,i=r,r=Te(e)),l.onComplete=()=>{o.tween=0,h&&h.call(p)},p=o.tween=L.to(e,l),p};return e[s]=n,n.wheelHandler=()=>o.tween&&o.tween.kill()&&(o.tween=0),Ue(e,"wheel",n.wheelHandler),o};class Yt{constructor(e,t){z||Yt.register(L)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,t)}init(e,t){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!ye)return void(this.update=this.refresh=this.kill=we);e=Ne(Pe(e)||Ae(e)||e.nodeType?{trigger:e}:e,$e);let r,i,n,s,o,l,a,d,c,p,h,g,u,f,m,y,b,w,T,S,_,k,O,A,D,R,Y,X,z,W,F,U,Z,J,Q,ee,ie,ne,{onUpdate:se,toggleClass:oe,id:le,onToggle:de,onRefresh:pe,scrub:me,trigger:be,pin:xe,pinSpacing:Se,invalidateOnRefresh:_e,anticipatePin:Me,onScrubComplete:Re,onSnapComplete:Ye,once:Ge,snap:Ke,pinReparent:Je,pinSpacer:tt,containerAnimation:nt,fastScrollEnd:ot,preventOverlaps:at}=e,dt=e.horizontal||e.containerAnimation&&!1!==e.horizontal?C:E,ct=!me&&0!==me,pt=M(e.scroller||B),gt=L.core.getCache(pt),ut=ke(pt),ft="fixed"===("pinType"in e?e.pinType:x(pt,"pinType")||ut&&"fixed"),mt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],vt=ct&&e.toggleActions.split(" "),yt="markers"in e?e.markers:$e.markers,bt=ut?0:parseFloat(Ie(pt)["border"+dt.p2+"Width"])||0,xt=this,Tt=e.onRefreshInit&&(()=>e.onRefreshInit(xt)),St=((e,t,{d:r,d2:i,a:n})=>(n=x(e,"getBoundingClientRect"))?()=>n()[r]:()=>(t?B["inner"+i]:e["client"+i])||0)(pt,ut,dt),_t=((e,t)=>!t||~v.indexOf(e)?Ce(e):()=>Pt)(pt,ut),Ct=0,At=0,Xt=P(pt,dt);var Lt;if(xt.media=ce,xt._dir=dt,Me*=45,xt.scroller=pt,xt.scroll=nt?nt.time.bind(nt):Xt,s=Xt(),xt.vars=e,t=t||e.animation,"refreshPriority"in e&&(te=1,-9999===e.refreshPriority&&(ge=xt)),gt.tweenScroll=gt.tweenScroll||{top:Rt(pt,E),left:Rt(pt,C)},xt.tweenTo=r=gt.tweenScroll[dt.p],xt.scrubDuration=e=>{F=Ae(e)&&e,F?W?W.duration(e):W=L.to(t,{ease:"expo",totalProgress:"+=0.001",duration:F,paused:!0,onComplete:()=>Re&&Re(xt)}):(W&&W.progress(1).kill(),W=0)},t&&(t.vars.lazy=!1,t._initted||!1!==t.vars.immediateRender&&!1!==e.immediateRender&&t.render(0,!0,!0),xt.animation=t.pause(),t.scrollTrigger=xt,xt.scrubDuration(me),X=0,le||(le=t.vars.id)),rt.push(xt),Ke&&(De(Ke)&&!Ke.push||(Ke={snapTo:Ke}),"scrollBehavior"in N.style&&L.set(ut?[N,I]:pt,{scrollBehavior:"auto"}),n=Oe(Ke.snapTo)?Ke.snapTo:"labels"===Ke.snapTo?(e=>t=>L.utils.snap(Ve(e),t))(t):"labelsDirectional"===Ke.snapTo?(Lt=t,(e,t)=>qe(Ve(Lt))(e,t.direction)):!1!==Ke.directional?(e,t)=>qe(Ke.snapTo)(e,fe()-At<500?0:t.direction):L.utils.snap(Ke.snapTo),U=Ke.duration||{min:.1,max:2},U=De(U)?q(U.min,U.max):q(U,U),Z=L.delayedCall(Ke.delay||F/2||.1,()=>{let e=Xt(),i=fe()-At<500,s=r.tween;if(!(i||Math.abs(xt.getVelocity())<10)||s||K||Ct===e)xt.isActive&&Ct!==e&&Z.restart(!0);else{let o=(e-l)/u,d=t&&!ct?t.totalProgress():o,c=i?0:(d-z)/(fe()-G)*1e3||0,p=L.utils.clamp(-o,1-o,ze(c/2)*c/.185),h=o+(!1===Ke.inertia?0:p),g=q(0,1,n(h,xt)),f=Math.round(l+g*u),{onStart:m,onInterrupt:v,onComplete:y}=Ke;if(e<=a&&e>=l&&f!==e){if(s&&!s._initted&&s.data<=ze(f-e))return;!1===Ke.inertia&&(p=g-o),r(f,{duration:U(ze(.185*Math.max(ze(h-d),ze(g-d))/c/.05||0)),ease:Ke.ease||"power3",data:ze(f-e),onInterrupt:()=>Z.restart(!0)&&v&&v(xt),onComplete:()=>{xt.update(),Ct=Xt(),X=z=t&&!ct?t.totalProgress():xt.progress,Ye&&Ye(xt),y&&y(xt)}},e,p*u,f-e-p*u),m&&m(xt,r.tween)}}}).pause()),le&&(it[le]=xt),be=xt.trigger=M(be||xe),ne=be&&be._gsap&&be._gsap.stRevert,ne&&(ne=ne(xt)),xe=!0===xe?be:M(xe),Pe(oe)&&(oe={targets:be,className:oe}),xe&&(!1===Se||"margin"===Se||(Se=!(!Se&&"flex"===Ie(xe.parentNode).display)&&Be),xt.pin=xe,!1!==e.force3D&&L.set(xe,{force3D:!0}),i=L.core.getCache(xe),i.spacer?f=i.pinState:(tt&&(tt=M(tt),tt&&!tt.nodeType&&(tt=tt.current||tt.nativeElement),i.spacerIsNative=!!tt,tt&&(i.spacerState=Mt(tt))),i.spacer=b=tt||H.createElement("div"),b.classList.add("pin-spacer"),le&&b.classList.add("pin-spacer-"+le),i.pinState=f=Mt(xe)),xt.spacer=b=i.spacer,Y=Ie(xe),O=Y[Se+dt.os2],T=L.getProperty(xe),S=L.quickSetter(xe,dt.a,He),kt(xe,b,Y),y=Mt(xe)),yt){g=De(yt)?Ne(yt,Ze):Ze,p=et("scroller-start",le,pt,dt,g,0),h=et("scroller-end",le,pt,dt,g,0,p),w=p["offset"+dt.op.d2];let e=M(x(pt,"content")||pt);d=this.markerStart=et("start",le,e,dt,g,w,0,nt),c=this.markerEnd=et("end",le,e,dt,g,w,0,nt),nt&&(ie=L.quickSetter([d,c],dt.a,He)),ft||v.length&&!0===x(pt,"fixedMarkers")||((e=>{let t=Ie(e).position;e.style.position="absolute"===t||"fixed"===t?t:"relative"})(ut?N:pt),L.set([p,h],{force3D:!0}),D=L.quickSetter(p,dt.a,He),R=L.quickSetter(h,dt.a,He))}if(nt){let e=nt.vars.onUpdate,t=nt.vars.onUpdateParams;nt.eventCallback("onUpdate",()=>{xt.update(0,0,1),e&&e.apply(t||[])})}xt.previous=()=>rt[rt.indexOf(xt)-1],xt.next=()=>rt[rt.indexOf(xt)+1],xt.revert=e=>{let r=!1!==e||!xt.enabled,i=j;r!==xt.isReverted&&(r&&(xt.scroll.rec||!j||!he||(xt.scroll.rec=Xt()),Q=Math.max(Xt(),xt.scroll.rec||0),J=xt.progress,ee=t&&t.progress()),d&&[d,c,p,h].forEach(e=>e.style.display=r?"none":"block"),r&&(j=1),xt.update(r),j=i,xe&&(r?((e,t,r)=>{Et(r);let i=e._gsap;if(i.spacerIsNative)Et(i.spacerState);else if(e.parentNode===t){let r=t.parentNode;r&&(r.insertBefore(e,t),r.removeChild(t))}})(xe,b,f):(!Je||!xt.isActive)&&kt(xe,b,Ie(xe),A)),xt.isReverted=r)},xt.refresh=(i,n)=>{if((j||!xt.enabled)&&!n)return;if(xe&&i&&ve)return void Ue(Yt,"scrollEnd",ht);!he&&Tt&&Tt(xt),j=1,At=fe(),r.tween&&(r.tween.kill(),r.tween=0),W&&W.pause(),_e&&t&&t.time(-.01,!0).invalidate(),xt.isReverted||xt.revert();let g,v,x,w,S,O,D,R,Y,X,z=St(),B=_t(),H=nt?nt.duration():Ee(pt,dt),I=0,F=0,V=e.end,q=e.endTrigger||be,G=e.start||(0!==e.start&&be?xe?"0 0":"0 100%":0),U=xt.pinnedContainer=e.pinnedContainer&&M(e.pinnedContainer),K=be&&Math.max(0,rt.indexOf(xt))||0,$=K;for(;$--;)O=rt[$],O.end||O.refresh(0,1)||(j=1),D=O.pin,!D||D!==be&&D!==xe||O.isReverted||(X||(X=[]),X.unshift(O),O.revert()),O!==rt[$]&&(K--,$--);for(Oe(G)&&(G=G(xt)),l=Ot(G,be,z,dt,Xt(),d,p,xt,B,bt,ft,H,nt)||(xe?-.001:0),Oe(V)&&(V=V(xt)),Pe(V)&&!V.indexOf("+=")&&(~V.indexOf(" ")?V=(Pe(G)?G.split(" ")[0]:"")+V:(I=Qe(V.substr(2),z),V=Pe(G)?G:l+I,q=be)),a=Math.max(l,Ot(V||(q?"100% 0":H),q,z,dt,Xt()+I,c,h,xt,B,bt,ft,H,nt))||-.001,u=a-l||(l-=.01)&&.001,I=0,$=K;$--;)O=rt[$],D=O.pin,D&&O.start-O._pinPush<l&&!nt&&O.end>0&&(g=O.end-O.start,D!==be&&D!==U||Ae(G)||(I+=g*(1-O.progress)),D===xe&&(F+=g));if(l+=I,a+=I,xt._pinPush=F,d&&I&&(g={},g[dt.a]="+="+I,U&&(g[dt.p]="-="+Xt()),L.set([d,c],g)),xe)g=Ie(xe),w=dt===E,x=Xt(),_=parseFloat(T(dt.a))+F,!H&&a>1&&((ut?N:pt).style["overflow-"+dt.a]="scroll"),kt(xe,b,g),y=Mt(xe),v=We(xe,!0),R=ft&&P(pt,w?C:E)(),Se&&(A=[Se+dt.os2,u+F+He],A.t=b,$=Se===Be?Fe(xe,dt)+u+F:0,$&&A.push(dt.d,$+He),Et(A),ft&&Xt(Q)),ft&&(S={top:v.top+(w?x-l:R)+He,left:v.left+(w?R:x-l)+He,boxSizing:"border-box",position:"fixed"},S.width=S.maxWidth=Math.ceil(v.width)+He,S.height=S.maxHeight=Math.ceil(v.height)+He,S.margin=S.marginTop=S.marginRight=S.marginBottom=S.marginLeft="0",S.padding=g.padding,S.paddingTop=g.paddingTop,S.paddingRight=g.paddingRight,S.paddingBottom=g.paddingBottom,S.paddingLeft=g.paddingLeft,m=((e,t,r)=>{let i,n=[],s=e.length,o=r?8:0;for(;o<s;o+=2)i=e[o],n.push(i,i in t?t[i]:e[o+1]);return n.t=e.t,n})(f,S,Je)),t?(Y=t._initted,re(1),t.render(t.duration(),!0,!0),k=T(dt.a)-_+u+F,u!==k&&m.splice(m.length-2,2),t.render(0,!0,!0),Y||t.invalidate(),re(0)):k=u;else if(be&&Xt()&&!nt)for(v=be.parentNode;v&&v!==N;)v._pinOffset&&(l-=v._pinOffset,a-=v._pinOffset),v=v.parentNode;X&&X.forEach(e=>e.revert(!1)),xt.start=l,xt.end=a,s=o=Xt(),nt||(s<Q&&Xt(Q),xt.scroll.rec=0),xt.revert(!1),Z&&(Ct=-1,xt.isActive&&Xt(l+u*J),Z.restart(!0)),j=0,t&&ct&&(t._initted||ee)&&t.progress()!==ee&&t.progress(ee,!0).render(t.time(),!0,!0),(J!==xt.progress||nt)&&(t&&!ct&&t.totalProgress(J,!0),xt.progress=J,xt.update(0,0,1)),xe&&Se&&(b._pinOffset=Math.round(xt.progress*k)),pe&&pe(xt)},xt.getVelocity=()=>(Xt()-o)/(fe()-G)*1e3||0,xt.endAnimation=()=>{Xe(xt.callbackAnimation),t&&(W?W.progress(1):t.paused()?ct||Xe(t,xt.direction<0,1):Xe(t,t.reversed()))},xt.labelToScroll=e=>t&&t.labels&&(l||xt.refresh()||l)+t.labels[e]/t.duration()*u||0,xt.getTrailing=e=>{let t=rt.indexOf(xt),r=xt.direction>0?rt.slice(0,t).reverse():rt.slice(t+1);return(Pe(e)?r.filter(t=>t.vars.preventOverlaps===e):r).filter(e=>xt.direction>0?e.end<=l:e.start>=a)},xt.update=(e,i,n)=>{if(nt&&!n&&!e)return;let d,c,h,g,f,v,x,w,T=xt.scroll(),C=e?0:(T-l)/u,M=C<0?0:C>1?1:C||0,P=xt.progress;if(i&&(o=s,s=nt?Xt():T,Ke&&(z=X,X=t&&!ct?t.totalProgress():M)),Me&&!M&&xe&&!j&&!ue&&ve&&l<T+(T-o)/(fe()-G)*Me&&(M=1e-4),M!==P&&xt.enabled){if(d=xt.isActive=!!M&&M<1,c=!!P&&P<1,v=d!==c,f=v||!!M!=!!P,xt.direction=M>P?1:-1,xt.progress=M,f&&!j&&(h=M&&!P?0:1===M?1:1===P?2:3,ct&&(g=!v&&"none"!==vt[h+1]&&vt[h+1]||vt[h],w=t&&("complete"===g||"reset"===g||g in t))),at&&(v||w)&&(w||me||!t)&&(Oe(at)?at(xt):xt.getTrailing(at).forEach(e=>e.endAnimation())),ct||(!W||j||ue?t&&t.totalProgress(M,!!j):((nt||ge&&ge!==xt)&&W.render(W._dp._time-W._start),W.resetTo?W.resetTo("totalProgress",M,t._tTime/t._tDur):(W.vars.totalProgress=M,W.invalidate().restart()))),xe)if(e&&Se&&(b.style[Se+dt.os2]=O),ft){if(f){if(x=!e&&M>P&&a+1>T&&T+1>=Ee(pt,dt),Je)if(e||!d&&!x)Dt(xe,b);else{let e=We(xe,!0),t=T-l;Dt(xe,N,e.top+(dt===E?t:0)+He,e.left+(dt===E?0:t)+He)}Et(d||x?m:y),k!==u&&M<1&&d||S(_+(1!==M||x?0:k))}}else S(Te(_+k*M));Ke&&!r.tween&&!j&&!ue&&Z.restart(!0),oe&&(v||Ge&&M&&(M<1||!ae))&&V(oe.targets).forEach(e=>e.classList[d||Ge?"add":"remove"](oe.className)),se&&!ct&&!e&&se(xt),f&&!j?(ct&&(w&&("complete"===g?t.pause().totalProgress(1):"reset"===g?t.restart(!0).pause():"restart"===g?t.restart(!0):t[g]()),se&&se(xt)),!v&&ae||(de&&v&&Le(xt,de),mt[h]&&Le(xt,mt[h]),Ge&&(1===M?xt.kill(!1,1):mt[h]=0),v||(h=1===M?1:3,mt[h]&&Le(xt,mt[h]))),ot&&!d&&Math.abs(xt.getVelocity())>(Ae(ot)?ot:2500)&&(Xe(xt.callbackAnimation),W?W.progress(1):Xe(t,!M,1))):ct&&se&&!j&&se(xt)}if(R){let e=nt?T/nt.duration()*(nt._caScrollDist||0):T;D(e+(p._isFlipped?1:0)),R(e)}ie&&ie(-T/nt.duration()*(nt._caScrollDist||0))},xt.enable=(e,t)=>{xt.enabled||(xt.enabled=!0,Ue(pt,"resize",lt),Ue(ut?H:pt,"scroll",st),Tt&&Ue(Yt,"refreshInit",Tt),!1!==e&&(xt.progress=J=0,s=o=Ct=Xt()),!1!==t&&xt.refresh())},xt.getTween=e=>e&&r?r.tween:W,xt.setPositions=(e,t)=>{xe&&(_+=e-l,k+=t-e-u),xt.start=l=e,xt.end=a=t,u=t-e,xt.update()},xt.disable=(e,t)=>{if(xt.enabled&&(!1!==e&&xt.revert(),xt.enabled=xt.isActive=!1,t||W&&W.pause(),Q=0,i&&(i.uncache=1),Tt&&je(Yt,"refreshInit",Tt),Z&&(Z.pause(),r.tween&&r.tween.kill()&&(r.tween=0)),!ut)){let e=rt.length;for(;e--;)if(rt[e].scroller===pt&&rt[e]!==xt)return;je(pt,"resize",lt),je(pt,"scroll",st)}},xt.kill=(r,n)=>{xt.disable(r,n),W&&!n&&W.kill(),le&&delete it[le];let s=rt.indexOf(xt);s>=0&&rt.splice(s,1),s===$&&wt>0&&$--,s=0,rt.forEach(e=>e.scroller===xt.scroller&&(s=1)),s||(xt.scroll.rec=0),t&&(t.scrollTrigger=null,r&&t.render(-1),n||t.kill()),d&&[d,c,p,h].forEach(e=>e.parentNode&&e.parentNode.removeChild(e)),ge===xt&&(ge=0),xe&&(i&&(i.uncache=1),s=0,rt.forEach(e=>e.pin===xe&&s++),s||(i.spacer=0)),e.onKill&&e.onKill(xt)},xt.enable(!1,!1),ne&&ne(xt),t&&t.add&&!u?L.delayedCall(.01,()=>l||a||xt.refresh())&&(u=.01)&&(l=a=0):xt.refresh()}static register(e){return z||(L=e||_e(),Se()&&window.document&&Yt.enable(),z=ye),z}static defaults(e){if(e)for(let t in e)$e[t]=e[t];return $e}static disable(e,t){ye=0,rt.forEach(r=>r[t?"kill":"disable"](e)),je(B,"wheel",st),je(H,"scroll",st),clearInterval(U),je(H,"touchcancel",we),je(N,"touchstart",we),Ge(je,H,"pointerdown,touchstart,mousedown",be),Ge(je,H,"pointerup,touchend,mouseup",xe),F.kill(),Me(je);for(let e=0;e<m.length;e+=3)Ke(je,m[e],m[e+1]),Ke(je,m[e],m[e+2])}static enable(){if(B=window,H=document,I=H.documentElement,N=H.body,L&&(V=L.utils.toArray,q=L.utils.clamp,re=L.core.suppressOverwrites||we,L.core.globals("ScrollTrigger",Yt),N)){ye=1,X.register(L),Yt.isTouch=X.isTouch,Ue(B,"wheel",st),W=[B,H,I,N],Yt.matchMedia({"(orientation: portrait)":()=>(ot(),ot)}),Ue(H,"scroll",st);let e,t,r=N.style,i=r.borderTopStyle;for(r.borderTopStyle="solid",e=We(N),E.m=Math.round(e.top+E.sc())||0,C.m=Math.round(e.left+C.sc())||0,i?r.borderTopStyle=i:r.removeProperty("border-top-style"),U=setInterval(nt,250),L.delayedCall(.5,()=>ue=0),Ue(H,"touchcancel",we),Ue(N,"touchstart",we),Ge(Ue,H,"pointerdown,touchstart,mousedown",be),Ge(Ue,H,"pointerup,touchend,mouseup",xe),Z=L.utils.checkPrefix("transform"),_t.push(Z),z=fe(),F=L.delayedCall(.2,bt).pause(),ee=[H,"visibilitychange",()=>{let e=B.innerWidth,t=B.innerHeight;H.hidden?(J=e,Q=t):J===e&&Q===t||lt()},H,"DOMContentLoaded",bt,B,"load",bt,B,"resize",lt],Me(Ue),rt.forEach(e=>e.enable(0,1)),t=0;t<m.length;t+=3)Ke(je,m[t],m[t+1]),Ke(je,m[t],m[t+2])}}static config(e){"limitCallbacks"in e&&(ae=!!e.limitCallbacks);let t=e.syncInterval;t&&clearInterval(U)||(U=t)&&setInterval(nt,t),"ignoreMobileResize"in e&&(se=1===Yt.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Me(je)||Me(Ue,e.autoRefreshEvents||"none"),ie=-1===(e.autoRefreshEvents+"").indexOf("resize"))}static scrollerProxy(e,t){let r=M(e),i=m.indexOf(r),n=ke(r);~i&&m.splice(i,n?6:2),t&&(n?v.unshift(B,t,N,t,I,t):v.unshift(r,t))}static matchMedia(e){let t,r,i,n,s;for(r in e)i=ct.indexOf(r),n=e[r],ce=r,"all"===r?n():(t=B.matchMedia(r),t&&(t.matches&&(s=n()),~i?(ct[i+1]=Ye(ct[i+1],n),ct[i+2]=Ye(ct[i+2],s)):(i=ct.length,ct.push(r,n,s),t.addListener?t.addListener(pt):t.addEventListener("change",pt)),ct[i+3]=t.matches)),ce=0;return ct}static clearMatchMedia(e){e||(ct.length=0),(e=ct.indexOf(e))>=0&&ct.splice(e,4)}static isInViewport(e,t,r){let i=(Pe(e)?M(e):e).getBoundingClientRect(),n=i[r?"width":"height"]*t||0;return r?i.right-n>0&&i.left+n<B.innerWidth:i.bottom-n>0&&i.top+n<B.innerHeight}static positionInViewport(e,t,r){Pe(e)&&(e=M(e));let i=e.getBoundingClientRect(),n=i[r?"width":"height"],s=null==t?n/2:t in Je?Je[t]*n:~t.indexOf("%")?parseFloat(t)*n/100:parseFloat(t)||0;return r?(i.left+s)/B.innerWidth:(i.top+s)/B.innerHeight}}Yt.version="3.10.3",Yt.saveStyles=e=>e?V(e).forEach(e=>{if(e&&e.style){let t=ut.indexOf(e);t>=0&&ut.splice(t,5),ut.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),L.core.getCache(e),ce)}}):ut,Yt.revert=(e,t)=>mt(!e,t),Yt.create=(e,t)=>new Yt(e,t),Yt.refresh=e=>e?lt():(z||Yt.register())&&bt(!0),Yt.update=Tt,Yt.clearScrollMemory=vt,Yt.maxScroll=(e,t)=>Ee(e,t?C:E),Yt.getScrollFunc=(e,t)=>P(M(e),t?C:E),Yt.getById=e=>it[e],Yt.getAll=()=>rt.filter(e=>"ScrollSmoother"!==e.vars.id),Yt.isScrolling=()=>!!ve,Yt.snapDirectional=qe,Yt.addEventListener=(e,t)=>{let r=at[e]||(at[e]=[]);~r.indexOf(t)||r.push(t)},Yt.removeEventListener=(e,t)=>{let r=at[e],i=r&&r.indexOf(t);i>=0&&r.splice(i,1)},Yt.batch=(e,t)=>{let r,i=[],n={},s=t.interval||.016,o=t.batchMax||1e9,l=(e,t)=>{let r=[],i=[],n=L.delayedCall(s,()=>{t(r,i),r=[],i=[]}).pause();return e=>{r.length||n.restart(!0),r.push(e.trigger),i.push(e),o<=r.length&&n.progress(1)}};for(r in t)n[r]="on"===r.substr(0,2)&&Oe(t[r])&&"onRefreshInit"!==r?l(0,t[r]):t[r];return Oe(o)&&(o=o(),Ue(Yt,"refresh",()=>o=t.batchMax())),V(e).forEach(e=>{let t={};for(r in n)t[r]=n[r];t.trigger=e,i.push(Yt.create(t))}),i};let Xt,Lt=(e,t,r,i)=>(t>i?e(i):t<0&&e(0),r>i?(i-t)/(r-t):r<0?t/(t-r):1),zt=(e,t)=>{!0===t?e.style.removeProperty("touch-action"):e.style.touchAction=t?"pan-"+t:"none",e===I&&zt(N)},Bt={auto:1,scroll:1},Ht=({event:e,target:t,axis:r})=>{let i,n=(e.changedTouches?e.changedTouches[0]:e).target,s=n._gsap||L.core.getCache(n),o=fe();if(!s._isScrollT||o-s._isScrollT>2e3){for(;n&&n.scrollHeight<=n.clientHeight;)n=n.parentNode;s._isScroll=n&&!ke(n)&&n!==t&&(Bt[(i=Ie(n)).overflowY]||Bt[i.overflowX]),s._isScrollT=o}(s._isScroll||"x"===r)&&(e._gsapAllow=!0)},It=(e,t,r,i)=>X.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:i=i&&Ht,onPress:i,onDrag:i,onScroll:i,onEnable:()=>r&&Ue(H,X.eventTypes[0],Wt,!1,!0),onDisable:()=>je(H,X.eventTypes[0],Wt)}),Nt=/(input|label|select|textarea)/i,Wt=e=>{let t=Nt.test(e.target.tagName);(t||Xt)&&(e._gsapAllow=!0,Xt=t)},Ft=e=>{De(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";let t,r,i,n,s,o,l,a,{normalizeScrollX:d,momentum:c,allowNestedScroll:p}=e,h=M(e.target)||I,g=P(h,E),u=P(h,C),f=1,m=0,v=Oe(c)?()=>c(t):()=>c||2.8,y=It(h,e.type,!0,p),b=()=>i=!1,x=we,w=we,T=()=>{r=Ee(h,E),w=q(0,r),d&&(x=q(0,Ee(h,C))),n=yt},S=Yt.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),_=()=>{T(),s.isActive()&&s.vars.scrollY>r&&s.resetTo("scrollY",Ee(h,E))};return e.ignoreCheck=e=>S&&"touchmove"===e.type&&(()=>{if(i)return requestAnimationFrame(b),!0;i=!0})()||f>1||t.isGesturing||e.touches&&e.touches.length>1,e.onPress=()=>{let e=f;f=B.visualViewport&&B.visualViewport.scale||1,s.pause(),e!==f&&zt(h,f>1||!d&&"x"),i=!1,o=u(),l=g(),T(),n=yt},e.onRelease=e.onGestureStart=(e,t)=>{if(t){let t,r,i=v();d&&(t=u(),r=t+.05*i*-e.velocityX/.227/f,i*=Lt(u,t,r,Ee(h,C)),s.vars.scrollX=x(r)),t=g(),r=t+.05*i*-e.velocityY/.227/f,i*=Lt(g,t,r,Ee(h,E)),s.vars.scrollY=w(r),s.invalidate().duration(i).play(.01)}else a.restart(!0)},e.onWheel=()=>{s._ts&&s.pause(),fe()-m>1e3&&(n=0,m=fe())},e.onChange=(e,t,r,i,s)=>{yt!==n&&T(),t&&d&&u(x(i[2]===t?o+(e.startX-e.x)/f:u()+t-i[1])),r&&g(w(s[2]===r?l+(e.startY-e.y)/f:g()+r-s[1])),Tt()},e.onEnable=()=>{zt(h,!d&&"x"),Ue(B,"resize",_),y.enable()},e.onDisable=()=>{zt(h,!0),je(B,"resize",_),y.kill()},t=new X(e),a=t._dc,s=L.to(t,{ease:"power4",paused:!0,scrollX:d?"+=0.1":"+=0",scrollY:"+=0.1",onComplete:a.vars.onComplete}),t};Yt.sort=e=>rt.sort(e||((e,t)=>-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0)))),Yt.observe=e=>new X(e),Yt.normalizeScroll=e=>{if(void 0===e)return ne;if(!0===e&&ne)return ne.enable();if(!1===e)return ne&&ne.kill();let t=e instanceof X?e:Ft(e);return ne&&ne.target===t.target&&ne.kill(),ke(t.target)&&(ne=t),t},Yt.core={_getVelocityProp:O,_inputObserver:It,_scrollers:m,_proxies:v,bridge:{ss:()=>{ve||gt("scrollStart"),ve=fe()},ref:()=>j}},_e()&&L.registerPlugin(Yt);export default Yt;export{Yt as ScrollTrigger}; |
/*! | ||
* SplitText 3.10.2 | ||
* SplitText 3.10.3 | ||
* https://greensock.com | ||
@@ -13,2 +13,2 @@ * | ||
const D=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;let u,e,t,F=/(?:\r|\n|\t\t)/g,C=/(?:\s\s+)/g,i=function(){return String.fromCharCode.apply(null,arguments)},n=i(103,114,101,101,110,115,111,99,107,46,99,111,109),E=function(D){var u="undefined"!=typeof window,e=0===(u?window.location.href:"").indexOf(i(102,105,108,101,58,47,47))||-1!==D.indexOf(i(108,111,99,97,108,104,111,115,116))||-1!==D.indexOf(i(49,50,55,46,48,32,48,46,49)),t=[n,i(99,111,100,101,112,101,110,46,105,111),i(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),i(99,111,100,101,112,101,110,46,100,101,118),i(99,111,100,101,112,101,110,46,97,112,112),i(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),i(112,101,110,115,46,99,108,111,117,100),i(99,115,115,45,116,114,105,99,107,115,46,99,111,109),i(99,100,112,110,46,105,111),i(112,101,110,115,46,105,111),i(103,97,110,110,111,110,46,116,118),i(99,111,100,101,99,97,110,121,111,110,46,110,101,116),i(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),i(99,101,114,101,98,114,97,120,46,99,111,46,117,107),i(116,121,109,112,97,110,117,115,46,110,101,116),i(116,119,101,101,110,109,97,120,46,99,111,109),i(116,119,101,101,110,108,105,116,101,46,99,111,109),i(112,108,110,107,114,46,99,111),i(104,111,116,106,97,114,46,99,111,109),i(119,101,98,112,97,99,107,98,105,110,46,99,111,109),i(97,114,99,104,105,118,101,46,111,114,103),i(99,111,100,101,115,97,110,100,98,111,120,46,105,111),i(99,115,98,46,97,112,112),i(115,116,97,99,107,98,108,105,116,122,46,99,111,109),i(115,116,97,99,107,98,108,105,116,122,46,105,111),i(99,111,100,105,101,114,46,105,111),i(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),i(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),i(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),i(106,115,102,105,100,100,108,101,46,110,101,116)],F=function(){u&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",F):(document.removeEventListener("readystatechange",F),u&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(i(37,99,87,97,114,110,105,110,103),i(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(i(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"SplitText"+i(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(i(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),i(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},C=t.length;for(setTimeout(F,50);--C>-1;)if(-1!==D.indexOf(t[C]))return!0;return e||!setTimeout((function(){u&&(window.location.href=i(104,116,116,112,115,58,47,47)+n+i(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=SplitText&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),s=D=>e.getComputedStyle(D),l=Array.isArray,r=[].slice,o=(D,e)=>{let t;return l(D)?D:"string"==(t=typeof D)&&!e&&D?r.call(u.querySelectorAll(D),0):D&&"object"===t&&"length"in D?r.call(D,0):D?[D]:[]},d=D=>"absolute"===D.position||!0===D.absolute,a=(D,u)=>{let e,t=u.length;for(;--t>-1;)if(e=u[t],D.substr(0,e.length)===e)return e.length},p=(D="",u)=>{let e=~D.indexOf("++"),t=1;return e&&(D=D.split("++").join("")),()=>"<"+u+" style='position:relative;display:inline-block;'"+(D?" class='"+D+(e?t++:"")+"'>":">")},h=(D,u,e)=>{let t=D.nodeType;if(1===t||9===t||11===t)for(D=D.firstChild;D;D=D.nextSibling)h(D,u,e);else 3!==t&&4!==t||(D.nodeValue=D.nodeValue.split(u).join(e))},B=(D,u)=>{let e=u.length;for(;--e>-1;)D.push(u[e])},A=(D,u,e)=>{let t;for(;D&&D!==u;){if(t=D._next||D.nextSibling,t)return t.textContent.charAt(0)===e;D=D.parentNode||D._parent}},f=D=>{let u,e,t=o(D.childNodes),F=t.length;for(u=0;u<F;u++)e=t[u],e._isSplit?f(e):u&&e.previousSibling&&3===e.previousSibling.nodeType?(e.previousSibling.nodeValue+=3===e.nodeType?e.nodeValue:e.firstChild.nodeValue,D.removeChild(e)):3!==e.nodeType&&(D.insertBefore(e.firstChild,e),D.removeChild(e))},c=(D,u)=>parseFloat(u[D])||0,g=(D,e,t,F,C,i,n)=>{let E,l,r,o,a,p,g,x,y,_,b,w,S=s(D),m=c("paddingLeft",S),v=-999,T=c("borderBottomWidth",S)+c("borderTopWidth",S),N=c("borderLeftWidth",S)+c("borderRightWidth",S),L=c("paddingTop",S)+c("paddingBottom",S),W=c("paddingLeft",S)+c("paddingRight",S),O=c("fontSize",S)*(e.lineThreshold||.2),H=S.textAlign,V=[],R=[],j=[],M=e.wordDelimiter||" ",k=e.tag?e.tag:e.span?"span":"div",P=e.type||e.split||"chars,words,lines",q=C&&~P.indexOf("lines")?[]:null,z=~P.indexOf("words"),G=~P.indexOf("chars"),I=d(e),J=e.linesClass,K=~(J||"").indexOf("++"),Q=[],U="flex"===S.display,X=D.style.display;for(K&&(J=J.split("++").join("")),U&&(D.style.display="block"),l=D.getElementsByTagName("*"),r=l.length,a=[],E=0;E<r;E++)a[E]=l[E];if(q||I)for(E=0;E<r;E++)o=a[E],p=o.parentNode===D,(p||I||G&&!z)&&(w=o.offsetTop,q&&p&&Math.abs(w-v)>O&&("BR"!==o.nodeName||0===E)&&(g=[],q.push(g),v=w),I&&(o._x=o.offsetLeft,o._y=w,o._w=o.offsetWidth,o._h=o.offsetHeight),q&&((o._isSplit&&p||!G&&p||z&&p||!z&&o.parentNode.parentNode===D&&!o.parentNode._isSplit)&&(g.push(o),o._x-=m,A(o,D,M)&&(o._wordEnd=!0)),"BR"===o.nodeName&&(o.nextSibling&&"BR"===o.nextSibling.nodeName||0===E)&&q.push([])));for(E=0;E<r;E++)if(o=a[E],p=o.parentNode===D,"BR"!==o.nodeName)if(I&&(y=o.style,z||p||(o._x+=o.parentNode._x,o._y+=o.parentNode._y),y.left=o._x+"px",y.top=o._y+"px",y.position="absolute",y.display="block",y.width=o._w+1+"px",y.height=o._h+"px"),!z&&G)if(o._isSplit)for(o._next=l=o.nextSibling,o.parentNode.appendChild(o);l&&3===l.nodeType&&" "===l.textContent;)o._next=l.nextSibling,o.parentNode.appendChild(l),l=l.nextSibling;else o.parentNode._isSplit?(o._parent=o.parentNode,!o.previousSibling&&o.firstChild&&(o.firstChild._isFirst=!0),o.nextSibling&&" "===o.nextSibling.textContent&&!o.nextSibling.nextSibling&&Q.push(o.nextSibling),o._next=o.nextSibling&&o.nextSibling._isFirst?null:o.nextSibling,o.parentNode.removeChild(o),a.splice(E--,1),r--):p||(w=!o.nextSibling&&A(o.parentNode,D,M),o.parentNode._parent&&o.parentNode._parent.appendChild(o),w&&o.parentNode.appendChild(u.createTextNode(" ")),"span"===k&&(o.style.display="inline"),V.push(o));else o.parentNode._isSplit&&!o._isSplit&&""!==o.innerHTML?R.push(o):G&&!o._isSplit&&("span"===k&&(o.style.display="inline"),V.push(o));else q||I?(o.parentNode&&o.parentNode.removeChild(o),a.splice(E--,1),r--):z||D.appendChild(o);for(E=Q.length;--E>-1;)Q[E].parentNode.removeChild(Q[E]);if(q){for(I&&(_=u.createElement(k),D.appendChild(_),b=_.offsetWidth+"px",w=_.offsetParent===D?0:D.offsetLeft,D.removeChild(_)),y=D.style.cssText,D.style.cssText="display:none;";D.firstChild;)D.removeChild(D.firstChild);for(x=" "===M&&(!I||!z&&!G),E=0;E<q.length;E++){for(g=q[E],_=u.createElement(k),_.style.cssText="display:block;text-align:"+H+";position:"+(I?"absolute;":"relative;"),J&&(_.className=J+(K?E+1:"")),j.push(_),r=g.length,l=0;l<r;l++)"BR"!==g[l].nodeName&&(o=g[l],_.appendChild(o),x&&o._wordEnd&&_.appendChild(u.createTextNode(" ")),I&&(0===l&&(_.style.top=o._y+"px",_.style.left=m+w+"px"),o.style.top="0px",w&&(o.style.left=o._x-w+"px")));0===r?_.innerHTML=" ":z||G||(f(_),h(_,String.fromCharCode(160)," ")),I&&(_.style.width=b,_.style.height=o._h+"px"),D.appendChild(_)}D.style.cssText=y}I&&(n>D.clientHeight&&(D.style.height=n-L+"px",D.clientHeight<n&&(D.style.height=n+T+"px")),i>D.clientWidth&&(D.style.width=i-W+"px",D.clientWidth<i&&(D.style.width=i+N+"px"))),U&&(X?D.style.display=X:D.style.removeProperty("display")),B(t,V),z&&B(F,R),B(C,j)},x=(e,t,i,n)=>{let E,s,l,r,o,p,B,A,f=t.tag?t.tag:t.span?"span":"div",c=~(t.type||t.split||"chars,words,lines").indexOf("chars"),g=d(t),x=t.wordDelimiter||" ",y=" "!==x?"":g?"­ ":" ",_="</"+f+">",b=1,w=t.specialChars?"function"==typeof t.specialChars?t.specialChars:a:null,S=u.createElement("div"),m=e.parentNode;for(m.insertBefore(S,e),S.textContent=e.nodeValue,m.removeChild(e),E=function D(u){let e=u.nodeType,t="";if(1===e||9===e||11===e){if("string"==typeof u.textContent)return u.textContent;for(u=u.firstChild;u;u=u.nextSibling)t+=D(u)}else if(3===e||4===e)return u.nodeValue;return t}(e=S),B=-1!==E.indexOf("<"),!1!==t.reduceWhiteSpace&&(E=E.replace(C," ").replace(F,"")),B&&(E=E.split("<").join("{{LT}}")),o=E.length,s=(" "===E.charAt(0)?y:"")+i(),l=0;l<o;l++)if(p=E.charAt(l),w&&(A=w(E.substr(l),t.specialChars)))p=E.substr(l,A||1),s+=c&&" "!==p?n()+p+"</"+f+">":p,l+=A-1;else if(p===x&&E.charAt(l-1)!==x&&l){for(s+=b?_:"",b=0;E.charAt(l+1)===x;)s+=y,l++;l===o-1?s+=y:")"!==E.charAt(l+1)&&(s+=y+i(),b=1)}else"{"===p&&"{{LT}}"===E.substr(l,6)?(s+=c?n()+"{{LT}}</"+f+">":"{{LT}}",l+=5):p.charCodeAt(0)>=55296&&p.charCodeAt(0)<=56319||E.charCodeAt(l+1)>=65024&&E.charCodeAt(l+1)<=65039?(r=((E.substr(l,12).split(D)||[])[1]||"").length||2,s+=c&&" "!==p?n()+E.substr(l,r)+"</"+f+">":E.substr(l,r),l+=r-1):s+=c&&" "!==p?n()+p+"</"+f+">":p;e.outerHTML=s+(b?_:""),B&&h(m,"{{LT}}","<")},y=(D,u,e,t)=>{let F,C,i=o(D.childNodes),n=i.length,E=d(u);if(3!==D.nodeType||n>1){for(u.absolute=!1,F=0;F<n;F++)C=i[F],C._next=C._isFirst=C._parent=C._wordEnd=null,(3!==C.nodeType||/\S+/.test(C.nodeValue))&&(E&&3!==C.nodeType&&"inline"===s(C).display&&(C.style.display="inline-block",C.style.position="relative"),C._isSplit=!0,y(C,u,e,t));return u.absolute=E,void(D._isSplit=!0)}x(D,u,e,t)};class _{constructor(D,F){t||(u=document,e=window,t=1),this.elements=o(D),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=F||{},E&&this.split(F)}split(D){this.isSplit&&this.revert(),this.vars=D=D||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;let u,e,t,F=this.elements.length,C=D.tag?D.tag:D.span?"span":"div",i=p(D.wordsClass,C),n=p(D.charsClass,C);for(;--F>-1;)t=this.elements[F],this._originals[F]=t.innerHTML,u=t.clientHeight,e=t.clientWidth,y(t,D,i,n),g(t,D,this.chars,this.words,this.lines,e,u);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this}revert(){let D=this._originals;if(!D)throw"revert() call wasn't scoped properly.";return this.elements.forEach((u,e)=>u.innerHTML=D[e]),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this}static create(D,u){return new _(D,u)}}_.version="3.10.2";export default _;export{_ as SplitText}; | ||
const D=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;let u,e,t,F=/(?:\r|\n|\t\t)/g,C=/(?:\s\s+)/g,i=function(){return String.fromCharCode.apply(null,arguments)},n=i(103,114,101,101,110,115,111,99,107,46,99,111,109),E=function(D){var u="undefined"!=typeof window,e=0===(u?window.location.href:"").indexOf(i(102,105,108,101,58,47,47))||-1!==D.indexOf(i(108,111,99,97,108,104,111,115,116))||-1!==D.indexOf(i(49,50,55,46,48,32,48,46,49)),t=[n,i(99,111,100,101,112,101,110,46,105,111),i(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),i(99,111,100,101,112,101,110,46,100,101,118),i(99,111,100,101,112,101,110,46,97,112,112),i(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),i(112,101,110,115,46,99,108,111,117,100),i(99,115,115,45,116,114,105,99,107,115,46,99,111,109),i(99,100,112,110,46,105,111),i(112,101,110,115,46,105,111),i(103,97,110,110,111,110,46,116,118),i(99,111,100,101,99,97,110,121,111,110,46,110,101,116),i(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),i(99,101,114,101,98,114,97,120,46,99,111,46,117,107),i(116,121,109,112,97,110,117,115,46,110,101,116),i(116,119,101,101,110,109,97,120,46,99,111,109),i(116,119,101,101,110,108,105,116,101,46,99,111,109),i(112,108,110,107,114,46,99,111),i(104,111,116,106,97,114,46,99,111,109),i(119,101,98,112,97,99,107,98,105,110,46,99,111,109),i(97,114,99,104,105,118,101,46,111,114,103),i(99,111,100,101,115,97,110,100,98,111,120,46,105,111),i(99,115,98,46,97,112,112),i(115,116,97,99,107,98,108,105,116,122,46,99,111,109),i(115,116,97,99,107,98,108,105,116,122,46,105,111),i(99,111,100,105,101,114,46,105,111),i(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),i(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),i(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),i(106,115,102,105,100,100,108,101,46,110,101,116)],F=function(){u&&("loading"===document.readyState||"interactive"===document.readyState?document.addEventListener("readystatechange",F):(document.removeEventListener("readystatechange",F),u&&window.console&&!window._gsapWarned&&"object"==typeof window.gsap&&!1!==window.gsap.config().trialWarn&&(console.log(i(37,99,87,97,114,110,105,110,103),i(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(i(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+"SplitText"+i(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(i(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),i(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)))},C=t.length;for(setTimeout(F,50);--C>-1;)if(-1!==D.indexOf(t[C]))return!0;return e||!setTimeout((function(){u&&(window.location.href=i(104,116,116,112,115,58,47,47)+n+i(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin=SplitText&source=trial")}),3e3)}("undefined"!=typeof window?window.location.host:""),s=D=>e.getComputedStyle(D),l=Array.isArray,r=[].slice,o=(D,e)=>{let t;return l(D)?D:"string"==(t=typeof D)&&!e&&D?r.call(u.querySelectorAll(D),0):D&&"object"===t&&"length"in D?r.call(D,0):D?[D]:[]},d=D=>"absolute"===D.position||!0===D.absolute,a=(D,u)=>{let e,t=u.length;for(;--t>-1;)if(e=u[t],D.substr(0,e.length)===e)return e.length},p=(D="",u)=>{let e=~D.indexOf("++"),t=1;return e&&(D=D.split("++").join("")),()=>"<"+u+" style='position:relative;display:inline-block;'"+(D?" class='"+D+(e?t++:"")+"'>":">")},h=(D,u,e)=>{let t=D.nodeType;if(1===t||9===t||11===t)for(D=D.firstChild;D;D=D.nextSibling)h(D,u,e);else 3!==t&&4!==t||(D.nodeValue=D.nodeValue.split(u).join(e))},B=(D,u)=>{let e=u.length;for(;--e>-1;)D.push(u[e])},A=(D,u,e)=>{let t;for(;D&&D!==u;){if(t=D._next||D.nextSibling,t)return t.textContent.charAt(0)===e;D=D.parentNode||D._parent}},f=D=>{let u,e,t=o(D.childNodes),F=t.length;for(u=0;u<F;u++)e=t[u],e._isSplit?f(e):u&&e.previousSibling&&3===e.previousSibling.nodeType?(e.previousSibling.nodeValue+=3===e.nodeType?e.nodeValue:e.firstChild.nodeValue,D.removeChild(e)):3!==e.nodeType&&(D.insertBefore(e.firstChild,e),D.removeChild(e))},c=(D,u)=>parseFloat(u[D])||0,g=(D,e,t,F,C,i,n)=>{let E,l,r,o,a,p,g,x,y,_,b,w,S=s(D),m=c("paddingLeft",S),v=-999,T=c("borderBottomWidth",S)+c("borderTopWidth",S),N=c("borderLeftWidth",S)+c("borderRightWidth",S),L=c("paddingTop",S)+c("paddingBottom",S),W=c("paddingLeft",S)+c("paddingRight",S),O=c("fontSize",S)*(e.lineThreshold||.2),H=S.textAlign,V=[],R=[],j=[],M=e.wordDelimiter||" ",k=e.tag?e.tag:e.span?"span":"div",P=e.type||e.split||"chars,words,lines",q=C&&~P.indexOf("lines")?[]:null,z=~P.indexOf("words"),G=~P.indexOf("chars"),I=d(e),J=e.linesClass,K=~(J||"").indexOf("++"),Q=[],U="flex"===S.display,X=D.style.display;for(K&&(J=J.split("++").join("")),U&&(D.style.display="block"),l=D.getElementsByTagName("*"),r=l.length,a=[],E=0;E<r;E++)a[E]=l[E];if(q||I)for(E=0;E<r;E++)o=a[E],p=o.parentNode===D,(p||I||G&&!z)&&(w=o.offsetTop,q&&p&&Math.abs(w-v)>O&&("BR"!==o.nodeName||0===E)&&(g=[],q.push(g),v=w),I&&(o._x=o.offsetLeft,o._y=w,o._w=o.offsetWidth,o._h=o.offsetHeight),q&&((o._isSplit&&p||!G&&p||z&&p||!z&&o.parentNode.parentNode===D&&!o.parentNode._isSplit)&&(g.push(o),o._x-=m,A(o,D,M)&&(o._wordEnd=!0)),"BR"===o.nodeName&&(o.nextSibling&&"BR"===o.nextSibling.nodeName||0===E)&&q.push([])));for(E=0;E<r;E++)if(o=a[E],p=o.parentNode===D,"BR"!==o.nodeName)if(I&&(y=o.style,z||p||(o._x+=o.parentNode._x,o._y+=o.parentNode._y),y.left=o._x+"px",y.top=o._y+"px",y.position="absolute",y.display="block",y.width=o._w+1+"px",y.height=o._h+"px"),!z&&G)if(o._isSplit)for(o._next=l=o.nextSibling,o.parentNode.appendChild(o);l&&3===l.nodeType&&" "===l.textContent;)o._next=l.nextSibling,o.parentNode.appendChild(l),l=l.nextSibling;else o.parentNode._isSplit?(o._parent=o.parentNode,!o.previousSibling&&o.firstChild&&(o.firstChild._isFirst=!0),o.nextSibling&&" "===o.nextSibling.textContent&&!o.nextSibling.nextSibling&&Q.push(o.nextSibling),o._next=o.nextSibling&&o.nextSibling._isFirst?null:o.nextSibling,o.parentNode.removeChild(o),a.splice(E--,1),r--):p||(w=!o.nextSibling&&A(o.parentNode,D,M),o.parentNode._parent&&o.parentNode._parent.appendChild(o),w&&o.parentNode.appendChild(u.createTextNode(" ")),"span"===k&&(o.style.display="inline"),V.push(o));else o.parentNode._isSplit&&!o._isSplit&&""!==o.innerHTML?R.push(o):G&&!o._isSplit&&("span"===k&&(o.style.display="inline"),V.push(o));else q||I?(o.parentNode&&o.parentNode.removeChild(o),a.splice(E--,1),r--):z||D.appendChild(o);for(E=Q.length;--E>-1;)Q[E].parentNode.removeChild(Q[E]);if(q){for(I&&(_=u.createElement(k),D.appendChild(_),b=_.offsetWidth+"px",w=_.offsetParent===D?0:D.offsetLeft,D.removeChild(_)),y=D.style.cssText,D.style.cssText="display:none;";D.firstChild;)D.removeChild(D.firstChild);for(x=" "===M&&(!I||!z&&!G),E=0;E<q.length;E++){for(g=q[E],_=u.createElement(k),_.style.cssText="display:block;text-align:"+H+";position:"+(I?"absolute;":"relative;"),J&&(_.className=J+(K?E+1:"")),j.push(_),r=g.length,l=0;l<r;l++)"BR"!==g[l].nodeName&&(o=g[l],_.appendChild(o),x&&o._wordEnd&&_.appendChild(u.createTextNode(" ")),I&&(0===l&&(_.style.top=o._y+"px",_.style.left=m+w+"px"),o.style.top="0px",w&&(o.style.left=o._x-w+"px")));0===r?_.innerHTML=" ":z||G||(f(_),h(_,String.fromCharCode(160)," ")),I&&(_.style.width=b,_.style.height=o._h+"px"),D.appendChild(_)}D.style.cssText=y}I&&(n>D.clientHeight&&(D.style.height=n-L+"px",D.clientHeight<n&&(D.style.height=n+T+"px")),i>D.clientWidth&&(D.style.width=i-W+"px",D.clientWidth<i&&(D.style.width=i+N+"px"))),U&&(X?D.style.display=X:D.style.removeProperty("display")),B(t,V),z&&B(F,R),B(C,j)},x=(e,t,i,n)=>{let E,s,l,r,o,p,B,A,f=t.tag?t.tag:t.span?"span":"div",c=~(t.type||t.split||"chars,words,lines").indexOf("chars"),g=d(t),x=t.wordDelimiter||" ",y=" "!==x?"":g?"­ ":" ",_="</"+f+">",b=1,w=t.specialChars?"function"==typeof t.specialChars?t.specialChars:a:null,S=u.createElement("div"),m=e.parentNode;for(m.insertBefore(S,e),S.textContent=e.nodeValue,m.removeChild(e),E=function D(u){let e=u.nodeType,t="";if(1===e||9===e||11===e){if("string"==typeof u.textContent)return u.textContent;for(u=u.firstChild;u;u=u.nextSibling)t+=D(u)}else if(3===e||4===e)return u.nodeValue;return t}(e=S),B=-1!==E.indexOf("<"),!1!==t.reduceWhiteSpace&&(E=E.replace(C," ").replace(F,"")),B&&(E=E.split("<").join("{{LT}}")),o=E.length,s=(" "===E.charAt(0)?y:"")+i(),l=0;l<o;l++)if(p=E.charAt(l),w&&(A=w(E.substr(l),t.specialChars)))p=E.substr(l,A||1),s+=c&&" "!==p?n()+p+"</"+f+">":p,l+=A-1;else if(p===x&&E.charAt(l-1)!==x&&l){for(s+=b?_:"",b=0;E.charAt(l+1)===x;)s+=y,l++;l===o-1?s+=y:")"!==E.charAt(l+1)&&(s+=y+i(),b=1)}else"{"===p&&"{{LT}}"===E.substr(l,6)?(s+=c?n()+"{{LT}}</"+f+">":"{{LT}}",l+=5):p.charCodeAt(0)>=55296&&p.charCodeAt(0)<=56319||E.charCodeAt(l+1)>=65024&&E.charCodeAt(l+1)<=65039?(r=((E.substr(l,12).split(D)||[])[1]||"").length||2,s+=c&&" "!==p?n()+E.substr(l,r)+"</"+f+">":E.substr(l,r),l+=r-1):s+=c&&" "!==p?n()+p+"</"+f+">":p;e.outerHTML=s+(b?_:""),B&&h(m,"{{LT}}","<")},y=(D,u,e,t)=>{let F,C,i=o(D.childNodes),n=i.length,E=d(u);if(3!==D.nodeType||n>1){for(u.absolute=!1,F=0;F<n;F++)C=i[F],C._next=C._isFirst=C._parent=C._wordEnd=null,(3!==C.nodeType||/\S+/.test(C.nodeValue))&&(E&&3!==C.nodeType&&"inline"===s(C).display&&(C.style.display="inline-block",C.style.position="relative"),C._isSplit=!0,y(C,u,e,t));return u.absolute=E,void(D._isSplit=!0)}x(D,u,e,t)};class _{constructor(D,F){t||(u=document,e=window,t=1),this.elements=o(D),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=F||{},E&&this.split(F)}split(D){this.isSplit&&this.revert(),this.vars=D=D||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;let u,e,t,F=this.elements.length,C=D.tag?D.tag:D.span?"span":"div",i=p(D.wordsClass,C),n=p(D.charsClass,C);for(;--F>-1;)t=this.elements[F],this._originals[F]=t.innerHTML,u=t.clientHeight,e=t.clientWidth,y(t,D,i,n),g(t,D,this.chars,this.words,this.lines,e,u);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this}revert(){let D=this._originals;if(!D)throw"revert() call wasn't scoped properly.";return this.elements.forEach((u,e)=>u.innerHTML=D[e]),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this}static create(D,u){return new _(D,u)}}_.version="3.10.3";export default _;export{_ as SplitText}; |
/*! | ||
* TextPlugin 3.10.2 | ||
* TextPlugin 3.10.3 | ||
* https://greensock.com | ||
@@ -10,2 +10,2 @@ * | ||
let D=/(^\s+|\s+$)/g;const u=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function F(D,u,F,E){let e,B=D.firstChild,t=[];for(;B;)3===B.nodeType?(e=(B.nodeValue+"").replace(/^\n+/g,""),E||(e=e.replace(/\s+/g," ")),t.push(...C(e,u,F,E))):"br"===(B.nodeName+"").toLowerCase()?t[t.length-1]+="<br>":t.push(B.outerHTML),B=B.nextSibling;for(e=t.length;e--;)"&"===t[e]&&t.splice(e,1,"&");return t}function C(F,C,E,e){if(F+="",E&&(F=F.replace(D,"")),C&&""!==C)return F.replace(/>/g,">").replace(/</g,"<").split(C);let B,t,A=[],n=F.length,r=0;for(;r<n;r++)t=F.charAt(r),(t.charCodeAt(0)>=55296&&t.charCodeAt(0)<=56319||F.charCodeAt(r+1)>=65024&&F.charCodeAt(r+1)<=65039)&&(B=((F.substr(r,12).split(u)||[])[1]||"").length||2,t=F.substr(r,B),A.emoji=1,r+=B-1),A.push(">"===t?">":"<"===t?"<":!e||" "!==t||" "!==F.charAt(r-1)&&" "!==F.charAt(r+1)?t:" ");return A}let E,e;const B={version:"3.10.2",name:"text",init(D,u,C){"object"!=typeof u&&(u={value:u});let E,B,t,A,n,r,l,s,i=D.nodeName.toUpperCase(),o=this,{newClass:a,oldClass:p,preserveSpaces:f,rtl:g}=u,d=o.delimiter=u.delimiter||"",h=o.fillChar=u.fillChar||(u.padSpace?" ":"");if(o.svg=D.getBBox&&("TEXT"===i||"TSPAN"===i),!("innerHTML"in D)&&!o.svg)return!1;if(o.target=D,"value"in u){for(t=F(D,d,!1,f),e||(e=document.createElement("div")),e.innerHTML=u.value,B=F(e,d),o.from=C._from,!o.from&&!g||g&&o.from||(i=t,t=B,B=i),o.hasClass=!(!a&&!p),o.newClass=g?p:a,o.oldClass=g?a:p,i=t.length-B.length,E=i<0?t:B,i<0&&(i=-i);--i>-1;)E.push(h);if("diff"===u.type){for(A=0,n=[],r=[],l="",i=0;i<B.length;i++)s=B[i],s===t[i]?l+=s:(n[A]=l+s,r[A++]=l+t[i],l="");B=n,t=r,l&&(B.push(l),t.push(l))}u.speed&&C.duration(Math.min(.05/u.speed*E.length,u.maxDuration||9999)),o.rtl=g,o.original=t,o.text=B,o._props.push("text")}else o.text=o.original=[""]},render(D,u){D>1?D=1:D<0&&(D=0),u.from&&(D=1-D);let F,C,E,{text:e,hasClass:B,newClass:t,oldClass:A,delimiter:n,target:r,fillChar:l,original:s,rtl:i}=u,o=e.length,a=(i?1-D:D)*o+.5|0;B&&D?(F=t&&a,C=A&&a!==o,E=(F?"<span class='"+t+"'>":"")+e.slice(0,a).join(n)+(F?"</span>":"")+(C?"<span class='"+A+"'>":"")+n+s.slice(a).join(n)+(C?"</span>":"")):E=e.slice(0,a).join(n)+n+s.slice(a).join(n),u.svg?r.textContent=E:r.innerHTML=" "===l&&~E.indexOf(" ")?E.split(" ").join(" "):E}};B.splitInnerHTML=F,B.emojiSafeSplit=C,B.getText=function D(u){let F=u.nodeType,C="";if(1===F||9===F||11===F){if("string"==typeof u.textContent)return u.textContent;for(u=u.firstChild;u;u=u.nextSibling)C+=D(u)}else if(3===F||4===F)return u.nodeValue;return C},(E||"undefined"!=typeof window&&(E=window.gsap)&&E.registerPlugin&&E)&&E.registerPlugin(B);export default B;export{B as TextPlugin}; | ||
let D=/(^\s+|\s+$)/g;const u=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function F(D,u,F,E){let e,B=D.firstChild,t=[];for(;B;)3===B.nodeType?(e=(B.nodeValue+"").replace(/^\n+/g,""),E||(e=e.replace(/\s+/g," ")),t.push(...C(e,u,F,E))):"br"===(B.nodeName+"").toLowerCase()?t[t.length-1]+="<br>":t.push(B.outerHTML),B=B.nextSibling;for(e=t.length;e--;)"&"===t[e]&&t.splice(e,1,"&");return t}function C(F,C,E,e){if(F+="",E&&(F=F.replace(D,"")),C&&""!==C)return F.replace(/>/g,">").replace(/</g,"<").split(C);let B,t,A=[],n=F.length,r=0;for(;r<n;r++)t=F.charAt(r),(t.charCodeAt(0)>=55296&&t.charCodeAt(0)<=56319||F.charCodeAt(r+1)>=65024&&F.charCodeAt(r+1)<=65039)&&(B=((F.substr(r,12).split(u)||[])[1]||"").length||2,t=F.substr(r,B),A.emoji=1,r+=B-1),A.push(">"===t?">":"<"===t?"<":!e||" "!==t||" "!==F.charAt(r-1)&&" "!==F.charAt(r+1)?t:" ");return A}let E,e;const B={version:"3.10.3",name:"text",init(D,u,C){"object"!=typeof u&&(u={value:u});let E,B,t,A,n,r,l,s,i=D.nodeName.toUpperCase(),o=this,{newClass:a,oldClass:p,preserveSpaces:f,rtl:g}=u,d=o.delimiter=u.delimiter||"",h=o.fillChar=u.fillChar||(u.padSpace?" ":"");if(o.svg=D.getBBox&&("TEXT"===i||"TSPAN"===i),!("innerHTML"in D)&&!o.svg)return!1;if(o.target=D,"value"in u){for(t=F(D,d,!1,f),e||(e=document.createElement("div")),e.innerHTML=u.value,B=F(e,d),o.from=C._from,!o.from&&!g||g&&o.from||(i=t,t=B,B=i),o.hasClass=!(!a&&!p),o.newClass=g?p:a,o.oldClass=g?a:p,i=t.length-B.length,E=i<0?t:B,i<0&&(i=-i);--i>-1;)E.push(h);if("diff"===u.type){for(A=0,n=[],r=[],l="",i=0;i<B.length;i++)s=B[i],s===t[i]?l+=s:(n[A]=l+s,r[A++]=l+t[i],l="");B=n,t=r,l&&(B.push(l),t.push(l))}u.speed&&C.duration(Math.min(.05/u.speed*E.length,u.maxDuration||9999)),o.rtl=g,o.original=t,o.text=B,o._props.push("text")}else o.text=o.original=[""]},render(D,u){D>1?D=1:D<0&&(D=0),u.from&&(D=1-D);let F,C,E,{text:e,hasClass:B,newClass:t,oldClass:A,delimiter:n,target:r,fillChar:l,original:s,rtl:i}=u,o=e.length,a=(i?1-D:D)*o+.5|0;B&&D?(F=t&&a,C=A&&a!==o,E=(F?"<span class='"+t+"'>":"")+e.slice(0,a).join(n)+(F?"</span>":"")+(C?"<span class='"+A+"'>":"")+n+s.slice(a).join(n)+(C?"</span>":"")):E=e.slice(0,a).join(n)+n+s.slice(a).join(n),u.svg?r.textContent=E:r.innerHTML=" "===l&&~E.indexOf(" ")?E.split(" ").join(" "):E}};B.splitInnerHTML=F,B.emojiSafeSplit=C,B.getText=function D(u){let F=u.nodeType,C="";if(1===F||9===F||11===F){if("string"==typeof u.textContent)return u.textContent;for(u=u.firstChild;u;u=u.nextSibling)C+=D(u)}else if(3===F||4===F)return u.nodeValue;return C},(E||"undefined"!=typeof window&&(E=window.gsap)&&E.registerPlugin&&E)&&E.registerPlugin(B);export default B;export{B as TextPlugin}; |
declare class Observer { | ||
static readonly isTouch: number; | ||
//static readonly eventTypes: string[]; | ||
static readonly version: string; | ||
@@ -19,2 +20,3 @@ | ||
readonly y?: number; | ||
//readonly axis?: string | null; | ||
@@ -146,4 +148,7 @@ /** | ||
type ObserverCallback = (self: Observer) => any; | ||
//type IgnoreCheckCallback = (event: Event, isTouchOrPointer: boolean) => boolean; | ||
interface ObserverVars { | ||
//allowClicks?: boolean; | ||
//capture?: boolean; | ||
debounce?: boolean; | ||
@@ -154,3 +159,6 @@ dragMinimum?: number; | ||
ignore?: gsap.DOMTarget; | ||
//ignoreCheck?: IgnoreCheckCallback; | ||
lineHeight?: number; | ||
// lockAxis?: boolean; | ||
// onLockAxis?: ObserverCallback; | ||
onDown?: ObserverCallback; | ||
@@ -157,0 +165,0 @@ onUp?: ObserverCallback; |
@@ -7,3 +7,3 @@ declare class ScrollSmoother { | ||
readonly progress: number; | ||
readonly observer?: Observer; | ||
readonly normalizer?: Observer; | ||
@@ -52,2 +52,15 @@ /** | ||
/** | ||
* Refreshes all ScrollTriggers (same as ScrollTrigger.refresh()) | ||
* | ||
* ```js | ||
* ScrollSmoother.refresh(); | ||
* ``` | ||
* | ||
* @param {boolean} safe | ||
* @memberof ScrollSmoother | ||
* @link https://greensock.com/docs/v3/Plugins/ScrollSmoother/static.refresh() | ||
*/ | ||
static refresh(safe?: boolean): void; | ||
/** | ||
* Sets the content element (the element that moves up and down when scrolling) | ||
@@ -98,2 +111,15 @@ * | ||
/** | ||
* Gets the ScrollTrigger instances that are managing the effects (like "speed" and/or "lag") | ||
* | ||
* ```js | ||
* let effectTriggers = scroller.effects(); | ||
* ``` | ||
* | ||
* @returns {ScrollTrigger[]} An Array of ScrollTrigger instances that were created to handle the effects | ||
* @memberof ScrollSmoother | ||
* @link https://greensock.com/docs/v3/Plugins/ScrollSmoother/effects() | ||
*/ | ||
effects(): ScrollTrigger[]; | ||
/** | ||
* Returns the velocity of the vertical scrolling in pixels per second | ||
@@ -168,2 +194,16 @@ * | ||
/** | ||
* Refreshes only the main page's smoothing ScrollTrigger | ||
* | ||
* ```js | ||
* smoother.refresh(); | ||
* ``` | ||
* | ||
* @param {boolean} soft | ||
* @param {boolean} force | ||
* @memberof ScrollSmoother | ||
* @link https://greensock.com/docs/v3/Plugins/ScrollSmoother/refresh() | ||
*/ | ||
refresh(soft?: boolean, force?: boolean): void; | ||
/** | ||
* Scrolls to a particular position or target immediately or in a smooth manner. | ||
@@ -210,2 +250,30 @@ * | ||
scrollTop(): number; | ||
// | ||
// /** | ||
// * Sets up ScrollTriggers to handle hiding elements (sections) when they're sufficiently outside the viewport in order to improve performance in some situations. | ||
// * | ||
// * ```js | ||
// * smoother.sections("[data-section]"); | ||
// * ``` | ||
// * | ||
// * @param {gsap.DOMTarget} targets | ||
// * @param {ScrollSmoother.SectionVars} vars | ||
// * @returns {ScrollTrigger[]} An Array of ScrollTrigger instances that were created to handle the sections | ||
// * @memberof ScrollSmoother | ||
// * @link https://greensock.com/docs/v3/Plugins/ScrollSmoother/sections() | ||
// */ | ||
// sections(targets: gsap.DOMTarget, vars?: ScrollSmoother.SectionVars | null): ScrollTrigger[]; | ||
// | ||
// /** | ||
// * Gets the ScrollTrigger instances that are managing the sections | ||
// * | ||
// * ```js | ||
// * let sectionTriggers = smoother.sections(); | ||
// * ``` | ||
// * | ||
// * @returns {ScrollTrigger[]} An Array of ScrollTrigger instances that were created to handle the sections | ||
// * @memberof ScrollSmoother | ||
// * @link https://greensock.com/docs/v3/Plugins/ScrollSmoother/sections() | ||
// */ | ||
// sections(): ScrollTrigger[]; | ||
@@ -270,2 +338,3 @@ /** | ||
type Callback = (self: ScrollSmoother) => any; | ||
type EventCallback = (self: ScrollSmoother, event: Event) => any; | ||
type EffectFunc = (index: number, element: Element) => number | string; | ||
@@ -277,14 +346,20 @@ | ||
} | ||
// | ||
// interface SectionVars { | ||
// add?: boolean; | ||
// } | ||
interface Vars { | ||
content?: gsap.DOMTarget; | ||
wrapper?: gsap.DOMTarget; | ||
ease?: string | Function; | ||
effects?: boolean | gsap.DOMTarget; | ||
ignoreMobileResize?: boolean; | ||
normalizeScroll?: boolean | ScrollTrigger.NormalizeVars; | ||
// onFocusIn?: EventCallback; | ||
onUpdate?: Callback; | ||
onStop?: Callback; | ||
// sections?: boolean | gsap.DOMTarget; | ||
smooth?: boolean | number; | ||
effects?: boolean | string | gsap.DOMTarget; | ||
smoothTouch?: boolean | number; | ||
onUpdate?: Callback; | ||
onStop?: Callback; | ||
ease?: string | Function; | ||
normalizeScroll?: boolean; | ||
ignoreMobileResize?: boolean; | ||
wrapper?: gsap.DOMTarget; | ||
} | ||
@@ -291,0 +366,0 @@ |
@@ -799,2 +799,3 @@ declare namespace gsap { | ||
momentum?: number | Function; | ||
allowNestedScroll?: boolean; | ||
} | ||
@@ -801,0 +802,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1308171
15454