/*! * version: 1.13.1 * date: 2014-07-22 * updates and docs at: http://www.htzy.cc * * @license copyright (c) 2008-2014, greensock. all rights reserved. * this work is subject to the terms at http://www.greensock.com/terms_of_use.html or for * club greensock members, the software agreement that was issued with your membership. * * @author: jack doyle, jack@greensock.com */ (function(t,e){"use strict";var i=t.greensockglobals=t.greensockglobals||t;if(!i.tweenlite){var s,n,r,a,o,l=function(t){var e,s=t.split("."),n=i;for(e=0;s.length>e;e++)n[s[e]]=n=n[s[e]]||{};return n},h=l("com.greensock"),_=1e-10,u=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},f=function(){},m=function(){var t=object.prototype.tostring,e=t.call([]);return function(i){return null!=i&&(i instanceof array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),p={},c=function(s,n,r,a){this.sc=p[s]?p[s].sc:[],p[s]=this,this.gsclass=null,this.func=r;var o=[];this.check=function(h){for(var _,u,f,m,d=n.length,v=d;--d>-1;)(_=p[n[d]]||new c(n[d],[])).gsclass?(o[d]=_.gsclass,v--):h&&_.sc.push(this);if(0===v&&r)for(u=("com.greensock."+s).split("."),f=u.pop(),m=l(u.join("."))[f]=this.gsclass=r.apply(r,o),a&&(i[f]=m,"function"==typeof define&&define.amd?define((t.greensockamdpath?t.greensockamdpath+"/":"")+s.split(".").pop(),[],function(){return m}):s===e&&"undefined"!=typeof module&&module.exports&&(module.exports=m)),d=0;this.sc.length>d;d++)this.sc[d].check()},this.check(!0)},d=t._gsdefine=function(t,e,i,s){return new c(t,e,i,s)},v=h._class=function(t,e,i){return e=e||function(){},d(t,[],function(){return e},i),e};d.globals=i;var g=[0,0,1,1],t=[],y=v("easing.ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?g.concat(e):g},!0),w=y.map={},p=y.register=function(t,e,i,s){for(var n,r,a,o,l=e.split(","),_=l.length,u=(i||"easein,easeout,easeinout").split(",");--_>-1;)for(r=l[_],n=s?v("easing."+r,null,!0):h.easing[r]||{},a=u.length;--a>-1;)o=u[a],w[r+"."+o]=w[o+r]=n[o]=t.getratio?t:t[o]||new t};for(r=y.prototype,r._calcend=!1,r.getratio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:.5>t?s/2:1-s/2},s=["linear","quad","cubic","quart","quint,strong"],n=s.length;--n>-1;)r=s[n]+",power"+n,p(new y(null,null,1,n),r,"easeout",!0),p(new y(null,null,2,n),r,"easein"+(0===n?",easenone":"")),p(new y(null,null,3,n),r,"easeinout");w.linear=h.easing.linear.easein,w.swing=h.easing.quad.easeinout;var b=v("events.eventdispatcher",function(t){this._listeners={},this._eventtarget=t||this});r=b.prototype,r.addeventlistener=function(t,e,i,s,n){n=n||0;var r,l,h=this._listeners[t],_=0;for(null==h&&(this._listeners[t]=h=[]),l=h.length;--l>-1;)r=h[l],r.c===e&&r.s===i?h.splice(l,1):0===_&&n>r.pr&&(_=l+1);h.splice(_,0,{c:e,s:i,up:s,pr:n}),this!==a||o||a.wake()},r.removeeventlistener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;--i>-1;)if(s[i].c===e)return s.splice(i,1),void 0},r.dispatchevent=function(t){var e,i,s,n=this._listeners[t];if(n)for(e=n.length,i=this._eventtarget;--e>-1;)s=n[e],s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i)};var k=t.requestanimationframe,a=t.cancelanimationframe,s=date.now||function(){return(new date).gettime()},x=s();for(s=["ms","moz","webkit","o"],n=s.length;--n>-1&&!k;)k=t[s[n]+"requestanimationframe"],a=t[s[n]+"cancelanimationframe"]||t[s[n]+"cancelrequestanimationframe"];v("ticker",function(t,e){var i,s,n,r,l,h=this,u=s(),m=e!==!1&&k,p=500,c=33,d=function(t){var e,a,o=s()-x;o>p&&(u+=o-c),x+=o,h.time=(x-u)/1e3,e=h.time-l,(!i||e>0||t===!0)&&(h.frame++,l+=e+(e>=r?.004:r-e),a=!0),t!==!0&&(n=s(d)),a&&h.dispatchevent("tick")};b.call(h),h.time=h.frame=0,h.tick=function(){d(!0)},h.lagsmoothing=function(t,e){p=t||1/_,c=math.min(e,p,0)},h.sleep=function(){null!=n&&(m&&a?a(n):cleartimeout(n),s=f,n=null,h===a&&(o=!1))},h.wake=function(){null!==n?h.sleep():h.frame>10&&(x=s()-p+5),s=0===i?f:m&&k?k:function(t){return settimeout(t,0|1e3*(l-h.time)+1)},h===a&&(o=!0),d(2)},h.fps=function(t){return arguments.length?(i=t,r=1/(i||60),l=this.time+r,h.wake(),void 0):i},h.useraf=function(t){return arguments.length?(h.sleep(),m=t,h.fps(i),void 0):m},h.fps(t),settimeout(function(){m&&(!n||5>h.frame)&&h.useraf(!1)},1500)}),r=h.ticker.prototype=new h.events.eventdispatcher,r.constructor=h.ticker;var c=v("core.animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalduration=t||0,this._delay=number(e.delay)||0,this._timescale=1,this._active=e.immediaterender===!0,this.data=e.data,this._reversed=e.reversed===!0,b){o||a.wake();var i=this.vars.useframes?q:b;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=c.ticker=new h.ticker,r=c.prototype,r._dirty=r._gc=r._initted=r._paused=!1,r._totaltime=r._time=0,r._rawprevtime=-1,r._next=r._last=r._onupdate=r._timeline=r.timeline=null,r._paused=!1;var r=function(){o&&s()-x>2e3&&a.wake(),settimeout(r,2e3)};r(),r.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},r.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},r.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},r.seek=function(t,e){return this.totaltime(number(t),e!==!1)},r.restart=function(t,e){return this.reversed(!1).paused(!1).totaltime(t?-this._delay:0,e!==!1,!0)},r.reverse=function(t,e){return null!=t&&this.seek(t||this.totalduration(),e),this.reversed(!0).paused(!1)},r.render=function(){},r.invalidate=function(){return this},r.isactive=function(){var t,e=this._timeline,i=this._starttime;return!e||!this._gc&&!this._paused&&e.isactive()&&(t=e.rawtime())>=i&&i+this.totalduration()/this._timescale>t},r._enabled=function(t,e){return o||a.wake(),this._gc=!t,this._active=this.isactive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._starttime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},r._kill=function(){return this._enabled(!1,!1)},r.kill=function(t,e){return this._kill(t,e),this},r._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},r._swapselfinparams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},r.eventcallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"params"]=m(i)&&-1!==i.join("").indexof("{self}")?this._swapselfinparams(i):i,n[t+"scope"]=s),"onupdate"===t&&(this._onupdate=e)}return this},r.delay=function(t){return arguments.length?(this._timeline.smoothchildtiming&&this.starttime(this._starttime+t-this._delay),this._delay=t,this):this._delay},r.duration=function(t){return arguments.length?(this._duration=this._totalduration=t,this._uncache(!0),this._timeline.smoothchildtiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},r.totaltime=function(t,e,i){if(o||a.wake(),!arguments.length)return this._totaltime;if(this._timeline){if(0>t&&!i&&(t+=this.totalduration()),this._timeline.smoothchildtiming){this._dirty&&this.totalduration();var s=this._totalduration,n=this._timeline;if(t>s&&!i&&(t=s),this._starttime=(this._paused?this._pausetime:n._time)-(this._reversed?s-t:t)/this._timescale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._starttime+n._totaltime)/n._timescale&&n.totaltime(n._totaltime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),(this._totaltime!==t||0===this._duration)&&(this.render(t,e,!1),o.length&&m())}return this},r.progress=r.totalprogress=function(t,e){return arguments.length?this.totaltime(this.duration()*t,e):this._time/this.duration()},r.starttime=function(t){return arguments.length?(t!==this._starttime&&(this._starttime=t,this.timeline&&this.timeline._sortchildren&&this.timeline.add(this,t-this._delay)),this):this._starttime},r.timescale=function(t){if(!arguments.length)return this._timescale;if(t=t||_,this._timeline&&this._timeline.smoothchildtiming){var e=this._pausetime,i=e||0===e?e:this._timeline.totaltime();this._starttime=i-(i-this._starttime)*this._timescale/t}return this._timescale=t,this._uncache(!1)},r.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totaltime(this._timeline&&!this._timeline.smoothchildtiming?this.totalduration()-this._totaltime:this._totaltime,!0)),this):this._reversed},r.paused=function(t){if(!arguments.length)return this._paused;if(t!=this._paused&&this._timeline){o||t||a.wake();var e=this._timeline,i=e.rawtime(),s=i-this._pausetime;!t&&e.smoothchildtiming&&(this._starttime+=s,this._uncache(!1)),this._pausetime=t?i:null,this._paused=t,this._active=this.isactive(),!t&&0!==s&&this._initted&&this.duration()&&this.render(e.smoothchildtiming?this._totaltime:(i-this._starttime)/this._timescale,!0,!0)}return this._gc&&!t&&this._enabled(!0,!1),this};var d=v("core.simpletimeline",function(t){c.call(this,0,t),this.autoremovechildren=this.smoothchildtiming=!0});r=d.prototype=new c,r.constructor=d,r.kill()._gc=!1,r._first=r._last=null,r._sortchildren=!1,r.add=r.insert=function(t,e){var i,s;if(t._starttime=number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pausetime=t._starttime+(this.rawtime()-t._starttime)/t._timescale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,this._sortchildren)for(s=t._starttime;i&&i._starttime>s;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._timeline&&this._uncache(!0),this},r._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,this._timeline&&this._uncache(!0)),this},r.render=function(t,e,i){var s,n=this._first;for(this._totaltime=this._time=this._rawprevtime=t;n;)s=n._next,(n._active||t>=n._starttime&&!n._paused)&&(n._reversed?n.render((n._dirty?n.totalduration():n._totalduration)-(t-n._starttime)*n._timescale,e,i):n.render((t-n._starttime)*n._timescale,e,i)),n=s},r.rawtime=function(){return o||a.wake(),this._totaltime};var i=v("tweenlite",function(e,i,s){if(c.call(this,i,s),this.render=i.prototype.render,null==e)throw"cannot tween a null target.";this.target=e="string"!=typeof e?e:i.selector(e)||e;var n,r,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodetype&&e[0].style&&!e.nodetype),l=this.vars.overwrite;if(this._overwrite=l=null==l?q[i.defaultoverwrite]:"number"==typeof l?l>>0:q[l],(o||e instanceof array||e.push&&m(e))&&"number"!=typeof e[0])for(this._targets=a=u(e),this._proplookup=[],this._siblings=[],n=0;a.length>n;n++)r=a[n],r?"string"!=typeof r?r.length&&r!==t&&r[0]&&(r[0]===t||r[0].nodetype&&r[0].style&&!r.nodetype)?(a.splice(n--,1),this._targets=a=a.concat(u(r))):(this._siblings[n]=$(r,this,!1),1===l&&this._siblings[n].length>1&&k(r,this,null,1,this._siblings[n])):(r=a[n--]=i.selector(r),"string"==typeof r&&a.splice(n+1,1)):a.splice(n--,1);else this._proplookup={},this._siblings=$(e,this,!1),1===l&&this._siblings.length>1&&k(e,this,null,1,this._siblings);(this.vars.immediaterender||0===i&&0===this._delay&&this.vars.immediaterender!==!1)&&(this._time=-_,this.render(-this._delay))},!0),e=function(e){return e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodetype&&e[0].style&&!e.nodetype)},z=function(t,e){var i,s={};for(i in t)g[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"classname"!==i&&"border"!==i||!(!u[i]||u[i]&&u[i]._autocss)||(s[i]=t[i],delete t[i]);t.css=s};r=i.prototype=new c,r.constructor=i,r.kill()._gc=!1,r.ratio=0,r._firstpt=r._targets=r._overwrittenprops=r._startat=null,r._notifypluginsofenabled=r._lazy=!1,i.version="1.13.1",i.defaultease=r._ease=new y(null,null,1,1),i.defaultoverwrite="auto",i.ticker=a,i.autosleep=!0,i.lagsmoothing=function(t,e){a.lagsmoothing(t,e)},i.selector=t.$||t.jquery||function(e){var i=t.$||t.jquery;return i?(i.selector=i,i(e)):"undefined"==typeof document?e:document.queryselectorall?document.queryselectorall(e):document.getelementbyid("#"===e.charat(0)?e.substr(1):e)};var o=[],l={},n=i._internals={isarray:m,isselector:e,lazytweens:o},u=i._plugins={},f=n.tweenlookup={},j=0,g=n.reservedprops={ease:1,delay:1,overwrite:1,oncomplete:1,oncompleteparams:1,oncompletescope:1,useframes:1,runbackwards:1,startat:1,onupdate:1,onupdateparams:1,onupdatescope:1,onstart:1,onstartparams:1,onstartscope:1,onreversecomplete:1,onreversecompleteparams:1,onreversecompletescope:1,onrepeat:1,onrepeatparams:1,onrepeatscope:1,easeparams:1,yoyo:1,immediaterender:1,repeat:1,repeatdelay:1,data:1,paused:1,reversed:1,autocss:1,lazy:1},q={none:0,all:1,auto:2,concurrent:3,allonstart:4,preexisting:5,"true":1,"false":0},q=c._rootframestimeline=new d,b=c._roottimeline=new d,m=n.lazyrender=function(){var t=o.length;for(l={};--t>-1;)s=o[t],s&&s._lazy!==!1&&(s.render(s._lazy,!1,!0),s._lazy=!1);o.length=0};b._starttime=a.time,q._starttime=a.frame,b._active=q._active=!0,settimeout(m,1),c._updateroot=i.render=function(){var t,e,i;if(o.length&&m(),b.render((a.time-b._starttime)*b._timescale,!1,!1),q.render((a.frame-q._starttime)*q._timescale,!1,!1),o.length&&m(),!(a.frame%120)){for(i in f){for(e=f[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete f[i]}if(i=b._first,(!i||i._paused)&&i.autosleep&&!q._first&&1===a._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||a.sleep()}}},a.addeventlistener("tick",c._updateroot);var $=function(t,e,i){var s,n,r=t._gstweenid;if(f[r||(t._gstweenid=r="t"+j++)]||(f[r]={target:t,tweens:[]}),e&&(s=f[r].tweens,s[n=s.length]=e,i))for(;--n>-1;)s[n]===e&&s.splice(n,1);return f[r].tweens},k=function(t,e,i,s,n){var r,a,o,l;if(1===s||s>=4){for(l=n.length,r=0;l>r;r++)if((o=n[r])!==e)o._gc||o._enabled(!1,!1)&&(a=!0);else if(5===s)break;return a}var h,u=e._starttime+_,f=[],m=0,p=0===e._duration;for(r=n.length;--r>-1;)(o=n[r])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||h(e,0,p),0===h(o,h,p)&&(f[m++]=o)):u>=o._starttime&&o._starttime+o.totalduration()/o._timescale>u&&((p||!o._initted)&&2e-10>=u-o._starttime||(f[m++]=o)));for(r=m;--r>-1;)o=f[r],2===s&&o._kill(i,t)&&(a=!0),(2!==s||!o._firstpt&&o._initted)&&o._enabled(!1,!1)&&(a=!0);return a},h=function(t,e,i){for(var s=t._timeline,n=s._timescale,r=t._starttime;s._timeline;){if(r+=s._starttime,n*=s._timescale,s._paused)return-100;s=s._timeline}return r/=n,r>e?r-e:i&&r===e||!t._initted&&2*_>r-e?_:(r+=t.totalduration()/t._timescale/n)>e+_?0:r-e-_};r._init=function(){var t,e,i,s,n,r=this.vars,a=this._overwrittenprops,o=this._duration,l=!!r.immediaterender,h=r.ease;if(r.startat){this._startat&&(this._startat.render(-1,!0),this._startat.kill()),n={};for(s in r.startat)n[s]=r.startat[s];if(n.overwrite=!1,n.immediaterender=!0,n.lazy=l&&r.lazy!==!1,n.startat=n.delay=null,this._startat=i.to(this.target,0,n),l)if(this._time>0)this._startat=null;else if(0!==o)return}else if(r.runbackwards&&0!==o)if(this._startat)this._startat.render(-1,!0),this._startat.kill(),this._startat=null;else{i={};for(s in r)g[s]&&"autocss"!==s||(i[s]=r[s]);if(i.overwrite=0,i.data="isfromstart",i.lazy=l&&r.lazy!==!1,i.immediaterender=l,this._startat=i.to(this.target,0,i),l){if(0===this._time)return}else this._startat._init(),this._startat._enabled(!1)}if(this._ease=h=h?h instanceof y?h:"function"==typeof h?new y(h,r.easeparams):w[h]||i.defaultease:i.defaultease,r.easeparams instanceof array&&h.config&&(this._ease=h.config.apply(h,r.easeparams)),this._easetype=this._ease._type,this._easepower=this._ease._power,this._firstpt=null,this._targets)for(t=this._targets.length;--t>-1;)this._initprops(this._targets[t],this._proplookup[t]={},this._siblings[t],a?a[t]:null)&&(e=!0);else e=this._initprops(this.target,this._proplookup,this._siblings,a);if(e&&i._onpluginevent("_oninitallprops",this),a&&(this._firstpt||"function"!=typeof this.target&&this._enabled(!1,!1)),r.runbackwards)for(i=this._firstpt;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onupdate=r.onupdate,this._initted=!0},r._initprops=function(e,i,s,n){var r,a,o,l,h,_;if(null==e)return!1;l[e._gstweenid]&&m(),this.vars.css||e.style&&e!==t&&e.nodetype&&u.css&&this.vars.autocss!==!1&&z(this.vars,e);for(r in this.vars){if(_=this.vars[r],g[r])_&&(_ instanceof array||_.push&&m(_))&&-1!==_.join("").indexof("{self}")&&(this.vars[r]=_=this._swapselfinparams(_,this));else if(u[r]&&(l=new u[r])._oninittween(e,this.vars[r],this)){for(this._firstpt=h={_next:this._firstpt,t:l,p:"setratio",s:0,c:1,f:!0,n:r,pg:!0,pr:l._priority},a=l._overwriteprops.length;--a>-1;)i[l._overwriteprops[a]]=this._firstpt;(l._priority||l._oninitallprops)&&(o=!0),(l._ondisable||l._onenable)&&(this._notifypluginsofenabled=!0)}else this._firstpt=i[r]=h={_next:this._firstpt,t:e,p:r,f:"function"==typeof e[r],n:r,pg:!1,pr:0},h.s=h.f?e[r.indexof("set")||"function"!=typeof e["get"+r.substr(3)]?r:"get"+r.substr(3)]():parsefloat(e[r]),h.c="string"==typeof _&&"="===_.charat(1)?parseint(_.charat(0)+"1",10)*number(_.substr(2)):number(_)-h.s||0;h&&h._next&&(h._next._prev=h)}return n&&this._kill(n,e)?this._initprops(e,i,s,n):this._overwrite>1&&this._firstpt&&s.length>1&&k(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initprops(e,i,s,n)):(this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(l[e._gstweenid]=!0),o)},r.render=function(t,e,i){var s,n,r,a,o=this._time,l=this._duration,h=this._rawprevtime;if(t>=l)this._totaltime=this._time=l,this.ratio=this._ease._calcend?this._ease.getratio(1):1,this._reversed||(s=!0,n="oncomplete"),0===l&&(this._initted||!this.vars.lazy||i)&&(this._starttime===this._timeline._duration&&(t=0),(0===t||0>h||h===_)&&h!==t&&(i=!0,h>_&&(n="onreversecomplete")),this._rawprevtime=a=!e||t||h===t?t:_);else if(1e-7>t)this._totaltime=this._time=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==o||0===l&&h>0&&h!==_)&&(n="onreversecomplete",s=this._reversed),0>t?(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(i=!0),this._rawprevtime=a=!e||t||h===t?t:_)):this._initted||(i=!0);else if(this._totaltime=this._time=t,this._easetype){var u=t/l,f=this._easetype,m=this._easepower;(1===f||3===f&&u>=.5)&&(u=1-u),3===f&&(u*=2),1===m?u*=u:2===m?u*=u*u:3===m?u*=u*u*u:4===m&&(u*=u*u*u*u),this.ratio=1===f?1-u:2===f?u:.5>t/l?u/2:1-u/2}else this.ratio=this._ease.getratio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totaltime=o,this._rawprevtime=h,o.push(this),this._lazy=t,void 0;this._time&&!s?this.ratio=this._ease.getratio(this._time/l):s&&this._ease._calcend&&(this.ratio=this._ease.getratio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startat&&(t>=0?this._startat.render(t,e,i):n||(n="_dummygs")),this.vars.onstart&&(0!==this._time||0===l)&&(e||this.vars.onstart.apply(this.vars.onstartscope||this,this.vars.onstartparams||t))),r=this._firstpt;r;)r.f?r.t[r.p](r.c*this.ratio+r.s):r.t[r.p]=r.c*this.ratio+r.s,r=r._next;this._onupdate&&(0>t&&this._startat&&this._starttime&&this._startat.render(t,e,i),e||(this._time!==o||s)&&this._onupdate.apply(this.vars.onupdatescope||this,this.vars.onupdateparams||t)),n&&(!this._gc||i)&&(0>t&&this._startat&&!this._onupdate&&this._starttime&&this._startat.render(t,e,i),s&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this.vars[n].apply(this.vars[n+"scope"]||this,this.vars[n+"params"]||t),0===l&&this._rawprevtime===_&&a!==_&&(this._rawprevtime=0))}},r._kill=function(t,e){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:i.selector(e)||e;var i,s,n,r,a,o,l,h;if((m(e)||e(e))&&"number"!=typeof e[0])for(i=e.length;--i>-1;)this._kill(t,e[i])&&(o=!0);else{if(this._targets){for(i=this._targets.length;--i>-1;)if(e===this._targets[i]){a=this._proplookup[i]||{},this._overwrittenprops=this._overwrittenprops||[],s=this._overwrittenprops[i]=t?this._overwrittenprops[i]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._proplookup,s=this._overwrittenprops=t?this._overwrittenprops||{}:"all"}if(a){l=t||a,h=t!==s&&"all"!==s&&t!==a&&("object"!=typeof t||!t._tempkill);for(n in l)(r=a[n])&&(r.pg&&r.t._kill(l)&&(o=!0),r.pg&&0!==r.t._overwriteprops.length||(r._prev?r._prev._next=r._next:r===this._firstpt&&(this._firstpt=r._next),r._next&&(r._next._prev=r._prev),r._next=r._prev=null),delete a[n]),h&&(s[n]=1);!this._firstpt&&this._initted&&this._enabled(!1,!1)}}return o},r.invalidate=function(){return this._notifypluginsofenabled&&i._onpluginevent("_ondisable",this),this._firstpt=null,this._overwrittenprops=null,this._onupdate=null,this._startat=null,this._initted=this._active=this._notifypluginsofenabled=this._lazy=!1,this._proplookup=this._targets?{}:[],this},r._enabled=function(t,e){if(o||a.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=$(s[i],this,!0);else this._siblings=$(this.target,this,!0)}return c.prototype._enabled.call(this,t,e),this._notifypluginsofenabled&&this._firstpt?i._onpluginevent(t?"_onenable":"_ondisable",this):!1},i.to=function(t,e,i){return new i(t,e,i)},i.from=function(t,e,i){return i.runbackwards=!0,i.immediaterender=0!=i.immediaterender,new i(t,e,i)},i.fromto=function(t,e,i,s){return s.startat=i,s.immediaterender=0!=s.immediaterender&&0!=i.immediaterender,new i(t,e,s)},i.delayedcall=function(t,e,i,s,n){return new i(e,0,{delay:t,oncomplete:e,oncompleteparams:i,oncompletescope:s,onreversecomplete:e,onreversecompleteparams:i,onreversecompletescope:s,immediaterender:!1,useframes:n,overwrite:0})},i.set=function(t,e){return new i(t,0,e)},i.gettweensof=function(t,e){if(null==t)return[];t="string"!=typeof t?t:i.selector(t)||t;var i,s,n,r;if((m(t)||e(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(i.gettweensof(t[i],e));for(i=s.length;--i>-1;)for(r=s[i],n=i;--n>-1;)r===s[n]&&s.splice(i,1)}else for(s=$(t).concat(),i=s.length;--i>-1;)(s[i]._gc||e&&!s[i].isactive())&&s.splice(i,1);return s},i.killtweensof=i.killdelayedcallsto=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=i.gettweensof(t,e),n=s.length;--n>-1;)s[n]._kill(i,t)};var j=v("plugins.tweenplugin",function(t,e){this._overwriteprops=(t||"").split(","),this._propname=this._overwriteprops[0],this._priority=e||0,this._super=j.prototype},!0);if(r=j.prototype,j.version="1.10.1",j.api=2,r._firstpt=null,r._addtween=function(t,e,i,s,n,r){var a,o;return null!=s&&(a="number"==typeof s||"="!==s.charat(1)?number(s)-i:parseint(s.charat(0)+"1",10)*number(s.substr(2)))?(this._firstpt=o={_next:this._firstpt,t:t,p:e,s:i,c:a,f:"function"==typeof t[e],n:n||e,r:r},o._next&&(o._next._prev=o),o):void 0},r.setratio=function(t){for(var e,i=this._firstpt,s=1e-6;i;)e=i.c*t+i.s,i.r?e=math.round(e):s>e&&e>-s&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next},r._kill=function(t){var e,i=this._overwriteprops,s=this._firstpt;if(null!=t[this._propname])this._overwriteprops=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstpt===s&&(this._firstpt=s._next)),s=s._next;return!1},r._roundprops=function(t,e){for(var i=this._firstpt;i;)(t[this._propname]||null!=i.n&&t[i.n.split(this._propname+"_").join("")])&&(i.r=e),i=i._next},i._onpluginevent=function(t,e){var i,s,n,r,a,o=e._firstpt;if("_oninitallprops"===t){for(;o;){for(a=o._next,s=n;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:r)?o._prev._next=o:n=o,(o._next=s)?s._prev=o:r=o,o=a}o=e._firstpt=n}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},j.activate=function(t){for(var e=t.length;--e>-1;)t[e].api===j.api&&(u[(new t[e])._propname]=t[e]);return!0},d.plugin=function(t){if(!(t&&t.propname&&t.init&&t.api))throw"illegal plugin definition.";var e,i=t.propname,s=t.priority||0,n=t.overwriteprops,r={init:"_oninittween",set:"setratio",kill:"_kill",round:"_roundprops",initall:"_oninitallprops"},a=v("plugins."+i.charat(0).touppercase()+i.substr(1)+"plugin",function(){j.call(this,i,s),this._overwriteprops=n||[]},t.global===!0),o=a.prototype=new j(i);o.constructor=a,a.api=t.api;for(e in r)"function"==typeof t[e]&&(o[r[e]]=t[e]);return a.version=t.version,j.activate([a]),a},s=t._gsqueue){for(n=0;s.length>n;n++)s[n]();for(r in p)p[r].func||t.console.log("gsap encountered missing dependency: com.greensock."+r)}o=!1}})("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"tweenlite");