Comparing version 3.3.0 to 3.3.1
/*! | ||
* CSSPlugin 3.3.0 | ||
* CSSPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* CSSRulePlugin 3.3.0 | ||
* CSSRulePlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -52,3 +52,3 @@ * | ||
export var CSSRulePlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "cssRule", | ||
@@ -55,0 +55,0 @@ init: function init(target, value, tween, index, targets) { |
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
/*! | ||
* CSSRulePlugin 3.3.0 | ||
* CSSRulePlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -55,3 +55,3 @@ * | ||
var CSSRulePlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "cssRule", | ||
@@ -58,0 +58,0 @@ init: function init(target, value, tween, index, targets) { |
/*! | ||
* CSSRulePlugin 3.3.0 | ||
* CSSRulePlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!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.3.0",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.3.1",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}}); | ||
/*! | ||
* Draggable 3.3.0 | ||
* Draggable 3.3.1 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!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 v(e,t){if(e.parentNode&&(p||w(e))){var n=S(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;",s=p.createElementNS?p.createElementNS(o.replace(/^https/,"http"),r):p.createElement(r);return t&&(n?(h=h||v(e),s.setAttribute("width",.01),s.setAttribute("height",.01),s.setAttribute("transform","translate("+i+","+a+")"),h.appendChild(s)):(u||((u=v(e)).style.cssText=l),s.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+i+"px",u.appendChild(s))),s}throw"Need document and parent."}function y(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 p,d,r,i,u,h,f,g,t,x="transform",m=x+"Origin",w=function _setDoc(e){var t=e.ownerDocument||e;!(x in e.style)&&"msTransform"in e.style&&(m=(x="msTransform")+"Origin");for(;t.parentNode&&(t=t.parentNode););if(d=window,f=new fe,t){r=(p=t).documentElement,i=t.body;var n=t.createElement("div"),o=t.createElement("div");i.appendChild(n),n.appendChild(o),n.style.position="static",n.style[x]="translate3d(0,0,1px)",g=o.offsetParent!==n,i.removeChild(n)}return t},b=function _forceNonZeroScale(e){for(var t,n;e&&e!==i;)!(n=e._gsap)||n.scaleX||n.scaleY||(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),t?t.push(n):t=[n]),e=e.parentNode;return t},D=[],L=[],M=function _getDocScrollTop(){return d.pageYOffset||p.scrollTop||r.scrollTop||i.scrollTop||0},E=function _getDocScrollLeft(){return d.pageXOffset||p.scrollLeft||r.scrollLeft||i.scrollLeft||0},S=function _svgOwner(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},P=function _isFixed(e){return"fixed"===d.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)},k=function _placeSiblings(e,t){var n,o,r,i,a,l=S(e),s=e===l,c=l?D:L;if(e===d)return e;if(c.length||c.push(v(e,1),v(e,2),v(e,3)),n=l?h:u,l)r=s?{x:0,y:0}:e.getBBox(),a=(o=e.transform?e.transform.baseVal:{}).numberOfItems?(i=(o=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).a*r.x+o.c*r.y,o.b*r.x+o.d*r.y):(o=f,i=r.x,r.y),t&&"g"===e.tagName.toLowerCase()&&(i=a=0),n.setAttribute("transform","matrix("+o.a+","+o.b+","+o.c+","+o.d+","+(o.e+i)+","+(o.f+a)+")"),(s?l:e.parentNode).appendChild(n);else{if(i=a=0,g)for(o=e.offsetParent,r=e;(r=r&&r.parentNode)&&r!==o&&r.parentNode;)4<(d.getComputedStyle(r)[x]+"").length&&(i=r.offsetLeft,a=r.offsetTop,r=0);(r=n.style).top=e.offsetTop-a+"px",r.left=e.offsetLeft-i+"px",o=d.getComputedStyle(e),r[x]=o[x],r[m]=o[m],r.border=o.border,r.borderLeftStyle=o.borderLeftStyle,r.borderTopStyle=o.borderTopStyle,r.borderLeftWidth=o.borderLeftWidth,r.borderTopWidth=o.borderTopWidth,r.position="fixed"===o.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 y(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 y(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),y(this,e,t,n,o,r,i)}function getGlobalMatrix(e,t,n){if(!e||!e.parentNode||(p||w(e)).documentElement===e)return new fe;var o=b(e.parentNode),r=S(e)?D:L,i=k(e,n),a=r[0].getBoundingClientRect(),l=r[1].getBoundingClientRect(),s=r[2].getBoundingClientRect(),c=i.parentNode,d=P(e),u=new fe((l.left-a.left)/100,(l.top-a.top)/100,(s.left-a.left)/100,(s.top-a.top)/100,a.left+(d?0:E()),a.top+(d?0:M()));if(c.removeChild(i),o)for(a=o.length;a--;)(l=o[a]).scaleX=l.scaleY=0,l.renderTransform(1,l);return t?u.inverse():u}function T(){return"undefined"!=typeof window}function U(){return ge||T()&&(ge=window.gsap)&&ge.registerPlugin&&ge}function V(e){return"function"==typeof e}function W(e){return"object"==typeof e}function X(e){return void 0===e}function Y(){return!1}function _(e){return Math.round(1e4*e)/1e4}function ba(e,t){var n=ve.createElementNS?ve.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):ve.createElement(e);return n.style?n:ve.createElement(e)}function na(e,t){var n,o={};for(n in e)o[n]=t?e[n]*t:e[n];return o}function pa(){return Ne.forEach(function(e){return e()})}function ra(){return!Ne.length&&ge.ticker.remove(pa)}function sa(e){for(var t=Ne.length;t--;)Ne[t]===e&&Ne.splice(t,1);ge.to(ra,{overwrite:!0,delay:15,duration:0,onComplete:ra,data:"_draggable"})}function ua(e,t,n,o){if(e.addEventListener){var r=Te[t];o=o||(N?{passive:!1}:null),e.addEventListener(r||t,n,o),r&&t!==r&&e.addEventListener(t,n,o)}}function va(e,t,n){if(e.removeEventListener){var o=Te[t];e.removeEventListener(o||t,n),o&&t!==o&&e.removeEventListener(t,n)}}function wa(e){e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()}function ya(e){Le=e.touches&&De<e.touches.length,va(e.target,"touchend",ya)}function za(e){Le=e.touches&&De<e.touches.length,ua(e.target,"touchend",ya)}function Aa(e){return xe.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0}function Ba(e){return xe.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0}function Ca(e,t){ua(e,"scroll",t),We(e.parentNode)||Ca(e.parentNode,t)}function Da(e,t){va(e,"scroll",t),We(e.parentNode)||Da(e.parentNode,t)}function Fa(e,t){var n="x"===t?"Width":"Height",o="scroll"+n,r="client"+n;return Math.max(0,We(e)?Math.max(me[o],l[o])-(xe["inner"+n]||me[r]||l[r]):e[o]-e[r])}function Ga(e,t){var n=Fa(e,"x"),o=Fa(e,"y");We(e)?e=Ie:Ga(e.parentNode,t),e._gsMaxScrollX=n,e._gsMaxScrollY=o,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)}function Ha(e,t,n){var o=e.style;o&&(X(o[t])&&(t=C(t,e)||t),null==n?o.removeProperty&&o.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):o[t]=n)}function Ia(e){return xe.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)}function Ka(e){if(e===xe)return A.left=A.top=0,A.width=A.right=me.clientWidth||e.innerWidth||l.clientWidth||0,A.height=A.bottom=(e.innerHeight||0)-20<me.clientHeight?me.clientHeight:e.innerHeight||l.clientHeight||0,A;var t=e.ownerDocument||ve,n=X(e.pageX)?e.nodeType||X(e.left)||X(e.top)?we(e)[0].getBoundingClientRect():e:{left:e.pageX-Ba(t),top:e.pageY-Aa(t),right:e.pageX-Ba(t)+1,bottom:e.pageY-Aa(t)+1};return X(n.right)&&!X(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):X(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 La(e,t,n){var o,r=e.vars,i=r[n],a=e._listeners[t];return V(i)&&(o=i.apply(r.callbackScope||e,r[n+"Params"]||[e.pointerEvent])),a&&!1===e.dispatchEvent(t)&&(o=!1),o}function Ma(e,t){var n,o,r,i=we(e)[0];return i.nodeType||i===xe?I(i,t):X(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 Pa(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,W(i[0]))for(l=0;l<s;l++)o[l]=na(i[l],a);else for(l=0;l<s;l++)o[l]=i[l]*a;e+=1.1,t-=1.1}else V(i)?c.end=function(e){var t,n,o=i.call(r,e);if(1!==a)if(W(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 Qa(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")))||Qa(e.parentNode))}function Ra(e,t){for(var n,o=e.length;o--;)(n=e[o]).ondragstart=n.onselectstart=t?null:Y,ge.set(n,{lazy:!0,userSelect:t?"text":"none"})}function Va(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,v=i.scrollWidth,m=i.scrollHeight,y=0,w=0,b=0;R&&!1!==r.force3D?(c="translate3d(",d="px,0px)"):O&&(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[O]=c+-f+"px,"+-h+d),0<=f+y&&(p.paddingRight=f+y+"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[O]=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&&v===i.scrollWidth&&m===i.scrollHeight&&!e||((h||f)&&(n=this.left(),o=this.top(),this.left(-i.scrollLeft),this.top(-i.scrollTop)),t=Ia(i),r&&!e||(p.display="block",p.width="auto",p.paddingRight="0px",(y=Math.max(0,i.scrollWidth-i.clientWidth))&&(y+=parseFloat(t.paddingLeft)+(B?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=y+"px",B&&(p.paddingBottom=t.paddingBottom),a=i.clientWidth,l=i.clientHeight,v=i.scrollWidth,m=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 Wa(e){if(T()&&document.body){var t=window&&window.navigator;xe=window,ve=document,me=ve.documentElement,l=ve.body,s=ba("div"),Se=!!window.PointerEvent,(ye=ba("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Xe="grab"===ye.style.cursor?"grab":"move",Me=t&&-1!==t.userAgent.toLowerCase().indexOf("android"),be="ontouchstart"in me&&"orientation"in xe||t&&(0<t.MaxTouchPoints||0<t.msMaxTouchPoints),o=ba("div"),r=ba("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),B=n,Te=function(e){for(var t=e.split(","),n=(X(s.onpointerdown)?X(s.onmspointerdown)?e:"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":"pointerdown,pointermove,pointerup,pointercancel").split(","),o={},r=4;-1<--r;)o[t[r]]=n[r],o[n[r]]=t[r];try{me.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){N=1}}))}catch(e){}return o}("touchstart,touchmove,touchend,touchcancel"),ua(ve,"touchcancel",Y),ua(xe,"touchmove",Y),l&&l.addEventListener("touchstart",Y),ua(ve,"contextmenu",function(){for(var e in Re)Re[e].isPressed&&Re[e].endDrag()}),ge=c=U()}var n,o,r,i,a;ge?(Ee=ge.plugins.inertia,C=ge.utils.checkPrefix,O=C(O),Ye=C(Ye),we=ge.utils.toArray,R=!!C("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")}var ge,xe,ve,me,l,s,ye,c,C,we,N,be,Te,De,Le,Me,Ee,Xe,Se,R,B,n,O="transform",Ye="transformOrigin",_e=Array.isArray,Pe=180/Math.PI,ke=1e20,a=new fe,Ce=Date.now||function(){return(new Date).getTime()},Ne=[],Re={},Be=0,o=/^(?:a|input|textarea|button|select)$/i,Oe=0,Ae={},Ie={},We=function _isRoot(e){return!(e&&e!==me&&9!==e.nodeType&&e!==ve.body&&e!==xe&&e.nodeType&&e.parentNode)},A={},Fe={},I=function _getElementBounds(e,t){t=we(t)[0];var n,o,r,i,a,l,s,c,d,u,p,h,f,g,x=e.getBBox&&e.ownerSVGElement,v=e.ownerDocument||ve;if(e===xe)r=Aa(v),o=(n=Ba(v))+(v.documentElement.clientWidth||e.innerWidth||v.body.clientWidth||0),i=r+((e.innerHeight||0)-20<v.documentElement.clientHeight?v.documentElement.clientHeight:e.innerHeight||v.body.clientHeight||0);else{if(t===xe||X(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=Ia(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})},F=((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 He,H=(function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(Draggable,He=F),Draggable.register=function register(e){ge=e,Wa()},Draggable.create=function create(e,t){return c||Wa(!0),we(e).map(function(e){return new Draggable(e,t)})},Draggable.get=function get(e){return Re[(we(e)[0]||{})._gsDragID]},Draggable.timeSinceDrag=function timeSinceDrag(){return(Ce()-Oe)/1e3},Draggable.hitTest=function hitTest(e,t,n){if(e===t)return!1;var o,r,i,a=Ka(e),l=Ka(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=He.call(this)||this,ge||Wa(1),h=we(h)[0],Ee=Ee||ge.plugins.inertia,e.vars=u=na(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 Bg(e,t){return parseFloat(le.get(h,e,t))}function gh(e){return wa(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1}function hh(e){if(Z.autoScroll&&Z.isDragging&&(ee||k)){var t,n,o,r,i,a,l,s,c=h,d=15*Z.autoScroll;for(ee=!1,Ie.scrollTop=null!=xe.pageYOffset?xe.pageYOffset:null!=ce.documentElement.scrollTop?ce.documentElement.scrollTop:ce.body.scrollTop,Ie.scrollLeft=null!=xe.pageXOffset?xe.pageXOffset:null!=ce.documentElement.scrollLeft?ce.documentElement.scrollLeft:ce.body.scrollLeft,r=Z.pointerX-Ie.scrollLeft,i=Z.pointerY-Ie.scrollTop;c&&!n;)t=(n=We(c.parentNode))?Ie:c.parentNode,o=n?{bottom:Math.max(me.clientHeight,xe.innerHeight||0),right:Math.max(me.clientWidth,xe.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),a=l=0,U&&((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)),q&&((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(Z.pointerX+a,Z.pointerY+l)),c=t}if(k){var u=Z.x,p=Z.y;K?(Z.deltaX=u-parseFloat(le.rotation),Z.rotation=u,le.rotation=u+"deg",le.renderTransform(1,le)):f?(U&&(Z.deltaY=p-f.top(),f.top(p)),q&&(Z.deltaX=u-f.left(),f.left(u))):G?(U&&(Z.deltaY=p-parseFloat(le.y),le.y=p+"px"),q&&(Z.deltaX=u-parseFloat(le.x),le.x=u+"px"),le.renderTransform(1,le)):(U&&(Z.deltaY=p-parseFloat(h.style.top||0),h.style.top=p+"px"),q&&(Z.deltaY=u-parseFloat(h.style.left||0),h.style.left=u+"px")),!g||e||F||(!(F=!0)===La(Z,"drag","onDrag")&&(q&&(Z.x-=Z.deltaX),U&&(Z.y-=Z.deltaY),hh(!0)),F=!1)}k=!1}function ih(e,t){var n,o,r=Z.x,i=Z.y;h._gsap||(le=ge.core.getCache(h)),G?(Z.x=parseFloat(le.x),Z.y=parseFloat(le.y)):K?Z.x=Z.rotation=parseFloat(le.rotation):f?(Z.y=f.top(),Z.x=f.left()):(Z.y=parseInt(h.style.top||(o=Ia(h))&&o.top,10)||0,Z.x=parseInt(h.style.left||(o||{}).left,10)||0),(C||N||R)&&!t&&(Z.isDragging||Z.isThrowing)&&(R&&(Ae.x=Z.x,Ae.y=Z.y,(n=R(Ae)).x!==Z.x&&(Z.x=n.x,k=!0),n.y!==Z.y&&(Z.y=n.y,k=!0)),C&&(n=C(Z.x))!==Z.x&&(Z.x=n,K&&(Z.rotation=n),k=!0),N&&((n=N(Z.y))!==Z.y&&(Z.y=n),k=!0)),k&&hh(!0),e||(Z.deltaX=Z.x-r,Z.deltaY=Z.y-i,La(Z,"throwupdate","onThrowUpdate"))}function jh(a,l,s,n){return null==l&&(l=-ke),null==s&&(s=ke),V(a)?function(e){var t=Z.isPressed?1-Z.edgeResistance:1;return a.call(Z,s<e?s+(e-s)*t:e<l?l+(e-l)*t:e)*n}:_e(a)?function(e){for(var t,n,o=a.length,r=0,i=ke;-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 lh(){var e,t,n,o;L=!1,f?(f.calibrate(),Z.minX=E=-f.maxScrollLeft(),Z.minY=Y=-f.maxScrollTop(),Z.maxX=M=Z.maxY=S=0,L=!0):u.bounds&&(e=Ma(u.bounds,h.parentNode),K?(Z.minX=E=e.left,Z.maxX=M=e.left+e.width,Z.minY=Y=Z.maxY=S=0):X(u.bounds.maxX)&&X(u.bounds.maxY)?(t=Ma(h,h.parentNode),Z.minX=E=Math.round(Bg(d,"px")+e.left-t.left-.5),Z.minY=Y=Math.round(Bg(j,"px")+e.top-t.top-.5),Z.maxX=M=Math.round(E+(e.width-t.width)),Z.maxY=S=Math.round(Y+(e.height-t.height))):(e=u.bounds,Z.minX=E=e.minX,Z.minY=Y=e.minY,Z.maxX=M=e.maxX,Z.maxY=S=e.maxY),M<E&&(Z.minX=M,Z.maxX=M=E,E=Z.minX),S<Y&&(Z.minY=S,Z.maxY=S=Y,Y=Z.minY),K&&(Z.minRotation=E,Z.maxRotation=M),L=!0),u.liveSnap&&(n=!0===u.liveSnap?u.snap||{}:u.liveSnap,o=_e(n)||V(n),K?(C=jh(o?n:n.rotation,E,M,1),N=null):n.points?R=function buildPointSnapFunc(s,l,c,d,u,p,h){return p=p&&p<ke?p*p:ke,V(s)?function(e){var t,n,o,r=Z.isPressed?1-Z.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(Z,e))!==e&&(e.x=t.x,e.y=t.y),1!==h&&(e.x*=h,e.y*=h),p<ke&&(n=e.x-i,o=e.y-a,p<n*n+o*o&&(e.x=i,e.y=a)),e}:_e(s)?function(e){for(var t,n,o,r,i=s.length,a=0,l=ke;-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,E,M,Y,S,n.radius,f?-1:1):(q&&(C=jh(o?n:n.x||n.left||n.scrollLeft,E,M,f?-1:1)),U&&(N=jh(o?n:n.y||n.top||n.scrollTop,Y,S,f?-1:1))))}function mh(){Z.isThrowing=!1,La(Z,"throwcomplete","onThrowComplete")}function nh(){Z.isThrowing=!1}function oh(e,t){var n,o,r,i;e&&Ee?(!0===e&&(n=u.snap||u.liveSnap||{},o=_e(n)||V(n),e={resistance:(u.throwResistance||u.resistance||1e3)/(K?10:1)},K?e.rotation=Pa(Z,o?n:n.rotation,M,E,1,t):(q&&(e[d]=Pa(Z,o?n:n.points||n.x||n.left,M,E,f?-1:1,t||"x"===Z.lockedAxis)),U&&(e[j]=Pa(Z,o?n:n.points||n.y||n.top,S,Y,f?-1:1,t||"y"===Z.lockedAxis)),(n.points||_e(n)&&W(n[0]))&&(e.linkedProps=d+","+j,e.radius=n.radius))),Z.isThrowing=!0,i=isNaN(u.overshootTolerance)?1===u.edgeResistance?0:1-Z.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||W(e)&&1e3<e.resistance?0:.5:u.minDuration,overshoot:i}),Z.tween=r=ge.to(f||h,{inertia:e,data:"_draggable",onComplete:mh,onInterrupt:nh,onUpdate:u.fastMode?La:ih,onUpdateParams:u.fastMode?[Z,"onthrowupdate","onThrowUpdate"]:n&&n.radius?[!1,!0]:[]}),u.fastMode||(f&&(f._skip=!0),r.render(1e9,!0,!0),ih(!0,!0),Z.endX=Z.x,Z.endY=Z.y,K&&(Z.endRotation=Z.x),r.play(0),ih(!0,!0),f&&(f._skip=!1))):L&&Z.applyBounds()}function ph(e){var t,n=B;B=getGlobalMatrix(h.parentNode,!0),e&&Z.isPressed&&!B.equals(n||new fe)&&(t=n.inverse().apply({x:w,y:b}),B.apply(t,t),w=t.x,b=t.y),B.equals(a)&&(B=null)}function qh(){var e,t,n,o=1-Z.edgeResistance;ph(!1),B&&(Fe.x=Z.pointerX,Fe.y=Z.pointerY,B.apply(Fe,Fe),w=Fe.x,b=Fe.y),k&&(pe(Z.pointerX,Z.pointerY),hh(!0)),f?(lh(),D=f.top(),T=f.left()):(de()?(ih(!0,!0),lh()):Z.applyBounds(),K?(e=h.ownerSVGElement?[le.xOrigin-h.getBBox().x,le.yOrigin-h.getBBox().y]:(Ia(h)[Ye]||"0 0").split(" "),P=Z.rotationOrigin=getGlobalMatrix(h).apply({x:parseFloat(e[0])||0,y:parseFloat(e[1])||0}),ih(!0,!0),t=Z.pointerX-P.x,n=P.y-Z.pointerY,se&&(t-=Ba(ce),n+=Aa(ce)),T=Z.x,D=Z.y=Math.atan2(n,t)*Pe):(D=Bg(j,"px"),T=Bg(d,"px"))),L&&o&&(M<T?T=M+(T-M)/o:T<E&&(T=E-(E-T)/o),K||(S<D?D=S+(D-S)/o:D<Y&&(D=Y-(Y-D)/o))),Z.startX=T,Z.startY=D}function sh(){!ye.parentNode||de()||Z.isDragging||ye.parentNode.removeChild(ye)}function th(e,t){var n;if(!p||Z.isPressed||!e||!("mousedown"!==e.type&&"pointerdown"!==e.type||t)&&Ce()-ae<30&&Te[Z.pointerEvent.type])z&&e&&p&&wa(e);else{if(O=de(),Z.pointerEvent=e,Te[e.type]?(y=~e.type.indexOf("touch")?e.currentTarget||e.target:ce,ua(y,"touchend",he),ua(y,"touchmove",ue),ua(y,"touchcancel",he),ua(ce,"touchstart",za)):(y=null,ua(ce,"mousemove",ue)),I=null,Se&&y||(ua(ce,"mouseup",he),e&&e.target&&ua(e.target,"mouseup",he)),m=ie.call(Z,e.target)&&!1===u.dragClickables&&!t)return ua(e.target,"change",he),La(Z,"pressInit","onPressInit"),La(Z,"press","onPress"),void Ra($,!0);if(A=!(!y||q==U||!1===Z.vars.allowNativeTouchScrolling||Z.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which))&&(q?"y":"x"),(z=!A&&!Z.allowEventDefault)&&(wa(e),ua(xe,"touchforcechange",wa)),e.changedTouches?(e=x=e.changedTouches[0],v=e.identifier):e.pointerId?v=e.pointerId:x=v=null,De++,function _addToRenderQueue(e){Ne.push(e),1===Ne.length&&ge.ticker.add(pa)}(hh),b=Z.pointerY=e.pageY,w=Z.pointerX=e.pageX,La(Z,"pressInit","onPressInit"),(A||Z.autoScroll)&&Ga(h.parentNode),!h.parentNode||!Z.autoScroll||f||K||!h.parentNode._gsMaxScrollX||ye.parentNode||h.getBBox||(ye.style.width=h.parentNode.scrollWidth+"px",h.parentNode.appendChild(ye)),qh(),Z.tween&&Z.tween.kill(),Z.isThrowing=!1,ge.killTweensOf(f||h,o,!0),f&&ge.killTweensOf(h,{scrollTo:1},!0),Z.tween=Z.lockedAxis=null,!u.zIndexBoost&&(K||f||!1===u.zIndexBoost)||(h.style.zIndex=Draggable.zIndex++),Z.isPressed=!0,g=!(!u.onDrag&&!Z._listeners.drag),s=!(!u.onMove&&!Z._listeners.move),!K&&(!1!==u.cursor||u.activeCursor))for(n=$.length;-1<--n;)ge.set($[n],{cursor:u.activeCursor||u.cursor||("grab"===Xe?"grabbing":Xe)});La(Z,"press","onPress")}}function xh(e){if(e&&Z.isDragging&&!f){var t=e.target||h.parentNode,n=t.scrollLeft-t._gsScrollX,o=t.scrollTop-t._gsScrollY;(n||o)&&(B?(w-=n*B.a+o*B.c,b-=o*B.d+n*B.b):(w-=n,b-=o),t._gsScrollX+=n,t._gsScrollY+=o,pe(Z.pointerX,Z.pointerY))}}function yh(e){var t=Ce(),n=t-ae<40,o=t-J<40,r=n&&H===ae,i=Z.pointerEvent&&Z.pointerEvent.defaultPrevented,a=n&&c===ae,l=e.isTrusted||null==e.isTrusted&&n&&r;if((r||o&&!1!==Z.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),n&&(!Z.pointerEvent||!Z.pointerEvent.defaultPrevented)&&(!r||l&&!a))return l&&r&&(c=ae),void(H=ae);(Z.isPressed||o||n)&&(l&&e.detail&&n&&!i||wa(e))}function zh(e){return B?{x:e.x*B.a+e.y*B.c+B.e,y:e.x*B.b+e.y*B.d+B.f}:{x:e.x,y:e.y}}var p,f,w,b,T,D,L,g,s,M,E,S,Y,x,v,P,k,t,C,N,R,m,y,B,O,A,I,F,H,c,z,n=(u.type||"x,y").toLowerCase(),G=~n.indexOf("x")||~n.indexOf("y"),K=-1!==n.indexOf("rotation"),d=K?"rotation":G?"x":"left",j=G?"y":"top",q=!(!~n.indexOf("x")&&!~n.indexOf("left")&&"scroll"!==n),U=!(!~n.indexOf("y")&&!~n.indexOf("top")&&"scroll"!==n),Q=u.minimumMovement||2,Z=function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),$=we(u.trigger||u.handle||h),o={},J=0,ee=!1,te=u.autoScrollMarginTop||40,ne=u.autoScrollMarginRight||40,oe=u.autoScrollMarginBottom||40,re=u.autoScrollMarginLeft||40,ie=u.clickableTest||Qa,ae=0,le=h._gsap||ge.core.getCache(h),se=function _isFixed(e){return"fixed"===Ia(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)}(h),ce=h.ownerDocument||ve,de=function isTweening(){return Z.tween&&Z.tween.isActive()},ue=function onMove(e){var t,n,o,r,i,a,l=e;if(p&&!Le&&Z.isPressed&&e){if(t=(Z.pointerEvent=e).changedTouches){if((e=t[0])!==x&&e.identifier!==v){for(r=t.length;-1<--r&&(e=t[r]).identifier!==v;);if(r<0)return}}else if(e.pointerId&&v&&e.pointerId!==v)return;y&&A&&!I&&(Fe.x=e.pageX,Fe.y=e.pageY,B&&B.apply(Fe,Fe),n=Fe.x,o=Fe.y,((i=Math.abs(n-w))!==(a=Math.abs(o-b))&&(Q<i||Q<a)||Me&&A===I)&&(I=a<i&&q?"x":"y",A&&I!==A&&ua(xe,"touchforcechange",wa),!1!==Z.vars.lockAxisOnTouchScroll&&q&&U&&(Z.lockedAxis="x"===I?"y":"x",V(Z.vars.onLockAxis)&&Z.vars.onLockAxis.call(Z,l)),Me&&A===I))?he(l):(z=Z.allowEventDefault||A&&(!I||A===I)||!1===l.cancelable?z&&!1:(wa(l),!0),Z.autoScroll&&(ee=!0),pe(e.pageX-(se&&K?Ba(ce):0),e.pageY-(se&&K?Aa(ce):0),s))}else z&&e&&p&&wa(e)},pe=function setPointerPosition(e,t,n){var o,r,i,a,l,s,c=1-Z.dragResistance,d=1-Z.edgeResistance,u=Z.pointerX,p=Z.pointerY,h=D,f=Z.x,g=Z.y,x=Z.endX,v=Z.endY,m=Z.endRotation,y=k;Z.pointerX=e,Z.pointerY=t,K?(a=Math.atan2(P.y-t,e-P.x)*Pe,180<(l=Z.y-a)?(D-=360,Z.y=a):l<-180&&(D+=360,Z.y=a),i=Z.x!==T||Math.abs(D-a)>Q?(Z.y=a,T+(D-a)*c):T):(B&&(s=e*B.a+t*B.c+B.e,t=e*B.b+t*B.d+B.f,e=s),(r=t-b)<Q&&-Q<r&&(r=0),(o=e-w)<Q&&-Q<o&&(o=0),(Z.lockAxis||Z.lockedAxis)&&(o||r)&&((s=Z.lockedAxis)||(Z.lockedAxis=s=q&&Math.abs(o)>Math.abs(r)?"y":U?"x":null,s&&V(Z.vars.onLockAxis)&&Z.vars.onLockAxis.call(Z,Z.pointerEvent)),"y"===s?r=0:"x"===s&&(o=0)),i=_(T+o*c),a=_(D+r*c)),(C||N||R)&&(Z.x!==i||Z.y!==a&&!K)?(R&&(Ae.x=i,Ae.y=a,s=R(Ae),i=_(s.x),a=_(s.y)),C&&(i=_(C(i))),N&&(a=_(N(a)))):L&&(M<i?i=M+Math.round((i-M)*d):i<E&&(i=E+Math.round((i-E)*d)),K||(S<a?a=Math.round(S+(a-S)*d):a<Y&&(a=Math.round(Y+(a-Y)*d)))),Z.x===i&&(Z.y===a||K)||(K?(Z.endRotation=Z.x=Z.endX=i,k=!0):(U&&(Z.y=Z.endY=a,k=!0),q&&(Z.x=Z.endX=i,k=!0)),n&&!1===La(Z,"move","onMove")?(Z.pointerX=u,Z.pointerY=p,D=h,Z.x=f,Z.y=g,Z.endX=x,Z.endY=v,Z.endRotation=m,k=y):!Z.isDragging&&Z.isPressed&&(Z.isDragging=!0,La(Z,"dragstart","onDragStart")))},he=function onRelease(e,t){if(p&&Z.isPressed&&(!e||null==v||t||!(e.pointerId&&e.pointerId!==v||e.changedTouches&&!function _hasTouchID(e,t){for(var n=e.length;n--;)if(e[n].identifier===t)return!0}(e.changedTouches,v)))){Z.isPressed=!1;var n,o,r,i,a,l=e,s=Z.isDragging,c=Z.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which),d=ge.delayedCall(.001,sh);if(y?(va(y,"touchend",onRelease),va(y,"touchmove",ue),va(y,"touchcancel",onRelease),va(ce,"touchstart",za)):va(ce,"mousemove",ue),va(xe,"touchforcechange",wa),Se&&y||(va(ce,"mouseup",onRelease),e&&e.target&&va(e.target,"mouseup",onRelease)),k=!1,m&&!c)return e&&(va(e.target,"change",onRelease),Z.pointerEvent=l),Ra($,!1),La(Z,"release","onRelease"),La(Z,"click","onClick"),void(m=!1);if(sa(hh),!K)for(o=$.length;-1<--o;)Ha($[o],"cursor",u.cursor||(!1!==u.cursor?Xe:null));if(s&&(J=Oe=Ce(),Z.isDragging=!1),De--,e){if((n=e.changedTouches)&&(e=n[0])!==x&&e.identifier!==v){for(o=n.length;-1<--o&&(e=n[o]).identifier!==v;);if(o<0)return}Z.pointerEvent=l,Z.pointerX=e.pageX,Z.pointerY=e.pageY}return c&&l?(wa(l),z=!0,La(Z,"release","onRelease")):l&&!s?(z=!1,O&&(u.snap||u.bounds)&&oh(u.inertia||u.throwProps),La(Z,"release","onRelease"),Me&&"touchmove"===l.type||-1!==l.type.indexOf("cancel")||(La(Z,"click","onClick"),Ce()-ae<300&&La(Z,"doubleclick","onDoubleClick"),i=l.target||h,ae=Ce(),a=function syntheticClick(){ae===H||!Z.enabled()||Z.isPressed||l.defaultPrevented||(i.click?i.click():ce.createEvent&&((r=ce.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,xe,1,Z.pointerEvent.screenX,Z.pointerEvent.screenY,Z.pointerX,Z.pointerY,!1,!1,!1,!1,0,null),i.dispatchEvent(r)))},Me||l.defaultPrevented||ge.delayedCall(.05,a))):(oh(u.inertia||u.throwProps),Z.allowEventDefault||!l||!1===u.dragClickables&&ie.call(Z,l.target)||!s||A&&(!I||A!==I)||!1===l.cancelable?z=!1:(z=!0,wa(l)),La(Z,"release","onRelease")),de()&&d.duration(Z.tween.duration()),s&&La(Z,"dragend","onDragEnd"),!0}z&&e&&p&&wa(e)};return(t=Draggable.get(h))&&t.kill(),e.startDrag=function(e,t){var n,o,r,i;th(e||Z.pointerEvent,!0),t&&!Z.hitTest(e||Z.pointerEvent)&&(n=Ka(e||Z.pointerEvent),o=Ka(h),r=zh({x:n.left+n.width/2,y:n.top+n.height/2}),i=zh({x:o.left+o.width/2,y:o.top+o.height/2}),w-=r.x-i.x,b-=r.y-i.y),Z.isDragging||(Z.isDragging=!0,La(Z,"dragstart","onDragStart"))},e.drag=ue,e.endDrag=function(e){return he(e||Z.pointerEvent,!0)},e.timeSinceDrag=function(){return Z.isDragging?0:(Ce()-J)/1e3},e.timeSinceClick=function(){return(Ce()-ae)/1e3},e.hitTest=function(e,t){return Draggable.hitTest(Z.target,e,t)},e.getDirection=function(e,t){var n,o,r,i,a,l,s="velocity"===e&&Ee?e:W(e)&&!K?"element":"start";return"element"===s&&(a=Ka(Z.target),l=Ka(e)),n="start"===s?Z.x-T:"velocity"===s?Ee.getVelocity(h,d):a.left+a.width/2-(l.left+l.width/2),K?n<0?"counter-clockwise":"clockwise":(t=t||2,o="start"===s?Z.y-D:"velocity"===s?Ee.getVelocity(h,j):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,Z.update(!0,t);if(ih(!0),lh(),L&&!de()){if(n=Z.x,o=Z.y,M<n?n=M:n<E&&(n=E),S<o?o=S:o<Y&&(o=Y),(Z.x!==n||Z.y!==o)&&(r=!0,Z.x=Z.endX=n,K?Z.endRotation=n:Z.y=Z.endY=o,hh(k=!0),Z.autoScroll&&!Z.isDragging))for(Ga(h.parentNode),i=h,Ie.scrollTop=null!=xe.pageYOffset?xe.pageYOffset:null!=ce.documentElement.scrollTop?ce.documentElement.scrollTop:ce.body.scrollTop,Ie.scrollLeft=null!=xe.pageXOffset?xe.pageXOffset:null!=ce.documentElement.scrollLeft?ce.documentElement.scrollLeft:ce.body.scrollLeft;i&&!l;)a=(l=We(i.parentNode))?Ie:i.parentNode,U&&a.scrollTop>a._gsMaxScrollY&&(a.scrollTop=a._gsMaxScrollY),q&&a.scrollLeft>a._gsMaxScrollX&&(a.scrollLeft=a._gsMaxScrollX),i=a;Z.isThrowing&&(r||Z.endX>M||Z.endX<E||Z.endY>S||Z.endY<Y)&&oh(u.inertia||u.throwProps,r)}return Z},e.update=function(e,t,n){var o=Z.x,r=Z.y;return ph(!t),e?Z.applyBounds():(k&&n&&hh(!0),ih(!0)),t&&(pe(Z.pointerX,Z.pointerY),k&&hh(!0)),Z.isPressed&&!t&&(q&&.01<Math.abs(o-Z.x)||U&&.01<Math.abs(r-Z.y)&&!K)&&qh(),Z.autoScroll&&(Ga(h.parentNode,Z.isDragging),ee=Z.isDragging,hh(!0),Da(h,xh),Ca(h,xh)),Z},e.enable=function(e){var t,n,o,r={lazy:!0};if(K||!1===u.cursor||(r.cursor=u.cursor||Xe),ge.utils.checkPrefix("touchCallout")&&(r.touchCallout="none"),r.touchAction=q==U?"none":u.allowNativeTouchScrolling||u.allowEventDefault?"manipulation":q?"pan-y":"pan-x","soft"!==e){for(n=$.length;-1<--n;)o=$[n],Se||ua(o,"mousedown",th),ua(o,"touchstart",th),ua(o,"click",yh,!0),ge.set(o,r),o.getBBox&&o.ownerSVGElement&&ge.set(o.ownerSVGElement,{touchAction:q==U?"none":u.allowNativeTouchScrolling||u.allowEventDefault?"manipulation":q?"pan-y":"pan-x"}),u.allowContextMenu||ua(o,"contextmenu",gh);Ra($,!1)}return Ca(h,xh),p=!0,Ee&&"soft"!==e&&Ee.track(f||h,G?"x,y":K?"rotation":"top,left"),h._gsDragID=t="d"+Be++,Re[t]=Z,f&&(f.enable(),f.element._gsDragID=t),(u.bounds||K)&&qh(),u.bounds&&Z.applyBounds(),Z},e.disable=function(e){var t,n,o=Z.isDragging;if(!K)for(t=$.length;-1<--t;)Ha($[t],"cursor",null);if("soft"!==e){for(t=$.length;-1<--t;)n=$[t],Ha(n,"touchCallout",null),Ha(n,"touchAction",null),va(n,"mousedown",th),va(n,"touchstart",th),va(n,"click",yh),va(n,"contextmenu",gh);Ra($,!0),y&&(va(y,"touchcancel",he),va(y,"touchend",he),va(y,"touchmove",ue)),va(ce,"mouseup",he),va(ce,"mousemove",ue)}return Da(h,xh),p=!1,Ee&&"soft"!==e&&Ee.untrack(f||h,G?"x,y":K?"rotation":"top,left"),f&&f.disable(),sa(hh),Z.isDragging=Z.isPressed=m=!1,o&&La(Z,"dragend","onDragEnd"),Z},e.enabled=function(e,t){return arguments.length?e?Z.enable(t):Z.disable(t):p},e.kill=function(){return Z.isThrowing=!1,Z.tween&&Z.tween.kill(),Z.disable(),ge.set($,{clearProps:"userSelect"}),delete Re[h._gsDragID],Z},~n.indexOf("scroll")&&(f=e.scrollProxy=new Va(h,function _extend(e,t){for(var n in t)n in e||(e[n]=t[n]);return e}({onKill:function onKill(){Z.isPressed&&he(null)}},u)),h.style.overflowY=U&&!be?"auto":"hidden",h.style.overflowX=q&&!be?"auto":"hidden",h=f.content),K?o.rotation=1:(q&&(o[d]=1),U&&(o[j]=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])}(H.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),H.zIndex=1e3,H.version="3.3.0",U()&&ge.registerPlugin(H),e.Draggable=H,e.default=H;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 v(e,t){if(e.parentNode&&(p||w(e))){var n=S(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;",s=p.createElementNS?p.createElementNS(o.replace(/^https/,"http"),r):p.createElement(r);return t&&(n?(h=h||v(e),s.setAttribute("width",.01),s.setAttribute("height",.01),s.setAttribute("transform","translate("+i+","+a+")"),h.appendChild(s)):(u||((u=v(e)).style.cssText=l),s.style.cssText=l+"width:0.1px;height:0.1px;top:"+a+"px;left:"+i+"px",u.appendChild(s))),s}throw"Need document and parent."}function y(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 p,d,r,i,u,h,f,g,t,x="transform",m=x+"Origin",w=function _setDoc(e){var t=e.ownerDocument||e;!(x in e.style)&&"msTransform"in e.style&&(m=(x="msTransform")+"Origin");for(;t.parentNode&&(t=t.parentNode););if(d=window,f=new fe,t){r=(p=t).documentElement,i=t.body;var n=t.createElement("div"),o=t.createElement("div");i.appendChild(n),n.appendChild(o),n.style.position="static",n.style[x]="translate3d(0,0,1px)",g=o.offsetParent!==n,i.removeChild(n)}return t},b=function _forceNonZeroScale(e){for(var t,n;e&&e!==i;)(n=e._gsap)&&!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},D=[],L=[],M=function _getDocScrollTop(){return d.pageYOffset||p.scrollTop||r.scrollTop||i.scrollTop||0},E=function _getDocScrollLeft(){return d.pageXOffset||p.scrollLeft||r.scrollLeft||i.scrollLeft||0},S=function _svgOwner(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},P=function _isFixed(e){return"fixed"===d.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)},k=function _placeSiblings(e,t){var n,o,r,i,a,l=S(e),s=e===l,c=l?D:L;if(e===d)return e;if(c.length||c.push(v(e,1),v(e,2),v(e,3)),n=l?h:u,l)r=s?{x:0,y:0}:e.getBBox(),a=(o=e.transform?e.transform.baseVal:{}).numberOfItems?(i=(o=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).a*r.x+o.c*r.y,o.b*r.x+o.d*r.y):(o=f,i=r.x,r.y),t&&"g"===e.tagName.toLowerCase()&&(i=a=0),n.setAttribute("transform","matrix("+o.a+","+o.b+","+o.c+","+o.d+","+(o.e+i)+","+(o.f+a)+")"),(s?l:e.parentNode).appendChild(n);else{if(i=a=0,g)for(o=e.offsetParent,r=e;(r=r&&r.parentNode)&&r!==o&&r.parentNode;)4<(d.getComputedStyle(r)[x]+"").length&&(i=r.offsetLeft,a=r.offsetTop,r=0);(r=n.style).top=e.offsetTop-a+"px",r.left=e.offsetLeft-i+"px",o=d.getComputedStyle(e),r[x]=o[x],r[m]=o[m],r.border=o.border,r.borderLeftStyle=o.borderLeftStyle,r.borderTopStyle=o.borderTopStyle,r.borderLeftWidth=o.borderLeftWidth,r.borderTopWidth=o.borderTopWidth,r.position="fixed"===o.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 y(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 y(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),y(this,e,t,n,o,r,i)}function getGlobalMatrix(e,t,n){if(!e||!e.parentNode||(p||w(e)).documentElement===e)return new fe;var o=b(e.parentNode),r=S(e)?D:L,i=k(e,n),a=r[0].getBoundingClientRect(),l=r[1].getBoundingClientRect(),s=r[2].getBoundingClientRect(),c=i.parentNode,d=P(e),u=new fe((l.left-a.left)/100,(l.top-a.top)/100,(s.left-a.left)/100,(s.top-a.top)/100,a.left+(d?0:E()),a.top+(d?0:M()));if(c.removeChild(i),o)for(a=o.length;a--;)(l=o[a]).scaleX=l.scaleY=0,l.renderTransform(1,l);return t?u.inverse():u}function T(){return"undefined"!=typeof window}function U(){return ge||T()&&(ge=window.gsap)&&ge.registerPlugin&&ge}function V(e){return"function"==typeof e}function W(e){return"object"==typeof e}function X(e){return void 0===e}function Y(){return!1}function _(e){return Math.round(1e4*e)/1e4}function ba(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 na(e,t){var n,o={};for(n in e)o[n]=t?e[n]*t:e[n];return o}function pa(){return Ne.forEach(function(e){return e()})}function ra(){return!Ne.length&&ge.ticker.remove(pa)}function sa(e){for(var t=Ne.length;t--;)Ne[t]===e&&Ne.splice(t,1);ge.to(ra,{overwrite:!0,delay:15,duration:0,onComplete:ra,data:"_draggable"})}function ua(e,t,n,o){if(e.addEventListener){var r=Te[t];o=o||(N?{passive:!1}:null),e.addEventListener(r||t,n,o),r&&t!==r&&e.addEventListener(t,n,o)}}function va(e,t,n){if(e.removeEventListener){var o=Te[t];e.removeEventListener(o||t,n),o&&t!==o&&e.removeEventListener(t,n)}}function wa(e){e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()}function ya(e){Le=e.touches&&De<e.touches.length,va(e.target,"touchend",ya)}function za(e){Le=e.touches&&De<e.touches.length,ua(e.target,"touchend",ya)}function Aa(e){return xe.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0}function Ba(e){return xe.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0}function Ca(e,t){ua(e,"scroll",t),We(e.parentNode)||Ca(e.parentNode,t)}function Da(e,t){va(e,"scroll",t),We(e.parentNode)||Da(e.parentNode,t)}function Fa(e,t){var n="x"===t?"Width":"Height",o="scroll"+n,r="client"+n;return Math.max(0,We(e)?Math.max(ve[o],l[o])-(xe["inner"+n]||ve[r]||l[r]):e[o]-e[r])}function Ga(e,t){var n=Fa(e,"x"),o=Fa(e,"y");We(e)?e=Ie:Ga(e.parentNode,t),e._gsMaxScrollX=n,e._gsMaxScrollY=o,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)}function Ha(e,t,n){var o=e.style;o&&(X(o[t])&&(t=C(t,e)||t),null==n?o.removeProperty&&o.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):o[t]=n)}function Ia(e){return xe.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)}function Ka(e){if(e===xe)return A.left=A.top=0,A.width=A.right=ve.clientWidth||e.innerWidth||l.clientWidth||0,A.height=A.bottom=(e.innerHeight||0)-20<ve.clientHeight?ve.clientHeight:e.innerHeight||l.clientHeight||0,A;var t=e.ownerDocument||me,n=X(e.pageX)?e.nodeType||X(e.left)||X(e.top)?we(e)[0].getBoundingClientRect():e:{left:e.pageX-Ba(t),top:e.pageY-Aa(t),right:e.pageX-Ba(t)+1,bottom:e.pageY-Aa(t)+1};return X(n.right)&&!X(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):X(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 La(e,t,n){var o,r=e.vars,i=r[n],a=e._listeners[t];return V(i)&&(o=i.apply(r.callbackScope||e,r[n+"Params"]||[e.pointerEvent])),a&&!1===e.dispatchEvent(t)&&(o=!1),o}function Ma(e,t){var n,o,r,i=we(e)[0];return i.nodeType||i===xe?I(i,t):X(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 Pa(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,W(i[0]))for(l=0;l<s;l++)o[l]=na(i[l],a);else for(l=0;l<s;l++)o[l]=i[l]*a;e+=1.1,t-=1.1}else V(i)?c.end=function(e){var t,n,o=i.call(r,e);if(1!==a)if(W(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 Qa(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")))||Qa(e.parentNode))}function Ra(e,t){for(var n,o=e.length;o--;)(n=e[o]).ondragstart=n.onselectstart=t?null:Y,ge.set(n,{lazy:!0,userSelect:t?"text":"none"})}function Va(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,v=i.scrollHeight,y=0,w=0,b=0;R&&!1!==r.force3D?(c="translate3d(",d="px,0px)"):O&&(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[O]=c+-f+"px,"+-h+d),0<=f+y&&(p.paddingRight=f+y+"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[O]=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&&v===i.scrollHeight&&!e||((h||f)&&(n=this.left(),o=this.top(),this.left(-i.scrollLeft),this.top(-i.scrollTop)),t=Ia(i),r&&!e||(p.display="block",p.width="auto",p.paddingRight="0px",(y=Math.max(0,i.scrollWidth-i.clientWidth))&&(y+=parseFloat(t.paddingLeft)+(B?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=y+"px",B&&(p.paddingBottom=t.paddingBottom),a=i.clientWidth,l=i.clientHeight,m=i.scrollWidth,v=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 Wa(e){if(T()&&document.body){var t=window&&window.navigator;xe=window,me=document,ve=me.documentElement,l=me.body,s=ba("div"),Se=!!window.PointerEvent,(ye=ba("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Xe="grab"===ye.style.cursor?"grab":"move",Me=t&&-1!==t.userAgent.toLowerCase().indexOf("android"),be="ontouchstart"in ve&&"orientation"in xe||t&&(0<t.MaxTouchPoints||0<t.msMaxTouchPoints),o=ba("div"),r=ba("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),B=n,Te=function(e){for(var t=e.split(","),n=(X(s.onpointerdown)?X(s.onmspointerdown)?e:"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":"pointerdown,pointermove,pointerup,pointercancel").split(","),o={},r=4;-1<--r;)o[t[r]]=n[r],o[n[r]]=t[r];try{ve.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){N=1}}))}catch(e){}return o}("touchstart,touchmove,touchend,touchcancel"),ua(me,"touchcancel",Y),ua(xe,"touchmove",Y),l&&l.addEventListener("touchstart",Y),ua(me,"contextmenu",function(){for(var e in Re)Re[e].isPressed&&Re[e].endDrag()}),ge=c=U()}var n,o,r,i,a;ge?(Ee=ge.plugins.inertia,C=ge.utils.checkPrefix,O=C(O),Ye=C(Ye),we=ge.utils.toArray,R=!!C("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")}var ge,xe,me,ve,l,s,ye,c,C,we,N,be,Te,De,Le,Me,Ee,Xe,Se,R,B,n,O="transform",Ye="transformOrigin",_e=Array.isArray,Pe=180/Math.PI,ke=1e20,a=new fe,Ce=Date.now||function(){return(new Date).getTime()},Ne=[],Re={},Be=0,o=/^(?:a|input|textarea|button|select)$/i,Oe=0,Ae={},Ie={},We=function _isRoot(e){return!(e&&e!==ve&&9!==e.nodeType&&e!==me.body&&e!==xe&&e.nodeType&&e.parentNode)},A={},Fe={},I=function _getElementBounds(e,t){t=we(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=Aa(m),o=(n=Ba(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||X(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=Ia(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})},F=((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 He,H=(function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(Draggable,He=F),Draggable.register=function register(e){ge=e,Wa()},Draggable.create=function create(e,t){return c||Wa(!0),we(e).map(function(e){return new Draggable(e,t)})},Draggable.get=function get(e){return Re[(we(e)[0]||{})._gsDragID]},Draggable.timeSinceDrag=function timeSinceDrag(){return(Ce()-Oe)/1e3},Draggable.hitTest=function hitTest(e,t,n){if(e===t)return!1;var o,r,i,a=Ka(e),l=Ka(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=He.call(this)||this,ge||Wa(1),h=we(h)[0],Ee=Ee||ge.plugins.inertia,e.vars=u=na(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 Bg(e,t){return parseFloat(le.get(h,e,t))}function gh(e){return wa(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1}function hh(e){if(Z.autoScroll&&Z.isDragging&&(ee||k)){var t,n,o,r,i,a,l,s,c=h,d=15*Z.autoScroll;for(ee=!1,Ie.scrollTop=null!=xe.pageYOffset?xe.pageYOffset:null!=ce.documentElement.scrollTop?ce.documentElement.scrollTop:ce.body.scrollTop,Ie.scrollLeft=null!=xe.pageXOffset?xe.pageXOffset:null!=ce.documentElement.scrollLeft?ce.documentElement.scrollLeft:ce.body.scrollLeft,r=Z.pointerX-Ie.scrollLeft,i=Z.pointerY-Ie.scrollTop;c&&!n;)t=(n=We(c.parentNode))?Ie:c.parentNode,o=n?{bottom:Math.max(ve.clientHeight,xe.innerHeight||0),right:Math.max(ve.clientWidth,xe.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),a=l=0,U&&((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)),q&&((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(Z.pointerX+a,Z.pointerY+l)),c=t}if(k){var u=Z.x,p=Z.y;K?(Z.deltaX=u-parseFloat(le.rotation),Z.rotation=u,le.rotation=u+"deg",le.renderTransform(1,le)):f?(U&&(Z.deltaY=p-f.top(),f.top(p)),q&&(Z.deltaX=u-f.left(),f.left(u))):G?(U&&(Z.deltaY=p-parseFloat(le.y),le.y=p+"px"),q&&(Z.deltaX=u-parseFloat(le.x),le.x=u+"px"),le.renderTransform(1,le)):(U&&(Z.deltaY=p-parseFloat(h.style.top||0),h.style.top=p+"px"),q&&(Z.deltaY=u-parseFloat(h.style.left||0),h.style.left=u+"px")),!g||e||F||(!(F=!0)===La(Z,"drag","onDrag")&&(q&&(Z.x-=Z.deltaX),U&&(Z.y-=Z.deltaY),hh(!0)),F=!1)}k=!1}function ih(e,t){var n,o,r=Z.x,i=Z.y;h._gsap||(le=ge.core.getCache(h)),G?(Z.x=parseFloat(le.x),Z.y=parseFloat(le.y)):K?Z.x=Z.rotation=parseFloat(le.rotation):f?(Z.y=f.top(),Z.x=f.left()):(Z.y=parseInt(h.style.top||(o=Ia(h))&&o.top,10)||0,Z.x=parseInt(h.style.left||(o||{}).left,10)||0),(C||N||R)&&!t&&(Z.isDragging||Z.isThrowing)&&(R&&(Ae.x=Z.x,Ae.y=Z.y,(n=R(Ae)).x!==Z.x&&(Z.x=n.x,k=!0),n.y!==Z.y&&(Z.y=n.y,k=!0)),C&&(n=C(Z.x))!==Z.x&&(Z.x=n,K&&(Z.rotation=n),k=!0),N&&((n=N(Z.y))!==Z.y&&(Z.y=n),k=!0)),k&&hh(!0),e||(Z.deltaX=Z.x-r,Z.deltaY=Z.y-i,La(Z,"throwupdate","onThrowUpdate"))}function jh(a,l,s,n){return null==l&&(l=-ke),null==s&&(s=ke),V(a)?function(e){var t=Z.isPressed?1-Z.edgeResistance:1;return a.call(Z,s<e?s+(e-s)*t:e<l?l+(e-l)*t:e)*n}:_e(a)?function(e){for(var t,n,o=a.length,r=0,i=ke;-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 lh(){var e,t,n,o;L=!1,f?(f.calibrate(),Z.minX=E=-f.maxScrollLeft(),Z.minY=Y=-f.maxScrollTop(),Z.maxX=M=Z.maxY=S=0,L=!0):u.bounds&&(e=Ma(u.bounds,h.parentNode),K?(Z.minX=E=e.left,Z.maxX=M=e.left+e.width,Z.minY=Y=Z.maxY=S=0):X(u.bounds.maxX)&&X(u.bounds.maxY)?(t=Ma(h,h.parentNode),Z.minX=E=Math.round(Bg(d,"px")+e.left-t.left-.5),Z.minY=Y=Math.round(Bg(j,"px")+e.top-t.top-.5),Z.maxX=M=Math.round(E+(e.width-t.width)),Z.maxY=S=Math.round(Y+(e.height-t.height))):(e=u.bounds,Z.minX=E=e.minX,Z.minY=Y=e.minY,Z.maxX=M=e.maxX,Z.maxY=S=e.maxY),M<E&&(Z.minX=M,Z.maxX=M=E,E=Z.minX),S<Y&&(Z.minY=S,Z.maxY=S=Y,Y=Z.minY),K&&(Z.minRotation=E,Z.maxRotation=M),L=!0),u.liveSnap&&(n=!0===u.liveSnap?u.snap||{}:u.liveSnap,o=_e(n)||V(n),K?(C=jh(o?n:n.rotation,E,M,1),N=null):n.points?R=function buildPointSnapFunc(s,l,c,d,u,p,h){return p=p&&p<ke?p*p:ke,V(s)?function(e){var t,n,o,r=Z.isPressed?1-Z.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(Z,e))!==e&&(e.x=t.x,e.y=t.y),1!==h&&(e.x*=h,e.y*=h),p<ke&&(n=e.x-i,o=e.y-a,p<n*n+o*o&&(e.x=i,e.y=a)),e}:_e(s)?function(e){for(var t,n,o,r,i=s.length,a=0,l=ke;-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,E,M,Y,S,n.radius,f?-1:1):(q&&(C=jh(o?n:n.x||n.left||n.scrollLeft,E,M,f?-1:1)),U&&(N=jh(o?n:n.y||n.top||n.scrollTop,Y,S,f?-1:1))))}function mh(){Z.isThrowing=!1,La(Z,"throwcomplete","onThrowComplete")}function nh(){Z.isThrowing=!1}function oh(e,t){var n,o,r,i;e&&Ee?(!0===e&&(n=u.snap||u.liveSnap||{},o=_e(n)||V(n),e={resistance:(u.throwResistance||u.resistance||1e3)/(K?10:1)},K?e.rotation=Pa(Z,o?n:n.rotation,M,E,1,t):(q&&(e[d]=Pa(Z,o?n:n.points||n.x||n.left,M,E,f?-1:1,t||"x"===Z.lockedAxis)),U&&(e[j]=Pa(Z,o?n:n.points||n.y||n.top,S,Y,f?-1:1,t||"y"===Z.lockedAxis)),(n.points||_e(n)&&W(n[0]))&&(e.linkedProps=d+","+j,e.radius=n.radius))),Z.isThrowing=!0,i=isNaN(u.overshootTolerance)?1===u.edgeResistance?0:1-Z.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||W(e)&&1e3<e.resistance?0:.5:u.minDuration,overshoot:i}),Z.tween=r=ge.to(f||h,{inertia:e,data:"_draggable",onComplete:mh,onInterrupt:nh,onUpdate:u.fastMode?La:ih,onUpdateParams:u.fastMode?[Z,"onthrowupdate","onThrowUpdate"]:n&&n.radius?[!1,!0]:[]}),u.fastMode||(f&&(f._skip=!0),r.render(1e9,!0,!0),ih(!0,!0),Z.endX=Z.x,Z.endY=Z.y,K&&(Z.endRotation=Z.x),r.play(0),ih(!0,!0),f&&(f._skip=!1))):L&&Z.applyBounds()}function ph(e){var t,n=B;B=getGlobalMatrix(h.parentNode,!0),e&&Z.isPressed&&!B.equals(n||new fe)&&(t=n.inverse().apply({x:w,y:b}),B.apply(t,t),w=t.x,b=t.y),B.equals(a)&&(B=null)}function qh(){var e,t,n,o=1-Z.edgeResistance;ph(!1),B&&(Fe.x=Z.pointerX,Fe.y=Z.pointerY,B.apply(Fe,Fe),w=Fe.x,b=Fe.y),k&&(pe(Z.pointerX,Z.pointerY),hh(!0)),f?(lh(),D=f.top(),T=f.left()):(de()?(ih(!0,!0),lh()):Z.applyBounds(),K?(e=h.ownerSVGElement?[le.xOrigin-h.getBBox().x,le.yOrigin-h.getBBox().y]:(Ia(h)[Ye]||"0 0").split(" "),P=Z.rotationOrigin=getGlobalMatrix(h).apply({x:parseFloat(e[0])||0,y:parseFloat(e[1])||0}),ih(!0,!0),t=Z.pointerX-P.x,n=P.y-Z.pointerY,se&&(t-=Ba(ce),n+=Aa(ce)),T=Z.x,D=Z.y=Math.atan2(n,t)*Pe):(D=Bg(j,"px"),T=Bg(d,"px"))),L&&o&&(M<T?T=M+(T-M)/o:T<E&&(T=E-(E-T)/o),K||(S<D?D=S+(D-S)/o:D<Y&&(D=Y-(Y-D)/o))),Z.startX=T,Z.startY=D}function sh(){!ye.parentNode||de()||Z.isDragging||ye.parentNode.removeChild(ye)}function th(e,t){var n;if(!p||Z.isPressed||!e||!("mousedown"!==e.type&&"pointerdown"!==e.type||t)&&Ce()-ae<30&&Te[Z.pointerEvent.type])z&&e&&p&&wa(e);else{if(O=de(),Z.pointerEvent=e,Te[e.type]?(y=~e.type.indexOf("touch")?e.currentTarget||e.target:ce,ua(y,"touchend",he),ua(y,"touchmove",ue),ua(y,"touchcancel",he),ua(ce,"touchstart",za)):(y=null,ua(ce,"mousemove",ue)),I=null,Se&&y||(ua(ce,"mouseup",he),e&&e.target&&ua(e.target,"mouseup",he)),v=ie.call(Z,e.target)&&!1===u.dragClickables&&!t)return ua(e.target,"change",he),La(Z,"pressInit","onPressInit"),La(Z,"press","onPress"),void Ra($,!0);if(A=!(!y||q==U||!1===Z.vars.allowNativeTouchScrolling||Z.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which))&&(q?"y":"x"),(z=!A&&!Z.allowEventDefault)&&(wa(e),ua(xe,"touchforcechange",wa)),e.changedTouches?(e=x=e.changedTouches[0],m=e.identifier):e.pointerId?m=e.pointerId:x=m=null,De++,function _addToRenderQueue(e){Ne.push(e),1===Ne.length&&ge.ticker.add(pa)}(hh),b=Z.pointerY=e.pageY,w=Z.pointerX=e.pageX,La(Z,"pressInit","onPressInit"),(A||Z.autoScroll)&&Ga(h.parentNode),!h.parentNode||!Z.autoScroll||f||K||!h.parentNode._gsMaxScrollX||ye.parentNode||h.getBBox||(ye.style.width=h.parentNode.scrollWidth+"px",h.parentNode.appendChild(ye)),qh(),Z.tween&&Z.tween.kill(),Z.isThrowing=!1,ge.killTweensOf(f||h,o,!0),f&&ge.killTweensOf(h,{scrollTo:1},!0),Z.tween=Z.lockedAxis=null,!u.zIndexBoost&&(K||f||!1===u.zIndexBoost)||(h.style.zIndex=Draggable.zIndex++),Z.isPressed=!0,g=!(!u.onDrag&&!Z._listeners.drag),s=!(!u.onMove&&!Z._listeners.move),!K&&(!1!==u.cursor||u.activeCursor))for(n=$.length;-1<--n;)ge.set($[n],{cursor:u.activeCursor||u.cursor||("grab"===Xe?"grabbing":Xe)});La(Z,"press","onPress")}}function xh(e){if(e&&Z.isDragging&&!f){var t=e.target||h.parentNode,n=t.scrollLeft-t._gsScrollX,o=t.scrollTop-t._gsScrollY;(n||o)&&(B?(w-=n*B.a+o*B.c,b-=o*B.d+n*B.b):(w-=n,b-=o),t._gsScrollX+=n,t._gsScrollY+=o,pe(Z.pointerX,Z.pointerY))}}function yh(e){var t=Ce(),n=t-ae<40,o=t-J<40,r=n&&H===ae,i=Z.pointerEvent&&Z.pointerEvent.defaultPrevented,a=n&&c===ae,l=e.isTrusted||null==e.isTrusted&&n&&r;if((r||o&&!1!==Z.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),n&&(!Z.pointerEvent||!Z.pointerEvent.defaultPrevented)&&(!r||l&&!a))return l&&r&&(c=ae),void(H=ae);(Z.isPressed||o||n)&&(l&&e.detail&&n&&!i||wa(e))}function zh(e){return B?{x:e.x*B.a+e.y*B.c+B.e,y:e.x*B.b+e.y*B.d+B.f}:{x:e.x,y:e.y}}var p,f,w,b,T,D,L,g,s,M,E,S,Y,x,m,P,k,t,C,N,R,v,y,B,O,A,I,F,H,c,z,n=(u.type||"x,y").toLowerCase(),G=~n.indexOf("x")||~n.indexOf("y"),K=-1!==n.indexOf("rotation"),d=K?"rotation":G?"x":"left",j=G?"y":"top",q=!(!~n.indexOf("x")&&!~n.indexOf("left")&&"scroll"!==n),U=!(!~n.indexOf("y")&&!~n.indexOf("top")&&"scroll"!==n),Q=u.minimumMovement||2,Z=function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e),$=we(u.trigger||u.handle||h),o={},J=0,ee=!1,te=u.autoScrollMarginTop||40,ne=u.autoScrollMarginRight||40,oe=u.autoScrollMarginBottom||40,re=u.autoScrollMarginLeft||40,ie=u.clickableTest||Qa,ae=0,le=h._gsap||ge.core.getCache(h),se=function _isFixed(e){return"fixed"===Ia(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)}(h),ce=h.ownerDocument||me,de=function isTweening(){return Z.tween&&Z.tween.isActive()},ue=function onMove(e){var t,n,o,r,i,a,l=e;if(p&&!Le&&Z.isPressed&&e){if(t=(Z.pointerEvent=e).changedTouches){if((e=t[0])!==x&&e.identifier!==m){for(r=t.length;-1<--r&&(e=t[r]).identifier!==m;);if(r<0)return}}else if(e.pointerId&&m&&e.pointerId!==m)return;y&&A&&!I&&(Fe.x=e.pageX,Fe.y=e.pageY,B&&B.apply(Fe,Fe),n=Fe.x,o=Fe.y,((i=Math.abs(n-w))!==(a=Math.abs(o-b))&&(Q<i||Q<a)||Me&&A===I)&&(I=a<i&&q?"x":"y",A&&I!==A&&ua(xe,"touchforcechange",wa),!1!==Z.vars.lockAxisOnTouchScroll&&q&&U&&(Z.lockedAxis="x"===I?"y":"x",V(Z.vars.onLockAxis)&&Z.vars.onLockAxis.call(Z,l)),Me&&A===I))?he(l):(z=Z.allowEventDefault||A&&(!I||A===I)||!1===l.cancelable?z&&!1:(wa(l),!0),Z.autoScroll&&(ee=!0),pe(e.pageX-(se&&K?Ba(ce):0),e.pageY-(se&&K?Aa(ce):0),s))}else z&&e&&p&&wa(e)},pe=function setPointerPosition(e,t,n){var o,r,i,a,l,s,c=1-Z.dragResistance,d=1-Z.edgeResistance,u=Z.pointerX,p=Z.pointerY,h=D,f=Z.x,g=Z.y,x=Z.endX,m=Z.endY,v=Z.endRotation,y=k;Z.pointerX=e,Z.pointerY=t,K?(a=Math.atan2(P.y-t,e-P.x)*Pe,180<(l=Z.y-a)?(D-=360,Z.y=a):l<-180&&(D+=360,Z.y=a),i=Z.x!==T||Math.abs(D-a)>Q?(Z.y=a,T+(D-a)*c):T):(B&&(s=e*B.a+t*B.c+B.e,t=e*B.b+t*B.d+B.f,e=s),(r=t-b)<Q&&-Q<r&&(r=0),(o=e-w)<Q&&-Q<o&&(o=0),(Z.lockAxis||Z.lockedAxis)&&(o||r)&&((s=Z.lockedAxis)||(Z.lockedAxis=s=q&&Math.abs(o)>Math.abs(r)?"y":U?"x":null,s&&V(Z.vars.onLockAxis)&&Z.vars.onLockAxis.call(Z,Z.pointerEvent)),"y"===s?r=0:"x"===s&&(o=0)),i=_(T+o*c),a=_(D+r*c)),(C||N||R)&&(Z.x!==i||Z.y!==a&&!K)?(R&&(Ae.x=i,Ae.y=a,s=R(Ae),i=_(s.x),a=_(s.y)),C&&(i=_(C(i))),N&&(a=_(N(a)))):L&&(M<i?i=M+Math.round((i-M)*d):i<E&&(i=E+Math.round((i-E)*d)),K||(S<a?a=Math.round(S+(a-S)*d):a<Y&&(a=Math.round(Y+(a-Y)*d)))),Z.x===i&&(Z.y===a||K)||(K?(Z.endRotation=Z.x=Z.endX=i,k=!0):(U&&(Z.y=Z.endY=a,k=!0),q&&(Z.x=Z.endX=i,k=!0)),n&&!1===La(Z,"move","onMove")?(Z.pointerX=u,Z.pointerY=p,D=h,Z.x=f,Z.y=g,Z.endX=x,Z.endY=m,Z.endRotation=v,k=y):!Z.isDragging&&Z.isPressed&&(Z.isDragging=!0,La(Z,"dragstart","onDragStart")))},he=function onRelease(e,t){if(p&&Z.isPressed&&(!e||null==m||t||!(e.pointerId&&e.pointerId!==m||e.changedTouches&&!function _hasTouchID(e,t){for(var n=e.length;n--;)if(e[n].identifier===t)return!0}(e.changedTouches,m)))){Z.isPressed=!1;var n,o,r,i,a,l=e,s=Z.isDragging,c=Z.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which),d=ge.delayedCall(.001,sh);if(y?(va(y,"touchend",onRelease),va(y,"touchmove",ue),va(y,"touchcancel",onRelease),va(ce,"touchstart",za)):va(ce,"mousemove",ue),va(xe,"touchforcechange",wa),Se&&y||(va(ce,"mouseup",onRelease),e&&e.target&&va(e.target,"mouseup",onRelease)),k=!1,v&&!c)return e&&(va(e.target,"change",onRelease),Z.pointerEvent=l),Ra($,!1),La(Z,"release","onRelease"),La(Z,"click","onClick"),void(v=!1);if(sa(hh),!K)for(o=$.length;-1<--o;)Ha($[o],"cursor",u.cursor||(!1!==u.cursor?Xe:null));if(s&&(J=Oe=Ce(),Z.isDragging=!1),De--,e){if((n=e.changedTouches)&&(e=n[0])!==x&&e.identifier!==m){for(o=n.length;-1<--o&&(e=n[o]).identifier!==m;);if(o<0)return}Z.pointerEvent=l,Z.pointerX=e.pageX,Z.pointerY=e.pageY}return c&&l?(wa(l),z=!0,La(Z,"release","onRelease")):l&&!s?(z=!1,O&&(u.snap||u.bounds)&&oh(u.inertia||u.throwProps),La(Z,"release","onRelease"),Me&&"touchmove"===l.type||-1!==l.type.indexOf("cancel")||(La(Z,"click","onClick"),Ce()-ae<300&&La(Z,"doubleclick","onDoubleClick"),i=l.target||h,ae=Ce(),a=function syntheticClick(){ae===H||!Z.enabled()||Z.isPressed||l.defaultPrevented||(i.click?i.click():ce.createEvent&&((r=ce.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,xe,1,Z.pointerEvent.screenX,Z.pointerEvent.screenY,Z.pointerX,Z.pointerY,!1,!1,!1,!1,0,null),i.dispatchEvent(r)))},Me||l.defaultPrevented||ge.delayedCall(.05,a))):(oh(u.inertia||u.throwProps),Z.allowEventDefault||!l||!1===u.dragClickables&&ie.call(Z,l.target)||!s||A&&(!I||A!==I)||!1===l.cancelable?z=!1:(z=!0,wa(l)),La(Z,"release","onRelease")),de()&&d.duration(Z.tween.duration()),s&&La(Z,"dragend","onDragEnd"),!0}z&&e&&p&&wa(e)};return(t=Draggable.get(h))&&t.kill(),e.startDrag=function(e,t){var n,o,r,i;th(e||Z.pointerEvent,!0),t&&!Z.hitTest(e||Z.pointerEvent)&&(n=Ka(e||Z.pointerEvent),o=Ka(h),r=zh({x:n.left+n.width/2,y:n.top+n.height/2}),i=zh({x:o.left+o.width/2,y:o.top+o.height/2}),w-=r.x-i.x,b-=r.y-i.y),Z.isDragging||(Z.isDragging=!0,La(Z,"dragstart","onDragStart"))},e.drag=ue,e.endDrag=function(e){return he(e||Z.pointerEvent,!0)},e.timeSinceDrag=function(){return Z.isDragging?0:(Ce()-J)/1e3},e.timeSinceClick=function(){return(Ce()-ae)/1e3},e.hitTest=function(e,t){return Draggable.hitTest(Z.target,e,t)},e.getDirection=function(e,t){var n,o,r,i,a,l,s="velocity"===e&&Ee?e:W(e)&&!K?"element":"start";return"element"===s&&(a=Ka(Z.target),l=Ka(e)),n="start"===s?Z.x-T:"velocity"===s?Ee.getVelocity(h,d):a.left+a.width/2-(l.left+l.width/2),K?n<0?"counter-clockwise":"clockwise":(t=t||2,o="start"===s?Z.y-D:"velocity"===s?Ee.getVelocity(h,j):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,Z.update(!0,t);if(ih(!0),lh(),L&&!de()){if(n=Z.x,o=Z.y,M<n?n=M:n<E&&(n=E),S<o?o=S:o<Y&&(o=Y),(Z.x!==n||Z.y!==o)&&(r=!0,Z.x=Z.endX=n,K?Z.endRotation=n:Z.y=Z.endY=o,hh(k=!0),Z.autoScroll&&!Z.isDragging))for(Ga(h.parentNode),i=h,Ie.scrollTop=null!=xe.pageYOffset?xe.pageYOffset:null!=ce.documentElement.scrollTop?ce.documentElement.scrollTop:ce.body.scrollTop,Ie.scrollLeft=null!=xe.pageXOffset?xe.pageXOffset:null!=ce.documentElement.scrollLeft?ce.documentElement.scrollLeft:ce.body.scrollLeft;i&&!l;)a=(l=We(i.parentNode))?Ie:i.parentNode,U&&a.scrollTop>a._gsMaxScrollY&&(a.scrollTop=a._gsMaxScrollY),q&&a.scrollLeft>a._gsMaxScrollX&&(a.scrollLeft=a._gsMaxScrollX),i=a;Z.isThrowing&&(r||Z.endX>M||Z.endX<E||Z.endY>S||Z.endY<Y)&&oh(u.inertia||u.throwProps,r)}return Z},e.update=function(e,t,n){var o=Z.x,r=Z.y;return ph(!t),e?Z.applyBounds():(k&&n&&hh(!0),ih(!0)),t&&(pe(Z.pointerX,Z.pointerY),k&&hh(!0)),Z.isPressed&&!t&&(q&&.01<Math.abs(o-Z.x)||U&&.01<Math.abs(r-Z.y)&&!K)&&qh(),Z.autoScroll&&(Ga(h.parentNode,Z.isDragging),ee=Z.isDragging,hh(!0),Da(h,xh),Ca(h,xh)),Z},e.enable=function(e){var t,n,o,r={lazy:!0};if(K||!1===u.cursor||(r.cursor=u.cursor||Xe),ge.utils.checkPrefix("touchCallout")&&(r.touchCallout="none"),r.touchAction=q==U?"none":u.allowNativeTouchScrolling||u.allowEventDefault?"manipulation":q?"pan-y":"pan-x","soft"!==e){for(n=$.length;-1<--n;)o=$[n],Se||ua(o,"mousedown",th),ua(o,"touchstart",th),ua(o,"click",yh,!0),ge.set(o,r),o.getBBox&&o.ownerSVGElement&&ge.set(o.ownerSVGElement,{touchAction:q==U?"none":u.allowNativeTouchScrolling||u.allowEventDefault?"manipulation":q?"pan-y":"pan-x"}),u.allowContextMenu||ua(o,"contextmenu",gh);Ra($,!1)}return Ca(h,xh),p=!0,Ee&&"soft"!==e&&Ee.track(f||h,G?"x,y":K?"rotation":"top,left"),h._gsDragID=t="d"+Be++,Re[t]=Z,f&&(f.enable(),f.element._gsDragID=t),(u.bounds||K)&&qh(),u.bounds&&Z.applyBounds(),Z},e.disable=function(e){var t,n,o=Z.isDragging;if(!K)for(t=$.length;-1<--t;)Ha($[t],"cursor",null);if("soft"!==e){for(t=$.length;-1<--t;)n=$[t],Ha(n,"touchCallout",null),Ha(n,"touchAction",null),va(n,"mousedown",th),va(n,"touchstart",th),va(n,"click",yh),va(n,"contextmenu",gh);Ra($,!0),y&&(va(y,"touchcancel",he),va(y,"touchend",he),va(y,"touchmove",ue)),va(ce,"mouseup",he),va(ce,"mousemove",ue)}return Da(h,xh),p=!1,Ee&&"soft"!==e&&Ee.untrack(f||h,G?"x,y":K?"rotation":"top,left"),f&&f.disable(),sa(hh),Z.isDragging=Z.isPressed=v=!1,o&&La(Z,"dragend","onDragEnd"),Z},e.enabled=function(e,t){return arguments.length?e?Z.enable(t):Z.disable(t):p},e.kill=function(){return Z.isThrowing=!1,Z.tween&&Z.tween.kill(),Z.disable(),ge.set($,{clearProps:"userSelect"}),delete Re[h._gsDragID],Z},~n.indexOf("scroll")&&(f=e.scrollProxy=new Va(h,function _extend(e,t){for(var n in t)n in e||(e[n]=t[n]);return e}({onKill:function onKill(){Z.isPressed&&he(null)}},u)),h.style.overflowY=U&&!be?"auto":"hidden",h.style.overflowX=q&&!be?"auto":"hidden",h=f.content),K?o.rotation=1:(q&&(o[d]=1),U&&(o[j]=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])}(H.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),H.zIndex=1e3,H.version="3.3.1",U()&&ge.registerPlugin(H),e.Draggable=H,e.default=H;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
/*! | ||
* EaselPlugin 3.3.0 | ||
* EaselPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -278,3 +278,3 @@ * | ||
var EaselPlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "easel", | ||
@@ -281,0 +281,0 @@ init: function init(target, value, tween, index, targets) { |
/*! | ||
* EaselPlugin 3.3.0 | ||
* EaselPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!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.3.0",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.3.1",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}}); | ||
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
/*! | ||
* EasePack 3.3.0 | ||
* EasePack 3.3.1 | ||
* https://greensock.com | ||
@@ -205,3 +205,3 @@ * | ||
EasePack[p].register = _initCore; | ||
EasePack[p].version = "3.3.0"; | ||
EasePack[p].version = "3.3.1"; | ||
} | ||
@@ -208,0 +208,0 @@ |
/*! | ||
* EasePack 3.3.0 | ||
* EasePack 3.3.1 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!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.3.0";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.3.1";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}}); | ||
/*! | ||
* GSAP 3.3.0 | ||
* GSAP 3.3.1 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!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 _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function p(t){return"number"==typeof t}function q(t){return void 0===t}function r(t){return"object"==typeof t}function s(t){return!1!==t}function t(){return"undefined"!=typeof window}function u(t){return o(t)||n(t)}function K(t){return(l=pt(t,at))&&ie}function L(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function M(t,e){return!e&&console.warn(t)}function N(t,e){return t&&(at[t]=e)&&l&&(l[t]=e)||at}function O(){return 0}function Y(t){var e,i,n=t[0];if(r(n)||o(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=dt.length;i--&&!dt[i].targetTest(n););e=dt[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ft(t[i],e)))||t.splice(i,1);return t}function Z(t){return t._gsap||Y(yt(t))[0]._gsap}function $(t,e){var r=t[e];return o(r)?t[e]():q(r)&&t.getAttribute(e)||r}function _(t,e){return(t=t.split(",")).forEach(e)||t}function aa(t){return Math.round(1e5*t)/1e5||0}function ba(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r}function ca(t,e,r){var i,n=p(t[1]),a=(n?2:1)+(e<2?0:1),o=t[a];if(n&&(o.duration=t[1]),o.parent=r,e){for(i=o;r&&!("immediateRender"in i);)i=r.vars.defaults||{},r=s(r.vars.inherit)&&r.parent;o.immediateRender=s(i.immediateRender),e<2?o.runBackwards=1:o.startAt=t[a-1]}return o}function da(){var t,e,r=ot.length,i=ot.slice(0);for(ut={},t=ot.length=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function ea(t,e,r,i){ot.length&&da(),t.render(e,r,i),ot.length&&da()}function fa(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(nt).length<2?e:t}function ga(t){return t}function ha(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function ia(t,e){for(var r in e)r in t||"duration"===r||"ease"===r||(t[r]=e[r])}function ka(t,e){for(var i in e)t[i]=r(e[i])?ka(t[i]||(t[i]={}),e[i]):e[i];return t}function la(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i}function ma(t){var e=t.parent||F,r=t.keyframes?ia:ha;if(s(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t}function pa(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,a=e._next;n?n._next=a:t[r]===e&&(t[r]=a),a?a._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function qa(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function ra(t){for(var e=t;e;)e._dirty=1,e=e.parent;return t}function ua(t){return t._repeat?_t(t._tTime,t=t.duration()+t._rDelay)*t:0}function wa(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function xa(t){return t._end=aa(t._start+(t._tDur/Math.abs(t._ts||t._rts||B)||0))}function ya(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=wa(t.rawTime(),e),(!e._dur||gt(0,e.totalDuration(),r)-e._tTime>B)&&e.render(r,!0)),ra(t)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)0<=r.rawTime()&&r.totalTime(r._tTime),r=r._dp;t._zTime=-B}}function za(t,e,r,i){return e.parent&&qa(e),e._start=aa(r+e._delay),e._end=aa(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function _addLinkedListItem(t,e,r,i,n){void 0===r&&(r="_first"),void 0===i&&(i="_last");var a,s=t[i];if(n)for(a=e[n];s&&s[n]>a;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),t._recent=e,i||ya(t,e),t}function Aa(t,e){return(at.ScrollTrigger||L("scrollTrigger",e))&&at.ScrollTrigger.create(e,t)}function Ba(t,e,r,i){return qt(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&d!==Mt.frame?(ot.push(t),t._lazy=[e,i],1):void 0:1}function Ea(t,e,r){var i=t._repeat,n=aa(e)||0;return t._dur=n,t._tDur=i?i<0?1e10:aa(n*(i+1)+t._rDelay*i):n,t._time>n&&(t._time=n,t._tTime=Math.min(t._tTime,t._tDur)),r||ra(t.parent),t.parent&&xa(t),t}function Fa(t){return t instanceof Bt?ra(t):Ea(t,t._dur)}function Ha(t,e){var r,i,a=t.labels,s=t._recent||mt,o=t.duration()>=E?s.endTime(!1):t._dur;return n(e)&&(isNaN(e)||e in a)?"<"===(r=e.charAt(0))||">"===r?("<"===r?s._start:s.endTime(0<=s._repeat))+(parseFloat(e.substr(1))||0):(r=e.indexOf("="))<0?(e in a||(a[e]=o),a[e]):(i=+(e.charAt(r-1)+e.substr(r+1)),1<r?Ha(t,e.substr(0,r-1))+i:o+i):null==e?o:+e}function Ia(t,e){return t||0===t?e(t):e}function Ka(t){return(t+"").substr((parseFloat(t)+"").length)}function Na(t,e){return t&&r(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&r(t[0]))&&!t.nodeType&&t!==i}function Qa(t){return t.sort(function(){return.5-Math.random()})}function Ra(t){if(o(t))return t;var p=r(t)?t:{each:t},_=zt(p.ease),m=p.from||0,g=parseFloat(p.base)||0,v={},e=0<m&&m<1,y=isNaN(m)||e,T=p.axis,b=m,w=m;return n(m)?b=w={center:.5,edges:.5,end:1}[m]||0:!e&&y&&(b=m[0],w=m[1]),function(t,e,r){var i,n,a,s,o,u,h,l,f,d=(r||p).length,c=v[d];if(!c){if(!(f="auto"===p.grid?0:(p.grid||[1,E])[1])){for(h=-E;h<(h=r[f++].getBoundingClientRect().left)&&f<d;);f--}for(c=v[d]=[],i=y?Math.min(f,d)*b-.5:m%f,n=y?d*w/f-.5:m/f|0,l=E,u=h=0;u<d;u++)a=u%f-i,s=n-(u/f|0),c[u]=o=T?Math.abs("y"===T?s:a):V(a*a+s*s),h<o&&(h=o),o<l&&(l=o);"random"===m&&Qa(c),c.max=h-l,c.min=l,c.v=d=(parseFloat(p.amount)||parseFloat(p.each)*(d<f?d-1:T?"y"===T?d/f:f:Math.max(f,d/f))||0)*("edges"===m?-1:1),c.b=d<0?g-d:g,c.u=Ka(p.amount||p.each)||0,_=_&&d<0?Dt(_):_}return d=(c[t]-c.min)/c.max||0,aa(c.b+(_?_(d):d)*c.v)+c.u}}function Sa(e){var r=e<1?Math.pow(10,(e+"").length-2):1;return function(t){return Math.floor(Math.round(parseFloat(t)/e)*e*r)/r+(p(t)?0:Ka(t))}}function Ta(u,t){var h,l,e=W(u);return!e&&r(u)&&(h=e=u.radius||E,u.values?(u=yt(u.values),(l=!p(u[0]))&&(h*=h)):u=Sa(u.increment)),Ia(t,e?o(u)?function(t){return l=u(t),Math.abs(l-t)<=h?l:t}:function(t){for(var e,r,i=parseFloat(l?t.x:t),n=parseFloat(l?t.y:0),a=E,s=0,o=u.length;o--;)(e=l?(e=u[o].x-i)*e+(r=u[o].y-n)*r:Math.abs(u[o]-i))<a&&(a=e,s=o);return s=!h||a<=h?u[s]:t,l||s===t||p(t)?s:s+Ka(t)}:Sa(u))}function Ua(t,e,r,i){return Ia(W(t)?!e:!0===r?!!(r=0):!i,function(){return W(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t+Math.random()*(e-t))/r)*r*i)/i})}function Ya(e,r,t){return Ia(t,function(t){return e[~~r(t)]})}function _a(t){for(var e,r,i,n,a=0,s="";~(e=t.indexOf("random(",a));)i=t.indexOf(")",e),n="["===t.charAt(e+7),r=t.substr(e+7,i-e-7).match(n?nt:G),s+=t.substr(a,e-a)+Ua(n?r:+r[0],+r[1],+r[2]||1e-5),a=i+1;return s+t.substr(a,t.length-a)}function cb(t,e,r){var i,n,a,s=t.labels,o=E;for(i in s)(n=s[i]-e)<0==!!r&&n&&o>(n=Math.abs(n))&&(a=i,o=n);return a}function eb(t){return qa(t),t.progress()<1&&bt(t,"onInterrupt"),t}function jb(t,e,r){return(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*wt+.5|0}function kb(t,e,r){var i,n,a,s,o,u,h,l,f,d,c=t?p(t)?[t>>16,t>>8&wt,t&wt]:0:xt.black;if(!c){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),xt[t])c=xt[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(a=t.charAt(3))+a),c=[(t=parseInt(t.substr(1),16))>>16,t>>8&wt,t&wt];else if("hsl"===t.substr(0,3))if(c=d=t.match(G),e){if(~t.indexOf("="))return c=t.match(J),r&&c.length<4&&(c[3]=1),c}else s=+c[0]%360/360,o=c[1]/100,i=2*(u=c[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3<c.length&&(c[3]*=1),c[0]=jb(s+1/3,i,n),c[1]=jb(s,i,n),c[2]=jb(s-1/3,i,n);else c=t.match(G)||xt.transparent;c=c.map(Number)}return e&&!d&&(i=c[0]/wt,n=c[1]/wt,a=c[2]/wt,u=((h=Math.max(i,n,a))+(l=Math.min(i,n,a)))/2,h===l?s=o=0:(f=h-l,o=.5<u?f/(2-h-l):f/(h+l),s=h===i?(n-a)/f+(n<a?6:0):h===n?(a-i)/f+2:(i-n)/f+4,s*=60),c[0]=~~(s+.5),c[1]=~~(100*o+.5),c[2]=~~(100*u+.5)),r&&c.length<4&&(c[3]=1),c}function lb(t){var r=[],i=[],n=-1;return t.split(kt).forEach(function(t){var e=t.match(tt)||[];r.push.apply(r,e),i.push(n+=e.length+1)}),r.c=i,r}function mb(t,e,r){var i,n,a,s,o="",u=(t+o).match(kt),h=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map(function(t){return(t=kb(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(a=lb(t),(i=r.c).join(o)!==a.c.join(o)))for(s=(n=t.replace(kt,"1").split(tt)).length-1;l<s;l++)o+=n[l]+(~i.indexOf(l)?u.shift()||h+"0,0,0,0)":(a.length?a:u.length?u:r).shift());if(!n)for(s=(n=t.split(kt)).length-1;l<s;l++)o+=n[l]+u[l];return o+n[s]}function pb(t){var e,r=t.join(" ");if(kt.lastIndex=0,kt.test(r))return e=Ot.test(r),t[1]=mb(t[1],e),t[0]=mb(t[0],e,lb(t[1])),!0}function xb(t){var e=(t+"").split("("),r=Pt[e[0]];return r&&1<e.length&&r.config?r.config.apply(null,~t.indexOf("{")?[function _parseObjectInString(t){for(var e,r,i,n={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)r=a[o],e=o!==u-1?r.lastIndexOf(","):r.length,i=r.substr(0,e),n[s]=isNaN(i)?i.replace(At,"").trim():+i,s=r.substr(e+1).trim();return n}(e[1])]:rt.exec(t)[1].split(",").map(fa)):Pt._CE&&St.test(t)?Pt._CE("",t):r}function zb(t,e){for(var r,i=t._first;i;)i instanceof Bt?zb(i,e):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===e||(i.timeline?zb(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next}function Bb(t,e,r,i){void 0===r&&(r=function easeOut(t){return 1-e(1-t)}),void 0===i&&(i=function easeInOut(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var n,a={easeIn:e,easeOut:r,easeInOut:i};return _(t,function(t){for(var e in Pt[t]=at[t]=a,Pt[n=t.toLowerCase()]=r,a)Pt[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Pt[t+"."+e]=a[e]}),a}function Cb(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function Db(r,t,e){function el(t){return 1===t?1:i*Math.pow(2,-10*t)*Q((t-a)*n)+1}var i=1<=t?t:1,n=(e||(r?.3:.45))/(t<1?t:1),a=n/I*(Math.asin(1/i)||0),s="out"===r?el:"in"===r?function(t){return 1-el(1-t)}:Cb(el);return n=I/n,s.config=function(t,e){return Db(r,t,e)},s}function Eb(e,r){function ml(t){return t?--t*t*((r+1)*t+r)+1:0}void 0===r&&(r=1.70158);var t="out"===e?ml:"in"===e?function(t){return 1-ml(1-t)}:Cb(ml);return t.config=function(t){return Eb(e,t)},t}var F,i,a,h,l,f,d,c,m,g,v,y,T,b,w,x,k,C,P,S,A,D,z,U={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},R={duration:.5,overwrite:!1,delay:0},E=1e8,B=1/E,I=2*Math.PI,H=I/4,X=0,V=Math.sqrt,j=Math.cos,Q=Math.sin,W=Array.isArray,G=/(?:-?\.?\d|\.)+/gi,J=/[-+=.]*\d+[.e\-+]*\d*[e\-\+]*\d*/g,tt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,et=/[-+=.]*\d+(?:\.|e-|e)*\d*/gi,rt=/\(([^()]+)\)/i,it=/[+-]=-?[\.\d]+/,nt=/[#\-+.]*\b[a-z\d-=+%.]+/gi,at={},st={},ot=[],ut={},ht={},lt={},ft=30,dt=[],ct="",pt=function _merge(t,e){for(var r in e)t[r]=e[r];return t},_t=function _animationCycle(t,e){return(t/=e)&&~~t===t?~~t-1:~~t},mt={_start:0,endTime:O},gt=function _clamp(t,e,r){return r<t?t:e<r?e:r},vt=[].slice,yt=function toArray(t,e){return!n(t)||e||!a&&Ct()?W(t)?function _flatten(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){return n(t)&&!e||Na(t,1)?r.push.apply(r,yt(t)):r.push(t)})||r}(t,e):Na(t)?vt.call(t,0):t?[t]:[]:vt.call(h.querySelectorAll(t),0)},Tt=function mapRange(e,t,r,i,n){var a=t-e,s=i-r;return Ia(n,function(t){return r+((t-e)/a*s||0)})},bt=function _callback(t,e,r){var i,n,a=t.vars,s=a[e];if(s)return i=a[e+"Params"],n=a.callbackScope||t,r&&ot.length&&da(),i?s.apply(n,i):s.call(n)},wt=255,xt={aqua:[0,wt,wt],lime:[0,wt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,wt],navy:[0,0,128],white:[wt,wt,wt],olive:[128,128,0],yellow:[wt,wt,0],orange:[wt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[wt,0,0],pink:[wt,192,203],cyan:[0,wt,wt],transparent:[wt,wt,wt,0]},kt=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in xt)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ot=/hsl[a]?\(/,Mt=(b=Date.now,w=500,x=33,k=b(),C=k,S=P=1/240,T={time:0,frame:0,tick:function tick(){gk(!0)},wake:function wake(){f&&(!a&&t()&&(i=a=window,h=i.document||{},at.gsap=ie,(i.gsapVersions||(i.gsapVersions=[])).push(ie.version),K(l||i.GreenSockGlobals||!i.gsap&&i||{}),y=i.requestAnimationFrame),g&&T.sleep(),v=y||function(t){return setTimeout(t,1e3*(S-T.time)+1|0)},m=1,gk(2))},sleep:function sleep(){(y?i.cancelAnimationFrame:clearTimeout)(g),m=0,v=O},lagSmoothing:function lagSmoothing(t,e){w=t||1e8,x=Math.min(e,w,0)},fps:function fps(t){P=1/(t||240),S=T.time+P},add:function add(t){A.indexOf(t)<0&&A.push(t),Ct()},remove:function remove(t){var e;~(e=A.indexOf(t))&&A.splice(e,1)},_listeners:A=[]}),Ct=function _wake(){return!m&&Mt.wake()},Pt={},St=/^[\d.\-M][\d.\-,\s]/,At=/["']/g,Dt=function _invertEase(e){return function(t){return 1-e(1-t)}},zt=function _parseEase(t,e){return t&&(o(t)?t:Pt[t]||xb(t))||e};function gk(e){var t,r,i=b()-C,n=!0===e;w<i&&(k+=i-x),C+=i,T.time=(C-k)/1e3,(0<(t=T.time-S)||n)&&(T.frame++,S+=t+(P<=t?.004:P-t),r=1),n||(g=v(gk)),r&&A.forEach(function(t){return t(T.time,i,T.frame,e)})}function Dl(t){return t<z?D*t*t:t<.7272727272727273?D*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?D*(t-=2.25/2.75)*t+.9375:D*Math.pow(t-2.625/2.75,2)+.984375}_("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Bb(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),Pt.Linear.easeNone=Pt.none=Pt.Linear.easeIn,Bb("Elastic",Db("in"),Db("out"),Db()),D=7.5625,z=1/2.75,Bb("Bounce",function(t){return 1-Dl(1-t)},Dl),Bb("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),Bb("Circ",function(t){return-(V(1-t*t)-1)}),Bb("Sine",function(t){return 1===t?1:1-j(t*H)}),Bb("Back",Eb("in"),Eb("out"),Eb()),Pt.SteppedEase=Pt.steps=at.SteppedEase={config:function config(t,e){void 0===t&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0;return function(t){return((i*gt(0,.99999999,t)|0)+n)*r}}},R.ease=Pt["quad.out"],_("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return ct+=t+","+t+"Params,"});var Et,Ft=function GSCache(t,e){this.id=X++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:$,this.set=e?e.getSetter:Zt},Rt=((Et=Animation.prototype).delay=function delay(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},Et.duration=function duration(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},Et.totalDuration=function totalDuration(t){return arguments.length?(this._dirty=0,Ea(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},Et.totalTime=function totalTime(t,e){if(Ct(),!arguments.length)return this._tTime;var r=this.parent||this._dp;if(r&&r.smoothChildTiming&&this._ts){for(this._start=aa(r._time-(0<this._ts?t/this._ts:((this._dirty?this.totalDuration():this._tDur)-t)/-this._ts)),xa(this),r._dirty||ra(r);r.parent;)r.parent._time!==r._start+(0<=r._ts?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&za(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===B||!t&&!this._initted)&&(this._ts||(this._pTime=t),ea(this,t,e)),this},Et.time=function time(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+ua(this))%this._dur||(t?this._dur:0),e):this._time},Et.totalProgress=function totalProgress(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},Et.progress=function progress(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+ua(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},Et.iteration=function iteration(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?_t(this._tTime,r)+1:1},Et.timeScale=function timeScale(t){if(!arguments.length)return this._rts===-B?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?wa(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-B?0:this._rts,function _recacheAncestors(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this.totalTime(gt(0,this._tDur,e),!0))},Et.paused=function paused(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ct(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=B)&&Math.abs(this._zTime)!==B))),this):this._ps},Et.startTime=function startTime(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return!e||!e._sort&&this.parent||za(e,this,t-this._delay),this}return this._start},Et.endTime=function endTime(t){return this._start+(s(t)?this.totalDuration():this.duration())/Math.abs(this._ts)},Et.rawTime=function rawTime(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?wa(e.rawTime(t),this):this._tTime:this._tTime},Et.repeat=function repeat(t){return arguments.length?(this._repeat=t,Fa(this)):this._repeat},Et.repeatDelay=function repeatDelay(t){return arguments.length?(this._rDelay=t,Fa(this)):this._rDelay},Et.yoyo=function yoyo(t){return arguments.length?(this._yoyo=t,this):this._yoyo},Et.seek=function seek(t,e){return this.totalTime(Ha(this,t),s(e))},Et.restart=function restart(t,e){return this.play().totalTime(t?-this._delay:0,s(e))},Et.play=function play(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},Et.reverse=function reverse(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},Et.pause=function pause(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},Et.resume=function resume(){return this.paused(!1)},Et.reversed=function reversed(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-B:0)),this):this._rts<0},Et.invalidate=function invalidate(){return this._initted=0,this._zTime=-B,this},Et.isActive=function isActive(t){var e,r=this.parent||this._dp,i=this._start;return!(r&&!(this._ts&&(this._initted||!t)&&r.isActive(t)&&(e=r.rawTime(!0))>=i&&e<this.endTime(!0)-B))},Et.eventCallback=function eventCallback(t,e,r){var i=this.vars;return 1<arguments.length?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},Et.then=function then(t){var i=this;return new Promise(function(e){function Sm(){var t=i.then;i.then=null,o(r)&&(r=r(i))&&(r.then||r===i)&&(i.then=t),e(r),i.then=t}var r=o(t)?t:ga;i._initted&&1===i.totalProgress()&&0<=i._ts||!i._tTime&&i._ts<0?Sm():i._prom=Sm})},Et.kill=function kill(){eb(this)},Animation);function Animation(t,e){var r=t.parent||F;this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Ea(this,+t.duration,1),this.data=t.data,m||Mt.wake(),r&&za(r,this,e||0===e?e:r._time,1),t.reversed&&this.reverse(),t.paused&&this.paused(!0)}ha(Rt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-B,_prom:0,_ps:!1,_rts:1});var Bt=function(i){function Timeline(t,e){var r;return void 0===t&&(t={}),(r=i.call(this,t,e)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=s(t.sortChildren),r.parent&&ya(r.parent,_assertThisInitialized(r)),t.scrollTrigger&&Aa(_assertThisInitialized(r),t.scrollTrigger),r}_inheritsLoose(Timeline,i);var t=Timeline.prototype;return t.to=function to(t,e,r,i){return new Ht(t,ca(arguments,0,this),Ha(this,p(e)?i:r)),this},t.from=function from(t,e,r,i){return new Ht(t,ca(arguments,1,this),Ha(this,p(e)?i:r)),this},t.fromTo=function fromTo(t,e,r,i,n){return new Ht(t,ca(arguments,2,this),Ha(this,p(e)?n:i)),this},t.set=function set(t,e,r){return e.duration=0,e.parent=this,ma(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Ht(t,e,Ha(this,r),1),this},t.call=function call(t,e,r){return za(this,Ht.delayedCall(0,t,e),Ha(this,r))},t.staggerTo=function staggerTo(t,e,r,i,n,a,s){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=a,r.onCompleteParams=s,r.parent=this,new Ht(t,r,Ha(this,n)),this},t.staggerFrom=function staggerFrom(t,e,r,i,n,a,o){return r.runBackwards=1,ma(r).immediateRender=s(r.immediateRender),this.staggerTo(t,e,r,i,n,a,o)},t.staggerFromTo=function staggerFromTo(t,e,r,i,n,a,o,u){return i.startAt=r,ma(i).immediateRender=s(i.immediateRender),this.staggerTo(t,e,i,n,a,o,u)},t.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,d,c,p,_=this._time,m=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=this!==F&&m-B<t&&0<=t?m:t<B?0:t,y=this._zTime<0!=t<0&&(this._initted||!g);if(v!==this._tTime||r||y){if(_!==this._time&&g&&(v+=this._time-_,t+=this._time-_),i=v,f=this._start,u=!(l=this._ts),y&&(g||(_=this._zTime),!t&&e||(this._zTime=t)),this._repeat&&(c=this._yoyo,o=g+this._rDelay,(g<(i=aa(v%o))||m===v)&&(i=g),(s=~~(v/o))&&s===v/o&&(i=g,s--),d=_t(this._tTime,o),!_&&this._tTime&&d!==s&&(d=s),c&&1&s&&(i=g-i,p=1),s!==d&&!this._lock)){var T=c&&1&d,b=T===(c&&1&s);if(s<d&&(T=!T),_=T?0:g,this._lock=1,this.render(_||(p?0:aa(s*o)),e,!g)._lock=0,!e&&this.parent&&bt(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),_!==this._time||u!=!this._ts)return this;if(b&&(this._lock=2,_=T?g+1e-4:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;zb(this,p)}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function _findNextPauseTween(t,e,r){var i;if(e<r)for(i=t._first;i&&i._start<=r;){if(!i._dur&&"isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if(!i._dur&&"isPause"===i.data&&i._start<e)return i;i=i._prev}}(this,aa(_),aa(i)))&&(v-=i-(i=h._start)),this._tTime=v,this._time=i,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t),_||!i||e||bt(this,"onStart"),_<=i&&0<=t)for(n=this._first;n;){if(a=n._next,(n._act||i>=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(i-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(i-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=-B);break}}n=a}else{n=this._last;for(var w=t<0?t:i;n;){if(a=n._prev,(n._act||w<=n._end)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(w-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(w-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=w?-B:B);break}}n=a}}if(h&&!e&&(this.pause(),h.render(_<=i?0:-B)._zTime=_<=i?1:-1,this._ts))return this._start=f,xa(this),this.render(t,e,r);this._onUpdate&&!e&&bt(this,"onUpdate",!0),(v===m&&m>=this.totalDuration()||!v&&_)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0<this._ts||!v&&this._ts<0)||qa(this,1),e||t<0&&!_||!v&&!_||(bt(this,v===m?"onComplete":"onReverseComplete",!0),!this._prom||v<m&&0<this.timeScale()||this._prom())))}return this},t.add=function add(t,e){var r=this;if(p(e)||(e=Ha(this,e)),!(t instanceof Rt)){if(W(t))return t.forEach(function(t){return r.add(t,e)}),ra(this);if(n(t))return this.addLabel(t,e);if(!o(t))return this;t=Ht.delayedCall(0,t)}return this!==t?za(this,t,e):this},t.getChildren=function getChildren(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-E);for(var n=[],a=this._first;a;)a._start>=i&&(a instanceof Ht?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getChildren(!0,e,r)))),a=a._next;return n},t.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},t.remove=function remove(t){return n(t)?this.removeLabel(t):o(t)?this.killTweensOf(t):(pa(this,t),t===this._recent&&(this._recent=this._last),ra(this))},t.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,this.parent||this._dp||!this._ts||(this._start=aa(Mt.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),i.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},t.addLabel=function addLabel(t,e){return this.labels[t]=Ha(this,e),this},t.removeLabel=function removeLabel(t){return delete this.labels[t],this},t.addPause=function addPause(t,e,r){var i=Ht.delayedCall(0,e||O,r);return i.data="isPause",this._hasPause=1,za(this,i,Ha(this,t))},t.removePause=function removePause(t){var e=this._first;for(t=Ha(this,t);e;)e._start===t&&"isPause"===e.data&&qa(e),e=e._next},t.killTweensOf=function killTweensOf(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)It!==i[n]&&i[n].kill(t,e);return this},t.getTweensOf=function getTweensOf(t,e){for(var r,i=[],n=yt(t),a=this._first;a;)a instanceof Ht?!ba(a._targets,n)||e&&!a.isActive("started"===e)||i.push(a):(r=a.getTweensOf(n,e)).length&&i.push.apply(i,r),a=a._next;return i},t.tweenTo=function tweenTo(t,e){e=e||{};var r=this,i=Ha(r,t),n=e.startAt,a=e.onStart,s=e.onStartParams,o=Ht.to(r,ha(e,{ease:"none",lazy:!1,time:i,duration:e.duration||Math.abs((i-(n&&"time"in n?n.time:r._time))/r.timeScale())||B,onStart:function onStart(){r.pause();var t=e.duration||Math.abs((i-r._time)/r.timeScale());o._dur!==t&&Ea(o,t).render(o._time,!0,!0),a&&a.apply(o,s||[])}}));return o},t.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,ha({startAt:{time:Ha(this,t)}},r))},t.recent=function recent(){return this._recent},t.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),cb(this,Ha(this,t))},t.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),cb(this,Ha(this,t),1)},t.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+B)},t.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return ra(this)},t.invalidate=function invalidate(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return i.prototype.invalidate.call(this)},t.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._time=this._tTime=this._pTime=0,t&&(this.labels={}),ra(this)},t.totalDuration=function totalDuration(t){var e,r,i,n,a=0,s=this,o=s._last,u=E;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),u<(i=o._start)&&s._sort&&o._ts&&!s._lock?(s._lock=1,za(s,o,i-o._delay,1)._lock=0):u=i,i<0&&o._ts&&(a-=i,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=i/s._ts,s._time-=i,s._tTime-=i),s.shiftChildren(-i,!1,-Infinity),u=0),a<(r=xa(o))&&o._ts&&(a=r),o=e;Ea(s,s===F&&s._time>a?s._time:a,1),s._dirty=0}return s._tDur},Timeline.updateRoot=function updateRoot(t){if(F._ts&&(ea(F,wa(t,F)),d=Mt.frame),Mt.frame>=ft){ft+=U.autoSleep||120;var e=F._first;if((!e||!e._ts)&&U.autoSleep&&Mt._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Mt.sleep()}}},Timeline}(Rt);ha(Bt.prototype,{_lock:0,_hasPause:0,_forcing:0});function Lb(t,e,i,a,s,u){var h,l,f,d;if(ht[t]&&!1!==(h=new ht[t]).init(s,h.rawVars?e[t]:function _processVars(t,e,i,a,s){if(o(t)&&(t=Yt(t,s,e,i,a)),!r(t)||t.style&&t.nodeType||W(t))return n(t)?Yt(t,s,e,i,a):t;var u,h={};for(u in t)h[u]=Yt(t[u],s,e,i,a);return h}(e[t],a,s,u,i),i,a,u)&&(i._pt=l=new ee(i._pt,s,t,0,1,h.render,h,0,h.priority),i!==c))for(f=i._ptLookup[i._targets.indexOf(s)],d=h._props.length;d--;)f[h._props[d]]=l;return h}var It,Lt=function _addPropTween(t,e,r,i,a,s,u,h,l){o(i)&&(i=i(a||0,t,s));var f,d=t[e],c="get"!==r?r:o(d)?l?t[e.indexOf("set")||!o(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():d,p=o(d)?l?jt:Vt:Xt;if(n(i)&&(~i.indexOf("random(")&&(i=_a(i)),"="===i.charAt(1)&&(i=parseFloat(c)+parseFloat(i.substr(2))*("-"===i.charAt(0)?-1:1)+(Ka(c)||0))),c!==i)return isNaN(c+i)?(d||e in t||L(e,i),function _addComplexStringPropTween(t,e,r,i,n,a,s){var o,u,h,l,f,d,c,p,_=new ee(this._pt,t,e,0,1,Wt,null,n),m=0,g=0;for(_.b=r,_.e=i,r+="",(c=~(i+="").indexOf("random("))&&(i=_a(i)),a&&(a(p=[r,i],t,e),r=p[0],i=p[1]),u=r.match(et)||[];o=et.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(d=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:",",s:d,c:"="===l.charAt(1)?parseFloat(l.substr(2))*("-"===l.charAt(0)?-1:1):parseFloat(l)-d,m:h&&h<4?Math.round:0},m=et.lastIndex);return _.c=m<i.length?i.substring(m,i.length):"",_.fp=s,(it.test(i)||c)&&(_.e=0),this._pt=_}.call(this,t,e,c,i,p,h||U.stringFilter,l)):(f=new ee(this._pt,t,e,+c||0,i-(c||0),"boolean"==typeof d?Qt:Kt,0,p),l&&(f.fp=l),u&&f.modifier(u,this,t),this._pt=f)},qt=function _initTween(t,e){var r,i,n,a,o,u,h,l,f,d,c,p,_=t.vars,m=_.ease,g=_.startAt,v=_.immediateRender,y=_.lazy,T=_.onUpdate,b=_.onUpdateParams,w=_.callbackScope,x=_.runBackwards,k=_.yoyoEase,O=_.keyframes,M=_.autoRevert,C=t._dur,P=t._startAt,S=t._targets,A=t.parent,D=A&&"nested"===A.data?A.parent._targets:S,z="auto"===t._overwrite,E=t.timeline;if(!E||O&&m||(m="none"),t._ease=zt(m,R.ease),t._yEase=k?Dt(zt(!0===k?m:k,R.ease)):0,k&&t._yoyo&&!t._repeat&&(k=t._yEase,t._yEase=t._ease,t._ease=k),!E){if(p=(l=S[0]?Z(S[0]).harness:0)&&_[l.prop],r=la(_,st),P&&P.render(-1,!0).kill(),g){if(qa(t._startAt=Ht.set(S,ha({data:"isStart",overwrite:!1,parent:A,immediateRender:!0,lazy:s(y),startAt:null,delay:0,onUpdate:T,onUpdateParams:b,callbackScope:w,stagger:0},g))),v)if(0<e)M||(t._startAt=0);else if(C)return}else if(x&&C)if(P)M||(t._startAt=0);else if(e&&(v=!1),n=pt(r,{overwrite:!1,data:"isFromStart",lazy:v&&s(y),immediateRender:v,stagger:0,parent:A}),p&&(n[l.prop]=p),qa(t._startAt=Ht.set(S,n)),v){if(!e)return}else _initTween(t._startAt,B);for(t._pt=0,y=C&&s(y)||y&&!C,i=0;i<S.length;i++){if(h=(o=S[i])._gsap||Y(S)[i]._gsap,t._ptLookup[i]=d={},ut[h.id]&&da(),c=D===S?i:D.indexOf(o),l&&!1!==(f=new l).init(o,p||r,t,c,D)&&(t._pt=a=new ee(t._pt,o,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){d[t]=a}),f.priority&&(u=1)),!l||p)for(n in r)ht[n]&&(f=Lb(n,r,t,c,o,D))?f.priority&&(u=1):d[n]=a=Lt.call(t,o,n,"get",r[n],c,D,0,_.stringFilter);t._op&&t._op[i]&&t.kill(o,t._op[i]),z&&t._pt&&(It=t,F.killTweensOf(o,d,"started"),It=0),t._pt&&y&&(ut[h.id]=1)}u&&te(t),t._onInit&&t._onInit(t)}t._from=!E&&!!_.runBackwards,t._onUpdate=T,t._initted=1},Yt=function _parseFuncOrString(t,e,r,i,a){return o(t)?t.call(e,r,i,a):n(t)&&~t.indexOf("random(")?_a(t):t},Nt=ct+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",Ut=(Nt+",id,stagger,delay,duration,paused,scrollTrigger").split(","),Ht=function(D){function Tween(t,e,i,n){var a;"number"==typeof e&&(i.duration=e,e=i,i=null);var o,h,l,f,d,c,_,m,g=(a=D.call(this,n?e:ma(e),i)||this).vars,v=g.duration,y=g.delay,T=g.immediateRender,b=g.stagger,w=g.overwrite,x=g.keyframes,k=g.defaults,C=g.scrollTrigger,P=g.yoyoEase,S=a.parent,A=(W(t)?p(t[0]):"length"in e)?[t]:yt(t);if(a._targets=A.length?Y(A):M("GSAP target "+t+" not found. https://greensock.com",!U.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=w,x||b||u(v)||u(y)){if(e=a.vars,(o=a.timeline=new Bt({data:"nested",defaults:k||{}})).kill(),o.parent=_assertThisInitialized(a),x)ha(o.vars.defaults,{ease:"none"}),x.forEach(function(t){return o.to(A,t,">")});else{if(f=A.length,_=b?Ra(b):O,r(b))for(d in b)~Nt.indexOf(d)&&((m=m||{})[d]=b[d]);for(h=0;h<f;h++){for(d in l={},e)Ut.indexOf(d)<0&&(l[d]=e[d]);l.stagger=0,P&&(l.yoyoEase=P),m&&pt(l,m),c=A[h],l.duration=+Yt(v,_assertThisInitialized(a),h,c,A),l.delay=(+Yt(y,_assertThisInitialized(a),h,c,A)||0)-a._delay,!b&&1===f&&l.delay&&(a._delay=y=l.delay,a._start+=y,l.delay=0),o.to(c,l,_(h,c,A))}o.duration()?v=y=0:a.timeline=0}v||a.duration(v=o.duration())}else a.timeline=0;return!0===w&&(It=_assertThisInitialized(a),F.killTweensOf(A),It=0),S&&ya(S,_assertThisInitialized(a)),(T||!v&&!x&&a._start===aa(S._time)&&s(T)&&function _hasNoPausedAncestors(t){return!t||t._ts&&_hasNoPausedAncestors(t.parent)}(_assertThisInitialized(a))&&"nested"!==S.data)&&(a._tTime=-B,a.render(Math.max(0,-y))),C&&Aa(_assertThisInitialized(a),C),a}_inheritsLoose(Tween,D);var t=Tween.prototype;return t.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,d=this._time,c=this._tDur,p=this._dur,_=c-B<t&&0<=t?c:t<B?0:t;if(p){if(_!==this._tTime||!t||r||this._startAt&&this._zTime<0!=t<0){if(i=_,l=this.timeline,this._repeat){if(s=p+this._rDelay,(p<(i=aa(_%s))||c===_)&&(i=p),(a=~~(_/s))&&a===_/s&&(i=p,a--),(u=this._yoyo&&1&a)&&(f=this._yEase,i=p-i),o=_t(this._tTime,s),i===d&&!r&&this._initted)return this;a!==o&&(l&&this._yEase&&zb(l,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=r=1,this.render(aa(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(Ba(this,i,r,e))return this._tTime=0,this;if(p!==this._dur)return this.render(t,e,r)}for(this._tTime=_,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(f||this._ease)(i/p),this._from&&(this.ratio=h=1-h),!i||d||e||bt(this,"onStart"),n=this._pt;n;)n.r(h,n.d),n=n._next;l&&l.render(t<0?t:!i&&u?-B:l._dur*h,e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,r),bt(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&bt(this,"onRepeat"),_!==this._tDur&&_||this._tTime!==_||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,r),!t&&p||!(_===this._tDur&&0<this._ts||!_&&this._ts<0)||qa(this,1),e||t<0&&!d||!_&&!d||(bt(this,_===c?"onComplete":"onReverseComplete",!0),!this._prom||_<c&&0<this.timeScale()||this._prom()))}}else!function _renderZeroDurationTween(t,e,r,i){var n,a,s=t.ratio,o=e<0||s&&!e&&!t._start&&!t._dp._lock?0:1,u=t._rDelay,h=0;if(u&&t._repeat&&(h=gt(0,t._tDur,e),_t(h,u)!==(a=_t(t._tTime,u))&&(s=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),t._initted||!Ba(t,e,i,r))if(o!==s||i||t._zTime===B||!e&&t._zTime){for(a=t._zTime,t._zTime=e||(r?B:0),r=r||e&&!a,t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=h,r||bt(t,"onStart"),n=t._pt;n;)n.r(o,n.d),n=n._next;!o&&t._startAt&&!t._onUpdate&&t._start&&t._startAt.render(e,!0,i),t._onUpdate&&!r&&bt(t,"onUpdate"),h&&t._repeat&&!r&&t.parent&&bt(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&qa(t,1),r||(bt(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},t.targets=function targets(){return this._targets},t.invalidate=function invalidate(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),D.prototype.invalidate.call(this)},t.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e)&&(this._lazy=0,this.parent))return eb(this);if(this.timeline)return this.timeline.killTweensOf(t,e,It&&!0!==It.vars.overwrite)._first||eb(this),this;var r,i,a,s,o,u,h,l=this._targets,f=t?yt(t):l,d=this._ptLookup,c=this._pt;if((!e||"all"===e)&&function _arraysMatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(l,f))return eb(this);for(r=this._op=this._op||[],"all"!==e&&(n(e)&&(o={},_(e,function(t){return o[t]=1}),e=o),e=function _addAliasesToVars(t,e){var r,i,n,a,s=t[0]?Z(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=pt({},e),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r}(l,e)),h=l.length;h--;)if(~f.indexOf(l[h]))for(o in i=d[h],"all"===e?(r[h]=e,s=i,a={}):(a=r[h]=r[h]||{},s=e),s)(u=i&&i[o])&&("kill"in u.d&&!0!==u.d.kill(o)||pa(this,u,"_pt"),delete i[o]),"all"!==a&&(a[o]=1);return this._initted&&!this._pt&&c&&eb(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return new Tween(t,ca(arguments,1))},Tween.delayedCall=function delayedCall(t,e,r,i){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},Tween.fromTo=function fromTo(t,e,r){return new Tween(t,ca(arguments,2))},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return F.killTweensOf(t,e,r)},Tween}(Rt);ha(Ht.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),_("staggerTo,staggerFrom,staggerFromTo",function(r){Ht[r]=function(){var t=new Bt,e=vt.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function Wb(t,e,r){return t.setAttribute(e,r)}function cc(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}var Xt=function _setterPlain(t,e,r){return t[e]=r},Vt=function _setterFunc(t,e,r){return t[e](r)},jt=function _setterFuncWithParam(t,e,r,i){return t[e](i.fp,r)},Zt=function _getSetter(t,e){return o(t[e])?Vt:q(t[e])&&t.setAttribute?Wb:Xt},Kt=function _renderPlain(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},Qt=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Wt=function _renderComplexString(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},Gt=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},$t=function _addPluginModifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},Jt=function _killPropTweensOf(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?pa(this,i,"_pt"):i.dep||(e=1),i=r;return!e},te=function _sortPropTweensByPriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},ee=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=cc,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||Kt,this.d=s||this,this.set=o||Xt,this.pr=u||0,(this._next=t)&&(t._prev=this)}_(ct+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return st[t]=1}),at.TweenMax=at.TweenLite=Ht,at.TimelineLite=at.TimelineMax=Bt,F=new Bt({sortChildren:!1,defaults:R,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),U.stringFilter=pb;var re={registerPlugin:function registerPlugin(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return function _createPlugin(t){var e=(t=!t.name&&t.default||t).name,r=o(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:O,render:Gt,add:Lt,kill:Jt,modifier:$t,rawVars:0},a={targetTest:0,get:0,getSetter:Zt,aliases:{},register:0};if(Ct(),t!==i){if(ht[e])return;ha(i,ha(la(t,n),a)),pt(i.prototype,pt(n,la(t,a))),ht[i.prop=e]=i,t.targetTest&&(dt.push(i),st[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}N(e,i),t.register&&t.register(ie,i,ee)}(t)})},timeline:function timeline(t){return new Bt(t)},getTweensOf:function getTweensOf(t,e){return F.getTweensOf(t,e)},getProperty:function getProperty(i,t,e,r){n(i)&&(i=yt(i)[0]);var a=Z(i||{}).get,s=e?ga:fa;return"native"===e&&(e=""),i?t?s((ht[t]&&ht[t].get||a)(i,t,e,r)):function(t,e,r){return s((ht[t]&&ht[t].get||a)(i,t,e,r))}:i},quickSetter:function quickSetter(r,e,i){if(1<(r=yt(r)).length){var n=r.map(function(t){return ie.quickSetter(t,e,i)}),a=n.length;return function(t){for(var e=a;e--;)n[e](t)}}r=r[0]||{};var s=ht[e],o=Z(r),u=o.harness&&(o.harness.aliases||{})[e]||e,h=s?function(t){var e=new s;c._pt=0,e.init(r,i?t+i:t,c,0,[r]),e.render(1,e),c._pt&&Gt(1,c)}:o.set(r,u);return s?h:function(t){return h(r,u,i?t+i:t,o,1)}},isTweening:function isTweening(t){return 0<F.getTweensOf(t,!0).length},defaults:function defaults(t){return t&&t.ease&&(t.ease=zt(t.ease,R.ease)),ka(R,t||{})},config:function config(t){return ka(U,t||{})},registerEffect:function registerEffect(t){var n=t.name,i=t.effect,e=t.plugins,a=t.defaults,s=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!ht[t]&&!at[t]&&M(n+" effect requires "+t+" plugin.")}),lt[n]=function(t,e,r){return i(yt(t),ha(e||{},a),r)},s&&(Bt.prototype[n]=function(t,e,i){return this.add(lt[n](t,r(e)?e:(i=e)&&{},this),i)})},registerEase:function registerEase(t,e){Pt[t]=zt(e)},parseEase:function parseEase(t,e){return arguments.length?zt(t,e):Pt},getById:function getById(t){return F.getById(t)},exportRoot:function exportRoot(t,e){void 0===t&&(t={});var r,i,n=new Bt(t);for(n.smoothChildTiming=s(t.smoothChildTiming),F.remove(n),n._dp=0,n._time=n._tTime=F._time,r=F._first;r;)i=r._next,!e&&!r._dur&&r instanceof Ht&&r.vars.onComplete===r._targets[0]||za(n,r,r._start-r._delay),r=i;return za(F,n,0),n},utils:{wrap:function wrap(e,t,r){var i=t-e;return W(e)?Ya(e,wrap(0,e.length),t):Ia(r,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function wrapYoyo(e,t,r){var i=t-e,n=2*i;return W(e)?Ya(e,wrapYoyo(0,e.length-1),t):Ia(r,function(t){return e+(i<(t=(n+(t-e)%n)%n)?n-t:t)})},distribute:Ra,random:Ua,snap:Ta,normalize:function normalize(t,e,r){return Tt(t,e,0,1,r)},getUnit:Ka,clamp:function clamp(e,r,t){return Ia(t,function(t){return gt(e,r,t)})},splitColor:kb,toArray:yt,mapRange:Tt,pipe:function pipe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function unitize(e,r){return function(t){return e(parseFloat(t))+(r||Ka(t))}},interpolate:function interpolate(e,r,t,i){var a=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!a){var s,o,u,h,l,f=n(e),d={};if(!0===t&&(i=1)&&(t=null),f)e={p:e},r={p:r};else if(W(e)&&!W(r)){for(u=[],h=e.length,l=h-2,o=1;o<h;o++)u.push(interpolate(e[o-1],e[o]));h--,a=function func(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},t=r}else i||(e=pt(W(e)?[]:{},e));if(!u){for(s in r)Lt.call(d,e,s,"get",r[s]);a=function func(t){return Gt(t,d)||(f?e.p:e)}}}return Ia(t,a)},shuffle:Qa},install:K,effects:lt,ticker:Mt,updateRoot:Bt.updateRoot,plugins:ht,globalTimeline:F,core:{PropTween:ee,globals:N,Tween:Ht,Timeline:Bt,Animation:Rt,getCache:Z,_removeLinkedListItem:pa}};_("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return re[t]=Ht[t]}),Mt.add(Bt.updateRoot),c=re.to({},{duration:0});function gc(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r}function ic(t,a){return{name:t,rawVars:1,init:function init(t,i,e){e._onInit=function(t){var e,r;if(n(i)&&(e={},_(i,function(t){return e[t]=1}),i=e),a){for(r in e={},i)e[r]=a(i[r]);i=e}!function _addModifiers(t,e){var r,i,n,a=t._targets;for(r in e)for(i=a.length;i--;)(n=(n=t._ptLookup[i][r])&&n.d)&&(n._pt&&(n=gc(n,r)),n&&n.modifier&&n.modifier(e[r],t,a[i],r))}(t,i)}}}}var ie=re.registerPlugin({name:"attr",init:function init(t,e,r,i,n){var a,s;for(a in e)(s=this.add(t,"setAttribute",(t.getAttribute(a)||0)+"",e[a],i,n,0,0,a))&&(s.op=a),this._props.push(a)}},{name:"endArray",init:function init(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r])}},ic("roundProps",Sa),ic("modifiers"),ic("snap",Ta))||re;Ht.version=Bt.version=ie.version="3.3.0",f=1,t()&&Ct();function Tc(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function Uc(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function Vc(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function Wc(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)}function Xc(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function Yc(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function Zc(t,e,r){return t.style[e]=r}function $c(t,e,r){return t.style.setProperty(e,r)}function _c(t,e,r){return t._gsap[e]=r}function ad(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function bd(t,e,r,i,n){var a=t._gsap;a.scaleX=a.scaleY=r,a.renderTransform(n,a)}function cd(t,e,r,i,n){var a=t._gsap;a[e]=r,a.renderTransform(n,a)}function gd(t,e){var r=ae.createElementNS?ae.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ae.createElement(t);return r.style?r:ae.createElement(t)}function hd(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Fe,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&hd(t,Ne(e)||e,1)||""}function kd(){(function _windowExists(){return"undefined"!=typeof window})()&&window.document&&(ne=window,ae=ne.document,se=ae.documentElement,ue=gd("div")||{style:{}},he=gd("div"),Le=Ne(Le),qe=Ne(qe),ue.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",fe=!!Ne("perspective"),oe=1)}function ld(t){var e,r=gd("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,a=this.style.cssText;if(se.appendChild(r),r.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=ld}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),se.removeChild(r),this.style.cssText=a,e}function md(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function nd(e){var r;try{r=e.getBBox()}catch(t){r=ld.call(e,!0)}return r&&(r.width||r.height)||e.getBBox===ld||(r=ld.call(e,!0)),!r||r.width||r.x||r.y?r:{x:+md(e,["x","cx","x1"])||0,y:+md(e,["y","cy","y1"])||0,width:0,height:0}}function od(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!nd(t))}function pd(t,e){if(e){var r=t.style;e in Ae&&(e=Le),r.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty(e.replace(Fe,"-$1").toLowerCase())):r.removeAttribute(e)}}function qd(t,e,r,i,n,a){var s=new ee(t._pt,e,r,0,1,a?Yc:Xc);return(t._pt=s).b=i,s.e=n,t._props.push(r),s}function sd(t,e,r,i){var n,a,s,o,u=parseFloat(r)||0,h=(r+"").trim().substr((u+"").length)||"px",l=ue.style,f=Re.test(e),d="svg"===t.tagName.toLowerCase(),c=(d?"client":"offset")+(f?"Width":"Height"),p="px"===i,_="%"===i;return i===h||!u||Ue[i]||Ue[h]?u:("px"===h||p||(u=sd(t,e,r,"px")),o=t.getCTM&&od(t),_&&(Ae[e]||~e.indexOf("adius"))?aa(u/(o?t.getBBox()[f?"width":"height"]:t[c])*100):(l[f?"width":"height"]=100+(p?h:i),a=~e.indexOf("adius")||"em"===i&&t.appendChild&&!d?t:t.parentNode,o&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==ae&&a.appendChild||(a=ae.body),(s=a._gsap)&&_&&s.width&&f&&s.time===Mt.time?aa(u/s.width*100):(!_&&"%"!==h||(l.position=hd(t,"position")),a===t&&(l.position="static"),a.appendChild(ue),n=ue[c],a.removeChild(ue),l.position="absolute",f&&_&&((s=Z(a)).time=Mt.time,s.width=a[c]),aa(p?n*u/100:n&&u?100/n*u:0))))}function td(t,e,r,i){var n;return oe||kd(),e in Ie&&"transform"!==e&&~(e=Ie[e]).indexOf(",")&&(e=e.split(",")[0]),Ae[e]&&"transform"!==e?(n=Ze(t,i),n="transformOrigin"!==e?n[e]:Ke(hd(t,qe))+" "+n.zOrigin+"px"):(n=t.style[e])&&"auto"!==n&&!i&&!~(n+"").indexOf("calc(")||(n=Xe[e]&&Xe[e](t,e,r)||hd(t,e)||$(t,e)||("opacity"===e?1:0)),r&&!~(n+"").indexOf(" ")?sd(t,e,n,r)+r:n}function ud(t,e,r,i){if(!r||"none"===r){var n=Ne(e,t,1),a=n&&hd(t,n,1);a&&a!==r&&(e=n,r=a)}var s,o,u,h,l,f,d,c,p,_,m,g,v=new ee(this._pt,t.style,e,0,1,Wt),y=0,T=0;if(v.b=r,v.e=i,r+="","auto"===(i+="")&&(t.style[e]=i,i=hd(t,e)||i,t.style[e]=r),pb(s=[r,i]),i=s[1],u=(r=s[0]).match(tt)||[],(i.match(tt)||[]).length){for(;o=tt.exec(i);)d=o[0],p=i.substring(y,o.index),l?l=(l+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(l=1),d!==(f=u[T++]||"")&&(h=parseFloat(f)||0,m=f.substr((h+"").length),(g="="===d.charAt(1)?+(d.charAt(0)+"1"):0)&&(d=d.substr(2)),c=parseFloat(d),_=d.substr((c+"").length),y=tt.lastIndex-_.length,_||(_=_||U.units[e]||m,y===i.length&&(i+=_,v.e+=_)),m!==_&&(h=sd(t,e,f,_)||0),v._pt={_next:v._pt,p:p||1===T?p:",",s:h,c:g?g*c:c-h,m:l&&l<4?Math.round:0});v.c=y<i.length?i.substring(y,i.length):""}else v.r="display"===e&&"none"===i?Yc:Xc;return it.test(i)&&(v.e=0),this._pt=v}function wd(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==i&&"right"!==i||(t=r,r=i,i=t),e[0]=He[r]||r,e[1]=He[i]||i,e.join(" ")}function xd(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,a=e.t,s=a.style,o=e.u,u=a._gsap;if("all"===o||!0===o)s.cssText="",i=1;else for(n=(o=o.split(",")).length;-1<--n;)r=o[n],Ae[r]&&(i=1,r="transformOrigin"===r?qe:Le),pd(a,r);i&&(pd(a,Le),u&&(u.svg&&a.removeAttribute("transform"),Ze(a,1),u.uncache=1))}}function Bd(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function Cd(t){var e=hd(t,Le);return Bd(e)?Ve:e.substr(7).match(J).map(aa)}function Dd(t,e){var r,i,n,a,s=t._gsap||Z(t),o=t.style,u=Cd(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?Ve:u:(u!==Ve||t.offsetParent||t===se||s.svg||(n=o.display,o.display="block",(r=t.parentNode)&&ae.body.contains(t)||(a=1,i=t.nextSibling,se.appendChild(t)),u=Cd(t),n?o.display=n:pd(t,"display"),a&&(i?r.insertBefore(t,i):r?r.appendChild(t):se.removeChild(t))),e&&6<u.length?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)}function Ed(t,e,r,i,n,a){var s,o,u,h=t._gsap,l=n||Dd(t,!0),f=h.xOrigin||0,d=h.yOrigin||0,c=h.xOffset||0,p=h.yOffset||0,_=l[0],m=l[1],g=l[2],v=l[3],y=l[4],T=l[5],b=e.split(" "),w=parseFloat(b[0])||0,x=parseFloat(b[1])||0;r?l!==Ve&&(o=_*v-m*g)&&(u=w*(-m/o)+x*(_/o)-(_*T-m*y)/o,w=w*(v/o)+x*(-g/o)+(g*T-v*y)/o,x=u):(w=(s=nd(t)).x+(~b[0].indexOf("%")?w/100*s.width:w),x=s.y+(~(b[1]||b[0]).indexOf("%")?x/100*s.height:x)),i||!1!==i&&h.smooth?(y=w-f,T=x-d,h.xOffset=c+(y*_+T*g)-y,h.yOffset=p+(y*m+T*v)-T):h.xOffset=h.yOffset=0,h.xOrigin=w,h.yOrigin=x,h.smooth=!!i,h.origin=e,h.originIsAbsolute=!!r,t.style[qe]="0px 0px",a&&(qd(a,h,"xOrigin",f,w),qd(a,h,"yOrigin",d,x),qd(a,h,"xOffset",c,h.xOffset),qd(a,h,"yOffset",p,h.yOffset)),t.setAttribute("data-svg-origin",w+" "+x)}function Hd(t,e,r){var i=Ka(e);return aa(parseFloat(e)+parseFloat(sd(t,"x",r+"px",i)))+i}function Od(t,e,r,i,a,s){var o,u,h=360,l=n(a),f=parseFloat(a)*(l&&~a.indexOf("rad")?De:1),d=s?f*s:f-i,c=i+d+"deg";return l&&("short"===(o=a.split("_")[1])&&(d%=h)!==d%180&&(d+=d<0?h:-h),"cw"===o&&d<0?d=(d+36e9)%h-~~(d/h)*h:"ccw"===o&&0<d&&(d=(d-36e9)%h-~~(d/h)*h)),t._pt=u=new ee(t._pt,e,r,i,d,Uc),u.e=c,u.u="deg",t._props.push(r),u}function Pd(t,e,r){var i,n,a,s,o,u,h,l=he.style,f=r._gsap;for(n in l.cssText=getComputedStyle(r).cssText+";position:absolute;display:block;",l[Le]=e,ae.body.appendChild(he),i=Ze(he,1),Ae)(a=f[n])!==(s=i[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=Ka(a)!==(h=Ka(s))?sd(r,n,a,h):parseFloat(a),u=parseFloat(s),t._pt=new ee(t._pt,f,n,o,u-o,Tc),t._pt.u=h||0,t._props.push(n));ae.body.removeChild(he)}var ne,ae,se,oe,ue,he,le,fe,de=Pt.Power0,ce=Pt.Power1,pe=Pt.Power2,_e=Pt.Power3,me=Pt.Power4,ge=Pt.Linear,ve=Pt.Quad,ye=Pt.Cubic,Te=Pt.Quart,be=Pt.Quint,we=Pt.Strong,xe=Pt.Elastic,ke=Pt.Back,Oe=Pt.SteppedEase,Me=Pt.Bounce,Ce=Pt.Sine,Pe=Pt.Expo,Se=Pt.Circ,Ae={},De=180/Math.PI,ze=Math.PI/180,Ee=Math.atan2,Fe=/([A-Z])/g,Re=/(?:left|right|width|margin|padding|x)/i,Be=/[\s,\(]\S/,Ie={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Le="transform",qe=Le+"Origin",Ye="O,Moz,ms,Ms,Webkit".split(","),Ne=function _checkPropPrefix(t,e,r){var i=(e||ue).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(Ye[n]+t in i););return n<0?null:(3===n?"ms":0<=n?Ye[n]:"")+t},Ue={deg:1,rad:1,turn:1},He={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Xe={clearProps:function clearProps(t,e,r,i,n){if("isFromStart"!==n.data){var a=t._pt=new ee(t._pt,e,r,0,0,xd);return a.u=i,a.pr=-10,a.tween=n,t._props.push(r),1}}},Ve=[1,0,0,1,0,0],je={},Ze=function _parseTransform(t,e){var r=t._gsap||new Ft(t);if("x"in r&&!e&&!r.uncache)return r;var i,n,a,s,o,u,h,l,f,d,c,p,_,m,g,v,y,T,b,w,x,k,O,M,C,P,S,A,D,z,E,F,R=t.style,B=r.scaleX<0,I="deg",L=hd(t,qe)||"0";return i=n=a=u=h=l=f=d=c=0,s=o=1,r.svg=!(!t.getCTM||!od(t)),m=Dd(t,r.svg),r.svg&&(M=!r.uncache&&t.getAttribute("data-svg-origin"),Ed(t,M||L,!!M||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,_=r.yOrigin||0,m!==Ve&&(T=m[0],b=m[1],w=m[2],x=m[3],i=k=m[4],n=O=m[5],6===m.length?(s=Math.sqrt(T*T+b*b),o=Math.sqrt(x*x+w*w),u=T||b?Ee(b,T)*De:0,(f=w||x?Ee(w,x)*De+u:0)&&(o*=Math.cos(f*ze)),r.svg&&(i-=p-(p*T+_*w),n-=_-(p*b+_*x))):(F=m[6],z=m[7],S=m[8],A=m[9],D=m[10],E=m[11],i=m[12],n=m[13],a=m[14],h=(g=Ee(F,D))*De,g&&(M=k*(v=Math.cos(-g))+S*(y=Math.sin(-g)),C=O*v+A*y,P=F*v+D*y,S=k*-y+S*v,A=O*-y+A*v,D=F*-y+D*v,E=z*-y+E*v,k=M,O=C,F=P),l=(g=Ee(-w,D))*De,g&&(v=Math.cos(-g),E=x*(y=Math.sin(-g))+E*v,T=M=T*v-S*y,b=C=b*v-A*y,w=P=w*v-D*y),u=(g=Ee(b,T))*De,g&&(M=T*(v=Math.cos(g))+b*(y=Math.sin(g)),C=k*v+O*y,b=b*v-T*y,O=O*v-k*y,T=M,k=C),h&&359.9<Math.abs(h)+Math.abs(u)&&(h=u=0,l=180-l),s=aa(Math.sqrt(T*T+b*b+w*w)),o=aa(Math.sqrt(O*O+F*F)),g=Ee(k,O),f=2e-4<Math.abs(g)?g*De:0,c=E?1/(E<0?-E:E):0),r.svg&&(M=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Bd(hd(t,Le)),M&&t.setAttribute("transform",M))),90<Math.abs(f)&&Math.abs(f)<270&&(B?(s*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),r.x=((r.xPercent=i&&Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)?0:i)+"px",r.y=((r.yPercent=n&&Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)?0:n)+"px",r.z=a+"px",r.scaleX=aa(s),r.scaleY=aa(o),r.rotation=aa(u)+I,r.rotationX=aa(h)+I,r.rotationY=aa(l)+I,r.skewX=f+I,r.skewY=d+I,r.transformPerspective=c+"px",(r.zOrigin=parseFloat(L.split(" ")[2])||0)&&(R[qe]=Ke(L)),r.xOffset=r.yOffset=0,r.force3D=U.force3D,r.renderTransform=r.svg?tr:fe?Je:Qe,r.uncache=0,r},Ke=function _firstTwoOnly(t){return(t=t.split(" "))[0]+" "+t[1]},Qe=function _renderNon3DTransforms(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Je(t,e)},We="0deg",Ge="0px",$e=") ",Je=function _renderCSSTransforms(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,a=r.x,s=r.y,o=r.z,u=r.rotation,h=r.rotationY,l=r.rotationX,f=r.skewX,d=r.skewY,c=r.scaleX,p=r.scaleY,_=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",T="auto"===m&&t&&1!==t||!0===m;if(v&&(l!==We||h!==We)){var b,w=parseFloat(h)*ze,x=Math.sin(w),k=Math.cos(w);w=parseFloat(l)*ze,b=Math.cos(w),a=Hd(g,a,x*b*-v),s=Hd(g,s,-Math.sin(w)*-v),o=Hd(g,o,k*b*-v+v)}_!==Ge&&(y+="perspective("+_+$e),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),!T&&a===Ge&&s===Ge&&o===Ge||(y+=o!==Ge||T?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+$e),u!==We&&(y+="rotate("+u+$e),h!==We&&(y+="rotateY("+h+$e),l!==We&&(y+="rotateX("+l+$e),f===We&&d===We||(y+="skew("+f+", "+d+$e),1===c&&1===p||(y+="scale("+c+", "+p+$e),g.style[Le]=y||"translate(0, 0)"},tr=function _renderSVGTransforms(t,e){var r,i,n,a,s,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,f=o.y,d=o.rotation,c=o.skewX,p=o.skewY,_=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,T=o.xOffset,b=o.yOffset,w=o.forceCSS,x=parseFloat(l),k=parseFloat(f);d=parseFloat(d),c=parseFloat(c),(p=parseFloat(p))&&(c+=p=parseFloat(p),d+=p),d||c?(d*=ze,c*=ze,r=Math.cos(d)*_,i=Math.sin(d)*_,n=Math.sin(d-c)*-m,a=Math.cos(d-c)*m,c&&(p*=ze,s=Math.tan(c-p),n*=s=Math.sqrt(1+s*s),a*=s,p&&(s=Math.tan(p),r*=s=Math.sqrt(1+s*s),i*=s)),r=aa(r),i=aa(i),n=aa(n),a=aa(a)):(r=_,a=m,i=n=0),(x&&!~(l+"").indexOf("px")||k&&!~(f+"").indexOf("px"))&&(x=sd(g,"x",l,"px"),k=sd(g,"y",f,"px")),(v||y||T||b)&&(x=aa(x+v-(v*r+y*n)+T),k=aa(k+y-(v*i+y*a)+b)),(u||h)&&(s=g.getBBox(),x=aa(x+u/100*s.width),k=aa(k+h/100*s.height)),s="matrix("+r+","+i+","+n+","+a+","+x+","+k+")",g.setAttribute("transform",s),w&&(g.style[Le]=s)};_("padding,margin,Width,Radius",function(e,r){var t="Right",i="Bottom",n="Left",o=(r<3?["Top",t,i,n]:["Top"+n,"Top"+t,i+t,i+n]).map(function(t){return r<2?e+t:"border"+t+e});Xe[1<r?"border"+e:e]=function(e,t,r,i,n){var a,s;if(arguments.length<4)return a=o.map(function(t){return td(e,t,r)}),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(i+"").split(" "),s={},o.forEach(function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]}),e.init(t,s,n)}});var er,rr,ir,nr={name:"css",register:kd,targetTest:function targetTest(t){return t.style&&t.nodeType},init:function init(t,e,r,i,n){var a,s,o,u,h,l,f,d,c,p,_,m,g,v,y,T=this._props,b=t.style;for(f in oe||kd(),e)if("autoRound"!==f&&(s=e[f],!ht[f]||!Lb(f,e,r,i,t,n)))if(h=typeof s,l=Xe[f],"function"===h&&(h=typeof(s=s.call(r,i,t,n))),"string"===h&&~s.indexOf("random(")&&(s=_a(s)),l)l(this,t,f,s,r)&&(y=1);else if("--"===f.substr(0,2))this.add(b,"setProperty",getComputedStyle(t).getPropertyValue(f)+"",s+"",i,n,0,0,f);else{if(a=td(t,f),u=parseFloat(a),(p="string"===h&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),o=parseFloat(s),f in Ie&&("autoAlpha"===f&&(1===u&&"hidden"===td(t,"visibility")&&o&&(u=0),qd(this,b,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==f&&"transform"!==f&&~(f=Ie[f]).indexOf(",")&&(f=f.split(",")[0])),_=f in Ae)if(m||((g=t._gsap).renderTransform||Ze(t),v=!1!==e.smoothOrigin&&g.smooth,(m=this._pt=new ee(this._pt,b,Le,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===f)this._pt=new ee(this._pt,g,"scaleY",g.scaleY,p?p*o:o-g.scaleY),T.push("scaleY",f),f+="X";else{if("transformOrigin"===f){s=wd(s),g.svg?Ed(t,s,0,v,0,this):((c=parseFloat(s.split(" ")[2])||0)!==g.zOrigin&&qd(this,g,"zOrigin",g.zOrigin,c),qd(this,b,f,Ke(a),Ke(s)));continue}if("svgOrigin"===f){Ed(t,s,1,v,0,this);continue}if(f in je){Od(this,g,f,u,s,p);continue}if("smoothOrigin"===f){qd(this,g,"smooth",g.smooth,s);continue}if("force3D"===f){g[f]=s;continue}if("transform"===f){Pd(this,s,t);continue}}else f in b||(f=Ne(f)||f);if(_||(o||0===o)&&(u||0===u)&&!Be.test(s)&&f in b)(d=(a+"").substr((u+"").length))!==(c=(s+"").substr(((o=o||0)+"").length)||(f in U.units?U.units[f]:d))&&(u=sd(t,f,a,c)),this._pt=new ee(this._pt,_?g:b,f,u,p?p*o:o-u,"px"!==c||!1===e.autoRound||_?Tc:Wc),this._pt.u=c||0,d!==c&&(this._pt.b=a,this._pt.r=Vc);else if(f in b)ud.call(this,t,f,a,s);else{if(!(f in t)){L(f,s);continue}this.add(t,f,t[f],s,i,n)}T.push(f)}y&&te(this)},get:td,aliases:Ie,getSetter:function getSetter(t,e,r){var i=Ie[e];return i&&i.indexOf(",")<0&&(e=i),e in Ae&&e!==qe&&(t._gsap.x||td(t,"x"))?r&&le===r?"scale"===e?ad:_c:(le=r||{})&&("scale"===e?bd:cd):t.style&&!q(t.style[e])?Zc:~e.indexOf("-")?$c:Zt(t,e)},core:{_removeProperty:pd,_getMatrix:Dd}};ie.utils.checkPrefix=Ne,ir=_((er="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(rr="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Ae[t]=1}),_(rr,function(t){U.units[t]="deg",je[t]=1}),Ie[ir[13]]=er+","+rr,_("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Ie[e[1]]=ir[e[0]]}),_("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){U.units[t]="px"}),ie.registerPlugin(nr);var ar=ie.registerPlugin(nr)||ie,sr=ar.core.Tween;e.Back=ke,e.Bounce=Me,e.CSSPlugin=nr,e.Circ=Se,e.Cubic=ye,e.Elastic=xe,e.Expo=Pe,e.Linear=ge,e.Power0=de,e.Power1=ce,e.Power2=pe,e.Power3=_e,e.Power4=me,e.Quad=ve,e.Quart=Te,e.Quint=be,e.Sine=Ce,e.SteppedEase=Oe,e.Strong=we,e.TimelineLite=Bt,e.TimelineMax=Bt,e.TweenLite=Ht,e.TweenMax=sr,e.default=ar,e.gsap=ar;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 _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function p(t){return"number"==typeof t}function q(t){return void 0===t}function r(t){return"object"==typeof t}function s(t){return!1!==t}function t(){return"undefined"!=typeof window}function u(t){return o(t)||n(t)}function K(t){return(l=pt(t,at))&&ie}function L(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function M(t,e){return!e&&console.warn(t)}function N(t,e){return t&&(at[t]=e)&&l&&(l[t]=e)||at}function O(){return 0}function Y(t){var e,i,n=t[0];if(r(n)||o(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=dt.length;i--&&!dt[i].targetTest(n););e=dt[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ft(t[i],e)))||t.splice(i,1);return t}function Z(t){return t._gsap||Y(yt(t))[0]._gsap}function $(t,e){var r=t[e];return o(r)?t[e]():q(r)&&t.getAttribute(e)||r}function _(t,e){return(t=t.split(",")).forEach(e)||t}function aa(t){return Math.round(1e5*t)/1e5||0}function ba(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r}function ca(t,e,r){var i,n=p(t[1]),a=(n?2:1)+(e<2?0:1),o=t[a];if(n&&(o.duration=t[1]),o.parent=r,e){for(i=o;r&&!("immediateRender"in i);)i=r.vars.defaults||{},r=s(r.vars.inherit)&&r.parent;o.immediateRender=s(i.immediateRender),e<2?o.runBackwards=1:o.startAt=t[a-1]}return o}function da(){var t,e,r=ot.length,i=ot.slice(0);for(ut={},t=ot.length=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function ea(t,e,r,i){ot.length&&da(),t.render(e,r,i),ot.length&&da()}function fa(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(nt).length<2?e:t}function ga(t){return t}function ha(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function ia(t,e){for(var r in e)r in t||"duration"===r||"ease"===r||(t[r]=e[r])}function ka(t,e){for(var i in e)t[i]=r(e[i])?ka(t[i]||(t[i]={}),e[i]):e[i];return t}function la(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i}function ma(t){var e=t.parent||F,r=t.keyframes?ia:ha;if(s(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t}function pa(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,a=e._next;n?n._next=a:t[r]===e&&(t[r]=a),a?a._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function qa(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function ra(t){for(var e=t;e;)e._dirty=1,e=e.parent;return t}function ua(t){return t._repeat?_t(t._tTime,t=t.duration()+t._rDelay)*t:0}function wa(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function xa(t){return t._end=aa(t._start+(t._tDur/Math.abs(t._ts||t._rts||B)||0))}function ya(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=wa(t.rawTime(),e),(!e._dur||gt(0,e.totalDuration(),r)-e._tTime>B)&&e.render(r,!0)),ra(t)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)0<=r.rawTime()&&r.totalTime(r._tTime),r=r._dp;t._zTime=-B}}function za(t,e,r,i){return e.parent&&qa(e),e._start=aa(r+e._delay),e._end=aa(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function _addLinkedListItem(t,e,r,i,n){void 0===r&&(r="_first"),void 0===i&&(i="_last");var a,s=t[i];if(n)for(a=e[n];s&&s[n]>a;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),t._recent=e,i||ya(t,e),t}function Aa(t,e){return(at.ScrollTrigger||L("scrollTrigger",e))&&at.ScrollTrigger.create(e,t)}function Ba(t,e,r,i){return qt(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&d!==Mt.frame?(ot.push(t),t._lazy=[e,i],1):void 0:1}function Ea(t,e,r){var i=t._repeat,n=aa(e)||0;return t._dur=n,t._tDur=i?i<0?1e10:aa(n*(i+1)+t._rDelay*i):n,t._time>n&&(t._time=n,t._tTime=Math.min(t._tTime,t._tDur)),r||ra(t.parent),t.parent&&xa(t),t}function Fa(t){return t instanceof Bt?ra(t):Ea(t,t._dur)}function Ha(t,e){var r,i,a=t.labels,s=t._recent||mt,o=t.duration()>=E?s.endTime(!1):t._dur;return n(e)&&(isNaN(e)||e in a)?"<"===(r=e.charAt(0))||">"===r?("<"===r?s._start:s.endTime(0<=s._repeat))+(parseFloat(e.substr(1))||0):(r=e.indexOf("="))<0?(e in a||(a[e]=o),a[e]):(i=+(e.charAt(r-1)+e.substr(r+1)),1<r?Ha(t,e.substr(0,r-1))+i:o+i):null==e?o:+e}function Ia(t,e){return t||0===t?e(t):e}function Ka(t){return(t+"").substr((parseFloat(t)+"").length)}function Na(t,e){return t&&r(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&r(t[0]))&&!t.nodeType&&t!==i}function Qa(t){return t.sort(function(){return.5-Math.random()})}function Ra(t){if(o(t))return t;var p=r(t)?t:{each:t},_=zt(p.ease),m=p.from||0,g=parseFloat(p.base)||0,v={},e=0<m&&m<1,y=isNaN(m)||e,T=p.axis,b=m,w=m;return n(m)?b=w={center:.5,edges:.5,end:1}[m]||0:!e&&y&&(b=m[0],w=m[1]),function(t,e,r){var i,n,a,s,o,u,h,l,f,d=(r||p).length,c=v[d];if(!c){if(!(f="auto"===p.grid?0:(p.grid||[1,E])[1])){for(h=-E;h<(h=r[f++].getBoundingClientRect().left)&&f<d;);f--}for(c=v[d]=[],i=y?Math.min(f,d)*b-.5:m%f,n=y?d*w/f-.5:m/f|0,l=E,u=h=0;u<d;u++)a=u%f-i,s=n-(u/f|0),c[u]=o=T?Math.abs("y"===T?s:a):V(a*a+s*s),h<o&&(h=o),o<l&&(l=o);"random"===m&&Qa(c),c.max=h-l,c.min=l,c.v=d=(parseFloat(p.amount)||parseFloat(p.each)*(d<f?d-1:T?"y"===T?d/f:f:Math.max(f,d/f))||0)*("edges"===m?-1:1),c.b=d<0?g-d:g,c.u=Ka(p.amount||p.each)||0,_=_&&d<0?Dt(_):_}return d=(c[t]-c.min)/c.max||0,aa(c.b+(_?_(d):d)*c.v)+c.u}}function Sa(e){var r=e<1?Math.pow(10,(e+"").length-2):1;return function(t){return Math.floor(Math.round(parseFloat(t)/e)*e*r)/r+(p(t)?0:Ka(t))}}function Ta(u,t){var h,l,e=W(u);return!e&&r(u)&&(h=e=u.radius||E,u.values?(u=yt(u.values),(l=!p(u[0]))&&(h*=h)):u=Sa(u.increment)),Ia(t,e?o(u)?function(t){return l=u(t),Math.abs(l-t)<=h?l:t}:function(t){for(var e,r,i=parseFloat(l?t.x:t),n=parseFloat(l?t.y:0),a=E,s=0,o=u.length;o--;)(e=l?(e=u[o].x-i)*e+(r=u[o].y-n)*r:Math.abs(u[o]-i))<a&&(a=e,s=o);return s=!h||a<=h?u[s]:t,l||s===t||p(t)?s:s+Ka(t)}:Sa(u))}function Ua(t,e,r,i){return Ia(W(t)?!e:!0===r?!!(r=0):!i,function(){return W(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t+Math.random()*(e-t))/r)*r*i)/i})}function Ya(e,r,t){return Ia(t,function(t){return e[~~r(t)]})}function _a(t){for(var e,r,i,n,a=0,s="";~(e=t.indexOf("random(",a));)i=t.indexOf(")",e),n="["===t.charAt(e+7),r=t.substr(e+7,i-e-7).match(n?nt:G),s+=t.substr(a,e-a)+Ua(n?r:+r[0],+r[1],+r[2]||1e-5),a=i+1;return s+t.substr(a,t.length-a)}function cb(t,e,r){var i,n,a,s=t.labels,o=E;for(i in s)(n=s[i]-e)<0==!!r&&n&&o>(n=Math.abs(n))&&(a=i,o=n);return a}function eb(t){return qa(t),t.progress()<1&&bt(t,"onInterrupt"),t}function jb(t,e,r){return(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*wt+.5|0}function kb(t,e,r){var i,n,a,s,o,u,h,l,f,d,c=t?p(t)?[t>>16,t>>8&wt,t&wt]:0:xt.black;if(!c){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),xt[t])c=xt[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(a=t.charAt(3))+a),c=[(t=parseInt(t.substr(1),16))>>16,t>>8&wt,t&wt];else if("hsl"===t.substr(0,3))if(c=d=t.match(G),e){if(~t.indexOf("="))return c=t.match(J),r&&c.length<4&&(c[3]=1),c}else s=+c[0]%360/360,o=c[1]/100,i=2*(u=c[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3<c.length&&(c[3]*=1),c[0]=jb(s+1/3,i,n),c[1]=jb(s,i,n),c[2]=jb(s-1/3,i,n);else c=t.match(G)||xt.transparent;c=c.map(Number)}return e&&!d&&(i=c[0]/wt,n=c[1]/wt,a=c[2]/wt,u=((h=Math.max(i,n,a))+(l=Math.min(i,n,a)))/2,h===l?s=o=0:(f=h-l,o=.5<u?f/(2-h-l):f/(h+l),s=h===i?(n-a)/f+(n<a?6:0):h===n?(a-i)/f+2:(i-n)/f+4,s*=60),c[0]=~~(s+.5),c[1]=~~(100*o+.5),c[2]=~~(100*u+.5)),r&&c.length<4&&(c[3]=1),c}function lb(t){var r=[],i=[],n=-1;return t.split(kt).forEach(function(t){var e=t.match(tt)||[];r.push.apply(r,e),i.push(n+=e.length+1)}),r.c=i,r}function mb(t,e,r){var i,n,a,s,o="",u=(t+o).match(kt),h=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map(function(t){return(t=kb(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(a=lb(t),(i=r.c).join(o)!==a.c.join(o)))for(s=(n=t.replace(kt,"1").split(tt)).length-1;l<s;l++)o+=n[l]+(~i.indexOf(l)?u.shift()||h+"0,0,0,0)":(a.length?a:u.length?u:r).shift());if(!n)for(s=(n=t.split(kt)).length-1;l<s;l++)o+=n[l]+u[l];return o+n[s]}function pb(t){var e,r=t.join(" ");if(kt.lastIndex=0,kt.test(r))return e=Ot.test(r),t[1]=mb(t[1],e),t[0]=mb(t[0],e,lb(t[1])),!0}function xb(t){var e=(t+"").split("("),r=Pt[e[0]];return r&&1<e.length&&r.config?r.config.apply(null,~t.indexOf("{")?[function _parseObjectInString(t){for(var e,r,i,n={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)r=a[o],e=o!==u-1?r.lastIndexOf(","):r.length,i=r.substr(0,e),n[s]=isNaN(i)?i.replace(At,"").trim():+i,s=r.substr(e+1).trim();return n}(e[1])]:rt.exec(t)[1].split(",").map(fa)):Pt._CE&&St.test(t)?Pt._CE("",t):r}function zb(t,e){for(var r,i=t._first;i;)i instanceof Bt?zb(i,e):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===e||(i.timeline?zb(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next}function Bb(t,e,r,i){void 0===r&&(r=function easeOut(t){return 1-e(1-t)}),void 0===i&&(i=function easeInOut(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var n,a={easeIn:e,easeOut:r,easeInOut:i};return _(t,function(t){for(var e in Pt[t]=at[t]=a,Pt[n=t.toLowerCase()]=r,a)Pt[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Pt[t+"."+e]=a[e]}),a}function Cb(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function Db(r,t,e){function el(t){return 1===t?1:i*Math.pow(2,-10*t)*Q((t-a)*n)+1}var i=1<=t?t:1,n=(e||(r?.3:.45))/(t<1?t:1),a=n/I*(Math.asin(1/i)||0),s="out"===r?el:"in"===r?function(t){return 1-el(1-t)}:Cb(el);return n=I/n,s.config=function(t,e){return Db(r,t,e)},s}function Eb(e,r){function ml(t){return t?--t*t*((r+1)*t+r)+1:0}void 0===r&&(r=1.70158);var t="out"===e?ml:"in"===e?function(t){return 1-ml(1-t)}:Cb(ml);return t.config=function(t){return Eb(e,t)},t}var F,i,a,h,l,f,d,c,m,g,v,y,T,b,w,x,k,C,P,S,A,D,z,U={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},R={duration:.5,overwrite:!1,delay:0},E=1e8,B=1/E,I=2*Math.PI,H=I/4,X=0,V=Math.sqrt,j=Math.cos,Q=Math.sin,W=Array.isArray,G=/(?:-?\.?\d|\.)+/gi,J=/[-+=.]*\d+[.e\-+]*\d*[e\-\+]*\d*/g,tt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,et=/[-+=.]*\d+(?:\.|e-|e)*\d*/gi,rt=/\(([^()]+)\)/i,it=/[+-]=-?[\.\d]+/,nt=/[#\-+.]*\b[a-z\d-=+%.]+/gi,at={},st={},ot=[],ut={},ht={},lt={},ft=30,dt=[],ct="",pt=function _merge(t,e){for(var r in e)t[r]=e[r];return t},_t=function _animationCycle(t,e){return(t/=e)&&~~t===t?~~t-1:~~t},mt={_start:0,endTime:O},gt=function _clamp(t,e,r){return r<t?t:e<r?e:r},vt=[].slice,yt=function toArray(t,e){return!n(t)||e||!a&&Ct()?W(t)?function _flatten(t,e,r){return void 0===r&&(r=[]),t.forEach(function(t){return n(t)&&!e||Na(t,1)?r.push.apply(r,yt(t)):r.push(t)})||r}(t,e):Na(t)?vt.call(t,0):t?[t]:[]:vt.call(h.querySelectorAll(t),0)},Tt=function mapRange(e,t,r,i,n){var a=t-e,s=i-r;return Ia(n,function(t){return r+((t-e)/a*s||0)})},bt=function _callback(t,e,r){var i,n,a=t.vars,s=a[e];if(s)return i=a[e+"Params"],n=a.callbackScope||t,r&&ot.length&&da(),i?s.apply(n,i):s.call(n)},wt=255,xt={aqua:[0,wt,wt],lime:[0,wt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,wt],navy:[0,0,128],white:[wt,wt,wt],olive:[128,128,0],yellow:[wt,wt,0],orange:[wt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[wt,0,0],pink:[wt,192,203],cyan:[0,wt,wt],transparent:[wt,wt,wt,0]},kt=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in xt)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ot=/hsl[a]?\(/,Mt=(b=Date.now,w=500,x=33,k=b(),C=k,S=P=1/240,T={time:0,frame:0,tick:function tick(){gk(!0)},wake:function wake(){f&&(!a&&t()&&(i=a=window,h=i.document||{},at.gsap=ie,(i.gsapVersions||(i.gsapVersions=[])).push(ie.version),K(l||i.GreenSockGlobals||!i.gsap&&i||{}),y=i.requestAnimationFrame),g&&T.sleep(),v=y||function(t){return setTimeout(t,1e3*(S-T.time)+1|0)},m=1,gk(2))},sleep:function sleep(){(y?i.cancelAnimationFrame:clearTimeout)(g),m=0,v=O},lagSmoothing:function lagSmoothing(t,e){w=t||1e8,x=Math.min(e,w,0)},fps:function fps(t){P=1/(t||240),S=T.time+P},add:function add(t){A.indexOf(t)<0&&A.push(t),Ct()},remove:function remove(t){var e;~(e=A.indexOf(t))&&A.splice(e,1)},_listeners:A=[]}),Ct=function _wake(){return!m&&Mt.wake()},Pt={},St=/^[\d.\-M][\d.\-,\s]/,At=/["']/g,Dt=function _invertEase(e){return function(t){return 1-e(1-t)}},zt=function _parseEase(t,e){return t&&(o(t)?t:Pt[t]||xb(t))||e};function gk(e){var t,r,i=b()-C,n=!0===e;w<i&&(k+=i-x),C+=i,T.time=(C-k)/1e3,(0<(t=T.time-S)||n)&&(T.frame++,S+=t+(P<=t?.004:P-t),r=1),n||(g=v(gk)),r&&A.forEach(function(t){return t(T.time,i,T.frame,e)})}function Dl(t){return t<z?D*t*t:t<.7272727272727273?D*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?D*(t-=2.25/2.75)*t+.9375:D*Math.pow(t-2.625/2.75,2)+.984375}_("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Bb(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),Pt.Linear.easeNone=Pt.none=Pt.Linear.easeIn,Bb("Elastic",Db("in"),Db("out"),Db()),D=7.5625,z=1/2.75,Bb("Bounce",function(t){return 1-Dl(1-t)},Dl),Bb("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),Bb("Circ",function(t){return-(V(1-t*t)-1)}),Bb("Sine",function(t){return 1===t?1:1-j(t*H)}),Bb("Back",Eb("in"),Eb("out"),Eb()),Pt.SteppedEase=Pt.steps=at.SteppedEase={config:function config(t,e){void 0===t&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0;return function(t){return((i*gt(0,.99999999,t)|0)+n)*r}}},R.ease=Pt["quad.out"],_("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return ct+=t+","+t+"Params,"});var Et,Ft=function GSCache(t,e){this.id=X++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:$,this.set=e?e.getSetter:Zt},Rt=((Et=Animation.prototype).delay=function delay(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},Et.duration=function duration(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},Et.totalDuration=function totalDuration(t){return arguments.length?(this._dirty=0,Ea(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},Et.totalTime=function totalTime(t,e){if(Ct(),!arguments.length)return this._tTime;var r=this.parent||this._dp;if(r&&r.smoothChildTiming&&this._ts){for(this._start=aa(r._time-(0<this._ts?t/this._ts:((this._dirty?this.totalDuration():this._tDur)-t)/-this._ts)),xa(this),r._dirty||ra(r);r.parent;)r.parent._time!==r._start+(0<=r._ts?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&za(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===B||!t&&!this._initted)&&(this._ts||(this._pTime=t),ea(this,t,e)),this},Et.time=function time(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+ua(this))%this._dur||(t?this._dur:0),e):this._time},Et.totalProgress=function totalProgress(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},Et.progress=function progress(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+ua(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},Et.iteration=function iteration(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?_t(this._tTime,r)+1:1},Et.timeScale=function timeScale(t){if(!arguments.length)return this._rts===-B?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?wa(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-B?0:this._rts,function _recacheAncestors(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this.totalTime(gt(0,this._tDur,e),!0))},Et.paused=function paused(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ct(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=B)&&Math.abs(this._zTime)!==B))),this):this._ps},Et.startTime=function startTime(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return!e||!e._sort&&this.parent||za(e,this,t-this._delay),this}return this._start},Et.endTime=function endTime(t){return this._start+(s(t)?this.totalDuration():this.duration())/Math.abs(this._ts)},Et.rawTime=function rawTime(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?wa(e.rawTime(t),this):this._tTime:this._tTime},Et.repeat=function repeat(t){return arguments.length?(this._repeat=t,Fa(this)):this._repeat},Et.repeatDelay=function repeatDelay(t){return arguments.length?(this._rDelay=t,Fa(this)):this._rDelay},Et.yoyo=function yoyo(t){return arguments.length?(this._yoyo=t,this):this._yoyo},Et.seek=function seek(t,e){return this.totalTime(Ha(this,t),s(e))},Et.restart=function restart(t,e){return this.play().totalTime(t?-this._delay:0,s(e))},Et.play=function play(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},Et.reverse=function reverse(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},Et.pause=function pause(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},Et.resume=function resume(){return this.paused(!1)},Et.reversed=function reversed(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-B:0)),this):this._rts<0},Et.invalidate=function invalidate(){return this._initted=0,this._zTime=-B,this},Et.isActive=function isActive(t){var e,r=this.parent||this._dp,i=this._start;return!(r&&!(this._ts&&(this._initted||!t)&&r.isActive(t)&&(e=r.rawTime(!0))>=i&&e<this.endTime(!0)-B))},Et.eventCallback=function eventCallback(t,e,r){var i=this.vars;return 1<arguments.length?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},Et.then=function then(t){var i=this;return new Promise(function(e){function Sm(){var t=i.then;i.then=null,o(r)&&(r=r(i))&&(r.then||r===i)&&(i.then=t),e(r),i.then=t}var r=o(t)?t:ga;i._initted&&1===i.totalProgress()&&0<=i._ts||!i._tTime&&i._ts<0?Sm():i._prom=Sm})},Et.kill=function kill(){eb(this)},Animation);function Animation(t,e){var r=t.parent||F;this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Ea(this,+t.duration,1),this.data=t.data,m||Mt.wake(),r&&za(r,this,e||0===e?e:r._time,1),t.reversed&&this.reverse(),t.paused&&this.paused(!0)}ha(Rt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-B,_prom:0,_ps:!1,_rts:1});var Bt=function(i){function Timeline(t,e){var r;return void 0===t&&(t={}),(r=i.call(this,t,e)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=s(t.sortChildren),r.parent&&ya(r.parent,_assertThisInitialized(r)),t.scrollTrigger&&Aa(_assertThisInitialized(r),t.scrollTrigger),r}_inheritsLoose(Timeline,i);var t=Timeline.prototype;return t.to=function to(t,e,r,i){return new Ht(t,ca(arguments,0,this),Ha(this,p(e)?i:r)),this},t.from=function from(t,e,r,i){return new Ht(t,ca(arguments,1,this),Ha(this,p(e)?i:r)),this},t.fromTo=function fromTo(t,e,r,i,n){return new Ht(t,ca(arguments,2,this),Ha(this,p(e)?n:i)),this},t.set=function set(t,e,r){return e.duration=0,e.parent=this,ma(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Ht(t,e,Ha(this,r),1),this},t.call=function call(t,e,r){return za(this,Ht.delayedCall(0,t,e),Ha(this,r))},t.staggerTo=function staggerTo(t,e,r,i,n,a,s){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=a,r.onCompleteParams=s,r.parent=this,new Ht(t,r,Ha(this,n)),this},t.staggerFrom=function staggerFrom(t,e,r,i,n,a,o){return r.runBackwards=1,ma(r).immediateRender=s(r.immediateRender),this.staggerTo(t,e,r,i,n,a,o)},t.staggerFromTo=function staggerFromTo(t,e,r,i,n,a,o,u){return i.startAt=r,ma(i).immediateRender=s(i.immediateRender),this.staggerTo(t,e,i,n,a,o,u)},t.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,d,c,p,_=this._time,m=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=this!==F&&m-B<t&&0<=t?m:t<B?0:t,y=this._zTime<0!=t<0&&(this._initted||!g);if(v!==this._tTime||r||y){if(_!==this._time&&g&&(v+=this._time-_,t+=this._time-_),i=v,f=this._start,u=!(l=this._ts),y&&(g||(_=this._zTime),!t&&e||(this._zTime=t)),this._repeat&&(c=this._yoyo,o=g+this._rDelay,(g<(i=aa(v%o))||m===v)&&(i=g),(s=~~(v/o))&&s===v/o&&(i=g,s--),d=_t(this._tTime,o),!_&&this._tTime&&d!==s&&(d=s),c&&1&s&&(i=g-i,p=1),s!==d&&!this._lock)){var T=c&&1&d,b=T===(c&&1&s);if(s<d&&(T=!T),_=T?0:g,this._lock=1,this.render(_||(p?0:aa(s*o)),e,!g)._lock=0,!e&&this.parent&&bt(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),_!==this._time||u!=!this._ts)return this;if(b&&(this._lock=2,_=T?g+1e-4:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;zb(this,p)}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function _findNextPauseTween(t,e,r){var i;if(e<r)for(i=t._first;i&&i._start<=r;){if(!i._dur&&"isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if(!i._dur&&"isPause"===i.data&&i._start<e)return i;i=i._prev}}(this,aa(_),aa(i)))&&(v-=i-(i=h._start)),this._tTime=v,this._time=i,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t),_||!i||e||bt(this,"onStart"),_<=i&&0<=t)for(n=this._first;n;){if(a=n._next,(n._act||i>=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(i-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(i-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=-B);break}}n=a}else{n=this._last;for(var w=t<0?t:i;n;){if(a=n._prev,(n._act||w<=n._end)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(w-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(w-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=w?-B:B);break}}n=a}}if(h&&!e&&(this.pause(),h.render(_<=i?0:-B)._zTime=_<=i?1:-1,this._ts))return this._start=f,xa(this),this.render(t,e,r);this._onUpdate&&!e&&bt(this,"onUpdate",!0),(v===m&&m>=this.totalDuration()||!v&&_)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0<this._ts||!v&&this._ts<0)||qa(this,1),e||t<0&&!_||!v&&!_||(bt(this,v===m?"onComplete":"onReverseComplete",!0),!this._prom||v<m&&0<this.timeScale()||this._prom())))}return this},t.add=function add(t,e){var r=this;if(p(e)||(e=Ha(this,e)),!(t instanceof Rt)){if(W(t))return t.forEach(function(t){return r.add(t,e)}),ra(this);if(n(t))return this.addLabel(t,e);if(!o(t))return this;t=Ht.delayedCall(0,t)}return this!==t?za(this,t,e):this},t.getChildren=function getChildren(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-E);for(var n=[],a=this._first;a;)a._start>=i&&(a instanceof Ht?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getChildren(!0,e,r)))),a=a._next;return n},t.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},t.remove=function remove(t){return n(t)?this.removeLabel(t):o(t)?this.killTweensOf(t):(pa(this,t),t===this._recent&&(this._recent=this._last),ra(this))},t.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,this.parent||this._dp||!this._ts||(this._start=aa(Mt.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),i.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},t.addLabel=function addLabel(t,e){return this.labels[t]=Ha(this,e),this},t.removeLabel=function removeLabel(t){return delete this.labels[t],this},t.addPause=function addPause(t,e,r){var i=Ht.delayedCall(0,e||O,r);return i.data="isPause",this._hasPause=1,za(this,i,Ha(this,t))},t.removePause=function removePause(t){var e=this._first;for(t=Ha(this,t);e;)e._start===t&&"isPause"===e.data&&qa(e),e=e._next},t.killTweensOf=function killTweensOf(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)It!==i[n]&&i[n].kill(t,e);return this},t.getTweensOf=function getTweensOf(t,e){for(var r,i=[],n=yt(t),a=this._first;a;)a instanceof Ht?!ba(a._targets,n)||e&&!a.isActive("started"===e)||i.push(a):(r=a.getTweensOf(n,e)).length&&i.push.apply(i,r),a=a._next;return i},t.tweenTo=function tweenTo(t,e){e=e||{};var r=this,i=Ha(r,t),n=e.startAt,a=e.onStart,s=e.onStartParams,o=Ht.to(r,ha(e,{ease:"none",lazy:!1,time:i,duration:e.duration||Math.abs((i-(n&&"time"in n?n.time:r._time))/r.timeScale())||B,onStart:function onStart(){r.pause();var t=e.duration||Math.abs((i-r._time)/r.timeScale());o._dur!==t&&Ea(o,t).render(o._time,!0,!0),a&&a.apply(o,s||[])}}));return o},t.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,ha({startAt:{time:Ha(this,t)}},r))},t.recent=function recent(){return this._recent},t.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),cb(this,Ha(this,t))},t.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),cb(this,Ha(this,t),1)},t.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+B)},t.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return ra(this)},t.invalidate=function invalidate(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return i.prototype.invalidate.call(this)},t.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._time=this._tTime=this._pTime=0,t&&(this.labels={}),ra(this)},t.totalDuration=function totalDuration(t){var e,r,i,n,a=0,s=this,o=s._last,u=E;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),u<(i=o._start)&&s._sort&&o._ts&&!s._lock?(s._lock=1,za(s,o,i-o._delay,1)._lock=0):u=i,i<0&&o._ts&&(a-=i,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=i/s._ts,s._time-=i,s._tTime-=i),s.shiftChildren(-i,!1,-Infinity),u=0),a<(r=xa(o))&&o._ts&&(a=r),o=e;Ea(s,s===F&&s._time>a?s._time:a,1),s._dirty=0}return s._tDur},Timeline.updateRoot=function updateRoot(t){if(F._ts&&(ea(F,wa(t,F)),d=Mt.frame),Mt.frame>=ft){ft+=U.autoSleep||120;var e=F._first;if((!e||!e._ts)&&U.autoSleep&&Mt._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Mt.sleep()}}},Timeline}(Rt);ha(Bt.prototype,{_lock:0,_hasPause:0,_forcing:0});function Lb(t,e,i,a,s,u){var h,l,f,d;if(ht[t]&&!1!==(h=new ht[t]).init(s,h.rawVars?e[t]:function _processVars(t,e,i,a,s){if(o(t)&&(t=Yt(t,s,e,i,a)),!r(t)||t.style&&t.nodeType||W(t))return n(t)?Yt(t,s,e,i,a):t;var u,h={};for(u in t)h[u]=Yt(t[u],s,e,i,a);return h}(e[t],a,s,u,i),i,a,u)&&(i._pt=l=new ee(i._pt,s,t,0,1,h.render,h,0,h.priority),i!==c))for(f=i._ptLookup[i._targets.indexOf(s)],d=h._props.length;d--;)f[h._props[d]]=l;return h}var It,Lt=function _addPropTween(t,e,r,i,a,s,u,h,l){o(i)&&(i=i(a||0,t,s));var f,d=t[e],c="get"!==r?r:o(d)?l?t[e.indexOf("set")||!o(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():d,p=o(d)?l?jt:Vt:Xt;if(n(i)&&(~i.indexOf("random(")&&(i=_a(i)),"="===i.charAt(1)&&(i=parseFloat(c)+parseFloat(i.substr(2))*("-"===i.charAt(0)?-1:1)+(Ka(c)||0))),c!==i)return isNaN(c+i)?(d||e in t||L(e,i),function _addComplexStringPropTween(t,e,r,i,n,a,s){var o,u,h,l,f,d,c,p,_=new ee(this._pt,t,e,0,1,Wt,null,n),m=0,g=0;for(_.b=r,_.e=i,r+="",(c=~(i+="").indexOf("random("))&&(i=_a(i)),a&&(a(p=[r,i],t,e),r=p[0],i=p[1]),u=r.match(et)||[];o=et.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(d=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:",",s:d,c:"="===l.charAt(1)?parseFloat(l.substr(2))*("-"===l.charAt(0)?-1:1):parseFloat(l)-d,m:h&&h<4?Math.round:0},m=et.lastIndex);return _.c=m<i.length?i.substring(m,i.length):"",_.fp=s,(it.test(i)||c)&&(_.e=0),this._pt=_}.call(this,t,e,c,i,p,h||U.stringFilter,l)):(f=new ee(this._pt,t,e,+c||0,i-(c||0),"boolean"==typeof d?Qt:Kt,0,p),l&&(f.fp=l),u&&f.modifier(u,this,t),this._pt=f)},qt=function _initTween(t,e){var r,i,n,a,o,u,h,l,f,d,c,p,_=t.vars,m=_.ease,g=_.startAt,v=_.immediateRender,y=_.lazy,T=_.onUpdate,b=_.onUpdateParams,w=_.callbackScope,x=_.runBackwards,k=_.yoyoEase,O=_.keyframes,M=_.autoRevert,C=t._dur,P=t._startAt,S=t._targets,A=t.parent,D=A&&"nested"===A.data?A.parent._targets:S,z="auto"===t._overwrite,E=t.timeline;if(!E||O&&m||(m="none"),t._ease=zt(m,R.ease),t._yEase=k?Dt(zt(!0===k?m:k,R.ease)):0,k&&t._yoyo&&!t._repeat&&(k=t._yEase,t._yEase=t._ease,t._ease=k),!E){if(p=(l=S[0]?Z(S[0]).harness:0)&&_[l.prop],r=la(_,st),P&&P.render(-1,!0).kill(),g){if(qa(t._startAt=Ht.set(S,ha({data:"isStart",overwrite:!1,parent:A,immediateRender:!0,lazy:s(y),startAt:null,delay:0,onUpdate:T,onUpdateParams:b,callbackScope:w,stagger:0},g))),v)if(0<e)M||(t._startAt=0);else if(C)return}else if(x&&C)if(P)M||(t._startAt=0);else if(e&&(v=!1),n=pt(r,{overwrite:!1,data:"isFromStart",lazy:v&&s(y),immediateRender:v,stagger:0,parent:A}),p&&(n[l.prop]=p),qa(t._startAt=Ht.set(S,n)),v){if(!e)return}else _initTween(t._startAt,B);for(t._pt=0,y=C&&s(y)||y&&!C,i=0;i<S.length;i++){if(h=(o=S[i])._gsap||Y(S)[i]._gsap,t._ptLookup[i]=d={},ut[h.id]&&da(),c=D===S?i:D.indexOf(o),l&&!1!==(f=new l).init(o,p||r,t,c,D)&&(t._pt=a=new ee(t._pt,o,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){d[t]=a}),f.priority&&(u=1)),!l||p)for(n in r)ht[n]&&(f=Lb(n,r,t,c,o,D))?f.priority&&(u=1):d[n]=a=Lt.call(t,o,n,"get",r[n],c,D,0,_.stringFilter);t._op&&t._op[i]&&t.kill(o,t._op[i]),z&&t._pt&&(It=t,F.killTweensOf(o,d,"started"),It=0),t._pt&&y&&(ut[h.id]=1)}u&&te(t),t._onInit&&t._onInit(t)}t._from=!E&&!!_.runBackwards,t._onUpdate=T,t._initted=1},Yt=function _parseFuncOrString(t,e,r,i,a){return o(t)?t.call(e,r,i,a):n(t)&&~t.indexOf("random(")?_a(t):t},Nt=ct+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",Ut=(Nt+",id,stagger,delay,duration,paused,scrollTrigger").split(","),Ht=function(D){function Tween(t,e,i,n){var a;"number"==typeof e&&(i.duration=e,e=i,i=null);var o,h,l,f,d,c,_,m,g=(a=D.call(this,n?e:ma(e),i)||this).vars,v=g.duration,y=g.delay,T=g.immediateRender,b=g.stagger,w=g.overwrite,x=g.keyframes,k=g.defaults,C=g.scrollTrigger,P=g.yoyoEase,S=a.parent,A=(W(t)?p(t[0]):"length"in e)?[t]:yt(t);if(a._targets=A.length?Y(A):M("GSAP target "+t+" not found. https://greensock.com",!U.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=w,x||b||u(v)||u(y)){if(e=a.vars,(o=a.timeline=new Bt({data:"nested",defaults:k||{}})).kill(),o.parent=_assertThisInitialized(a),x)ha(o.vars.defaults,{ease:"none"}),x.forEach(function(t){return o.to(A,t,">")});else{if(f=A.length,_=b?Ra(b):O,r(b))for(d in b)~Nt.indexOf(d)&&((m=m||{})[d]=b[d]);for(h=0;h<f;h++){for(d in l={},e)Ut.indexOf(d)<0&&(l[d]=e[d]);l.stagger=0,P&&(l.yoyoEase=P),m&&pt(l,m),c=A[h],l.duration=+Yt(v,_assertThisInitialized(a),h,c,A),l.delay=(+Yt(y,_assertThisInitialized(a),h,c,A)||0)-a._delay,!b&&1===f&&l.delay&&(a._delay=y=l.delay,a._start+=y,l.delay=0),o.to(c,l,_(h,c,A))}o.duration()?v=y=0:a.timeline=0}v||a.duration(v=o.duration())}else a.timeline=0;return!0===w&&(It=_assertThisInitialized(a),F.killTweensOf(A),It=0),S&&ya(S,_assertThisInitialized(a)),(T||!v&&!x&&a._start===aa(S._time)&&s(T)&&function _hasNoPausedAncestors(t){return!t||t._ts&&_hasNoPausedAncestors(t.parent)}(_assertThisInitialized(a))&&"nested"!==S.data)&&(a._tTime=-B,a.render(Math.max(0,-y))),C&&Aa(_assertThisInitialized(a),C),a}_inheritsLoose(Tween,D);var t=Tween.prototype;return t.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,d=this._time,c=this._tDur,p=this._dur,_=c-B<t&&0<=t?c:t<B?0:t;if(p){if(_!==this._tTime||!t||r||this._startAt&&this._zTime<0!=t<0){if(i=_,l=this.timeline,this._repeat){if(s=p+this._rDelay,(p<(i=aa(_%s))||c===_)&&(i=p),(a=~~(_/s))&&a===_/s&&(i=p,a--),(u=this._yoyo&&1&a)&&(f=this._yEase,i=p-i),o=_t(this._tTime,s),i===d&&!r&&this._initted)return this;a!==o&&(l&&this._yEase&&zb(l,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=r=1,this.render(aa(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(Ba(this,i,r,e))return this._tTime=0,this;if(p!==this._dur)return this.render(t,e,r)}for(this._tTime=_,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(f||this._ease)(i/p),this._from&&(this.ratio=h=1-h),!i||d||e||bt(this,"onStart"),n=this._pt;n;)n.r(h,n.d),n=n._next;l&&l.render(t<0?t:!i&&u?-B:l._dur*h,e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,r),bt(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&bt(this,"onRepeat"),_!==this._tDur&&_||this._tTime!==_||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,r),!t&&p||!(_===this._tDur&&0<this._ts||!_&&this._ts<0)||qa(this,1),e||t<0&&!d||!_&&!d||(bt(this,_===c?"onComplete":"onReverseComplete",!0),!this._prom||_<c&&0<this.timeScale()||this._prom()))}}else!function _renderZeroDurationTween(t,e,r,i){var n,a,s=t.ratio,o=e<0||s&&!e&&!t._start&&!t._dp._lock?0:1,u=t._rDelay,h=0;if(u&&t._repeat&&(h=gt(0,t._tDur,e),_t(h,u)!==(a=_t(t._tTime,u))&&(s=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),t._initted||!Ba(t,e,i,r))if(o!==s||i||t._zTime===B||!e&&t._zTime){for(a=t._zTime,t._zTime=e||(r?B:0),r=r||e&&!a,t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=h,r||bt(t,"onStart"),n=t._pt;n;)n.r(o,n.d),n=n._next;!o&&t._startAt&&!t._onUpdate&&t._start&&t._startAt.render(e,!0,i),t._onUpdate&&!r&&bt(t,"onUpdate"),h&&t._repeat&&!r&&t.parent&&bt(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&qa(t,1),r||(bt(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},t.targets=function targets(){return this._targets},t.invalidate=function invalidate(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),D.prototype.invalidate.call(this)},t.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e)&&(this._lazy=0,this.parent))return eb(this);if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,It&&!0!==It.vars.overwrite)._first||eb(this),this.parent&&r!==this.timeline.totalDuration()&&Ea(this,this._dur*this.timeline._tDur/r),this}var i,a,s,o,u,h,l,f=this._targets,d=t?yt(t):f,c=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function _arraysMatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,d))return eb(this);for(i=this._op=this._op||[],"all"!==e&&(n(e)&&(u={},_(e,function(t){return u[t]=1}),e=u),e=function _addAliasesToVars(t,e){var r,i,n,a,s=t[0]?Z(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=pt({},e),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~d.indexOf(f[l]))for(u in a=c[l],"all"===e?(i[l]=e,o=a,s={}):(s=i[l]=i[l]||{},o=e),o)(h=a&&a[u])&&("kill"in h.d&&!0!==h.d.kill(u)||pa(this,h,"_pt"),delete a[u]),"all"!==s&&(s[u]=1);return this._initted&&!this._pt&&p&&eb(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return new Tween(t,ca(arguments,1))},Tween.delayedCall=function delayedCall(t,e,r,i){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},Tween.fromTo=function fromTo(t,e,r){return new Tween(t,ca(arguments,2))},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return F.killTweensOf(t,e,r)},Tween}(Rt);ha(Ht.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),_("staggerTo,staggerFrom,staggerFromTo",function(r){Ht[r]=function(){var t=new Bt,e=vt.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function Wb(t,e,r){return t.setAttribute(e,r)}function cc(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}var Xt=function _setterPlain(t,e,r){return t[e]=r},Vt=function _setterFunc(t,e,r){return t[e](r)},jt=function _setterFuncWithParam(t,e,r,i){return t[e](i.fp,r)},Zt=function _getSetter(t,e){return o(t[e])?Vt:q(t[e])&&t.setAttribute?Wb:Xt},Kt=function _renderPlain(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},Qt=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Wt=function _renderComplexString(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},Gt=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},$t=function _addPluginModifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},Jt=function _killPropTweensOf(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?pa(this,i,"_pt"):i.dep||(e=1),i=r;return!e},te=function _sortPropTweensByPriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},ee=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=cc,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||Kt,this.d=s||this,this.set=o||Xt,this.pr=u||0,(this._next=t)&&(t._prev=this)}_(ct+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return st[t]=1}),at.TweenMax=at.TweenLite=Ht,at.TimelineLite=at.TimelineMax=Bt,F=new Bt({sortChildren:!1,defaults:R,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),U.stringFilter=pb;var re={registerPlugin:function registerPlugin(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return function _createPlugin(t){var e=(t=!t.name&&t.default||t).name,r=o(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:O,render:Gt,add:Lt,kill:Jt,modifier:$t,rawVars:0},a={targetTest:0,get:0,getSetter:Zt,aliases:{},register:0};if(Ct(),t!==i){if(ht[e])return;ha(i,ha(la(t,n),a)),pt(i.prototype,pt(n,la(t,a))),ht[i.prop=e]=i,t.targetTest&&(dt.push(i),st[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}N(e,i),t.register&&t.register(ie,i,ee)}(t)})},timeline:function timeline(t){return new Bt(t)},getTweensOf:function getTweensOf(t,e){return F.getTweensOf(t,e)},getProperty:function getProperty(i,t,e,r){n(i)&&(i=yt(i)[0]);var a=Z(i||{}).get,s=e?ga:fa;return"native"===e&&(e=""),i?t?s((ht[t]&&ht[t].get||a)(i,t,e,r)):function(t,e,r){return s((ht[t]&&ht[t].get||a)(i,t,e,r))}:i},quickSetter:function quickSetter(r,e,i){if(1<(r=yt(r)).length){var n=r.map(function(t){return ie.quickSetter(t,e,i)}),a=n.length;return function(t){for(var e=a;e--;)n[e](t)}}r=r[0]||{};var s=ht[e],o=Z(r),u=o.harness&&(o.harness.aliases||{})[e]||e,h=s?function(t){var e=new s;c._pt=0,e.init(r,i?t+i:t,c,0,[r]),e.render(1,e),c._pt&&Gt(1,c)}:o.set(r,u);return s?h:function(t){return h(r,u,i?t+i:t,o,1)}},isTweening:function isTweening(t){return 0<F.getTweensOf(t,!0).length},defaults:function defaults(t){return t&&t.ease&&(t.ease=zt(t.ease,R.ease)),ka(R,t||{})},config:function config(t){return ka(U,t||{})},registerEffect:function registerEffect(t){var n=t.name,i=t.effect,e=t.plugins,a=t.defaults,s=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!ht[t]&&!at[t]&&M(n+" effect requires "+t+" plugin.")}),lt[n]=function(t,e,r){return i(yt(t),ha(e||{},a),r)},s&&(Bt.prototype[n]=function(t,e,i){return this.add(lt[n](t,r(e)?e:(i=e)&&{},this),i)})},registerEase:function registerEase(t,e){Pt[t]=zt(e)},parseEase:function parseEase(t,e){return arguments.length?zt(t,e):Pt},getById:function getById(t){return F.getById(t)},exportRoot:function exportRoot(t,e){void 0===t&&(t={});var r,i,n=new Bt(t);for(n.smoothChildTiming=s(t.smoothChildTiming),F.remove(n),n._dp=0,n._time=n._tTime=F._time,r=F._first;r;)i=r._next,!e&&!r._dur&&r instanceof Ht&&r.vars.onComplete===r._targets[0]||za(n,r,r._start-r._delay),r=i;return za(F,n,0),n},utils:{wrap:function wrap(e,t,r){var i=t-e;return W(e)?Ya(e,wrap(0,e.length),t):Ia(r,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function wrapYoyo(e,t,r){var i=t-e,n=2*i;return W(e)?Ya(e,wrapYoyo(0,e.length-1),t):Ia(r,function(t){return e+(i<(t=(n+(t-e)%n)%n)?n-t:t)})},distribute:Ra,random:Ua,snap:Ta,normalize:function normalize(t,e,r){return Tt(t,e,0,1,r)},getUnit:Ka,clamp:function clamp(e,r,t){return Ia(t,function(t){return gt(e,r,t)})},splitColor:kb,toArray:yt,mapRange:Tt,pipe:function pipe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function unitize(e,r){return function(t){return e(parseFloat(t))+(r||Ka(t))}},interpolate:function interpolate(e,r,t,i){var a=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!a){var s,o,u,h,l,f=n(e),d={};if(!0===t&&(i=1)&&(t=null),f)e={p:e},r={p:r};else if(W(e)&&!W(r)){for(u=[],h=e.length,l=h-2,o=1;o<h;o++)u.push(interpolate(e[o-1],e[o]));h--,a=function func(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},t=r}else i||(e=pt(W(e)?[]:{},e));if(!u){for(s in r)Lt.call(d,e,s,"get",r[s]);a=function func(t){return Gt(t,d)||(f?e.p:e)}}}return Ia(t,a)},shuffle:Qa},install:K,effects:lt,ticker:Mt,updateRoot:Bt.updateRoot,plugins:ht,globalTimeline:F,core:{PropTween:ee,globals:N,Tween:Ht,Timeline:Bt,Animation:Rt,getCache:Z,_removeLinkedListItem:pa}};_("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return re[t]=Ht[t]}),Mt.add(Bt.updateRoot),c=re.to({},{duration:0});function gc(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r}function ic(t,a){return{name:t,rawVars:1,init:function init(t,i,e){e._onInit=function(t){var e,r;if(n(i)&&(e={},_(i,function(t){return e[t]=1}),i=e),a){for(r in e={},i)e[r]=a(i[r]);i=e}!function _addModifiers(t,e){var r,i,n,a=t._targets;for(r in e)for(i=a.length;i--;)(n=(n=t._ptLookup[i][r])&&n.d)&&(n._pt&&(n=gc(n,r)),n&&n.modifier&&n.modifier(e[r],t,a[i],r))}(t,i)}}}}var ie=re.registerPlugin({name:"attr",init:function init(t,e,r,i,n){var a,s;for(a in e)(s=this.add(t,"setAttribute",(t.getAttribute(a)||0)+"",e[a],i,n,0,0,a))&&(s.op=a),this._props.push(a)}},{name:"endArray",init:function init(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r])}},ic("roundProps",Sa),ic("modifiers"),ic("snap",Ta))||re;Ht.version=Bt.version=ie.version="3.3.1",f=1,t()&&Ct();function Tc(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function Uc(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function Vc(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function Wc(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)}function Xc(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function Yc(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function Zc(t,e,r){return t.style[e]=r}function $c(t,e,r){return t.style.setProperty(e,r)}function _c(t,e,r){return t._gsap[e]=r}function ad(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function bd(t,e,r,i,n){var a=t._gsap;a.scaleX=a.scaleY=r,a.renderTransform(n,a)}function cd(t,e,r,i,n){var a=t._gsap;a[e]=r,a.renderTransform(n,a)}function gd(t,e){var r=ae.createElementNS?ae.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ae.createElement(t);return r.style?r:ae.createElement(t)}function hd(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Fe,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&hd(t,Ne(e)||e,1)||""}function kd(){(function _windowExists(){return"undefined"!=typeof window})()&&window.document&&(ne=window,ae=ne.document,se=ae.documentElement,ue=gd("div")||{style:{}},he=gd("div"),Le=Ne(Le),qe=Ne(qe),ue.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",fe=!!Ne("perspective"),oe=1)}function ld(t){var e,r=gd("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,a=this.style.cssText;if(se.appendChild(r),r.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=ld}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),se.removeChild(r),this.style.cssText=a,e}function md(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function nd(e){var r;try{r=e.getBBox()}catch(t){r=ld.call(e,!0)}return r&&(r.width||r.height)||e.getBBox===ld||(r=ld.call(e,!0)),!r||r.width||r.x||r.y?r:{x:+md(e,["x","cx","x1"])||0,y:+md(e,["y","cy","y1"])||0,width:0,height:0}}function od(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!nd(t))}function pd(t,e){if(e){var r=t.style;e in Ae&&(e=Le),r.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty(e.replace(Fe,"-$1").toLowerCase())):r.removeAttribute(e)}}function qd(t,e,r,i,n,a){var s=new ee(t._pt,e,r,0,1,a?Yc:Xc);return(t._pt=s).b=i,s.e=n,t._props.push(r),s}function sd(t,e,r,i){var n,a,s,o,u=parseFloat(r)||0,h=(r+"").trim().substr((u+"").length)||"px",l=ue.style,f=Re.test(e),d="svg"===t.tagName.toLowerCase(),c=(d?"client":"offset")+(f?"Width":"Height"),p="px"===i,_="%"===i;return i===h||!u||Ue[i]||Ue[h]?u:("px"===h||p||(u=sd(t,e,r,"px")),o=t.getCTM&&od(t),_&&(Ae[e]||~e.indexOf("adius"))?aa(u/(o?t.getBBox()[f?"width":"height"]:t[c])*100):(l[f?"width":"height"]=100+(p?h:i),a=~e.indexOf("adius")||"em"===i&&t.appendChild&&!d?t:t.parentNode,o&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==ae&&a.appendChild||(a=ae.body),(s=a._gsap)&&_&&s.width&&f&&s.time===Mt.time?aa(u/s.width*100):(!_&&"%"!==h||(l.position=hd(t,"position")),a===t&&(l.position="static"),a.appendChild(ue),n=ue[c],a.removeChild(ue),l.position="absolute",f&&_&&((s=Z(a)).time=Mt.time,s.width=a[c]),aa(p?n*u/100:n&&u?100/n*u:0))))}function td(t,e,r,i){var n;return oe||kd(),e in Ie&&"transform"!==e&&~(e=Ie[e]).indexOf(",")&&(e=e.split(",")[0]),Ae[e]&&"transform"!==e?(n=Ze(t,i),n="transformOrigin"!==e?n[e]:Ke(hd(t,qe))+" "+n.zOrigin+"px"):(n=t.style[e])&&"auto"!==n&&!i&&!~(n+"").indexOf("calc(")||(n=Xe[e]&&Xe[e](t,e,r)||hd(t,e)||$(t,e)||("opacity"===e?1:0)),r&&!~(n+"").indexOf(" ")?sd(t,e,n,r)+r:n}function ud(t,e,r,i){if(!r||"none"===r){var n=Ne(e,t,1),a=n&&hd(t,n,1);a&&a!==r&&(e=n,r=a)}var s,o,u,h,l,f,d,c,p,_,m,g,v=new ee(this._pt,t.style,e,0,1,Wt),y=0,T=0;if(v.b=r,v.e=i,r+="","auto"===(i+="")&&(t.style[e]=i,i=hd(t,e)||i,t.style[e]=r),pb(s=[r,i]),i=s[1],u=(r=s[0]).match(tt)||[],(i.match(tt)||[]).length){for(;o=tt.exec(i);)d=o[0],p=i.substring(y,o.index),l?l=(l+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(l=1),d!==(f=u[T++]||"")&&(h=parseFloat(f)||0,m=f.substr((h+"").length),(g="="===d.charAt(1)?+(d.charAt(0)+"1"):0)&&(d=d.substr(2)),c=parseFloat(d),_=d.substr((c+"").length),y=tt.lastIndex-_.length,_||(_=_||U.units[e]||m,y===i.length&&(i+=_,v.e+=_)),m!==_&&(h=sd(t,e,f,_)||0),v._pt={_next:v._pt,p:p||1===T?p:",",s:h,c:g?g*c:c-h,m:l&&l<4?Math.round:0});v.c=y<i.length?i.substring(y,i.length):""}else v.r="display"===e&&"none"===i?Yc:Xc;return it.test(i)&&(v.e=0),this._pt=v}function wd(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==i&&"right"!==i||(t=r,r=i,i=t),e[0]=He[r]||r,e[1]=He[i]||i,e.join(" ")}function xd(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,a=e.t,s=a.style,o=e.u,u=a._gsap;if("all"===o||!0===o)s.cssText="",i=1;else for(n=(o=o.split(",")).length;-1<--n;)r=o[n],Ae[r]&&(i=1,r="transformOrigin"===r?qe:Le),pd(a,r);i&&(pd(a,Le),u&&(u.svg&&a.removeAttribute("transform"),Ze(a,1),u.uncache=1))}}function Bd(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function Cd(t){var e=hd(t,Le);return Bd(e)?Ve:e.substr(7).match(J).map(aa)}function Dd(t,e){var r,i,n,a,s=t._gsap||Z(t),o=t.style,u=Cd(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?Ve:u:(u!==Ve||t.offsetParent||t===se||s.svg||(n=o.display,o.display="block",(r=t.parentNode)&&ae.body.contains(t)||(a=1,i=t.nextSibling,se.appendChild(t)),u=Cd(t),n?o.display=n:pd(t,"display"),a&&(i?r.insertBefore(t,i):r?r.appendChild(t):se.removeChild(t))),e&&6<u.length?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)}function Ed(t,e,r,i,n,a){var s,o,u,h=t._gsap,l=n||Dd(t,!0),f=h.xOrigin||0,d=h.yOrigin||0,c=h.xOffset||0,p=h.yOffset||0,_=l[0],m=l[1],g=l[2],v=l[3],y=l[4],T=l[5],b=e.split(" "),w=parseFloat(b[0])||0,x=parseFloat(b[1])||0;r?l!==Ve&&(o=_*v-m*g)&&(u=w*(-m/o)+x*(_/o)-(_*T-m*y)/o,w=w*(v/o)+x*(-g/o)+(g*T-v*y)/o,x=u):(w=(s=nd(t)).x+(~b[0].indexOf("%")?w/100*s.width:w),x=s.y+(~(b[1]||b[0]).indexOf("%")?x/100*s.height:x)),i||!1!==i&&h.smooth?(y=w-f,T=x-d,h.xOffset=c+(y*_+T*g)-y,h.yOffset=p+(y*m+T*v)-T):h.xOffset=h.yOffset=0,h.xOrigin=w,h.yOrigin=x,h.smooth=!!i,h.origin=e,h.originIsAbsolute=!!r,t.style[qe]="0px 0px",a&&(qd(a,h,"xOrigin",f,w),qd(a,h,"yOrigin",d,x),qd(a,h,"xOffset",c,h.xOffset),qd(a,h,"yOffset",p,h.yOffset)),t.setAttribute("data-svg-origin",w+" "+x)}function Hd(t,e,r){var i=Ka(e);return aa(parseFloat(e)+parseFloat(sd(t,"x",r+"px",i)))+i}function Od(t,e,r,i,a,s){var o,u,h=360,l=n(a),f=parseFloat(a)*(l&&~a.indexOf("rad")?De:1),d=s?f*s:f-i,c=i+d+"deg";return l&&("short"===(o=a.split("_")[1])&&(d%=h)!==d%180&&(d+=d<0?h:-h),"cw"===o&&d<0?d=(d+36e9)%h-~~(d/h)*h:"ccw"===o&&0<d&&(d=(d-36e9)%h-~~(d/h)*h)),t._pt=u=new ee(t._pt,e,r,i,d,Uc),u.e=c,u.u="deg",t._props.push(r),u}function Pd(t,e,r){var i,n,a,s,o,u,h,l=he.style,f=r._gsap;for(n in l.cssText=getComputedStyle(r).cssText+";position:absolute;display:block;",l[Le]=e,ae.body.appendChild(he),i=Ze(he,1),Ae)(a=f[n])!==(s=i[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=Ka(a)!==(h=Ka(s))?sd(r,n,a,h):parseFloat(a),u=parseFloat(s),t._pt=new ee(t._pt,f,n,o,u-o,Tc),t._pt.u=h||0,t._props.push(n));ae.body.removeChild(he)}var ne,ae,se,oe,ue,he,le,fe,de=Pt.Power0,ce=Pt.Power1,pe=Pt.Power2,_e=Pt.Power3,me=Pt.Power4,ge=Pt.Linear,ve=Pt.Quad,ye=Pt.Cubic,Te=Pt.Quart,be=Pt.Quint,we=Pt.Strong,xe=Pt.Elastic,ke=Pt.Back,Oe=Pt.SteppedEase,Me=Pt.Bounce,Ce=Pt.Sine,Pe=Pt.Expo,Se=Pt.Circ,Ae={},De=180/Math.PI,ze=Math.PI/180,Ee=Math.atan2,Fe=/([A-Z])/g,Re=/(?:left|right|width|margin|padding|x)/i,Be=/[\s,\(]\S/,Ie={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Le="transform",qe=Le+"Origin",Ye="O,Moz,ms,Ms,Webkit".split(","),Ne=function _checkPropPrefix(t,e,r){var i=(e||ue).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(Ye[n]+t in i););return n<0?null:(3===n?"ms":0<=n?Ye[n]:"")+t},Ue={deg:1,rad:1,turn:1},He={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Xe={clearProps:function clearProps(t,e,r,i,n){if("isFromStart"!==n.data){var a=t._pt=new ee(t._pt,e,r,0,0,xd);return a.u=i,a.pr=-10,a.tween=n,t._props.push(r),1}}},Ve=[1,0,0,1,0,0],je={},Ze=function _parseTransform(t,e){var r=t._gsap||new Ft(t);if("x"in r&&!e&&!r.uncache)return r;var i,n,a,s,o,u,h,l,f,d,c,p,_,m,g,v,y,T,b,w,x,k,O,M,C,P,S,A,D,z,E,F,R=t.style,B=r.scaleX<0,I="deg",L=hd(t,qe)||"0";return i=n=a=u=h=l=f=d=c=0,s=o=1,r.svg=!(!t.getCTM||!od(t)),m=Dd(t,r.svg),r.svg&&(M=!r.uncache&&t.getAttribute("data-svg-origin"),Ed(t,M||L,!!M||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,_=r.yOrigin||0,m!==Ve&&(T=m[0],b=m[1],w=m[2],x=m[3],i=k=m[4],n=O=m[5],6===m.length?(s=Math.sqrt(T*T+b*b),o=Math.sqrt(x*x+w*w),u=T||b?Ee(b,T)*De:0,(f=w||x?Ee(w,x)*De+u:0)&&(o*=Math.cos(f*ze)),r.svg&&(i-=p-(p*T+_*w),n-=_-(p*b+_*x))):(F=m[6],z=m[7],S=m[8],A=m[9],D=m[10],E=m[11],i=m[12],n=m[13],a=m[14],h=(g=Ee(F,D))*De,g&&(M=k*(v=Math.cos(-g))+S*(y=Math.sin(-g)),C=O*v+A*y,P=F*v+D*y,S=k*-y+S*v,A=O*-y+A*v,D=F*-y+D*v,E=z*-y+E*v,k=M,O=C,F=P),l=(g=Ee(-w,D))*De,g&&(v=Math.cos(-g),E=x*(y=Math.sin(-g))+E*v,T=M=T*v-S*y,b=C=b*v-A*y,w=P=w*v-D*y),u=(g=Ee(b,T))*De,g&&(M=T*(v=Math.cos(g))+b*(y=Math.sin(g)),C=k*v+O*y,b=b*v-T*y,O=O*v-k*y,T=M,k=C),h&&359.9<Math.abs(h)+Math.abs(u)&&(h=u=0,l=180-l),s=aa(Math.sqrt(T*T+b*b+w*w)),o=aa(Math.sqrt(O*O+F*F)),g=Ee(k,O),f=2e-4<Math.abs(g)?g*De:0,c=E?1/(E<0?-E:E):0),r.svg&&(M=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Bd(hd(t,Le)),M&&t.setAttribute("transform",M))),90<Math.abs(f)&&Math.abs(f)<270&&(B?(s*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),r.x=((r.xPercent=i&&Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)?0:i)+"px",r.y=((r.yPercent=n&&Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)?0:n)+"px",r.z=a+"px",r.scaleX=aa(s),r.scaleY=aa(o),r.rotation=aa(u)+I,r.rotationX=aa(h)+I,r.rotationY=aa(l)+I,r.skewX=f+I,r.skewY=d+I,r.transformPerspective=c+"px",(r.zOrigin=parseFloat(L.split(" ")[2])||0)&&(R[qe]=Ke(L)),r.xOffset=r.yOffset=0,r.force3D=U.force3D,r.renderTransform=r.svg?tr:fe?Je:Qe,r.uncache=0,r},Ke=function _firstTwoOnly(t){return(t=t.split(" "))[0]+" "+t[1]},Qe=function _renderNon3DTransforms(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Je(t,e)},We="0deg",Ge="0px",$e=") ",Je=function _renderCSSTransforms(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,a=r.x,s=r.y,o=r.z,u=r.rotation,h=r.rotationY,l=r.rotationX,f=r.skewX,d=r.skewY,c=r.scaleX,p=r.scaleY,_=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",T="auto"===m&&t&&1!==t||!0===m;if(v&&(l!==We||h!==We)){var b,w=parseFloat(h)*ze,x=Math.sin(w),k=Math.cos(w);w=parseFloat(l)*ze,b=Math.cos(w),a=Hd(g,a,x*b*-v),s=Hd(g,s,-Math.sin(w)*-v),o=Hd(g,o,k*b*-v+v)}_!==Ge&&(y+="perspective("+_+$e),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),!T&&a===Ge&&s===Ge&&o===Ge||(y+=o!==Ge||T?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+$e),u!==We&&(y+="rotate("+u+$e),h!==We&&(y+="rotateY("+h+$e),l!==We&&(y+="rotateX("+l+$e),f===We&&d===We||(y+="skew("+f+", "+d+$e),1===c&&1===p||(y+="scale("+c+", "+p+$e),g.style[Le]=y||"translate(0, 0)"},tr=function _renderSVGTransforms(t,e){var r,i,n,a,s,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,f=o.y,d=o.rotation,c=o.skewX,p=o.skewY,_=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,T=o.xOffset,b=o.yOffset,w=o.forceCSS,x=parseFloat(l),k=parseFloat(f);d=parseFloat(d),c=parseFloat(c),(p=parseFloat(p))&&(c+=p=parseFloat(p),d+=p),d||c?(d*=ze,c*=ze,r=Math.cos(d)*_,i=Math.sin(d)*_,n=Math.sin(d-c)*-m,a=Math.cos(d-c)*m,c&&(p*=ze,s=Math.tan(c-p),n*=s=Math.sqrt(1+s*s),a*=s,p&&(s=Math.tan(p),r*=s=Math.sqrt(1+s*s),i*=s)),r=aa(r),i=aa(i),n=aa(n),a=aa(a)):(r=_,a=m,i=n=0),(x&&!~(l+"").indexOf("px")||k&&!~(f+"").indexOf("px"))&&(x=sd(g,"x",l,"px"),k=sd(g,"y",f,"px")),(v||y||T||b)&&(x=aa(x+v-(v*r+y*n)+T),k=aa(k+y-(v*i+y*a)+b)),(u||h)&&(s=g.getBBox(),x=aa(x+u/100*s.width),k=aa(k+h/100*s.height)),s="matrix("+r+","+i+","+n+","+a+","+x+","+k+")",g.setAttribute("transform",s),w&&(g.style[Le]=s)};_("padding,margin,Width,Radius",function(e,r){var t="Right",i="Bottom",n="Left",o=(r<3?["Top",t,i,n]:["Top"+n,"Top"+t,i+t,i+n]).map(function(t){return r<2?e+t:"border"+t+e});Xe[1<r?"border"+e:e]=function(e,t,r,i,n){var a,s;if(arguments.length<4)return a=o.map(function(t){return td(e,t,r)}),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(i+"").split(" "),s={},o.forEach(function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]}),e.init(t,s,n)}});var er,rr,ir,nr={name:"css",register:kd,targetTest:function targetTest(t){return t.style&&t.nodeType},init:function init(t,e,r,i,n){var a,s,o,u,h,l,f,d,c,p,_,m,g,v,y,T=this._props,b=t.style;for(f in oe||kd(),e)if("autoRound"!==f&&(s=e[f],!ht[f]||!Lb(f,e,r,i,t,n)))if(h=typeof s,l=Xe[f],"function"===h&&(h=typeof(s=s.call(r,i,t,n))),"string"===h&&~s.indexOf("random(")&&(s=_a(s)),l)l(this,t,f,s,r)&&(y=1);else if("--"===f.substr(0,2))this.add(b,"setProperty",getComputedStyle(t).getPropertyValue(f)+"",s+"",i,n,0,0,f);else{if(a=td(t,f),u=parseFloat(a),(p="string"===h&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),o=parseFloat(s),f in Ie&&("autoAlpha"===f&&(1===u&&"hidden"===td(t,"visibility")&&o&&(u=0),qd(this,b,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==f&&"transform"!==f&&~(f=Ie[f]).indexOf(",")&&(f=f.split(",")[0])),_=f in Ae)if(m||((g=t._gsap).renderTransform||Ze(t),v=!1!==e.smoothOrigin&&g.smooth,(m=this._pt=new ee(this._pt,b,Le,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===f)this._pt=new ee(this._pt,g,"scaleY",g.scaleY,p?p*o:o-g.scaleY),T.push("scaleY",f),f+="X";else{if("transformOrigin"===f){s=wd(s),g.svg?Ed(t,s,0,v,0,this):((c=parseFloat(s.split(" ")[2])||0)!==g.zOrigin&&qd(this,g,"zOrigin",g.zOrigin,c),qd(this,b,f,Ke(a),Ke(s)));continue}if("svgOrigin"===f){Ed(t,s,1,v,0,this);continue}if(f in je){Od(this,g,f,u,s,p);continue}if("smoothOrigin"===f){qd(this,g,"smooth",g.smooth,s);continue}if("force3D"===f){g[f]=s;continue}if("transform"===f){Pd(this,s,t);continue}}else f in b||(f=Ne(f)||f);if(_||(o||0===o)&&(u||0===u)&&!Be.test(s)&&f in b)(d=(a+"").substr((u+"").length))!==(c=(s+"").substr(((o=o||0)+"").length)||(f in U.units?U.units[f]:d))&&(u=sd(t,f,a,c)),this._pt=new ee(this._pt,_?g:b,f,u,p?p*o:o-u,"px"!==c||!1===e.autoRound||_?Tc:Wc),this._pt.u=c||0,d!==c&&(this._pt.b=a,this._pt.r=Vc);else if(f in b)ud.call(this,t,f,a,s);else{if(!(f in t)){L(f,s);continue}this.add(t,f,t[f],s,i,n)}T.push(f)}y&&te(this)},get:td,aliases:Ie,getSetter:function getSetter(t,e,r){var i=Ie[e];return i&&i.indexOf(",")<0&&(e=i),e in Ae&&e!==qe&&(t._gsap.x||td(t,"x"))?r&&le===r?"scale"===e?ad:_c:(le=r||{})&&("scale"===e?bd:cd):t.style&&!q(t.style[e])?Zc:~e.indexOf("-")?$c:Zt(t,e)},core:{_removeProperty:pd,_getMatrix:Dd}};ie.utils.checkPrefix=Ne,ir=_((er="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(rr="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){Ae[t]=1}),_(rr,function(t){U.units[t]="deg",je[t]=1}),Ie[ir[13]]=er+","+rr,_("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Ie[e[1]]=ir[e[0]]}),_("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){U.units[t]="px"}),ie.registerPlugin(nr);var ar=ie.registerPlugin(nr)||ie,sr=ar.core.Tween;e.Back=ke,e.Bounce=Me,e.CSSPlugin=nr,e.Circ=Se,e.Cubic=ye,e.Elastic=xe,e.Expo=Pe,e.Linear=ge,e.Power0=de,e.Power1=ce,e.Power2=pe,e.Power3=_e,e.Power4=me,e.Quad=ve,e.Quart=Te,e.Quint=be,e.Sine=Ce,e.SteppedEase=Oe,e.Strong=we,e.TimelineLite=Bt,e.TimelineMax=Bt,e.TweenLite=Ht,e.TweenMax=sr,e.default=ar,e.gsap=ar;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
@@ -1160,3 +1160,3 @@ (function (global, factory) { | ||
if (cache && !cache.scaleX && !cache.scaleY) { | ||
if (cache && !cache.scaleX && !cache.scaleY && cache.renderTransform) { | ||
cache.scaleX = cache.scaleY = 1e-4; | ||
@@ -1452,3 +1452,3 @@ cache.renderTransform(1, cache); | ||
/*! | ||
* MotionPathPlugin 3.3.0 | ||
* MotionPathPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -1649,3 +1649,3 @@ * | ||
var MotionPathPlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "motionPath", | ||
@@ -1652,0 +1652,0 @@ register: function register(core, Plugin, propTween) { |
/*! | ||
* MotionPathPlugin 3.3.0 | ||
* MotionPathPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!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,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 A(t,e){var n=t.length,r=t[n-1]||[],a=r.length;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,R=/(?:(-)?\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,H=Math.cos,Q=Math.abs,$=Math.sqrt,S=Math.atan2,B=1e8,l=function _isNumber(t){return"number"==typeof t},N={},_={},e=1e5,d=function _wrapProgress(t){return Math.round((t+B)%1*e)/e||(t<0?0:1)},C=function _round(t){return Math.round(t*e)/e||0},I=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):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):l(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 E={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,f,g,c,p,d,m,v,x,y,P,w,b,M,L=t.tagName.toLowerCase(),T=.552284749831;return"path"!==L&&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,E[L]),"rect"===L?(o=M.rx,i=M.ry||o,r=M.x,a=M.y,f=M.width-2*o,g=M.height-2*i,n=o||i?"M"+(v=(d=(p=r+o)+f)+o)+","+(y=a+i)+" V"+(P=y+g)+" C"+[v,w=P+i*T,m=d+o*T,b=P+i,d,b,d-(d-p)/3,b,p+(d-p)/3,b,p,b,c=r+o*(1-T),b,r,w,r,P,r,P-(P-y)/3,r,y+(P-y)/3,r,y,r,x=a+i*(1-T),c,a,p,a,p+(d-p)/3,a,d-(d-p)/3,a,d,a,m,a,v,x,v,y].join(",")+"z":"M"+(r+f)+","+a+" v"+g+" h"+-f+" v"+-g+" h"+f+"z"):"circle"===L||"ellipse"===L?(h="circle"===L?(o=i=M.r)*T:(o=M.rx,(i=M.ry)*T),n="M"+((r=M.cx)+o)+","+(a=M.cy)+" C"+[r+o,a+h,r+(l=o*T),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"===L?n="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==L&&"polygon"!==L||(n="M"+(r=(u=(t.getAttribute("points")+"").match(R)||[]).shift())+","+(a=u.shift())+" L"+u.join(","),"polygon"===L&&(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,C(S(o+(i+(t[e+7]-i)*n-o)*n-a,r)*s)}function sliceRawPath(t,e,n){!function _isUndefined(t){return void 0===t}(n)||(n=1);var r=n<(e=e||0),a=Math.max(0,~~(Q(n-e)-1e-8));if(r&&(r=n,n=e,e=r,r=1,a-=a?1:0),e<0||n<0){var o=1+~~Math.min(e,n);e+=o,n+=o}var i,s,l,h,u,f,g,c=function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=I(t[n],t[n].slice(0));return I(t,e)}(t.totalLength?t:cacheRawPathMeasurements(t)),p=1<n,d=getProgressData(c,e,N,!0),m=getProgressData(c,n,_),v=m.segment,y=d.segment,P=m.segIndex,w=d.segIndex,b=m.i,M=d.i,L=w===P,T=b===M&&L,R=L&&b<M||T&&d.t>m.t;if(p||a){if(x(c,w,M,d.t)&&(i=1,w++,T?R?m.t/=d.t:(m.t=(m.t-d.t)/(1-d.t),P++,b=0):w<=P+1&&!R&&(P++,L&&(b-=M))),m.t?x(c,P,b,m.t)&&(R&&i&&w++,r&&P++):(P--,r&&w--),h=[],f=1+(u=c.length)*a,g=w,r)for(f+=(u-(P=(P||u)-1)+w)%u,l=0;l<f;l++)A(h,c[g]),g=(g||u)-1;else for(f+=(u-w+P)%u,l=0;l<f;l++)A(h,c[g++%u]);c=h}else if(s=1===m.t?6:subdivideSegment(v,b,m.t),e!==n)for(i=subdivideSegment(y,M,T?d.t/m.t:d.t),L&&(s+=i),v.splice(b+s+2),(i||M)&&y.splice(0,M+i),l=c.length;l--;)(l<w||P<l)&&c.splice(l,1);else v.angle=getRotationAtBezierT(v,b+s,0),d=v[b+=s],m=v[b+1],v.length=v.totalLength=0,v.totalPoints=c.totalPoints=8,v.push(d,m,d,m,d,m,d,m);return r&&function _reverseRawPath(t,e){var n=t.length;for(e||t.reverse();n--;)t[n].reversed||reverseSegment(t[n])}(c,p||a),c.totalLength=0,c}function measureSegment(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var r,a,o,i,s,l,h,u,f,g,c,p,d,m,v,x,y,P=~~t.resolution||12,w=1/P,b=n?e+6*n+1:t.length,M=t[e],L=t[e+1],T=e?e/6*P:0,R=t.samples,S=t.lookup,N=(e?t.minLength:B)||B,_=R[T+n*P-1],C=e?R[T-1]:0;for(R.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]-L,f=t[a+3]-L,g=t[a+1]-L,l=h=c=p=0,Q(o)<1e-5&&Q(u)<1e-5&&Q(s)+Q(g)<1e-5)8<t.length&&(t.splice(a,6),a-=6,b-=6);else for(r=1;r<=P;r++)l=h-(h=((m=w*r)*m*o+3*(d=1-m)*(m*i+d*s))*m),c=p-(p=(m*m*u+3*d*(m*f+d*g))*m),(x=$(c*c+l*l))<N&&(N=x),C+=x,R[T++]=C;M+=o,L+=u}if(_)for(_-=C;T<R.length;T++)R[T]+=_;if(R.length&&N)for(t.totalLength=y=R[R.length-1]||0,t.minLength=N,x=v=0,r=0;r<y;r+=N)S[x++]=R[v]<r?++v:v;else t.totalLength=R[0]=0;return e?C-R[e/2-1]:C}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,f=a+(i-a)*n,g=i+(l-i)*n,c=h+(u-h)*n,p=f+(g-f)*n,d=s+(t[e+6]-s)*n,m=l+(t[e+7]-l)*n;return u+=(d-u)*n,g+=(m-g)*n,t.splice(e+2,4,C(h),C(f),C(c),C(p),C(c+(u-c)*n),C(p+(g-p)*n),C(u),C(g),C(d),C(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,f=0,g=t[0];if(1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)f=h;e=(i-(s=l-(g=t[f]).totalLength))/(l-s)||0}return a=g.samples,o=g.resolution,i=g.totalLength*e,s=(h=g.lookup[~~(i/g.minLength)]||0)?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<g.length?(h+=6,u=0):f+1<t.length&&(h=u=0,g=t[++f])),n.t=u,n.i=h,n.path=t,n.segment=g,n.segIndex=f,n}function getPositionOnPath(t,e,n,r){var a,o,i,s,l,h,u,f,g,c=t[0],p=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;)c=t[h];e=(i-(s=l-c.totalLength))/(l-s)||0}return a=c.samples,o=c.resolution,i=c.totalLength*e,s=(h=c.lookup[~~(i/c.minLength)]||0)?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),g=1-(u=1/o*((i-s)/(l-s)+h%o)||0),f=c[h=6*~~(h/o)],p.x=C((u*u*(c[h+6]-f)+3*g*(u*(c[h+4]-f)+g*(c[h+2]-f)))*u+f),p.y=C((u*u*(c[h+7]-(f=c[h+1]))+3*g*(u*(c[h+5]-f)+g*(c[h+3]-f)))*u+f),n&&(p.angle=c.totalLength?getRotationAtBezierT(c,h,1<=u?1-1e-9:u||1e-9):c.angle||0),p}function transformRawPath(t,e,n,r,a,o,i){for(var s,l,h,u,f,g=t.length;-1<--g;)for(l=(s=t[g]).length,h=0;h<l;h+=2)u=s[h],f=s[h+1],s[h]=u*e+f*r+o,s[h+1]=u*n+f*a+i;return t._dirty=1,t}function arcToSegment(t,e,n,r,a,o,i,s,l){if(t!==s||e!==l){n=Q(n),r=Q(r);var h=a%360*q,u=H(h),f=F(h),g=Math.PI,c=2*g,p=(t-s)/2,d=(e-l)/2,m=u*p+f*d,v=-f*p+u*d,x=m*m,y=v*v,P=x/(n*n)+y/(r*r);1<P&&(n=$(P)*n,r=$(P)*r);var w=n*n,b=r*r,M=(w*b-w*y-b*x)/(w*y+b*x);M<0&&(M=0);var L=(o===i?-1:1)*$(M),T=n*v/r*L,R=-r*m/n*L,S=u*T-f*R+(t+s)/2,N=f*T+u*R+(e+l)/2,_=(m-T)/n,C=(v-R)/r,A=(-m-T)/n,O=(-v-R)/r,B=_*_+C*C,I=(C<0?-1:1)*Math.acos(_/$(B)),E=(_*O-C*A<0?-1:1)*Math.acos((_*A+C*O)/$(B*(A*A+O*O)));isNaN(E)&&(E=g),!i&&0<E?E-=c:i&&E<0&&(E+=c),I%=c,E%=c;var G,D=Math.ceil(Q(E)/(c/4)),z=[],W=E/D,Y=4/3*F(W/2)/(1+H(W/2)),j=u*n,k=f*n,V=f*-r,X=u*r;for(G=0;G<D;G++)m=H(a=I+G*W),v=F(a),_=H(a+=W),C=F(a),z.push(m-Y*v,v+Y*m,_+Y*C,C-Y*_,_,C);for(G=0;G<z.length;G+=2)m=z[G],v=z[G+1],z[G]=m*j+v*V+S,z[G+1]=m*k+v*X+N;return z[G-2]=s,z[G-1]=l,z}}function stringToRawPath(t){function rf(t,e,n,r){u=(n-t)/3,f=(r-e)/3,s.push(t+u,e+f,n-u,r-f,n,r)}var e,n,r,a,o,i,s,l,h,u,f,g,c,p,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,P=m.length,w=0,b="ERROR: malformed path: "+t;if(!t||!isNaN(m[0])||isNaN(m[1]))return console.log(b),v;for(e=0;e<P;e++)if(c=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:w+=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,f=y,"C"!==c&&"S"!==c||(u+=x-s[s.length-4],f+=y-s[s.length-3]),i||(x=y=0),s.push(u,f,r,a,x+=1*m[e+3],y+=1*m[e+4]),e+=4;else if("Q"===o)u=x+2/3*(r-x),f=y+2/3*(a-y),i||(x=y=0),x+=1*m[e+3],y+=1*m[e+4],s.push(u,f,x+2/3*(r-x),y+2/3*(a-y),x,y),e+=4;else if("T"===o)u=x-s[s.length-4],f=y-s[s.length-3],s.push(x+u,y+f,r+2/3*(x+1.5*u-r),a+2/3*(y+1.5*f-a),x=r,y=a),e+=2;else if("H"===o)rf(x,y,x=r,y),e+=1;else if("V"===o)rf(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<Q(x-r)||.5<Q(y-a))&&(rf(x,y,r,a),"L"===o&&(e+=2)),x=r,y=a;else if("A"===o){if(p=m[e+4],d=m[e+5],u=m[e+6],f=m[e+7],n=7,1<p.length&&(p.length<3?(f=u,u=d,n--):(f=d,u=p.substr(2),n-=2),d=p.charAt(1),p=p.charAt(0)),g=arcToSegment(x,y,+m[e+1],+m[e+2],+m[e+3],+p,+d,(i?x:0)+1*u,(i?y:0)+1*f),e+=n,g)for(n=0;n<g.length;n++)s.push(g[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=w+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,n){var r,a,o,i,s,l,h,u,f,g,c,p,d,m,v=t.length-2,x=+t[0],y=+t[1],P=+t[2],w=+t[3],b=[x,y,x,y],M=P-x,L=w-y,T=Math.abs(t[v]-x)<.001&&Math.abs(t[v+1]-y)<.001;for(isNaN(n)&&(n=Math.PI/10),T&&(t.push(P,w),P=x,w=y,x=t[v-2],y=t[v-1],t.unshift(x,y),v+=4),e=e||0===e?+e:1,s=2;s<v;s+=2)r=x,a=y,x=P,y=w,p=(l=M)*l+(u=L)*u,d=(M=(P=+t[s+2])-x)*M+(L=(w=+t[s+3])-y)*L,m=(h=P-r)*h+(f=w-a)*f,c=(o=Math.acos((p+d-m)/$(4*p*d)))/Math.PI*e,g=$(p)*c,c*=$(d),x===r&&y===a||(n<o?(i=S(f,h),b.push(C(x-H(i)*g),C(y-F(i)*g),C(x),C(y),C(x+H(i)*c),C(y+F(i)*c))):(i=S(u,l),b.push(C(x-H(i)*g),C(y-F(i)*g)),i=S(L,M),b.push(C(x),C(y),C(x+H(i)*c),C(y+F(i)*c))));return b.push(C(P),C(w),C(P),C(w)),T&&(b.splice(0,6),b.length=b.length-6),b}function rawPathToString(t){l(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"+C(a[0])+","+C(a[1])+" C",e=a.length,r=2;r<e;r++)o+=C(a[r++])+","+C(a[r++])+" "+C(a[r++])+","+C(a[r++])+" "+C(a[r++])+","+C(a[r])+" ";a.closed&&(o+="z")}return o}function O(t){var e=t.ownerDocument||t;!(w in t.style)&&"msTransform"in t.style&&(b=(w="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(c=window,y=new D,e){m=(g=e).documentElement,v=e.body;var n=e.createElement("div"),r=e.createElement("div");v.appendChild(n),n.appendChild(r),n.style.position="static",n.style[w]="translate3d(0,0,1px)",P=r.offsetParent!==n,v.removeChild(n)}return e}function U(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function W(t,e){if(t.parentNode&&(g||O(t))){var n=U(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;",l=g.createElementNS?g.createElementNS(r.replace(/^https/,"http"),a):g.createElement(a);return e&&(n?(f=f||W(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+o+","+i+")"),f.appendChild(l)):(u||((u=W(t)).style.cssText=s),l.style.cssText=s+"width:0.1px;height:0.1px;top:"+i+"px;left:"+o+"px",u.appendChild(l))),l}throw"Need document and parent."}function Y(t,e){var n,r,a,o,i,s=U(t),l=t===s,h=s?T:G;if(t===c)return t;if(h.length||h.push(W(t,1),W(t,2),W(t,3)),n=s?f:u,s)a=l?{x:0,y:0}:t.getBBox(),i=(r=t.transform?t.transform.baseVal:{}).numberOfItems?(o=(r=1<r.numberOfItems?function _consolidate(t){for(var e=new D,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(r):r.getItem(0).matrix).a*a.x+r.c*a.y,r.b*a.x+r.d*a.y):(r=y,o=a.x,a.y),e&&"g"===t.tagName.toLowerCase()&&(o=i=0),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+o)+","+(r.f+i)+")"),(l?s:t.parentNode).appendChild(n);else{if(o=i=0,P)for(r=t.offsetParent,a=t;(a=a&&a.parentNode)&&a!==r&&a.parentNode;)4<(c.getComputedStyle(a)[w]+"").length&&(o=a.offsetLeft,i=a.offsetTop,a=0);(a=n.style).top=t.offsetTop-i+"px",a.left=t.offsetLeft-o+"px",r=c.getComputedStyle(t),a[w]=r[w],a[b]=r[b],a.border=r.border,a.borderLeftStyle=r.borderLeftStyle,a.borderTopStyle=r.borderTopStyle,a.borderLeftWidth=r.borderLeftWidth,a.borderTopWidth=r.borderTopWidth,a.position="fixed"===r.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n}function Z(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 g,c,m,v,u,f,y,P,n,w="transform",b=w+"Origin",T=[],G=[],D=((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 Z(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,f=t.e,g=t.f;return Z(this,s*e+h*r,s*n+h*a,l*e+u*r,l*n+u*a,o+f*e+g*r,i+f*n+g*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),Z(this,t,e,n,r,a,o)}function getGlobalMatrix(t,e,n){if(!t||!t.parentNode||(g||O(t)).documentElement===t)return new D;var r=function _forceNonZeroScale(t){for(var e,n;t&&t!==v;)!(n=t._gsap)||n.scaleX||n.scaleY||(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t.parentNode),a=U(t)?T:G,o=Y(t,n),i=a[0].getBoundingClientRect(),s=a[1].getBoundingClientRect(),l=a[2].getBoundingClientRect(),h=o.parentNode,u=function _isFixed(t){return"fixed"===c.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(t),f=new D((s.left-i.left)/100,(s.top-i.top)/100,(l.left-i.left)/100,(l.top-i.top)/100,i.left+(u?0:function _getDocScrollLeft(){return c.pageXOffset||g.scrollLeft||m.scrollLeft||v.scrollLeft||0}()),i.top+(u?0:function _getDocScrollTop(){return c.pageYOffset||g.scrollTop||m.scrollTop||v.scrollTop||0}()));if(h.removeChild(o),r)for(i=r.length;i--;)(s=r[i]).scaleX=s.scaleY=0,s.renderTransform(1,s);return e?f.inverse():f}function ha(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 ia(t,e,n){return parseFloat(t._gsap.get(t,e,n||"px"))||0}function ja(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 ka(t,e,n,r,a,o,i){return e="cubic"===i.type?[e]:(e.unshift(ia(n,r,i.unitX),a?ia(n,a,i.unitY):0),i.relative&&ja(e),[(a?pointsToSegment:flatPointsToSegment)(e,i.curviness)]),e=o(tt(e,n,i)),et(t,n,r,e,"x",i.unitX),a&&et(t,n,a,e,"y",i.unitY),cacheRawPathMeasurements(e,i.resolution||(0===i.curviness?20:12))}function la(t){return t}function na(t,e,n){var r,a,o,i=getGlobalMatrix(t);return"svg"===(t.tagName+"").toLowerCase()?(a=(r=t.viewBox.baseVal).x,o=r.y,r.width||(r={width:+t.getAttribute("width"),height:+t.getAttribute("height")})):(r=e&&t.getBBox&&t.getBBox(),a=o=0),e&&"auto"!==e&&(a+=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,o+=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),n.apply(a||o?i.apply({x:a,y:o}):{x:i.e,y:i.f})}function oa(t,e,n,r){var a,o=getGlobalMatrix(t.parentNode,!0,!0),i=o.clone().multiply(getGlobalMatrix(e)),s=na(t,n,o),l=na(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(K)||[],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 z,j,k,V,X=["x","translateX","left","marginLeft"],J=["y","translateY","top","marginTop"],o=Math.PI/180,K=/[-+\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/g,tt=function _align(t,e,n){var r,a,o,i=n.align,s=n.matrix,l=n.offsetX,h=n.offsetY,u=n.alignOrigin,f=t[0][0],g=t[0][1],c=ia(e,"x"),p=ia(e,"y");return t&&t.length?(i&&("self"===i||(r=V(i)[0]||e)===e?transformRawPath(t,1,0,0,1,c-f,p-g):(u&&!1!==u[2]?z.set(e,{transformOrigin:100*u[0]+"% "+100*u[1]+"%"}):u=[ia(e,"xPercent")/-100,ia(e,"yPercent")/-100],o=(a=oa(e,r,u,"auto")).apply({x:f,y:g}),transformRawPath(t,a.a,a.b,a.c,a.d,c+a.e-(o.x-a.e),p+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")},et=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 j(t._pt,e,h,0,0,la,0,i.set(e,h,t));u.u=k(i.get(e,h,o))||0,u.path=r,u.pp=a,t._props.push(h)},a={version:"3.3.0",name:"motionPath",register:function register(t,e,n){k=(z=t).utils.getUnit,V=z.utils.toArray,j=n},init:function init(t,e){if(!z)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var n,r,a,o,i=[],s=e.path,l=s[0],h=e.autoRotate,u=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=i,this.target=t,(this.rotate=h||0===h)&&(this.rOffset=parseFloat(h)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=k(t._gsap.get(t,this.rProp))||0),!Array.isArray(s)||"closed"in s||"number"==typeof l)cacheRawPathMeasurements(n=u(tt(getRawPath(e.path),t,e)),e.resolution),i.push(n),et(this,t,e.x||"x",n,"x",e.unitX||"px"),et(this,t,e.y||"y",n,"y",e.unitY||"px");else{for(r in l)~X.indexOf(r)?a=r:~J.indexOf(r)&&(o=r);for(r in a&&o?i.push(ka(this,ha(ha([],s,a,0),s,o,1),t,e.x||a,e.y||o,u,e)):a=o=0,l)r!==a&&r!==o&&i.push(ka(this,ha([],s,r,2),t,r,0,u,e))}},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 V(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:oa,getRelativePosition:function getRelativePosition(t,e,n,r){var a=oa(t,e,n,r);return{x:a.e,y:a.f}},arrayToRawPath:function arrayToRawPath(t,e){var n=ha(ha([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&ja(n),["cubic"===e.type?n:pointsToSegment(n,e.curviness)]}};!function _getGSAP(){return z||"undefined"!=typeof window&&(z=window.gsap)&&z.registerPlugin&&z}()||z.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,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 A(t,e){var n=t.length,r=t[n-1]||[],a=r.length;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,R=/(?:(-)?\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,H=Math.cos,Q=Math.abs,$=Math.sqrt,S=Math.atan2,B=1e8,l=function _isNumber(t){return"number"==typeof t},N={},_={},e=1e5,d=function _wrapProgress(t){return Math.round((t+B)%1*e)/e||(t<0?0:1)},C=function _round(t){return Math.round(t*e)/e||0},I=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):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):l(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 E={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,f,g,c,p,d,m,v,x,y,P,w,b,M,L=t.tagName.toLowerCase(),T=.552284749831;return"path"!==L&&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,E[L]),"rect"===L?(o=M.rx,i=M.ry||o,r=M.x,a=M.y,f=M.width-2*o,g=M.height-2*i,n=o||i?"M"+(v=(d=(p=r+o)+f)+o)+","+(y=a+i)+" V"+(P=y+g)+" C"+[v,w=P+i*T,m=d+o*T,b=P+i,d,b,d-(d-p)/3,b,p+(d-p)/3,b,p,b,c=r+o*(1-T),b,r,w,r,P,r,P-(P-y)/3,r,y+(P-y)/3,r,y,r,x=a+i*(1-T),c,a,p,a,p+(d-p)/3,a,d-(d-p)/3,a,d,a,m,a,v,x,v,y].join(",")+"z":"M"+(r+f)+","+a+" v"+g+" h"+-f+" v"+-g+" h"+f+"z"):"circle"===L||"ellipse"===L?(h="circle"===L?(o=i=M.r)*T:(o=M.rx,(i=M.ry)*T),n="M"+((r=M.cx)+o)+","+(a=M.cy)+" C"+[r+o,a+h,r+(l=o*T),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"===L?n="M"+M.x1+","+M.y1+" L"+M.x2+","+M.y2:"polyline"!==L&&"polygon"!==L||(n="M"+(r=(u=(t.getAttribute("points")+"").match(R)||[]).shift())+","+(a=u.shift())+" L"+u.join(","),"polygon"===L&&(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,C(S(o+(i+(t[e+7]-i)*n-o)*n-a,r)*s)}function sliceRawPath(t,e,n){!function _isUndefined(t){return void 0===t}(n)||(n=1);var r=n<(e=e||0),a=Math.max(0,~~(Q(n-e)-1e-8));if(r&&(r=n,n=e,e=r,r=1,a-=a?1:0),e<0||n<0){var o=1+~~Math.min(e,n);e+=o,n+=o}var i,s,l,h,u,f,g,c=function copyRawPath(t){for(var e=[],n=0;n<t.length;n++)e[n]=I(t[n],t[n].slice(0));return I(t,e)}(t.totalLength?t:cacheRawPathMeasurements(t)),p=1<n,d=getProgressData(c,e,N,!0),m=getProgressData(c,n,_),v=m.segment,y=d.segment,P=m.segIndex,w=d.segIndex,b=m.i,M=d.i,L=w===P,T=b===M&&L,R=L&&b<M||T&&d.t>m.t;if(p||a){if(x(c,w,M,d.t)&&(i=1,w++,T?R?m.t/=d.t:(m.t=(m.t-d.t)/(1-d.t),P++,b=0):w<=P+1&&!R&&(P++,L&&(b-=M))),m.t?x(c,P,b,m.t)&&(R&&i&&w++,r&&P++):(P--,r&&w--),h=[],f=1+(u=c.length)*a,g=w,r)for(f+=(u-(P=(P||u)-1)+w)%u,l=0;l<f;l++)A(h,c[g]),g=(g||u)-1;else for(f+=(u-w+P)%u,l=0;l<f;l++)A(h,c[g++%u]);c=h}else if(s=1===m.t?6:subdivideSegment(v,b,m.t),e!==n)for(i=subdivideSegment(y,M,T?d.t/m.t:d.t),L&&(s+=i),v.splice(b+s+2),(i||M)&&y.splice(0,M+i),l=c.length;l--;)(l<w||P<l)&&c.splice(l,1);else v.angle=getRotationAtBezierT(v,b+s,0),d=v[b+=s],m=v[b+1],v.length=v.totalLength=0,v.totalPoints=c.totalPoints=8,v.push(d,m,d,m,d,m,d,m);return r&&function _reverseRawPath(t,e){var n=t.length;for(e||t.reverse();n--;)t[n].reversed||reverseSegment(t[n])}(c,p||a),c.totalLength=0,c}function measureSegment(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var r,a,o,i,s,l,h,u,f,g,c,p,d,m,v,x,y,P=~~t.resolution||12,w=1/P,b=n?e+6*n+1:t.length,M=t[e],L=t[e+1],T=e?e/6*P:0,R=t.samples,S=t.lookup,N=(e?t.minLength:B)||B,_=R[T+n*P-1],C=e?R[T-1]:0;for(R.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]-L,f=t[a+3]-L,g=t[a+1]-L,l=h=c=p=0,Q(o)<1e-5&&Q(u)<1e-5&&Q(s)+Q(g)<1e-5)8<t.length&&(t.splice(a,6),a-=6,b-=6);else for(r=1;r<=P;r++)l=h-(h=((m=w*r)*m*o+3*(d=1-m)*(m*i+d*s))*m),c=p-(p=(m*m*u+3*d*(m*f+d*g))*m),(x=$(c*c+l*l))<N&&(N=x),C+=x,R[T++]=C;M+=o,L+=u}if(_)for(_-=C;T<R.length;T++)R[T]+=_;if(R.length&&N)for(t.totalLength=y=R[R.length-1]||0,t.minLength=N,x=v=0,r=0;r<y;r+=N)S[x++]=R[v]<r?++v:v;else t.totalLength=R[0]=0;return e?C-R[e/2-1]:C}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,f=a+(i-a)*n,g=i+(l-i)*n,c=h+(u-h)*n,p=f+(g-f)*n,d=s+(t[e+6]-s)*n,m=l+(t[e+7]-l)*n;return u+=(d-u)*n,g+=(m-g)*n,t.splice(e+2,4,C(h),C(f),C(c),C(p),C(c+(u-c)*n),C(p+(g-p)*n),C(u),C(g),C(d),C(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,f=0,g=t[0];if(1<t.length){for(i=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<i;)f=h;e=(i-(s=l-(g=t[f]).totalLength))/(l-s)||0}return a=g.samples,o=g.resolution,i=g.totalLength*e,s=(h=g.lookup[~~(i/g.minLength)]||0)?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<g.length?(h+=6,u=0):f+1<t.length&&(h=u=0,g=t[++f])),n.t=u,n.i=h,n.path=t,n.segment=g,n.segIndex=f,n}function getPositionOnPath(t,e,n,r){var a,o,i,s,l,h,u,f,g,c=t[0],p=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;)c=t[h];e=(i-(s=l-c.totalLength))/(l-s)||0}return a=c.samples,o=c.resolution,i=c.totalLength*e,s=(h=c.lookup[~~(i/c.minLength)]||0)?a[h-1]:0,(l=a[h])<i&&(s=l,l=a[++h]),g=1-(u=1/o*((i-s)/(l-s)+h%o)||0),f=c[h=6*~~(h/o)],p.x=C((u*u*(c[h+6]-f)+3*g*(u*(c[h+4]-f)+g*(c[h+2]-f)))*u+f),p.y=C((u*u*(c[h+7]-(f=c[h+1]))+3*g*(u*(c[h+5]-f)+g*(c[h+3]-f)))*u+f),n&&(p.angle=c.totalLength?getRotationAtBezierT(c,h,1<=u?1-1e-9:u||1e-9):c.angle||0),p}function transformRawPath(t,e,n,r,a,o,i){for(var s,l,h,u,f,g=t.length;-1<--g;)for(l=(s=t[g]).length,h=0;h<l;h+=2)u=s[h],f=s[h+1],s[h]=u*e+f*r+o,s[h+1]=u*n+f*a+i;return t._dirty=1,t}function arcToSegment(t,e,n,r,a,o,i,s,l){if(t!==s||e!==l){n=Q(n),r=Q(r);var h=a%360*q,u=H(h),f=F(h),g=Math.PI,c=2*g,p=(t-s)/2,d=(e-l)/2,m=u*p+f*d,v=-f*p+u*d,x=m*m,y=v*v,P=x/(n*n)+y/(r*r);1<P&&(n=$(P)*n,r=$(P)*r);var w=n*n,b=r*r,M=(w*b-w*y-b*x)/(w*y+b*x);M<0&&(M=0);var L=(o===i?-1:1)*$(M),T=n*v/r*L,R=-r*m/n*L,S=u*T-f*R+(t+s)/2,N=f*T+u*R+(e+l)/2,_=(m-T)/n,C=(v-R)/r,A=(-m-T)/n,O=(-v-R)/r,B=_*_+C*C,I=(C<0?-1:1)*Math.acos(_/$(B)),E=(_*O-C*A<0?-1:1)*Math.acos((_*A+C*O)/$(B*(A*A+O*O)));isNaN(E)&&(E=g),!i&&0<E?E-=c:i&&E<0&&(E+=c),I%=c,E%=c;var G,D=Math.ceil(Q(E)/(c/4)),z=[],W=E/D,Y=4/3*F(W/2)/(1+H(W/2)),j=u*n,k=f*n,V=f*-r,X=u*r;for(G=0;G<D;G++)m=H(a=I+G*W),v=F(a),_=H(a+=W),C=F(a),z.push(m-Y*v,v+Y*m,_+Y*C,C-Y*_,_,C);for(G=0;G<z.length;G+=2)m=z[G],v=z[G+1],z[G]=m*j+v*V+S,z[G+1]=m*k+v*X+N;return z[G-2]=s,z[G-1]=l,z}}function stringToRawPath(t){function rf(t,e,n,r){u=(n-t)/3,f=(r-e)/3,s.push(t+u,e+f,n-u,r-f,n,r)}var e,n,r,a,o,i,s,l,h,u,f,g,c,p,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,P=m.length,w=0,b="ERROR: malformed path: "+t;if(!t||!isNaN(m[0])||isNaN(m[1]))return console.log(b),v;for(e=0;e<P;e++)if(c=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:w+=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,f=y,"C"!==c&&"S"!==c||(u+=x-s[s.length-4],f+=y-s[s.length-3]),i||(x=y=0),s.push(u,f,r,a,x+=1*m[e+3],y+=1*m[e+4]),e+=4;else if("Q"===o)u=x+2/3*(r-x),f=y+2/3*(a-y),i||(x=y=0),x+=1*m[e+3],y+=1*m[e+4],s.push(u,f,x+2/3*(r-x),y+2/3*(a-y),x,y),e+=4;else if("T"===o)u=x-s[s.length-4],f=y-s[s.length-3],s.push(x+u,y+f,r+2/3*(x+1.5*u-r),a+2/3*(y+1.5*f-a),x=r,y=a),e+=2;else if("H"===o)rf(x,y,x=r,y),e+=1;else if("V"===o)rf(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<Q(x-r)||.5<Q(y-a))&&(rf(x,y,r,a),"L"===o&&(e+=2)),x=r,y=a;else if("A"===o){if(p=m[e+4],d=m[e+5],u=m[e+6],f=m[e+7],n=7,1<p.length&&(p.length<3?(f=u,u=d,n--):(f=d,u=p.substr(2),n-=2),d=p.charAt(1),p=p.charAt(0)),g=arcToSegment(x,y,+m[e+1],+m[e+2],+m[e+3],+p,+d,(i?x:0)+1*u,(i?y:0)+1*f),e+=n,g)for(n=0;n<g.length;n++)s.push(g[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=w+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,n){var r,a,o,i,s,l,h,u,f,g,c,p,d,m,v=t.length-2,x=+t[0],y=+t[1],P=+t[2],w=+t[3],b=[x,y,x,y],M=P-x,L=w-y,T=Math.abs(t[v]-x)<.001&&Math.abs(t[v+1]-y)<.001;for(isNaN(n)&&(n=Math.PI/10),T&&(t.push(P,w),P=x,w=y,x=t[v-2],y=t[v-1],t.unshift(x,y),v+=4),e=e||0===e?+e:1,s=2;s<v;s+=2)r=x,a=y,x=P,y=w,p=(l=M)*l+(u=L)*u,d=(M=(P=+t[s+2])-x)*M+(L=(w=+t[s+3])-y)*L,m=(h=P-r)*h+(f=w-a)*f,c=(o=Math.acos((p+d-m)/$(4*p*d)))/Math.PI*e,g=$(p)*c,c*=$(d),x===r&&y===a||(n<o?(i=S(f,h),b.push(C(x-H(i)*g),C(y-F(i)*g),C(x),C(y),C(x+H(i)*c),C(y+F(i)*c))):(i=S(u,l),b.push(C(x-H(i)*g),C(y-F(i)*g)),i=S(L,M),b.push(C(x),C(y),C(x+H(i)*c),C(y+F(i)*c))));return b.push(C(P),C(w),C(P),C(w)),T&&(b.splice(0,6),b.length=b.length-6),b}function rawPathToString(t){l(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"+C(a[0])+","+C(a[1])+" C",e=a.length,r=2;r<e;r++)o+=C(a[r++])+","+C(a[r++])+" "+C(a[r++])+","+C(a[r++])+" "+C(a[r++])+","+C(a[r])+" ";a.closed&&(o+="z")}return o}function O(t){var e=t.ownerDocument||t;!(w in t.style)&&"msTransform"in t.style&&(b=(w="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(c=window,y=new D,e){m=(g=e).documentElement,v=e.body;var n=e.createElement("div"),r=e.createElement("div");v.appendChild(n),n.appendChild(r),n.style.position="static",n.style[w]="translate3d(0,0,1px)",P=r.offsetParent!==n,v.removeChild(n)}return e}function U(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)}function W(t,e){if(t.parentNode&&(g||O(t))){var n=U(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;",l=g.createElementNS?g.createElementNS(r.replace(/^https/,"http"),a):g.createElement(a);return e&&(n?(f=f||W(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+o+","+i+")"),f.appendChild(l)):(u||((u=W(t)).style.cssText=s),l.style.cssText=s+"width:0.1px;height:0.1px;top:"+i+"px;left:"+o+"px",u.appendChild(l))),l}throw"Need document and parent."}function Y(t,e){var n,r,a,o,i,s=U(t),l=t===s,h=s?T:G;if(t===c)return t;if(h.length||h.push(W(t,1),W(t,2),W(t,3)),n=s?f:u,s)a=l?{x:0,y:0}:t.getBBox(),i=(r=t.transform?t.transform.baseVal:{}).numberOfItems?(o=(r=1<r.numberOfItems?function _consolidate(t){for(var e=new D,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(r):r.getItem(0).matrix).a*a.x+r.c*a.y,r.b*a.x+r.d*a.y):(r=y,o=a.x,a.y),e&&"g"===t.tagName.toLowerCase()&&(o=i=0),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+o)+","+(r.f+i)+")"),(l?s:t.parentNode).appendChild(n);else{if(o=i=0,P)for(r=t.offsetParent,a=t;(a=a&&a.parentNode)&&a!==r&&a.parentNode;)4<(c.getComputedStyle(a)[w]+"").length&&(o=a.offsetLeft,i=a.offsetTop,a=0);(a=n.style).top=t.offsetTop-i+"px",a.left=t.offsetLeft-o+"px",r=c.getComputedStyle(t),a[w]=r[w],a[b]=r[b],a.border=r.border,a.borderLeftStyle=r.borderLeftStyle,a.borderTopStyle=r.borderTopStyle,a.borderLeftWidth=r.borderLeftWidth,a.borderTopWidth=r.borderTopWidth,a.position="fixed"===r.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n}function Z(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 g,c,m,v,u,f,y,P,n,w="transform",b=w+"Origin",T=[],G=[],D=((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 Z(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,f=t.e,g=t.f;return Z(this,s*e+h*r,s*n+h*a,l*e+u*r,l*n+u*a,o+f*e+g*r,i+f*n+g*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),Z(this,t,e,n,r,a,o)}function getGlobalMatrix(t,e,n){if(!t||!t.parentNode||(g||O(t)).documentElement===t)return new D;var r=function _forceNonZeroScale(t){for(var e,n;t&&t!==v;)(n=t._gsap)&&!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.parentNode),a=U(t)?T:G,o=Y(t,n),i=a[0].getBoundingClientRect(),s=a[1].getBoundingClientRect(),l=a[2].getBoundingClientRect(),h=o.parentNode,u=function _isFixed(t){return"fixed"===c.getComputedStyle(t).position||((t=t.parentNode)&&1===t.nodeType?_isFixed(t):void 0)}(t),f=new D((s.left-i.left)/100,(s.top-i.top)/100,(l.left-i.left)/100,(l.top-i.top)/100,i.left+(u?0:function _getDocScrollLeft(){return c.pageXOffset||g.scrollLeft||m.scrollLeft||v.scrollLeft||0}()),i.top+(u?0:function _getDocScrollTop(){return c.pageYOffset||g.scrollTop||m.scrollTop||v.scrollTop||0}()));if(h.removeChild(o),r)for(i=r.length;i--;)(s=r[i]).scaleX=s.scaleY=0,s.renderTransform(1,s);return e?f.inverse():f}function ha(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 ia(t,e,n){return parseFloat(t._gsap.get(t,e,n||"px"))||0}function ja(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 ka(t,e,n,r,a,o,i){return e="cubic"===i.type?[e]:(e.unshift(ia(n,r,i.unitX),a?ia(n,a,i.unitY):0),i.relative&&ja(e),[(a?pointsToSegment:flatPointsToSegment)(e,i.curviness)]),e=o(tt(e,n,i)),et(t,n,r,e,"x",i.unitX),a&&et(t,n,a,e,"y",i.unitY),cacheRawPathMeasurements(e,i.resolution||(0===i.curviness?20:12))}function la(t){return t}function na(t,e,n){var r,a,o,i=getGlobalMatrix(t);return"svg"===(t.tagName+"").toLowerCase()?(a=(r=t.viewBox.baseVal).x,o=r.y,r.width||(r={width:+t.getAttribute("width"),height:+t.getAttribute("height")})):(r=e&&t.getBBox&&t.getBBox(),a=o=0),e&&"auto"!==e&&(a+=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,o+=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),n.apply(a||o?i.apply({x:a,y:o}):{x:i.e,y:i.f})}function oa(t,e,n,r){var a,o=getGlobalMatrix(t.parentNode,!0,!0),i=o.clone().multiply(getGlobalMatrix(e)),s=na(t,n,o),l=na(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(K)||[],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 z,j,k,V,X=["x","translateX","left","marginLeft"],J=["y","translateY","top","marginTop"],o=Math.PI/180,K=/[-+\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/g,tt=function _align(t,e,n){var r,a,o,i=n.align,s=n.matrix,l=n.offsetX,h=n.offsetY,u=n.alignOrigin,f=t[0][0],g=t[0][1],c=ia(e,"x"),p=ia(e,"y");return t&&t.length?(i&&("self"===i||(r=V(i)[0]||e)===e?transformRawPath(t,1,0,0,1,c-f,p-g):(u&&!1!==u[2]?z.set(e,{transformOrigin:100*u[0]+"% "+100*u[1]+"%"}):u=[ia(e,"xPercent")/-100,ia(e,"yPercent")/-100],o=(a=oa(e,r,u,"auto")).apply({x:f,y:g}),transformRawPath(t,a.a,a.b,a.c,a.d,c+a.e-(o.x-a.e),p+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")},et=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 j(t._pt,e,h,0,0,la,0,i.set(e,h,t));u.u=k(i.get(e,h,o))||0,u.path=r,u.pp=a,t._props.push(h)},a={version:"3.3.1",name:"motionPath",register:function register(t,e,n){k=(z=t).utils.getUnit,V=z.utils.toArray,j=n},init:function init(t,e){if(!z)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var n,r,a,o,i=[],s=e.path,l=s[0],h=e.autoRotate,u=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=i,this.target=t,(this.rotate=h||0===h)&&(this.rOffset=parseFloat(h)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=k(t._gsap.get(t,this.rProp))||0),!Array.isArray(s)||"closed"in s||"number"==typeof l)cacheRawPathMeasurements(n=u(tt(getRawPath(e.path),t,e)),e.resolution),i.push(n),et(this,t,e.x||"x",n,"x",e.unitX||"px"),et(this,t,e.y||"y",n,"y",e.unitY||"px");else{for(r in l)~X.indexOf(r)?a=r:~J.indexOf(r)&&(o=r);for(r in a&&o?i.push(ka(this,ha(ha([],s,a,0),s,o,1),t,e.x||a,e.y||o,u,e)):a=o=0,l)r!==a&&r!==o&&i.push(ka(this,ha([],s,r,2),t,r,0,u,e))}},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 V(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:oa,getRelativePosition:function getRelativePosition(t,e,n,r){var a=oa(t,e,n,r);return{x:a.e,y:a.f}},arrayToRawPath:function arrayToRawPath(t,e){var n=ha(ha([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&ja(n),["cubic"===e.type?n:pointsToSegment(n,e.curviness)]}};!function _getGSAP(){return z||"undefined"!=typeof window&&(z=window.gsap)&&z.registerPlugin&&z}()||z.registerPlugin(a),t.MotionPathPlugin=a,t.default=a;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); | ||
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
/*! | ||
* PixiPlugin 3.3.0 | ||
* PixiPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -373,3 +373,3 @@ * | ||
var PixiPlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "pixi", | ||
@@ -376,0 +376,0 @@ register: function register(core, Plugin, propTween) { |
/*! | ||
* PixiPlugin 3.3.0 | ||
* PixiPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((t=t||self).window=t.window||{})}(this,function(r){"use strict";function k(){return"undefined"!=typeof window}function l(){return o||k()&&(o=window.gsap)&&o.registerPlugin&&o}function m(t){return"function"==typeof t}function s(t,r){var i,o,e=[],n=0,s=0;for(i=0;i<4;i++){for(o=0;o<5;o++)s=4===o?t[n+4]:0,e[n+o]=t[n]*r[o]+t[n+1]*r[o+5]+t[n+2]*r[o+10]+t[n+3]*r[o+15]+s;n+=5}return e}function t(t,r){var i=1-r,o=i*p,e=i*g,n=i*b;return s([o+r,e,n,0,0,o,e+r,n,0,0,o,e,n+r,0,0,0,0,0,1,0],t)}function u(t,r,i){var o=c(r),e=o[0]/255,n=o[1]/255,l=o[2]/255,a=1-i;return s([a+i*e*p,i*e*g,i*e*b,0,0,i*n*p,a+i*n*g,i*n*b,0,0,i*l*p,i*l*g,a+i*l*b,0,0,0,0,0,1,0],t)}function v(t,r){r*=Math.PI/180;var i=Math.cos(r),o=Math.sin(r);return s([p+i*(1-p)+o*-p,g+i*-g+o*-g,b+i*-b+o*(1-b),0,0,p+i*-p+.143*o,g+i*(1-g)+.14*o,b+i*-b+-.283*o,0,0,p+i*-p+o*-(1-p),g+i*-g+o*g,b+i*(1-b)+o*b,0,0,0,0,0,1,0,0,0,0,0,1],t)}function w(t,r){return s([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)}function x(t,r){var i,o=h.filters[r],e=t.filters||[],n=e.length;for(o||function _warn(t){console.warn(t)}(r+" not found. PixiPlugin.registerPIXI(PIXI)");-1<--n;)if(e[n]instanceof o)return e[n];return i=new o,"BlurFilter"===r&&(i.blur=0),e.push(i),t.filters=e,i}function y(t,r,i,o){r.add(i,t,i[t],o[t]),r._props.push(t)}function z(t,r){var i=new h.filters.ColorMatrixFilter;return i.matrix=r,i.brightness(t,!0),i.matrix}function C(r,i,o){var e,n,s,l=x(r,"ColorMatrixFilter"),a=r._gsColorMatrixFilter=r._gsColorMatrixFilter||function _copy(t){var r,i={};for(r in t)i[r]=t[r];return i}(_),c=i.combineCMF&&!("colorMatrixFilter"in i&&!i.colorMatrixFilter);s=l.matrix,i.resolution&&(l.resolution=i.resolution),i.matrix&&i.matrix.length===s.length?(n=i.matrix,1!==a.contrast&&y("contrast",o,a,_),a.hue&&y("hue",o,a,_),1!==a.brightness&&y("brightness",o,a,_),a.colorizeAmount&&(y("colorize",o,a,_),y("colorizeAmount",o,a,_)),1!==a.saturation&&y("saturation",o,a,_)):(n=f.slice(),null!=i.contrast?(n=w(n,+i.contrast),y("contrast",o,a,i)):1!==a.contrast&&(c?n=w(n,a.contrast):y("contrast",o,a,_)),null!=i.hue?(n=v(n,+i.hue),y("hue",o,a,i)):a.hue&&(c?n=v(n,a.hue):y("hue",o,a,_)),null!=i.brightness?(n=z(+i.brightness,n),y("brightness",o,a,i)):1!==a.brightness&&(c?n=z(a.brightness,n):y("brightness",o,a,_)),null!=i.colorize?(i.colorizeAmount="colorizeAmount"in i?+i.colorizeAmount:1,n=u(n,i.colorize,i.colorizeAmount),y("colorize",o,a,i),y("colorizeAmount",o,a,i)):a.colorizeAmount&&(c?n=u(n,a.colorize,a.colorizeAmount):(y("colorize",o,a,_),y("colorizeAmount",o,a,_))),null!=i.saturation?(n=t(n,+i.saturation),y("saturation",o,a,i)):1!==a.saturation&&(c?n=t(n,a.saturation):y("saturation",o,a,_))),e=n.length;for(;-1<--e;)n[e]!==s[e]&&o.add(s,e,s[e],n[e],"colorMatrixFilter");o._props.push("colorMatrixFilter")}function D(t,r){var i=r.t,o=r.p,e=r.color;(0,r.set)(i,o,e[0]<<16|e[1]<<8|e[2])}function E(t,r){var i=r.g;i&&(i.dirty++,i.clearDirty++)}function F(t,r){r.t.visible=!!r.t.alpha}function G(t,r,i,o){var e=t[r],n=c(m(e)?t[r.indexOf("set")||!m(t["get"+r.substr(3)])?r:"get"+r.substr(3)]():e),s=c(i);o._pt=new d(o._pt,t,r,0,0,D,{t:t,p:r,color:n,set:a(t,r)}),o.add(n,0,n[0],s[0]),o.add(n,1,n[1],s[1]),o.add(n,2,n[2],s[2])}function M(t){return"string"==typeof t}function N(t){return M(t)&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*j:t*j}function O(t,r){return r.set(r.t,r.p,1===t?r.e:Math.round(1e5*(r.s+r.c*t))/1e5,r)}function P(t,r,i,o,e,n){var s,l,a=360*(n?j:1),u=M(e),c=u&&"="===e.charAt(1)?+(e.charAt(0)+"1"):0,f=parseFloat(c?e.substr(2):e)*(n?j:1),h=c?f*c:f-o,p=o+h;return u&&("short"===(s=e.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,r,i,o,h,O),l.e=p,l}function Q(){k()&&(i=window,o=l(),h=h||i.PIXI,c=function _splitColor(t){return o.utils.splitColor("0x"===(t+"").substr(0,2)?"#"+t.substr(2):t)})}var o,i,c,h,d,a,e,n,f=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],p=.212671,g=.71516,b=.072169,_={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},A={tint:1,lineColor:1,fillColor:1},I="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<I.length;e++)n=I[e],X[n+"X"]=n,X[n+"Y"]=n;var Y={version:"3.3.0",name:"pixi",register:function register(t,r,i){o=t,d=i,a=r.getSetter,Q()},registerPIXI:function registerPIXI(t){h=t},init:function init(t,r){if(h||Q(),!t instanceof h.DisplayObject)return!1;var i,o,e,n,s,l,a,u,c,f="4"===h.VERSION.charAt(0);for(l in r){if(i=X[l],e=r[l],i)o=~l.charAt(l.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[i],o,t[i][o],"skew"===i?N(e):e);else if("scale"===l||"anchor"===l||"pivot"===l||"tileScale"===l)this.add(t[l],"x",t[l].x,e),this.add(t[l],"y",t[l].y,e);else if("rotation"===l||"angle"===l)P(this,t,l,t[l],e,"rotation"===l);else if(S[l])n||(C(t,r.colorMatrixFilter||r,this),n=!0);else if("blur"===l||"blurX"===l||"blurY"===l||"blurPadding"===l){if(s=x(t,"BlurFilter"),this.add(s,l,s[l],e),0!==r.blurPadding)for(a=r.blurPadding||2*Math.max(s[l],e),u=t.filters.length;-1<--u;)t.filters[u].padding=Math.max(t.filters[u].padding,a)}else if(A[l])if(("lineColor"===l||"fillColor"===l)&&t instanceof h.Graphics)for(c=(t.geometry||t).graphicsData,this._pt=new d(this._pt,t,l,0,0,E,{g:t.geometry||t}),u=c.length;-1<--u;)G(f?c[u]:c[u][l.substr(0,4)+"Style"],f?l:"color",e,this);else G(t,l,e,this);else"autoAlpha"===l?(this._pt=new d(this._pt,t,"visible",0,0,F),this.add(t,"alpha",t.alpha,e),this._props.push("alpha","visible")):"resolution"!==l&&this.add(t,l,"get",e);this._props.push(l)}}};l()&&o.registerPlugin(Y),r.PixiPlugin=Y,r.default=Y;if (typeof(window)==="undefined"||window!==r){Object.defineProperty(r,"__esModule",{value:!0})} else {delete r.default}}); | ||
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((t=t||self).window=t.window||{})}(this,function(r){"use strict";function k(){return"undefined"!=typeof window}function l(){return o||k()&&(o=window.gsap)&&o.registerPlugin&&o}function m(t){return"function"==typeof t}function s(t,r){var i,o,e=[],n=0,s=0;for(i=0;i<4;i++){for(o=0;o<5;o++)s=4===o?t[n+4]:0,e[n+o]=t[n]*r[o]+t[n+1]*r[o+5]+t[n+2]*r[o+10]+t[n+3]*r[o+15]+s;n+=5}return e}function t(t,r){var i=1-r,o=i*p,e=i*g,n=i*b;return s([o+r,e,n,0,0,o,e+r,n,0,0,o,e,n+r,0,0,0,0,0,1,0],t)}function u(t,r,i){var o=c(r),e=o[0]/255,n=o[1]/255,l=o[2]/255,a=1-i;return s([a+i*e*p,i*e*g,i*e*b,0,0,i*n*p,a+i*n*g,i*n*b,0,0,i*l*p,i*l*g,a+i*l*b,0,0,0,0,0,1,0],t)}function v(t,r){r*=Math.PI/180;var i=Math.cos(r),o=Math.sin(r);return s([p+i*(1-p)+o*-p,g+i*-g+o*-g,b+i*-b+o*(1-b),0,0,p+i*-p+.143*o,g+i*(1-g)+.14*o,b+i*-b+-.283*o,0,0,p+i*-p+o*-(1-p),g+i*-g+o*g,b+i*(1-b)+o*b,0,0,0,0,0,1,0,0,0,0,0,1],t)}function w(t,r){return s([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)}function x(t,r){var i,o=h.filters[r],e=t.filters||[],n=e.length;for(o||function _warn(t){console.warn(t)}(r+" not found. PixiPlugin.registerPIXI(PIXI)");-1<--n;)if(e[n]instanceof o)return e[n];return i=new o,"BlurFilter"===r&&(i.blur=0),e.push(i),t.filters=e,i}function y(t,r,i,o){r.add(i,t,i[t],o[t]),r._props.push(t)}function z(t,r){var i=new h.filters.ColorMatrixFilter;return i.matrix=r,i.brightness(t,!0),i.matrix}function C(r,i,o){var e,n,s,l=x(r,"ColorMatrixFilter"),a=r._gsColorMatrixFilter=r._gsColorMatrixFilter||function _copy(t){var r,i={};for(r in t)i[r]=t[r];return i}(_),c=i.combineCMF&&!("colorMatrixFilter"in i&&!i.colorMatrixFilter);s=l.matrix,i.resolution&&(l.resolution=i.resolution),i.matrix&&i.matrix.length===s.length?(n=i.matrix,1!==a.contrast&&y("contrast",o,a,_),a.hue&&y("hue",o,a,_),1!==a.brightness&&y("brightness",o,a,_),a.colorizeAmount&&(y("colorize",o,a,_),y("colorizeAmount",o,a,_)),1!==a.saturation&&y("saturation",o,a,_)):(n=f.slice(),null!=i.contrast?(n=w(n,+i.contrast),y("contrast",o,a,i)):1!==a.contrast&&(c?n=w(n,a.contrast):y("contrast",o,a,_)),null!=i.hue?(n=v(n,+i.hue),y("hue",o,a,i)):a.hue&&(c?n=v(n,a.hue):y("hue",o,a,_)),null!=i.brightness?(n=z(+i.brightness,n),y("brightness",o,a,i)):1!==a.brightness&&(c?n=z(a.brightness,n):y("brightness",o,a,_)),null!=i.colorize?(i.colorizeAmount="colorizeAmount"in i?+i.colorizeAmount:1,n=u(n,i.colorize,i.colorizeAmount),y("colorize",o,a,i),y("colorizeAmount",o,a,i)):a.colorizeAmount&&(c?n=u(n,a.colorize,a.colorizeAmount):(y("colorize",o,a,_),y("colorizeAmount",o,a,_))),null!=i.saturation?(n=t(n,+i.saturation),y("saturation",o,a,i)):1!==a.saturation&&(c?n=t(n,a.saturation):y("saturation",o,a,_))),e=n.length;for(;-1<--e;)n[e]!==s[e]&&o.add(s,e,s[e],n[e],"colorMatrixFilter");o._props.push("colorMatrixFilter")}function D(t,r){var i=r.t,o=r.p,e=r.color;(0,r.set)(i,o,e[0]<<16|e[1]<<8|e[2])}function E(t,r){var i=r.g;i&&(i.dirty++,i.clearDirty++)}function F(t,r){r.t.visible=!!r.t.alpha}function G(t,r,i,o){var e=t[r],n=c(m(e)?t[r.indexOf("set")||!m(t["get"+r.substr(3)])?r:"get"+r.substr(3)]():e),s=c(i);o._pt=new d(o._pt,t,r,0,0,D,{t:t,p:r,color:n,set:a(t,r)}),o.add(n,0,n[0],s[0]),o.add(n,1,n[1],s[1]),o.add(n,2,n[2],s[2])}function M(t){return"string"==typeof t}function N(t){return M(t)&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*j:t*j}function O(t,r){return r.set(r.t,r.p,1===t?r.e:Math.round(1e5*(r.s+r.c*t))/1e5,r)}function P(t,r,i,o,e,n){var s,l,a=360*(n?j:1),u=M(e),c=u&&"="===e.charAt(1)?+(e.charAt(0)+"1"):0,f=parseFloat(c?e.substr(2):e)*(n?j:1),h=c?f*c:f-o,p=o+h;return u&&("short"===(s=e.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,r,i,o,h,O),l.e=p,l}function Q(){k()&&(i=window,o=l(),h=h||i.PIXI,c=function _splitColor(t){return o.utils.splitColor("0x"===(t+"").substr(0,2)?"#"+t.substr(2):t)})}var o,i,c,h,d,a,e,n,f=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],p=.212671,g=.71516,b=.072169,_={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},A={tint:1,lineColor:1,fillColor:1},I="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<I.length;e++)n=I[e],X[n+"X"]=n,X[n+"Y"]=n;var Y={version:"3.3.1",name:"pixi",register:function register(t,r,i){o=t,d=i,a=r.getSetter,Q()},registerPIXI:function registerPIXI(t){h=t},init:function init(t,r){if(h||Q(),!t instanceof h.DisplayObject)return!1;var i,o,e,n,s,l,a,u,c,f="4"===h.VERSION.charAt(0);for(l in r){if(i=X[l],e=r[l],i)o=~l.charAt(l.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[i],o,t[i][o],"skew"===i?N(e):e);else if("scale"===l||"anchor"===l||"pivot"===l||"tileScale"===l)this.add(t[l],"x",t[l].x,e),this.add(t[l],"y",t[l].y,e);else if("rotation"===l||"angle"===l)P(this,t,l,t[l],e,"rotation"===l);else if(S[l])n||(C(t,r.colorMatrixFilter||r,this),n=!0);else if("blur"===l||"blurX"===l||"blurY"===l||"blurPadding"===l){if(s=x(t,"BlurFilter"),this.add(s,l,s[l],e),0!==r.blurPadding)for(a=r.blurPadding||2*Math.max(s[l],e),u=t.filters.length;-1<--u;)t.filters[u].padding=Math.max(t.filters[u].padding,a)}else if(A[l])if(("lineColor"===l||"fillColor"===l)&&t instanceof h.Graphics)for(c=(t.geometry||t).graphicsData,this._pt=new d(this._pt,t,l,0,0,E,{g:t.geometry||t}),u=c.length;-1<--u;)G(f?c[u]:c[u][l.substr(0,4)+"Style"],f?l:"color",e,this);else G(t,l,e,this);else"autoAlpha"===l?(this._pt=new d(this._pt,t,"visible",0,0,F),this.add(t,"alpha",t.alpha,e),this._props.push("alpha","visible")):"resolution"!==l&&this.add(t,l,"get",e);this._props.push(l)}}};l()&&o.registerPlugin(Y),r.PixiPlugin=Y,r.default=Y;if (typeof(window)==="undefined"||window!==r){Object.defineProperty(r,"__esModule",{value:!0})} else {delete r.default}}); | ||
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
/*! | ||
* ScrollToPlugin 3.3.0 | ||
* ScrollToPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -93,3 +93,3 @@ * | ||
var ScrollToPlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "scrollTo", | ||
@@ -96,0 +96,0 @@ rawVars: 1, |
/*! | ||
* ScrollToPlugin 3.3.0 | ||
* ScrollToPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!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 k(){return"undefined"!=typeof window}function l(){return e||k()&&(e=window.gsap)&&e.registerPlugin&&e}function m(t){return"string"==typeof t}function n(t,e){var o="x"===e?"Width":"Height",n="scroll"+o,r="client"+o;return t===x||t===s||t===f?Math.max(s[n],f[n])-(x["inner"+o]||s[r]||f[r]):t[n]-t["offset"+o]}function o(t,e){var o="scroll"+("x"===e?"Left":"Top");return t===x&&(null!=t.pageXOffset?o="page"+e.toUpperCase()+"Offset":t=null!=s[o]?s:f),function(){return t[o]}}function p(t,e){var n=a(t)[0].getBoundingClientRect(),r=!e||e===x||e===f,i=r?{top:s.clientTop-(x.pageYOffset||s.scrollTop||f.scrollTop||0),left:s.clientLeft-(x.pageXOffset||s.scrollLeft||f.scrollLeft||0)}:e.getBoundingClientRect(),l={x:n.left-i.left,y:n.top-i.top};return!r&&e&&(l.x+=o(e,"x")(),l.y+=o(e,"y")()),l}function q(t,e,o,r){return isNaN(t)||"object"==typeof t?m(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+r:"max"===t?n(e,o):Math.min(n(e,o),p(t,e)[o]):parseFloat(t)}function r(){e=l(),k()&&e&&document.body&&(x=window,f=document.body,s=document.documentElement,a=e.utils.toArray,e.config({autoKillThreshold:7}),g=e.config(),u=1)}var e,u,x,s,f,a,g,i={version:"3.3.0",name:"scrollTo",rawVars:1,register:function register(t){e=t,r()},init:function init(t,e,n,i,l){u||r();var s=this;s.isWin=t===x,s.target=t,s.tween=n,"object"!=typeof e?m((e={y:e}).y)&&"max"!==e.y&&"="!==e.y.charAt(1)&&(e.x=e.y):e.nodeType&&(e={y:e,x:e}),s.vars=e,s.autoKill=!!e.autoKill,s.getX=o(t,"x"),s.getY=o(t,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),null!=e.x?(s.add(s,"x",s.x,q(e.x,t,"x",s.x)-(e.offsetX||0),i,l,Math.round),s._props.push("scrollTo_x")):s.skipX=1,null!=e.y?(s.add(s,"y",s.y,q(e.y,t,"y",s.y)-(e.offsetY||0),i,l,Math.round),s._props.push("scrollTo_y")):s.skipY=1},render:function render(t,e){for(var o,r,i,l,s,u=e._pt,f=e.target,p=e.tween,a=e.autoKill,c=e.xPrev,y=e.yPrev,d=e.isWin;u;)u.r(t,u.d),u=u._next;o=d||!e.skipX?e.getX():c,i=(r=d||!e.skipY?e.getY():y)-y,l=o-c,s=g.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),a&&(!e.skipX&&(s<l||l<-s)&&o<n(f,"x")&&(e.skipX=1),!e.skipY&&(s<i||i<-s)&&r<n(f,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(p.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(p,e.vars.onAutoKillParams||[]))),d?x.scrollTo(e.skipX?o:e.x,e.skipY?r:e.y):(e.skipY||(f.scrollTop=e.y),e.skipX||(f.scrollLeft=e.x)),e.xPrev=e.x,e.yPrev=e.y},kill:function kill(t){var e="scrollTo"===t;!e&&"scrollTo_x"!==t||(this.skipX=1),!e&&"scrollTo_y"!==t||(this.skipY=1)}};i.max=n,i.getOffset=p,i.buildGetter=o,l()&&e.registerPlugin(i),t.ScrollToPlugin=i,t.default=i;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 k(){return"undefined"!=typeof window}function l(){return e||k()&&(e=window.gsap)&&e.registerPlugin&&e}function m(t){return"string"==typeof t}function n(t,e){var o="x"===e?"Width":"Height",n="scroll"+o,r="client"+o;return t===x||t===s||t===f?Math.max(s[n],f[n])-(x["inner"+o]||s[r]||f[r]):t[n]-t["offset"+o]}function o(t,e){var o="scroll"+("x"===e?"Left":"Top");return t===x&&(null!=t.pageXOffset?o="page"+e.toUpperCase()+"Offset":t=null!=s[o]?s:f),function(){return t[o]}}function p(t,e){var n=a(t)[0].getBoundingClientRect(),r=!e||e===x||e===f,i=r?{top:s.clientTop-(x.pageYOffset||s.scrollTop||f.scrollTop||0),left:s.clientLeft-(x.pageXOffset||s.scrollLeft||f.scrollLeft||0)}:e.getBoundingClientRect(),l={x:n.left-i.left,y:n.top-i.top};return!r&&e&&(l.x+=o(e,"x")(),l.y+=o(e,"y")()),l}function q(t,e,o,r){return isNaN(t)||"object"==typeof t?m(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+r:"max"===t?n(e,o):Math.min(n(e,o),p(t,e)[o]):parseFloat(t)}function r(){e=l(),k()&&e&&document.body&&(x=window,f=document.body,s=document.documentElement,a=e.utils.toArray,e.config({autoKillThreshold:7}),g=e.config(),u=1)}var e,u,x,s,f,a,g,i={version:"3.3.1",name:"scrollTo",rawVars:1,register:function register(t){e=t,r()},init:function init(t,e,n,i,l){u||r();var s=this;s.isWin=t===x,s.target=t,s.tween=n,"object"!=typeof e?m((e={y:e}).y)&&"max"!==e.y&&"="!==e.y.charAt(1)&&(e.x=e.y):e.nodeType&&(e={y:e,x:e}),s.vars=e,s.autoKill=!!e.autoKill,s.getX=o(t,"x"),s.getY=o(t,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),null!=e.x?(s.add(s,"x",s.x,q(e.x,t,"x",s.x)-(e.offsetX||0),i,l,Math.round),s._props.push("scrollTo_x")):s.skipX=1,null!=e.y?(s.add(s,"y",s.y,q(e.y,t,"y",s.y)-(e.offsetY||0),i,l,Math.round),s._props.push("scrollTo_y")):s.skipY=1},render:function render(t,e){for(var o,r,i,l,s,u=e._pt,f=e.target,p=e.tween,a=e.autoKill,c=e.xPrev,y=e.yPrev,d=e.isWin;u;)u.r(t,u.d),u=u._next;o=d||!e.skipX?e.getX():c,i=(r=d||!e.skipY?e.getY():y)-y,l=o-c,s=g.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),a&&(!e.skipX&&(s<l||l<-s)&&o<n(f,"x")&&(e.skipX=1),!e.skipY&&(s<i||i<-s)&&r<n(f,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(p.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(p,e.vars.onAutoKillParams||[]))),d?x.scrollTo(e.skipX?o:e.x,e.skipY?r:e.y):(e.skipY||(f.scrollTop=e.y),e.skipX||(f.scrollLeft=e.x)),e.xPrev=e.x,e.yPrev=e.y},kill:function kill(t){var e="scrollTo"===t;!e&&"scrollTo_x"!==t||(this.skipX=1),!e&&"scrollTo_y"!==t||(this.skipY=1)}};i.max=n,i.getOffset=p,i.buildGetter=o,l()&&e.registerPlugin(i),t.ScrollToPlugin=i,t.default=i;if (typeof(window)==="undefined"||window!==t){Object.defineProperty(t,"__esModule",{value:!0})} else {delete t.default}}); | ||
@@ -8,3 +8,3 @@ (function (global, factory) { | ||
/*! | ||
* ScrollTrigger 3.3.0 | ||
* ScrollTrigger 3.3.1 | ||
* https://greensock.com | ||
@@ -270,13 +270,13 @@ * | ||
_listeners = {}, | ||
_emptyArray = [], | ||
_dispatch = function _dispatch(type) { | ||
return _listeners[type] && _listeners[type].forEach(function (f) { | ||
return _listeners[type] && _listeners[type].map(function (f) { | ||
return f(); | ||
}); | ||
}) || _emptyArray; | ||
}, | ||
_refreshAll = function _refreshAll(force) { | ||
var l = _triggers.length, | ||
var refreshInits = _dispatch("refreshInit"), | ||
l = _triggers.length, | ||
i = 0; | ||
_dispatch("refreshInit"); | ||
for (; i < l; i++) { | ||
@@ -286,2 +286,6 @@ _triggers[i].refresh(force !== true); | ||
refreshInits.forEach(function (result) { | ||
return result && result.render && result.render(-1); | ||
}); | ||
_dispatch("refresh"); | ||
@@ -514,3 +518,3 @@ }, | ||
function ScrollTrigger(vars, animation) { | ||
_coreInitted || console.warn("Please gsap.registerPlugin(ScrollTrigger)"); | ||
_coreInitted || ScrollTrigger.register(gsap) || console.warn("Please gsap.registerPlugin(ScrollTrigger)"); | ||
this.init(vars, animation); | ||
@@ -522,4 +526,2 @@ } | ||
_proto.init = function init(vars, animation) { | ||
var _this = this; | ||
this.progress = 0; | ||
@@ -563,6 +565,9 @@ this.vars && this.kill(1); | ||
borderWidth = isViewport ? 0 : parseFloat(_getComputedStyle(scroller)["border" + direction.p2 + _Width]) || 0, | ||
self = this, | ||
softRefresh = function softRefresh() { | ||
return ScrollTrigger.removeEventListener("scrollEnd", softRefresh) || _this.refresh(); | ||
return ScrollTrigger.removeEventListener("scrollEnd", softRefresh) || self.refresh(); | ||
}, | ||
self = this, | ||
onRefreshInit = vars.onRefreshInit && function () { | ||
return vars.onRefreshInit(self); | ||
}, | ||
tweenTo, | ||
@@ -595,3 +600,2 @@ pinCache, | ||
cs, | ||
initted, | ||
snap1, | ||
@@ -623,3 +627,3 @@ snap2, | ||
animation.vars.lazy = false; | ||
animation._initted || animation.render(0, true, true); | ||
animation._initted || animation.vars.immediateRender !== false && animation.render(0, true, true); | ||
self.animation = animation.pause(); | ||
@@ -757,3 +761,4 @@ animation.scrollTrigger = self; | ||
var prevScroll = self.scroll(); | ||
var prevScroll = self.scroll(), | ||
prevProgress = self.progress; | ||
_refreshing = 1; | ||
@@ -846,3 +851,9 @@ scrubTween && scrubTween.kill(); | ||
_refreshing = isReverted = 0; | ||
initted = 1; | ||
if (prevProgress !== self.progress) { | ||
scrubTween && animation.totalProgress(prevProgress, true); | ||
self.progress = prevProgress; | ||
self.update(); | ||
} | ||
pin && pinSpacing && (spacer._pinOffset = Math.round(self.progress * change)); | ||
@@ -853,3 +864,3 @@ onRefresh && onRefresh(self); | ||
self.getVelocity = function () { | ||
return (self.scroll() - scroll2) / (_getTime() - _time2) * 1000; | ||
return (self.scroll() - scroll2) / (_getTime() - _time2) * 1000 || 0; | ||
}; | ||
@@ -920,3 +931,3 @@ | ||
} else if (animation) { | ||
animation.totalProgress(clipped); | ||
animation.totalProgress(clipped, !!_refreshing); | ||
} | ||
@@ -932,6 +943,6 @@ | ||
if (stateChanged) { | ||
toggleState = clipped && !prevProgress ? 0 : clipped === 1 ? 1 : prevProgress === 1 ? 2 : 3; | ||
if (stateChanged && !_refreshing) { | ||
toggleState = clipped && !prevProgress && clipped < 1 ? 0 : clipped === 1 && prevProgress < 1 ? 1 : prevProgress === 1 && clipped > 0 ? 2 : 3; | ||
if (clipped === 1 && once && !reset) { | ||
if (clipped === 1 && once) { | ||
self.kill(); | ||
@@ -951,17 +962,15 @@ } else if (isToggle) { | ||
onUpdate && !_refreshing && onUpdate(self); | ||
onUpdate && onUpdate(self); | ||
} | ||
if (!_refreshing || !initted) { | ||
toggleClass && toggled && _toArray(toggleClass.targets).forEach(function (el) { | ||
return el.classList.toggle(toggleClass.className); | ||
}); | ||
onToggle && toggled && onToggle(self); | ||
toggleClass && toggled && _toArray(toggleClass.targets).forEach(function (el) { | ||
return el.classList.toggle(toggleClass.className); | ||
}); | ||
onToggle && toggled && onToggle(self); | ||
callbacks[toggleState] && callbacks[toggleState](self); | ||
once && (callbacks[toggleState] = 0); | ||
if (!toggled) { | ||
toggleState = clipped === 1 ? 1 : 3; | ||
callbacks[toggleState] && callbacks[toggleState](self); | ||
once && (callbacks[toggleState] = 0); | ||
if (!toggled) { | ||
toggleState = clipped === 1 ? 1 : 3; | ||
callbacks[toggleState] && callbacks[toggleState](self); | ||
} | ||
} | ||
@@ -987,4 +996,4 @@ } else if (isToggle && onUpdate && !_refreshing) { | ||
animation && animation.add && gsap.delayedCall(0.01, self.refresh); | ||
self.refresh(); | ||
onRefreshInit && _addListener(ScrollTrigger, "refreshInit", onRefreshInit); | ||
animation && (animation.add ? gsap.delayedCall(0.01, self.refresh) : self.refresh()); | ||
} | ||
@@ -998,2 +1007,3 @@ }; | ||
pin && _swapPinOut(pin, spacer, pinOriginalState); | ||
onRefreshInit && _removeListener(ScrollTrigger, "refreshInit", onRefreshInit); | ||
@@ -1036,62 +1046,67 @@ if (!isViewport) { | ||
_body = _doc.body; | ||
} | ||
_raf = _win.requestAnimationFrame || function (f) { | ||
return setTimeout(f, 16); | ||
}; | ||
if (gsap) { | ||
_toArray = gsap.utils.toArray; | ||
_clamp = gsap.utils.clamp; | ||
gsap.core.globals("ScrollTrigger", ScrollTrigger); | ||
_addListener(_win, "mousewheel", _onScroll); | ||
if (_body) { | ||
_raf = _win.requestAnimationFrame || function (f) { | ||
return setTimeout(f, 16); | ||
}; | ||
_root = [_win, _doc, _docEl, _body]; | ||
_addListener(_win, "mousewheel", _onScroll); | ||
_addListener(_doc, "scroll", _onScroll); | ||
_root = [_win, _doc, _docEl, _body]; | ||
var bodyStyle = _body.style, | ||
border = bodyStyle.borderTop, | ||
bounds; | ||
bodyStyle.borderTop = "1px solid #000"; | ||
bounds = _getBounds(_body); | ||
_vertical.m = Math.round(bounds.top + _vertical.sc()) || 0; | ||
_horizontal.m = Math.round(bounds.left + _horizontal.sc()) || 0; | ||
border ? bodyStyle.borderTop = border : bodyStyle.removeProperty("border-top"); | ||
} | ||
_addListener(_doc, "scroll", _onScroll); | ||
if (gsap && _docEl) { | ||
_toArray = gsap.utils.toArray; | ||
_clamp = gsap.utils.clamp; | ||
_syncInterval = setInterval(_sync, 100); | ||
gsap.delayedCall(0.5, function () { | ||
return _startup = 0; | ||
}); | ||
var bodyStyle = _body.style, | ||
border = bodyStyle.borderTop, | ||
bounds; | ||
bodyStyle.borderTop = "1px solid #000"; | ||
bounds = _getBounds(_body); | ||
_vertical.m = Math.round(bounds.top + _vertical.sc()) || 0; | ||
_horizontal.m = Math.round(bounds.left + _horizontal.sc()) || 0; | ||
border ? bodyStyle.borderTop = border : bodyStyle.removeProperty("border-top"); | ||
_syncInterval = setInterval(_sync, 100); | ||
gsap.delayedCall(0.5, function () { | ||
return _startup = 0; | ||
}); | ||
_addListener(_doc, "touchcancel", _passThrough); | ||
_addListener(_doc, "touchcancel", _passThrough); | ||
_addListener(_body, "touchstart", _passThrough); | ||
_addListener(_body, "touchstart", _passThrough); | ||
_multiListener(_addListener, _doc, "pointerdown,touchstart,mousedown", function () { | ||
return _pointerIsDown = 1; | ||
}); | ||
_multiListener(_addListener, _doc, "pointerdown,touchstart,mousedown", function () { | ||
return _pointerIsDown = 1; | ||
}); | ||
_multiListener(_addListener, _doc, "pointerup,touchend,mouseup", function () { | ||
return _pointerIsDown = 0; | ||
}); | ||
_multiListener(_addListener, _doc, "pointerup,touchend,mouseup", function () { | ||
return _pointerIsDown = 0; | ||
}); | ||
_transformProp = gsap.utils.checkPrefix("transform"); | ||
_transformProp = gsap.utils.checkPrefix("transform"); | ||
_stateProps.push(_transformProp); | ||
_stateProps.push(_transformProp); | ||
_coreInitted = _getTime(); | ||
_resizeDelay = gsap.delayedCall(0.2, _refreshAll).pause(); | ||
_coreInitted = _getTime(); | ||
_resizeDelay = gsap.delayedCall(0.2, _refreshAll).pause(); | ||
_addListener(_doc, "visibilitychange", function () { | ||
return _doc.hidden || _refreshAll(); | ||
}); | ||
_addListener(_doc, "visibilitychange", function () { | ||
return _doc.hidden || _refreshAll(); | ||
}); | ||
_addListener(_doc, "DOMContentLoaded", _refreshAll); | ||
_addListener(_doc, "DOMContentLoaded", _refreshAll); | ||
_addListener(_win, "load", function () { | ||
return _lastScrollTime || _refreshAll(); | ||
}); | ||
_addListener(_win, "load", function () { | ||
return _lastScrollTime || _refreshAll(); | ||
}); | ||
_addListener(_win, "resize", _onResize); | ||
_addListener(_win, "resize", _onResize); | ||
} | ||
} | ||
return _coreInitted; | ||
}; | ||
@@ -1115,3 +1130,3 @@ | ||
}(); | ||
ScrollTrigger.version = "3.3.0"; | ||
ScrollTrigger.version = "3.3.1"; | ||
@@ -1163,2 +1178,49 @@ ScrollTrigger.create = function (vars, animation) { | ||
ScrollTrigger.batch = function (targets, vars) { | ||
var result = [], | ||
varsCopy = {}, | ||
interval = vars.interval || 0.02, | ||
batchMax = vars.batchMax || 1e9, | ||
proxyCallback = function proxyCallback(type, callback) { | ||
var elements = [], | ||
triggers = [], | ||
delay = gsap.delayedCall(interval, function () { | ||
callback(elements, triggers); | ||
elements = []; | ||
triggers = []; | ||
}).pause(); | ||
return function (self) { | ||
elements.length || delay.restart(true); | ||
elements.push(self.trigger); | ||
triggers.push(self); | ||
batchMax <= elements.length && delay.progress(1); | ||
}; | ||
}, | ||
p; | ||
for (p in vars) { | ||
varsCopy[p] = p.substr(0, 2) === "on" && _isFunction(vars[p]) && p !== "onRefreshInit" ? proxyCallback(p, vars[p]) : vars[p]; | ||
} | ||
if (_isFunction(batchMax)) { | ||
batchMax = batchMax(); | ||
ScrollTrigger.addEventListener("refresh", function () { | ||
return batchMax = vars.batchMax(); | ||
}); | ||
} | ||
_toArray(targets).forEach(function (target) { | ||
var config = {}; | ||
for (p in varsCopy) { | ||
config[p] = varsCopy[p]; | ||
} | ||
config.trigger = target; | ||
result.push(ScrollTrigger.create(config)); | ||
}); | ||
return result; | ||
}; | ||
_getGSAP() && gsap.registerPlugin(ScrollTrigger); | ||
@@ -1165,0 +1227,0 @@ |
/*! | ||
* ScrollTrigger 3.3.0 | ||
* ScrollTrigger 3.3.1 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!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 z(e){return e}function A(){return"undefined"!=typeof window}function B(){return xe||A()&&(xe=window.gsap)&&xe.registerPlugin&&xe}function C(e){return!!~i.indexOf(e)}function D(t,e){var r=e.s;return function(e){return arguments.length?t[r]=e:t[r]}}function E(e,t){var r=t.s,n=t.d2;return(r="scroll"+n)&&C(e)?Math.max(x[r],Se[r])-(we["inner"+n]||x["client"+n]||Se["client"+n]):e[r]-e["offset"+n]}function F(e){return"string"==typeof e}function G(e){return"function"==typeof e}function H(e){return"number"==typeof e}function I(e){return"object"==typeof e}function ba(e){return we.getComputedStyle(e)}function da(e,t){for(var r in t)r in e||(e[r]=t[r]);return e}function ea(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==ba(e)[f]&&xe.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}function fa(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0}function ha(t,r,e,n){return e.split(",").forEach(function(e){return t(r,e,n)})}function ia(e,t,r){return e.addEventListener(t,r,{passive:!0})}function ja(e,t,r){return e.removeEventListener(t,r)}function na(e,t){if(F(e)){var r=e.indexOf("="),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;n&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in g?g[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function oa(e,t,r,n,o,i,a){var s=o.startColor,l=o.endColor,c=o.fontSize,f=o.indent,u=o.fontWeight,p=Te.createElement("div"),d=C(r),g=-1!==e.indexOf("scroller"),h=d?Se:r,v=-1!==e.indexOf("start"),m=v?s:l,b="border-color:"+m+";font-size:"+c+";color:"+m+";font-weight:"+u+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return b+="position:"+(g&&d?"fixed;":"absolute;"),!g&&d||(b+=(n===Ye?y:w)+":"+(i+parseFloat(f))+"px;"),a&&(b+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=v,p.setAttribute("class","gsap-marker-"+e),p.style.cssText=b,p.innerText=t||0===t?e+"-"+t:e,h.insertBefore(p,h.children[0]),p._offset=p["offset"+n.op.d2],T(p,0,n,d,v),p}function sa(){return l=l||s(n)}function ta(){l||(l=s(n),ze||v("scrollStart"),ze=Ee())}function ua(){return!Fe&&200<Ee()-ze&&a.restart(!0)}function xa(e){var t=Ze.length,r=0;for(v("refreshInit");r<t;r++)Ze[r].refresh(!0!==e);v("refresh")}function Ba(e,t,r){if(e.parentNode===t){var n=t.parentNode;Je(r),n&&(n.insertBefore(e,t),n.removeChild(t))}}function Ca(e,t,r){if(e.parentNode!==t){for(var n,o=m.length,i=t.style,a=e.style;o--;)i[n=m[o]]=r[n];i.position="absolute"===r.position?"absolute":"relative",a[w]=a[y]="auto",i.overflow="visible",i.boxSizing="border-box",i[Le]=fa(e,Xe)+qe,i[Be]=fa(e,Ye)+qe,i[je]=a[Ge]=a[d]=a[p]="0",a[Le]=r[Le],a[Be]=r[Be],a[je]=r[je],e.parentNode.insertBefore(t,e),t.appendChild(e)}}function Fa(e){for(var t=b.length,r=e.style,n=[],o=0;o<t;o++)n.push(b[o],r[b[o]]);return n.t=e,n}function Ia(e,t,r,n,o,i,a,s,l,c,f,u){if(G(e)&&(e=e(s)),F(e)&&"max"===e.substr(0,3)&&(e=u+("="===e.charAt(4)?na("0"+e.substr(3),r):0)),H(e))a&&T(a,r,n,f,!0);else{G(t)&&(t=t(s));var p,d,g,h=Ce(t)[0]||Se,v=ea(h)||{},m=e.split(" ");v&&(v.left||v.top)||"none"!==ba(h).display||(g=h.style.display,h.style.display="block",v=ea(h),g?h.style.display=g:h.style.removeProperty("display")),p=na(m[0],v[n.d]),d=na(m[1]||"0",r),e=v[n.p]-l[n.p]-c+p+o-d,a&&T(a,d,n,f,r-d<20||a._isStart&&20<d),r-=r-d}if(i){var b=e+r,y=i._isStart;u="scroll"+n.d2,T(i,b,n,f,y&&20<b||!y&&(f?Math.max(Se[u],x[u]):i.parentNode[u])<=b+1),f&&(l=ea(a),f&&(i.style[n.op.p]=l[n.op.p]-n.op.m-i._offset+qe))}return Math.round(e)}function La(l,e){var c,f=C(l)?e.sc:D(l,e),u="_scroll"+e.p2;return l[u]=f,function getTween(e,t,r,n,o){var i=getTween.tween,a=t.onComplete,s={};return i&&i.kill(),c=f(),t[u]=e,(t.modifiers=s)[u]=function(e){return f()!==c?(i.kill(),getTween.tween=0,e=f()):n&&(e=r+n*i.ratio+o*i.ratio*i.ratio),c=Math.round(e)},t.onComplete=function(){getTween.tween=0,a&&a.call(i)},i=getTween.tween=xe.to(l,t)}}var xe,o,we,Te,x,Se,i,a,s,l,Ce,ke,_e,c,Fe,Oe,f,Pe=1,Ee=Date.now,u=Ee(),ze=0,Me=1,Ae=Math.abs,t="scrollLeft",r="scrollTop",p="left",d="top",y="right",w="bottom",Le="width",Be="height",Ie="Right",Ne="Left",De="Top",Re="Bottom",je="padding",Ge="margin",He="Width",We="Height",qe="px",Xe={s:t,p:p,p2:Ne,os:y,os2:Ie,d:Le,d2:He,a:"x",sc:function sc(e){return arguments.length?we.scrollTo(e,Ye.sc()):we.pageXOffset||Te[t]||x[t]||Se[t]||0}},Ye={s:r,p:d,p2:De,os:w,os2:Re,d:Be,d2:We,a:"y",op:Xe,sc:function sc(e){return arguments.length?we.scrollTo(Xe.sc(),e):we.pageYOffset||Te[r]||x[r]||Se[r]||0}},Ue={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Ve={toggleActions:"play",anticipatePin:0},g={top:0,left:0,center:.5,bottom:1,right:1},T=function _positionMarker(e,t,r,n,o){var i={},a=r[o?"os2":"p2"],s=r[o?"p2":"os2"];e._isFlipped=o,i[r.a+"Percent"]=o?-100:0,i[r.a]=o?1:0,i["border"+a+He]=1,i["border"+s+He]=0,i[r.p]=t,xe.set(e,i)},Ze=[],$e={},h={},v=function _dispatch(e){return h[e]&&h[e].forEach(function(e){return e()})},n=function _updateAll(){var e=Ze.length,t=0,r=Ee(),n=50<=r-u;for(n&&(ze&&!Oe&&200<r-ze&&(ze=0,v("scrollEnd")),_e=u,u=r);t<e;t++)Ze[t]&&Ze[t].update(0,n);l=0},m=[p,d,w,y,Ge+Re,Ge+Ie,Ge+De,Ge+Ne,"display","flexShrink"],b=m.concat([Le,Be,"boxSizing","max"+He,"max"+We,"position",Ge,je,je+De,je+Ie,je+Re,je+Ne]),S=/([A-Z])/g,Je=function _setState(e){for(var t,r,n=e.t.style,o=e.length,i=0;i<o;i+=2)r=e[i+1],t=e[i],r?n[t]=r:n[t]&&n.removeProperty(t.replace(S,"-$1").toLowerCase())},Ke={left:0,top:0},Qe=/(?:webkit|moz|length)/i;Xe.op=Ye;var k=(ScrollTrigger.prototype.init=function init(g,h){var e=this;if(this.progress=0,this.vars&&this.kill(1),Me){var d,t,c,v,m,b,y,x,w,T,S,k,r,_,O,P,M,A,n,L,B,N,R,j,W,q,o,X,Y,U,V,Z,i,f,$,J,K=(g=da(F(g)||H(g)||g.nodeType?{trigger:g}:g,Ve)).horizontal?Xe:Ye,Q=g.onUpdate,ee=g.toggleClass,a=g.id,te=g.onToggle,re=g.onRefresh,s=g.scrub,ne=g.trigger,oe=g.pin,ie=g.pinSpacing,ae=g.invalidateOnRefresh,se=g.anticipatePin,l=g.onScrubComplete,u=g.onSnapComplete,le=g.once,ce=g.snap,fe=g.pinReparent,ue=!s&&0!==s,pe=Ce(g.scroller||we)[0],p=xe.core.getCache(pe),de=C(pe),ge=[g.onEnter,g.onLeave,g.onEnterBack,g.onLeaveBack],he=ue&&(le?"play":g.toggleActions).split(" "),ve="markers"in g?g.markers:Ve.markers,me=de?0:parseFloat(ba(pe)["border"+K.p2+He])||0,be=function softRefresh(){return ScrollTrigger.removeEventListener("scrollEnd",softRefresh)||e.refresh()},ye=this;se*=45,Ze.push(ye),ye.scroller=pe,ye.scroll=de?K.sc:D(pe,K),m=ye.scroll(),ye.vars=g,h=h||g.animation,p.tweenScroll=p.tweenScroll||{top:La(pe,Ye),left:La(pe,Xe)},ye.tweenTo=d=p.tweenScroll[K.p],h&&(h.vars.lazy=!1,h._initted||h.render(0,!0,!0),ye.animation=h.pause(),h.scrollTrigger=ye,(i=H(s)&&s)&&(Z=xe.to(h,{ease:"power3",duration:i,onComplete:function onComplete(){return l&&l(ye)}})),Y=0,a=a||h.vars.id),ce&&(I(ce)||(ce={snapTo:ce}),c=G(ce.snapTo)?ce.snapTo:"labels"===ce.snapTo?function _getLabels(i){return function(e){var t,r=[],n=i.labels,o=i.duration();for(t in n)r.push(n[t]/o);return xe.utils.snap(r,e)}}(h):xe.utils.snap(ce.snapTo),f=ce.duration||{min:.1,max:2},f=I(f)?ke(f.min,f.max):ke(f,f),$=xe.delayedCall(ce.delay||i/2||.1,function(){if(!ze||ze===V&&!Oe){var e=h&&!ue?h.totalProgress():ye.progress,t=(e-U)/(Ee()-_e)*1e3||0,r=Ae(t/2)*t/.185,n=e+r,o=ke(0,1,c(n,ye)),i=o-e-r,a=ye.scroll(),s=Math.round(y+o*_),l=d.tween;if(a<=x&&y<=a){if(l&&!l._initted){if(l.data<=Math.abs(s-a))return;l.kill()}d(s,{duration:f(Ae(.185*Math.max(Ae(n-e),Ae(o-e))/t/.05||0)),ease:ce.ease||"power3",data:Math.abs(s-a),onComplete:function onComplete(){Y=U=h&&!ue?h.totalProgress():ye.progress,u&&u(ye)}},y+e*_,r*_,i*_)}}else $.restart(!0)}).pause()),a&&($e[a]=ye),ne=ye.trigger=Ce(ne||oe)[0],oe=!0===oe?ne:Ce(oe)[0],F(ee)&&(ee={targets:ne,className:ee}),oe&&(!1===ie||ie===Ge||(ie="flex"!==ba(oe.parentNode).display&&je),ye.pin=oe,!1!==g.force3D&&xe.set(oe,{force3D:!0}),(t=xe.core.getCache(oe)).spacer?O=t.pinState:(t.spacer=A=Te.createElement("div"),A.setAttribute("class","pin-spacer"+(a?" pin-spacer-"+a:"")),t.pinState=O=Fa(oe)),ye.spacer=A=t.spacer,o=ba(oe),R=o[ie+K.os2],L=xe.getProperty(oe),B=xe.quickSetter(oe,K.a,qe),Ca(oe,A,o),M=Fa(oe)),ve&&(r=I(ve)?da(ve,Ue):Ue,S=oa("scroller-start",a,pe,K,r,0),k=oa("scroller-end",a,pe,K,r,0,S),n=S["offset"+K.op.d2],w=oa("start",a,pe,K,r,n),T=oa("end",a,pe,K,r,n),de||(function _makePositionable(e){e.style.position="absolute"===ba(e).position?"absolute":"relative"}(pe),xe.set([S,k],{force3D:!0}),W=xe.quickSetter(S,K.a,qe),q=xe.quickSetter(k,K.a,qe))),ye.revert=function(){ye.update(1),oe&&Ba(oe,A,O),v=1},ye.refresh=function(e){if(!Fe&&J)if(oe&&e&&ze)ia(ScrollTrigger,"scrollEnd",be);else{var t=ye.scroll();Fe=1,Z&&Z.kill(),ae&&h&&h.progress(0).invalidate().progress(ye.progress),v||ye.revert();var r,n,o,i,a,s=(de?we["inner"+K.d2]:pe["client"+K.d2])||0,l=de?Ke:ea(pe),c=E(pe,K),f=0,u=g.end,p=g.endTrigger||ne,d=g.start||(oe||!ne?"0 0":"0 100%");if(y=Ia(d,ne,s,K,ye.scroll(),w,S,ye,l,me,de,c)||(oe?-.001:0),G(u)&&(u=u(ye)),F(u)&&!u.indexOf("+=")&&(~u.indexOf(" ")?u=(F(d)?d.split(" ")[0]:"")+u:(f=na(u.substr(2),s),u=F(d)?d:y+f,p=ne)),x=Math.max(y,Ia(u||(p?"100% 0":c),p,s,K,ye.scroll()+f,T,k,ye,l,me,de,c))||-.001,_=x-y||(y-=.01)&&.001,oe)r=ba(oe),i=K===Ye,o=ye.scroll(),N=parseFloat(L(K.a)),Ca(oe,A,r),M=Fa(oe),n=ea(oe,!0),ie&&(A.style[ie+K.os2]=_+qe,(j=ie===je?fa(oe,K)+_:0)&&(A.style[K.d]=j+qe),de&&ye.scroll(o)),de&&((a={top:n.top+(i?o-y:0)+qe,left:n.left+(i?0:o-y)+qe,boxSizing:"border-box",position:"fixed"})[Le]=a.maxWidth=Math.ceil(n.width)+qe,a[Be]=a["max"+We]=Math.ceil(n.height)+qe,a[Ge]=a[Ge+De]=a[Ge+Ie]=a[Ge+Re]=a[Ge+Ne]="0",a[je]=r[je],a[je+De]=r[je+De],a[je+Ie]=r[je+Ie],a[je+Re]=r[je+Re],a[je+Ne]=r[je+Ne],P=function _copyState(e,t,r){for(var n,o=[],i=e.length,a=r?8:0;a<i;a+=2)n=e[a],o.push(n,n in t?t[n]:e[a+1]);return o.t=e.t,o}(O,a,fe));else if(ne&&ye.scroll())for(n=ne.parentNode;n&&n!==Se;)n._pinOffset&&(y-=n._pinOffset,x-=n._pinOffset),n=n.parentNode;ye.start=y,ye.end=x,ye.scroll()<t&&ye.scroll(t),ye.update(),Fe=v=0,X=1,oe&&ie&&(A._pinOffset=Math.round(ye.progress*_)),re&&re(ye)}},ye.getVelocity=function(){return(ye.scroll()-b)/(Ee()-_e)*1e3},ye.update=function(e,t){var r,n,o,i,a,s=ye.scroll(),l=e?0:(s-y)/_,c=l<0?0:1<l?1:l||0,f=ye.progress;if(t&&(b=m,m=s,ce&&(U=Y,Y=h&&!ue?h.totalProgress():c)),se&&!c&&oe&&!Fe&&y<s+(s-b)/(Ee()-_e)*se&&(c=1e-4),c!==f&&J){if(i=(a=(r=ye.isActive=!!c&&c<1)!=(!!f&&f<1))||!!c!=!!f,ye.direction=f<c?1:-1,ye.progress=c,oe)if(e&&ie&&(A.style[ie+K.os2]=R),de){if(i){if(o=s+1>=E(pe,K),fe){if(!Fe&&(r||o)){var u=ea(oe,!0),p=s-y;oe.style.top=u.top+(K===Ye?p:0)+qe,oe.style.left=u.left+(K===Ye?0:p)+qe}!function _reparent(e,t){if(e.parentNode!==t){var r,n,o=e.style;if(t===Se)for(r in e._stOrig=o.cssText,n=ba(e))+r||Qe.test(r)||!n[r]||"string"!=typeof o[r]||"0"===r||(o[r]=n[r]);else o.cssText=e._stOrig;t.appendChild(e)}}(oe,Fe||!r&&!o?A:Se)}Je(r||o?P:M),B(N+(1!==c||o?0:_))}}else B(N+_*c);ue||(!Z||Fe||Pe?h&&h.totalProgress(c):(Z.vars.totalProgress=c,Z.invalidate().restart()),Q&&!e&&Q(ye)),!ce||d.tween||Fe||Pe||(V=ze,$.restart(!0)),i?(n=c&&!f?0:1===c?1:1===f?2:3,1===c&&le&&!e?ye.kill():ue&&(o=he[n],h&&("complete"===o||"reset"===o||o in h)&&("complete"===o?h.pause().totalProgress(1):"reset"===o?h.restart(!0).pause():h[o]()),Q&&!Fe&&Q(ye)),Fe&&X||(ee&&a&&Ce(ee.targets).forEach(function(e){return e.classList.toggle(ee.className)}),te&&a&&te(ye),ge[n]&&ge[n](ye),le&&(ge[n]=0),a||ge[n=1===c?1:3]&&ge[n](ye))):ue&&Q&&!Fe&&Q(ye)}q&&(W(s+(S._isFlipped?1:0)),q(s))},ye.enable=function(){J||(J=!0,ia(pe,"resize",ua),ia(pe,"scroll",ta),h&&h.add&&xe.delayedCall(.01,ye.refresh),ye.refresh())},ye.disable=function(e){if(J&&(e!==(J=ye.isActive=!1)&&ye.update(1),oe&&Ba(oe,A,O),!de)){for(var t=Ze.length;t--;)if(Ze[t].scroller===pe&&Ze[t]!==ye)return;ja(pe,"resize",ua),ja(pe,"scroll",ta)}},ye.kill=function(e){ye.disable(e),a&&delete $e[a],Ze.splice(Ze.indexOf(ye),1),h&&(h.scrollTrigger=null)},ye.enable()}else this.update=this.refresh=this.kill=z},ScrollTrigger.register=function register(e){if(xe=e||B(),A()&&window.document){we=window,Te=document,x=Te.documentElement,Se=Te.body,s=we.requestAnimationFrame||function(e){return setTimeout(e,16)},ia(we,"mousewheel",ta),i=[we,Te,x,Se],ia(Te,"scroll",ta);var t,r=Se.style,n=r.borderTop;r.borderTop="1px solid #000",t=ea(Se),Ye.m=Math.round(t.top+Ye.sc())||0,Xe.m=Math.round(t.left+Xe.sc())||0,n?r.borderTop=n:r.removeProperty("border-top")}xe&&x&&(Ce=xe.utils.toArray,ke=xe.utils.clamp,c=setInterval(sa,100),xe.delayedCall(.5,function(){return Pe=0}),ia(Te,"touchcancel",z),ia(Se,"touchstart",z),ha(ia,Te,"pointerdown,touchstart,mousedown",function(){return Oe=1}),ha(ia,Te,"pointerup,touchend,mouseup",function(){return Oe=0}),f=xe.utils.checkPrefix("transform"),b.push(f),o=Ee(),a=xe.delayedCall(.2,xa).pause(),ia(Te,"visibilitychange",function(){return Te.hidden||xa()}),ia(Te,"DOMContentLoaded",xa),ia(we,"load",function(){return ze||xa()}),ia(we,"resize",ua))},ScrollTrigger.defaults=function defaults(e){for(var t in e)Ve[t]=e[t]},ScrollTrigger.kill=function kill(){Me=0,Ze.slice(0).forEach(function(e){return e.kill(1)})},ScrollTrigger);function ScrollTrigger(e,t){o||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,t)}k.version="3.3.0",k.create=function(e,t){return new k(e,t)},k.refresh=function(e){return e?ua():xa(!0)},k.update=n,k.maxScroll=function(e,t){return E(e,t?Xe:Ye)},k.getScrollFunc=function(e,t){return(t=t?Xe:Ye)&&(C(e)?t.sc:D(e,t))},k.getById=function(e){return $e[e]},k.getAll=function(){return Ze.slice(0)},k.syncInterval=function(e){return clearInterval(c)||(c=e)&&setInterval(sa,e)},k.isScrolling=function(){return!!ze},k.addEventListener=function(e,t){var r=h[e]||(h[e]=[]);~r.indexOf(t)||r.push(t)},k.removeEventListener=function(e,t){var r=h[e],n=r&&r.indexOf(t);0<=n&&r.splice(n,1)},B()&&xe.registerPlugin(k),e.ScrollTrigger=k,e.default=k;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 z(e){return e}function A(){return"undefined"!=typeof window}function B(){return ye||A()&&(ye=window.gsap)&&ye.registerPlugin&&ye}function C(e){return!!~i.indexOf(e)}function D(t,e){var r=e.s;return function(e){return arguments.length?t[r]=e:t[r]}}function E(e,t){var r=t.s,n=t.d2;return(r="scroll"+n)&&C(e)?Math.max(x[r],Te[r])-(xe["inner"+n]||x["client"+n]||Te["client"+n]):e[r]-e["offset"+n]}function F(e){return"string"==typeof e}function G(e){return"function"==typeof e}function H(e){return"number"==typeof e}function I(e){return"object"==typeof e}function ba(e){return xe.getComputedStyle(e)}function da(e,t){for(var r in t)r in e||(e[r]=t[r]);return e}function ea(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==ba(e)[f]&&ye.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}function fa(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0}function ha(t,r,e,n){return e.split(",").forEach(function(e){return t(r,e,n)})}function ia(e,t,r){return e.addEventListener(t,r,{passive:!0})}function ja(e,t,r){return e.removeEventListener(t,r)}function na(e,t){if(F(e)){var r=e.indexOf("="),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;n&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in g?g[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function oa(e,t,r,n,o,i,a){var s=o.startColor,l=o.endColor,c=o.fontSize,f=o.indent,u=o.fontWeight,p=we.createElement("div"),d=C(r),g=-1!==e.indexOf("scroller"),h=d?Te:r,v=-1!==e.indexOf("start"),m=v?s:l,b="border-color:"+m+";font-size:"+c+";color:"+m+";font-weight:"+u+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return b+="position:"+(g&&d?"fixed;":"absolute;"),!g&&d||(b+=(n===Je?y:w)+":"+(i+parseFloat(f))+"px;"),a&&(b+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=v,p.setAttribute("class","gsap-marker-"+e),p.style.cssText=b,p.innerText=t||0===t?e+"-"+t:e,h.insertBefore(p,h.children[0]),p._offset=p["offset"+n.op.d2],T(p,0,n,d,v),p}function sa(){return l=l||s(m)}function ta(){l||(l=s(m),Oe||v("scrollStart"),Oe=Pe())}function ua(){return!_e&&200<Pe()-Oe&&a.restart(!0)}function ya(e){for(var t=v("refreshInit"),r=Ue.length,n=0;n<r;n++)Ue[n].refresh(!0!==e);t.forEach(function(e){return e&&e.render&&e.render(-1)}),v("refresh")}function Ca(e,t,r){if(e.parentNode===t){var n=t.parentNode;Ze(r),n&&(n.insertBefore(e,t),n.removeChild(t))}}function Da(e,t,r){if(e.parentNode!==t){for(var n,o=b.length,i=t.style,a=e.style;o--;)i[n=b[o]]=r[n];i.position="absolute"===r.position?"absolute":"relative",a[w]=a[y]="auto",i.overflow="visible",i.boxSizing="border-box",i[Ae]=fa(e,qe)+We,i[Ie]=fa(e,Je)+We,i[Ne]=a[Re]=a[d]=a[p]="0",a[Ae]=r[Ae],a[Ie]=r[Ie],a[Ne]=r[Ne],e.parentNode.insertBefore(t,e),t.appendChild(e)}}function Ga(e){for(var t=S.length,r=e.style,n=[],o=0;o<t;o++)n.push(S[o],r[S[o]]);return n.t=e,n}function Ja(e,t,r,n,o,i,a,s,l,c,f,u){if(G(e)&&(e=e(s)),F(e)&&"max"===e.substr(0,3)&&(e=u+("="===e.charAt(4)?na("0"+e.substr(3),r):0)),H(e))a&&T(a,r,n,f,!0);else{G(t)&&(t=t(s));var p,d,g,h=Se(t)[0]||Te,v=ea(h)||{},m=e.split(" ");v&&(v.left||v.top)||"none"!==ba(h).display||(g=h.style.display,h.style.display="block",v=ea(h),g?h.style.display=g:h.style.removeProperty("display")),p=na(m[0],v[n.d]),d=na(m[1]||"0",r),e=v[n.p]-l[n.p]-c+p+o-d,a&&T(a,d,n,f,r-d<20||a._isStart&&20<d),r-=r-d}if(i){var b=e+r,y=i._isStart;u="scroll"+n.d2,T(i,b,n,f,y&&20<b||!y&&(f?Math.max(Te[u],x[u]):i.parentNode[u])<=b+1),f&&(l=ea(a),f&&(i.style[n.op.p]=l[n.op.p]-n.op.m-i._offset+We))}return Math.round(e)}function Ma(l,e){var c,f=C(l)?e.sc:D(l,e),u="_scroll"+e.p2;return l[u]=f,function getTween(e,t,r,n,o){var i=getTween.tween,a=t.onComplete,s={};return i&&i.kill(),c=f(),t[u]=e,(t.modifiers=s)[u]=function(e){return f()!==c?(i.kill(),getTween.tween=0,e=f()):n&&(e=r+n*i.ratio+o*i.ratio*i.ratio),c=Math.round(e)},t.onComplete=function(){getTween.tween=0,a&&a.call(i)},i=getTween.tween=ye.to(l,t)}}var ye,o,xe,we,x,Te,i,a,s,l,Se,Ce,ke,c,_e,Ee,f,Me=1,Pe=Date.now,u=Pe(),Oe=0,ze=1,Fe=Math.abs,t="scrollLeft",r="scrollTop",p="left",d="top",y="right",w="bottom",Ae="width",Ie="height",Le="Right",De="Left",Be="Top",Ge="Bottom",Ne="padding",Re="margin",je="Width",He="Height",We="px",qe={s:t,p:p,p2:De,os:y,os2:Le,d:Ae,d2:je,a:"x",sc:function sc(e){return arguments.length?xe.scrollTo(e,Je.sc()):xe.pageXOffset||we[t]||x[t]||Te[t]||0}},Je={s:r,p:d,p2:Be,os:w,os2:Ge,d:Ie,d2:He,a:"y",op:qe,sc:function sc(e){return arguments.length?xe.scrollTo(qe.sc(),e):xe.pageYOffset||we[r]||x[r]||Te[r]||0}},Xe={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Ye={toggleActions:"play",anticipatePin:0},g={top:0,left:0,center:.5,bottom:1,right:1},T=function _positionMarker(e,t,r,n,o){var i={},a=r[o?"os2":"p2"],s=r[o?"p2":"os2"];e._isFlipped=o,i[r.a+"Percent"]=o?-100:0,i[r.a]=o?1:0,i["border"+a+je]=1,i["border"+s+je]=0,i[r.p]=t,ye.set(e,i)},Ue=[],Ve={},h={},n=[],v=function _dispatch(e){return h[e]&&h[e].map(function(e){return e()})||n},m=function _updateAll(){var e=Ue.length,t=0,r=Pe(),n=50<=r-u;for(n&&(Oe&&!Ee&&200<r-Oe&&(Oe=0,v("scrollEnd")),ke=u,u=r);t<e;t++)Ue[t]&&Ue[t].update(0,n);l=0},b=[p,d,w,y,Re+Ge,Re+Le,Re+Be,Re+De,"display","flexShrink"],S=b.concat([Ae,Ie,"boxSizing","max"+je,"max"+He,"position",Re,Ne,Ne+Be,Ne+Le,Ne+Ge,Ne+De]),k=/([A-Z])/g,Ze=function _setState(e){for(var t,r,n=e.t.style,o=e.length,i=0;i<o;i+=2)r=e[i+1],t=e[i],r?n[t]=r:n[t]&&n.removeProperty(t.replace(k,"-$1").toLowerCase())},$e={left:0,top:0},Ke=/(?:webkit|moz|length)/i;qe.op=Je;var _=(ScrollTrigger.prototype.init=function init(h,v){if(this.progress=0,this.vars&&this.kill(1),ze){var d,e,c,m,g,b,y,x,w,T,S,k,t,_,M,P,O,A,r,L,B,N,R,j,W,q,n,J,X,Y,U,o,f,V,Z,$=(h=da(F(h)||H(h)||h.nodeType?{trigger:h}:h,Ye)).horizontal?qe:Je,K=h.onUpdate,Q=h.toggleClass,i=h.id,ee=h.onToggle,te=h.onRefresh,a=h.scrub,re=h.trigger,ne=h.pin,oe=h.pinSpacing,ie=h.invalidateOnRefresh,ae=h.anticipatePin,s=h.onScrubComplete,u=h.onSnapComplete,se=h.once,le=h.snap,ce=h.pinReparent,fe=!a&&0!==a,ue=Se(h.scroller||xe)[0],l=ye.core.getCache(ue),pe=C(ue),de=[h.onEnter,h.onLeave,h.onEnterBack,h.onLeaveBack],ge=fe&&(se?"play":h.toggleActions).split(" "),p="markers"in h?h.markers:Ye.markers,he=pe?0:parseFloat(ba(ue)["border"+$.p2+je])||0,ve=this,me=function softRefresh(){return ScrollTrigger.removeEventListener("scrollEnd",softRefresh)||ve.refresh()},be=h.onRefreshInit&&function(){return h.onRefreshInit(ve)};ae*=45,Ue.push(ve),ve.scroller=ue,ve.scroll=pe?$.sc:D(ue,$),g=ve.scroll(),ve.vars=h,v=v||h.animation,l.tweenScroll=l.tweenScroll||{top:Ma(ue,Je),left:Ma(ue,qe)},ve.tweenTo=d=l.tweenScroll[$.p],v&&(v.vars.lazy=!1,v._initted||!1!==v.vars.immediateRender&&v.render(0,!0,!0),ve.animation=v.pause(),v.scrollTrigger=ve,(o=H(a)&&a)&&(U=ye.to(v,{ease:"power3",duration:o,onComplete:function onComplete(){return s&&s(ve)}})),J=0,i=i||v.vars.id),le&&(I(le)||(le={snapTo:le}),c=G(le.snapTo)?le.snapTo:"labels"===le.snapTo?function _getLabels(i){return function(e){var t,r=[],n=i.labels,o=i.duration();for(t in n)r.push(n[t]/o);return ye.utils.snap(r,e)}}(v):ye.utils.snap(le.snapTo),f=le.duration||{min:.1,max:2},f=I(f)?Ce(f.min,f.max):Ce(f,f),V=ye.delayedCall(le.delay||o/2||.1,function(){if(!Oe||Oe===Y&&!Ee){var e=v&&!fe?v.totalProgress():ve.progress,t=(e-X)/(Pe()-ke)*1e3||0,r=Fe(t/2)*t/.185,n=e+r,o=Ce(0,1,c(n,ve)),i=o-e-r,a=ve.scroll(),s=Math.round(y+o*_),l=d.tween;if(a<=x&&y<=a){if(l&&!l._initted){if(l.data<=Math.abs(s-a))return;l.kill()}d(s,{duration:f(Fe(.185*Math.max(Fe(n-e),Fe(o-e))/t/.05||0)),ease:le.ease||"power3",data:Math.abs(s-a),onComplete:function onComplete(){J=X=v&&!fe?v.totalProgress():ve.progress,u&&u(ve)}},y+e*_,r*_,i*_)}}else V.restart(!0)}).pause()),i&&(Ve[i]=ve),re=ve.trigger=Se(re||ne)[0],ne=!0===ne?re:Se(ne)[0],F(Q)&&(Q={targets:re,className:Q}),ne&&(!1===oe||oe===Re||(oe="flex"!==ba(ne.parentNode).display&&Ne),ve.pin=ne,!1!==h.force3D&&ye.set(ne,{force3D:!0}),(e=ye.core.getCache(ne)).spacer?M=e.pinState:(e.spacer=A=we.createElement("div"),A.setAttribute("class","pin-spacer"+(i?" pin-spacer-"+i:"")),e.pinState=M=Ga(ne)),ve.spacer=A=e.spacer,n=ba(ne),R=n[oe+$.os2],L=ye.getProperty(ne),B=ye.quickSetter(ne,$.a,We),Da(ne,A,n),O=Ga(ne)),p&&(t=I(p)?da(p,Xe):Xe,S=oa("scroller-start",i,ue,$,t,0),k=oa("scroller-end",i,ue,$,t,0,S),r=S["offset"+$.op.d2],w=oa("start",i,ue,$,t,r),T=oa("end",i,ue,$,t,r),pe||(function _makePositionable(e){e.style.position="absolute"===ba(e).position?"absolute":"relative"}(ue),ye.set([S,k],{force3D:!0}),W=ye.quickSetter(S,$.a,We),q=ye.quickSetter(k,$.a,We))),ve.revert=function(){ve.update(1),ne&&Ca(ne,A,M),m=1},ve.refresh=function(e){if(!_e&&Z)if(ne&&e&&Oe)ia(ScrollTrigger,"scrollEnd",me);else{var t=ve.scroll(),r=ve.progress;_e=1,U&&U.kill(),ie&&v&&v.progress(0).invalidate().progress(ve.progress),m||ve.revert();var n,o,i,a,s,l=(pe?xe["inner"+$.d2]:ue["client"+$.d2])||0,c=pe?$e:ea(ue),f=E(ue,$),u=0,p=h.end,d=h.endTrigger||re,g=h.start||(ne||!re?"0 0":"0 100%");if(y=Ja(g,re,l,$,ve.scroll(),w,S,ve,c,he,pe,f)||(ne?-.001:0),G(p)&&(p=p(ve)),F(p)&&!p.indexOf("+=")&&(~p.indexOf(" ")?p=(F(g)?g.split(" ")[0]:"")+p:(u=na(p.substr(2),l),p=F(g)?g:y+u,d=re)),x=Math.max(y,Ja(p||(d?"100% 0":f),d,l,$,ve.scroll()+u,T,k,ve,c,he,pe,f))||-.001,_=x-y||(y-=.01)&&.001,ne)n=ba(ne),a=$===Je,i=ve.scroll(),N=parseFloat(L($.a)),Da(ne,A,n),O=Ga(ne),o=ea(ne,!0),oe&&(A.style[oe+$.os2]=_+We,(j=oe===Ne?fa(ne,$)+_:0)&&(A.style[$.d]=j+We),pe&&ve.scroll(i)),pe&&((s={top:o.top+(a?i-y:0)+We,left:o.left+(a?0:i-y)+We,boxSizing:"border-box",position:"fixed"})[Ae]=s.maxWidth=Math.ceil(o.width)+We,s[Ie]=s["max"+He]=Math.ceil(o.height)+We,s[Re]=s[Re+Be]=s[Re+Le]=s[Re+Ge]=s[Re+De]="0",s[Ne]=n[Ne],s[Ne+Be]=n[Ne+Be],s[Ne+Le]=n[Ne+Le],s[Ne+Ge]=n[Ne+Ge],s[Ne+De]=n[Ne+De],P=function _copyState(e,t,r){for(var n,o=[],i=e.length,a=r?8:0;a<i;a+=2)n=e[a],o.push(n,n in t?t[n]:e[a+1]);return o.t=e.t,o}(M,s,ce));else if(re&&ve.scroll())for(o=re.parentNode;o&&o!==Te;)o._pinOffset&&(y-=o._pinOffset,x-=o._pinOffset),o=o.parentNode;ve.start=y,ve.end=x,ve.scroll()<t&&ve.scroll(t),ve.update(),_e=m=0,r!==ve.progress&&(U&&v.totalProgress(r,!0),ve.progress=r,ve.update()),ne&&oe&&(A._pinOffset=Math.round(ve.progress*_)),te&&te(ve)}},ve.getVelocity=function(){return(ve.scroll()-b)/(Pe()-ke)*1e3||0},ve.update=function(e,t){var r,n,o,i,a,s=ve.scroll(),l=e?0:(s-y)/_,c=l<0?0:1<l?1:l||0,f=ve.progress;if(t&&(b=g,g=s,le&&(X=J,J=v&&!fe?v.totalProgress():c)),ae&&!c&&ne&&!_e&&y<s+(s-b)/(Pe()-ke)*ae&&(c=1e-4),c!==f&&Z){if(i=(a=(r=ve.isActive=!!c&&c<1)!=(!!f&&f<1))||!!c!=!!f,ve.direction=f<c?1:-1,ve.progress=c,ne)if(e&&oe&&(A.style[oe+$.os2]=R),pe){if(i){if(o=s+1>=E(ue,$),ce){if(!_e&&(r||o)){var u=ea(ne,!0),p=s-y;ne.style.top=u.top+($===Je?p:0)+We,ne.style.left=u.left+($===Je?0:p)+We}!function _reparent(e,t){if(e.parentNode!==t){var r,n,o=e.style;if(t===Te)for(r in e._stOrig=o.cssText,n=ba(e))+r||Ke.test(r)||!n[r]||"string"!=typeof o[r]||"0"===r||(o[r]=n[r]);else o.cssText=e._stOrig;t.appendChild(e)}}(ne,_e||!r&&!o?A:Te)}Ze(r||o?P:O),B(N+(1!==c||o?0:_))}}else B(N+_*c);fe||(!U||_e||Me?v&&v.totalProgress(c,!!_e):(U.vars.totalProgress=c,U.invalidate().restart()),K&&!e&&K(ve)),!le||d.tween||_e||Me||(Y=Oe,V.restart(!0)),i&&!_e?(n=c&&!f&&c<1?0:1===c&&f<1?1:1===f&&0<c?2:3,1===c&&se?ve.kill():fe&&(o=ge[n],v&&("complete"===o||"reset"===o||o in v)&&("complete"===o?v.pause().totalProgress(1):"reset"===o?v.restart(!0).pause():v[o]()),K&&K(ve)),Q&&a&&Se(Q.targets).forEach(function(e){return e.classList.toggle(Q.className)}),ee&&a&&ee(ve),de[n]&&de[n](ve),se&&(de[n]=0),a||de[n=1===c?1:3]&&de[n](ve)):fe&&K&&!_e&&K(ve)}q&&(W(s+(S._isFlipped?1:0)),q(s))},ve.enable=function(){Z||(Z=!0,ia(ue,"resize",ua),ia(ue,"scroll",ta),be&&ia(ScrollTrigger,"refreshInit",be),v&&(v.add?ye.delayedCall(.01,ve.refresh):ve.refresh()))},ve.disable=function(e){if(Z&&(e!==(Z=ve.isActive=!1)&&ve.update(1),ne&&Ca(ne,A,M),be&&ja(ScrollTrigger,"refreshInit",be),!pe)){for(var t=Ue.length;t--;)if(Ue[t].scroller===ue&&Ue[t]!==ve)return;ja(ue,"resize",ua),ja(ue,"scroll",ta)}},ve.kill=function(e){ve.disable(e),i&&delete Ve[i],Ue.splice(Ue.indexOf(ve),1),v&&(v.scrollTrigger=null)},ve.enable()}else this.update=this.refresh=this.kill=z},ScrollTrigger.register=function register(e){if(ye=e||B(),A()&&window.document&&(xe=window,we=document,x=we.documentElement,Te=we.body),ye&&(Se=ye.utils.toArray,Ce=ye.utils.clamp,ye.core.globals("ScrollTrigger",ScrollTrigger),Te)){s=xe.requestAnimationFrame||function(e){return setTimeout(e,16)},ia(xe,"mousewheel",ta),i=[xe,we,x,Te],ia(we,"scroll",ta);var t,r=Te.style,n=r.borderTop;r.borderTop="1px solid #000",t=ea(Te),Je.m=Math.round(t.top+Je.sc())||0,qe.m=Math.round(t.left+qe.sc())||0,n?r.borderTop=n:r.removeProperty("border-top"),c=setInterval(sa,100),ye.delayedCall(.5,function(){return Me=0}),ia(we,"touchcancel",z),ia(Te,"touchstart",z),ha(ia,we,"pointerdown,touchstart,mousedown",function(){return Ee=1}),ha(ia,we,"pointerup,touchend,mouseup",function(){return Ee=0}),f=ye.utils.checkPrefix("transform"),S.push(f),o=Pe(),a=ye.delayedCall(.2,ya).pause(),ia(we,"visibilitychange",function(){return we.hidden||ya()}),ia(we,"DOMContentLoaded",ya),ia(xe,"load",function(){return Oe||ya()}),ia(xe,"resize",ua)}return o},ScrollTrigger.defaults=function defaults(e){for(var t in e)Ye[t]=e[t]},ScrollTrigger.kill=function kill(){ze=0,Ue.slice(0).forEach(function(e){return e.kill(1)})},ScrollTrigger);function ScrollTrigger(e,t){o||ScrollTrigger.register(ye)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,t)}_.version="3.3.1",_.create=function(e,t){return new _(e,t)},_.refresh=function(e){return e?ua():ya(!0)},_.update=m,_.maxScroll=function(e,t){return E(e,t?qe:Je)},_.getScrollFunc=function(e,t){return(t=t?qe:Je)&&(C(e)?t.sc:D(e,t))},_.getById=function(e){return Ve[e]},_.getAll=function(){return Ue.slice(0)},_.syncInterval=function(e){return clearInterval(c)||(c=e)&&setInterval(sa,e)},_.isScrolling=function(){return!!Oe},_.addEventListener=function(e,t){var r=h[e]||(h[e]=[]);~r.indexOf(t)||r.push(t)},_.removeEventListener=function(e,t){var r=h[e],n=r&&r.indexOf(t);0<=n&&r.splice(n,1)},_.batch=function(e,t){function pg(e,t){var r=[],n=[],o=ye.delayedCall(i,function(){t(r,n),r=[],n=[]}).pause();return function(e){r.length||o.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&o.progress(1)}}var r,n=[],o={},i=t.interval||.02,a=t.batchMax||1e9;for(r in t)o[r]="on"===r.substr(0,2)&&G(t[r])&&"onRefreshInit"!==r?pg(0,t[r]):t[r];return G(a)&&(a=a(),_.addEventListener("refresh",function(){return a=t.batchMax()})),Se(e).forEach(function(e){var t={};for(r in o)t[r]=o[r];t.trigger=e,n.push(_.create(t))}),n},B()&&ye.registerPlugin(_),e.ScrollTrigger=_,e.default=_;if (typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})} else {delete e.default}}); | ||
@@ -79,3 +79,3 @@ (function (global, factory) { | ||
/*! | ||
* TextPlugin 3.3.0 | ||
* TextPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -96,3 +96,3 @@ * | ||
var TextPlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "text", | ||
@@ -99,0 +99,0 @@ init: function init(target, value, tween) { |
/*! | ||
* TextPlugin 3.3.0 | ||
* TextPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -10,3 +10,3 @@ * | ||
!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 B=/(^\s+|\s+$)/g,i=/([\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){for(var C=D.firstChild,E=[];C;)3===C.nodeType?E.push.apply(E,emojiSafeSplit((C.nodeValue+"").replace(/^\n+/g,"").replace(/\s+/g," "),u,F)):"br"===(C.nodeName+"").toLowerCase()?E[E.length-1]+="<br>":E.push(C.outerHTML),C=C.nextSibling;return E}function emojiSafeSplit(D,u,F){if(D+="",F&&(D=D.replace(B,"")),u&&""!==u)return D.replace(/>/g,">").replace(/</g,"<").split(u);for(var C,E,e=[],t=D.length,n=0;n<t;n++)(55296<=(E=D.charAt(n)).charCodeAt(0)&&E.charCodeAt(0)<=56319||65024<=D.charCodeAt(n+1)&&D.charCodeAt(n+1)<=65039)&&(C=((D.substr(n,12).split(i)||[])[1]||"").length||2,E=D.substr(n,C),n+=C-(e.emoji=1)),e.push(">"===E?">":"<"===E?"<":E);return e}var u,l,F={version:"3.3.0",name:"text",init:function init(D,u,F){var C,E,e,t,n,B,i,A,r=D.nodeName.toUpperCase(),s=this;if(s.svg=D.getBBox&&("TEXT"===r||"TSPAN"===r),!("innerHTML"in D||s.svg))return!1;if(s.target=D,"object"!=typeof u&&(u={value:u}),"value"in u){for(s.delimiter=u.delimiter||"",e=splitInnerHTML(D,s.delimiter),(l=l||document.createElement("div")).innerHTML=u.value,E=splitInnerHTML(l,s.delimiter),s.from=F._from,s.from&&(r=e,e=E,E=r),s.hasClass=!(!u.newClass&&!u.oldClass),s.newClass=u.newClass,s.oldClass=u.oldClass,C=(r=e.length-E.length)<0?e:E,s.fillChar=u.fillChar||(u.padSpace?" ":""),r<0&&(r=-r);-1<--r;)C.push(s.fillChar);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)),this.original=e,this.text=E,this._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=e.length,o=D*l+.5|0;E=t?(C=B&&o!==l,((F=n&&o)?"<span class='"+n+"'>":"")+e.slice(0,o).join(i)+(F?"</span>":"")+(C?"<span class='"+B+"'>":"")+i+s.slice(o).join(i)+(C?"</span>":"")):e.slice(0,o).join(i)+i+s.slice(o).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 B=/(^\s+|\s+$)/g,i=/([\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){for(var C=D.firstChild,E=[];C;)3===C.nodeType?E.push.apply(E,emojiSafeSplit((C.nodeValue+"").replace(/^\n+/g,"").replace(/\s+/g," "),u,F)):"br"===(C.nodeName+"").toLowerCase()?E[E.length-1]+="<br>":E.push(C.outerHTML),C=C.nextSibling;return E}function emojiSafeSplit(D,u,F){if(D+="",F&&(D=D.replace(B,"")),u&&""!==u)return D.replace(/>/g,">").replace(/</g,"<").split(u);for(var C,E,e=[],t=D.length,n=0;n<t;n++)(55296<=(E=D.charAt(n)).charCodeAt(0)&&E.charCodeAt(0)<=56319||65024<=D.charCodeAt(n+1)&&D.charCodeAt(n+1)<=65039)&&(C=((D.substr(n,12).split(i)||[])[1]||"").length||2,E=D.substr(n,C),n+=C-(e.emoji=1)),e.push(">"===E?">":"<"===E?"<":E);return e}var u,l,F={version:"3.3.1",name:"text",init:function init(D,u,F){var C,E,e,t,n,B,i,A,r=D.nodeName.toUpperCase(),s=this;if(s.svg=D.getBBox&&("TEXT"===r||"TSPAN"===r),!("innerHTML"in D||s.svg))return!1;if(s.target=D,"object"!=typeof u&&(u={value:u}),"value"in u){for(s.delimiter=u.delimiter||"",e=splitInnerHTML(D,s.delimiter),(l=l||document.createElement("div")).innerHTML=u.value,E=splitInnerHTML(l,s.delimiter),s.from=F._from,s.from&&(r=e,e=E,E=r),s.hasClass=!(!u.newClass&&!u.oldClass),s.newClass=u.newClass,s.oldClass=u.oldClass,C=(r=e.length-E.length)<0?e:E,s.fillChar=u.fillChar||(u.padSpace?" ":""),r<0&&(r=-r);-1<--r;)C.push(s.fillChar);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)),this.original=e,this.text=E,this._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=e.length,o=D*l+.5|0;E=t?(C=B&&o!==l,((F=n&&o)?"<span class='"+n+"'>":"")+e.slice(0,o).join(i)+(F?"</span>":"")+(C?"<span class='"+B+"'>":"")+i+s.slice(o).join(i)+(C?"</span>":"")):e.slice(0,o).join(i)+i+s.slice(o).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}}); | ||
/*! | ||
* EaselPlugin 3.3.0 | ||
* EaselPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -273,3 +273,3 @@ * | ||
export var EaselPlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "easel", | ||
@@ -276,0 +276,0 @@ init: function init(target, value, tween, index, targets) { |
/*! | ||
* EasePack 3.3.0 | ||
* EasePack 3.3.1 | ||
* https://greensock.com | ||
@@ -208,3 +208,3 @@ * | ||
EasePack[p].register = _initCore; | ||
EasePack[p].version = "3.3.0"; | ||
EasePack[p].version = "3.3.1"; | ||
} | ||
@@ -211,0 +211,0 @@ |
/*! | ||
* MotionPathPlugin 3.3.0 | ||
* MotionPathPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -204,3 +204,3 @@ * | ||
export var MotionPathPlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "motionPath", | ||
@@ -207,0 +207,0 @@ register: function register(core, Plugin, propTween) { |
{ | ||
"name": "gsap", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "GSAP is a JavaScript library for building high-performance animations that work in **every** major browser. Animate CSS, SVG, canvas, React, Vue, WebGL, colors, strings, motion paths, generic objects...anything JavaScript can touch! No other library delivers such advanced sequencing, reliability, and tight control while solving real-world problems on millions of sites. GSAP works around countless browser inconsistencies; your animations **just work**. At its core, GSAP is a high-speed property manipulator, updating values over time with extreme accuracy. It's up to 20x faster than jQuery! See https://greensock.com/why-gsap/ for what makes GSAP so special.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://greensock.com", |
/*! | ||
* PixiPlugin 3.3.0 | ||
* PixiPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -372,3 +372,3 @@ * | ||
export var PixiPlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "pixi", | ||
@@ -375,0 +375,0 @@ register: function register(core, Plugin, propTween) { |
@@ -21,3 +21,3 @@ # GSAP (GreenSock Animation Platform) | ||
```html | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.0/gsap.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.3.1/gsap.min.js"></script> | ||
``` | ||
@@ -24,0 +24,0 @@ Click the green "Get GSAP Now" button at <a href="https://greensock.com/?download=GSAP-JS">greensock.com</a> for more options and installation instructions, including CDN URLs for various plugins. |
/*! | ||
* ScrollToPlugin 3.3.0 | ||
* ScrollToPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -90,3 +90,3 @@ * | ||
export var ScrollToPlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "scrollTo", | ||
@@ -93,0 +93,0 @@ rawVars: 1, |
/*! | ||
* ScrollTrigger 3.3.0 | ||
* ScrollTrigger 3.3.1 | ||
* https://greensock.com | ||
@@ -268,13 +268,13 @@ * | ||
_listeners = {}, | ||
_emptyArray = [], | ||
_dispatch = function _dispatch(type) { | ||
return _listeners[type] && _listeners[type].forEach(function (f) { | ||
return _listeners[type] && _listeners[type].map(function (f) { | ||
return f(); | ||
}); | ||
}) || _emptyArray; | ||
}, | ||
_refreshAll = function _refreshAll(force) { | ||
var l = _triggers.length, | ||
var refreshInits = _dispatch("refreshInit"), | ||
l = _triggers.length, | ||
i = 0; | ||
_dispatch("refreshInit"); | ||
for (; i < l; i++) { | ||
@@ -284,2 +284,6 @@ _triggers[i].refresh(force !== true); | ||
refreshInits.forEach(function (result) { | ||
return result && result.render && result.render(-1); | ||
}); // if the onRefreshInit() returns an animation (typically a gsap.set()), revert it. This makes it easy to put things in a certain spot before refreshing for measurement purposes, and then put things back. | ||
_dispatch("refresh"); | ||
@@ -521,3 +525,3 @@ }, | ||
function ScrollTrigger(vars, animation) { | ||
_coreInitted || console.warn("Please gsap.registerPlugin(ScrollTrigger)"); | ||
_coreInitted || ScrollTrigger.register(gsap) || console.warn("Please gsap.registerPlugin(ScrollTrigger)"); | ||
this.init(vars, animation); | ||
@@ -529,4 +533,2 @@ } | ||
_proto.init = function init(vars, animation) { | ||
var _this = this; | ||
this.progress = 0; | ||
@@ -570,6 +572,9 @@ this.vars && this.kill(1); // in case it's being initted again | ||
borderWidth = isViewport ? 0 : parseFloat(_getComputedStyle(scroller)["border" + direction.p2 + _Width]) || 0, | ||
self = this, | ||
softRefresh = function softRefresh() { | ||
return ScrollTrigger.removeEventListener("scrollEnd", softRefresh) || _this.refresh(); | ||
return ScrollTrigger.removeEventListener("scrollEnd", softRefresh) || self.refresh(); | ||
}, | ||
self = this, | ||
onRefreshInit = vars.onRefreshInit && function () { | ||
return vars.onRefreshInit(self); | ||
}, | ||
tweenTo, | ||
@@ -602,3 +607,2 @@ pinCache, | ||
cs, | ||
initted, | ||
snap1, | ||
@@ -630,3 +634,3 @@ snap2, | ||
animation.vars.lazy = false; | ||
animation._initted || animation.render(0, true, true); | ||
animation._initted || animation.vars.immediateRender !== false && animation.render(0, true, true); | ||
self.animation = animation.pause(); | ||
@@ -769,4 +773,5 @@ animation.scrollTrigger = self; | ||
var prevScroll = self.scroll(); // record the scroll so we can revert later (repositioning/pinning things can affect scroll position) | ||
var prevScroll = self.scroll(), | ||
// record the scroll so we can revert later (repositioning/pinning things can affect scroll position) | ||
prevProgress = self.progress; | ||
_refreshing = 1; | ||
@@ -864,3 +869,11 @@ scrubTween && scrubTween.kill(); | ||
_refreshing = isReverted = 0; | ||
initted = 1; | ||
if (prevProgress !== self.progress) { | ||
// ensures that the direction is set properly (when refreshing, progress is set back to 0 initially, then back again to wherever it needs to be) and that callbacks are triggered. | ||
scrubTween && animation.totalProgress(prevProgress, true); // to avoid issues where animation callbacks like onStart aren't triggered. | ||
self.progress = prevProgress; | ||
self.update(); | ||
} | ||
pin && pinSpacing && (spacer._pinOffset = Math.round(self.progress * change)); | ||
@@ -871,3 +884,3 @@ onRefresh && onRefresh(self); | ||
self.getVelocity = function () { | ||
return (self.scroll() - scroll2) / (_getTime() - _time2) * 1000; | ||
return (self.scroll() - scroll2) / (_getTime() - _time2) * 1000 || 0; | ||
}; | ||
@@ -940,3 +953,3 @@ | ||
} else if (animation) { | ||
animation.totalProgress(clipped); | ||
animation.totalProgress(clipped, !!_refreshing); | ||
} | ||
@@ -952,6 +965,6 @@ | ||
if (stateChanged) { | ||
toggleState = clipped && !prevProgress ? 0 : clipped === 1 ? 1 : prevProgress === 1 ? 2 : 3; // 0 = enter, 1 = leave, 2 = enterBack, 3 = leaveBack | ||
if (stateChanged && !_refreshing) { | ||
toggleState = clipped && !prevProgress && clipped < 1 ? 0 : clipped === 1 && prevProgress < 1 ? 1 : prevProgress === 1 && clipped > 0 ? 2 : 3; // 0 = enter, 1 = leave, 2 = enterBack, 3 = leaveBack | ||
if (clipped === 1 && once && !reset) { | ||
if (clipped === 1 && once) { | ||
self.kill(); | ||
@@ -971,18 +984,16 @@ } else if (isToggle) { | ||
onUpdate && !_refreshing && onUpdate(self); | ||
onUpdate && onUpdate(self); | ||
} | ||
if (!_refreshing || !initted) { | ||
toggleClass && toggled && _toArray(toggleClass.targets).forEach(function (el) { | ||
return el.classList.toggle(toggleClass.className); | ||
}); | ||
onToggle && toggled && onToggle(self); | ||
toggleClass && toggled && _toArray(toggleClass.targets).forEach(function (el) { | ||
return el.classList.toggle(toggleClass.className); | ||
}); | ||
onToggle && toggled && onToggle(self); | ||
callbacks[toggleState] && callbacks[toggleState](self); | ||
once && (callbacks[toggleState] = 0); // a callback shouldn't be called again if once is true. | ||
if (!toggled) { | ||
// it's possible to go completely past, like from before the start to after the end (or vice-versa) in which case BOTH callbacks should be fired in that order | ||
toggleState = clipped === 1 ? 1 : 3; | ||
callbacks[toggleState] && callbacks[toggleState](self); | ||
once && (callbacks[toggleState] = 0); // a callback shouldn't be called again if once is true. | ||
if (!toggled) { | ||
// it's possible to go completely past, like from before the start to after the end (or vice-versa) in which case BOTH callbacks should be fired in that order | ||
toggleState = clipped === 1 ? 1 : 3; | ||
callbacks[toggleState] && callbacks[toggleState](self); | ||
} | ||
} | ||
@@ -1009,5 +1020,4 @@ } else if (isToggle && onUpdate && !_refreshing) { | ||
animation && animation.add && gsap.delayedCall(0.01, self.refresh); // if the animation is a timeline, it may not have been populated yet, so it wouldn't render at the proper place on the first refresh(), thus we should schedule one for the next tick. | ||
self.refresh(); | ||
onRefreshInit && _addListener(ScrollTrigger, "refreshInit", onRefreshInit); | ||
animation && (animation.add ? gsap.delayedCall(0.01, self.refresh) : self.refresh()); // if the animation is a timeline, it may not have been populated yet, so it wouldn't render at the proper place on the first refresh(), thus we should schedule one for the next tick. | ||
} | ||
@@ -1021,2 +1031,3 @@ }; | ||
pin && _swapPinOut(pin, spacer, pinOriginalState); | ||
onRefreshInit && _removeListener(ScrollTrigger, "refreshInit", onRefreshInit); | ||
@@ -1059,67 +1070,72 @@ if (!isViewport) { | ||
_body = _doc.body; | ||
} | ||
_raf = _win.requestAnimationFrame || function (f) { | ||
return setTimeout(f, 16); | ||
}; | ||
if (gsap) { | ||
_toArray = gsap.utils.toArray; | ||
_clamp = gsap.utils.clamp; | ||
gsap.core.globals("ScrollTrigger", ScrollTrigger); // must register the global manually because in Internet Explorer, functions (classes) don't have a "name" property. | ||
_addListener(_win, "mousewheel", _onScroll); | ||
if (_body) { | ||
_raf = _win.requestAnimationFrame || function (f) { | ||
return setTimeout(f, 16); | ||
}; | ||
_root = [_win, _doc, _docEl, _body]; | ||
_addListener(_win, "mousewheel", _onScroll); | ||
_addListener(_doc, "scroll", _onScroll); // some browsers (like Chrome), the window stops dispatching scroll events on the window if you scroll really fast, but it's consistent on the document! | ||
_root = [_win, _doc, _docEl, _body]; | ||
_addListener(_doc, "scroll", _onScroll); // some browsers (like Chrome), the window stops dispatching scroll events on the window if you scroll really fast, but it's consistent on the document! | ||
var bodyStyle = _body.style, | ||
border = bodyStyle.borderTop, | ||
bounds; | ||
bodyStyle.borderTop = "1px solid #000"; // works around an issue where a margin of a child element could throw off the bounds of the _body, making it seem like there's a margin when there actually isn't. The border ensures that the bounds are accurate. | ||
bounds = _getBounds(_body); | ||
_vertical.m = Math.round(bounds.top + _vertical.sc()) || 0; // accommodate the offset of the <body> caused by margins and/or padding | ||
var bodyStyle = _body.style, | ||
border = bodyStyle.borderTop, | ||
bounds; | ||
bodyStyle.borderTop = "1px solid #000"; // works around an issue where a margin of a child element could throw off the bounds of the _body, making it seem like there's a margin when there actually isn't. The border ensures that the bounds are accurate. | ||
_horizontal.m = Math.round(bounds.left + _horizontal.sc()) || 0; | ||
border ? bodyStyle.borderTop = border : bodyStyle.removeProperty("border-top"); | ||
} | ||
bounds = _getBounds(_body); | ||
_vertical.m = Math.round(bounds.top + _vertical.sc()) || 0; // accommodate the offset of the <body> caused by margins and/or padding | ||
if (gsap && _docEl) { | ||
_toArray = gsap.utils.toArray; | ||
_clamp = gsap.utils.clamp; | ||
_syncInterval = setInterval(_sync, 100); | ||
gsap.delayedCall(0.5, function () { | ||
return _startup = 0; | ||
}); | ||
_horizontal.m = Math.round(bounds.left + _horizontal.sc()) || 0; | ||
border ? bodyStyle.borderTop = border : bodyStyle.removeProperty("border-top"); | ||
_syncInterval = setInterval(_sync, 100); | ||
gsap.delayedCall(0.5, function () { | ||
return _startup = 0; | ||
}); | ||
_addListener(_doc, "touchcancel", _passThrough); // some older Android devices intermittently stop dispatching "touchmove" events if we don't listen for "touchcancel" on the document. | ||
_addListener(_doc, "touchcancel", _passThrough); // some older Android devices intermittently stop dispatching "touchmove" events if we don't listen for "touchcancel" on the document. | ||
_addListener(_body, "touchstart", _passThrough); //works around Safari bug: https://greensock.com/forums/topic/21450-draggable-in-iframe-on-mobile-is-buggy/ | ||
_addListener(_body, "touchstart", _passThrough); //works around Safari bug: https://greensock.com/forums/topic/21450-draggable-in-iframe-on-mobile-is-buggy/ | ||
_multiListener(_addListener, _doc, "pointerdown,touchstart,mousedown", function () { | ||
return _pointerIsDown = 1; | ||
}); | ||
_multiListener(_addListener, _doc, "pointerdown,touchstart,mousedown", function () { | ||
return _pointerIsDown = 1; | ||
}); | ||
_multiListener(_addListener, _doc, "pointerup,touchend,mouseup", function () { | ||
return _pointerIsDown = 0; | ||
}); | ||
_multiListener(_addListener, _doc, "pointerup,touchend,mouseup", function () { | ||
return _pointerIsDown = 0; | ||
}); | ||
_transformProp = gsap.utils.checkPrefix("transform"); | ||
_transformProp = gsap.utils.checkPrefix("transform"); | ||
_stateProps.push(_transformProp); | ||
_stateProps.push(_transformProp); | ||
_coreInitted = _getTime(); | ||
_resizeDelay = gsap.delayedCall(0.2, _refreshAll).pause(); | ||
_coreInitted = _getTime(); | ||
_resizeDelay = gsap.delayedCall(0.2, _refreshAll).pause(); | ||
_addListener(_doc, "visibilitychange", function () { | ||
return _doc.hidden || _refreshAll(); | ||
}); | ||
_addListener(_doc, "visibilitychange", function () { | ||
return _doc.hidden || _refreshAll(); | ||
}); | ||
_addListener(_doc, "DOMContentLoaded", _refreshAll); | ||
_addListener(_doc, "DOMContentLoaded", _refreshAll); | ||
_addListener(_win, "load", function () { | ||
return _lastScrollTime || _refreshAll(); | ||
}); | ||
_addListener(_win, "load", function () { | ||
return _lastScrollTime || _refreshAll(); | ||
}); | ||
_addListener(_win, "resize", _onResize); | ||
_addListener(_win, "resize", _onResize); | ||
} | ||
} | ||
return _coreInitted; | ||
}; | ||
@@ -1143,3 +1159,3 @@ | ||
}(); | ||
ScrollTrigger.version = "3.3.0"; | ||
ScrollTrigger.version = "3.3.1"; | ||
@@ -1191,3 +1207,50 @@ ScrollTrigger.create = function (vars, animation) { | ||
ScrollTrigger.batch = function (targets, vars) { | ||
var result = [], | ||
varsCopy = {}, | ||
interval = vars.interval || 0.02, | ||
batchMax = vars.batchMax || 1e9, | ||
proxyCallback = function proxyCallback(type, callback) { | ||
var elements = [], | ||
triggers = [], | ||
delay = gsap.delayedCall(interval, function () { | ||
callback(elements, triggers); | ||
elements = []; | ||
triggers = []; | ||
}).pause(); | ||
return function (self) { | ||
elements.length || delay.restart(true); | ||
elements.push(self.trigger); | ||
triggers.push(self); | ||
batchMax <= elements.length && delay.progress(1); | ||
}; | ||
}, | ||
p; | ||
for (p in vars) { | ||
varsCopy[p] = p.substr(0, 2) === "on" && _isFunction(vars[p]) && p !== "onRefreshInit" ? proxyCallback(p, vars[p]) : vars[p]; | ||
} | ||
if (_isFunction(batchMax)) { | ||
batchMax = batchMax(); | ||
ScrollTrigger.addEventListener("refresh", function () { | ||
return batchMax = vars.batchMax(); | ||
}); | ||
} | ||
_toArray(targets).forEach(function (target) { | ||
var config = {}; | ||
for (p in varsCopy) { | ||
config[p] = varsCopy[p]; | ||
} | ||
config.trigger = target; | ||
result.push(ScrollTrigger.create(config)); | ||
}); | ||
return result; | ||
}; | ||
_getGSAP() && gsap.registerPlugin(ScrollTrigger); | ||
export { ScrollTrigger as default }; |
/*! | ||
* CSSPlugin 3.3.0 | ||
* CSSPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* CSSRulePlugin 3.3.0 | ||
* CSSRulePlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -40,3 +40,3 @@ * | ||
export const CSSRulePlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "cssRule", | ||
@@ -43,0 +43,0 @@ init(target, value, tween, index, targets) { |
/*! | ||
* EaselPlugin 3.3.0 | ||
* EaselPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -218,3 +218,3 @@ * | ||
export const EaselPlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "easel", | ||
@@ -221,0 +221,0 @@ init(target, value, tween, index, targets) { |
/*! | ||
* EasePack 3.3.0 | ||
* EasePack 3.3.1 | ||
* https://greensock.com | ||
@@ -158,3 +158,3 @@ * | ||
EasePack[p].register = _initCore; | ||
EasePack[p].version = "3.3.0"; | ||
EasePack[p].version = "3.3.1"; | ||
} | ||
@@ -161,0 +161,0 @@ |
/*! | ||
* MotionPathPlugin 3.3.0 | ||
* MotionPathPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -142,3 +142,3 @@ * | ||
export const MotionPathPlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "motionPath", | ||
@@ -145,0 +145,0 @@ register(core, Plugin, propTween) { |
/*! | ||
* PixiPlugin 3.3.0 | ||
* PixiPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -263,3 +263,3 @@ * | ||
export const PixiPlugin = { | ||
version:"3.3.0", | ||
version:"3.3.1", | ||
name:"pixi", | ||
@@ -266,0 +266,0 @@ register(core, Plugin, propTween) { |
/*! | ||
* ScrollToPlugin 3.3.0 | ||
* ScrollToPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -60,3 +60,3 @@ * | ||
export const ScrollToPlugin = { | ||
version:"3.3.0", | ||
version:"3.3.1", | ||
name:"scrollTo", | ||
@@ -63,0 +63,0 @@ rawVars:1, |
/*! | ||
* ScrollTrigger 3.3.0 | ||
* ScrollTrigger 3.3.1 | ||
* https://greensock.com | ||
@@ -138,10 +138,12 @@ * | ||
_listeners = {}, | ||
_dispatch = type => _listeners[type] && _listeners[type].forEach(f => f()), | ||
_emptyArray = [], | ||
_dispatch = type => (_listeners[type] && _listeners[type].map(f => f())) || _emptyArray, | ||
_refreshAll = force => { | ||
let l = _triggers.length, | ||
let refreshInits = _dispatch("refreshInit"), | ||
l = _triggers.length, | ||
i = 0; | ||
_dispatch("refreshInit"); | ||
for (; i < l; i++) { | ||
_triggers[i].refresh(force !== true); | ||
} | ||
refreshInits.forEach(result => result && result.render && result.render(-1)); // if the onRefreshInit() returns an animation (typically a gsap.set()), revert it. This makes it easy to put things in a certain spot before refreshing for measurement purposes, and then put things back. | ||
_dispatch("refresh"); | ||
@@ -340,3 +342,3 @@ }, | ||
constructor(vars, animation) { | ||
_coreInitted || console.warn("Please gsap.registerPlugin(ScrollTrigger)"); | ||
_coreInitted || ScrollTrigger.register(gsap) || console.warn("Please gsap.registerPlugin(ScrollTrigger)"); | ||
this.init(vars, animation); | ||
@@ -363,5 +365,6 @@ } | ||
borderWidth = isViewport ? 0 : parseFloat(_getComputedStyle(scroller)["border" + direction.p2 + _Width]) || 0, | ||
softRefresh = () => ScrollTrigger.removeEventListener("scrollEnd", softRefresh) || this.refresh(), | ||
self = this, | ||
tweenTo, pinCache, snapFunc, isReverted, scroll1, scroll2, start, end, markerStart, markerEnd, markerStartTrigger, markerEndTrigger, markerVars, change, pinOriginalState, pinActiveState, pinState, spacer, offset, pinGetter, pinSetter, pinStart, spacingStart, spacingActive, markerStartSetter, markerEndSetter, cs, initted, snap1, snap2, scrubScrollTime, scrubTween, scrubSmooth, snapDurClamp, snapDelayedCall, enabled; | ||
softRefresh = () => ScrollTrigger.removeEventListener("scrollEnd", softRefresh) || self.refresh(), | ||
onRefreshInit = vars.onRefreshInit && (() => vars.onRefreshInit(self)), | ||
tweenTo, pinCache, snapFunc, isReverted, scroll1, scroll2, start, end, markerStart, markerEnd, markerStartTrigger, markerEndTrigger, markerVars, change, pinOriginalState, pinActiveState, pinState, spacer, offset, pinGetter, pinSetter, pinStart, spacingStart, spacingActive, markerStartSetter, markerEndSetter, cs, snap1, snap2, scrubScrollTime, scrubTween, scrubSmooth, snapDurClamp, snapDelayedCall, enabled; | ||
@@ -382,3 +385,3 @@ anticipatePin *= 45; | ||
animation.vars.lazy = false; | ||
animation._initted || animation.render(0, true, true); | ||
animation._initted || (animation.vars.immediateRender !== false && animation.render(0, true, true)); | ||
self.animation = animation.pause(); | ||
@@ -474,2 +477,3 @@ animation.scrollTrigger = self; | ||
self.refresh = soft => { | ||
@@ -483,3 +487,4 @@ if (_refreshing || !enabled) { | ||
} | ||
let prevScroll = self.scroll(); // record the scroll so we can revert later (repositioning/pinning things can affect scroll position) | ||
let prevScroll = self.scroll(), // record the scroll so we can revert later (repositioning/pinning things can affect scroll position) | ||
prevProgress = self.progress; | ||
_refreshing = 1; | ||
@@ -557,3 +562,7 @@ scrubTween && scrubTween.kill(); | ||
_refreshing = isReverted = 0; | ||
initted = 1; | ||
if (prevProgress !== self.progress) { // ensures that the direction is set properly (when refreshing, progress is set back to 0 initially, then back again to wherever it needs to be) and that callbacks are triggered. | ||
scrubTween && animation.totalProgress(prevProgress, true); // to avoid issues where animation callbacks like onStart aren't triggered. | ||
self.progress = prevProgress; | ||
self.update(); | ||
} | ||
pin && pinSpacing && (spacer._pinOffset = Math.round(self.progress * change)); | ||
@@ -563,3 +572,3 @@ onRefresh && onRefresh(self); | ||
self.getVelocity = () => (self.scroll() - scroll2) / (_getTime() - _time2) * 1000; | ||
self.getVelocity = () => ((self.scroll() - scroll2) / (_getTime() - _time2) * 1000) || 0; | ||
@@ -613,3 +622,3 @@ self.update = (reset, recordVelocity) => { | ||
} else if (animation) { | ||
animation.totalProgress(clipped); | ||
animation.totalProgress(clipped, !!_refreshing); | ||
} | ||
@@ -622,5 +631,5 @@ onUpdate && !reset && onUpdate(self); | ||
} | ||
if (stateChanged) { | ||
toggleState = clipped && !prevProgress ? 0 : clipped === 1 ? 1 : prevProgress === 1 ? 2 : 3; // 0 = enter, 1 = leave, 2 = enterBack, 3 = leaveBack | ||
if (clipped === 1 && once && !reset) { | ||
if (stateChanged && !_refreshing) { | ||
toggleState = clipped && !prevProgress && clipped < 1 ? 0 : clipped === 1 && prevProgress < 1 ? 1 : prevProgress === 1 && clipped > 0 ? 2 : 3; // 0 = enter, 1 = leave, 2 = enterBack, 3 = leaveBack | ||
if (clipped === 1 && once) { | ||
self.kill(); | ||
@@ -638,13 +647,11 @@ } else if (isToggle) { | ||
} | ||
onUpdate && !_refreshing && onUpdate(self); | ||
onUpdate && onUpdate(self); | ||
} | ||
if (!_refreshing || !initted) { | ||
toggleClass && toggled && _toArray(toggleClass.targets).forEach(el => el.classList.toggle(toggleClass.className)); | ||
onToggle && toggled && onToggle(self); | ||
toggleClass && toggled && _toArray(toggleClass.targets).forEach(el => el.classList.toggle(toggleClass.className)); | ||
onToggle && toggled && onToggle(self); | ||
callbacks[toggleState] && callbacks[toggleState](self); | ||
once && (callbacks[toggleState] = 0); // a callback shouldn't be called again if once is true. | ||
if (!toggled) { // it's possible to go completely past, like from before the start to after the end (or vice-versa) in which case BOTH callbacks should be fired in that order | ||
toggleState = clipped === 1 ? 1 : 3; | ||
callbacks[toggleState] && callbacks[toggleState](self); | ||
once && (callbacks[toggleState] = 0); // a callback shouldn't be called again if once is true. | ||
if (!toggled) { // it's possible to go completely past, like from before the start to after the end (or vice-versa) in which case BOTH callbacks should be fired in that order | ||
toggleState = clipped === 1 ? 1 : 3; | ||
callbacks[toggleState] && callbacks[toggleState](self); | ||
} | ||
} | ||
@@ -667,4 +674,4 @@ } else if (isToggle && onUpdate && !_refreshing) { | ||
_addListener(scroller, "scroll", _onScroll); | ||
animation && animation.add && gsap.delayedCall(0.01, self.refresh); // if the animation is a timeline, it may not have been populated yet, so it wouldn't render at the proper place on the first refresh(), thus we should schedule one for the next tick. | ||
self.refresh(); | ||
onRefreshInit && _addListener(ScrollTrigger, "refreshInit", onRefreshInit); | ||
animation && (animation.add ? gsap.delayedCall(0.01, self.refresh) : self.refresh()); // if the animation is a timeline, it may not have been populated yet, so it wouldn't render at the proper place on the first refresh(), thus we should schedule one for the next tick. | ||
} | ||
@@ -678,2 +685,3 @@ }; | ||
pin && _swapPinOut(pin, spacer, pinOriginalState); | ||
onRefreshInit && _removeListener(ScrollTrigger, "refreshInit", onRefreshInit); | ||
if (!isViewport) { | ||
@@ -710,33 +718,37 @@ let i = _triggers.length; | ||
_body = _doc.body; | ||
_raf = _win.requestAnimationFrame || (f => setTimeout(f, 16)); | ||
_addListener(_win, "mousewheel", _onScroll); | ||
_root = [_win, _doc, _docEl, _body]; | ||
_addListener(_doc, "scroll", _onScroll); // some browsers (like Chrome), the window stops dispatching scroll events on the window if you scroll really fast, but it's consistent on the document! | ||
let bodyStyle = _body.style, | ||
border = bodyStyle.borderTop, | ||
bounds; | ||
bodyStyle.borderTop = "1px solid #000"; // works around an issue where a margin of a child element could throw off the bounds of the _body, making it seem like there's a margin when there actually isn't. The border ensures that the bounds are accurate. | ||
bounds = _getBounds(_body); | ||
_vertical.m = Math.round(bounds.top + _vertical.sc()) || 0; // accommodate the offset of the <body> caused by margins and/or padding | ||
_horizontal.m = Math.round(bounds.left + _horizontal.sc()) || 0; | ||
border ? (bodyStyle.borderTop = border) : bodyStyle.removeProperty("border-top"); | ||
} | ||
if (gsap && _docEl) { | ||
if (gsap) { | ||
_toArray = gsap.utils.toArray; | ||
_clamp = gsap.utils.clamp; | ||
_syncInterval = setInterval(_sync, 100); | ||
gsap.delayedCall(0.5, () => _startup = 0); | ||
_addListener(_doc, "touchcancel", _passThrough); // some older Android devices intermittently stop dispatching "touchmove" events if we don't listen for "touchcancel" on the document. | ||
_addListener(_body, "touchstart", _passThrough); //works around Safari bug: https://greensock.com/forums/topic/21450-draggable-in-iframe-on-mobile-is-buggy/ | ||
_multiListener(_addListener, _doc, "pointerdown,touchstart,mousedown", () => _pointerIsDown = 1); | ||
_multiListener(_addListener, _doc, "pointerup,touchend,mouseup", () => _pointerIsDown = 0); | ||
_transformProp = gsap.utils.checkPrefix("transform"); | ||
_stateProps.push(_transformProp); | ||
_coreInitted = _getTime(); | ||
_resizeDelay = gsap.delayedCall(0.2, _refreshAll).pause(); | ||
_addListener(_doc, "visibilitychange", () => _doc.hidden || _refreshAll()); | ||
_addListener(_doc, "DOMContentLoaded", _refreshAll); | ||
_addListener(_win, "load", () => _lastScrollTime || _refreshAll()); | ||
_addListener(_win, "resize", _onResize); | ||
gsap.core.globals("ScrollTrigger", ScrollTrigger); // must register the global manually because in Internet Explorer, functions (classes) don't have a "name" property. | ||
if (_body) { | ||
_raf = _win.requestAnimationFrame || (f => setTimeout(f, 16)); | ||
_addListener(_win, "mousewheel", _onScroll); | ||
_root = [_win, _doc, _docEl, _body]; | ||
_addListener(_doc, "scroll", _onScroll); // some browsers (like Chrome), the window stops dispatching scroll events on the window if you scroll really fast, but it's consistent on the document! | ||
let bodyStyle = _body.style, | ||
border = bodyStyle.borderTop, | ||
bounds; | ||
bodyStyle.borderTop = "1px solid #000"; // works around an issue where a margin of a child element could throw off the bounds of the _body, making it seem like there's a margin when there actually isn't. The border ensures that the bounds are accurate. | ||
bounds = _getBounds(_body); | ||
_vertical.m = Math.round(bounds.top + _vertical.sc()) || 0; // accommodate the offset of the <body> caused by margins and/or padding | ||
_horizontal.m = Math.round(bounds.left + _horizontal.sc()) || 0; | ||
border ? (bodyStyle.borderTop = border) : bodyStyle.removeProperty("border-top"); | ||
_syncInterval = setInterval(_sync, 100); | ||
gsap.delayedCall(0.5, () => _startup = 0); | ||
_addListener(_doc, "touchcancel", _passThrough); // some older Android devices intermittently stop dispatching "touchmove" events if we don't listen for "touchcancel" on the document. | ||
_addListener(_body, "touchstart", _passThrough); //works around Safari bug: https://greensock.com/forums/topic/21450-draggable-in-iframe-on-mobile-is-buggy/ | ||
_multiListener(_addListener, _doc, "pointerdown,touchstart,mousedown", () => _pointerIsDown = 1); | ||
_multiListener(_addListener, _doc, "pointerup,touchend,mouseup", () => _pointerIsDown = 0); | ||
_transformProp = gsap.utils.checkPrefix("transform"); | ||
_stateProps.push(_transformProp); | ||
_coreInitted = _getTime(); | ||
_resizeDelay = gsap.delayedCall(0.2, _refreshAll).pause(); | ||
_addListener(_doc, "visibilitychange", () => _doc.hidden || _refreshAll()); | ||
_addListener(_doc, "DOMContentLoaded", _refreshAll); | ||
_addListener(_win, "load", () => _lastScrollTime || _refreshAll()); | ||
_addListener(_win, "resize", _onResize); | ||
} | ||
} | ||
return _coreInitted; | ||
} | ||
@@ -757,3 +769,3 @@ | ||
ScrollTrigger.version = "3.3.0"; | ||
ScrollTrigger.version = "3.3.1"; | ||
ScrollTrigger.create = (vars, animation) => new ScrollTrigger(vars, animation); | ||
@@ -776,2 +788,36 @@ ScrollTrigger.refresh = safe => safe ? _onResize() : _refreshAll(true); | ||
i >= 0 && a.splice(i, 1); | ||
}; | ||
ScrollTrigger.batch = (targets, vars) => { | ||
let result = [], | ||
varsCopy = {}, | ||
interval = vars.interval || 0.02, | ||
batchMax = vars.batchMax || 1e9, | ||
proxyCallback = (type, callback) => { | ||
let elements = [], | ||
triggers = [], | ||
delay = gsap.delayedCall(interval, () => {callback(elements, triggers); elements = []; triggers = [];}).pause(); | ||
return self => { | ||
elements.length || delay.restart(true); | ||
elements.push(self.trigger); | ||
triggers.push(self); | ||
batchMax <= elements.length && delay.progress(1); | ||
}; | ||
}, | ||
p; | ||
for (p in vars) { | ||
varsCopy[p] = (p.substr(0, 2) === "on" && _isFunction(vars[p]) && p !== "onRefreshInit") ? proxyCallback(p, vars[p]) : vars[p]; | ||
} | ||
if (_isFunction(batchMax)) { | ||
batchMax = batchMax(); | ||
ScrollTrigger.addEventListener("refresh", () => batchMax = vars.batchMax()); | ||
} | ||
_toArray(targets).forEach(target => { | ||
let config = {}; | ||
for (p in varsCopy) { | ||
config[p] = varsCopy[p]; | ||
} | ||
config.trigger = target; | ||
result.push(ScrollTrigger.create(config)); | ||
}); | ||
return result; | ||
} | ||
@@ -778,0 +824,0 @@ |
/*! | ||
* TextPlugin 3.3.0 | ||
* TextPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -19,3 +19,3 @@ * | ||
export const TextPlugin = { | ||
version:"3.3.0", | ||
version:"3.3.1", | ||
name:"text", | ||
@@ -22,0 +22,0 @@ init(target, value, tween) { |
/*! | ||
* matrix 3.3.0 | ||
* matrix 3.3.1 | ||
* https://greensock.com | ||
@@ -45,3 +45,3 @@ * | ||
cache = e._gsap; | ||
if (cache && !cache.scaleX && !cache.scaleY) { | ||
if (cache && !cache.scaleX && !cache.scaleY && cache.renderTransform) { | ||
cache.scaleX = cache.scaleY = 1e-4; | ||
@@ -48,0 +48,0 @@ cache.renderTransform(1, cache); |
/*! | ||
* paths 3.3.0 | ||
* paths 3.3.1 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* strings: 3.3.0 | ||
* strings: 3.3.1 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* TextPlugin 3.3.0 | ||
* TextPlugin 3.3.1 | ||
* https://greensock.com | ||
@@ -21,3 +21,3 @@ * | ||
export var TextPlugin = { | ||
version: "3.3.0", | ||
version: "3.3.1", | ||
name: "text", | ||
@@ -24,0 +24,0 @@ init: function init(target, value, tween) { |
@@ -148,3 +148,2 @@ declare namespace gsap.core { | ||
* | ||
* @param {number} [value] | ||
* @returns {number} The iteration | ||
@@ -385,3 +384,2 @@ * @memberof Animation | ||
* | ||
* @param {number} value | ||
* @returns {Animation} The animation | ||
@@ -399,8 +397,8 @@ * @memberof Animation | ||
* | ||
* @param {number| string} value | ||
* @param {boolean} [supressEvents] | ||
* @param {number| string} time | ||
* @param {boolean} suppressEvents | ||
* @returns {Animation} The animation | ||
* @memberof Animation | ||
*/ | ||
seek(time: number | string, supressEvents?: boolean): this; | ||
seek(time: number | string, suppressEvents?: boolean): this; | ||
@@ -464,3 +462,2 @@ /** | ||
* | ||
* @param {number} value | ||
* @returns {Animation} The animation | ||
@@ -503,6 +500,7 @@ * @memberof Animation | ||
* @param {number} value | ||
* @param {boolean} suppressEvents | ||
* @returns {Animation} The animation | ||
* @memberof Animation | ||
*/ | ||
totalProgress(value: number, supressEvents?: boolean): this; | ||
totalProgress(value: number, suppressEvents?: boolean): this; | ||
/** | ||
@@ -515,3 +513,2 @@ * Gets the total progress (including repeats) of the given animation. | ||
* | ||
* @param {number} value | ||
* @returns {number} The total progress | ||
@@ -542,3 +539,2 @@ * @memberof Animation | ||
* | ||
* @param {number} value | ||
* @returns {number} The total time | ||
@@ -545,0 +541,0 @@ * @memberof Animation |
@@ -12,7 +12,7 @@ declare class GSDevTools { | ||
* | ||
* @param {GSDevTools.Vars} [vars] | ||
* @param {GSDevTools.Vars} vars | ||
* @returns {GSDevTools} The GSDevTools instance | ||
* @memberof GSDevTools | ||
*/ | ||
static create(target?: GSDevTools.Vars): GSDevTools; | ||
static create(vars?: GSDevTools.Vars): GSDevTools; | ||
} | ||
@@ -19,0 +19,0 @@ |
@@ -200,6 +200,7 @@ declare namespace gsap { | ||
* @param {Function} callback | ||
* @param {any[]} [params] | ||
* @returns {Tween} Tween instance | ||
* @memberof gsap | ||
*/ | ||
function delayedCall(delay: number, callback: Function): core.Tween; | ||
function delayedCall(delay: number, callback: Function, params?: any[]): core.Tween; | ||
@@ -257,3 +258,4 @@ /** | ||
* @param {TweenTarget} targets | ||
* @param {TweenVars} vars | ||
* @param {TweenVars} fromVars | ||
* @param {TweenVars} toVars | ||
* @returns {Tween} Tween instance | ||
@@ -273,3 +275,4 @@ * @memberof gsap | ||
* @param {number} duration - The duration parameter is deprecated. Use the `duration` property instead. | ||
* @param {TweenVars} vars | ||
* @param {TweenVars} fromVars | ||
* @param {TweenVars} toVars | ||
* @returns {Tween} Tween instance | ||
@@ -276,0 +279,0 @@ */ |
@@ -38,3 +38,3 @@ declare namespace gsap.utils { | ||
*/ | ||
function checkPrefix(value: string): string; | ||
function checkPrefix(property: string): string; | ||
@@ -122,3 +122,3 @@ /** | ||
* @param {T[]} array | ||
* @param {number} [number] | ||
* @param {number} progress | ||
* @returns {T | Function} The interpolated value or interpolate function | ||
@@ -125,0 +125,0 @@ * @memberof gsap.utils |
@@ -237,3 +237,3 @@ declare namespace gsap { | ||
offsetY?: number; | ||
path?: SVGPathValue | TweenValue | Point2D[]| PathObject[]; | ||
path?: gsap.SVGPathValue | gsap.TweenValue | gsap.Point2D[]| gsap.PathObject[]; | ||
relative?: boolean; | ||
@@ -240,0 +240,0 @@ resolution?: number; |
@@ -11,3 +11,3 @@ declare namespace gsap { | ||
interface ScrollTriggerInstance { | ||
readonly animation: gsap.core.Animation; | ||
readonly animation?: gsap.core.Animation; | ||
readonly direction: number; | ||
@@ -20,3 +20,3 @@ readonly end: number; | ||
readonly start: number; | ||
readonly trigger: Element; | ||
readonly trigger?: Element; | ||
readonly vars: ScrollTriggerInstanceVars; | ||
@@ -48,3 +48,3 @@ | ||
/** | ||
* Gets the current velocity of the element's scroll on which the ScrollTrigger is attached to. | ||
* Gets the current velocity of the element's scroll on which the ScrollTrigger is attached to (in pixels per second). | ||
* | ||
@@ -111,3 +111,3 @@ * ```js | ||
/** | ||
* Attatch a new event listener to a ScrollTrigger event. | ||
* Attach a new event listener to a ScrollTrigger event. | ||
* | ||
@@ -125,2 +125,23 @@ * ```js | ||
/** | ||
* Creates a coordinated group of ScrollTriggers (one for each target element) that batch their callbacks within a certain interval | ||
* | ||
* ```js | ||
* ScrollTrigger.batch(".class", { | ||
* interval: 0.1, | ||
* batchMax: 3, | ||
* onEnter: batch => gsap.to(batch, {opacity: 1, stagger: 0.15, overwrite: true}), | ||
* onLeave: batch => gsap.set(batch, {opacity: 0, overwrite: true}), | ||
* onEnterBack: batch => gsap.to(batch, {opacity: 1, stagger: 0.15, overwrite: true}), | ||
* onLeaveBack: batch => gsap.set(batch, {opacity: 0, overwrite: true}) | ||
* }); | ||
* ``` | ||
* | ||
* @param {gsap.DOMTarget} targets | ||
* @param {ScrollTriggerBatchVars} vars | ||
* @returns {ScrollTriggerInstance[]} An Array of the resulting ScrollTrigger instances | ||
* @memberof ScrollTrigger | ||
*/ | ||
batch(targets: gsap.DOMTarget, vars: ScrollTriggerBatchVars): ScrollTriggerInstance[]; | ||
/** | ||
* Create scroll triggers that aren't directly connected to a tween or timeline. | ||
@@ -252,2 +273,4 @@ * | ||
type Callback = (self: ScrollTriggerInstance) => any; | ||
type BatchCallback = (targets: Element[], triggers: ScrollTriggerInstance[]) => any; | ||
type NumFunc = () => number; | ||
type SnapFunc = (value: number) => number; | ||
@@ -295,2 +318,3 @@ type StartEndFunc = () => string | number; | ||
onRefresh?: Callback; | ||
onRefreshInit?: Callback; | ||
onSnapComplete?: Callback; | ||
@@ -315,2 +339,25 @@ onScrubComplete?: Callback; | ||
} | ||
interface ScrollTriggerBatchVars { | ||
interval?: number; | ||
batchMax?: number | NumFunc; | ||
anticipatePin?: number; | ||
end?: string | number | StartEndFunc; | ||
horizontal?: boolean; | ||
once?: boolean; | ||
onEnter?: BatchCallback; | ||
onEnterBack?: BatchCallback; | ||
onLeave?: BatchCallback; | ||
onLeaveBack?: BatchCallback; | ||
onRefresh?: BatchCallback; | ||
onRefreshInit?: Callback; | ||
onUpdate?: BatchCallback; | ||
onToggle?: BatchCallback; | ||
pin?: boolean | string | Element; | ||
pinReparent?: boolean; | ||
pinSpacing?: boolean | string; | ||
scroller?: string | Element; | ||
start?: string | number | StartEndFunc; | ||
toggleClass?: string | ToggleClassVars; | ||
} | ||
} | ||
@@ -317,0 +364,0 @@ |
@@ -311,3 +311,3 @@ declare namespace gsap.core { | ||
*/ | ||
set(target: TweenTarget, vars: TweenVars, position?: Position): this; | ||
set(targets: TweenTarget, vars: TweenVars, position?: Position): this; | ||
@@ -338,2 +338,3 @@ /** | ||
* @param {TweenVars} vars | ||
* @param {Position} position | ||
* @returns {Timeline} The timeline | ||
@@ -353,2 +354,3 @@ * @memberof Timeline | ||
* @param {Timeline} vars | ||
* @param {Position} position | ||
* @returns {Timeline} The timeline | ||
@@ -355,0 +357,0 @@ * @memberof Timeline |
/*! | ||
* matrix 3.3.0 | ||
* matrix 3.3.1 | ||
* https://greensock.com | ||
@@ -63,3 +63,3 @@ * | ||
if (cache && !cache.scaleX && !cache.scaleY) { | ||
if (cache && !cache.scaleX && !cache.scaleY && cache.renderTransform) { | ||
cache.scaleX = cache.scaleY = 1e-4; | ||
@@ -66,0 +66,0 @@ cache.renderTransform(1, cache); |
/*! | ||
* paths 3.3.0 | ||
* paths 3.3.1 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
/*! | ||
* strings: 3.3.0 | ||
* strings: 3.3.1 | ||
* https://greensock.com | ||
@@ -4,0 +4,0 @@ * |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2266733
36123