/*! * GSAP 3.4.0 * https://greensock.com * * @license Copyright 2020, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */ !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 e(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t){return"string"==typeof t}function n(t){return"function"==typeof t}function s(t){return"number"==typeof t}function a(t){return void 0===t}function o(t){return"object"==typeof t}function u(t){return!1!==t}function h(){return"undefined"!=typeof window}function l(t){return n(t)||i(t)}function f(t){return(vt=le(t,ee))&&ur}function p(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function c(t,e){return!e&&console.warn(t)}function _(t,e){return t&&(ee[t]=e)&&vt&&(vt[t]=e)||ee}function d(){return 0}function m(t){var e,r,i=t[0];if(o(i)||n(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=ue.length;r--&&!ue[r].targetTest(i););e=ue[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new ze(t[r],e)))||t.splice(r,1);return t}function g(t){return t._gsap||m(de(t))[0]._gsap}function v(t,e){var r=t[e];return n(r)?t[e]():a(r)&&t.getAttribute(e)||r}function y(t,e){return(t=t.split(",")).forEach(e)||t}function T(t){return Math.round(1e5*t)/1e5||0}function w(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++iUt)&&e.render(r,!0)),F(t)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._durs;)a=a._prev;a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),t._recent=e,i||Y(t,e),t}function X(t,e){return(ee.ScrollTrigger||p("scrollTrigger",e))&&ee.ScrollTrigger.create(e,t)}function N(t,e,r,i){return Ye(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Tt!==xe.frame?(ie.push(t),t._lazy=[e,i],1):void 0:1}function q(t,e,r){var i=t._repeat,n=T(e)||0;return t._dur=n,t._tDur=i?i<0?1e10:T(n*(i+1)+t._rDelay*i):n,t._time>n&&(t._time=n,t._tTime=Math.min(t._tTime,t._tDur)),r||F(t.parent),t.parent&&L(t),t}function V(t){return t instanceof Ee?F(t):q(t,t._dur)}function j(t,e){var r,n,s=t.labels,a=t._recent||pe,o=t.duration()>=Yt?a.endTime(!1):t._dur;return i(e)&&(isNaN(e)||e in s)?"<"===(r=e.charAt(0))||">"===r?("<"===r?a._start:a.endTime(0<=a._repeat))+(parseFloat(e.substr(1))||0):(r=e.indexOf("="))<0?(e in s||(s[e]=o),s[e]):(n=+(e.charAt(r-1)+e.substr(r+1)),1(n=Math.abs(n))&&(s=i,o=n);return s}function it(t){return R(t),t.progress()<1&&ge(t,"onInterrupt"),t}function nt(t,e,r){return(6*(t=t<0?t+1:1>16,t>>8&ve,t&ve]:0:ye.black;if(!_){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ye[t])_=ye[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),_=[(t=parseInt(t.substr(1),16))>>16,t>>8&ve,t&ve];else if("hsl"===t.substr(0,3))if(_=c=t.match(Wt),e){if(~t.indexOf("="))return _=t.match(Zt),r&&_.length<4&&(_[3]=1),_}else o=+_[0]%360/360,u=_[1]/100,i=2*(h=_[2]/100)-(n=h<=.5?h*(u+1):h+u-h*u),3<_.length&&(_[3]*=1),_[0]=nt(o+1/3,i,n),_[1]=nt(o,i,n),_[2]=nt(o-1/3,i,n);else _=t.match(Wt)||ye.transparent;_=_.map(Number)}return e&&!c&&(i=_[0]/ve,n=_[1]/ve,a=_[2]/ve,h=((l=Math.max(i,n,a))+(f=Math.min(i,n,a)))/2,l===f?o=u=0:(p=l-f,u=.5=r&&te)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if(!i._dur&&"isPause"===i.data&&i._start=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0=this.totalDuration()||!v&&d)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0=i&&(s instanceof qe?e&&n.push(s):(r&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,r)))),s=s._next;return n},o.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},o.remove=function(t){return i(t)?this.removeLabel(t):n(t)?this.killTweensOf(t):(z(this,t),t===this._recent&&(this._recent=this._last),F(this))},o.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=T(xe.time-(0e:!e||a.isActive())&&i.push(a):(r=a.getTweensOf(n,e)).length&&i.push.apply(i,r),a=a._next;return i},o.tweenTo=function(t,e){e=e||{};var r=this,i=j(r,t),n=e.startAt,s=e.onStart,a=e.onStartParams,o=qe.to(r,C(e,{ease:"none",lazy:!1,time:i,duration:e.duration||Math.abs((i-(n&&"time"in n?n.time:r._time))/r.timeScale())||Ut,onStart:function(){r.pause();var t=e.duration||Math.abs((i-r._time)/r.timeScale());o._dur!==t&&q(o,t).render(o._time,!0,!0),s&&s.apply(o,a||[])}}));return o},o.tweenFromTo=function(t,e,r){return this.tweenTo(e,C({startAt:{time:j(this,t)}},r))},o.recent=function(){return this._recent},o.nextLabel=function(t){return void 0===t&&(t=this._time),rt(this,j(this,t))},o.previousLabel=function(t){return void 0===t&&(t=this._time),rt(this,j(this,t),1)},o.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Ut)},o.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,s=this.labels;n;)n._start>=r&&(n._start+=t),n=n._next;if(e)for(i in s)s[i]>=r&&(s[i]+=t);return F(this)},o.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},o.clear=function(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={}),F(this)},o.totalDuration=function(t){var e,r,i,n,s=0,a=this,o=a._last,u=Yt;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(n=a.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),u<(i=o._start)&&a._sort&&o._ts&&!a._lock?(a._lock=1,U(a,o,i-o._delay,1)._lock=0):u=i,i<0&&o._ts&&(s-=i,(!n&&!a._dp||n&&n.smoothChildTiming)&&(a._start+=i/a._ts,a._time-=i,a._tTime-=i),a.shiftChildren(-i,!1,-1/0),u=0),s<(r=L(o))&&o._ts&&(s=r),o=e;q(a,a===_t&&a._time>s?a._time:s,1),a._dirty=0}return a._tDur},a.updateRoot=function(t){if(_t._ts&&(M(_t,B(t,_t)),Tt=xe.frame),xe.frame>=oe){oe+=Lt.autoSleep||120;var e=_t._first;if((!e||!e._ts)&&Lt.autoSleep&&xe._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||xe.sleep()}}},a}(Re);function Be(t,e,r,s,a,u){var h,l,f,p;if(se[t]&&!1!==(h=new se[t]).init(a,h.rawVars?e[t]:function(t,e,r,s,a){if(n(t)&&(t=Ue(t,a,e,r,s)),!o(t)||t.style&&t.nodeType||Gt(t))return i(t)?Ue(t,a,e,r,s):t;var u,h={};for(u in t)h[u]=Ue(t[u],a,e,r,s);return h}(e[t],s,a,u,r),r,s,u)&&(r._pt=l=new ir(r._pt,a,t,0,1,h.render,h,0,h.priority),r!==wt))for(f=r._ptLookup[r._targets.indexOf(a)],p=h._props.length;p--;)f[h._props[p]]=l;return h}C(Ee.prototype,{_lock:0,_hasPause:0,_forcing:0});var Le,Ie=function(t,e,r,s,a,o,u,h,l){n(s)&&(s=s(a||0,t,o));var f,c=t[e],_="get"!==r?r:n(c)?l?t[e.indexOf("set")||!n(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():c,d=n(c)?l?We:Ge:Qe;if(i(s)&&(~s.indexOf("random(")&&(s=et(s)),"="===s.charAt(1)&&(s=parseFloat(_)+parseFloat(s.substr(2))*("-"===s.charAt(0)?-1:1)+(G(_)||0))),_!==s)return isNaN(_*s)?(c||e in t||p(e,s),function(t,e,r,i,n,s,a){var o,u,h,l,f,p,c,_,d=new ir(this._pt,t,e,0,1,Je,null,n),m=0,g=0;for(d.b=r,d.e=i,r+="",(c=~(i+="").indexOf("random("))&&(i=et(i)),s&&(s(_=[r,i],t,e),r=_[0],i=_[1]),u=r.match($t)||[];o=$t.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++]&&(p=parseFloat(u[g-1])||0,d._pt={_next:d._pt,p:f||1===g?f:",",s:p,c:"="===l.charAt(1)?parseFloat(l.substr(2))*("-"===l.charAt(0)?-1:1):parseFloat(l)-p,m:h&&h<4?Math.round:0},m=$t.lastIndex);return d.c=m")}));else{if(g=B.length,w=A?H(A):d,o(A))for(v in A)~Xe.indexOf(v)&&((x=x||{})[v]=A[v]);for(p=0;pUt&&!t._dp._lock||t._ts<0||t._dp._ts<0?0:1,u=t._rDelay,h=0;if(u&&t._repeat&&(h=ce(0,t._tDur,e),fe(h,u)!==(s=fe(t._tTime,u))&&(a=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),t._initted||!N(t,e,i,r))if(o!==a||i||t._zTime===Ut||!e&&t._zTime){for(s=t._zTime,t._zTime=e||(r?Ut:0),r=r||e&&!s,t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=h,r||ge(t,"onStart"),n=t._pt;n;)n.r(o,n.d),n=n._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!r&&ge(t,"onUpdate"),h&&t._repeat&&!r&&t.parent&&ge(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&R(t,1),r||(ge(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},a.targets=function(){return this._targets},a.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},a.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e)&&(this._lazy=0,this.parent))return it(this);if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Le&&!0!==Le.vars.overwrite)._first||it(this),this.parent&&r!==this.timeline.totalDuration()&&q(this,this._dur*this.timeline._tDur/r),this}var n,s,a,o,u,h,l,f=this._targets,p=t?de(t):f,c=this._ptLookup,_=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,p))return it(this);for(n=this._op=this._op||[],"all"!==e&&(i(e)&&(u={},y(e,(function(t){return u[t]=1})),e=u),e=function(t,e){var r,i,n,s,a=t[0]?g(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(i in r=le({},e),o)if(i in r)for(n=(s=o[i].split(",")).length;n--;)r[s[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~p.indexOf(f[l]))for(u in s=c[l],"all"===e?(n[l]=e,o=s,a={}):(a=n[l]=n[l]||{},o=e),o)(h=s&&s[u])&&("kill"in h.d&&!0!==h.d.kill(u)||z(this,h,"_pt"),delete s[u]),"all"!==a&&(a[u]=1);return this._initted&&!this._pt&&_&&it(this),this},n.to=function(t,e,r){return new n(t,e,r)},n.from=function(t,e){return new n(t,x(arguments,1))},n.delayedCall=function(t,e,r,i){return new n(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},n.fromTo=function(t,e,r){return new n(t,x(arguments,2))},n.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new n(t,e)},n.killTweensOf=function(t,e,r){return _t.killTweensOf(t,e,r)},n}(Re);function Ve(t,e,r){return t.setAttribute(e,r)}function je(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}C(qe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),y("staggerTo,staggerFrom,staggerFromTo",(function(t){qe[t]=function(){var e=new Ee,r=_e.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var Qe=function(t,e,r){return t[e]=r},Ge=function(t,e,r){return t[e](r)},We=function(t,e,r,i){return t[e](i.fp,r)},Ze=function(t,e){return n(t[e])?Ge:a(t[e])&&t.setAttribute?Ve:Qe},He=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},$e=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Je=function(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)},Ke=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},tr=function(t,e,r,i){for(var n,s=this._pt;s;)n=s._next,s.p===i&&s.modifier(t,e,r),s=n},er=function(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?z(this,i,"_pt"):i.dep||(e=1),i=r;return!e},rr=function(t){for(var e,r,i,n,s=t._pt;s;){for(e=s._next,r=i;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:n)?s._prev._next=s:i=s,(s._next=r)?r._prev=s:n=s,s=e}t._pt=i},ir=(nr.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=je,this.m=t,this.mt=r,this.tween=e},nr);function nr(t,e,r,i,n,s,a,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=s||He,this.d=a||this,this.set=o||Qe,this.pr=u||0,(this._next=t)&&(t._prev=this)}y(he+"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 re[t]=1})),ee.TweenMax=ee.TweenLite=qe,ee.TimelineLite=ee.TimelineMax=Ee,_t=new Ee({sortChildren:!1,defaults:It,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Lt.stringFilter=ut;var sr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r