GSAP (GreenSock Animation Platform): high-performance JavaScript animation for anything JavaScript can touch. 100% free, including every plugin.
JavaScript animationcanvasgsapjavascriptjavascript-libraryreactscrollscrolltriggerspringsvgweb-animations
Minor improvements, CSSRulePlugin revamp
Jack Doyle9158ebff64f1
diff --git a/src/minified/TweenLite.min.js b/src/minified/TweenLite.min.jsindex c4fbf71..b5ce018 100755--- a/src/minified/TweenLite.min.js+++ b/src/minified/TweenLite.min.js@@ -1,6 +1,6 @@/*!- * VERSION: beta 1.651- * DATE: 2012-12-10+ * VERSION: beta 1.663+ * DATE: 2012-12-20* JavaScript* UPDATES AND DOCS AT: http://www.greensock.com*@@ -10,43 +10,43 @@** @author: Jack Doyle, [email protected]*/-(function(m){var G=function(a){var a=a.split("."),c=m,b;for(b=0;b<a.length;b++)c[a[b]]=c=c[a[b]]||{};return c},l=G("com.greensock"),p,j,d,B,H,w={},C=function(a,c,b,k){this.sc=w[a]?w[a].sc:[];w[a]=this;this.gsClass=null;this.def=b;var e=c||[],d=[];this.check=function(c){for(var f=e.length,h=0,n;-1<--f;)(n=w[e[f]]||new C(e[f])).gsClass?d[f]=n.gsClass:(h++,c&&n.sc.push(this));if(0===h&&b){var c=("com.greensock."+a).split("."),f=c.pop(),j=G(c.join("."))[f]=this.gsClass=b.apply(b,d);k&&((m.GreenSockGlobals||-m)[f]=j,"function"===typeof define&&define.amd?define((m.GreenSockAMDPath?m.GreenSockAMDPath+"/":"")+a.split(".").join("/"),[],function(){return j}):"undefined"!==typeof module&&module.exports&&(module.exports=j));for(f=0;f<this.sc.length;f++)this.sc[f].check(!1)}};this.check(!0)},r=l._class=function(a,c,b){c=c||function(){};new C(a,[],function(){return c},b);return c};m._gsDefine=function(a,c,b,k){return new C(a,c,b,k)};var I=[0,0,1,1],D=[],t=r("easing.Ease",function(a,c,b,k){this._func=a;this._type=-b||0;this._power=k||0;this._params=c?I.concat(c):I},!0);d=t.prototype;d._calcEnd=!1;d.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var c=this._type,b=this._power,k=1===c?1-a:2===c?a:0.5>a?2*a:2*(1-a);1===b?k*=k:2===b?k*=k*k:3===b?k*=k*k*k:4===b&&(k*=k*k*k*k);return 1===c?1-k:2===c?k:0.5>a?k/2:1-k/2};p=["Linear","Quad","Cubic","Quart","Quint"];for(j=p.length;-1<--j;)d=r("easing."+p[j],null,!0),B=r("easing.Power"+j,null,!0),d.easeOut=B.easeOut=new t(null,-null,1,j),d.easeIn=B.easeIn=new t(null,null,2,j),d.easeInOut=B.easeInOut=new t(null,null,3,j);r("easing.Strong",l.easing.Power4,!0);l.easing.Linear.easeNone=l.easing.Linear.easeIn;var J=r("events.EventDispatcher",function(a){this._listeners={};this._eventTarget=a||this});d=J.prototype;d.addEventListener=function(a,c,b,k,e){var e=e||0,d=this._listeners[a],i=0,f;null==d&&(this._listeners[a]=d=[]);for(f=d.length;-1<--f;)a=d[f],a.c===c?d.splice(f,1):0===i&&a.pr<e&&(i=f+1);d.splice(i,0,{c:c,s:b,up:k,pr:e})};-d.removeEventListener=function(a,c){var b=this._listeners[a],k;if(b)for(k=b.length;-1<--k;)if(b[k].c===c){b.splice(k,1);break}};d.dispatchEvent=function(a){var c=this._listeners[a];if(c)for(var b=c.length,k=this._eventTarget,d;-1<--b;)d=c[b],d.up?d.c.call(d.s||k,{type:a,target:k}):d.c.call(d.s||k)};var y=m.requestAnimationFrame,E=m.cancelAnimationFrame,K=Date.now||function(){return(new Date).getTime()};p=["ms","moz","webkit","o"];for(j=p.length;-1<--j&&!y;)y=m[p[j]+"RequestAnimationFrame"],E=m[p[j]+-"CancelAnimationFrame"]||m[p[j]+"CancelRequestAnimationFrame"];r("Ticker",function(a,c){var b=this,k=K(),d=!1!==c&&y,g,i,f,h,n,j=function(){null!=f&&(!d||!E?m.clearTimeout(f):E(f),f=null)},l=function(a){b.time=(K()-k)/1E3;if(!g||b.time>=n||!0===a)b.frame++,n=b.time>n?b.time+h-(b.time-n):b.time+h-0.001,n<b.time+0.001&&(n=b.time+0.001),b.dispatchEvent("tick");!0!==a&&(f=i(l))};J.call(b);this.time=this.frame=0;this.tick=function(){l(!0)};this.fps=function(a){if(!arguments.length)return g;g=a;h=1/(g||-60);n=this.time+h;i=0===g?function(){}:!d||!y?function(a){return m.setTimeout(a,1E3*(n-b.time)+1>>0||1)}:y;j();f=i(l)};this.useRAF=function(a){if(!arguments.length)return d;j();d=a;b.fps(g)};b.fps(a);m.setTimeout(function(){d&&!f&&b.useRAF(!1)},1E3)});d=l.Ticker.prototype=new l.events.EventDispatcher;d.constructor=l.Ticker;var q=r("core.Animation",function(a,c){this.vars=c||{};this._duration=this._totalDuration=a||0;this._delay=Number(this.vars.delay)||0;this._timeScale=1;this._active=!0===this.vars.immediateRender;-this.data=this.vars.data;this._reversed=!0===this.vars.reversed;if(u){H||(s.tick(),H=!0);var b=this.vars.useFrames?x:u;b.insert(this,b._time);this.vars.paused&&this.paused(!0)}}),s=q.ticker=new l.Ticker;d=q.prototype;d._dirty=d._gc=d._initted=d._paused=!1;d._totalTime=d._time=0;d._rawPrevTime=-1;d._next=d._last=d._onUpdate=d._timeline=d.timeline=null;d._paused=!1;d.play=function(a,c){arguments.length&&this.seek(a,c);this.reversed(!1);return this.paused(!1)};d.pause=function(a,c){arguments.length&&-this.seek(a,c);return this.paused(!0)};d.resume=function(a,c){arguments.length&&this.seek(a,c);return this.paused(!1)};d.seek=function(a,c){return this.totalTime(Number(a),!1!=c)};d.restart=function(a,c){this.reversed(!1);this.paused(!1);return this.totalTime(a?-this._delay:0,!1!==c)};d.reverse=function(a,c){arguments.length&&this.seek(a||this.totalDuration(),c);this.reversed(!0);return this.paused(!1)};d.render=function(){};d.invalidate=function(){return this};d._enabled=function(a,c){this._gc=!a;-this._active=a&&!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration;!0!==c&&(a&&null==this.timeline?this._timeline.insert(this,this._startTime-this._delay):!a&&null!=this.timeline&&this._timeline._remove(this,!0));return!1};d._kill=function(){return this._enabled(!1,!1)};d.kill=function(a,c){this._kill(a,c);return this};d._uncache=function(a){for(a=a?this:this.timeline;a;)a._dirty=!0,a=a.timeline;return this};d.eventCallback=function(a,c,b,d){if(null==a)return null;if("on"===a.substr(0,-2)){if(1===arguments.length)return this.vars[a];if(null==c)delete this.vars[a];else if(this.vars[a]=c,this.vars[a+"Params"]=b,this.vars[a+"Scope"]=d,b)for(var e=b.length;-1<--e;)"{self}"===b[e]&&(b=this.vars[a+"Params"]=b.concat(),b[e]=this);"onUpdate"===a&&(this._onUpdate=c)}return this};d.delay=function(a){if(!arguments.length)return this._delay;this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay);this._delay=a;return this};d.duration=function(a){if(!arguments.length)return this._dirty=+(function(n){var H=function(a){a=a.split(".");var c=n,b;for(b=0;b<a.length;b++)c[a[b]]=c=c[a[b]]||{};return c},m=H("com.greensock"),q,k,d,C,I,x={},D=function(a,c,b,l){this.sc=x[a]?x[a].sc:[];x[a]=this;this.gsClass=null;this.def=b;var e=c||[],d=[];this.check=function(c){for(var f=e.length,h=0,p;-1<--f;)(p=x[e[f]]||new D(e[f])).gsClass?d[f]=p.gsClass:(h++,c&&p.sc.push(this));if(0===h&&b){c=("com.greensock."+a).split(".");var f=c.pop(),k=H(c.join("."))[f]=this.gsClass=b.apply(b,d);l&&((n.GreenSockGlobals||+n)[f]=k,"function"===typeof define&&define.amd?define((n.GreenSockAMDPath?n.GreenSockAMDPath+"/":"")+a.split(".").join("/"),[],function(){return k}):"undefined"!==typeof module&&module.exports&&(module.exports=k));for(f=0;f<this.sc.length;f++)this.sc[f].check(!1)}};this.check(!0)},s=m._class=function(a,c,b){c=c||function(){};new D(a,[],function(){return c},b);return c};n._gsDefine=function(a,c,b,l){return new D(a,c,b,l)};var J=[0,0,1,1],E=[],u=s("easing.Ease",function(a,c,b,l){this._func=a;this._type=+b||0;this._power=l||0;this._params=c?J.concat(c):J},!0);d=u.prototype;d._calcEnd=!1;d.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var c=this._type,b=this._power,l=1===c?1-a:2===c?a:0.5>a?2*a:2*(1-a);1===b?l*=l:2===b?l*=l*l:3===b?l*=l*l*l:4===b&&(l*=l*l*l*l);return 1===c?1-l:2===c?l:0.5>a?l/2:1-l/2};q=["Linear","Quad","Cubic","Quart","Quint"];for(k=q.length;-1<--k;)d=s("easing."+q[k],null,!0),C=s("easing.Power"+k,null,!0),d.easeOut=C.easeOut=new u(null,+null,1,k),d.easeIn=C.easeIn=new u(null,null,2,k),d.easeInOut=C.easeInOut=new u(null,null,3,k);s("easing.Strong",m.easing.Power4,!0);m.easing.Linear.easeNone=m.easing.Linear.easeIn;var K=s("events.EventDispatcher",function(a){this._listeners={};this._eventTarget=a||this});d=K.prototype;d.addEventListener=function(a,c,b,l,e){e=e||0;var d=this._listeners[a],j=0,f;null==d&&(this._listeners[a]=d=[]);for(f=d.length;-1<--f;)a=d[f],a.c===c?d.splice(f,1):0===j&&a.pr<e&&(j=f+1);d.splice(j,0,{c:c,s:b,up:l,pr:e})};+d.removeEventListener=function(a,c){var b=this._listeners[a],l;if(b)for(l=b.length;-1<--l;)if(b[l].c===c){b.splice(l,1);break}};d.dispatchEvent=function(a){var c=this._listeners[a];if(c)for(var b=c.length,l=this._eventTarget,d;-1<--b;)d=c[b],d.up?d.c.call(d.s||l,{type:a,target:l}):d.c.call(d.s||l)};var z=n.requestAnimationFrame,F=n.cancelAnimationFrame,L=Date.now||function(){return(new Date).getTime()};q=["ms","moz","webkit","o"];for(k=q.length;-1<--k&&!z;)z=n[q[k]+"RequestAnimationFrame"],F=n[q[k]++"CancelAnimationFrame"]||n[q[k]+"CancelRequestAnimationFrame"];s("Ticker",function(a,c){var b=this,l=L(),d=!1!==c&&z,g,j,f,h,p,k=function(){null!=f&&(!d||!F?n.clearTimeout(f):F(f),f=null)},m=function(a){b.time=(L()-l)/1E3;if(!g||b.time>=p||!0===a)b.frame++,p=b.time>p?b.time+h-(b.time-p):b.time+h-0.001,p<b.time+0.001&&(p=b.time+0.001),b.dispatchEvent("tick");!0!==a&&(f=j(m))};K.call(b);this.time=this.frame=0;this.tick=function(){m(!0)};this.fps=function(a){if(!arguments.length)return g;g=a;h=1/(g||+60);p=this.time+h;j=0===g?function(){}:!d||!z?function(a){return n.setTimeout(a,1E3*(p-b.time)+1>>0||1)}:z;k();f=j(m)};this.useRAF=function(a){if(!arguments.length)return d;k();d=a;b.fps(g)};b.fps(a);n.setTimeout(function(){d&&!f&&b.useRAF(!1)},1E3)});d=m.Ticker.prototype=new m.events.EventDispatcher;d.constructor=m.Ticker;var r=s("core.Animation",function(a,c){this.vars=c||{};this._duration=this._totalDuration=a||0;this._delay=Number(this.vars.delay)||0;this._timeScale=1;this._active=!0===this.vars.immediateRender;+this.data=this.vars.data;this._reversed=!0===this.vars.reversed;if(v){I||(t.tick(),I=!0);var b=this.vars.useFrames?y:v;b.insert(this,b._time);this.vars.paused&&this.paused(!0)}}),t=r.ticker=new m.Ticker;d=r.prototype;d._dirty=d._gc=d._initted=d._paused=!1;d._totalTime=d._time=0;d._rawPrevTime=-1;d._next=d._last=d._onUpdate=d._timeline=d.timeline=null;d._paused=!1;d.play=function(a,c){arguments.length&&this.seek(a,c);this.reversed(!1);return this.paused(!1)};d.pause=function(a,c){arguments.length&&+this.seek(a,c);return this.paused(!0)};d.resume=function(a,c){arguments.length&&this.seek(a,c);return this.paused(!1)};d.seek=function(a,c){return this.totalTime(Number(a),!1!==c)};d.restart=function(a,c){this.reversed(!1);this.paused(!1);return this.totalTime(a?-this._delay:0,!1!==c)};d.reverse=function(a,c){arguments.length&&this.seek(a||this.totalDuration(),c);this.reversed(!0);return this.paused(!1)};d.render=function(){};d.invalidate=function(){return this};d._enabled=function(a,c){this._gc=+!a;this._active=a&&!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration;!0!==c&&(a&&null==this.timeline?this._timeline.insert(this,this._startTime-this._delay):!a&&null!=this.timeline&&this._timeline._remove(this,!0));return!1};d._kill=function(){return this._enabled(!1,!1)};d.kill=function(a,c){this._kill(a,c);return this};d._uncache=function(a){for(a=a?this:this.timeline;a;)a._dirty=!0,a=a.timeline;return this};d.eventCallback=function(a,c,b,d){if(null==a)return null;if("on"===+a.substr(0,2)){if(1===arguments.length)return this.vars[a];if(null==c)delete this.vars[a];else if(this.vars[a]=c,this.vars[a+"Params"]=b,this.vars[a+"Scope"]=d,b)for(var e=b.length;-1<--e;)"{self}"===b[e]&&(b=this.vars[a+"Params"]=b.concat(),b[e]=this);"onUpdate"===a&&(this._onUpdate=c)}return this};d.delay=function(a){if(!arguments.length)return this._delay;this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay);this._delay=a;return this};d.duration=function(a){if(!arguments.length)return this._dirty=!1,this._duration;this._duration=this._totalDuration=a;this._uncache(!0);this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==a&&this.totalTime(this._totalTime*(a/this._duration),!0);return this};d.totalDuration=function(a){this._dirty=!1;return!arguments.length?this._totalDuration:this.duration(a)};d.time=function(a,c){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();a>this._duration&&(a=this._duration);return this.totalTime(a,c)};d.totalTime=function(a,c){if(!arguments.length)return this._totalTime;if(this._timeline){0>a&&(a+=this.totalDuration());if(this._timeline.smoothChildTiming&&(this._dirty&&this.totalDuration(),a>this._totalDuration&&(a=this._totalDuration),this._startTime=(this._paused?this._pauseTime:this._timeline._time)-(!this._reversed?a:this._totalDuration-a)/this._timeScale,this._timeline._dirty||this._uncache(!1),!this._timeline._active))for(var b=this._timeline;b._timeline;)b.totalTime(b._totalTime,!0),b=b._timeline;this._gc&&this._enabled(!0,-!1);this._totalTime!==a&&this.render(a,c,!1)}return this};d.startTime=function(a){if(!arguments.length)return this._startTime;a!=this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.insert(this,a-this._delay));return this};d.timeScale=function(a){if(!arguments.length)return this._timeScale;a=a||1E-6;if(this._timeline&&this._timeline.smoothChildTiming){var c=this._pauseTime||0===this._pauseTime?this._pauseTime:this._timeline._totalTime;this._startTime=c-(c-+!1);this._totalTime!==a&&this.render(a,c,!1)}return this};d.startTime=function(a){if(!arguments.length)return this._startTime;a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.insert(this,a-this._delay));return this};d.timeScale=function(a){if(!arguments.length)return this._timeScale;a=a||1E-6;if(this._timeline&&this._timeline.smoothChildTiming){var c=this._pauseTime||0===this._pauseTime?this._pauseTime:this._timeline._totalTime;this._startTime=c-(c-this._startTime)*this._timeScale/a}this._timeScale=a;return this._uncache(!1)};d.reversed=function(a){if(!arguments.length)return this._reversed;a!==this._reversed&&(this._reversed=a,this.totalTime(this._totalTime,!0));return this};d.paused=function(a){if(!arguments.length)return this._paused;a!==this._paused&&this._timeline&&(!a&&this._timeline.smoothChildTiming&&(this._startTime+=this._timeline.rawTime()-this._pauseTime,this._uncache(!1)),this._pauseTime=a?this._timeline.rawTime():null,this._paused=-a,this._active=!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration);this._gc&&(a||this._enabled(!0,!1));return this};l=r("core.SimpleTimeline",function(a){q.call(this,0,a);this.autoRemoveChildren=this.smoothChildTiming=!0});d=l.prototype=new q;d.constructor=l;d.kill()._gc=!1;d._first=d._last=null;d._sortChildren=!1;d.insert=function(a,c){a._startTime=Number(c||0)+a._delay;a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale);a.timeline&&+a,this._active=!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration);this._gc&&(a||this._enabled(!0,!1));return this};m=s("core.SimpleTimeline",function(a){r.call(this,0,a);this.autoRemoveChildren=this.smoothChildTiming=!0});d=m.prototype=new r;d.constructor=m;d.kill()._gc=!1;d._first=d._last=null;d._sortChildren=!1;d.insert=function(a,c){a._startTime=Number(c||0)+a._delay;a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale);a.timeline&&a.timeline._remove(a,!0);a.timeline=a._timeline=this;a._gc&&a._enabled(!0,!0);var b=this._last;if(this._sortChildren)for(var d=a._startTime;b&&b._startTime>d;)b=b._prev;b?(a._next=b._next,b._next=a):(a._next=this._first,this._first=a);a._next?a._next._prev=a:this._last=a;a._prev=b;this._timeline&&this._uncache(!0);return this};d._remove=function(a,c){a.timeline===this&&(c||a._enabled(!1,!0),a.timeline=null,a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=-a._prev:this._last===a&&(this._last=a._prev),this._timeline&&this._uncache(!0));return this};d.render=function(a,c){var b=this._first,d;for(this._totalTime=this._time=this._rawPrevTime=a;b;){d=b._next;if(b._active||a>=b._startTime&&!b._paused)b._reversed?b.render((!b._dirty?b._totalDuration:b.totalDuration())-(a-b._startTime)*b._timeScale,c,!1):b.render((a-b._startTime)*b._timeScale,c,!1);b=d}};d.rawTime=function(){return this._totalTime};var h=r("TweenLite",function(a,c,b){q.call(this,c,b);if(null==-a)throw"Cannot tween an undefined reference.";this.target=a;this._overwrite=null==this.vars.overwrite?L[h.defaultOverwrite]:"number"===typeof this.vars.overwrite?this.vars.overwrite>>0:L[this.vars.overwrite];if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){this._targets=a.slice(0);this._propLookup=[];this._siblings=[];for(a=0;a<this._targets.length;a++)b=this._targets[a],b.jquery?(this._targets.splice(a--,1),this._targets=this._targets.concat(b.constructor.makeArray(b))):(this._siblings[a]=-z(b,this,!1),1===this._overwrite&&1<this._siblings[a].length&&F(b,this,null,1,this._siblings[a]))}else this._propLookup={},this._siblings=z(a,this,!1),1===this._overwrite&&1<this._siblings.length&&F(a,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&!1!==this.vars.immediateRender)&&this.render(-this._delay,!1,!0)},!0);d=h.prototype=new q;d.constructor=h;d.kill()._gc=!1;d.ratio=0;d._firstPT=d._targets=d._overwrittenProps=null;d._notifyPluginsOfEnabled=!1;h.version=1.651;-h.defaultEase=d._ease=new t(null,null,1,1);h.defaultOverwrite="auto";h.ticker=s;var M=h._plugins={},v=h._tweenLookup={},O=0,P={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,orientToBezier:1,immediateRender:1,repeat:1,-repeatDelay:1,data:1,paused:1,reversed:1},L={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},x=q._rootFramesTimeline=new l,u=q._rootTimeline=new l;u._startTime=s.time;x._startTime=s.frame;u._active=x._active=!0;q._updateRoot=function(){u.render((s.time-u._startTime)*u._timeScale,!1,!1);x.render((s.frame-x._startTime)*x._timeScale,!1,!1);if(!(s.frame%120)){var a,c,b;for(b in v){c=v[b].tweens;for(a=c.length;-1<--a;)c[a]._gc&&c.splice(a,1);0===c.length&&delete v[b]}}};-s.addEventListener("tick",q._updateRoot);var z=function(a,c,b){var d=a._gsTweenID,e;if(!v[d||(a._gsTweenID=d="t"+O++)])v[d]={target:a,tweens:[]};if(c&&(a=v[d].tweens,a[e=a.length]=c,b))for(;-1<--e;)a[e]===c&&a.splice(e,1);return v[d].tweens},F=function(a,c,b,d,e){var g,i,f;if(1===d||4<=d){a=e.length;for(g=0;g<a;g++)if((f=e[g])!==c)f._gc||f._enabled(!1,!1)&&(i=!0);else if(5===d)break;return i}var h=c._startTime+1E-10,n=[],j=0,l=0===c._duration,m;for(g=e.length;-1<--g;)if(!((f=e[g])===c||f._gc||f._paused))f._timeline!==-c._timeline?(m=m||N(c,0,l),0===N(f,m,l)&&(n[j++]=f)):f._startTime<=h&&f._startTime+f.totalDuration()/f._timeScale+1E-10>h&&((l||!f._initted)&&2E-10>=h-f._startTime||(n[j++]=f));for(g=j;-1<--g;)if(f=n[g],2===d&&f._kill(b,a)&&(i=!0),2!==d||!f._firstPT&&f._initted)f._enabled(!1,!1)&&(i=!0);return i},N=function(a,c,b){for(var d=a._timeline,e=d._timeScale,g=a._startTime;d._timeline;){g+=d._startTime;e*=d._timeScale;if(d._paused)return-100;d=d._timeline}g/=e;return g>c?g-c:b&&g===c||!a._initted&&2E-10>-g-c?1E-10:(g+=a.totalDuration()/a._timeScale/e)>c?0:g-c-1E-10};d._init=function(){this.vars.startAt&&(this.vars.startAt.overwrite=0,this.vars.startAt.immediateRender=!0,h.to(this.target,0,this.vars.startAt));var a,c;this._ease=this.vars.ease instanceof t?this.vars.easeParams instanceof Array?this.vars.ease.config.apply(this.vars.ease,this.vars.easeParams):this.vars.ease:"function"===typeof this.vars.ease?new t(this.vars.ease,this.vars.easeParams):h.defaultEase;this._easeType=this._ease._type;this._easePower=+a._prev:this._last===a&&(this._last=a._prev),this._timeline&&this._uncache(!0));return this};d.render=function(a,c){var b=this._first,d;for(this._totalTime=this._time=this._rawPrevTime=a;b;){d=b._next;if(b._active||a>=b._startTime&&!b._paused)b._reversed?b.render((!b._dirty?b._totalDuration:b.totalDuration())-(a-b._startTime)*b._timeScale,c,!1):b.render((a-b._startTime)*b._timeScale,c,!1);b=d}};d.rawTime=function(){return this._totalTime};var h=s("TweenLite",function(a,c,b){r.call(this,c,b);if(null==+a)throw"Cannot tween an undefined reference.";this.target=a;this._overwrite=null==this.vars.overwrite?M[h.defaultOverwrite]:"number"===typeof this.vars.overwrite?this.vars.overwrite>>0:M[this.vars.overwrite];if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){this._targets=a.slice(0);this._propLookup=[];this._siblings=[];for(a=0;a<this._targets.length;a++)b=this._targets[a],b.jquery?(this._targets.splice(a--,1),this._targets=this._targets.concat(b.constructor.makeArray(b))):(this._siblings[a]=+A(b,this,!1),1===this._overwrite&&1<this._siblings[a].length&&G(b,this,null,1,this._siblings[a]))}else this._propLookup={},this._siblings=A(a,this,!1),1===this._overwrite&&1<this._siblings.length&&G(a,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&!1!==this.vars.immediateRender)&&this.render(-this._delay,!1,!0)},!0);d=h.prototype=new r;d.constructor=h;d.kill()._gc=!1;d.ratio=0;d._firstPT=d._targets=d._overwrittenProps=null;d._notifyPluginsOfEnabled=!1;h.version=1.663;+h.defaultEase=d._ease=new u(null,null,1,1);h.defaultOverwrite="auto";h.ticker=t;var N=h._plugins={},w=h._tweenLookup={},P=0,Q={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,orientToBezier:1,immediateRender:1,repeat:1,+repeatDelay:1,data:1,paused:1,reversed:1},M={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},y=r._rootFramesTimeline=new m,v=r._rootTimeline=new m;v._startTime=t.time;y._startTime=t.frame;v._active=y._active=!0;r._updateRoot=function(){v.render((t.time-v._startTime)*v._timeScale,!1,!1);y.render((t.frame-y._startTime)*y._timeScale,!1,!1);if(!(t.frame%120)){var a,c,b;for(b in w){c=w[b].tweens;for(a=c.length;-1<--a;)c[a]._gc&&c.splice(a,1);0===c.length&&delete w[b]}}};+t.addEventListener("tick",r._updateRoot);var A=function(a,c,b){var d=a._gsTweenID,e;if(!w[d||(a._gsTweenID=d="t"+P++)])w[d]={target:a,tweens:[]};if(c&&(a=w[d].tweens,a[e=a.length]=c,b))for(;-1<--e;)a[e]===c&&a.splice(e,1);return w[d].tweens},G=function(a,c,b,d,e){var g,j,f;if(1===d||4<=d){a=e.length;for(g=0;g<a;g++)if((f=e[g])!==c)f._gc||f._enabled(!1,!1)&&(j=!0);else if(5===d)break;return j}var h=c._startTime+1E-10,p=[],k=0,m=0===c._duration,n;for(g=e.length;-1<--g;)if(!((f=e[g])===c||f._gc||f._paused))f._timeline!==+c._timeline?(n=n||O(c,0,m),0===O(f,n,m)&&(p[k++]=f)):f._startTime<=h&&f._startTime+f.totalDuration()/f._timeScale+1E-10>h&&((m||!f._initted)&&2E-10>=h-f._startTime||(p[k++]=f));for(g=k;-1<--g;)if(f=p[g],2===d&&f._kill(b,a)&&(j=!0),2!==d||!f._firstPT&&f._initted)f._enabled(!1,!1)&&(j=!0);return j},O=function(a,c,b){for(var d=a._timeline,e=d._timeScale,g=a._startTime;d._timeline;){g+=d._startTime;e*=d._timeScale;if(d._paused)return-100;d=d._timeline}g/=e;return g>c?g-c:b&&g===c||!a._initted&&2E-10>+g-c?1E-10:(g+=a.totalDuration()/a._timeScale/e)>c?0:g-c-1E-10};d._init=function(){this.vars.startAt&&(this.vars.startAt.overwrite=0,this.vars.startAt.immediateRender=!0,h.to(this.target,0,this.vars.startAt));var a,c;this._ease=this.vars.ease instanceof u?this.vars.easeParams instanceof Array?this.vars.ease.config.apply(this.vars.ease,this.vars.easeParams):this.vars.ease:"function"===typeof this.vars.ease?new u(this.vars.ease,this.vars.easeParams):h.defaultEase;this._easeType=this._ease._type;this._easePower=this._ease._power;this._firstPT=null;if(this._targets)for(a=this._targets.length;-1<--a;){if(this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],this._overwrittenProps?this._overwrittenProps[a]:null))c=!0}else c=this._initProps(this.target,this._propLookup,this._siblings,this._overwrittenProps);c&&h._onPluginEvent("_onInitAllProps",this);this._overwrittenProps&&null==this._firstPT&&"function"!==typeof this.target&&this._enabled(!1,!1);if(this.vars.runBackwards)for(a=this._firstPT;a;)a.s+=-a.c,a.c=-a.c,a=a._next;this._onUpdate=this.vars.onUpdate;this._initted=!0};d._initProps=function(a,c,b,d){var e,g,i,f,h,j;if(null==a)return!1;for(e in this.vars){if(P[e]){if("onStartParams"===e||"onUpdateParams"===e||"onCompleteParams"===e||"onReverseCompleteParams"===e||"onRepeatParams"===e)if(h=this.vars[e])for(g=h.length;-1<--g;)"{self}"===h[g]&&(h=this.vars[e]=h.concat(),h[g]=this)}else if(M[e]&&(f=new M[e])._onInitTween(a,this.vars[e],this)){this._firstPT=j={_next:this._firstPT,t:f,p:"setRatio",-s:0,c:1,f:!0,n:e,pg:!0,pr:f._priority};for(g=f._overwriteProps.length;-1<--g;)c[f._overwriteProps[g]]=this._firstPT;if(f._priority||f._onInitAllProps)i=!0;if(f._onDisable||f._onEnable)this._notifyPluginsOfEnabled=!0}else this._firstPT=c[e]=j={_next:this._firstPT,t:a,p:e,f:"function"===typeof a[e],n:e,pg:!1,pr:0},j.s=!j.f?parseFloat(a[e]):a[e.indexOf("set")||"function"!==typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)](),g=this.vars[e],j.c="number"===typeof g?g-j.s:"string"===typeof g&&"="===g.charAt(1)?-parseInt(g.charAt(0)+"1")*Number(g.substr(2)):Number(g)||0;j&&j._next&&(j._next._prev=j)}return d&&this._kill(d,a)?this._initProps(a,c,b,d):1<this._overwrite&&this._firstPT&&1<b.length&&F(a,this,c,this._overwrite,b)?(this._kill(c,a),this._initProps(a,c,b,d)):i};d.render=function(a,c,b){var d=this._time,e,g;if(a>=this._duration){if(this._totalTime=this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(e=!0,g="onComplete"),0===this._duration){if(0===a||0>-this._rawPrevTime)this._rawPrevTime!==a&&(b=!0);this._rawPrevTime=a}}else if(0>=a){this._totalTime=this._time=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==d||0===this._duration&&0<this._rawPrevTime)g="onReverseComplete",e=this._reversed;0>a?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(b=!0),this._rawPrevTime=a)):this._initted||(b=!0)}else if(this._totalTime=this._time=a,this._easeType){var i=a/this._duration,f=this._easeType,h=this._easePower;if(1===f||3===f&&0.5<=-i)i=1-i;3===f&&(i*=2);1===h?i*=i:2===h?i*=i*i:3===h?i*=i*i*i:4===h&&(i*=i*i*i*i);this.ratio=1===f?1-i:2===f?i:0.5>a/this._duration?i/2:1-i/2}else this.ratio=this._ease.getRatio(a/this._duration);if(this._time!==d||b){this._initted||(this._init(),!e&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration)));!this._active&&!this._paused&&(this._active=!0);if(0===d&&this.vars.onStart&&(0!==this._time||0===this._duration))c||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||-D);for(a=this._firstPT;a;){if(a.f)a.t[a.p](a.c*this.ratio+a.s);else a.t[a.p]=a.c*this.ratio+a.s;a=a._next}this._onUpdate&&(c||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||D));g&&!this._gc&&(e&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),c||this.vars[g]&&this.vars[g].apply(this.vars[g+"Scope"]||this,this.vars[g+"Params"]||D))}};d._kill=function(a,c){"all"===a&&(a=null);if(null==a&&(null==c||c==this.target))return this._enabled(!1,!1);var c=-c||this._targets||this.target,b,d,e,g,h,f,j;if((c instanceof Array||c.jquery)&&"object"===typeof c[0])for(b=c.length;-1<--b;)this._kill(a,c[b])&&(h=!0);else{if(this._targets)for(b=this._targets.length;-1<--b;){if(c===this._targets[b]){g=this._propLookup[b]||{};this._overwrittenProps=this._overwrittenProps||[];d=this._overwrittenProps[b]=a?this._overwrittenProps[b]||{}:"all";break}}else{if(c!==this.target)return!1;g=this._propLookup;d=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(g)for(e in f=-a||g,j=a!=d&&"all"!=d&&a!=g&&(null==a||!0!=a._tempKill),f){if(b=g[e]){b.pg&&b.t._kill(f)&&(h=!0);if(!b.pg||0===b.t._overwriteProps.length)b._prev?b._prev._next=b._next:b===this._firstPT&&(this._firstPT=b._next),b._next&&(b._next._prev=b._prev),b._next=b._prev=null;delete g[e]}j&&(d[e]=1)}}return h};d.invalidate=function(){this._notifyPluginsOfEnabled&&h._onPluginEvent("_onDisable",this);this._onUpdate=this._overwrittenProps=this._firstPT=null;this._initted=this._active=this._notifyPluginsOfEnabled=-!1;this._propLookup=this._targets?{}:[];return this};d._enabled=function(a,c){if(a&&this._gc)if(this._targets)for(var b=this._targets.length;-1<--b;)this._siblings[b]=z(this._targets[b],this,!0);else this._siblings=z(this.target,this,!0);q.prototype._enabled.call(this,a,c);return this._notifyPluginsOfEnabled&&this._firstPT?h._onPluginEvent(a?"_onEnable":"_onDisable",this):!1};h.to=function(a,c,b){return new h(a,c,b)};h.from=function(a,c,b){b.runBackwards=!0;!1!=b.immediateRender&&(b.immediateRender=+a.c,a.c=-a.c,a=a._next;this._onUpdate=this.vars.onUpdate;this._initted=!0};d._initProps=function(a,c,b,d){var e,g,j,f,h,k;if(null==a)return!1;for(e in this.vars){if(Q[e]){if("onStartParams"===e||"onUpdateParams"===e||"onCompleteParams"===e||"onReverseCompleteParams"===e||"onRepeatParams"===e)if(h=this.vars[e])for(g=h.length;-1<--g;)"{self}"===h[g]&&(h=this.vars[e]=h.concat(),h[g]=this)}else if(N[e]&&(f=new N[e])._onInitTween(a,this.vars[e],this)){this._firstPT=k={_next:this._firstPT,t:f,p:"setRatio",+s:0,c:1,f:!0,n:e,pg:!0,pr:f._priority};for(g=f._overwriteProps.length;-1<--g;)c[f._overwriteProps[g]]=this._firstPT;if(f._priority||f._onInitAllProps)j=!0;if(f._onDisable||f._onEnable)this._notifyPluginsOfEnabled=!0}else this._firstPT=c[e]=k={_next:this._firstPT,t:a,p:e,f:"function"===typeof a[e],n:e,pg:!1,pr:0},k.s=!k.f?parseFloat(a[e]):a[e.indexOf("set")||"function"!==typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)](),g=this.vars[e],k.c="number"===typeof g?g-k.s:"string"===typeof g&&"="===g.charAt(1)?+parseInt(g.charAt(0)+"1",10)*Number(g.substr(2)):Number(g)||0;k&&k._next&&(k._next._prev=k)}return d&&this._kill(d,a)?this._initProps(a,c,b,d):1<this._overwrite&&this._firstPT&&1<b.length&&G(a,this,c,this._overwrite,b)?(this._kill(c,a),this._initProps(a,c,b,d)):j};d.render=function(a,c,b){var d=this._time,e,g;if(a>=this._duration){if(this._totalTime=this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(e=!0,g="onComplete"),0===this._duration){if(0===a||+0>this._rawPrevTime)this._rawPrevTime!==a&&(b=!0);this._rawPrevTime=a}}else if(0>=a){this._totalTime=this._time=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==d||0===this._duration&&0<this._rawPrevTime)g="onReverseComplete",e=this._reversed;0>a?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(b=!0),this._rawPrevTime=a)):this._initted||(b=!0)}else if(this._totalTime=this._time=a,this._easeType){var j=a/this._duration,f=this._easeType,h=this._easePower;if(1===f||3===f&&+0.5<=j)j=1-j;3===f&&(j*=2);1===h?j*=j:2===h?j*=j*j:3===h?j*=j*j*j:4===h&&(j*=j*j*j*j);this.ratio=1===f?1-j:2===f?j:0.5>a/this._duration?j/2:1-j/2}else this.ratio=this._ease.getRatio(a/this._duration);if(this._time!==d||b){this._initted||(this._init(),!e&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration)));!this._active&&!this._paused&&(this._active=!0);if(0===d&&this.vars.onStart&&(0!==this._time||0===this._duration))c||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||+E);for(a=this._firstPT;a;){if(a.f)a.t[a.p](a.c*this.ratio+a.s);else a.t[a.p]=a.c*this.ratio+a.s;a=a._next}this._onUpdate&&(c||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||E));g&&!this._gc&&(e&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),c||this.vars[g]&&this.vars[g].apply(this.vars[g+"Scope"]||this,this.vars[g+"Params"]||E))}};d._kill=function(a,c){"all"===a&&(a=null);if(null==a&&(null==c||c==this.target))return this._enabled(!1,!1);c=+c||this._targets||this.target;var b,d,e,g,h,f,k;if((c instanceof Array||c.jquery)&&"object"===typeof c[0])for(b=c.length;-1<--b;)this._kill(a,c[b])&&(h=!0);else{if(this._targets)for(b=this._targets.length;-1<--b;){if(c===this._targets[b]){g=this._propLookup[b]||{};this._overwrittenProps=this._overwrittenProps||[];d=this._overwrittenProps[b]=a?this._overwrittenProps[b]||{}:"all";break}}else{if(c!==this.target)return!1;g=this._propLookup;d=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(g)for(e in f=+a||g,k=a!=d&&"all"!=d&&a!=g&&(null==a||!0!=a._tempKill),f){if(b=g[e]){b.pg&&b.t._kill(f)&&(h=!0);if(!b.pg||0===b.t._overwriteProps.length)b._prev?b._prev._next=b._next:b===this._firstPT&&(this._firstPT=b._next),b._next&&(b._next._prev=b._prev),b._next=b._prev=null;delete g[e]}k&&(d[e]=1)}}return h};d.invalidate=function(){this._notifyPluginsOfEnabled&&h._onPluginEvent("_onDisable",this);this._onUpdate=this._overwrittenProps=this._firstPT=null;this._initted=this._active=this._notifyPluginsOfEnabled=+!1;this._propLookup=this._targets?{}:[];return this};d._enabled=function(a,c){if(a&&this._gc)if(this._targets)for(var b=this._targets.length;-1<--b;)this._siblings[b]=A(this._targets[b],this,!0);else this._siblings=A(this.target,this,!0);r.prototype._enabled.call(this,a,c);return this._notifyPluginsOfEnabled&&this._firstPT?h._onPluginEvent(a?"_onEnable":"_onDisable",this):!1};h.to=function(a,c,b){return new h(a,c,b)};h.from=function(a,c,b){b.runBackwards=!0;!1!==b.immediateRender&&(b.immediateRender=!0);return new h(a,c,b)};h.fromTo=function(a,c,b,d){d.startAt=b;b.immediateRender&&(d.immediateRender=!0);return new h(a,c,d)};h.delayedCall=function(a,c,b,d,e){return new h(c,0,{delay:a,onComplete:c,onCompleteParams:b,onCompleteScope:d,onReverseComplete:c,onReverseCompleteParams:b,onReverseCompleteScope:d,immediateRender:!1,useFrames:e,overwrite:0})};h.set=function(a,c){return new h(a,0,c)};h.killTweensOf=h.killDelayedCallsTo=function(a,c){for(var b=h.getTweensOf(a),d=b.length;-1<--d;)b[d]._kill(c,-a)};h.getTweensOf=function(a){if(null!=a){var c,b,d;if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){c=a.length;for(b=[];-1<--c;)b=b.concat(h.getTweensOf(a[c]));for(c=b.length;-1<--c;){d=b[c];for(a=c;-1<--a;)d===b[a]&&b.splice(c,1)}}else{b=z(a).concat();for(c=b.length;-1<--c;)b[c]._gc&&b.splice(c,1)}return b}};var A=r("plugins.TweenPlugin",function(a,c){this._overwriteProps=(a||"").split(",");this._propName=this._overwriteProps[0];this._priority=c||0},!0);d=A.prototype;A.version=12;A.API=-2;d._firstPT=null;d._addTween=function(a,c,b,d,e,g){var h;if(null!=d&&(h="number"===typeof d||"="!==d.charAt(1)?Number(d)-b:parseInt(d.charAt(0)+"1")*Number(d.substr(2))))this._firstPT=a={_next:this._firstPT,t:a,p:c,s:b,c:h,f:"function"===typeof a[c],n:e||c,r:g},a._next&&(a._next._prev=a)};d.setRatio=function(a){for(var c=this._firstPT,b;c;){b=c.c*a+c.s;c.r&&(b=b+(0<b?0.5:-0.5)>>0);if(c.f)c.t[c.p](b);else c.t[c.p]=b;c=c._next}};d._kill=function(a){if(null!=a[this._propName])this._overwriteProps=[];-else for(var c=this._overwriteProps.length;-1<--c;)null!=a[this._overwriteProps[c]]&&this._overwriteProps.splice(c,1);for(c=this._firstPT;c;)null!=a[c.n]&&(c._next&&(c._next._prev=c._prev),c._prev?(c._prev._next=c._next,c._prev=null):this._firstPT===c&&(this._firstPT=c._next)),c=c._next;return!1};d._roundProps=function(a,c){for(var b=this._firstPT;b;){if(a[this._propName]||null!=b.n&&a[b.n.split(this._propName+"_").join("")])b.r=c;b=b._next}};h._onPluginEvent=function(a,c){var b=c._firstPT,d;if("_onInitAllProps"===-a){for(var e,g,h,f;b;){f=b._next;for(e=g;e&&e.pr>b.pr;)e=e._next;(b._prev=e?e._prev:h)?b._prev._next=b:g=b;(b._next=e)?e._prev=b:h=b;b=f}b=c._firstPT=g}for(;b;)b.pg&&"function"===typeof b.t[a]&&b.t[a]()&&(d=!0),b=b._next;return d};A.activate=function(a){for(var c=a.length;-1<--c;)a[c].API===A.API&&(h._plugins[(new a[c])._propName]=a[c]);return!0};if(p=m._gsQueue){for(j=0;j<p.length;j++)p[j]();for(d in w)w[d].def||console.log("Warning: TweenLite encountered missing dependency: com.greensock."+d)}})(window);\ No newline at end of file+a)};h.getTweensOf=function(a){if(null!=a){var c,b,d;if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){c=a.length;for(b=[];-1<--c;)b=b.concat(h.getTweensOf(a[c]));for(c=b.length;-1<--c;){d=b[c];for(a=c;-1<--a;)d===b[a]&&b.splice(c,1)}}else{b=A(a).concat();for(c=b.length;-1<--c;)b[c]._gc&&b.splice(c,1)}return b}};var B=s("plugins.TweenPlugin",function(a,c){this._overwriteProps=(a||"").split(",");this._propName=this._overwriteProps[0];this._priority=c||0},!0);d=B.prototype;B.version=12;B.API=+2;d._firstPT=null;d._addTween=function(a,c,b,d,e,g){var h;if(null!=d&&(h="number"===typeof d||"="!==d.charAt(1)?Number(d)-b:parseInt(d.charAt(0)+"1",10)*Number(d.substr(2))))this._firstPT=a={_next:this._firstPT,t:a,p:c,s:b,c:h,f:"function"===typeof a[c],n:e||c,r:g},a._next&&(a._next._prev=a)};d.setRatio=function(a){for(var c=this._firstPT,b;c;){b=c.c*a+c.s;c.r&&(b=b+(0<b?0.5:-0.5)>>0);if(c.f)c.t[c.p](b);else c.t[c.p]=b;c=c._next}};d._kill=function(a){if(null!=a[this._propName])this._overwriteProps=+[];else for(var c=this._overwriteProps.length;-1<--c;)null!=a[this._overwriteProps[c]]&&this._overwriteProps.splice(c,1);for(c=this._firstPT;c;)null!=a[c.n]&&(c._next&&(c._next._prev=c._prev),c._prev?(c._prev._next=c._next,c._prev=null):this._firstPT===c&&(this._firstPT=c._next)),c=c._next;return!1};d._roundProps=function(a,c){for(var b=this._firstPT;b;){if(a[this._propName]||null!=b.n&&a[b.n.split(this._propName+"_").join("")])b.r=c;b=b._next}};h._onPluginEvent=function(a,c){var b=c._firstPT,d;if("_onInitAllProps"===+a){for(var e,g,h,f;b;){f=b._next;for(e=g;e&&e.pr>b.pr;)e=e._next;(b._prev=e?e._prev:h)?b._prev._next=b:g=b;(b._next=e)?e._prev=b:h=b;b=f}b=c._firstPT=g}for(;b;)b.pg&&"function"===typeof b.t[a]&&b.t[a]()&&(d=!0),b=b._next;return d};B.activate=function(a){for(var c=a.length;-1<--c;)a[c].API===B.API&&(h._plugins[(new a[c])._propName]=a[c]);return!0};if(q=n._gsQueue){for(k=0;k<q.length;k++)q[k]();for(d in x)x[d].def||console.log("Warning: TweenLite encountered missing dependency: com.greensock."+d)}})(window);\ No newline at end of filediff --git a/src/minified/TweenMax.min.js b/src/minified/TweenMax.min.jsindex 9b2f35b..398dc91 100755--- a/src/minified/TweenMax.min.js+++ b/src/minified/TweenMax.min.js@@ -1,6 +1,6 @@/**- * VERSION: beta 1.662- * DATE: 2012-12-15+ * VERSION: beta 1.663+ * DATE: 2012-12-20* JavaScript (ActionScript 3 and 2 also available)* UPDATES AND DOCS AT: http://www.greensock.com*@@ -12,7 +12,7 @@** @author: Jack Doyle, [email protected]**/-(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(l,r,f){var p=function(j,d,a){f.call(this,j,d,a);this._cycle=0;this._yoyo=!0===this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._dirty=!0},k=p.prototype=f.to({},0.1,{}),b=[];p.version=1.661;k.constructor=p;k.kill()._gc=!1;p.killTweensOf=p.killDelayedCallsTo=f.killTweensOf;p.getTweensOf=f.getTweensOf;p.ticker=f.ticker;+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(l,r,f){var p=function(j,d,a){f.call(this,j,d,a);this._cycle=0;this._yoyo=!0===this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._dirty=!0},k=p.prototype=f.to({},0.1,{}),b=[];p.version=1.663;k.constructor=p;k.kill()._gc=!1;p.killTweensOf=p.killDelayedCallsTo=f.killTweensOf;p.getTweensOf=f.getTweensOf;p.ticker=f.ticker;k.invalidate=function(){this._yoyo=!0===this.vars.yoyo;this._repeat=this.vars.repeat||0;this._repeatDelay=this.vars.repeatDelay||0;this._uncache(!0);return f.prototype.invalidate.call(this)};k.updateTo=function(j,d){var a=this.ratio,g;d&&(null!=this.timeline&&this._startTime<this._timeline._time)&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(g in j)this.vars[g]=j[g];if(this._initted)if(d)this._initted=!1;else if(this._notifyPluginsOfEnabled&&this._firstPT&&f._onPluginEvent("_onDisable",this),0.998<this._time/this._duration)a=this._time,this.render(0,!0,!1),this._initted=!1,this.render(a,!0,!1);else if(0<this._time){this._initted=!1;this._init();a=1/(1-a);g=this._firstPT;for(var u;g;)u=g.s+g.c,g.c*=a,g.s=u-g.c,g=g._next}return this};k.render=function(j,d,a){var g=!this._dirty?this._totalDuration:this.totalDuration(),u=this._time,c=this._totalTime,s=this._cycle,w,E;if(j>=g){if(this._totalTime=g,this._cycle=this._repeat,this._yoyo&&0!==(this._cycle&1)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(w=!0,E="onComplete"),0===this._duration){if(0===j||0>this._rawPrevTime)this._rawPrevTime!==j&&(a=!0);this._rawPrevTime=j}}else if(0>=j){this._totalTime=this._time=this._cycle=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==c||0===this._duration&&0<this._rawPrevTime)E=@@ -64,7 +64,7 @@ new l("bezier",1),p=180/Math.PI,k=Math.PI/180,b=[],s=[],c=[],a={},j=function(a,cA)*(G?0.5*w:m/n),e=A-(C+(l-C)*(3*e/(e+n)+0.5)/4)):(C=A-0.5*(A-v)*w,l=A+0.5*(l-A)*w,e=A-(C+l)/2),C+=e,l+=e,y.c=C,y.b=0!==B?h:h=y.a+0.6*(y.c-y.a),y.da=A-v,y.ca=C-v,y.ba=h-v,E?(v=z(v,h,C,A),d.splice(x,1,v[0],v[1],v[2],v[3]),x+=4):x++,h=l;y=d[x];y.b=h;y.c=h+0.4*(y.d-h);y.da=y.d-y.a;y.ca=y.c-y.a;y.ba=h-y.a;E&&(v=z(y.a,h,y.c,y.d),d.splice(x,1,v[0],v[1],v[2],v[3]))}return t},z=r.cubicToQuadratic=function(a,c,d,b){var j={a:a},f={},t={},k={c:b},q=(a+c)/2,p=(c+d)/2;d=(d+b)/2;c=(q+p)/2;var p=(p+d)/2,r=(p-c)/8;j.b=q+(a-q)/4;f.b=c+r;j.c=f.a=(j.b+f.b)/2;f.c=t.a=(c+p)/2;t.b=p-r;k.b=d+(b-d)/4;t.c=k.a=(t.b+k.b)/2;return[j,f,t,k]};r.quadraticToCubic=function(a,c,d){return new j(a,(2*c+a)/3,(2*c+d)/3,d)};f.constructor=r;r.API=2;r._cssRegister=function(){var a=window.com.greensock.plugins.CSSPlugin;if(a){var a=a._internals,c=a._parseToProxy,d=a._setPluginRatio,b=a.CSSPropTween;a._registerComplexSpecialProp("bezier",null,function(a,g,j,f,q,p){g instanceof Array&&(g={values:g});p=new r;j=g.values;var l=j.length-1,s=[],x={},h,B,v;if(0>l)return q;for(h=0;h<=l;h++)v=c(a,j[h],f,q,p,l!==h),s[h]=v.end;for(B in g)x[B]=g[B];x.values=s;q=new b(a,"bezier",0,0,v.pt,2);q.data=v;q.plugin=p;q.setRatio=d;0===x.autoRotate&&(x.autoRotate=!0);x.autoRotate&&!(x.autoRotate instanceof Array)&&(h=!0===x.autoRotate?0:Number(x.autoRotate)*k,x.autoRotate=null!=v.end.left?[["left","top","rotation",h,!0]]:null!=v.end.x?[["x","y","rotation",h,!0]]:!1);x.autoRotate&&(f._transform||f._enableTransforms(!1),v.autoRotate=f._target._gsTransform);-p._onInitTween(v.proxy,x,f._tween);return q})}};f._onInitTween=function(a,c,b){this._target=a;c instanceof Array&&(c={values:c});this._props=[];this._timeRes=null==c.timeResolution?6:parseInt(c.timeResolution);var f=c.values||[],p={},k=f[0];b=c.autoRotate||b.vars.orientToBezier;var t,D,q;this._autoRotate=b?b instanceof Array?b:[["x","y","rotation",!0===b?0:Number(b)||0]]:null;for(t in k)this._props.push(t);for(k=this._props.length;-1<--k;)t=this._props[k],this._overwriteProps.push(t),b=this._func[t]=+p._onInitTween(v.proxy,x,f._tween);return q})}};f._onInitTween=function(a,c,b){this._target=a;c instanceof Array&&(c={values:c});this._props=[];this._timeRes=null==c.timeResolution?6:parseInt(c.timeResolution,10);var f=c.values||[],p={},k=f[0];b=c.autoRotate||b.vars.orientToBezier;var t,D,q;this._autoRotate=b?b instanceof Array?b:[["x","y","rotation",!0===b?0:Number(b)||0]]:null;for(t in k)this._props.push(t);for(k=this._props.length;-1<--k;)t=this._props[k],this._overwriteProps.push(t),b=this._func[t]="function"===typeof a[t],p[t]=!b?parseFloat(a[t]):a[t.indexOf("set")||"function"!==typeof a["get"+t.substr(3)]?t:"get"+t.substr(3)](),q||p[t]!==f[0][t]&&(q=p);if("cubic"!==c.type&&"quadratic"!==c.type&&"soft"!==c.type)p=d(f,isNaN(c.curviness)?1:c.curviness,!1,"thruBasic"===c.type,c.correlate,q);else{b=(b=c.type)||"soft";c={};q="cubic"===b?3:2;b="soft"===b;var k=[],l,r,s,x,h,B,v,A,C;b&&p&&(f=[p].concat(f));if(null==f||f.length<q+1)throw"invalid Bezier data";for(r in f[0])k.push(r);for(B=k.length;-1<--B;){r=k[B];c[r]=h=[];C=0;A=f.length;for(v=0;v<A;v++)l=null==p?f[v][r]:"string"===typeof(s=f[v][r])&&"="===s.charAt(1)?p[r]+Number(s.charAt(0)+s.substr(2)):Number(s),b&&1<v&&v<A-1&&(h[C++]=(l+h[C-2])/2),h[C++]=l;A=C-q+1;for(v=C=0;v<A;v+=q)l=h[v],r=h[v+1],s=h[v+2],x=2===q?0:h[v+3],h[C++]=s=3===q?new j(l,r,s,x):new j(l,(2*r+l)/3,(2*r+s)/3,s);h.length=C}p=c}this._beziers=p;this._segCount=this._beziers[t].length;if(this._timeRes){k=this._beziers;t=this._timeRes;t=t>>0||6;p=[];r=[];f=s=0;c=t-1;q=[];b=[];for(D in k){l=k[D];h=p;B=t;v=1/B;A=l.length;for(var y=void 0,z=void 0,e=x=C=z=void 0,n=y=void 0,m=void 0,m=e=void 0;-1<--A;){e=l[A];z=e.a;C=e.d-z;x=e.c-z;e=e.b-z;z=0;for(n=1;n<=B;n++)y=v*n,m=1-y,y=z-(z=(y*y*C+3*m*(y*x+m*e))*y),m=A*B+n-1,h[m]=(h[m]||0)+y*y}}k=p.length;for(D=0;D<k;D++)s+=Math.sqrt(p[D]),l=D%t,b[l]=s,l===c&&(f+=s,l=D/t>>0,q[l]=b,r[l]=f,s=0,b=[]);this._length=f;this._lengths=r;this._segments=q;this._l1=this._li=this._s1=this._si=0;this._l2=this._lengths[0];this._curSeg=this._segments[0];@@ -72,7 +72,7 @@ this._s2=this._curSeg[0];this._prec=1/this._curSeg.length}if(b=this._autoRotate)c&&(this._l2=f[++j])<=a;);this._l1=f[j-1];this._li=j;this._curSeg=l=this._segments[j];this._s2=l[this._s1=this._si=0]}else if(a<this._l1&&0<j){for(;0<j&&(this._l1=f[--j])>=a;);0===j&&a<this._l1?this._l1=0:j++;this._l2=f[j];this._li=j;this._curSeg=l=this._segments[j];this._s1=l[(this._si=l.length-1)-1]||0;this._s2=l[this._si]}f=j;a-=this._l1;j=this._si;if(a>this._s2&&j<l.length-1){for(c=l.length-1;j<c&&(this._s2=l[++j])<=a;);this._s1=l[j-1];this._si=j}else if(a<this._s1&&0<j){for(;0<j&&(this._s1=l[--j])>=a;);0===j&&a<this._s1?this._s1=0:j++;this._s2=l[j];this._si=j}l=(j+(a-this._s1)/(this._s2-this._s1))*this._prec}else f=0>a?0:1<=a?c-1:c*a>>0,l=(a-f*(1/c))*c;c=1-l;for(j=this._props.length;-1<--j;)if(a=this._props[j],k=this._beziers[a][f],q=(l*l*k.da+3*c*(l*k.ca+c*k.ba))*l+k.a,this._round[a]&&(q=q+(0<q?0.5:-0.5)>>0),b[a])d[a](q);else d[a]=q;if(this._autoRotate){var c=this._autoRotate,r,s,z,x,h;for(j=c.length;-1<--j;)a=c[j][2],x=c[j][3]||0,h=!0===c[j][4]?1:p,k=this._beziers[c[j][0]][f],q=this._beziers[c[j][1]][f],r=k.a+(k.b-k.a)*l,s=k.b+(k.c-k.b)*l,r+=(s-r)*l,s+=(k.c+(k.d-k.c)*l-s)*l,k=q.a+(q.b-q.a)*l,z=q.b+(q.c-q.b)*l,k+=(z-k)*l,z+=(q.c+(q.d-q.c)*l-z)*l,q=Math.atan2(z-k,s-r)*h+x,b[a]?b[a].call(d,q):d[a]=q}};f._roundProps=function(a,c){for(var b=this._overwriteProps,d=b.length;-1<--d;)if(a[b[d]]||a.bezier||a.bezierThrough)this._round[b[d]]=c};f._kill=function(a){var c=this._props,b,d;for(b in this._beziers)if(b in a){delete this._beziers[b];delete this._func[b];for(d=c.length;-1<--d;)c[d]===b&&c.splice(d,-1)}return l.prototype._kill.call(this,a)};l.activate([r]);return r},!0);_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(l){var r=function(){l.call(this,"css");this._overwriteProps.length=0},f,p,k,b,s={},c=r.prototype=new l("css");c.constructor=r;r.version=1.661;r.API=2;r.defaultTransformPerspective=0;c="px";r.suffixMap={top:c,right:c,bottom:c,left:c,width:c,height:c,fontSize:c,padding:c,margin:c,perspective:c};var a=/(?:\d|\-\d|\.\d|\-\.\d)+/g,j=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,+1)}return l.prototype._kill.call(this,a)};l.activate([r]);return r},!0);_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(l){var r=function(){l.call(this,"css");this._overwriteProps.length=0},f,p,k,b,s={},c=r.prototype=new l("css");c.constructor=r;r.version=1.663;r.API=2;r.defaultTransformPerspective=0;c="px";r.suffixMap={top:c,right:c,bottom:c,left:c,width:c,height:c,fontSize:c,padding:c,margin:c,perspective:c};var a=/(?:\d|\-\d|\.\d|\-\.\d)+/g,j=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,d=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,z=/[^\d\-\.]/g,g=/(?:\d|\-|\+|=|#|\.)*/g,u=/opacity *= *([^)]*)/,Z=/opacity:([^;]*)/,R=/([A-Z])/g,w=/-([a-z])/gi,E=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,t=function(a,e){return e.toUpperCase()},D=/(?:Left|Right|Width)/i,q=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,U=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,G=Math.PI/180,M=180/Math.PI,x={},h=document,B=h.createElement("div"),v=h.createElement("img"),A=r._internals={_specialProps:s},C=navigator.userAgent,y,V,e,n,m,H,F,I=C.indexOf("Android"),J=h.createElement("div");m=(e=-1!==C.indexOf("Safari")&&-1===C.indexOf("Chrome")&&(-1===I||3<Number(C.substr(I+8,1))))&&6>Number(C.substr(C.indexOf("Version/")+8,1));n=-1!==C.indexOf("Firefox");/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(C);H=parseFloat(RegExp.$1);J.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";F=(C=J.getElementsByTagName("a")[0])?/^0.55/.test(C.style.opacity):!1;var S=function(a){return u.test("string"===typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},la="",ga="",ba=function(a,e){e=e||B;var c=e.style,b,d;if(void 0!==c[a])return a;a=a.charAt(0).toUpperCase()+a.substr(1);b=["O","Moz","ms","Ms","Webkit"];for(d=5;-1<--d&&void 0===c[b[d]+a];);return 0<=d?(ga=3===d?"ms":b[d],la="-"+ga.toLowerCase()+"-",ga+a):null},ca=h.defaultView?h.defaultView.getComputedStyle:function(){},N=r.getStyle=function(a,e,c,b,d){var h;if(!F&&"opacity"===e)return S(a);!b&&a.style[e]?h=a.style[e]:(c=c||ca(a,null))?h=(a=c.getPropertyValue(e.replace(R,@@ -80,11 +80,11 @@ a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},la="",ga="",ba=function(a,e){eb.rotation=a.rotation*M;b.rotationX=a.rotationX*M;b.rotationY=a.rotationY*M;b.skewX=a.skewX*M;b.scaleX=a.scaleX;b.scaleY=a.scaleY;b.scaleZ=a.scaleZ;b.x=a.x;b.y=a.y;b.z=a.z;b.filters&&delete b.filters;return b},ma=function(a,e,c,b){var d={};a=a.style;var h,K,m;for(K in c)if("cssText"!==K&&"length"!==K&&isNaN(K)&&e[K]!==(h=c[K]))if(-1===K.indexOf("Origin")&&("number"===typeof h||"string"===typeof h))d[K]=(""===h||"auto"===h||"none"===h)&&"string"===typeof e[K]&&""!==e[K].replace(z,"")?0:h,void 0!==a[K]&&(m=new ha(a,K,a[K],m));if(b)for(K in b)"className"!==K&&(d[K]=b[K]);return{difs:d,firstMPT:m}},sa={width:["Left","Right"],height:["Top","Bottom"]},ta=["marginLeft","marginRight","marginTop","marginBottom"],T=function(a,e,c,b,d){if("px"===b||!b)return c;if("auto"===b||!c)return 0;var m=D.test(e),K=a,n=B.style,j=0>c;j&&(c=-c);"%"===b&&-1!==e.indexOf("border")?m=c/100*(m?a.clientWidth:a.clientHeight):(n.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;","%"===b||"em"===b||!K.appendChild?(K=a.parentNode||h.body,n[m?"width":"height"]=c+b):n[m?"borderLeftWidth":"borderTopWidth"]=c+b,K.appendChild(B),m=parseFloat(B[m?"offsetWidth":"offsetHeight"]),K.removeChild(B),0===m&&!d&&(m=T(a,e,c,b,!0)));return j?-m:m},ia=function(a,e){if(null==a||""===a||"auto"===a||"auto auto"===a)a="0 0";var c=a.split(" "),b=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":c[0],d=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":c[1];null==d?d="0":"center"===d&&(d="50%");-if("center"===b||isNaN(parseFloat(b)))b="50%";e&&(e.oxp=-1!==b.indexOf("%"),e.oyp=-1!==d.indexOf("%"),e.oxr="="===b.charAt(1),e.oyr="="===d.charAt(1),e.ox=parseFloat(b.replace(z,"")),e.oy=parseFloat(d.replace(z,"")));return b+" "+d+(2<c.length?" "+c[2]:"")},na=function(a,e){return"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1")*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(e)},W=function(a,e){return null==a?e:"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1")*Number(a.substr(2))+-e:parseFloat(a)},$=function(a,e){if(null==a)return e;var c=-1===a.indexOf("rad")?G:1,b="="===a.charAt(1);a=Number(a.replace(z,""))*c;return b?a+e:a},ja=function(a,e){var c=(("number"===typeof a?a*G:$(a,e))-e)%(2*Math.PI);c!==c%Math.PI&&(c+=Math.PI*(0>c?2:-2));return e+c},aa={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],-gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ka=function(e){if(!e||""===e)return aa.black;if(aa[e])return aa[e];if("number"===typeof e)return[e>>16,e>>8&255,e&255];if("#"===e.charAt(0)){if(4===e.length){var c=e.charAt(1),b=e.charAt(2);e=e.charAt(3);e="#"+c+c+b+b+e+e}e=parseInt(e.substr(1),16);return[e>>16,e>>8&255,e&255]}e=e.match(a)||aa.transparent;e[0]=Number(e[0]);e[1]=Number(e[1]);e[2]=Number(e[2]);3<e.length&&-(e[3]=Number(e[3]));return e},X="(?:\\b(?:(?:rgb|rgba)\\(.+?\\))|\\B#.+?\\b";for(c in aa)X+="|"+c+"\\b";var X=RegExp(X+")","gi"),oa=function(e,c,b){if(null==e)return function(a){return a};var h=c?(e.match(X)||[""])[0]:"",m=e.split(h).join("").match(d)||[],n=e.substr(0,e.indexOf(m[0])),K=")"===e.charAt(e.length-1)?")":"",j=-1!==e.indexOf(" ")?" ":",",f=m.length,g=0<f?m[0].replace(a,""):"";return c?function(a){"number"===typeof a&&(a+=g);var e=(a.match(X)||[h])[0];a=a.split(e).join("").match(d)||[];-var c=a.length;if(f>c--)for(;++c<f;)a[c]=b?a[(c-1)/2>>0]:m[c];return n+a.join(j)+j+e+K}:function(a){"number"===typeof a&&(a+=g);a=a.match(d)||[];var e=a.length;if(f>e--)for(;++e<f;)a[e]=b?a[(e-1)/2>>0]:m[e];return n+a.join(j)+K}},C=function(a){a=a.split(",");return function(e,c,b,d,h,m,n){c=(c+"").split(" ");n={};for(b=0;4>b;b++)n[a[b]]=c[b]=c[b]||c[(b-1)/2>>0];return d.parse(e,n,h,m)}};A._setPluginRatio=function(a){this.plugin.setRatio(a);for(var e=this.data,c=e.proxy,b=e.firstMPT,d;b;)d=c[b.v],+if("center"===b||isNaN(parseFloat(b)))b="50%";e&&(e.oxp=-1!==b.indexOf("%"),e.oyp=-1!==d.indexOf("%"),e.oxr="="===b.charAt(1),e.oyr="="===d.charAt(1),e.ox=parseFloat(b.replace(z,"")),e.oy=parseFloat(d.replace(z,"")));return b+" "+d+(2<c.length?" "+c[2]:"")},na=function(a,e){return"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(e)},W=function(a,e){return null==a?e:"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*+Number(a.substr(2))+e:parseFloat(a)},$=function(a,e){if(null==a)return e;var c=-1===a.indexOf("rad")?G:1,b="="===a.charAt(1);a=Number(a.replace(z,""))*c;return b?a+e:a},ja=function(a,e){var c=(("number"===typeof a?a*G:$(a,e))-e)%(2*Math.PI);c!==c%Math.PI&&(c+=Math.PI*(0>c?2:-2));return e+c},aa={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,+0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ka=function(e){if(!e||""===e)return aa.black;if(aa[e])return aa[e];if("number"===typeof e)return[e>>16,e>>8&255,e&255];if("#"===e.charAt(0)){if(4===e.length){var c=e.charAt(1),b=e.charAt(2);e=e.charAt(3);e="#"+c+c+b+b+e+e}e=parseInt(e.substr(1),16);return[e>>16,e>>8&255,e&255]}e=e.match(a)||aa.transparent;e[0]=Number(e[0]);e[1]=Number(e[1]);e[2]=+Number(e[2]);3<e.length&&(e[3]=Number(e[3]));return e},X="(?:\\b(?:(?:rgb|rgba)\\(.+?\\))|\\B#.+?\\b";for(c in aa)X+="|"+c+"\\b";var X=RegExp(X+")","gi"),oa=function(e,c,b){if(null==e)return function(a){return a};var h=c?(e.match(X)||[""])[0]:"",m=e.split(h).join("").match(d)||[],n=e.substr(0,e.indexOf(m[0])),K=")"===e.charAt(e.length-1)?")":"",j=-1!==e.indexOf(" ")?" ":",",f=m.length,g=0<f?m[0].replace(a,""):"";return c?function(a){"number"===typeof a&&(a+=g);var e=(a.match(X)||[h])[0];a=a.split(e).join("").match(d)||+[];var c=a.length;if(f>c--)for(;++c<f;)a[c]=b?a[(c-1)/2>>0]:m[c];return n+a.join(j)+j+e+K}:function(a){"number"===typeof a&&(a+=g);a=a.match(d)||[];var e=a.length;if(f>e--)for(;++e<f;)a[e]=b?a[(e-1)/2>>0]:m[e];return n+a.join(j)+K}},C=function(a){a=a.split(",");return function(e,c,b,d,h,m,n){c=(c+"").split(" ");n={};for(b=0;4>b;b++)n[a[b]]=c[b]=c[b]||c[(b-1)/2>>0];return d.parse(e,n,h,m)}};A._setPluginRatio=function(a){this.plugin.setRatio(a);for(var e=this.data,c=e.proxy,b=e.firstMPT,d;b;)d=c[b.v],b.r?d=0<d?d+0.5>>0:d-0.5>>0:1E-6>d&&-1E-6<d&&(d=0),b.t[b.p]=d,b=b._next;e.autoRotate&&(e.autoRotate.rotation=c.rotation);if(1===a)for(b=e.firstMPT;b;){a=b.t;if(a.type){if(1===a.type){c=a.xs0+a.s+a.xs1;for(e=1;e<a.l;e++)c+=a["xn"+e]+a["xs"+(e+1)];a.e=c}}else a.e=a.s+a.xs0;b=b._next}};var ha=function(a,e,c,b,d){this.t=a;this.p=e;this.v=c;this.r=d;b&&(b._prev=this,this._next=b)};A._parseToProxy=function(a,e,c,b,d,h){var m=b,n={},j={},f=c._transform,g=x,k;c._transform=null;x=e;b=a=c.parse(a,e,b,d);x=g;h&&(c._transform=f,m&&(m._prev=null,m._prev&&(m._prev._next=null)));for(;b&&b!==m;){if(1>=b.type&&(f=b.p,j[f]=b.s+b.c,n[f]=b.s,h||(k=new ha(b,"s",f,k,b.r),b.c=0),1===b.type))for(c=b.l;0<--c;)g="xn"+c,f=b.p+"_"+g,j[f]=b.data[g],n[f]=b[g],h||(k=new ha(b,g,f,k,b.rxp[g]));b=b._next}return{proxy:n,end:j,firstMPT:k,pt:a}};var O=A.CSSPropTween=function(a,e,c,d,h,m,n,j,g,k,p){this.t=a;this.p=e;this.s=c;this.c=d;this.n=n||"css_"+e;a instanceof O||b.push(this.n);this.r=j;this.type=m||0;g&&(this.pr=g,f=!0);this.b=void 0===k?c:k;this.e=void 0===p?c+d:p;h&&(this._next=h,h._prev=this)},fa=r.parseComplex=function(e,c,b,d,h,m,n,f,g,k){n=new O(e,c,0,0,n,k?2:1,null,!1,f,b,d);e=b.split(", ").join(",").split(" ");c=(d+"").split(", ").join(",").split(" ");b=e.length;f=!1!==y;var p,l,H,q,s;b!==c.length&&(e=(m||"").split(" "),b=e.length);n.plugin=g;n.setRatio=k;for(m=0;m<b;m++)if(g=e[m],p=c[m],(k=parseFloat(g))||0===k)n.appendXtra("",k,na(p,k),p.replace(j,""),f&&-1!==p.indexOf("px"),!0);else if(h&&("#"===g.charAt(0)||@@ -108,51 +108,52 @@ m.rotationZ?m.rotationZ:e.rotation*M;f={scaleX:W(null!=m.scaleX?m.scaleX:m.scale"number"===typeof m.rotationX?m.rotationX*G:$(m.rotationX,e.rotationX),f.rotationY=null!=m.shortRotationY?ja(m.shortRotationY,e.rotationY):"number"===typeof m.rotationY?m.rotationY*G:$(m.rotationY,e.rotationY),1E-6>f.rotationX&&-1E-6<f.rotationX&&(f.rotationX=0),1E-6>f.rotationY&&-1E-6<f.rotationY&&(f.rotationY=0));f.skewX=null==m.skewX?e.skewX:"number"===typeof m.skewX?m.skewX*G:$(m.skewX,e.skewX);f.skewY=null==m.skewY?e.skewY:"number"===typeof m.skewY?m.skewY*G:$(m.skewY,e.skewY);if(g=f.skewY-e.skewY)f.skewX+=g,f.rotation+=g;1E-6>f.skewY&&-1E-6<f.skewY&&(f.skewY=0);1E-6>f.skewX&&-1E-6<f.skewX&&(f.skewX=0);1E-6>f.rotation&&-1E-6<f.rotation&&(f.rotation=0)}p=e.z||e.rotationX||e.rotationY||f.z||f.rotationX||f.rotationY||f.perspective;!p&&null!=f.scale&&(f.scaleZ=1);for(c._transformType=p||3===this._transformType?3:2;-1<--j;)if(b=qa[j],g=f[b]-e[b],1E-6<g||-1E-6>g||null!=x[b])d=new O(e,b,e[b],g,d),d.xs0=0,d.plugin=h,c._overwriteProps.push(d.n);if((g=m.transformOrigin)||Y&&p&&e.zOrigin)Q?(g=(g||N(a,b,k,!1,"50% 50%"))+"",b=ra,d=new O(n,b,0,0,d,-1,"css_transformOrigin"),d.b=n[b],d.plugin=h,Y?(p=e.zOrigin,g=g.split(" "),e.zOrigin=(2<g.length?parseFloat(g[2]):p)||0,d.xs0=d.e=n[b]=g[0]+" "+(g[1]||"50%")+" 0px",d=new O(e,"zOrigin",0,0,d,-1,d.n),d.b=p,d.xs0=d.e=e.zOrigin):d.xs0=d.e=n[b]=g):ia(g+"",e);return d&&d.t===a?(d._next&&(d._next._prev=null),d._next):d},!0);L("boxShadow","0px 0px 0px 0px #999",null,!0,!0);L("borderRadius","0px",function(a,e,b,c,d){e=this.format(e);c=["borderTopLeftRadius","borderTopRightRadius",-"borderBottomRightRadius","borderBottomLeftRadius"];var m=a.style,h,n,f,g,j,l,q,H,r,F,s,t;H=parseFloat(a.offsetWidth);r=parseFloat(a.offsetHeight);e=e.split(" ");for(h=0;h<c.length;h++)this.p.indexOf("border")&&(c[h]=ba(c[h])),g=f=N(a,c[h],k,!1,"0px"),-1!==g.indexOf(" ")&&(f=g.split(" "),g=f[0],f=f[1]),j=n=e[h],l=parseFloat(g),s=g.substr((l+"").length),(t="="===j.charAt(1))?(q=parseInt(j.charAt(0)+"1"),j=j.substr(2),q*=parseFloat(j),F=j.substr((q+"").length-(0>q?1:0))||""):(q=parseFloat(j),F=j.substr((q++"borderBottomRightRadius","borderBottomLeftRadius"];var m=a.style,h,n,f,g,j,l,q,H,r,F,s,t;H=parseFloat(a.offsetWidth);r=parseFloat(a.offsetHeight);e=e.split(" ");for(h=0;h<c.length;h++)this.p.indexOf("border")&&(c[h]=ba(c[h])),g=f=N(a,c[h],k,!1,"0px"),-1!==g.indexOf(" ")&&(f=g.split(" "),g=f[0],f=f[1]),j=n=e[h],l=parseFloat(g),s=g.substr((l+"").length),(t="="===j.charAt(1))?(q=parseInt(j.charAt(0)+"1",10),j=j.substr(2),q*=parseFloat(j),F=j.substr((q+"").length-(0>q?1:0))||""):(q=parseFloat(j),F=j.substr((q+"").length)),""===F&&(F=p[b]||s),F!==s&&(g=T(a,"borderLeft",l,s),l=T(a,"borderTop",l,s),"%"===F?(g=100*(g/H)+"%",f=100*(l/r)+"%"):"em"===F?(s=T(a,"borderLeft",1,"em"),g=g/s+"em",f=l/s+"em"):(g+="px",f=l+"px"),t&&(j=parseFloat(g)+q+F,n=parseFloat(f)+q+F)),d=fa(m,c[h],g+" "+f,j+" "+n,!1,"0px",d);return d},!0,!1,oa("0px 0px 0px 0px",!1,!0));L("backgroundPosition","0 0",function(a,e,b,c,d,m){b=k||ca(a,null);b=this.format((b?H?b.getPropertyValue("background-position-x")+" "+b.getPropertyValue("background-position-y"):b.getPropertyValue("background-position"):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0");e=this.format(e);var h,n,f,g;if(-1!==b.indexOf("%")!==(-1!==e.indexOf("%"))){c=b.split(" ");h=e.split(" ");v.setAttribute("src",N(a,"backgroundImage").replace(E,""));for(n=2;-1<--n;)b=c[n],f=-1!==b.indexOf("%"),f!==(-1!==h[n].indexOf("%"))&&(g=0===n?a.offsetWidth-v.width:a.offsetHeight-v.height,c[n]=f?parseFloat(b)/100*g+"px":100*(parseFloat(b)/g)+"%");b=c.join(" ")}return this.parseComplex(a.style,-b,e,d,m)},!1,!1,ia);L("backgroundSize","0 0",null,!1,!1,ia);L("perspective","0px",null,!0);L("perspectiveOrigin","50% 50%",null,!0);L("transformStyle","preserve-3d",null,!0);L("margin",null,C("marginTop,marginRight,marginBottom,marginLeft"));L("padding",null,C("paddingTop,paddingRight,paddingBottom,paddingLeft"));L("clip","rect(0px,0px,0px,0px)");L("textShadow","0px 0px 0px #999",null,!1,!0);L("autoRound",null,function(a,e,b,c,d){return d});L("border","0px solid #000",function(a,e,b,c,d,m){return this.parseComplex(a.style,-this.format(N(a,"borderTopWidth",k,!1,"0px")+" "+N(a,"borderTopStyle",k,!1,"solid")+" "+N(a,"borderTopColor",k,!1,"#000")),this.format(e),d,m)},!1,!0,function(a){var e=a.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(a.match(X)||["#000"])[0]});var ya=function(a){var e=this.t;a=this.s+this.c*a;var b;100===a&&(e.removeAttribute("filter"),b=!N(this.data,"filter"));b||(this.xn1&&(e.filter=e.filter||"alpha(opacity=100)"),e.filter=-1===e.filter.indexOf("opacity")?e.filter+(" alpha(opacity="+(a>>0)+")"):-e.filter.replace(u,"opacity="+(a>>0)))};L("opacity,alpha,autoAlpha","1",function(a,e,b,c,d,m){var h=parseFloat(N(a,"opacity",k,!1,"1"));e=parseFloat(e);var n=a.style,f;"autoAlpha"===b&&(f=N(a,"visibility",k),1===h&&"hidden"===f&&(h=0),d=new O(n,"visibility",0,0,d,-1,null,!1,0,0!==h?"visible":"hidden",0===e?"hidden":"visible"),d.xs0="visible",c._overwriteProps.push(d.n));F?d=new O(n,"opacity",h,e-h,d):(d=new O(n,"opacity",100*h,100*(e-h),d),d.xn1="autoAlpha"===b?1:0,n.zoom=1,d.type=2,d.b="alpha(opacity="+-d.s+")",d.e="alpha(opacity="+(d.s+d.c)+")",d.data=a,d.plugin=m,d.setRatio=ya);return d});var za=function(a){if(1===a||0===a){this.t.className=1===a?this.e:this.b;a=this.data;for(var e=this.t.style,b=e.removeProperty?"removeProperty":"removeAttribute";a;){if(a.v)e[a.p]=a.v;else e[b](a.p.replace(R,"-$1").toLowerCase());a=a._next}}else this.t.className!==this.b&&(this.t.className=this.b)};L("className",null,function(a,e,b,c,d,m,h){var n=a.className,f=a.style.cssText;d=c._classNamePT=new O(a,b,0,0,d,-2);d.setRatio=za;d.b=n;d.e="="!==e.charAt(1)?e:"+"===e.charAt(0)?n+" "+e.substr(2):n.split(e.substr(2)).join("");c._tween._duration&&(e=ea(a,k,!0),a.className=d.e,h=ma(a,e,ea(a),h),a.className=n,d.data=h.firstMPT,a.style.cssText=f,d=d.xfirst=c.parse(a,h.difs,d,m));return d});c=["bezier","throwProps","physicsProps","physics2D"];for(P=c.length;P--;)A(c[P]);c=r.prototype;c._firstPT=null;c._onInitTween=function(a,c,d){if(!a.nodeType)return!1;this._target=a;this._tween=d;this._vars=c;y=c.autoRound;f=!1;-p=c.suffixMap||r.suffixMap;k=ca(a,"");b=this._overwriteProps;d=a.style;var h,n,g,j;if(V&&""===d.zIndex&&(h=N(a,"zIndex",k),"auto"===h||""===h))d.zIndex=0;"string"===typeof c&&(n=d.cssText,h=ea(a,k),d.cssText=n+";"+c,h=ma(a,h,ea(a)).difs,!F&&Z.test(c)&&(h.opacity=parseFloat(RegExp.$1)),c=h,d.cssText=n);this._firstPT=c=this.parse(a,c,null);if(this._transformType){h=3===this._transformType;if(Q){if(e){V=!0;if(""===d.zIndex&&(j=N(a,"zIndex",k),"auto"===j||""===j))d.zIndex=0;m&&(d.WebkitBackfaceVisibility=-this._vars.WebkitBackfaceVisibility||(h?"visible":"hidden"))}}else d.zoom=1;for(d=c;d&&d._next;)d=d._next;j=new O(a,"transform",0,0,null,2);this._linkCSSP(j,null,d);j.setRatio=h&&Y?wa:Q?xa:va;j.data=this._transform||da(a,k,!0);b.pop()}if(f){for(;c;){a=c._next;for(d=n;d&&d.pr>c.pr;)d=d._next;(c._prev=d?d._prev:g)?c._prev._next=c:n=c;(c._next=d)?d._prev=c:g=c;c=a}this._firstPT=n}return!0};c.parse=function(a,e,b,c){var d=a.style,m,h,n,f,g,j,l,q;for(m in e){g=e[m];if(h=s[m])b=h.parse(a,g,m,this,b,c,e);-else if(h=N(a,m,k)+"",l="string"===typeof g,"color"===m||"fill"===m||"stroke"===m||-1!==m.indexOf("Color")||l&&!g.indexOf("rgb"))l||(g=ka(g),g=(3<g.length?"rgba(":"rgb(")+g.join(",")+")"),b=fa(d,m,h,g,!0,"transparent",b,0,c);else if(l&&(-1!==g.indexOf(" ")||-1!==g.indexOf(",")))b=fa(d,m,h,g,!0,null,b,0,c);else{n=parseFloat(h);j=h.substr((n+"").length);if(""===h||"auto"===h)if("width"===m||"height"===m){n=a;q=m;f=k;j=parseFloat("width"===q?n.offsetWidth:n.offsetHeight);q=sa[q];var H=q.length;for(f=-f||ca(n,null);-1<--H;)j-=parseFloat(N(n,"padding"+q[H],f,!0))||0,j-=parseFloat(N(n,"border"+q[H]+"Width",f,!0))||0;n=j;j="px"}else n="opacity"!==m?0:1,j="";(q=l&&"="===g.charAt(1))?(f=parseInt(g.charAt(0)+"1"),g=g.substr(2),f*=parseFloat(g),l=g.substr((f+"").length-(0>f?1:0))||""):(f=parseFloat(g),l=l?g.substr((f+"").length)||"":"");""===l&&(l=p[m]||j);g=f||0===f?(q?f+n:f)+l:e[m];if(j!==l&&""!==l&&(f||0===f))if(n||0===n)if(n=T(a,m,n,j),"%"===l?(n/=T(a,m,100,"%")/100,100<n&&(n=100)):"em"===l?n/=T(a,-m,1,"em"):(f=T(a,m,f,l),l="px"),q&&(f||0===f))g=f+n+l;q&&(f+=n);(n||0===n)&&(f||0===f)?(b=new O(d,m,n,f-n,b,0,"css_"+m,!1!==y&&("px"===l||"zIndex"===m),0,h,g),b.xs0=l):(b=new O(d,m,f||n||0,0,b,-1,"css_"+m,!1,0,h,g),b.xs0="display"===m&&"none"===g?h:g)}c&&(b&&!b.plugin)&&(b.plugin=c)}return b};c.setRatio=function(a){var e=this._firstPT,b,c;if(1===a&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;e;)2!==e.type?e.t[e.p]=e.e:e.setRatio(a),e=e._next;else if(a||!(this._tween._time===-this._tween._duration||0===this._tween._time)||-1E-6===this._tween._rawPrevTime)for(;e;){b=e.c*a+e.s;e.r?b=0<b?b+0.5>>0:b-0.5>>0:1E-6>b&&-1E-6<b&&(b=0);if(e.type)if(1===e.type)if(c=e.l,2===c)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===c)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===c)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===c)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{b=e.xs0+b+e.xs1;for(c=1;c<e.l;c++)b+=e["xn"+c]+e["xs"+-(c+1)];e.t[e.p]=b}else-1===e.type?e.t[e.p]=e.xs0:e.setRatio&&e.setRatio(a);else e.t[e.p]=b+e.xs0;e=e._next}else for(;e;)2!==e.type?e.t[e.p]=e.b:e.setRatio(a),e=e._next};c._enableTransforms=function(e){this._transformType=e||3===this._transformType?3:2};c._linkCSSP=function(e,a,b,c){e&&(a&&(a._prev=e),e._next&&(e._next._prev=e._prev),b?b._next=e:!c&&null===this._firstPT&&(this._firstPT=e),e._prev?e._prev._next=e._next:this._firstPT===e&&(this._firstPT=e._next),e._next=a,e._prev=b);return e};c._kill=-function(e){var a=e,b=!1,c,d;if(e.css_autoAlpha||e.css_alpha){a={};for(d in e)a[d]=e[d];a.css_opacity=1;a.css_autoAlpha&&(a.css_visibility=1)}if(e.css_className&&(c=this._classNamePT))(e=c.xfirst)&&e._prev?this._linkCSSP(e._prev,c._next,e._prev._prev):e===this._firstPT&&(this._firstPT=null),c._next&&this._linkCSSP(c._next,c._next._next,e._prev),this._target._gsOverwrittenClassNamePT=this._linkCSSP(c,this._target._gsOverwrittenClassNamePT),this._classNamePT=null,b=!0;return l.prototype._kill.call(this,-a)||b};l.activate([r]);return r},!0);_gsDefine("plugins.RoundPropsPlugin",["plugins.TweenPlugin"],function(l){var r=function(){l.call(this,"roundProps",-1);this._overwriteProps.length=0},f=r.prototype=new l("roundProps",-1);f.constructor=r;r.API=2;f._onInitTween=function(f,k,b){this._tween=b;return!0};f._onInitAllProps=function(){for(var f=this._tween,k=f.vars.roundProps instanceof Array?f.vars.roundProps:f.vars.roundProps.split(","),b=k.length,l={},c=f._propLookup.roundProps,a,j,d;-1<--b;)l[k[b]]=-1;for(b=k.length;-1<--b;){a=k[b];for(j=f._firstPT;j;)d=j._next,j.pg?j.t._roundProps(l,!0):j.n===a&&(this._add(j.t,a,j.s,j.c),d&&(d._prev=j._prev),j._prev?j._prev._next=d:f._firstPT===j&&(f._firstPT=d),j._next=j._prev=null,f._propLookup[a]=c),j=d}return!1};f._add=function(f,k,b,l){this._addTween(f,k,b,b+l,k,!0);this._overwriteProps.push(k)};l.activate([r]);return r},!0);_gsDefine("easing.Back",["easing.Ease"],function(l){var r=window.com.greensock._class,f=function(a,b){var c=r("easing."+a,function(){},-!0),d=c.prototype=new l;d.constructor=c;d.getRatio=b;return c},p=function(a,b){var c=r("easing."+a,function(a){this._p1=a||0===a?a:1.70158;this._p2=1.525*this._p1},!0),d=c.prototype=new l;d.constructor=c;d.getRatio=b;d.config=function(a){return new c(a)};return c},k=p("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),b=p("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),p=p("BackInOut",function(a){return 1>(a*=2)?0.5*a*a*((this._p2+1)*a-this._p2):0.5*((a-=2)*a*((this._p2+-1)*a+this._p2)+2)}),s=f("BounceOut",function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+0.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375}),c=f("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:a<2/2.75?1-(7.5625*(a-=1.5/2.75)*a+0.75):a<2.5/2.75?1-(7.5625*(a-=2.25/2.75)*a+0.9375):1-(7.5625*(a-=2.625/2.75)*a+0.984375)}),a=f("BounceInOut",function(a){var b=0.5>a;a=b?1-2*a:2*a-1;a=a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+0.75:a<2.5/-2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375;return b?0.5*(1-a):0.5*a+0.5}),j=f("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),d=f("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),z=f("CircInOut",function(a){return 1>(a*=2)?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1)}),g=2*Math.PI,u=function(a,b,c){var d=r("easing."+a,function(a,b){this._p1=a||1;this._p2=b||c;this._p3=this._p2/g*(Math.asin(1/this._p1)||0)},!0);a=d.prototype=new l;a.constructor=d;a.getRatio=-b;a.config=function(a,b){return new d(a,b)};return d},Z=u("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*g/this._p2)+1},0.3),R=u("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*g/this._p2))},0.3),u=u("ElasticInOut",function(a){return 1>(a*=2)?-0.5*this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*g/this._p2):0.5*this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*g/this._p2)+1},0.45),w=f("ExpoOut",function(a){return 1-Math.pow(2,--10*a)}),E=f("ExpoIn",function(a){return Math.pow(2,10*(a-1))-0.001}),t=f("ExpoInOut",function(a){return 1>(a*=2)?0.5*Math.pow(2,10*(a-1)):0.5*(2-Math.pow(2,-10*(a-1)))}),D=Math.PI/2,q=f("SineOut",function(a){return Math.sin(a*D)}),U=f("SineIn",function(a){return-Math.cos(a*D)+1}),f=f("SineInOut",function(a){return-0.5*(Math.cos(Math.PI*a)-1)}),G=r("easing.SlowMo",function(a,b,c){null==a?a=0.7:1<a&&(a=1);this._p=1!=a?b||0===b?b:0.7:0;this._p1=(1-a)/2;this._p2=a;this._p3=this._p1+this._p2;this._calcEnd=-!0===c},!0),M=G.prototype=new l;M.constructor=G;M.getRatio=function(a){var b=a+(0.5-a)*this._p;return a<this._p1?this._calcEnd?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b};G.ease=new G(0.7,0.7);M.config=G.config=function(a,b,c){return new G(a,b,c)};var x=r("easing.SteppedEase",function(a){a=a||1;this._p1=1/a;this._p2=a+1},!0),M=x.prototype=new l;M.constructor=x;M.getRatio=function(a){0>-a?a=0:1<=a&&(a=0.999999999);return(this._p2*a>>0)*this._p1};M.config=x.config=function(a){return new x(a)};r("easing.Bounce",{easeOut:new s,easeIn:new c,easeInOut:new a},!0);r("easing.Circ",{easeOut:new j,easeIn:new d,easeInOut:new z},!0);r("easing.Elastic",{easeOut:new Z,easeIn:new R,easeInOut:new u},!0);r("easing.Expo",{easeOut:new w,easeIn:new E,easeInOut:new t},!0);r("easing.Sine",{easeOut:new q,easeIn:new U,easeInOut:new f},!0);return{easeOut:new k,easeIn:new b,easeInOut:new p}},!0)});-(function(l){var r=function(a){a=a.split(".");var b=l,c;for(c=0;c<a.length;c++)b[a[c]]=b=b[a[c]]||{};return b},f=r("com.greensock"),p,k,b,s,c,a={},j=function(e,b,c,d){this.sc=a[e]?a[e].sc:[];a[e]=this;this.gsClass=null;this.def=c;var f=b||[],g=[];this.check=function(b){for(var n=f.length,h=0,k;-1<--n;)(k=a[f[n]]||new j(f[n])).gsClass?g[n]=k.gsClass:(h++,b&&k.sc.push(this));if(0===h&&c){b=("com.greensock."+e).split(".");var n=b.pop(),p=r(b.join("."))[n]=this.gsClass=c.apply(c,g);d&&((l.GreenSockGlobals||-l)[n]=p,"function"===typeof define&&define.amd?define((l.GreenSockAMDPath?l.GreenSockAMDPath+"/":"")+e.split(".").join("/"),[],function(){return p}):"undefined"!==typeof module&&module.exports&&(module.exports=p));for(n=0;n<this.sc.length;n++)this.sc[n].check(!1)}};this.check(!0)},d=f._class=function(a,b,c){b=b||function(){};new j(a,[],function(){return b},c);return b};l._gsDefine=function(a,b,c,d){return new j(a,b,c,d)};var z=[0,0,1,1],g=[],u=d("easing.Ease",function(a,b,c,d){this._func=a;this._type=-c||0;this._power=d||0;this._params=b?z.concat(b):z},!0);b=u.prototype;b._calcEnd=!1;b.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:0.5>a?2*a:2*(1-a);1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d);return 1===b?1-d:2===b?d:0.5>a?d/2:1-d/2};p=["Linear","Quad","Cubic","Quart","Quint"];for(k=p.length;-1<--k;)b=d("easing."+p[k],null,!0),s=d("easing.Power"+k,null,!0),b.easeOut=s.easeOut=new u(null,+b,e,d,m)},!1,!1,ia);L("backgroundSize","0 0",null,!1,!1,ia);L("perspective","0px",null,!0);L("perspectiveOrigin","50% 50%",null,!0);L("transformStyle","preserve-3d",null,!0);L("backfaceVisibility","visible",null,!0);L("margin",null,C("marginTop,marginRight,marginBottom,marginLeft"));L("padding",null,C("paddingTop,paddingRight,paddingBottom,paddingLeft"));L("clip","rect(0px,0px,0px,0px)");L("textShadow","0px 0px 0px #999",null,!1,!0);L("autoRound",null,function(a,e,b,c,d){return d});L("border","0px solid #000",+function(a,e,b,c,d,m){return this.parseComplex(a.style,this.format(N(a,"borderTopWidth",k,!1,"0px")+" "+N(a,"borderTopStyle",k,!1,"solid")+" "+N(a,"borderTopColor",k,!1,"#000")),this.format(e),d,m)},!1,!0,function(a){var e=a.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(a.match(X)||["#000"])[0]});var ya=function(a){var e=this.t;a=this.s+this.c*a;var b;100===a&&(e.removeAttribute("filter"),b=!N(this.data,"filter"));b||(this.xn1&&(e.filter=e.filter||"alpha(opacity=100)"),e.filter=-1===e.filter.indexOf("opacity")?+e.filter+(" alpha(opacity="+(a>>0)+")"):e.filter.replace(u,"opacity="+(a>>0)))};L("opacity,alpha,autoAlpha","1",function(a,e,b,c,d,m){var h=parseFloat(N(a,"opacity",k,!1,"1"));e=parseFloat(e);var n=a.style,f;"autoAlpha"===b&&(f=N(a,"visibility",k),1===h&&"hidden"===f&&(h=0),d=new O(n,"visibility",0,0,d,-1,null,!1,0,0!==h?"visible":"hidden",0===e?"hidden":"visible"),d.xs0="visible",c._overwriteProps.push(d.n));F?d=new O(n,"opacity",h,e-h,d):(d=new O(n,"opacity",100*h,100*(e-h),d),d.xn1="autoAlpha"===+b?1:0,n.zoom=1,d.type=2,d.b="alpha(opacity="+d.s+")",d.e="alpha(opacity="+(d.s+d.c)+")",d.data=a,d.plugin=m,d.setRatio=ya);return d});var za=function(a){if(1===a||0===a){this.t.className=1===a?this.e:this.b;a=this.data;for(var e=this.t.style,b=e.removeProperty?"removeProperty":"removeAttribute";a;){if(a.v)e[a.p]=a.v;else e[b](a.p.replace(R,"-$1").toLowerCase());a=a._next}}else this.t.className!==this.b&&(this.t.className=this.b)};L("className",null,function(a,e,b,c,d,m,h){var n=a.className,f=a.style.cssText;+d=c._classNamePT=new O(a,b,0,0,d,2);d.setRatio=za;d.b=n;d.e="="!==e.charAt(1)?e:"+"===e.charAt(0)?n+" "+e.substr(2):n.split(e.substr(2)).join("");c._tween._duration&&(e=ea(a,k,!0),a.className=d.e,h=ma(a,e,ea(a),h),a.className=n,d.data=h.firstMPT,a.style.cssText=f,d=d.xfirst=c.parse(a,h.difs,d,m));return d});c=["bezier","throwProps","physicsProps","physics2D"];for(P=c.length;P--;)A(c[P]);c=r.prototype;c._firstPT=null;c._onInitTween=function(a,c,d){if(!a.nodeType)return!1;this._target=a;this._tween=+d;this._vars=c;y=c.autoRound;f=!1;p=c.suffixMap||r.suffixMap;k=ca(a,"");b=this._overwriteProps;d=a.style;var h,n,g,j;if(V&&""===d.zIndex&&(h=N(a,"zIndex",k),"auto"===h||""===h))d.zIndex=0;"string"===typeof c&&(n=d.cssText,h=ea(a,k),d.cssText=n+";"+c,h=ma(a,h,ea(a)).difs,!F&&Z.test(c)&&(h.opacity=parseFloat(RegExp.$1)),c=h,d.cssText=n);this._firstPT=c=this.parse(a,c,null);if(this._transformType){h=3===this._transformType;if(Q){if(e){V=!0;if(""===d.zIndex&&(j=N(a,"zIndex",k),"auto"===j||""===j))d.zIndex=+0;m&&(d.WebkitBackfaceVisibility=this._vars.WebkitBackfaceVisibility||(h?"visible":"hidden"))}}else d.zoom=1;for(d=c;d&&d._next;)d=d._next;j=new O(a,"transform",0,0,null,2);this._linkCSSP(j,null,d);j.setRatio=h&&Y?wa:Q?xa:va;j.data=this._transform||da(a,k,!0);b.pop()}if(f){for(;c;){a=c._next;for(d=n;d&&d.pr>c.pr;)d=d._next;(c._prev=d?d._prev:g)?c._prev._next=c:n=c;(c._next=d)?d._prev=c:g=c;c=a}this._firstPT=n}return!0};c.parse=function(a,e,b,c){var d=a.style,m,h,n,f,g,j,l,q;for(m in e){g=e[m];if(h=+s[m])b=h.parse(a,g,m,this,b,c,e);else if(h=N(a,m,k)+"",l="string"===typeof g,"color"===m||"fill"===m||"stroke"===m||-1!==m.indexOf("Color")||l&&!g.indexOf("rgb"))l||(g=ka(g),g=(3<g.length?"rgba(":"rgb(")+g.join(",")+")"),b=fa(d,m,h,g,!0,"transparent",b,0,c);else if(l&&(-1!==g.indexOf(" ")||-1!==g.indexOf(",")))b=fa(d,m,h,g,!0,null,b,0,c);else{n=parseFloat(h);j=h.substr((n+"").length);if(""===h||"auto"===h)if("width"===m||"height"===m){n=a;q=m;f=k;j=parseFloat("width"===q?n.offsetWidth:n.offsetHeight);+q=sa[q];var H=q.length;for(f=f||ca(n,null);-1<--H;)j-=parseFloat(N(n,"padding"+q[H],f,!0))||0,j-=parseFloat(N(n,"border"+q[H]+"Width",f,!0))||0;n=j;j="px"}else n="opacity"!==m?0:1,j="";(q=l&&"="===g.charAt(1))?(f=parseInt(g.charAt(0)+"1",10),g=g.substr(2),f*=parseFloat(g),l=g.substr((f+"").length-(0>f?1:0))||""):(f=parseFloat(g),l=l?g.substr((f+"").length)||"":"");""===l&&(l=p[m]||j);g=f||0===f?(q?f+n:f)+l:e[m];if(j!==l&&""!==l&&(f||0===f))if(n||0===n)if(n=T(a,m,n,j),"%"===l?(n/=T(a,m,100,"%")/100,+100<n&&(n=100)):"em"===l?n/=T(a,m,1,"em"):(f=T(a,m,f,l),l="px"),q&&(f||0===f))g=f+n+l;q&&(f+=n);(n||0===n)&&(f||0===f)?(b=new O(d,m,n,f-n,b,0,"css_"+m,!1!==y&&("px"===l||"zIndex"===m),0,h,g),b.xs0=l):(b=new O(d,m,f||n||0,0,b,-1,"css_"+m,!1,0,h,g),b.xs0="display"===m&&"none"===g?h:g)}c&&(b&&!b.plugin)&&(b.plugin=c)}return b};c.setRatio=function(a){var e=this._firstPT,b,c;if(1===a&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;e;)2!==e.type?e.t[e.p]=e.e:e.setRatio(a),e=e._next;+else if(a||!(this._tween._time===this._tween._duration||0===this._tween._time)||-1E-6===this._tween._rawPrevTime)for(;e;){b=e.c*a+e.s;e.r?b=0<b?b+0.5>>0:b-0.5>>0:1E-6>b&&-1E-6<b&&(b=0);if(e.type)if(1===e.type)if(c=e.l,2===c)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===c)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===c)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===c)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{b=e.xs0+b+e.xs1;for(c=+1;c<e.l;c++)b+=e["xn"+c]+e["xs"+(c+1)];e.t[e.p]=b}else-1===e.type?e.t[e.p]=e.xs0:e.setRatio&&e.setRatio(a);else e.t[e.p]=b+e.xs0;e=e._next}else for(;e;)2!==e.type?e.t[e.p]=e.b:e.setRatio(a),e=e._next};c._enableTransforms=function(e){this._transformType=e||3===this._transformType?3:2};c._linkCSSP=function(e,a,b,c){e&&(a&&(a._prev=e),e._next&&(e._next._prev=e._prev),b?b._next=e:!c&&null===this._firstPT&&(this._firstPT=e),e._prev?e._prev._next=e._next:this._firstPT===e&&(this._firstPT=e._next),e._next=+a,e._prev=b);return e};c._kill=function(e){var a=e,b=!1,c,d;if(e.css_autoAlpha||e.css_alpha){a={};for(d in e)a[d]=e[d];a.css_opacity=1;a.css_autoAlpha&&(a.css_visibility=1)}if(e.css_className&&(c=this._classNamePT))(e=c.xfirst)&&e._prev?this._linkCSSP(e._prev,c._next,e._prev._prev):e===this._firstPT&&(this._firstPT=null),c._next&&this._linkCSSP(c._next,c._next._next,e._prev),this._target._gsOverwrittenClassNamePT=this._linkCSSP(c,this._target._gsOverwrittenClassNamePT),this._classNamePT=null,b=!0;+return l.prototype._kill.call(this,a)||b};l.activate([r]);return r},!0);_gsDefine("plugins.RoundPropsPlugin",["plugins.TweenPlugin"],function(l){var r=function(){l.call(this,"roundProps",-1);this._overwriteProps.length=0},f=r.prototype=new l("roundProps",-1);f.constructor=r;r.API=2;f._onInitTween=function(f,k,b){this._tween=b;return!0};f._onInitAllProps=function(){for(var f=this._tween,k=f.vars.roundProps instanceof Array?f.vars.roundProps:f.vars.roundProps.split(","),b=k.length,l={},c=f._propLookup.roundProps,+a,j,d;-1<--b;)l[k[b]]=1;for(b=k.length;-1<--b;){a=k[b];for(j=f._firstPT;j;)d=j._next,j.pg?j.t._roundProps(l,!0):j.n===a&&(this._add(j.t,a,j.s,j.c),d&&(d._prev=j._prev),j._prev?j._prev._next=d:f._firstPT===j&&(f._firstPT=d),j._next=j._prev=null,f._propLookup[a]=c),j=d}return!1};f._add=function(f,k,b,l){this._addTween(f,k,b,b+l,k,!0);this._overwriteProps.push(k)};l.activate([r]);return r},!0);_gsDefine("easing.Back",["easing.Ease"],function(l){var r=window.com.greensock._class,f=function(a,b){var c=+r("easing."+a,function(){},!0),d=c.prototype=new l;d.constructor=c;d.getRatio=b;return c},p=function(a,b){var c=r("easing."+a,function(a){this._p1=a||0===a?a:1.70158;this._p2=1.525*this._p1},!0),d=c.prototype=new l;d.constructor=c;d.getRatio=b;d.config=function(a){return new c(a)};return c},k=p("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),b=p("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),p=p("BackInOut",function(a){return 1>(a*=2)?0.5*a*a*((this._p2+1)*a-this._p2):+0.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)}),s=f("BounceOut",function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+0.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375}),c=f("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:a<2/2.75?1-(7.5625*(a-=1.5/2.75)*a+0.75):a<2.5/2.75?1-(7.5625*(a-=2.25/2.75)*a+0.9375):1-(7.5625*(a-=2.625/2.75)*a+0.984375)}),a=f("BounceInOut",function(a){var b=0.5>a;a=b?1-2*a:2*a-1;a=a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=+1.5/2.75)*a+0.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375;return b?0.5*(1-a):0.5*a+0.5}),j=f("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),d=f("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),z=f("CircInOut",function(a){return 1>(a*=2)?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1)}),g=2*Math.PI,u=function(a,b,c){var d=r("easing."+a,function(a,b){this._p1=a||1;this._p2=b||c;this._p3=this._p2/g*(Math.asin(1/this._p1)||0)},!0);a=d.prototype=new l;+a.constructor=d;a.getRatio=b;a.config=function(a,b){return new d(a,b)};return d},Z=u("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*g/this._p2)+1},0.3),R=u("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*g/this._p2))},0.3),u=u("ElasticInOut",function(a){return 1>(a*=2)?-0.5*this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*g/this._p2):0.5*this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*g/this._p2)+1},0.45),w=f("ExpoOut",+function(a){return 1-Math.pow(2,-10*a)}),E=f("ExpoIn",function(a){return Math.pow(2,10*(a-1))-0.001}),t=f("ExpoInOut",function(a){return 1>(a*=2)?0.5*Math.pow(2,10*(a-1)):0.5*(2-Math.pow(2,-10*(a-1)))}),D=Math.PI/2,q=f("SineOut",function(a){return Math.sin(a*D)}),U=f("SineIn",function(a){return-Math.cos(a*D)+1}),f=f("SineInOut",function(a){return-0.5*(Math.cos(Math.PI*a)-1)}),G=r("easing.SlowMo",function(a,b,c){null==a?a=0.7:1<a&&(a=1);this._p=1!=a?b||0===b?b:0.7:0;this._p1=(1-a)/2;this._p2=a;this._p3=+this._p1+this._p2;this._calcEnd=!0===c},!0),M=G.prototype=new l;M.constructor=G;M.getRatio=function(a){var b=a+(0.5-a)*this._p;return a<this._p1?this._calcEnd?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b};G.ease=new G(0.7,0.7);M.config=G.config=function(a,b,c){return new G(a,b,c)};var x=r("easing.SteppedEase",function(a){a=a||1;this._p1=1/a;this._p2=a+1},!0),M=x.prototype=new l;M.constructor=+x;M.getRatio=function(a){0>a?a=0:1<=a&&(a=0.999999999);return(this._p2*a>>0)*this._p1};M.config=x.config=function(a){return new x(a)};r("easing.Bounce",{easeOut:new s,easeIn:new c,easeInOut:new a},!0);r("easing.Circ",{easeOut:new j,easeIn:new d,easeInOut:new z},!0);r("easing.Elastic",{easeOut:new Z,easeIn:new R,easeInOut:new u},!0);r("easing.Expo",{easeOut:new w,easeIn:new E,easeInOut:new t},!0);r("easing.Sine",{easeOut:new q,easeIn:new U,easeInOut:new f},!0);return{easeOut:new k,easeIn:new b,easeInOut:new p}},+!0)});+(function(l){var r=function(a){a=a.split(".");var b=l,c;for(c=0;c<a.length;c++)b[a[c]]=b=b[a[c]]||{};return b},f=r("com.greensock"),p,k,b,s,c,a={},j=function(e,b,c,d){this.sc=a[e]?a[e].sc:[];a[e]=this;this.gsClass=null;this.def=c;var f=b||[],g=[];this.check=function(b){for(var n=f.length,h=0,k;-1<--n;)(k=a[f[n]]||new j(f[n])).gsClass?g[n]=k.gsClass:(h++,b&&k.sc.push(this));if(0===h&&c){b=("com.greensock."+e).split(".");var n=b.pop(),p=r(b.join("."))[n]=this.gsClass=c.apply(c,g);d&&((l.GreenSockGlobals||l)[n]=+p,"function"===typeof define&&define.amd?define((l.GreenSockAMDPath?l.GreenSockAMDPath+"/":"")+e.split(".").join("/"),[],function(){return p}):"undefined"!==typeof module&&module.exports&&(module.exports=p));for(n=0;n<this.sc.length;n++)this.sc[n].check(!1)}};this.check(!0)},d=f._class=function(a,b,c){b=b||function(){};new j(a,[],function(){return b},c);return b};l._gsDefine=function(a,b,c,d){return new j(a,b,c,d)};var z=[0,0,1,1],g=[],u=d("easing.Ease",function(a,b,c,d){this._func=a;this._type=c||+0;this._power=d||0;this._params=b?z.concat(b):z},!0);b=u.prototype;b._calcEnd=!1;b.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:0.5>a?2*a:2*(1-a);1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d);return 1===b?1-d:2===b?d:0.5>a?d/2:1-d/2};p=["Linear","Quad","Cubic","Quart","Quint"];for(k=p.length;-1<--k;)b=d("easing."+p[k],null,!0),s=d("easing.Power"+k,null,!0),b.easeOut=s.easeOut=new u(null,null,1,k),b.easeIn=s.easeIn=new u(null,null,2,k),b.easeInOut=s.easeInOut=new u(null,null,3,k);d("easing.Strong",f.easing.Power4,!0);f.easing.Linear.easeNone=f.easing.Linear.easeIn;var Z=d("events.EventDispatcher",function(a){this._listeners={};this._eventTarget=a||this});b=Z.prototype;b.addEventListener=function(a,b,c,d,f){f=f||0;var g=this._listeners[a],j=0,h;null==g&&(this._listeners[a]=g=[]);for(h=g.length;-1<--h;)a=g[h],a.c===b?g.splice(h,1):0===j&&a.pr<f&&(j=h+1);g.splice(j,0,{c:b,s:c,up:d,pr:f})};b.removeEventListener=function(a,b){var c=this._listeners[a],d;if(c)for(d=c.length;-1<--d;)if(c[d].c===b){c.splice(d,1);break}};b.dispatchEvent=function(a){var b=this._listeners[a];if(b)for(var c=b.length,d=this._eventTarget,f;-1<--c;)f=b[c],f.up?f.c.call(f.s||d,{type:a,target:d}):f.c.call(f.s||d)};var R=l.requestAnimationFrame,w=l.cancelAnimationFrame,E=Date.now||function(){return(new Date).getTime()};p=["ms","moz","webkit","o"];for(k=p.length;-1<--k&&!R;)R=l[p[k]+"RequestAnimationFrame"],w=l[p[k]+"CancelAnimationFrame"]||l[p[k]+"CancelRequestAnimationFrame"];d("Ticker",function(a,b){var c=this,d=E(),f=!1!==b&&R,g,j,h,k,p,q=function(){null!=h&&(!f||!w?l.clearTimeout(h):w(h),h=null)},r=function(a){c.time=(E()-d)/1E3;if(!g||c.time>=p||!0===a)c.frame++,p=c.time>p?c.time+k-(c.time-p):c.time+k-0.001,p<c.time+0.001&&(p=c.time+0.001),c.dispatchEvent("tick");!0!==a&&(h=j(r))};Z.call(c);this.time=this.frame=0;this.tick=function(){r(!0)};this.fps=function(a){if(!arguments.length)return g;g=a;k=1/(g||60);p=this.time+k;j=0===g?function(){}:!f||!R?function(a){return l.setTimeout(a,1E3*(p-c.time)+1>>0||1)}:R;q();h=j(r)};this.useRAF=function(a){if(!arguments.length)return f;q();f=a;c.fps(g)};c.fps(a);l.setTimeout(function(){f&&!h&&c.useRAF(!1)},1E3)});b=f.Ticker.prototype=new f.events.EventDispatcher;b.constructor=f.Ticker;var t=d("core.Animation",function(a,b){this.vars=b||{};this._duration=this._totalDuration=a||0;this._delay=Number(this.vars.delay)||0;this._timeScale=1;this._active=!0===this.vars.immediateRender;this.data=this.vars.data;this._reversed=!0===this.vars.reversed;if(v){c||(D.tick(),c=!0);var d=this.vars.useFrames?B:v;d.insert(this,d._time);this.vars.paused&&this.paused(!0)}}),D=t.ticker=new f.Ticker;b=t.prototype;b._dirty=b._gc=b._initted=b._paused=!1;b._totalTime=b._time=0;b._rawPrevTime=-1;b._next=b._last=b._onUpdate=b._timeline=b.timeline=null;b._paused=!1;b.play=function(a,b){arguments.length&&this.seek(a,b);this.reversed(!1);return this.paused(!1)};b.pause=function(a,b){arguments.length&&-this.seek(a,b);return this.paused(!0)};b.resume=function(a,b){arguments.length&&this.seek(a,b);return this.paused(!1)};b.seek=function(a,b){return this.totalTime(Number(a),!1!=b)};b.restart=function(a,b){this.reversed(!1);this.paused(!1);return this.totalTime(a?-this._delay:0,!1!==b)};b.reverse=function(a,b){arguments.length&&this.seek(a||this.totalDuration(),b);this.reversed(!0);return this.paused(!1)};b.render=function(){};b.invalidate=function(){return this};b._enabled=function(a,b){this._gc=!a;-this._active=a&&!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration;!0!==b&&(a&&null==this.timeline?this._timeline.insert(this,this._startTime-this._delay):!a&&null!=this.timeline&&this._timeline._remove(this,!0));return!1};b._kill=function(){return this._enabled(!1,!1)};b.kill=function(a,b){this._kill(a,b);return this};b._uncache=function(a){for(a=a?this:this.timeline;a;)a._dirty=!0,a=a.timeline;return this};b.eventCallback=function(a,b,c,d){if(null==a)return null;if("on"===a.substr(0,-2)){if(1===arguments.length)return this.vars[a];if(null==b)delete this.vars[a];else if(this.vars[a]=b,this.vars[a+"Params"]=c,this.vars[a+"Scope"]=d,c)for(var f=c.length;-1<--f;)"{self}"===c[f]&&(c=this.vars[a+"Params"]=c.concat(),c[f]=this);"onUpdate"===a&&(this._onUpdate=b)}return this};b.delay=function(a){if(!arguments.length)return this._delay;this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay);this._delay=a;return this};b.duration=function(a){if(!arguments.length)return this._dirty=+this.seek(a,b);return this.paused(!0)};b.resume=function(a,b){arguments.length&&this.seek(a,b);return this.paused(!1)};b.seek=function(a,b){return this.totalTime(Number(a),!1!==b)};b.restart=function(a,b){this.reversed(!1);this.paused(!1);return this.totalTime(a?-this._delay:0,!1!==b)};b.reverse=function(a,b){arguments.length&&this.seek(a||this.totalDuration(),b);this.reversed(!0);return this.paused(!1)};b.render=function(){};b.invalidate=function(){return this};b._enabled=function(a,b){this._gc=+!a;this._active=a&&!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration;!0!==b&&(a&&null==this.timeline?this._timeline.insert(this,this._startTime-this._delay):!a&&null!=this.timeline&&this._timeline._remove(this,!0));return!1};b._kill=function(){return this._enabled(!1,!1)};b.kill=function(a,b){this._kill(a,b);return this};b._uncache=function(a){for(a=a?this:this.timeline;a;)a._dirty=!0,a=a.timeline;return this};b.eventCallback=function(a,b,c,d){if(null==a)return null;if("on"===+a.substr(0,2)){if(1===arguments.length)return this.vars[a];if(null==b)delete this.vars[a];else if(this.vars[a]=b,this.vars[a+"Params"]=c,this.vars[a+"Scope"]=d,c)for(var f=c.length;-1<--f;)"{self}"===c[f]&&(c=this.vars[a+"Params"]=c.concat(),c[f]=this);"onUpdate"===a&&(this._onUpdate=b)}return this};b.delay=function(a){if(!arguments.length)return this._delay;this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay);this._delay=a;return this};b.duration=function(a){if(!arguments.length)return this._dirty=!1,this._duration;this._duration=this._totalDuration=a;this._uncache(!0);this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==a&&this.totalTime(this._totalTime*(a/this._duration),!0);return this};b.totalDuration=function(a){this._dirty=!1;return!arguments.length?this._totalDuration:this.duration(a)};b.time=function(a,b){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();a>this._duration&&(a=this._duration);return this.totalTime(a,b)};b.totalTime=function(a,b){if(!arguments.length)return this._totalTime;if(this._timeline){0>a&&(a+=this.totalDuration());if(this._timeline.smoothChildTiming&&(this._dirty&&this.totalDuration(),a>this._totalDuration&&(a=this._totalDuration),this._startTime=(this._paused?this._pauseTime:this._timeline._time)-(!this._reversed?a:this._totalDuration-a)/this._timeScale,this._timeline._dirty||this._uncache(!1),!this._timeline._active))for(var c=this._timeline;c._timeline;)c.totalTime(c._totalTime,!0),c=c._timeline;this._gc&&this._enabled(!0,-!1);this._totalTime!==a&&this.render(a,b,!1)}return this};b.startTime=function(a){if(!arguments.length)return this._startTime;a!=this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.insert(this,a-this._delay));return this};b.timeScale=function(a){if(!arguments.length)return this._timeScale;a=a||1E-6;if(this._timeline&&this._timeline.smoothChildTiming){var b=this._pauseTime||0===this._pauseTime?this._pauseTime:this._timeline._totalTime;this._startTime=b-(b-+!1);this._totalTime!==a&&this.render(a,b,!1)}return this};b.startTime=function(a){if(!arguments.length)return this._startTime;a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.insert(this,a-this._delay));return this};b.timeScale=function(a){if(!arguments.length)return this._timeScale;a=a||1E-6;if(this._timeline&&this._timeline.smoothChildTiming){var b=this._pauseTime||0===this._pauseTime?this._pauseTime:this._timeline._totalTime;this._startTime=b-(b-this._startTime)*this._timeScale/a}this._timeScale=a;return this._uncache(!1)};b.reversed=function(a){if(!arguments.length)return this._reversed;a!==this._reversed&&(this._reversed=a,this.totalTime(this._totalTime,!0));return this};b.paused=function(a){if(!arguments.length)return this._paused;a!==this._paused&&this._timeline&&(!a&&this._timeline.smoothChildTiming&&(this._startTime+=this._timeline.rawTime()-this._pauseTime,this._uncache(!1)),this._pauseTime=a?this._timeline.rawTime():null,this._paused=a,this._active=!this._paused&&0<this._totalTime&&this._totalTime<this._totalDuration);this._gc&&(a||this._enabled(!0,!1));return this};f=d("core.SimpleTimeline",function(a){t.call(this,0,a);this.autoRemoveChildren=this.smoothChildTiming=!0});b=f.prototype=new t;b.constructor=f;b.kill()._gc=!1;b._first=b._last=null;b._sortChildren=!1;b.insert=function(a,b){a._startTime=Number(b||0)+a._delay;a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale);a.timeline&&a.timeline._remove(a,!0);a.timeline=a._timeline=this;a._gc&&a._enabled(!0,!0);var c=this._last;if(this._sortChildren)for(var d=a._startTime;c&&c._startTime>d;)c=c._prev;c?(a._next=c._next,c._next=a):(a._next=this._first,this._first=a);a._next?a._next._prev=a:this._last=a;a._prev=c;this._timeline&&this._uncache(!0);return this};b._remove=function(a,b){a.timeline===this&&(b||a._enabled(!1,!0),a.timeline=null,a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),this._timeline&&this._uncache(!0));return this};b.render=function(a,b){var c=this._first,d;for(this._totalTime=this._time=this._rawPrevTime=a;c;){d=c._next;if(c._active||a>=c._startTime&&!c._paused)c._reversed?c.render((!c._dirty?c._totalDuration:c.totalDuration())-(a-c._startTime)*c._timeScale,b,!1):c.render((a-c._startTime)*c._timeScale,b,!1);c=d}};b.rawTime=function(){return this._totalTime};var q=d("TweenLite",function(a,b,c){t.call(this,b,c);if(null==a)throw"Cannot tween an undefined reference.";this.target=a;this._overwrite=null==this.vars.overwrite?h[q.defaultOverwrite]:"number"===typeof this.vars.overwrite?this.vars.overwrite>>0:h[this.vars.overwrite];if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){this._targets=a.slice(0);this._propLookup=[];this._siblings=[];for(a=0;a<this._targets.length;a++)c=this._targets[a],c.jquery?(this._targets.splice(a--,1),this._targets=this._targets.concat(c.constructor.makeArray(c))):(this._siblings[a]=-A(c,this,!1),1===this._overwrite&&1<this._siblings[a].length&&C(c,this,null,1,this._siblings[a]))}else this._propLookup={},this._siblings=A(a,this,!1),1===this._overwrite&&1<this._siblings.length&&C(a,this,null,1,this._siblings);(this.vars.immediateRender||0===b&&0===this._delay&&!1!==this.vars.immediateRender)&&this.render(-this._delay,!1,!0)},!0);b=q.prototype=new t;b.constructor=q;b.kill()._gc=!1;b.ratio=0;b._firstPT=b._targets=b._overwrittenProps=null;b._notifyPluginsOfEnabled=!1;q.version=1.651;+A(c,this,!1),1===this._overwrite&&1<this._siblings[a].length&&C(c,this,null,1,this._siblings[a]))}else this._propLookup={},this._siblings=A(a,this,!1),1===this._overwrite&&1<this._siblings.length&&C(a,this,null,1,this._siblings);(this.vars.immediateRender||0===b&&0===this._delay&&!1!==this.vars.immediateRender)&&this.render(-this._delay,!1,!0)},!0);b=q.prototype=new t;b.constructor=q;b.kill()._gc=!1;b.ratio=0;b._firstPT=b._targets=b._overwrittenProps=null;b._notifyPluginsOfEnabled=!1;q.version=1.663;q.defaultEase=b._ease=new u(null,null,1,1);q.defaultOverwrite="auto";q.ticker=D;var U=q._plugins={},G=q._tweenLookup={},M=0,x={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,orientToBezier:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1},h={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},B=t._rootFramesTimeline=new f,v=t._rootTimeline=new f;v._startTime=D.time;B._startTime=D.frame;v._active=B._active=!0;t._updateRoot=function(){v.render((D.time-v._startTime)*v._timeScale,!1,!1);B.render((D.frame-B._startTime)*B._timeScale,!1,!1);if(!(D.frame%120)){var a,b,c;for(c in G){b=G[c].tweens;for(a=b.length;-1<--a;)b[a]._gc&&b.splice(a,1);0===b.length&&delete G[c]}}};D.addEventListener("tick",t._updateRoot);var A=function(a,b,c){var d=a._gsTweenID,f;if(!G[d||(a._gsTweenID=d="t"+M++)])G[d]={target:a,tweens:[]};if(b&&(a=G[d].tweens,a[f=a.length]=b,c))for(;-1<--f;)a[f]===b&&a.splice(f,1);return G[d].tweens},C=function(a,b,c,d,f){var g,j,h;if(1===d||4<=d){a=f.length;for(g=0;g<a;g++)if((h=f[g])!==b)h._gc||h._enabled(!1,!1)&&(j=!0);else if(5===d)break;return j}var k=b._startTime+1E-10,l=[],p=0,q=0===b._duration,r;for(g=f.length;-1<--g;)if(!((h=f[g])===b||h._gc||h._paused))h._timeline!==@@ -161,15 +162,15 @@ g-b?1E-10:(g+=a.totalDuration()/a._timeScale/f)>b?0:g-b-1E-10};b._init=function(this._ease._power;this._firstPT=null;if(this._targets)for(a=this._targets.length;-1<--a;){if(this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],this._overwrittenProps?this._overwrittenProps[a]:null))b=!0}else b=this._initProps(this.target,this._propLookup,this._siblings,this._overwrittenProps);b&&q._onPluginEvent("_onInitAllProps",this);this._overwrittenProps&&null==this._firstPT&&"function"!==typeof this.target&&this._enabled(!1,!1);if(this.vars.runBackwards)for(a=this._firstPT;a;)a.s+=a.c,a.c=-a.c,a=a._next;this._onUpdate=this.vars.onUpdate;this._initted=!0};b._initProps=function(a,b,c,d){var f,g,j,h,k,l;if(null==a)return!1;for(f in this.vars){if(x[f]){if("onStartParams"===f||"onUpdateParams"===f||"onCompleteParams"===f||"onReverseCompleteParams"===f||"onRepeatParams"===f)if(k=this.vars[f])for(g=k.length;-1<--g;)"{self}"===k[g]&&(k=this.vars[f]=k.concat(),k[g]=this)}else if(U[f]&&(h=new U[f])._onInitTween(a,this.vars[f],this)){this._firstPT=l={_next:this._firstPT,t:h,p:"setRatio",s:0,c:1,f:!0,n:f,pg:!0,pr:h._priority};for(g=h._overwriteProps.length;-1<--g;)b[h._overwriteProps[g]]=this._firstPT;if(h._priority||h._onInitAllProps)j=!0;if(h._onDisable||h._onEnable)this._notifyPluginsOfEnabled=!0}else this._firstPT=b[f]=l={_next:this._firstPT,t:a,p:f,f:"function"===typeof a[f],n:f,pg:!1,pr:0},l.s=!l.f?parseFloat(a[f]):a[f.indexOf("set")||"function"!==typeof a["get"+f.substr(3)]?f:"get"+f.substr(3)](),g=this.vars[f],l.c="number"===typeof g?g-l.s:"string"===typeof g&&"="===g.charAt(1)?-parseInt(g.charAt(0)+"1")*Number(g.substr(2)):Number(g)||0;l&&l._next&&(l._next._prev=l)}return d&&this._kill(d,a)?this._initProps(a,b,c,d):1<this._overwrite&&this._firstPT&&1<c.length&&C(a,this,b,this._overwrite,c)?(this._kill(b,a),this._initProps(a,b,c,d)):j};b.render=function(a,b,c){var d=this._time,f,j;if(a>=this._duration){if(this._totalTime=this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(f=!0,j="onComplete"),0===this._duration){if(0===a||0>-this._rawPrevTime)this._rawPrevTime!==a&&(c=!0);this._rawPrevTime=a}}else if(0>=a){this._totalTime=this._time=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==d||0===this._duration&&0<this._rawPrevTime)j="onReverseComplete",f=this._reversed;0>a?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(c=!0),this._rawPrevTime=a)):this._initted||(c=!0)}else if(this._totalTime=this._time=a,this._easeType){var h=a/this._duration,k=this._easeType,l=this._easePower;if(1===k||3===k&&0.5<=-h)h=1-h;3===k&&(h*=2);1===l?h*=h:2===l?h*=h*h:3===l?h*=h*h*h:4===l&&(h*=h*h*h*h);this.ratio=1===k?1-h:2===k?h:0.5>a/this._duration?h/2:1-h/2}else this.ratio=this._ease.getRatio(a/this._duration);if(this._time!==d||c){this._initted||(this._init(),!f&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration)));!this._active&&!this._paused&&(this._active=!0);if(0===d&&this.vars.onStart&&(0!==this._time||0===this._duration))b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||+parseInt(g.charAt(0)+"1",10)*Number(g.substr(2)):Number(g)||0;l&&l._next&&(l._next._prev=l)}return d&&this._kill(d,a)?this._initProps(a,b,c,d):1<this._overwrite&&this._firstPT&&1<c.length&&C(a,this,b,this._overwrite,c)?(this._kill(b,a),this._initProps(a,b,c,d)):j};b.render=function(a,b,c){var d=this._time,f,j;if(a>=this._duration){if(this._totalTime=this._time=this._duration,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(f=!0,j="onComplete"),0===this._duration){if(0===a||+0>this._rawPrevTime)this._rawPrevTime!==a&&(c=!0);this._rawPrevTime=a}}else if(0>=a){this._totalTime=this._time=0;this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0;if(0!==d||0===this._duration&&0<this._rawPrevTime)j="onReverseComplete",f=this._reversed;0>a?(this._active=!1,0===this._duration&&(0<=this._rawPrevTime&&(c=!0),this._rawPrevTime=a)):this._initted||(c=!0)}else if(this._totalTime=this._time=a,this._easeType){var h=a/this._duration,k=this._easeType,l=this._easePower;if(1===k||3===k&&+0.5<=h)h=1-h;3===k&&(h*=2);1===l?h*=h:2===l?h*=h*h:3===l?h*=h*h*h:4===l&&(h*=h*h*h*h);this.ratio=1===k?1-h:2===k?h:0.5>a/this._duration?h/2:1-h/2}else this.ratio=this._ease.getRatio(a/this._duration);if(this._time!==d||c){this._initted||(this._init(),!f&&this._time&&(this.ratio=this._ease.getRatio(this._time/this._duration)));!this._active&&!this._paused&&(this._active=!0);if(0===d&&this.vars.onStart&&(0!==this._time||0===this._duration))b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||g);for(a=this._firstPT;a;){if(a.f)a.t[a.p](a.c*this.ratio+a.s);else a.t[a.p]=a.c*this.ratio+a.s;a=a._next}this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||g));j&&!this._gc&&(f&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),b||this.vars[j]&&this.vars[j].apply(this.vars[j+"Scope"]||this,this.vars[j+"Params"]||g))}};b._kill=function(a,b){"all"===a&&(a=null);if(null==a&&(null==b||b==this.target))return this._enabled(!1,!1);b=b||this._targets||this.target;var c,d,f,g,h,j,k;if((b instanceof Array||b.jquery)&&"object"===typeof b[0])for(c=b.length;-1<--c;)this._kill(a,b[c])&&(h=!0);else{if(this._targets)for(c=this._targets.length;-1<--c;){if(b===this._targets[c]){g=this._propLookup[c]||{};this._overwrittenProps=this._overwrittenProps||[];d=this._overwrittenProps[c]=a?this._overwrittenProps[c]||{}:"all";break}}else{if(b!==this.target)return!1;g=this._propLookup;d=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(g)for(f in j=a||g,k=a!=d&&"all"!=d&&a!=g&&(null==a||!0!=a._tempKill),j){if(c=g[f]){c.pg&&c.t._kill(j)&&(h=!0);if(!c.pg||0===c.t._overwriteProps.length)c._prev?c._prev._next=c._next:c===this._firstPT&&(this._firstPT=c._next),c._next&&(c._next._prev=c._prev),c._next=c._prev=null;delete g[f]}k&&(d[f]=1)}}return h};b.invalidate=function(){this._notifyPluginsOfEnabled&&q._onPluginEvent("_onDisable",this);this._onUpdate=this._overwrittenProps=this._firstPT=null;this._initted=this._active=this._notifyPluginsOfEnabled=-!1;this._propLookup=this._targets?{}:[];return this};b._enabled=function(a,b){if(a&&this._gc)if(this._targets)for(var c=this._targets.length;-1<--c;)this._siblings[c]=A(this._targets[c],this,!0);else this._siblings=A(this.target,this,!0);t.prototype._enabled.call(this,a,b);return this._notifyPluginsOfEnabled&&this._firstPT?q._onPluginEvent(a?"_onEnable":"_onDisable",this):!1};q.to=function(a,b,c){return new q(a,b,c)};q.from=function(a,b,c){c.runBackwards=!0;!1!=c.immediateRender&&(c.immediateRender=+!1;this._propLookup=this._targets?{}:[];return this};b._enabled=function(a,b){if(a&&this._gc)if(this._targets)for(var c=this._targets.length;-1<--c;)this._siblings[c]=A(this._targets[c],this,!0);else this._siblings=A(this.target,this,!0);t.prototype._enabled.call(this,a,b);return this._notifyPluginsOfEnabled&&this._firstPT?q._onPluginEvent(a?"_onEnable":"_onDisable",this):!1};q.to=function(a,b,c){return new q(a,b,c)};q.from=function(a,b,c){c.runBackwards=!0;!1!==c.immediateRender&&(c.immediateRender=!0);return new q(a,b,c)};q.fromTo=function(a,b,c,d){d.startAt=c;c.immediateRender&&(d.immediateRender=!0);return new q(a,b,d)};q.delayedCall=function(a,b,c,d,f){return new q(b,0,{delay:a,onComplete:b,onCompleteParams:c,onCompleteScope:d,onReverseComplete:b,onReverseCompleteParams:c,onReverseCompleteScope:d,immediateRender:!1,useFrames:f,overwrite:0})};q.set=function(a,b){return new q(a,0,b)};q.killTweensOf=q.killDelayedCallsTo=function(a,b){for(var c=q.getTweensOf(a),d=c.length;-1<--d;)c[d]._kill(b,a)};q.getTweensOf=function(a){if(null!=a){var b,c,d;if((a instanceof Array||a.jquery)&&"object"===typeof a[0]){b=a.length;for(c=[];-1<--b;)c=c.concat(q.getTweensOf(a[b]));for(b=c.length;-1<--b;){d=c[b];for(a=b;-1<--a;)d===c[a]&&c.splice(b,1)}}else{c=A(a).concat();for(b=c.length;-1<--b;)c[b]._gc&&c.splice(b,1)}return c}};var V=d("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(",");this._propName=this._overwriteProps[0];this._priority=b||0},!0);b=V.prototype;V.version=12;V.API=-2;b._firstPT=null;b._addTween=function(a,b,c,d,f,g){var h;if(null!=d&&(h="number"===typeof d||"="!==d.charAt(1)?Number(d)-c:parseInt(d.charAt(0)+"1")*Number(d.substr(2))))this._firstPT=a={_next:this._firstPT,t:a,p:b,s:c,c:h,f:"function"===typeof a[b],n:f||b,r:g},a._next&&(a._next._prev=a)};b.setRatio=function(a){for(var b=this._firstPT,c;b;){c=b.c*a+b.s;b.r&&(c=c+(0<c?0.5:-0.5)>>0);if(b.f)b.t[b.p](c);else b.t[b.p]=c;b=b._next}};b._kill=function(a){if(null!=a[this._propName])this._overwriteProps=[];-else for(var b=this._overwriteProps.length;-1<--b;)null!=a[this._overwriteProps[b]]&&this._overwriteProps.splice(b,1);for(b=this._firstPT;b;)null!=a[b.n]&&(b._next&&(b._next._prev=b._prev),b._prev?(b._prev._next=b._next,b._prev=null):this._firstPT===b&&(this._firstPT=b._next)),b=b._next;return!1};b._roundProps=function(a,b){for(var c=this._firstPT;c;){if(a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")])c.r=b;c=c._next}};q._onPluginEvent=function(a,b){var c=b._firstPT,d;if("_onInitAllProps"===+2;b._firstPT=null;b._addTween=function(a,b,c,d,f,g){var h;if(null!=d&&(h="number"===typeof d||"="!==d.charAt(1)?Number(d)-c:parseInt(d.charAt(0)+"1",10)*Number(d.substr(2))))this._firstPT=a={_next:this._firstPT,t:a,p:b,s:c,c:h,f:"function"===typeof a[b],n:f||b,r:g},a._next&&(a._next._prev=a)};b.setRatio=function(a){for(var b=this._firstPT,c;b;){c=b.c*a+b.s;b.r&&(c=c+(0<c?0.5:-0.5)>>0);if(b.f)b.t[b.p](c);else b.t[b.p]=c;b=b._next}};b._kill=function(a){if(null!=a[this._propName])this._overwriteProps=+[];else for(var b=this._overwriteProps.length;-1<--b;)null!=a[this._overwriteProps[b]]&&this._overwriteProps.splice(b,1);for(b=this._firstPT;b;)null!=a[b.n]&&(b._next&&(b._next._prev=b._prev),b._prev?(b._prev._next=b._next,b._prev=null):this._firstPT===b&&(this._firstPT=b._next)),b=b._next;return!1};b._roundProps=function(a,b){for(var c=this._firstPT;c;){if(a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")])c.r=b;c=c._next}};q._onPluginEvent=function(a,b){var c=b._firstPT,d;if("_onInitAllProps"===a){for(var f,g,h,j;c;){j=c._next;for(f=g;f&&f.pr>c.pr;)f=f._next;(c._prev=f?f._prev:h)?c._prev._next=c:g=c;(c._next=f)?f._prev=c:h=c;c=j}c=b._firstPT=g}for(;c;)c.pg&&"function"===typeof c.t[a]&&c.t[a]()&&(d=!0),c=c._next;return d};V.activate=function(a){for(var b=a.length;-1<--b;)a[b].API===V.API&&(q._plugins[(new a[b])._propName]=a[b]);return!0};if(p=l._gsQueue){for(k=0;k<p.length;k++)p[k]();for(b in a)a[b].def||console.log("Warning: TweenLite encountered missing dependency: com.greensock."+b)}})(window);\ No newline at end of filediff --git a/src/minified/plugins/CSSPlugin.min.js b/src/minified/plugins/CSSPlugin.min.jsindex 3ad6322..9630413 100755--- a/src/minified/plugins/CSSPlugin.min.js+++ b/src/minified/plugins/CSSPlugin.min.js@@ -1,6 +1,6 @@/*!- * VERSION: beta 1.662- * DATE: 2012-12-15+ * VERSION: beta 1.663+ * DATE: 2012-12-20* JavaScript* UPDATES AND DOCS AT: http://www.greensock.com*@@ -10,56 +10,56 @@** @author: Jack Doyle, [email protected]*/-(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(V){var E=function(){V.call(this,"css");this._overwriteProps.length=0},aa,ba,v,ca,L={},m=E.prototype=new V("css");m.constructor=E;E.version=1.661;E.API=2;E.defaultTransformPerspective=0;m="px";E.suffixMap={top:m,right:m,bottom:m,left:m,width:m,height:m,fontSize:m,padding:m,margin:m,perspective:m};var da=/(?:\d|\-\d|\.\d|\-\.\d)+/g,oa=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(V){var E=function(){V.call(this,"css");this._overwriteProps.length=0},aa,ba,p,ca,L={},m=E.prototype=new V("css");m.constructor=E;E.version=1.663;E.API=2;E.defaultTransformPerspective=0;m="px";E.suffixMap={top:m,right:m,bottom:m,left:m,width:m,height:m,fontSize:m,padding:m,margin:m,perspective:m};var da=/(?:\d|\-\d|\.\d|\-\.\d)+/g,oa=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,ea=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,W=/[^\d\-\.]/g,Ga=/(?:\d|\-|\+|=|#|\.)*/g,fa=/opacity *= *([^)]*)/,Ha=/opacity:([^;]*)/,pa=/([A-Z])/g,qa=/-([a-z])/gi,Ia=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,ra=function(a,b){return b.toUpperCase()},Ja=/(?:Left|Right|Width)/i,Ka=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,La=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,F=Math.PI/180,R=180/Math.PI,X={},M=document,S=M.createElement("div"),ga=M.createElement("img"),N=E._internals={_specialProps:L},-p=navigator.userAgent,ha,sa,ta,ua,va,ia,O,wa=p.indexOf("Android"),xa=M.createElement("div");va=(ta=-1!==p.indexOf("Safari")&&-1===p.indexOf("Chrome")&&(-1===wa||3<Number(p.substr(wa+8,1))))&&6>Number(p.substr(p.indexOf("Version/")+8,1));ua=-1!==p.indexOf("Firefox");/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(p);ia=parseFloat(RegExp.$1);xa.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";O=(p=xa.getElementsByTagName("a")[0])?/^0.55/.test(p.style.opacity):!1;var ya=function(a){return fa.test("string"===typeof a?+w=navigator.userAgent,ha,sa,ta,ua,va,ia,O,wa=w.indexOf("Android"),xa=M.createElement("div");va=(ta=-1!==w.indexOf("Safari")&&-1===w.indexOf("Chrome")&&(-1===wa||3<Number(w.substr(wa+8,1))))&&6>Number(w.substr(w.indexOf("Version/")+8,1));ua=-1!==w.indexOf("Firefox");/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(w);ia=parseFloat(RegExp.$1);xa.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";O=(w=xa.getElementsByTagName("a")[0])?/^0.55/.test(w.style.opacity):!1;var ya=function(a){return fa.test("string"===typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},za="",ja="",T=function(a,b){b=b||S;var d=b.style,c,f;if(void 0!==d[a])return a;a=a.charAt(0).toUpperCase()+a.substr(1);c=["O","Moz","ms","Ms","Webkit"];for(f=5;-1<--f&&void 0===d[c[f]+a];);return 0<=f?(ja=3===f?"ms":c[f],za="-"+ja.toLowerCase()+"-",ja+a):null},U=M.defaultView?M.defaultView.getComputedStyle:function(){},y=E.getStyle=function(a,b,d,c,f){var j;if(!O&&"opacity"===b)return ya(a);!c&&a.style[b]?j=a.style[b]:(d=d||U(a,null))?j=(a=d.getPropertyValue(b.replace(pa,"-$1").toLowerCase()))||d.length?a:d[b]:a.currentStyle&&(d=a.currentStyle,j=d[b]);return null!=f&&(!j||"none"===j||"auto"===j||"auto auto"===j)?f:j},Z=function(a,b,d){var c={},f=a._gsOverwrittenClassNamePT,j;if(f&&!d){for(;f;)f.setRatio(0),f=f._next;a._gsOverwrittenClassNamePT=null}if(b=b||U(a,null))if(j=b.length)for(;-1<--j;)c[b[j].replace(qa,ra)]=b.getPropertyValue(b[j]);else for(j in b)c[j]=b[j];else if(b=a.currentStyle||a.style)for(j in b)c[j.replace(qa,ra)]=b[j];O||(c.opacity=ya(a));a=Y(a,b,!1);c.rotation=a.rotation*R;c.rotationX=a.rotationX*R;c.rotationY=a.rotationY*R;c.skewX=a.skewX*R;c.scaleX=a.scaleX;c.scaleY=a.scaleY;c.scaleZ=a.scaleZ;c.x=a.x;c.y=a.y;c.z=a.z;c.filters&&delete c.filters;return c},Aa=function(a,b,d,c){var f={};a=a.style;var j,e,h;for(e in d)if("cssText"!==e&&"length"!==e&&isNaN(e)&&b[e]!==(j=d[e]))if(-1===e.indexOf("Origin")&&("number"===typeof j||"string"===typeof j))f[e]=(""===j||"auto"===j||"none"===j)&&"string"===typeof b[e]&&""!==b[e].replace(W,"")?0:j,void 0!==a[e]&&(h=new ka(a,e,a[e],h));if(c)for(e in c)"className"!==e&&(f[e]=c[e]);return{difs:f,firstMPT:h}},Ma={width:["Left","Right"],height:["Top","Bottom"]},Na=["marginLeft","marginRight","marginTop","marginBottom"],G=function(a,b,d,c,f){if("px"===c||!c)return d;if("auto"===c||!d)return 0;var j=Ja.test(b),e=a,h=S.style,k=0>d;k&&(d=-d);"%"===c&&-1!==b.indexOf("border")?j=d/100*(j?a.clientWidth:a.clientHeight):(h.cssText="border-style:solid; border-width:0; position:absolute; line-height:0;","%"===c||"em"===c||!e.appendChild?(e=a.parentNode||M.body,h[j?"width":"height"]=d+c):h[j?"borderLeftWidth":"borderTopWidth"]=d+c,e.appendChild(S),j=parseFloat(S[j?"offsetWidth":"offsetHeight"]),e.removeChild(S),0===j&&!f&&(j=G(a,b,d,c,!0)));return k?-j:j},la=function(a,b){if(null==a||""===a||"auto"===a||"auto auto"===a)a="0 0";var d=a.split(" "),c=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":d[0],f=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":d[1];null==f?f="0":"center"===-f&&(f="50%");if("center"===c||isNaN(parseFloat(c)))c="50%";b&&(b.oxp=-1!==c.indexOf("%"),b.oyp=-1!==f.indexOf("%"),b.oxr="="===c.charAt(1),b.oyr="="===f.charAt(1),b.ox=parseFloat(c.replace(W,"")),b.oy=parseFloat(f.replace(W,"")));return c+" "+f+(2<d.length?" "+d[2]:"")},Ba=function(a,b){return"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1")*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)},H=function(a,b){return null==a?b:"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+-"1")*Number(a.substr(2))+b:parseFloat(a)},P=function(a,b){if(null==a)return b;var d=-1===a.indexOf("rad")?F:1,c="="===a.charAt(1);a=Number(a.replace(W,""))*d;return c?a+b:a},ma=function(a,b){var d=(("number"===typeof a?a*F:P(a,b))-b)%(2*Math.PI);d!==d%Math.PI&&(d+=Math.PI*(0>d?2:-2));return b+d},Q={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,+f&&(f="50%");if("center"===c||isNaN(parseFloat(c)))c="50%";b&&(b.oxp=-1!==c.indexOf("%"),b.oyp=-1!==f.indexOf("%"),b.oxr="="===c.charAt(1),b.oyr="="===f.charAt(1),b.ox=parseFloat(c.replace(W,"")),b.oy=parseFloat(f.replace(W,"")));return c+" "+f+(2<d.length?" "+d[2]:"")},Ba=function(a,b){return"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)},H=function(a,b){return null==a?b:"string"===typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)++"1",10)*Number(a.substr(2))+b:parseFloat(a)},P=function(a,b){if(null==a)return b;var d=-1===a.indexOf("rad")?F:1,c="="===a.charAt(1);a=Number(a.replace(W,""))*d;return c?a+b:a},ma=function(a,b){var d=(("number"===typeof a?a*F:P(a,b))-b)%(2*Math.PI);d!==d%Math.PI&&(d+=Math.PI*(0>d?2:-2));return b+d},Q={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},na=function(a){if(!a||""===a)return Q.black;if(Q[a])return Q[a];if("number"===typeof a)return[a>>16,a>>8&255,a&255];if("#"===a.charAt(0)){if(4===a.length){var b=a.charAt(1),d=a.charAt(2);a=a.charAt(3);a="#"+b+b+d+d+a+a}a=parseInt(a.substr(1),16);return[a>>16,a>>8&255,a&255]}a=a.match(da)||Q.transparent;a[0]=Number(a[0]);a[1]=Number(a[1]);a[2]=Number(a[2]);3<a.length&&(a[3]=Number(a[3]));return a},J="(?:\\b(?:(?:rgb|rgba)\\(.+?\\))|\\B#.+?\\b";for(m in Q)J+="|"+m+"\\b";var J=RegExp(J+")","gi"),Ca=function(a,b,d){if(null==a)return function(a){return a};var c=b?(a.match(J)||[""])[0]:"",f=a.split(c).join("").match(ea)||[],j=a.substr(0,a.indexOf(f[0])),e=")"===a.charAt(a.length-1)?")":"",h=-1!==a.indexOf(" ")?" ":",",k=f.length,g=0<k?f[0].replace(da,""):"";return b?function(a){"number"===typeof a&&(a+=g);var b=(a.match(J)||[c])[0];a=a.split(b).join("").match(ea)||-[];var q=a.length;if(k>q--)for(;++q<k;)a[q]=d?a[(q-1)/2>>0]:f[q];return j+a.join(h)+h+b+e}:function(a){"number"===typeof a&&(a+=g);a=a.match(ea)||[];var b=a.length;if(k>b--)for(;++b<k;)a[b]=d?a[(b-1)/2>>0]:f[b];return j+a.join(h)+e}},p=function(a){a=a.split(",");return function(b,d,c,f,j,e,h){d=(d+"").split(" ");h={};for(c=0;4>c;c++)h[a[c]]=d[c]=d[c]||d[(c-1)/2>>0];return f.parse(b,h,j,e)}};N._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b=this.data,d=b.proxy,c=b.firstMPT,f;c;)f=d[c.v],+[];var n=a.length;if(k>n--)for(;++n<k;)a[n]=d?a[(n-1)/2>>0]:f[n];return j+a.join(h)+h+b+e}:function(a){"number"===typeof a&&(a+=g);a=a.match(ea)||[];var b=a.length;if(k>b--)for(;++b<k;)a[b]=d?a[(b-1)/2>>0]:f[b];return j+a.join(h)+e}},w=function(a){a=a.split(",");return function(b,d,c,f,j,e,h){d=(d+"").split(" ");h={};for(c=0;4>c;c++)h[a[c]]=d[c]=d[c]||d[(c-1)/2>>0];return f.parse(b,h,j,e)}};N._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b=this.data,d=b.proxy,c=b.firstMPT,f;c;)f=d[c.v],c.r?f=0<f?f+0.5>>0:f-0.5>>0:1E-6>f&&-1E-6<f&&(f=0),c.t[c.p]=f,c=c._next;b.autoRotate&&(b.autoRotate.rotation=d.rotation);if(1===a)for(c=b.firstMPT;c;){a=c.t;if(a.type){if(1===a.type){d=a.xs0+a.s+a.xs1;for(b=1;b<a.l;b++)d+=a["xn"+b]+a["xs"+(b+1)];a.e=d}}else a.e=a.s+a.xs0;c=c._next}};var ka=function(a,b,d,c,f){this.t=a;this.p=b;this.v=d;this.r=f;c&&(c._prev=this,this._next=c)};N._parseToProxy=function(a,b,d,c,f,j){var e=c,h={},k={},g=d._transform,l=X,t;d._transform=null;X=b;c=a=d.parse(a,b,c,f);X=l;j&&(d._transform=g,e&&(e._prev=null,e._prev&&(e._prev._next=null)));for(;c&&c!==e;){if(1>=c.type&&(g=c.p,k[g]=c.s+c.c,h[g]=c.s,j||(t=new ka(c,"s",g,t,c.r),c.c=0),1===c.type))for(d=c.l;0<--d;)l="xn"+d,g=c.p+"_"+l,k[g]=c.data[l],h[g]=c[l],j||(t=new ka(c,l,g,t,c.rxp[l]));c=c._next}return{proxy:h,end:k,firstMPT:t,pt:a}};var z=N.CSSPropTween=function(a,b,d,c,f,j,e,h,k,g,l){this.t=a;this.p=b;this.s=d;this.c=c;this.n=e||"css_"+b;a instanceof z||ca.push(this.n);this.r=h;this.type=j||0;k&&(this.pr=k,aa=-!0);this.b=void 0===g?d:g;this.e=void 0===l?d+c:l;f&&(this._next=f,f._prev=this)},$=E.parseComplex=function(a,b,d,c,f,j,e,h,k,g){e=new z(a,b,0,0,e,g?2:1,null,!1,h,d,c);a=d.split(", ").join(",").split(" ");b=(c+"").split(", ").join(",").split(" ");d=a.length;h=!1!==ha;var l,t,q,m,r;d!==b.length&&(a=(j||"").split(" "),d=a.length);e.plugin=k;e.setRatio=g;for(j=0;j<d;j++)if(k=a[j],l=b[j],(g=parseFloat(k))||0===g)e.appendXtra("",g,Ba(l,g),l.replace(oa,""),h&&-1!==l.indexOf("px"),!0);else if(f&&("#"===-k.charAt(0)||0===k.indexOf("rgb")||Q[k]))k=na(k),l=na(l),(g=6<k.length+l.length)&&!O&&0===l[3]?(e["xs"+e.l]+=e.l?" transparent":"transparent",e.e=e.e.split(b[j]).join("transparent")):(e.appendXtra(g?"rgba(":"rgb(",k[0],l[0]-k[0],",",!0,!0).appendXtra("",k[1],l[1]-k[1],",",!0).appendXtra("",k[2],l[2]-k[2],g?",":")",!0),g&&(k=4>k.length?1:k[3],e.appendXtra("",k,(4>l.length?1:l[3])-k,")",!1)));else if(g=k.match(da)){q=l.match(oa);if(!q||q.length!==g.length)return e;for(l=t=0;l<g.length;l++)r=g[l],m=-k.indexOf(r,t),e.appendXtra(k.substr(t,m-t),Number(r),Ba(q[l],r),"",h&&"px"===k.substr(m+r.length,2),0===l),t=m+r.length;e["xs"+e.l]+=k.substr(t)}else e["xs"+e.l]+=e.l?" "+k:k;if(-1!==c.indexOf("=")&&e.data){c=e.xs0+e.data.s;for(j=1;j<e.l;j++)c+=e["xs"+j]+e.data["xn"+j];e.e=c+e["xs"+j]}e.l||(e.type=-1,e.xs0=e.e);return e.xfirst||e},A=9,m=z.prototype;for(m.l=m.pr=0;0<--A;)m["xn"+A]=0,m["xs"+A]="";m.xs0="";m._next=m._prev=m.xfirst=m.data=m.plugin=m.setRatio=m.rxp=null;m.appendXtra=function(a,b,d,c,+!0);this.b=void 0===g?d:g;this.e=void 0===l?d+c:l;f&&(this._next=f,f._prev=this)},$=E.parseComplex=function(a,b,d,c,f,j,e,h,k,g){e=new z(a,b,0,0,e,g?2:1,null,!1,h,d,c);a=d.split(", ").join(",").split(" ");b=(c+"").split(", ").join(",").split(" ");d=a.length;h=!1!==ha;var l,t,n,m,r;d!==b.length&&(a=(j||"").split(" "),d=a.length);e.plugin=k;e.setRatio=g;for(j=0;j<d;j++)if(k=a[j],l=b[j],(g=parseFloat(k))||0===g)e.appendXtra("",g,Ba(l,g),l.replace(oa,""),h&&-1!==l.indexOf("px"),!0);else if(f&&("#"===+k.charAt(0)||0===k.indexOf("rgb")||Q[k]))k=na(k),l=na(l),(g=6<k.length+l.length)&&!O&&0===l[3]?(e["xs"+e.l]+=e.l?" transparent":"transparent",e.e=e.e.split(b[j]).join("transparent")):(e.appendXtra(g?"rgba(":"rgb(",k[0],l[0]-k[0],",",!0,!0).appendXtra("",k[1],l[1]-k[1],",",!0).appendXtra("",k[2],l[2]-k[2],g?",":")",!0),g&&(k=4>k.length?1:k[3],e.appendXtra("",k,(4>l.length?1:l[3])-k,")",!1)));else if(g=k.match(da)){n=l.match(oa);if(!n||n.length!==g.length)return e;for(l=t=0;l<g.length;l++)r=g[l],m=+k.indexOf(r,t),e.appendXtra(k.substr(t,m-t),Number(r),Ba(n[l],r),"",h&&"px"===k.substr(m+r.length,2),0===l),t=m+r.length;e["xs"+e.l]+=k.substr(t)}else e["xs"+e.l]+=e.l?" "+k:k;if(-1!==c.indexOf("=")&&e.data){c=e.xs0+e.data.s;for(j=1;j<e.l;j++)c+=e["xs"+j]+e.data["xn"+j];e.e=c+e["xs"+j]}e.l||(e.type=-1,e.xs0=e.e);return e.xfirst||e},A=9,m=z.prototype;for(m.l=m.pr=0;0<--A;)m["xn"+A]=0,m["xs"+A]="";m.xs0="";m._next=m._prev=m.xfirst=m.data=m.plugin=m.setRatio=m.rxp=null;m.appendXtra=function(a,b,d,c,f,j){var e=this.l;this["xs"+e]+=j&&e?" "+a:a||"";if(!d&&0!==e&&!this.plugin)return this["xs"+e]+=b+(c||""),this;this.l++;this.type=this.setRatio?2:1;this["xs"+this.l]=c||"";if(0<e)return this.data["xn"+e]=b+d,this.rxp["xn"+e]=f,this["xn"+e]=b,this.plugin||(this.xfirst=new z(this,"xn"+e,b,d,this.xfirst||this,0,this.n,f,this.pr),this.xfirst.xs0=0),this;this.data={s:b+d};this.rxp={};this.s=b;this.c=d;this.r=f;return this};var Da=function(a,b,d,c,f,j,e){this.p=c?T(a)||a:a;L[a]=L[this.p]=this;this.format=-j||Ca(b,f);d&&(this.parse=d);this.clrs=f;this.dflt=b;this.pr=e||0},n=N._registerComplexSpecialProp=function(a,b,d,c,f,j,e){a=a.split(",");b=b instanceof Array?b:[b];for(var h=a.length;-1<--h;)new Da(a[h],b[h],d,c&&0===h,f,j,e)},N=function(a){if(!L[a]){var b=a.charAt(0).toUpperCase()+a.substr(1)+"Plugin";n(a,null,function(a,c,f,j,e,h,k){var g=window.com.greensock.plugins[b];if(!g)return window.console&&console.log("Error: "+b+" js file not loaded."),e;g._cssRegister();return L[f].parse(a,c,f,j,e,h,-k)})}},m=Da.prototype;m.parseComplex=function(a,b,d,c,f,j){return $(a,this.p,b,d,this.clrs,this.dflt,c,this.pr,f,j)};m.parse=function(a,b,d,c,f,j){return this.parseComplex(a.style,this.format(y(a,d,v,!1,this.dflt)),this.format(b),f,j)};E.registerSpecialProp=function(a,b,d){n(a,null,function(a,f,j,e,h,k){h=new z(a,j,0,0,h,2,j,!1,d);h.plugin=k;h.setRatio=b(a,f,e._tween,j);return h},!1,!1,null,d)};var Ea="scaleX scaleY scaleZ x y z skewX rotation rotationX rotationY perspective".split(" "),I=T("transform"),-Oa=za+"transform",Fa=T("transformOrigin"),K=null!==T("perspective"),Y=function(a,b,d){var c=d?a._gsTransform||{skewY:0}:{skewY:0},f=0>c.scaleX,j=K?parseFloat(y(a,Fa,b,!1,"0 0 0").split(" ")[2])||c.zOrigin||0:0,e,h,k,g,l,t,q,m;I?e=y(a,Oa,b,!0):a.currentStyle&&(e=(e=a.currentStyle.filter.match(Ka))&&4===e.length?e[0].substr(4)+","+Number(e[2].substr(4))+","+Number(e[1].substr(4))+","+e[3].substr(4)+","+(c?c.x:0)+","+(c?c.y:0):null);h=(e||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[];for(b=h.length;-1<--b;)e=-Number(h[b]),h[b]=(1E5*e+(0>e?-0.5:0.5)>>0)/1E5;if(16===h.length){if(f=h[8],e=h[9],l=h[10],t=h[12],q=h[13],m=h[14],c.zOrigin&&(m=-c.zOrigin,t=f*m-h[12],q=e*m-h[13],m=l*m+c.zOrigin-h[14]),!d||t!==c.x||q!==c.y||m!==c.z){var r=h[0],s=h[1],x=h[2],v=h[3],u=h[4],n=h[5],w=h[6],z=h[7];h=h[11];var A=-Math.PI+1E-4,p=Math.PI-1E-4,B=c.rotationX=Math.atan2(w,l),G=B<A||B>p,F,H,C,D;B&&(C=Math.cos(-B),D=Math.sin(-B),B=u*C+f*D,F=n*C+e*D,H=w*C+l*D,f=u*-D+f*C,e=n*-D+e*C,l=w*-D+l*C,h=z*-D+h*C,u=B,n=F,w=H);if(B=c.rotationY=-Math.atan2(f,r))k=B<A||B>p,C=Math.cos(-B),D=Math.sin(-B),F=s*C-e*D,H=x*C-l*D,e=s*D+e*C,l=x*D+l*C,h=v*D+h*C,r=r*C-f*D,s=F,x=H;if(B=c.rotation=Math.atan2(s,n))g=B<A||B>p,C=Math.cos(-B),D=Math.sin(-B),r=r*C+u*D,F=s*C+n*D,n=s*-D+n*C,w=x*-D+w*C,s=F;g&&G?c.rotation=c.rotationX=0:g&&k?c.rotation=c.rotationY=0:k&&G&&(c.rotationY=c.rotationX=0);c.scaleX=(1E5*Math.sqrt(r*r+s*s)+0.5>>0)/1E5;c.scaleY=(1E5*Math.sqrt(n*n+e*e)+0.5>>0)/1E5;c.scaleZ=(1E5*Math.sqrt(w*w+l*l)+0.5>>0)/1E5;c.skewX=0;c.perspective=h?1/-h:0;c.x=t;c.y=q;c.z=m}}else if(!K||0===h.length||c.x!==h[4]||c.y!==h[5]||!c.rotationX&&!c.rotationY){e=(k=6<=h.length)?h[0]:1;t=h[1]||0;l=h[2]||0;q=k?h[3]:1;c.x=h[4]||0;c.y=h[5]||0;k=Math.sqrt(e*e+t*t);g=Math.sqrt(q*q+l*l);e=e||t?Math.atan2(t,e):c.rotation||0;l=l||q?Math.atan2(l,q)+e:c.skewX||0;t=k-Math.abs(c.scaleX||0);q=g-Math.abs(c.scaleY||0);Math.abs(l)>Math.PI/2&&Math.abs(l)<1.5*Math.PI&&(f?(k*=-1,l+=0>=e?Math.PI:-Math.PI,e+=0>=e?Math.PI:-Math.PI):(g*=-1,l+=0>=l?Math.PI:-Math.PI));f=(e-c.rotation)%-Math.PI;m=(l-c.skewX)%Math.PI;if(void 0===c.skewX||1E-6<t||-1E-6>t||1E-6<q||-1E-6>q||1E-6<f||-1E-6>f||1E-6<m||-1E-6>m)c.scaleX=k,c.scaleY=g,c.rotation=e,c.skewX=l;K&&(c.rotationX=c.rotationY=c.z=0,c.perspective=parseFloat(E.defaultTransformPerspective)||0,c.scaleZ=1)}c.zOrigin=j;for(b in c)1E-6>c[b]&&-1E-6<c[b]&&(c[b]=0);d&&(a._gsTransform=c);return c},Pa=function(a){var b=this.data,d=-b.rotation,c=d+b.skewX,f=(1E5*Math.cos(d)*b.scaleX>>0)/1E5,d=(1E5*Math.sin(d)*b.scaleX>>0)/1E5,j=(1E5*Math.sin(c)*--b.scaleY>>0)/1E5,c=(1E5*Math.cos(c)*b.scaleY>>0)/1E5,e=this.t.style,h=this.t.currentStyle,k,g;if(h){g=d;d=-j;j=-g;k=h.filter;e.filter="";var l=this.t.offsetWidth;g=this.t.offsetHeight;var t="absolute"!==h.position,m="progid:DXImageTransform.Microsoft.Matrix(M11="+f+", M12="+d+", M21="+j+", M22="+c,n=b.x,r=b.y,s,x;null!=b.ox&&(s=(b.oxp?0.01*l*b.ox:b.ox)-l/2,x=(b.oyp?0.01*g*b.oy:b.oy)-g/2,n+=s-(s*f+x*d),r+=x-(s*j+x*c));if(t)s=l/2,x=g/2,m+=", Dx="+(s-(s*f+x*d)+n)+", Dy="+(x-(s*j+x*c)+r)+")";else{var v=-8>ia?1:-1;s=b.ieOffsetX||0;x=b.ieOffsetY||0;b.ieOffsetX=Math.round((l-((0>f?-f:f)*l+(0>d?-d:d)*g))/2+n);b.ieOffsetY=Math.round((g-((0>c?-c:c)*g+(0>j?-j:j)*l))/2+r);for(A=0;4>A;A++)l=Na[A],g=h[l],g=-1!==g.indexOf("px")?parseFloat(g):G(this.t,l,parseFloat(g),g.replace(Ga,""))||0,n=g!==b[l]?2>A?-b.ieOffsetX:-b.ieOffsetY:2>A?s-b.ieOffsetX:x-b.ieOffsetY,e[l]=(b[l]=Math.round(g-n*(0===A||2===A?1:v)))+"px";m+=", sizingMethod='auto expand')"}e.filter=-1!==k.indexOf("DXImageTransform.Microsoft.Matrix(")?k.replace(La,-m):m+" "+k;if(0===a||1===a)if(1===f&&0===d&&0===j&&1===c&&(!t||-1!==m.indexOf("Dx=0, Dy=0")))(!fa.test(k)||100===parseFloat(RegExp.$1))&&-1===k.indexOf("gradient(")&&e.removeAttribute("filter")}},Qa=function(){var a=this.data,b=this.t.style,d=a.perspective,c=a.scaleX,f=0,j=0,e=0,h=0,k=a.scaleY,g=0,l=0,t=0,m=0,n=a.scaleZ,r=0,s=0,x=0,v=d?-1/d:0,u=a.rotation,A=a.zOrigin,w,p,y,z,B;ua&&(p=b.top+"",w=parseFloat(p)||0,p=p.substr((w+"").length),a._ffFix=!a._ffFix,b.top=(a._ffFix?w+0.05:w-0.05)+(""===p?"px":-p));u&&(w=Math.cos(u),u=Math.sin(u),y=k*u,f=c*-u,k*=w,c*=w,h=y);if(u=a.rotationY)w=Math.cos(u),u=Math.sin(u),z=n*-u,B=v*-u,j=c*u,g=h*u,n*=w,v*=w,c*=w,h*=w,t=z,s=B;if(u=a.rotationX)w=Math.cos(u),u=Math.sin(u),p=f*w+j*u,y=k*w+g*u,z=m*w+n*u,B=x*w+v*u,j=f*-u+j*w,g=k*-u+g*w,n=m*-u+n*w,v=x*-u+v*w,f=p,k=y,m=z,x=B;A&&(r-=A,e=j*r,l=g*r,r=n*r+A);e+=a.x;l+=a.y;r=(1E5*(r+a.z)>>0)/1E5;b[I]="matrix3d("+(1E5*c>>0)/1E5+","+(1E5*h>>0)/1E5+","+(1E5*t>>0)/1E5+","+(1E5*s>>0)/1E5+","+(1E5*f>>0)/1E5+","+(1E5*k>>0)/1E5+-","+(1E5*m>>0)/1E5+","+(1E5*x>>0)/1E5+","+(1E5*j>>0)/1E5+","+(1E5*g>>0)/1E5+","+(1E5*n>>0)/1E5+","+(1E5*v>>0)/1E5+","+(1E5*e>>0)/1E5+","+(1E5*l>>0)/1E5+","+r+","+(d?1+-r/d:1)+")"},Ra=function(){var a=this.data;if(!a.rotation&&!a.skewX)this.t.style[I]="matrix("+a.scaleX+",0,0,"+a.scaleY+","+a.x+","+a.y+")";else{var b=a.rotation,d=b-a.skewX,c=(1E5*Math.cos(b)*a.scaleX>>0)/1E5,b=(1E5*Math.sin(b)*a.scaleX>>0)/1E5,f=(1E5*Math.sin(d)*-a.scaleY>>0)/1E5,d=(1E5*Math.cos(d)*a.scaleY>>0)/1E5;this.t.style[I]=-"matrix("+c+","+b+","+f+","+d+","+a.x+","+a.y+")"}};n("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective",null,function(a,b,d,c,f,j,e){if(c._transform)return f;b=c._transform=Y(a,v,!0);var h=a.style,k=Ea.length,g,l,m;if("string"===typeof e.transform&&I)m=h[I],h[I]=e.transform,g=Y(a,null,!1),h[I]=m;else if("object"===typeof e){l=null!=e.rotation?e.rotation:null!=+j||Ca(b,f);d&&(this.parse=d);this.clrs=f;this.dflt=b;this.pr=e||0},q=N._registerComplexSpecialProp=function(a,b,d,c,f,j,e){a=a.split(",");b=b instanceof Array?b:[b];for(var h=a.length;-1<--h;)new Da(a[h],b[h],d,c&&0===h,f,j,e)},N=function(a){if(!L[a]){var b=a.charAt(0).toUpperCase()+a.substr(1)+"Plugin";q(a,null,function(a,c,f,j,e,h,k){var g=window.com.greensock.plugins[b];if(!g)return window.console&&console.log("Error: "+b+" js file not loaded."),e;g._cssRegister();return L[f].parse(a,c,f,j,e,h,+k)})}},m=Da.prototype;m.parseComplex=function(a,b,d,c,f,j){return $(a,this.p,b,d,this.clrs,this.dflt,c,this.pr,f,j)};m.parse=function(a,b,d,c,f,j){return this.parseComplex(a.style,this.format(y(a,d,p,!1,this.dflt)),this.format(b),f,j)};E.registerSpecialProp=function(a,b,d){q(a,null,function(a,f,j,e,h,k){h=new z(a,j,0,0,h,2,j,!1,d);h.plugin=k;h.setRatio=b(a,f,e._tween,j);return h},!1,!1,null,d)};var Ea="scaleX scaleY scaleZ x y z skewX rotation rotationX rotationY perspective".split(" "),I=T("transform"),+Oa=za+"transform",Fa=T("transformOrigin"),K=null!==T("perspective"),Y=function(a,b,d){var c=d?a._gsTransform||{skewY:0}:{skewY:0},f=0>c.scaleX,j=K?parseFloat(y(a,Fa,b,!1,"0 0 0").split(" ")[2])||c.zOrigin||0:0,e,h,k,g,l,t,n,m;I?e=y(a,Oa,b,!0):a.currentStyle&&(e=(e=a.currentStyle.filter.match(Ka))&&4===e.length?e[0].substr(4)+","+Number(e[2].substr(4))+","+Number(e[1].substr(4))+","+e[3].substr(4)+","+(c?c.x:0)+","+(c?c.y:0):null);h=(e||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[];for(b=h.length;-1<--b;)e=+Number(h[b]),h[b]=(1E5*e+(0>e?-0.5:0.5)>>0)/1E5;if(16===h.length){if(f=h[8],e=h[9],l=h[10],t=h[12],n=h[13],m=h[14],c.zOrigin&&(m=-c.zOrigin,t=f*m-h[12],n=e*m-h[13],m=l*m+c.zOrigin-h[14]),!d||t!==c.x||n!==c.y||m!==c.z){var r=h[0],s=h[1],x=h[2],q=h[3],u=h[4],p=h[5],v=h[6],z=h[7];h=h[11];var A=-Math.PI+1E-4,w=Math.PI-1E-4,B=c.rotationX=Math.atan2(v,l),G=B<A||B>w,F,H,C,D;B&&(C=Math.cos(-B),D=Math.sin(-B),B=u*C+f*D,F=p*C+e*D,H=v*C+l*D,f=u*-D+f*C,e=p*-D+e*C,l=v*-D+l*C,h=z*-D+h*C,u=B,p=F,v=H);if(B=c.rotationY=+Math.atan2(f,r))k=B<A||B>w,C=Math.cos(-B),D=Math.sin(-B),F=s*C-e*D,H=x*C-l*D,e=s*D+e*C,l=x*D+l*C,h=q*D+h*C,r=r*C-f*D,s=F,x=H;if(B=c.rotation=Math.atan2(s,p))g=B<A||B>w,C=Math.cos(-B),D=Math.sin(-B),r=r*C+u*D,F=s*C+p*D,p=s*-D+p*C,v=x*-D+v*C,s=F;g&&G?c.rotation=c.rotationX=0:g&&k?c.rotation=c.rotationY=0:k&&G&&(c.rotationY=c.rotationX=0);c.scaleX=(1E5*Math.sqrt(r*r+s*s)+0.5>>0)/1E5;c.scaleY=(1E5*Math.sqrt(p*p+e*e)+0.5>>0)/1E5;c.scaleZ=(1E5*Math.sqrt(v*v+l*l)+0.5>>0)/1E5;c.skewX=0;c.perspective=h?1/+h:0;c.x=t;c.y=n;c.z=m}}else if(!K||0===h.length||c.x!==h[4]||c.y!==h[5]||!c.rotationX&&!c.rotationY){e=(k=6<=h.length)?h[0]:1;t=h[1]||0;l=h[2]||0;n=k?h[3]:1;c.x=h[4]||0;c.y=h[5]||0;k=Math.sqrt(e*e+t*t);g=Math.sqrt(n*n+l*l);e=e||t?Math.atan2(t,e):c.rotation||0;l=l||n?Math.atan2(l,n)+e:c.skewX||0;t=k-Math.abs(c.scaleX||0);n=g-Math.abs(c.scaleY||0);Math.abs(l)>Math.PI/2&&Math.abs(l)<1.5*Math.PI&&(f?(k*=-1,l+=0>=e?Math.PI:-Math.PI,e+=0>=e?Math.PI:-Math.PI):(g*=-1,l+=0>=l?Math.PI:-Math.PI));f=(e-c.rotation)%+Math.PI;m=(l-c.skewX)%Math.PI;if(void 0===c.skewX||1E-6<t||-1E-6>t||1E-6<n||-1E-6>n||1E-6<f||-1E-6>f||1E-6<m||-1E-6>m)c.scaleX=k,c.scaleY=g,c.rotation=e,c.skewX=l;K&&(c.rotationX=c.rotationY=c.z=0,c.perspective=parseFloat(E.defaultTransformPerspective)||0,c.scaleZ=1)}c.zOrigin=j;for(b in c)1E-6>c[b]&&-1E-6<c[b]&&(c[b]=0);d&&(a._gsTransform=c);return c},Pa=function(a){var b=this.data,d=-b.rotation,c=d+b.skewX,f=(1E5*Math.cos(d)*b.scaleX>>0)/1E5,d=(1E5*Math.sin(d)*b.scaleX>>0)/1E5,j=(1E5*Math.sin(c)*+-b.scaleY>>0)/1E5,c=(1E5*Math.cos(c)*b.scaleY>>0)/1E5,e=this.t.style,h=this.t.currentStyle,k,g;if(h){g=d;d=-j;j=-g;k=h.filter;e.filter="";var l=this.t.offsetWidth;g=this.t.offsetHeight;var t="absolute"!==h.position,m="progid:DXImageTransform.Microsoft.Matrix(M11="+f+", M12="+d+", M21="+j+", M22="+c,p=b.x,r=b.y,s,x;null!=b.ox&&(s=(b.oxp?0.01*l*b.ox:b.ox)-l/2,x=(b.oyp?0.01*g*b.oy:b.oy)-g/2,p+=s-(s*f+x*d),r+=x-(s*j+x*c));if(t)s=l/2,x=g/2,m+=", Dx="+(s-(s*f+x*d)+p)+", Dy="+(x-(s*j+x*c)+r)+")";else{var q=+8>ia?1:-1;s=b.ieOffsetX||0;x=b.ieOffsetY||0;b.ieOffsetX=Math.round((l-((0>f?-f:f)*l+(0>d?-d:d)*g))/2+p);b.ieOffsetY=Math.round((g-((0>c?-c:c)*g+(0>j?-j:j)*l))/2+r);for(A=0;4>A;A++)l=Na[A],g=h[l],g=-1!==g.indexOf("px")?parseFloat(g):G(this.t,l,parseFloat(g),g.replace(Ga,""))||0,p=g!==b[l]?2>A?-b.ieOffsetX:-b.ieOffsetY:2>A?s-b.ieOffsetX:x-b.ieOffsetY,e[l]=(b[l]=Math.round(g-p*(0===A||2===A?1:q)))+"px";m+=", sizingMethod='auto expand')"}e.filter=-1!==k.indexOf("DXImageTransform.Microsoft.Matrix(")?k.replace(La,+m):m+" "+k;if(0===a||1===a)if(1===f&&0===d&&0===j&&1===c&&(!t||-1!==m.indexOf("Dx=0, Dy=0")))(!fa.test(k)||100===parseFloat(RegExp.$1))&&-1===k.indexOf("gradient(")&&e.removeAttribute("filter")}},Qa=function(){var a=this.data,b=this.t.style,d=a.perspective,c=a.scaleX,f=0,j=0,e=0,h=0,k=a.scaleY,g=0,l=0,t=0,m=0,p=a.scaleZ,r=0,s=0,x=0,q=d?-1/d:0,u=a.rotation,A=a.zOrigin,v,w,y,z,B;ua&&(w=b.top+"",v=parseFloat(w)||0,w=w.substr((v+"").length),a._ffFix=!a._ffFix,b.top=(a._ffFix?v+0.05:v-0.05)+(""===w?"px":+w));u&&(v=Math.cos(u),u=Math.sin(u),y=k*u,f=c*-u,k*=v,c*=v,h=y);if(u=a.rotationY)v=Math.cos(u),u=Math.sin(u),z=p*-u,B=q*-u,j=c*u,g=h*u,p*=v,q*=v,c*=v,h*=v,t=z,s=B;if(u=a.rotationX)v=Math.cos(u),u=Math.sin(u),w=f*v+j*u,y=k*v+g*u,z=m*v+p*u,B=x*v+q*u,j=f*-u+j*v,g=k*-u+g*v,p=m*-u+p*v,q=x*-u+q*v,f=w,k=y,m=z,x=B;A&&(r-=A,e=j*r,l=g*r,r=p*r+A);e+=a.x;l+=a.y;r=(1E5*(r+a.z)>>0)/1E5;b[I]="matrix3d("+(1E5*c>>0)/1E5+","+(1E5*h>>0)/1E5+","+(1E5*t>>0)/1E5+","+(1E5*s>>0)/1E5+","+(1E5*f>>0)/1E5+","+(1E5*k>>0)/1E5++","+(1E5*m>>0)/1E5+","+(1E5*x>>0)/1E5+","+(1E5*j>>0)/1E5+","+(1E5*g>>0)/1E5+","+(1E5*p>>0)/1E5+","+(1E5*q>>0)/1E5+","+(1E5*e>>0)/1E5+","+(1E5*l>>0)/1E5+","+r+","+(d?1+-r/d:1)+")"},Ra=function(){var a=this.data;if(!a.rotation&&!a.skewX)this.t.style[I]="matrix("+a.scaleX+",0,0,"+a.scaleY+","+a.x+","+a.y+")";else{var b=a.rotation,d=b-a.skewX,c=(1E5*Math.cos(b)*a.scaleX>>0)/1E5,b=(1E5*Math.sin(b)*a.scaleX>>0)/1E5,f=(1E5*Math.sin(d)*-a.scaleY>>0)/1E5,d=(1E5*Math.cos(d)*a.scaleY>>0)/1E5;this.t.style[I]=+"matrix("+c+","+b+","+f+","+d+","+a.x+","+a.y+")"}};q("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective",null,function(a,b,d,c,f,j,e){if(c._transform)return f;b=c._transform=Y(a,p,!0);var h=a.style,k=Ea.length,g,l,m;if("string"===typeof e.transform&&I)m=h[I],h[I]=e.transform,g=Y(a,null,!1),h[I]=m;else if("object"===typeof e){l=null!=e.rotation?e.rotation:null!=e.rotationZ?e.rotationZ:b.rotation*R;g={scaleX:H(null!=e.scaleX?e.scaleX:e.scale,b.scaleX),scaleY:H(null!=e.scaleY?e.scaleY:e.scale,b.scaleY),scaleZ:H(null!=e.scaleZ?e.scaleZ:e.scale,b.scaleZ),x:H(e.x,b.x),y:H(e.y,b.y),z:H(e.z,b.z),perspective:H(e.transformPerspective,b.perspective)};g.rotation=null!=e.shortRotation||null!=e.shortRotationZ?ma(e.shortRotation||e.shortRotationZ||0,b.rotation):"number"===typeof l?l*F:P(l,b.rotation);K&&(g.rotationX=null!=e.shortRotationX?ma(e.shortRotationX,b.rotationX):"number"===typeof e.rotationX?e.rotationX*F:P(e.rotationX,b.rotationX),g.rotationY=null!=e.shortRotationY?ma(e.shortRotationY,b.rotationY):"number"===typeof e.rotationY?e.rotationY*F:P(e.rotationY,b.rotationY),1E-6>g.rotationX&&-1E-6<g.rotationX&&(g.rotationX=0),1E-6>g.rotationY&&-1E-6<g.rotationY&&(g.rotationY=0));g.skewX=null==e.skewX?b.skewX:"number"===typeof e.skewX?e.skewX*F:P(e.skewX,b.skewX);g.skewY=null==e.skewY?b.skewY:"number"===typeof e.skewY?e.skewY*F:P(e.skewY,b.skewY);if(l=g.skewY-b.skewY)g.skewX+=-l,g.rotation+=l;1E-6>g.skewY&&-1E-6<g.skewY&&(g.skewY=0);1E-6>g.skewX&&-1E-6<g.skewX&&(g.skewX=0);1E-6>g.rotation&&-1E-6<g.rotation&&(g.rotation=0)}m=b.z||b.rotationX||b.rotationY||g.z||g.rotationX||g.rotationY||g.perspective;!m&&null!=g.scale&&(g.scaleZ=1);for(c._transformType=m||3===this._transformType?3:2;-1<--k;)if(d=Ea[k],l=g[d]-b[d],1E-6<l||-1E-6>l||null!=X[d])f=new z(b,d,b[d],l,f),f.xs0=0,f.plugin=j,c._overwriteProps.push(f.n);if((l=e.transformOrigin)||K&&m&&b.zOrigin)I?(l=(l||y(a,d,v,!1,"50% 50%"))+-"",d=Fa,f=new z(h,d,0,0,f,-1,"css_transformOrigin"),f.b=h[d],f.plugin=j,K?(m=b.zOrigin,l=l.split(" "),b.zOrigin=(2<l.length?parseFloat(l[2]):m)||0,f.xs0=f.e=h[d]=l[0]+" "+(l[1]||"50%")+" 0px",f=new z(b,"zOrigin",0,0,f,-1,f.n),f.b=m,f.xs0=f.e=b.zOrigin):f.xs0=f.e=h[d]=l):la(l+"",b);return f&&f.t===a?(f._next&&(f._next._prev=null),f._next):f},!0);n("boxShadow","0px 0px 0px 0px #999",null,!0,!0);n("borderRadius","0px",function(a,b,d,c,f){b=this.format(b);c=["borderTopLeftRadius","borderTopRightRadius",-"borderBottomRightRadius","borderBottomLeftRadius"];var j=a.style,e,h,k,g,l,m,q,n,r,s,x,p;n=parseFloat(a.offsetWidth);r=parseFloat(a.offsetHeight);b=b.split(" ");for(e=0;e<c.length;e++)this.p.indexOf("border")&&(c[e]=T(c[e])),g=k=y(a,c[e],v,!1,"0px"),-1!==g.indexOf(" ")&&(k=g.split(" "),g=k[0],k=k[1]),l=h=b[e],m=parseFloat(g),x=g.substr((m+"").length),(p="="===l.charAt(1))?(q=parseInt(l.charAt(0)+"1"),l=l.substr(2),q*=parseFloat(l),s=l.substr((q+"").length-(0>q?1:0))||""):(q=parseFloat(l),s=l.substr((q+-"").length)),""===s&&(s=ba[d]||x),s!==x&&(g=G(a,"borderLeft",m,x),m=G(a,"borderTop",m,x),"%"===s?(g=100*(g/n)+"%",k=100*(m/r)+"%"):"em"===s?(x=G(a,"borderLeft",1,"em"),g=g/x+"em",k=m/x+"em"):(g+="px",k=m+"px"),p&&(l=parseFloat(g)+q+s,h=parseFloat(k)+q+s)),f=$(j,c[e],g+" "+k,l+" "+h,!1,"0px",f);return f},!0,!1,Ca("0px 0px 0px 0px",!1,!0));n("backgroundPosition","0 0",function(a,b,d,c,f,j){d=v||U(a,null);d=this.format((d?ia?d.getPropertyValue("background-position-x")+" "+d.getPropertyValue("background-position-y"):+l,g.rotation+=l;1E-6>g.skewY&&-1E-6<g.skewY&&(g.skewY=0);1E-6>g.skewX&&-1E-6<g.skewX&&(g.skewX=0);1E-6>g.rotation&&-1E-6<g.rotation&&(g.rotation=0)}m=b.z||b.rotationX||b.rotationY||g.z||g.rotationX||g.rotationY||g.perspective;!m&&null!=g.scale&&(g.scaleZ=1);for(c._transformType=m||3===this._transformType?3:2;-1<--k;)if(d=Ea[k],l=g[d]-b[d],1E-6<l||-1E-6>l||null!=X[d])f=new z(b,d,b[d],l,f),f.xs0=0,f.plugin=j,c._overwriteProps.push(f.n);if((l=e.transformOrigin)||K&&m&&b.zOrigin)I?(l=(l||y(a,d,p,!1,"50% 50%"))++"",d=Fa,f=new z(h,d,0,0,f,-1,"css_transformOrigin"),f.b=h[d],f.plugin=j,K?(m=b.zOrigin,l=l.split(" "),b.zOrigin=(2<l.length?parseFloat(l[2]):m)||0,f.xs0=f.e=h[d]=l[0]+" "+(l[1]||"50%")+" 0px",f=new z(b,"zOrigin",0,0,f,-1,f.n),f.b=m,f.xs0=f.e=b.zOrigin):f.xs0=f.e=h[d]=l):la(l+"",b);return f&&f.t===a?(f._next&&(f._next._prev=null),f._next):f},!0);q("boxShadow","0px 0px 0px 0px #999",null,!0,!0);q("borderRadius","0px",function(a,b,d,c,f){b=this.format(b);c=["borderTopLeftRadius","borderTopRightRadius",+"borderBottomRightRadius","borderBottomLeftRadius"];var j=a.style,e,h,k,g,l,m,n,q,r,s,x,w;q=parseFloat(a.offsetWidth);r=parseFloat(a.offsetHeight);b=b.split(" ");for(e=0;e<c.length;e++)this.p.indexOf("border")&&(c[e]=T(c[e])),g=k=y(a,c[e],p,!1,"0px"),-1!==g.indexOf(" ")&&(k=g.split(" "),g=k[0],k=k[1]),l=h=b[e],m=parseFloat(g),x=g.substr((m+"").length),(w="="===l.charAt(1))?(n=parseInt(l.charAt(0)+"1",10),l=l.substr(2),n*=parseFloat(l),s=l.substr((n+"").length-(0>n?1:0))||""):(n=parseFloat(l),s=l.substr((n++"").length)),""===s&&(s=ba[d]||x),s!==x&&(g=G(a,"borderLeft",m,x),m=G(a,"borderTop",m,x),"%"===s?(g=100*(g/q)+"%",k=100*(m/r)+"%"):"em"===s?(x=G(a,"borderLeft",1,"em"),g=g/x+"em",k=m/x+"em"):(g+="px",k=m+"px"),w&&(l=parseFloat(g)+n+s,h=parseFloat(k)+n+s)),f=$(j,c[e],g+" "+k,l+" "+h,!1,"0px",f);return f},!0,!1,Ca("0px 0px 0px 0px",!1,!0));q("backgroundPosition","0 0",function(a,b,d,c,f,j){d=p||U(a,null);d=this.format((d?ia?d.getPropertyValue("background-position-x")+" "+d.getPropertyValue("background-position-y"):d.getPropertyValue("background-position"):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0");b=this.format(b);var e,h,k,g;if(-1!==d.indexOf("%")!==(-1!==b.indexOf("%"))){c=d.split(" ");e=b.split(" ");ga.setAttribute("src",y(a,"backgroundImage").replace(Ia,""));for(h=2;-1<--h;)d=c[h],k=-1!==d.indexOf("%"),k!==(-1!==e[h].indexOf("%"))&&(g=0===h?a.offsetWidth-ga.width:a.offsetHeight-ga.height,c[h]=k?parseFloat(d)/100*g+"px":100*(parseFloat(d)/g)+"%");d=c.join(" ")}return this.parseComplex(a.style,-d,b,f,j)},!1,!1,la);n("backgroundSize","0 0",null,!1,!1,la);n("perspective","0px",null,!0);n("perspectiveOrigin","50% 50%",null,!0);n("transformStyle","preserve-3d",null,!0);n("margin",null,p("marginTop,marginRight,marginBottom,marginLeft"));n("padding",null,p("paddingTop,paddingRight,paddingBottom,paddingLeft"));n("clip","rect(0px,0px,0px,0px)");n("textShadow","0px 0px 0px #999",null,!1,!0);n("autoRound",null,function(a,b,d,c,f){return f});n("border","0px solid #000",function(a,b,d,c,f,j){return this.parseComplex(a.style,-this.format(y(a,"borderTopWidth",v,!1,"0px")+" "+y(a,"borderTopStyle",v,!1,"solid")+" "+y(a,"borderTopColor",v,!1,"#000")),this.format(b),f,j)},!1,!0,function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(J)||["#000"])[0]});var Sa=function(a){var b=this.t;a=this.s+this.c*a;var d;100===a&&(b.removeAttribute("filter"),d=!y(this.data,"filter"));d||(this.xn1&&(b.filter=b.filter||"alpha(opacity=100)"),b.filter=-1===b.filter.indexOf("opacity")?b.filter+(" alpha(opacity="+(a>>0)+")"):-b.filter.replace(fa,"opacity="+(a>>0)))};n("opacity,alpha,autoAlpha","1",function(a,b,d,c,f,j){var e=parseFloat(y(a,"opacity",v,!1,"1"));b=parseFloat(b);var h=a.style,k;"autoAlpha"===d&&(k=y(a,"visibility",v),1===e&&"hidden"===k&&(e=0),f=new z(h,"visibility",0,0,f,-1,null,!1,0,0!==e?"visible":"hidden",0===b?"hidden":"visible"),f.xs0="visible",c._overwriteProps.push(f.n));O?f=new z(h,"opacity",e,b-e,f):(f=new z(h,"opacity",100*e,100*(b-e),f),f.xn1="autoAlpha"===d?1:0,h.zoom=1,f.type=2,f.b="alpha(opacity="+-f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=j,f.setRatio=Sa);return f});var Ta=function(a){if(1===a||0===a){this.t.className=1===a?this.e:this.b;a=this.data;for(var b=this.t.style,d=b.removeProperty?"removeProperty":"removeAttribute";a;){if(a.v)b[a.p]=a.v;else b[d](a.p.replace(pa,"-$1").toLowerCase());a=a._next}}else this.t.className!==this.b&&(this.t.className=this.b)};n("className",null,function(a,b,d,c,f,j,e){var h=a.className,k=a.style.cssText;f=c._classNamePT=new z(a,d,0,0,f,-2);f.setRatio=Ta;f.b=h;f.e="="!==b.charAt(1)?b:"+"===b.charAt(0)?h+" "+b.substr(2):h.split(b.substr(2)).join("");c._tween._duration&&(b=Z(a,v,!0),a.className=f.e,e=Aa(a,b,Z(a),e),a.className=h,f.data=e.firstMPT,a.style.cssText=k,f=f.xfirst=c.parse(a,e.difs,f,j));return f});m=["bezier","throwProps","physicsProps","physics2D"];for(A=m.length;A--;)N(m[A]);m=E.prototype;m._firstPT=null;m._onInitTween=function(a,b,d){if(!a.nodeType)return!1;this._target=a;this._tween=d;this._vars=b;ha=b.autoRound;aa=!1;-ba=b.suffixMap||E.suffixMap;v=U(a,"");ca=this._overwriteProps;d=a.style;var c,f,j,e;if(sa&&""===d.zIndex&&(c=y(a,"zIndex",v),"auto"===c||""===c))d.zIndex=0;"string"===typeof b&&(f=d.cssText,c=Z(a,v),d.cssText=f+";"+b,c=Aa(a,c,Z(a)).difs,!O&&Ha.test(b)&&(c.opacity=parseFloat(RegExp.$1)),b=c,d.cssText=f);this._firstPT=b=this.parse(a,b,null);if(this._transformType){c=3===this._transformType;if(I){if(ta){sa=!0;if(""===d.zIndex&&(e=y(a,"zIndex",v),"auto"===e||""===e))d.zIndex=0;va&&(d.WebkitBackfaceVisibility=-this._vars.WebkitBackfaceVisibility||(c?"visible":"hidden"))}}else d.zoom=1;for(d=b;d&&d._next;)d=d._next;e=new z(a,"transform",0,0,null,2);this._linkCSSP(e,null,d);e.setRatio=c&&K?Qa:I?Ra:Pa;e.data=this._transform||Y(a,v,!0);ca.pop()}if(aa){for(;b;){a=b._next;for(d=f;d&&d.pr>b.pr;)d=d._next;(b._prev=d?d._prev:j)?b._prev._next=b:f=b;(b._next=d)?d._prev=b:j=b;b=a}this._firstPT=f}return!0};m.parse=function(a,b,d,c){var f=a.style,j,e,h,k,g,l,m,n;for(j in b){g=b[j];if(e=L[j])d=e.parse(a,g,j,this,d,c,-b);else if(e=y(a,j,v)+"",m="string"===typeof g,"color"===j||"fill"===j||"stroke"===j||-1!==j.indexOf("Color")||m&&!g.indexOf("rgb"))m||(g=na(g),g=(3<g.length?"rgba(":"rgb(")+g.join(",")+")"),d=$(f,j,e,g,!0,"transparent",d,0,c);else if(m&&(-1!==g.indexOf(" ")||-1!==g.indexOf(",")))d=$(f,j,e,g,!0,null,d,0,c);else{h=parseFloat(e);l=e.substr((h+"").length);if(""===e||"auto"===e)if("width"===j||"height"===j){h=a;n=j;k=v;l=parseFloat("width"===n?h.offsetWidth:h.offsetHeight);n=Ma[n];var p=n.length;for(k=-k||U(h,null);-1<--p;)l-=parseFloat(y(h,"padding"+n[p],k,!0))||0,l-=parseFloat(y(h,"border"+n[p]+"Width",k,!0))||0;h=l;l="px"}else h="opacity"!==j?0:1,l="";(n=m&&"="===g.charAt(1))?(k=parseInt(g.charAt(0)+"1"),g=g.substr(2),k*=parseFloat(g),m=g.substr((k+"").length-(0>k?1:0))||""):(k=parseFloat(g),m=m?g.substr((k+"").length)||"":"");""===m&&(m=ba[j]||l);g=k||0===k?(n?k+h:k)+m:b[j];if(l!==m&&""!==m&&(k||0===k))if(h||0===h)if(h=G(a,j,h,l),"%"===m?(h/=G(a,j,100,"%")/100,100<h&&(h=100)):"em"===m?h/=G(a,-j,1,"em"):(k=G(a,j,k,m),m="px"),n&&(k||0===k))g=k+h+m;n&&(k+=h);(h||0===h)&&(k||0===k)?(d=new z(f,j,h,k-h,d,0,"css_"+j,!1!==ha&&("px"===m||"zIndex"===j),0,e,g),d.xs0=m):(d=new z(f,j,k||h||0,0,d,-1,"css_"+j,!1,0,e,g),d.xs0="display"===j&&"none"===g?e:g)}c&&(d&&!d.plugin)&&(d.plugin=c)}return d};m.setRatio=function(a){var b=this._firstPT,d,c;if(1===a&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;b;)2!==b.type?b.t[b.p]=b.e:b.setRatio(a),b=b._next;else if(a||!(this._tween._time===-this._tween._duration||0===this._tween._time)||-1E-6===this._tween._rawPrevTime)for(;b;){d=b.c*a+b.s;b.r?d=0<d?d+0.5>>0:d-0.5>>0:1E-6>d&&-1E-6<d&&(d=0);if(b.type)if(1===b.type)if(c=b.l,2===c)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2;else if(3===c)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3;else if(4===c)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3+b.xn3+b.xs4;else if(5===c)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3+b.xn3+b.xs4+b.xn4+b.xs5;else{d=b.xs0+d+b.xs1;for(c=1;c<b.l;c++)d+=b["xn"+c]+b["xs"+-(c+1)];b.t[b.p]=d}else-1===b.type?b.t[b.p]=b.xs0:b.setRatio&&b.setRatio(a);else b.t[b.p]=d+b.xs0;b=b._next}else for(;b;)2!==b.type?b.t[b.p]=b.b:b.setRatio(a),b=b._next};m._enableTransforms=function(a){this._transformType=a||3===this._transformType?3:2};m._linkCSSP=function(a,b,d,c){a&&(b&&(b._prev=a),a._next&&(a._next._prev=a._prev),d?d._next=a:!c&&null===this._firstPT&&(this._firstPT=a),a._prev?a._prev._next=a._next:this._firstPT===a&&(this._firstPT=a._next),a._next=b,a._prev=d);return a};m._kill=-function(a){var b=a,d=!1,c,f;if(a.css_autoAlpha||a.css_alpha){b={};for(f in a)b[f]=a[f];b.css_opacity=1;b.css_autoAlpha&&(b.css_visibility=1)}if(a.css_className&&(c=this._classNamePT))(a=c.xfirst)&&a._prev?this._linkCSSP(a._prev,c._next,a._prev._prev):a===this._firstPT&&(this._firstPT=null),c._next&&this._linkCSSP(c._next,c._next._next,a._prev),this._target._gsOverwrittenClassNamePT=this._linkCSSP(c,this._target._gsOverwrittenClassNamePT),this._classNamePT=null,d=!0;return V.prototype._kill.call(this,-b)||d};V.activate([E]);return E},!0)});window._gsDefine&&_gsQueue.pop()();\ No newline at end of file+d,b,f,j)},!1,!1,la);q("backgroundSize","0 0",null,!1,!1,la);q("perspective","0px",null,!0);q("perspectiveOrigin","50% 50%",null,!0);q("transformStyle","preserve-3d",null,!0);q("backfaceVisibility","visible",null,!0);q("margin",null,w("marginTop,marginRight,marginBottom,marginLeft"));q("padding",null,w("paddingTop,paddingRight,paddingBottom,paddingLeft"));q("clip","rect(0px,0px,0px,0px)");q("textShadow","0px 0px 0px #999",null,!1,!0);q("autoRound",null,function(a,b,d,c,f){return f});q("border","0px solid #000",+function(a,b,d,c,f,j){return this.parseComplex(a.style,this.format(y(a,"borderTopWidth",p,!1,"0px")+" "+y(a,"borderTopStyle",p,!1,"solid")+" "+y(a,"borderTopColor",p,!1,"#000")),this.format(b),f,j)},!1,!0,function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(J)||["#000"])[0]});var Sa=function(a){var b=this.t;a=this.s+this.c*a;var d;100===a&&(b.removeAttribute("filter"),d=!y(this.data,"filter"));d||(this.xn1&&(b.filter=b.filter||"alpha(opacity=100)"),b.filter=-1===b.filter.indexOf("opacity")?+b.filter+(" alpha(opacity="+(a>>0)+")"):b.filter.replace(fa,"opacity="+(a>>0)))};q("opacity,alpha,autoAlpha","1",function(a,b,d,c,f,j){var e=parseFloat(y(a,"opacity",p,!1,"1"));b=parseFloat(b);var h=a.style,k;"autoAlpha"===d&&(k=y(a,"visibility",p),1===e&&"hidden"===k&&(e=0),f=new z(h,"visibility",0,0,f,-1,null,!1,0,0!==e?"visible":"hidden",0===b?"hidden":"visible"),f.xs0="visible",c._overwriteProps.push(f.n));O?f=new z(h,"opacity",e,b-e,f):(f=new z(h,"opacity",100*e,100*(b-e),f),f.xn1="autoAlpha"===+d?1:0,h.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=j,f.setRatio=Sa);return f});var Ta=function(a){if(1===a||0===a){this.t.className=1===a?this.e:this.b;a=this.data;for(var b=this.t.style,d=b.removeProperty?"removeProperty":"removeAttribute";a;){if(a.v)b[a.p]=a.v;else b[d](a.p.replace(pa,"-$1").toLowerCase());a=a._next}}else this.t.className!==this.b&&(this.t.className=this.b)};q("className",null,function(a,b,d,c,f,j,e){var h=a.className,k=a.style.cssText;+f=c._classNamePT=new z(a,d,0,0,f,2);f.setRatio=Ta;f.b=h;f.e="="!==b.charAt(1)?b:"+"===b.charAt(0)?h+" "+b.substr(2):h.split(b.substr(2)).join("");c._tween._duration&&(b=Z(a,p,!0),a.className=f.e,e=Aa(a,b,Z(a),e),a.className=h,f.data=e.firstMPT,a.style.cssText=k,f=f.xfirst=c.parse(a,e.difs,f,j));return f});m=["bezier","throwProps","physicsProps","physics2D"];for(A=m.length;A--;)N(m[A]);m=E.prototype;m._firstPT=null;m._onInitTween=function(a,b,d){if(!a.nodeType)return!1;this._target=a;this._tween=d;+this._vars=b;ha=b.autoRound;aa=!1;ba=b.suffixMap||E.suffixMap;p=U(a,"");ca=this._overwriteProps;d=a.style;var c,f,j,e;if(sa&&""===d.zIndex&&(c=y(a,"zIndex",p),"auto"===c||""===c))d.zIndex=0;"string"===typeof b&&(f=d.cssText,c=Z(a,p),d.cssText=f+";"+b,c=Aa(a,c,Z(a)).difs,!O&&Ha.test(b)&&(c.opacity=parseFloat(RegExp.$1)),b=c,d.cssText=f);this._firstPT=b=this.parse(a,b,null);if(this._transformType){c=3===this._transformType;if(I){if(ta){sa=!0;if(""===d.zIndex&&(e=y(a,"zIndex",p),"auto"===e||""===e))d.zIndex=+0;va&&(d.WebkitBackfaceVisibility=this._vars.WebkitBackfaceVisibility||(c?"visible":"hidden"))}}else d.zoom=1;for(d=b;d&&d._next;)d=d._next;e=new z(a,"transform",0,0,null,2);this._linkCSSP(e,null,d);e.setRatio=c&&K?Qa:I?Ra:Pa;e.data=this._transform||Y(a,p,!0);ca.pop()}if(aa){for(;b;){a=b._next;for(d=f;d&&d.pr>b.pr;)d=d._next;(b._prev=d?d._prev:j)?b._prev._next=b:f=b;(b._next=d)?d._prev=b:j=b;b=a}this._firstPT=f}return!0};m.parse=function(a,b,d,c){var f=a.style,j,e,h,k,g,l,m,n;for(j in b){g=b[j];if(e=+L[j])d=e.parse(a,g,j,this,d,c,b);else if(e=y(a,j,p)+"",m="string"===typeof g,"color"===j||"fill"===j||"stroke"===j||-1!==j.indexOf("Color")||m&&!g.indexOf("rgb"))m||(g=na(g),g=(3<g.length?"rgba(":"rgb(")+g.join(",")+")"),d=$(f,j,e,g,!0,"transparent",d,0,c);else if(m&&(-1!==g.indexOf(" ")||-1!==g.indexOf(",")))d=$(f,j,e,g,!0,null,d,0,c);else{h=parseFloat(e);l=e.substr((h+"").length);if(""===e||"auto"===e)if("width"===j||"height"===j){h=a;n=j;k=p;l=parseFloat("width"===n?h.offsetWidth:h.offsetHeight);+n=Ma[n];var q=n.length;for(k=k||U(h,null);-1<--q;)l-=parseFloat(y(h,"padding"+n[q],k,!0))||0,l-=parseFloat(y(h,"border"+n[q]+"Width",k,!0))||0;h=l;l="px"}else h="opacity"!==j?0:1,l="";(n=m&&"="===g.charAt(1))?(k=parseInt(g.charAt(0)+"1",10),g=g.substr(2),k*=parseFloat(g),m=g.substr((k+"").length-(0>k?1:0))||""):(k=parseFloat(g),m=m?g.substr((k+"").length)||"":"");""===m&&(m=ba[j]||l);g=k||0===k?(n?k+h:k)+m:b[j];if(l!==m&&""!==m&&(k||0===k))if(h||0===h)if(h=G(a,j,h,l),"%"===m?(h/=G(a,j,100,"%")/100,+100<h&&(h=100)):"em"===m?h/=G(a,j,1,"em"):(k=G(a,j,k,m),m="px"),n&&(k||0===k))g=k+h+m;n&&(k+=h);(h||0===h)&&(k||0===k)?(d=new z(f,j,h,k-h,d,0,"css_"+j,!1!==ha&&("px"===m||"zIndex"===j),0,e,g),d.xs0=m):(d=new z(f,j,k||h||0,0,d,-1,"css_"+j,!1,0,e,g),d.xs0="display"===j&&"none"===g?e:g)}c&&(d&&!d.plugin)&&(d.plugin=c)}return d};m.setRatio=function(a){var b=this._firstPT,d,c;if(1===a&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;b;)2!==b.type?b.t[b.p]=b.e:b.setRatio(a),b=b._next;+else if(a||!(this._tween._time===this._tween._duration||0===this._tween._time)||-1E-6===this._tween._rawPrevTime)for(;b;){d=b.c*a+b.s;b.r?d=0<d?d+0.5>>0:d-0.5>>0:1E-6>d&&-1E-6<d&&(d=0);if(b.type)if(1===b.type)if(c=b.l,2===c)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2;else if(3===c)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3;else if(4===c)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3+b.xn3+b.xs4;else if(5===c)b.t[b.p]=b.xs0+d+b.xs1+b.xn1+b.xs2+b.xn2+b.xs3+b.xn3+b.xs4+b.xn4+b.xs5;else{d=b.xs0+d+b.xs1;for(c=+1;c<b.l;c++)d+=b["xn"+c]+b["xs"+(c+1)];b.t[b.p]=d}else-1===b.type?b.t[b.p]=b.xs0:b.setRatio&&b.setRatio(a);else b.t[b.p]=d+b.xs0;b=b._next}else for(;b;)2!==b.type?b.t[b.p]=b.b:b.setRatio(a),b=b._next};m._enableTransforms=function(a){this._transformType=a||3===this._transformType?3:2};m._linkCSSP=function(a,b,d,c){a&&(b&&(b._prev=a),a._next&&(a._next._prev=a._prev),d?d._next=a:!c&&null===this._firstPT&&(this._firstPT=a),a._prev?a._prev._next=a._next:this._firstPT===a&&(this._firstPT=a._next),a._next=+b,a._prev=d);return a};m._kill=function(a){var b=a,d=!1,c,f;if(a.css_autoAlpha||a.css_alpha){b={};for(f in a)b[f]=a[f];b.css_opacity=1;b.css_autoAlpha&&(b.css_visibility=1)}if(a.css_className&&(c=this._classNamePT))(a=c.xfirst)&&a._prev?this._linkCSSP(a._prev,c._next,a._prev._prev):a===this._firstPT&&(this._firstPT=null),c._next&&this._linkCSSP(c._next,c._next._next,a._prev),this._target._gsOverwrittenClassNamePT=this._linkCSSP(c,this._target._gsOverwrittenClassNamePT),this._classNamePT=null,d=!0;+return V.prototype._kill.call(this,b)||d};V.activate([E]);return E},!0)});window._gsDefine&&_gsQueue.pop()();\ No newline at end of filediff --git a/src/minified/plugins/CSSRulePlugin.min.js b/src/minified/plugins/CSSRulePlugin.min.jsindex ca7dcfa..d671ae2 100755--- a/src/minified/plugins/CSSRulePlugin.min.js+++ b/src/minified/plugins/CSSRulePlugin.min.js@@ -1,6 +1,6 @@/*!- * VERSION: beta 0.42- * DATE: 2012-09-19+ * VERSION: beta 0.5+ * DATE: 2012-12-20* JavaScript* UPDATES AND DOCS AT: http://www.greensock.com*@@ -10,4 +10,6 @@** @author: Jack Doyle, [email protected]*/-(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.CSSRulePlugin",["plugins.TweenPlugin","TweenLite"],function(r){var l=function(){r.call(this,"cssRule");this._overwriteProps.pop()},n=l.prototype=new r("cssRule");n.constructor=l;l.API=2;l.suffixMap={top:"px",right:"px",bottom:"px",left:"px",width:"px",height:"px",fontSize:"px",padding:"px",margin:"px"};var p=/[^\d\-\.]/g,A=/(\d|\-|\+|=|#|\.)*/g,L=/(\d|\.)+/g,B=/opacity *= *([^)]*)/,M=/([A-Z])/g,N=/(M11|M12|M21|M22)=[\d\-\.e]+/gi, O=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,q=Math.PI/180,m=document,s=m.createElement("div"),o=navigator.userAgent,C,D,t,E=o.indexOf("Android"),F=m.createElement("div");D=-1!==o.indexOf("Safari")&&-1===o.indexOf("Chrome")&&(-1===E||3<Number(o.substr(E+8,1)));F.innerHTML="<a style='top:1px;opacity:.55;'>a</a>";t=(o=F.getElementsByTagName("a")[0])?/^0.55/.test(o.style.opacity):!1;var G=function(c){if(!c||""===c)return u.black;if(u[c])return u[c];if("number"===typeof c)return[c>>16,c>>8& 255,c&255];if("#"===c.charAt(0)){if(4===c.length)var a=c.charAt(1),d=c.charAt(2),c=c.charAt(3),c="#"+a+a+d+d+c+c;c=parseInt(c.substr(1),16);return[c>>16,c>>8&255,c&255]}return c.match(L)||u.transparent},H=m.defaultView?m.defaultView.getComputedStyle:function(){},x=function(c,a,d,b){return!t&&"opacity"===a?B.test("string"===typeof c?c:(c.currentStyle?c.currentStyle.filter:c.style.filter)||"")?parseFloat(RegExp.$1)/100:1:!b&&c.style[a]?c.style[a]:(d=d||H(c,null))?(c=d.getPropertyValue(a.replace(M,"-$1").toLowerCase()))|| d.length?c:d[a]:c.currentStyle?(d=c.currentStyle,b=d[a],!b&&"backgroundPosition"===a?d[a+"X"]+" "+d[a+"Y"]:b):null},I={scaleX:1,scaleY:1,x:1,y:1,rotation:1,shortRotation:1,skewX:1,skewY:1,scale:1},J="",y="",i=function(c,a){var a=a||m.body||m.documentElement,d=H(a,""),b,e;if(x(a,c))return c;c=c.substr(0,1).toUpperCase()+c.substr(1);b=["O","Moz","ms","Ms","Webkit"];for(e=5;-1<--e&&!x(a,b[e]+c,d););return 0<=e?(y=3===e?"ms":b[e],J="-"+y.toLowerCase()+"-",y+c):null}("transform"),P=J+"transform";l.getRule= function(c){var a=m.all?"rules":"cssRules",d=m.styleSheets,b=d.length,e=":"===c.charAt(0),f,g,h,c=(e?"":",")+c+",";for(e&&(h=[]);-1<--b;){g=d[b][a];for(f=g.length;-1<--f;)if(-1!==(","+g[f].selectorText.split("::").join(":")+",").indexOf(c))if(e)h.push(g[f].style);else return g[f].style}return h};var K=function(c,a){s.cssText=c.cssText;var d=c._gsTransform,b;i?b=x(s,P,null,!0):s.currentStyle&&(b=(b=s.currentStyle.filter.match(N))&&4===b.length?b[0].substr(4)+","+Number(b[2].substr(4))+","+Number(b[1].substr(4))+ ","+b[3].substr(4)+","+(d?d.x:0)+","+(d?d.y:0):null);b=(b||"").replace(/[^\d\-\.e,]/g,"").split(",");var e=6<=b.length,f=e?Number(b[0]):1,g=e?Number(b[1]):0,h=e?Number(b[2]):0,j=e?Number(b[3]):1,d=a?d||{skewY:0}:{skewY:0},k=0>d.scaleX;d.x=e?Number(b[4]):0;d.y=e?Number(b[5]):0;d.scaleX=Math.sqrt(f*f+g*g);d.scaleY=Math.sqrt(j*j+h*h);d.rotation=f||g?Math.atan2(g,f):d.rotation||0;d.skewX=h||j?Math.atan2(h,j)+d.rotation:d.skewX||0;Math.abs(d.skewX)>Math.PI/2&&(k?(d.scaleX*=-1,d.skewX+=0>=d.rotation?Math.PI: -Math.PI,d.rotation+=0>=d.rotation?Math.PI:-Math.PI):(d.scaleY*=-1,d.skewX+=0>=d.skewX?Math.PI:-Math.PI));if(1E-6>d.rotation&&-1E-6<d.rotation&&(f||g))d.rotation=0;if(1E-6>d.skewX&&-1E-6<d.skewX&&(g||h))d.skewX=0;a&&(c._gsTransform=d);return d},z=function(c,a){if(null==c||""===c||"auto"===c)c="0 0";var a=a||{},d=-1!==c.indexOf("left")?"0%":-1!==c.indexOf("right")?"100%":c.split(" ")[0],b=-1!==c.indexOf("top")?"0%":-1!==c.indexOf("bottom")?"100%":c.split(" ")[1];null==b?b="0":"center"===b&&(b="50%"); "center"===d&&(d="50%");a.oxp=-1!==d.indexOf("%");a.oyp=-1!==b.indexOf("%");a.oxr="="===d.charAt(1);a.oyr="="===b.charAt(1);a.ox=parseFloat(d.replace(p,""));a.oy=parseFloat(b.replace(p,""));return a},v=function(c,a){return null==c?a:"string"===typeof c&&1===c.indexOf("=")?parseInt(c.charAt(0)+"1")*Number(c.substr(2))+a:Number(c)},w=function(c,a){var d=-1===c.indexOf("rad")?q:1,b=1===c.indexOf("="),c=Number(c.replace(p,""))*d;return b?c+a:c},u={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192], black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]};n._onInitTween=function(c,a,d){this._style=c;this._tween=d;this._transform=null;if(C&&(""===this._style.zIndex||"auto"===this._style.zIndex))this._style.zIndex=0;this._parseVars(a,c,a.suffixMap|| l.suffixMap);return!0};n._parseVars=function(c,a,d){var b,e,f,g,h,j,k;for(b in c)if(e=c[b],"transform"===b||b===i)this._parseTransform(a,e,d);else if(I[b]||"transformOrigin"===b)this._parseTransform(a,c,d);else{if("alpha"===b||"autoAlpha"===b)b="opacity";else if("margin"===b||"padding"===b){e=(e+"").split(" ");g=e.length;f={};f[b+"Top"]=e[0];f[b+"Right"]=1<g?e[1]:e[0];f[b+"Bottom"]=4===g?e[2]:e[0];f[b+"Left"]=4===g?e[3]:2===g?e[1]:e[0];this._parseVars(f,a,d);continue}else if("backgroundPosition"=== b||"backgroundSize"===b){f=z(e);k=z(g=a[b]||"50% 50%");this._firstPT=f={_next:this._firstPT,t:a,p:b,b:g,f:!1,n:"css_"+b,type:3,s:k.ox,c:f.oxr?f.ox:f.ox-k.ox,ys:k.oy,yc:f.oyr?f.oy:f.oy-k.oy,sfx:f.oxp?"%":"px",ysfx:f.oyp?"%":"px",r:!f.oxp&&!1!==c.autoRound};f.e=f.s+f.c+f.sfx+" "+(f.ys+f.yc)+f.ysfx;continue}else if("border"===b){e=(e+"").split(" ");this._parseVars({borderWidth:e[0],borderStyle:e[1]||"none",borderColor:e[2]||"#000000"},a,d);continue}else if("autoRound"===b)continue;g=a[b];g=null!=g?g+ "":"";this._firstPT=f={_next:this._firstPT,t:a,p:b,b:g,f:!1,n:"css_"+b,sfx:"",r:!1,type:0};"opacity"===b&&null!=c.autoAlpha&&(this._firstPT=f._prev={_next:f,t:a,p:"visibility",f:!1,n:"css_visibility",r:!1,type:-1,b:0!==Number(g)?"visible":"hidden",i:"visible",e:0===Number(e)?"hidden":"visible"},this._overwriteProps.push("css_visibility"));if("color"===b||"fill"===b||"stroke"===b||-1!==b.indexOf("Color")||"string"===typeof e&&!e.indexOf("rgb(")){if(h=G(g),e=G(e),f.e=f.i=(3<e.length?"rgba(":"rgb(")+ e.join(",")+")",f.b=(3<h.length?"rgba(":"rgb(")+h.join(",")+")",f.s=Number(h[0]),f.c=Number(e[0])-f.s,f.gs=Number(h[1]),f.gc=Number(e[1])-f.gs,f.bs=Number(h[2]),f.bc=Number(e[2])-f.bs,f.type=1,3<h.length||3<e.length)if(t)f.as=4>h.length?1:Number(h[3]),f.ac=(4>e.length?1:Number(e[3]))-f.as,f.type=2;else if(0==e[3]&&(f.e=f.i="transparent",f.type=-1),0==h[3])f.b="transparent"}else{h=g.replace(A,"");k=""===g||"auto"===g?"opacity"!==b?0:1:-1===g.indexOf(" ")?parseFloat(g.replace(p,"")):NaN;"string"=== typeof e?(g="="===e.charAt(1),j=e.replace(A,""),e=-1===e.indexOf(" ")?parseFloat(e.replace(p,"")):NaN):(g=!1,j="");""===j&&(j=d[b]||h);f.e=e||0===e?(g?e+k:e)+j:c[b];if(h!==j&&""!==j&&(e||0===e))if(k||0===k)throw"CSSRulePlugin error: starting and ending units don't match on tween of "+b+" ("+h+" vs "+j+")";if((k||0===k)&&(e||0===e)&&(f.c=g?e:e-k))if(f.s=k,f.sfx=j,"opacity"===b)t||(f.type=4,f.p="filter",f.b="alpha(opacity="+100*f.s+")",f.e="alpha(opacity="+100*(f.s+f.c)+")",f.dup=null!=c.autoAlpha, this._style.zoom=1);else{if(!1!==c.autoRound&&("px"===j||"zIndex"===b))f.r=!0}else f.type=-1,f.i="display"===b&&"none"===f.e?f.b:f.e,f.s=f.c=0}this._overwriteProps.push("css_"+b);f._next&&(f._next._prev=f)}};n._parseTransform=function(c,a){if(!this._transform){var d=this._transform=K(c,!0),b,e,f;if("object"===typeof a){b={scaleX:v(null!=a.scaleX?a.scaleX:a.scale,d.scaleX),scaleY:v(null!=a.scaleY?a.scaleY:a.scale,d.scaleY),x:v(a.x,d.x),y:v(a.y,d.y)};null!=a.shortRotation?(b.rotation="number"===typeof a.shortRotation? a.shortRotation*q:w(a.shortRotation,d.rotation),e=(b.rotation-d.rotation)%(2*Math.PI),e!==e%Math.PI&&(e+=Math.PI*(0>e?2:-2)),b.rotation=d.rotation+e):b.rotation=null==a.rotation?d.rotation:"number"===typeof a.rotation?a.rotation*q:w(a.rotation,d.rotation);b.skewX=null==a.skewX?d.skewX:"number"===typeof a.skewX?a.skewX*q:w(a.skewX,d.skewX);b.skewY=null==a.skewY?d.skewY:"number"===typeof a.skewY?a.skewY*q:w(a.skewY,d.skewY);if(e=b.skewY-d.skewY)b.skewX+=e,b.rotation+=e;1E-6>b.skewY&&-1E-6<b.skewY&& (b.skewY=0);1E-6>b.skewX&&-1E-6<b.skewX&&(b.skewX=0);1E-6>b.rotation&&-1E-6<b.rotation&&(b.rotation=0);if(null!=(e=a.transformOrigin))i?(f=i+"Origin",this._firstPT=e={_next:this._firstPT,t:c,p:f,s:0,c:0,n:f,f:!1,r:!1,b:c[f],e:e,i:e,type:-1,sfx:""},e._next&&(e._next._prev=e)):z(e,d)}else if("string"===typeof a&&i)e=c[i],c[i]=a,b=K(c,!1),c[i]=e;else return;if(i){if(D&&(C=!0,""===c.WebkitBackfaceVisibility&&(c.WebkitBackfaceVisibility="hidden"),""===c.zIndex))c.zIndex=0}else c.zoom=1;for(f in I)d[f]!== b[f]&&("shortRotation"!==f&&"scale"!==f)&&(this._firstPT=e={_next:this._firstPT,t:d,p:f,s:d[f],c:b[f]-d[f],n:f,f:!1,r:!1,b:d[f],e:b[f],type:0,sfx:0},e._next&&(e._next._prev=e),this._overwriteProps.push("css_"+f))}};n.setRatio=function(c){var a=this._firstPT,d=1E-6,b,e;if(1===c&&(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)a.t[a.p]=a.e,a=a._next;else if(c||!(this._tween._time===this._tween._duration||0===this._tween._time))for(;a;)b=a.c*c+a.s,a.r?b=0<b?b+0.5>>0:b-0.5>> 0:b<d&&b>-d&&(b=0),a.type?1===a.type?a.t[a.p]="rgb("+(b>>0)+", "+(a.gs+c*a.gc>>0)+", "+(a.bs+c*a.bc>>0)+")":2===a.type?a.t[a.p]="rgba("+(b>>0)+", "+(a.gs+c*a.gc>>0)+", "+(a.bs+c*a.bc>>0)+", "+(a.as+c*a.ac)+")":-1===a.type?a.t[a.p]=a.i:3===a.type?(e=a.ys+c*a.yc,a.r&&(e=0<e?e+0.5>>0:e-0.5>>0),a.t[a.p]=b+a.sfx+" "+e+a.ysfx):(a.dup&&(a.t.filter=a.t.filter||"alpha(opacity=100)"),a.t.filter=-1===a.t.filter.indexOf("opacity")?a.t.filter+(" alpha(opacity="+(100*b>>0)+")"):a.t.filter.replace(B,"opacity="+ (100*b>>0))):a.t[a.p]=b+a.sfx,a=a._next;else for(;a;)a.t[a.p]=a.b,a=a._next;if(this._transform)if(a=this._transform,i&&!a.rotation&&!a.skewX)this._style[i]=(a.x||a.y?"translate("+a.x+"px,"+a.y+"px) ":"")+(1!==a.scaleX||1!==a.scaleY?"scale("+a.scaleX+","+a.scaleY+")":"")||"translate(0px,0px)";else{b=i?a.rotation:-a.rotation;e=i?b-a.skewX:b+a.skewX;c=Math.cos(b)*a.scaleX;b=Math.sin(b)*a.scaleX;var f=Math.sin(e)*-a.scaleY;e=Math.cos(e)*a.scaleY;c<d&&c>-d&&(c=0);b<d&&b>-d&&(b=0);f<d&&f>-d&&(f=0);e<d&& e>-d&&(e=0);i?this._style[i]="matrix("+c+","+b+","+f+","+e+","+a.x+","+a.y+")":(d=b,b=-f,a=this._style.filter,this._style.filter="",d="progid:DXImageTransform.Microsoft.Matrix(M11="+c+", M12="+b+", M21="+-d+", M22="+e+",sizingMethod='auto expand')",this._style.filter=-1!==a.indexOf("DXImageTransform.Microsoft.Matrix(")?a.replace(O,d):d+" "+a)}};n._kill=function(c){var a=c,d;if(c.autoAlpha||c.alpha){a={};for(d in c)a[d]=c[d];a.opacity=1;a.autoAlpha&&(a.visibility=1)}return r.prototype._kill.call(this, a)};r.activate([l]);return l},!0)});window._gsDefine&&_gsQueue.pop()();\ No newline at end of file+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.CSSRulePlugin",["plugins.TweenPlugin","TweenLite","plugins.CSSPlugin"],function(l,a,d){a=function(){l.call(this,"cssRule");this._overwriteProps.length=0};var g=window.document,m=d.prototype.setRatio,b=a.prototype=new d;b._propName="cssRule";b.constructor=a;a.API=2;a.getRule=function(c){var a=g.all?"rules":"cssRules",b=g.styleSheets,e=b.length,d=":"===c.charAt(0),h,j,f,k;c=(d?"":",")+c.toLowerCase()+",";for(d&&(k=[]);-1<--e;){j=+b[e][a];for(h=j.length;-1<--h;)if(f=j[h],f.selectorText&&-1!==(","+f.selectorText.split("::").join(":").toLowerCase()+",").indexOf(c))if(d)k.push(f.style);else return f.style}return k};b._onInitTween=function(c,a,b){if(void 0===c.cssText)return!1;var e=g.createElement("div");this._ss=c;this._proxy=e.style;e.style.cssText=c.cssText;d.prototype._onInitTween.call(this,e,a,b);return!0};b.setRatio=function(a){m.call(this,a);this._ss.cssText=this._proxy.cssText};l.activate([a]);return a},!0)});+window._gsDefine&&_gsQueue.pop()();\ No newline at end of filediff --git a/src/minified/plugins/ScrollToPlugin.min.js b/src/minified/plugins/ScrollToPlugin.min.jsindex 3b9a608..4272dab 100755--- a/src/minified/plugins/ScrollToPlugin.min.js+++ b/src/minified/plugins/ScrollToPlugin.min.js@@ -1,6 +1,6 @@/**- * VERSION: beta 1.5- * DATE: 2012-11-16+ * VERSION: beta 1.52+ * DATE: 2012-12-17* JavaScript* UPDATES AND DOCS AT: http://www.greensock.com*@@ -10,7 +10,7 @@** @author: Jack Doyle, [email protected]**/-(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.ScrollToPlugin",["plugins.TweenPlugin"],function(e){var d=function(){e.call(this,"scrollTo");this._overwriteProps.pop()},c=d.prototype=new e("scrollTo"),f=document.documentElement,g=window,i=d.max=function(a,b){var c="x"===b?"Width":"Height",d="scroll"+c,e="client"+c,h=document.body;return a===g||a===f||a===h?Math.max(f[d],h[d])-Math.max(f[e],h[e]):a[d]-a["offset"+c]},j=e.prototype.setRatio;c.constructor=d;d.API=2;c._onInitTween=-function(a,b,c){this._wdw=a===g;this._target=a;this._tween=c;"object"!==typeof b&&(b={y:b});this._autoKill=b.autoKill;this.x=this.xPrev=this.getX();this.y=this.yPrev=this.getY();null!=b.x?this._addTween(this,"x",this.x,"max"===b.x?i(a,"x"):b.x,"scrollTo_x",!0):this.skipX=!0;null!=b.y?this._addTween(this,"y",this.y,"max"===b.y?i(a,"y"):b.y,"scrollTo_y",!0):this.skipY=!0;return!0};c.getX=function(){return!this._wdw?this._target.scrollLeft:null!=g.pageXOffset?g.pageXOffset:null!=f.scrollLeft?f.scrollLeft:-document.body.scrollLeft};c.getY=function(){return!this._wdw?this._target.scrollTop:null!=g.pageYOffset?g.pageYOffset:null!=f.scrollTop?f.scrollTop:document.body.scrollTop};c._kill=function(a){a.scrollTo_x&&(this.skipX=!0);a.scrollTo_x&&(this.skipY=!0);return e.prototype._kill.call(this,a)};c._checkAutoKill=function(){this._autoKill&&(this.skipX&&this.skipY)&&this._tween.kill()};c.setRatio=function(a){j.call(this,a);var a=this.getX(),b=this.getY();!this.skipX&&a!==this.xPrev&&(this.skipX=!0,this._checkAutoKill());-!this.skipY&&b!==this.yPrev&&(this.skipY=!0,this._checkAutoKill());this._wdw?g.scrollTo(!this.skipX?this.x:a,!this.skipY?this.y:b):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x));this.xPrev=this.x;this.yPrev=this.y};e.activate([d]);return d},!0)});window._gsDefine&&_gsQueue.pop()();\ No newline at end of file+(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.ScrollToPlugin",["plugins.TweenPlugin"],function(d){var e=function(){d.call(this,"scrollTo");this._overwriteProps.pop()},b=e.prototype=new d("scrollTo"),f=document.documentElement,g=window,j=e.max=function(a,c){var h="x"===c?"Width":"Height",b="scroll"+h,e="client"+h,d=document.body;return a===g||a===f||a===d?Math.max(f[b],d[b])-Math.max(f[e],d[e]):a[b]-a["offset"+h]},k=d.prototype.setRatio;b.constructor=e;e.API=2;b._onInitTween=+function(a,c,b){this._wdw=a===g;this._target=a;this._tween=b;"object"!==typeof c&&(c={y:c});this._autoKill=c.autoKill;this.x=this.xPrev=this.getX();this.y=this.yPrev=this.getY();null!=c.x?this._addTween(this,"x",this.x,"max"===c.x?j(a,"x"):c.x,"scrollTo_x",!0):this.skipX=!0;null!=c.y?this._addTween(this,"y",this.y,"max"===c.y?j(a,"y"):c.y,"scrollTo_y",!0):this.skipY=!0;return!0};b.getX=function(){return!this._wdw?this._target.scrollLeft:null!=g.pageXOffset?g.pageXOffset:null!=f.scrollLeft?f.scrollLeft:+document.body.scrollLeft};b.getY=function(){return!this._wdw?this._target.scrollTop:null!=g.pageYOffset?g.pageYOffset:null!=f.scrollTop?f.scrollTop:document.body.scrollTop};b._kill=function(a){a.scrollTo_x&&(this.skipX=!0);a.scrollTo_y&&(this.skipY=!0);return d.prototype._kill.call(this,a)};b._checkAutoKill=function(){this._autoKill&&(this.skipX&&this.skipY)&&this._tween.kill()};b.setRatio=function(a){k.call(this,a);a=this._wdw||!this.skipX?this.getX():this.xPrev;var c=this._wdw||!this.skipY?this.getY():+this.yPrev,b=c-this.yPrev,d=a-this.xPrev;if(!this.skipX&&(7<d||-7>d))this.skipX=!0,this._checkAutoKill();if(!this.skipY&&(7<b||-7>b))this.skipY=!0,this._checkAutoKill();this._wdw?g.scrollTo(!this.skipX?this.x:a,!this.skipY?this.y:c):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x));this.xPrev=this.x;this.yPrev=this.y};d.activate([e]);return e},!0)});window._gsDefine&&_gsQueue.pop()();\ No newline at end of filediff --git a/src/uncompressed/TweenLite.js b/src/uncompressed/TweenLite.jsindex 3bcb272..93137d9 100755--- a/src/uncompressed/TweenLite.js+++ b/src/uncompressed/TweenLite.js@@ -1,6 +1,6 @@/*!- * VERSION: beta 1.651- * DATE: 2012-12-10+ * VERSION: beta 1.663+ * DATE: 2012-12-20* JavaScript (ActionScript 3 and 2 also available)* UPDATES AND DOCS AT: http://www.greensock.com*@@ -344,7 +344,7 @@};p.seek = function(time, suppressEvents) {- return this.totalTime(Number(time), (suppressEvents != false));+ return this.totalTime(Number(time), (suppressEvents !== false));};p.restart = function(includeDelay, suppressEvents) {@@ -517,7 +517,7 @@if (!arguments.length) {return this._startTime;}- if (value != this._startTime) {+ if (value !== this._startTime) {this._startTime = value;if (this.timeline) if (this.timeline._sortChildren) {this.timeline.insert(this, value - this._delay); //ensures that any necessary re-sequencing of Animations in the timeline occurs to make sure the rendering order is correct.@@ -730,7 +730,7 @@p._firstPT = p._targets = p._overwrittenProps = null;p._notifyPluginsOfEnabled = false;- TweenLite.version = 1.651;+ TweenLite.version = 1.663;TweenLite.defaultEase = p._ease = new Ease(null, null, 1, 1);TweenLite.defaultOverwrite = "auto";TweenLite.ticker = _ticker;@@ -789,9 +789,9 @@},_applyOverwrite = function(target, tween, props, mode, siblings) {- var i, changed, curTween;+ var i, changed, curTween, l;if (mode === 1 || mode >= 4) {- var l = siblings.length;+ l = siblings.length;for (i = 0; i < l; i++) {if ((curTween = siblings[i]) !== tween) {if (!curTween._gc) if (curTween._enabled(false, false)) {@@ -947,7 +947,7 @@this._firstPT = propLookup[p] = pt = {_next:this._firstPT, t:target, p:p, f:(typeof(target[p]) === "function"), n:p, pg:false, pr:0};pt.s = (!pt.f) ? parseFloat(target[p]) : target[ ((p.indexOf("set") || typeof(target["get" + p.substr(3)]) !== "function") ? p : "get" + p.substr(3)) ]();v = this.vars[p];- pt.c = (typeof(v) === "number") ? v - pt.s : (typeof(v) === "string" && v.charAt(1) === "=") ? parseInt(v.charAt(0)+"1") * Number(v.substr(2)) : Number(v) || 0; //previously, we used Number(v.split("=").join("")) but that wouldn't adequately handle a value like "+=-500" or "-=-500".+ pt.c = (typeof(v) === "number") ? v - pt.s : (typeof(v) === "string" && v.charAt(1) === "=") ? parseInt(v.charAt(0)+"1", 10) * Number(v.substr(2)) : Number(v) || 0; //previously, we used Number(v.split("=").join("")) but that wouldn't adequately handle a value like "+=-500" or "-=-500".}if (pt) if (pt._next) {pt._next._prev = pt;@@ -1185,7 +1185,7 @@TweenLite.from = function(target, duration, vars) {vars.runBackwards = true;- if (vars.immediateRender != false) {+ if (vars.immediateRender !== false) {vars.immediateRender = true;}return new TweenLite(target, duration, vars);@@ -1267,13 +1267,13 @@p._addTween = function(target, prop, start, end, overwriteProp, round) {var c, pt;- if (end != null && (c = (typeof(end) === "number" || end.charAt(1) !== "=") ? Number(end) - start : parseInt(end.charAt(0)+"1") * Number(end.substr(2)))) {+ if (end != null && (c = (typeof(end) === "number" || end.charAt(1) !== "=") ? Number(end) - start : parseInt(end.charAt(0)+"1", 10) * Number(end.substr(2)))) {this._firstPT = pt = {_next:this._firstPT, t:target, p:prop, s:start, c:c, f:(typeof(target[prop]) === "function"), n:overwriteProp || prop, r:round};if (pt._next) {pt._next._prev = pt;}}- }+ };p.setRatio = function(v) {var pt = this._firstPT,@@ -1290,7 +1290,7 @@}pt = pt._next;}- }+ };p._kill = function(lookup) {if (lookup[this._propName] != null) {@@ -1319,7 +1319,7 @@pt = pt._next;}return false;- }+ };p._roundProps = function(lookup, value) {var pt = this._firstPT;@@ -1329,7 +1329,7 @@}pt = pt._next;}- }+ };TweenLite._onPluginEvent = function(type, tween) {var pt = tween._firstPT,@@ -1364,7 +1364,7 @@pt = pt._next;}return changed;- }+ };TweenPlugin.activate = function(plugins) {var i = plugins.length;@@ -1374,7 +1374,7 @@}}return true;- }+ };diff --git a/src/uncompressed/TweenMax.js b/src/uncompressed/TweenMax.jsindex 4400fa3..356f212 100755--- a/src/uncompressed/TweenMax.js+++ b/src/uncompressed/TweenMax.js@@ -1,6 +1,6 @@/**- * VERSION: beta 1.662- * DATE: 2012-12-15+ * VERSION: beta 1.663+ * DATE: 2012-12-20* JavaScript (ActionScript 3 and 2 also available)* UPDATES AND DOCS AT: http://www.greensock.com*@@ -33,7 +33,7 @@p = TweenMax.prototype = TweenLite.to({}, 0.1, {}),_blankArray = [];- TweenMax.version = 1.661;+ TweenMax.version = 1.663;p.constructor = TweenMax;p.kill()._gc = false;TweenMax.killTweensOf = TweenMax.killDelayedCallsTo = TweenLite.killTweensOf;@@ -1837,7 +1837,7 @@vars = {values:vars};}this._props = [];- this._timeRes = (vars.timeResolution == null) ? 6 : parseInt(vars.timeResolution);+ this._timeRes = (vars.timeResolution == null) ? 6 : parseInt(vars.timeResolution, 10);var values = vars.values || [],first = {},second = values[0],@@ -2063,7 +2063,7 @@p = CSSPlugin.prototype = new TweenPlugin("css");p.constructor = CSSPlugin;- CSSPlugin.version = 1.661;+ CSSPlugin.version = 1.663;CSSPlugin.API = 2;CSSPlugin.defaultTransformPerspective = 0;p = "px"; //we'll reuse the "p" variable to keep file size down@@ -2343,7 +2343,7 @@* @return {number} Amount of change between the beginning and ending values (relative values that have a "+=" or "-=" are recognized)*/_parseChange = function(e, b) {- return (typeof(e) === "string" && e.charAt(1) === "=") ? parseInt(e.charAt(0) + "1") * parseFloat(e.substr(2)) : parseFloat(e) - parseFloat(b);+ return (typeof(e) === "string" && e.charAt(1) === "=") ? parseInt(e.charAt(0) + "1", 10) * parseFloat(e.substr(2)) : parseFloat(e) - parseFloat(b);},/**@@ -2353,7 +2353,7 @@* @return {number} Parsed value*/_parseVal = function(v, d) {- return (v == null) ? d : (typeof(v) === "string" && v.charAt(1) === "=") ? parseInt(v.charAt(0) + "1") * Number(v.substr(2)) + d : parseFloat(v);+ return (v == null) ? d : (typeof(v) === "string" && v.charAt(1) === "=") ? parseInt(v.charAt(0) + "1", 10) * Number(v.substr(2)) + d : parseFloat(v);},/**@@ -2446,7 +2446,6 @@}_colorExp = new RegExp(_colorExp+")", "gi");-/*** @private Returns a formatter function that handles taking a string (or number in some cases) and returning a consistently formatted one in terms of delimiters, quantity of values, etc. For example, we may get boxShadow values defined as "0px red" or "0px 0px 10px rgb(255,0,0)" or "0px 0px 20px 20px #F00" and we need to ensure that what we get back is described with 4 numbers and a color. This allows us to feed it into the _parseComplex() method and split the values up appropriately. The neat thing about this _getFormatter() function is that the dflt defines a pattern as well as a default, so for example, _getFormatter("0px 0px 0px 0px #777", true) not only sets the default as 0px for all distances and #777 for the color, but also sets the pattern such that 4 numbers and a color will always get returned.* @param {!string} dflt The default value and pattern to follow. So "0px 0px 0px 0px #777" will ensure that 4 numbers and a color will always get returned.@@ -2481,21 +2480,20 @@return pfx + vals.join(delim) + delim + color + sfx;};- } else {- return function(v) {- if (typeof(v) === "number") {- v += dSfx;- }- var vals = v.match(_valuesExp) || [],- i = vals.length;- if (numVals > i--) {- while (++i < numVals) {- vals[i] = collapsible ? vals[(((i - 1) / 2) >> 0)] : dVals[i];- }- }- return pfx + vals.join(delim) + sfx;- };}+ return function(v) {+ if (typeof(v) === "number") {+ v += dSfx;+ }+ var vals = v.match(_valuesExp) || [],+ i = vals.length;+ if (numVals > i--) {+ while (++i < numVals) {+ vals[i] = collapsible ? vals[(((i - 1) / 2) >> 0)] : dVals[i];+ }+ }+ return pfx + vals.join(delim) + sfx;+ };},/**@@ -3292,6 +3290,50 @@a34 = (((a34 + t.z) * rnd) >> 0) / rnd;style[_transformProp] = "matrix3d(" + (((a11 * rnd) >> 0) / rnd) + cma + (((a21 * rnd) >> 0) / rnd) + cma + (((a31 * rnd) >> 0) / rnd) + cma + (((a41 * rnd) >> 0) / rnd) + cma + (((a12 * rnd) >> 0) / rnd) + cma + (((a22 * rnd) >> 0) / rnd) + cma + (((a32 * rnd) >> 0) / rnd) + cma + (((a42 * rnd) >> 0) / rnd) + cma + (((a13 * rnd) >> 0) / rnd) + cma + (((a23 * rnd) >> 0) / rnd) + cma + (((a33 * rnd) >> 0) / rnd) + cma + (((a43 * rnd) >> 0) / rnd) + cma + (((a14 * rnd) >> 0) / rnd) + cma + (((a24 * rnd) >> 0) / rnd) + cma + a34 + cma + (perspective ? (1 + (-a34 / perspective)) : 1) + ")";++ /* alternate version that is more concise but not as fast in most scenarios. We chose the more verbose matrix3d() technique for maximum performance.+ var t = this.data, //refers to the element's _gsTransform object+ style = this.t.style,+ s = "",+ rnd = 10000,+ zOrigin = (((t.zOrigin * rnd) >> 0) / rnd),+ top, n, sfx;+ if (_isFirefox) { //Firefox has a bug that causes 3D elements to randomly disappear during animation unless a repaint is forced. One way to do this is change "top" by 0.05 which is imperceptible, so we go back and forth. Another way is to change the display to "none", read the clientTop, and then revert the display but that is much slower.+ top = style.top + "";+ n = parseFloat(top) || 0;+ sfx = top.substr((n + "").length);+ t._ffFix = !t._ffFix;+ style.top = (t._ffFix ? n + 0.05 : n - 0.05) + ((sfx === "") ? "px" : sfx);+ }+ if (t.perspective) {+ s = "perspective(" + t.perspective + ") ";+ }+ if (t.x || t.y || t.z) {+ s += "translate3d(" + (((t.x * rnd) >> 0) / rnd) + "px," + (((t.y * rnd) >> 0) / rnd) + "px," + (((t.z * rnd) >> 0) / rnd) + "px) ";+ }+ if (zOrigin) {+ s += "translateZ(" + zOrigin + "px) ";+ }+ if (t.scaleX !== 1 || t.scaleY !== 1 || t.scaleZ !== 1) {+ s += "scale3d(" + (((t.scaleX * rnd) >> 0) / rnd) + "," + (((t.scaleY * rnd) >> 0) / rnd) + "," + (((t.scaleZ * rnd) >> 0) / rnd) + ") ";+ }+ if (t.rotation) {+ s += "rotateZ(" + (((t.rotation * rnd) >> 0) / rnd) + "rad) ";+ }+ if (t.rotationY) {+ s += "rotateY(" + (((t.rotationY * rnd) >> 0) / rnd) + "rad) ";+ }+ if (t.rotationX) {+ s += "rotateX(" + (((t.rotationX * rnd) >> 0) / rnd) + "rad) ";+ }+ if (zOrigin) {+ s += "translateZ(" + -zOrigin + "px)";+ }+ style[_transformProp] = s;+ */++ //alternate way of applying the values (slightly slower but slightly more accurate, although I doubt anyone could ever tell a difference) (add a var min = 0.000001)+ //style[_transformProp] = "matrix3d(" + ((a11 < min && a11 > -min) ? 0 : a11) + cma + ((a21 < min && a21 > -min) ? 0 : a21) + cma + ((a31 < min && a31 > -min) ? 0 : a31) + cma + ((a41 < min && a41 > -min) ? 0 : a41) + cma + ((a12 < min && a12 > -min) ? 0 : a12) + cma + ((a22 < min && a22 > -min) ? 0 : a22) + cma + ((a32 < min && a32 > -min) ? 0 : a32) + cma + ((a42 < min && a42 > -min) ? 0 : a42) + cma + ((a13 < min && a13 > -min) ? 0 : a13) + cma + ((a23 < min && a23 > -min) ? 0 : a23) + cma + ((a33 < min && a33 > -min) ? 0 : a33) + cma + ((a43 < min && a43 > -min) ? 0 : a43) + cma + ((a14 < min && a14 > -min) ? 0 : a14) + cma + ((a24 < min && a24 > -min) ? 0 : a24) + cma + a34 + cma + (perspective ? (1 + (-a34 / perspective)) : 1) + ")";},_set2DTransformRatio = function(v) {var t = this.data; //refers to the element's _gsTransform object@@ -3423,6 +3465,37 @@}, true);+ /* [unused] multiplies 4x4 matricies+ function multiply3D(a, b) {+ var c = [],+ a11 = a[0], a21 = a[1], a31 = a[2], a41 = a[3],+ a12 = a[4], a22 = a[5], a32 = a[6], a42 = a[7],+ a13 = a[8], a23 = a[9], a33 = a[10], a43 = a[11],+ a14 = a[12], a24 = a[13], a34 = a[14], a44 = a[15],+ b11 = b[0], b21 = b[1], b31 = b[2], b41 = b[3],+ b12 = b[4], b22 = b[5], b32 = b[6], b42 = b[7],+ b13 = b[8], b23 = b[9], b33 = b[10], b43 = b[11],+ b14 = b[12], b24 = b[13], b34 = b[14], b44 = b[15];+ c[0] = a11*b11+a12*b21+a13*b31+a14*b41; //a11+ c[1] = a21*b11+a22*b21+a23*b31+a24*b41; //a21+ c[2] = a31*b11+a32*b21+a33*b31+a34*b41; //a31+ c[3] = a41*b11+a42*b21+a43*b31+a44*b41; //a41+ c[4] = a11*b12+a12*b22+a13*b32+a14*b42; //a12+ c[5] = a21*b12+a22*b22+a23*b32+a24*b42; //a22+ c[6] = a31*b12+a32*b22+a33*b32+a34*b42; //a32+ c[7] = a41*b12+a42*b22+a43*b32+a44*b42; //a42+ c[8] = a11*b13+a12*b23+a13*b33+a14*b43; //a13+ c[9] = a21*b13+a22*b23+a23*b33+a24*b43; //a23+ c[10] = a31*b13+a32*b23+a33*b33+a34*b43; //a33+ c[11] = a41*b13+a42*b23+a43*b33+a44*b43; //a43+ c[12] = a11*b14+a12*b24+a13*b34+a14*b44; //a14+ c[13] = a21*b14+a22*b24+a23*b34+a24*b44; //a24+ c[14] = a31*b14+a32*b24+a33*b34+a34*b44; //a34+ c[15] = a41*b14+a42*b24+a43*b34+a44*b44; //a44+ return c;+ }+ */+_registerComplexSpecialProp("boxShadow", "0px 0px 0px 0px #999", null, true, true);@@ -3449,7 +3522,7 @@bsfx = bs.substr((bn + "").length);rel = (es.charAt(1) === "=");if (rel) {- en = parseInt(es.charAt(0)+"1");+ en = parseInt(es.charAt(0)+"1", 10);es = es.substr(2);en *= parseFloat(es);esfx = es.substr((en + "").length - (en < 0 ? 1 : 0)) || "";@@ -3510,6 +3583,7 @@_registerComplexSpecialProp("perspective", "0px", null, true);_registerComplexSpecialProp("perspectiveOrigin", "50% 50%", null, true);_registerComplexSpecialProp("transformStyle", "preserve-3d", null, true);+ _registerComplexSpecialProp("backfaceVisibility", "visible", null, true);_registerComplexSpecialProp("margin", null, _getEdgeParser("marginTop,marginRight,marginBottom,marginLeft"));_registerComplexSpecialProp("padding", null, _getEdgeParser("paddingTop,paddingRight,paddingBottom,paddingLeft"));_registerComplexSpecialProp("clip", "rect(0px,0px,0px,0px)");@@ -3763,7 +3837,7 @@rel = (isStr && es.charAt(1) === "=");if (rel) {- en = parseInt(es.charAt(0)+"1");+ en = parseInt(es.charAt(0)+"1", 10);es = es.substr(2);en *= parseFloat(es);esfx = es.substr((en + "").length - (en < 0 ? 1 : 0)) || "";@@ -4312,1383 +4386,1383 @@*/(function(window) {- "use strict";- var _namespace = function(ns) {- var a = ns.split("."),- p = window, i;- for (i = 0; i < a.length; i++) {- p[a[i]] = p = p[a[i]] || {};- }- return p;- },- gs = _namespace("com.greensock"),- a, i, e, e2, p, _gsInit,- _classLookup = {},-- //_DepClass is for defining a dependent class. ns = namespace (leaving off "com.greensock." as that's assumed), dep = an array of namespaces that are required, def = the function that will return the class definition (this function will be passed each dependency in order as soon as they arrive), global = if true, the class is added to the global scope (window) or if requirejs is being used, it will tap into that instead.- _DepClass = function(ns, dep, def, global) {- this.sc = (_classLookup[ns]) ? _classLookup[ns].sc : []; //subclasses- _classLookup[ns] = this;- this.gsClass = null;- this.def = def;- var _dep = dep || [],- _classes = [];- this.check = function(init) {- var i = _dep.length, cnt = 0, cur;- while (--i > -1) {- if ((cur = _classLookup[_dep[i]] || new _DepClass(_dep[i])).gsClass) {- _classes[i] = cur.gsClass;- } else {- cnt++;- if (init) {- cur.sc.push(this);+ "use strict";+ var _namespace = function(ns) {+ var a = ns.split("."),+ p = window, i;+ for (i = 0; i < a.length; i++) {+ p[a[i]] = p = p[a[i]] || {};+ }+ return p;+ },+ gs = _namespace("com.greensock"),+ a, i, e, e2, p, _gsInit,+ _classLookup = {},++ //_DepClass is for defining a dependent class. ns = namespace (leaving off "com.greensock." as that's assumed), dep = an array of namespaces that are required, def = the function that will return the class definition (this function will be passed each dependency in order as soon as they arrive), global = if true, the class is added to the global scope (window) or if requirejs is being used, it will tap into that instead.+ _DepClass = function(ns, dep, def, global) {+ this.sc = (_classLookup[ns]) ? _classLookup[ns].sc : []; //subclasses+ _classLookup[ns] = this;+ this.gsClass = null;+ this.def = def;+ var _dep = dep || [],+ _classes = [];+ this.check = function(init) {+ var i = _dep.length, cnt = 0, cur;+ while (--i > -1) {+ if ((cur = _classLookup[_dep[i]] || new _DepClass(_dep[i])).gsClass) {+ _classes[i] = cur.gsClass;+ } else {+ cnt++;+ if (init) {+ cur.sc.push(this);+ }}}- }- if (cnt === 0 && def) {- var a = ("com.greensock." + ns).split("."),- n = a.pop(),- cl = _namespace(a.join("."))[n] = this.gsClass = def.apply(def, _classes);+ if (cnt === 0 && def) {+ var a = ("com.greensock." + ns).split("."),+ n = a.pop(),+ cl = _namespace(a.join("."))[n] = this.gsClass = def.apply(def, _classes);++ //exports to multiple environments+ if (global) {+ (window.GreenSockGlobals || window)[n] = cl; //provides a way to avoid global namespace pollution. By default, the main classes like TweenLite, Power1, Strong, etc. are added to window unless a GreenSockGlobals is defined. So if you want to have things added to a custom object instead, just do something like window.GreenSockGlobals = {} before loading any GreenSock files. You can even set up an alias like window.GreenSockGlobals = windows.gs = {} so that you can access everything like gs.TweenLite. Also remember that ALL classes are added to the window.com.greensock object (in their respective packages, like com.greensock.easing.Power1, com.greensock.TweenLite, etc.)+ if (typeof(define) === "function" && define.amd){ //AMD+ define((window.GreenSockAMDPath ? window.GreenSockAMDPath + "/" : "") + ns.split(".").join("/"), [], function() { return cl; });+ } else if (typeof(module) !== "undefined" && module.exports){ //node+ module.exports = cl;+ }+ }- //exports to multiple environments- if (global) {- (window.GreenSockGlobals || window)[n] = cl; //provides a way to avoid global namespace pollution. By default, the main classes like TweenLite, Power1, Strong, etc. are added to window unless a GreenSockGlobals is defined. So if you want to have things added to a custom object instead, just do something like window.GreenSockGlobals = {} before loading any GreenSock files. You can even set up an alias like window.GreenSockGlobals = windows.gs = {} so that you can access everything like gs.TweenLite. Also remember that ALL classes are added to the window.com.greensock object (in their respective packages, like com.greensock.easing.Power1, com.greensock.TweenLite, etc.)- if (typeof(define) === "function" && define.amd){ //AMD- define((window.GreenSockAMDPath ? window.GreenSockAMDPath + "/" : "") + ns.split(".").join("/"), [], function() { return cl; });- } else if (typeof(module) !== "undefined" && module.exports){ //node- module.exports = cl;+ for (i = 0; i < this.sc.length; i++) {+ this.sc[i].check(false);}- }- for (i = 0; i < this.sc.length; i++) {- this.sc[i].check(false);}-- }+ };+ this.check(true);+ },+ //a quick way to create a class that doesn't have any dependencies. Returns the class, but first registers it in the GreenSock namespace so that other classes can grab it (other classes might be dependent on the class).+ _class = gs._class = function(ns, f, g) {+ f = f || function() {};+ var c = new _DepClass(ns, [], function(){ return f; }, g);+ return f;};- this.check(true);- },- //a quick way to create a class that doesn't have any dependencies. Returns the class, but first registers it in the GreenSock namespace so that other classes can grab it (other classes might be dependent on the class).- _class = gs._class = function(ns, f, g) {- f = f || function() {};- var c = new _DepClass(ns, [], function(){ return f; }, g);- return f;- };-- //used to create _DepClass instances (which basically registers a class that has dependencies). ns = namespace, dep = dependencies (array), f = initialization function which should return the class, g = global (whether or not the class should be added to the global namespace (or if RequireJS is used, it will be defined as a named module instead)- window._gsDefine = function(ns, dep, f, g) {- return new _DepClass(ns, dep, f, g);- };---- /*- * ----------------------------------------------------------------- * Ease- * ----------------------------------------------------------------- */- var _baseParams = [0, 0, 1, 1],- _blankArray = [],- Ease = _class("easing.Ease", function(func, extraParams, type, power) {- this._func = func;- this._type = type || 0;- this._power = power || 0;- this._params = extraParams ? _baseParams.concat(extraParams) : _baseParams;- }, true);- p = Ease.prototype;- p._calcEnd = false;- p.getRatio = function(p) {- if (this._func) {- this._params[0] = p;- return this._func.apply(null, this._params);- } else {- var t = this._type,- pw = this._power,- r = (t === 1) ? 1 - p : (t === 2) ? p : (p < 0.5) ? p * 2 : (1 - p) * 2;- if (pw === 1) {- r *= r;- } else if (pw === 2) {- r *= r * r;- } else if (pw === 3) {- r *= r * r * r;- } else if (pw === 4) {- r *= r * r * r * r;- }- return (t === 1) ? 1 - r : (t === 2) ? r : (p < 0.5) ? r / 2 : 1 - (r / 2);- }- };-- //create all the standard eases like Linear, Quad, Cubic, Quart, Quint, Strong, Power0, Power1, Power2, Power3, and Power4 (each with easeIn, easeOut, and easeInOut)- a = ["Linear","Quad","Cubic","Quart","Quint"];- i = a.length;- while(--i > -1) {- e = _class("easing." + a[i], null, true);- e2 = _class("easing.Power" + i, null, true);- e.easeOut = e2.easeOut = new Ease(null, null, 1, i);- e.easeIn = e2.easeIn = new Ease(null, null, 2, i);- e.easeInOut = e2.easeInOut = new Ease(null, null, 3, i);- }- _class("easing.Strong", gs.easing.Power4, true);- gs.easing.Linear.easeNone = gs.easing.Linear.easeIn;--- /*- * ----------------------------------------------------------------- * EventDispatcher- * ----------------------------------------------------------------- */- var EventDispatcher = _class("events.EventDispatcher", function(target) {- this._listeners = {};- this._eventTarget = target || this;- });- p = EventDispatcher.prototype;-- p.addEventListener = function(type, callback, scope, useParam, priority) {- priority = priority || 0;- var list = this._listeners[type],- index = 0,- listener, i;- if (list == null) {- this._listeners[type] = list = [];- }- i = list.length;- while (--i > -1) {- listener = list[i];- if (listener.c === callback) {- list.splice(i, 1);- } else if (index === 0 && listener.pr < priority) {- index = i + 1;+ //used to create _DepClass instances (which basically registers a class that has dependencies). ns = namespace, dep = dependencies (array), f = initialization function which should return the class, g = global (whether or not the class should be added to the global namespace (or if RequireJS is used, it will be defined as a named module instead)+ window._gsDefine = function(ns, dep, f, g) {+ return new _DepClass(ns, dep, f, g);+ };++++/*+ * ----------------------------------------------------------------+ * Ease+ * ----------------------------------------------------------------+ */+ var _baseParams = [0, 0, 1, 1],+ _blankArray = [],+ Ease = _class("easing.Ease", function(func, extraParams, type, power) {+ this._func = func;+ this._type = type || 0;+ this._power = power || 0;+ this._params = extraParams ? _baseParams.concat(extraParams) : _baseParams;+ }, true);++ p = Ease.prototype;+ p._calcEnd = false;+ p.getRatio = function(p) {+ if (this._func) {+ this._params[0] = p;+ return this._func.apply(null, this._params);+ } else {+ var t = this._type,+ pw = this._power,+ r = (t === 1) ? 1 - p : (t === 2) ? p : (p < 0.5) ? p * 2 : (1 - p) * 2;+ if (pw === 1) {+ r *= r;+ } else if (pw === 2) {+ r *= r * r;+ } else if (pw === 3) {+ r *= r * r * r;+ } else if (pw === 4) {+ r *= r * r * r * r;+ }+ return (t === 1) ? 1 - r : (t === 2) ? r : (p < 0.5) ? r / 2 : 1 - (r / 2);}+ };++ //create all the standard eases like Linear, Quad, Cubic, Quart, Quint, Strong, Power0, Power1, Power2, Power3, and Power4 (each with easeIn, easeOut, and easeInOut)+ a = ["Linear","Quad","Cubic","Quart","Quint"];+ i = a.length;+ while(--i > -1) {+ e = _class("easing." + a[i], null, true);+ e2 = _class("easing.Power" + i, null, true);+ e.easeOut = e2.easeOut = new Ease(null, null, 1, i);+ e.easeIn = e2.easeIn = new Ease(null, null, 2, i);+ e.easeInOut = e2.easeInOut = new Ease(null, null, 3, i);}- list.splice(index, 0, {c:callback, s:scope, up:useParam, pr:priority});- };+ _class("easing.Strong", gs.easing.Power4, true);+ gs.easing.Linear.easeNone = gs.easing.Linear.easeIn;- p.removeEventListener = function(type, callback) {- var list = this._listeners[type], i;- if (list) {++/*+ * ----------------------------------------------------------------+ * EventDispatcher+ * ----------------------------------------------------------------+ */+ var EventDispatcher = _class("events.EventDispatcher", function(target) {+ this._listeners = {};+ this._eventTarget = target || this;+ });+ p = EventDispatcher.prototype;++ p.addEventListener = function(type, callback, scope, useParam, priority) {+ priority = priority || 0;+ var list = this._listeners[type],+ index = 0,+ listener, i;+ if (list == null) {+ this._listeners[type] = list = [];+ }i = list.length;while (--i > -1) {- if (list[i].c === callback) {+ listener = list[i];+ if (listener.c === callback) {list.splice(i, 1);- return;+ } else if (index === 0 && listener.pr < priority) {+ index = i + 1;}}- }- };-- p.dispatchEvent = function(type) {- var list = this._listeners[type];- if (list) {- var i = list.length,- t = this._eventTarget,- listener;- while (--i > -1) {- listener = list[i];- if (listener.up) {- listener.c.call(listener.s || t, {type:type, target:t});- } else {- listener.c.call(listener.s || t);+ list.splice(index, 0, {c:callback, s:scope, up:useParam, pr:priority});+ };++ p.removeEventListener = function(type, callback) {+ var list = this._listeners[type], i;+ if (list) {+ i = list.length;+ while (--i > -1) {+ if (list[i].c === callback) {+ list.splice(i, 1);+ return;+ }}}- }- };--- /*- * ----------------------------------------------------------------- * Ticker- * ----------------------------------------------------------------- */- var _reqAnimFrame = window.requestAnimationFrame,- _cancelAnimFrame = window.cancelAnimationFrame,- _getTime = Date.now || function() {return new Date().getTime();};-- //now try to determine the requestAnimationFrame and cancelAnimationFrame functions and if none are found, we'll use a setTimeout()/clearTimeout() polyfill.- a = ["ms","moz","webkit","o"];- i = a.length;- while (--i > -1 && !_reqAnimFrame) {- _reqAnimFrame = window[a[i] + "RequestAnimationFrame"];- _cancelAnimFrame = window[a[i] + "CancelAnimationFrame"] || window[a[i] + "CancelRequestAnimationFrame"];- }-- _class("Ticker", function(fps, useRAF) {- var _self = this,- _startTime = _getTime(),- _useRAF = (useRAF !== false && _reqAnimFrame),- _fps, _req, _id, _gap, _nextTime,- _cancelReq = function() {- if (_id == null) {- return;- }- if (!_useRAF || !_cancelAnimFrame) {- window.clearTimeout(_id);- } else {- _cancelAnimFrame(_id);+ };++ p.dispatchEvent = function(type) {+ var list = this._listeners[type];+ if (list) {+ var i = list.length,+ t = this._eventTarget,+ listener;+ while (--i > -1) {+ listener = list[i];+ if (listener.up) {+ listener.c.call(listener.s || t, {type:type, target:t});+ } else {+ listener.c.call(listener.s || t);+ }}- _id = null;- },- _tick = function(manual) {- _self.time = (_getTime() - _startTime) / 1000;- if (!_fps || _self.time >= _nextTime || (manual === true)) {- _self.frame++;- _nextTime = (_self.time > _nextTime) ? _self.time + _gap - (_self.time - _nextTime) : _self.time + _gap - 0.001;- if (_nextTime < _self.time + 0.001) {- _nextTime = _self.time + 0.001;+ }+ };+++/*+ * ----------------------------------------------------------------+ * Ticker+ * ----------------------------------------------------------------+ */+ var _reqAnimFrame = window.requestAnimationFrame,+ _cancelAnimFrame = window.cancelAnimationFrame,+ _getTime = Date.now || function() {return new Date().getTime();};++ //now try to determine the requestAnimationFrame and cancelAnimationFrame functions and if none are found, we'll use a setTimeout()/clearTimeout() polyfill.+ a = ["ms","moz","webkit","o"];+ i = a.length;+ while (--i > -1 && !_reqAnimFrame) {+ _reqAnimFrame = window[a[i] + "RequestAnimationFrame"];+ _cancelAnimFrame = window[a[i] + "CancelAnimationFrame"] || window[a[i] + "CancelRequestAnimationFrame"];+ }++ _class("Ticker", function(fps, useRAF) {+ var _self = this,+ _startTime = _getTime(),+ _useRAF = (useRAF !== false && _reqAnimFrame),+ _fps, _req, _id, _gap, _nextTime,+ _cancelReq = function() {+ if (_id == null) {+ return;+ }+ if (!_useRAF || !_cancelAnimFrame) {+ window.clearTimeout(_id);+ } else {+ _cancelAnimFrame(_id);}- _self.dispatchEvent("tick");+ _id = null;+ },+ _tick = function(manual) {+ _self.time = (_getTime() - _startTime) / 1000;+ if (!_fps || _self.time >= _nextTime || (manual === true)) {+ _self.frame++;+ _nextTime = (_self.time > _nextTime) ? _self.time + _gap - (_self.time - _nextTime) : _self.time + _gap - 0.001;+ if (_nextTime < _self.time + 0.001) {+ _nextTime = _self.time + 0.001;+ }+ _self.dispatchEvent("tick");+ }+ if (manual !== true) {+ _id = _req(_tick);+ }+ };++ EventDispatcher.call(_self);+ this.time = this.frame = 0;+ this.tick = function() {+ _tick(true);+ };++ this.fps = function(value) {+ if (!arguments.length) {+ return _fps;}- if (manual !== true) {- _id = _req(_tick);+ _fps = value;+ _gap = 1 / (_fps || 60);+ _nextTime = this.time + _gap;+ _req = (_fps === 0) ? function(f){} : (!_useRAF || !_reqAnimFrame) ? function(f) { return window.setTimeout( f, (((_nextTime - _self.time) * 1000 + 1) >> 0) || 1); } : _reqAnimFrame;+ _cancelReq();+ _id = _req(_tick);+ };++ this.useRAF = function(value) {+ if (!arguments.length) {+ return _useRAF;}+ _cancelReq();+ _useRAF = value;+ _self.fps(_fps);};+ _self.fps(fps);- EventDispatcher.call(_self);- this.time = this.frame = 0;- this.tick = function() {- _tick(true);- };+ //a bug in iOS 6 Safari occasionally prevents the requestAnimationFrame from working initially, so we use a 1-second timeout that automatically falls back to setTimeout() if it senses this condition.+ window.setTimeout(function() {+ if (_useRAF && !_id) {+ _self.useRAF(false);+ }+ }, 1000);+ });- this.fps = function(value) {- if (!arguments.length) {- return _fps;- }- _fps = value;- _gap = 1 / (_fps || 60);- _nextTime = this.time + _gap;- _req = (_fps === 0) ? function(f){} : (!_useRAF || !_reqAnimFrame) ? function(f) { return window.setTimeout( f, (((_nextTime - _self.time) * 1000 + 1) >> 0) || 1); } : _reqAnimFrame;- _cancelReq();- _id = _req(_tick);- };+ p = gs.Ticker.prototype = new gs.events.EventDispatcher();+ p.constructor = gs.Ticker;- this.useRAF = function(value) {- if (!arguments.length) {- return _useRAF;- }- _cancelReq();- _useRAF = value;- _self.fps(_fps);- };- _self.fps(fps);- //a bug in iOS 6 Safari occasionally prevents the requestAnimationFrame from working initially, so we use a 1-second timeout that automatically falls back to setTimeout() if it senses this condition.- window.setTimeout(function() {- if (_useRAF && !_id) {- _self.useRAF(false);- }- }, 1000);- });+/*+ * ----------------------------------------------------------------+ * Animation+ * ----------------------------------------------------------------+ */+ var Animation = _class("core.Animation", function(duration, vars) {+ this.vars = vars || {};+ this._duration = this._totalDuration = duration || 0;+ this._delay = Number(this.vars.delay) || 0;+ this._timeScale = 1;+ this._active = (this.vars.immediateRender === true);+ this.data = this.vars.data;+ this._reversed = (this.vars.reversed === true);++ if (!_rootTimeline) {+ return;+ }+ if (!_gsInit) {+ _ticker.tick(); //the first time an animation (tween or timeline) is created, we should refresh the time in order to avoid a gap. The Ticker's initial time that it records might be very early in the load process and the user may have loaded several other large scripts in the mean time, but we want tweens to act as though they started when the page's onload was fired. Also remember that the requestAnimationFrame likely won't be called until the first screen redraw.+ _gsInit = true;+ }- p = gs.Ticker.prototype = new gs.events.EventDispatcher();- p.constructor = gs.Ticker;+ var tl = this.vars.useFrames ? _rootFramesTimeline : _rootTimeline;+ tl.insert(this, tl._time);+ if (this.vars.paused) {+ this.paused(true);+ }+ }),+ _ticker = Animation.ticker = new gs.Ticker();- /*- * ----------------------------------------------------------------- * Animation- * ----------------------------------------------------------------- */- var Animation = _class("core.Animation", function(duration, vars) {- this.vars = vars || {};- this._duration = this._totalDuration = duration || 0;- this._delay = Number(this.vars.delay) || 0;- this._timeScale = 1;- this._active = (this.vars.immediateRender === true);- this.data = this.vars.data;- this._reversed = (this.vars.reversed === true);+ p = Animation.prototype;+ p._dirty = p._gc = p._initted = p._paused = false;+ p._totalTime = p._time = 0;+ p._rawPrevTime = -1;+ p._next = p._last = p._onUpdate = p._timeline = p.timeline = null;+ p._paused = false;- if (!_rootTimeline) {- return;- }- if (!_gsInit) {- _ticker.tick(); //the first time an animation (tween or timeline) is created, we should refresh the time in order to avoid a gap. The Ticker's initial time that it records might be very early in the load process and the user may have loaded several other large scripts in the mean time, but we want tweens to act as though they started when the page's onload was fired. Also remember that the requestAnimationFrame likely won't be called until the first screen redraw.- _gsInit = true;+ p.play = function(from, suppressEvents) {+ if (arguments.length) {+ this.seek(from, suppressEvents);}+ this.reversed(false);+ return this.paused(false);+ };- var tl = this.vars.useFrames ? _rootFramesTimeline : _rootTimeline;- tl.insert(this, tl._time);-- if (this.vars.paused) {- this.paused(true);+ p.pause = function(atTime, suppressEvents) {+ if (arguments.length) {+ this.seek(atTime, suppressEvents);}- }),- _ticker = Animation.ticker = new gs.Ticker();+ return this.paused(true);+ };- p = Animation.prototype;- p._dirty = p._gc = p._initted = p._paused = false;- p._totalTime = p._time = 0;- p._rawPrevTime = -1;- p._next = p._last = p._onUpdate = p._timeline = p.timeline = null;- p._paused = false;+ p.resume = function(from, suppressEvents) {+ if (arguments.length) {+ this.seek(from, suppressEvents);+ }+ return this.paused(false);+ };- p.play = function(from, suppressEvents) {- if (arguments.length) {- this.seek(from, suppressEvents);- }- this.reversed(false);- return this.paused(false);- };+ p.seek = function(time, suppressEvents) {+ return this.totalTime(Number(time), (suppressEvents !== false));+ };- p.pause = function(atTime, suppressEvents) {- if (arguments.length) {- this.seek(atTime, suppressEvents);- }- return this.paused(true);- };+ p.restart = function(includeDelay, suppressEvents) {+ this.reversed(false);+ this.paused(false);+ return this.totalTime((includeDelay) ? -this._delay : 0, (suppressEvents !== false));+ };- p.resume = function(from, suppressEvents) {- if (arguments.length) {- this.seek(from, suppressEvents);- }- return this.paused(false);- };-- p.seek = function(time, suppressEvents) {- return this.totalTime(Number(time), (suppressEvents != false));- };-- p.restart = function(includeDelay, suppressEvents) {- this.reversed(false);- this.paused(false);- return this.totalTime((includeDelay) ? -this._delay : 0, (suppressEvents !== false));- };-- p.reverse = function(from, suppressEvents) {- if (arguments.length) {- this.seek((from || this.totalDuration()), suppressEvents);- }- this.reversed(true);- return this.paused(false);- };+ p.reverse = function(from, suppressEvents) {+ if (arguments.length) {+ this.seek((from || this.totalDuration()), suppressEvents);+ }+ this.reversed(true);+ return this.paused(false);+ };- p.render = function() {+ p.render = function() {- };+ };- p.invalidate = function() {- return this;- };+ p.invalidate = function() {+ return this;+ };- p._enabled = function (enabled, ignoreTimeline) {- this._gc = !enabled;- this._active = (enabled && !this._paused && this._totalTime > 0 && this._totalTime < this._totalDuration);- if (ignoreTimeline !== true) {- if (enabled && this.timeline == null) {- this._timeline.insert(this, this._startTime - this._delay);- } else if (!enabled && this.timeline != null) {- this._timeline._remove(this, true);+ p._enabled = function (enabled, ignoreTimeline) {+ this._gc = !enabled;+ this._active = (enabled && !this._paused && this._totalTime > 0 && this._totalTime < this._totalDuration);+ if (ignoreTimeline !== true) {+ if (enabled && this.timeline == null) {+ this._timeline.insert(this, this._startTime - this._delay);+ } else if (!enabled && this.timeline != null) {+ this._timeline._remove(this, true);+ }}- }- return false;- };+ return false;+ };- p._kill = function(vars, target) {- return this._enabled(false, false);- };+ p._kill = function(vars, target) {+ return this._enabled(false, false);+ };- p.kill = function(vars, target) {- this._kill(vars, target);- return this;- };+ p.kill = function(vars, target) {+ this._kill(vars, target);+ return this;+ };- p._uncache = function(includeSelf) {- var tween = includeSelf ? this : this.timeline;- while (tween) {- tween._dirty = true;- tween = tween.timeline;- }- return this;- };+ p._uncache = function(includeSelf) {+ var tween = includeSelf ? this : this.timeline;+ while (tween) {+ tween._dirty = true;+ tween = tween.timeline;+ }+ return this;+ };//----Animation getters/setters --------------------------------------------------------- p.eventCallback = function(type, callback, params, scope) {- if (type == null) {- return null;- } else if (type.substr(0,2) === "on") {- if (arguments.length === 1) {- return this.vars[type];- }- if (callback == null) {- delete this.vars[type];- } else {- this.vars[type] = callback;- this.vars[type + "Params"] = params;- this.vars[type + "Scope"] = scope;- if (params) {- var i = params.length;- while (--i > -1) {- if (params[i] === "{self}") {- params = this.vars[type + "Params"] = params.concat(); //copying the array avoids situations where the same array is passed to multiple tweens/timelines and {self} doesn't correctly point to each individual instance.- params[i] = this;+ p.eventCallback = function(type, callback, params, scope) {+ if (type == null) {+ return null;+ } else if (type.substr(0,2) === "on") {+ if (arguments.length === 1) {+ return this.vars[type];+ }+ if (callback == null) {+ delete this.vars[type];+ } else {+ this.vars[type] = callback;+ this.vars[type + "Params"] = params;+ this.vars[type + "Scope"] = scope;+ if (params) {+ var i = params.length;+ while (--i > -1) {+ if (params[i] === "{self}") {+ params = this.vars[type + "Params"] = params.concat(); //copying the array avoids situations where the same array is passed to multiple tweens/timelines and {self} doesn't correctly point to each individual instance.+ params[i] = this;+ }}}}+ if (type === "onUpdate") {+ this._onUpdate = callback;+ }}- if (type === "onUpdate") {- this._onUpdate = callback;+ return this;+ };++ p.delay = function(value) {+ if (!arguments.length) {+ return this._delay;}- }- return this;- };+ if (this._timeline.smoothChildTiming) {+ this.startTime( this._startTime + value - this._delay );+ }+ this._delay = value;+ return this;+ };- p.delay = function(value) {- if (!arguments.length) {- return this._delay;- }- if (this._timeline.smoothChildTiming) {- this.startTime( this._startTime + value - this._delay );- }- this._delay = value;- return this;- };+ p.duration = function(value) {+ if (!arguments.length) {+ this._dirty = false;+ return this._duration;+ }+ this._duration = this._totalDuration = value;+ this._uncache(true); //true in case it's a TweenMax or TimelineMax that has a repeat - we'll need to refresh the totalDuration.+ if (this._timeline.smoothChildTiming) if (this._time > 0) if (this._time < this._duration) if (value !== 0) {+ this.totalTime(this._totalTime * (value / this._duration), true);+ }+ return this;+ };- p.duration = function(value) {- if (!arguments.length) {+ p.totalDuration = function(value) {this._dirty = false;- return this._duration;- }- this._duration = this._totalDuration = value;- this._uncache(true); //true in case it's a TweenMax or TimelineMax that has a repeat - we'll need to refresh the totalDuration.- if (this._timeline.smoothChildTiming) if (this._time > 0) if (this._time < this._duration) if (value !== 0) {- this.totalTime(this._totalTime * (value / this._duration), true);- }- return this;- };-- p.totalDuration = function(value) {- this._dirty = false;- return (!arguments.length) ? this._totalDuration : this.duration(value);- };+ return (!arguments.length) ? this._totalDuration : this.duration(value);+ };- p.time = function(value, suppressEvents) {- if (!arguments.length) {- return this._time;- }- if (this._dirty) {- this.totalDuration();- }- if (value > this._duration) {- value = this._duration;- }- return this.totalTime(value, suppressEvents);- };+ p.time = function(value, suppressEvents) {+ if (!arguments.length) {+ return this._time;+ }+ if (this._dirty) {+ this.totalDuration();+ }+ if (value > this._duration) {+ value = this._duration;+ }+ return this.totalTime(value, suppressEvents);+ };- p.totalTime = function(time, suppressEvents) {- if (!arguments.length) {- return this._totalTime;- }- if (this._timeline) {- if (time < 0) {- time += this.totalDuration();+ p.totalTime = function(time, suppressEvents) {+ if (!arguments.length) {+ return this._totalTime;}- if (this._timeline.smoothChildTiming) {- if (this._dirty) {- this.totalDuration();+ if (this._timeline) {+ if (time < 0) {+ time += this.totalDuration();}- if (time > this._totalDuration) {- time = this._totalDuration;+ if (this._timeline.smoothChildTiming) {+ if (this._dirty) {+ this.totalDuration();+ }+ if (time > this._totalDuration) {+ time = this._totalDuration;+ }+ this._startTime = (this._paused ? this._pauseTime : this._timeline._time) - ((!this._reversed ? time : this._totalDuration - time) / this._timeScale);+ if (!this._timeline._dirty) { //for performance improvement. If the parent's cache is already dirty, it already took care of marking the anscestors as dirty too, so skip the function call here.+ this._uncache(false);+ }+ if (!this._timeline._active) {+ //in case any of the anscestors had completed but should now be enabled...+ var tl = this._timeline;+ while (tl._timeline) {+ tl.totalTime(tl._totalTime, true);+ tl = tl._timeline;+ }+ }}- this._startTime = (this._paused ? this._pauseTime : this._timeline._time) - ((!this._reversed ? time : this._totalDuration - time) / this._timeScale);- if (!this._timeline._dirty) { //for performance improvement. If the parent's cache is already dirty, it already took care of marking the anscestors as dirty too, so skip the function call here.- this._uncache(false);+ if (this._gc) {+ this._enabled(true, false);}- if (!this._timeline._active) {- //in case any of the anscestors had completed but should now be enabled...- var tl = this._timeline;- while (tl._timeline) {- tl.totalTime(tl._totalTime, true);- tl = tl._timeline;- }+ if (this._totalTime !== time) {+ this.render(time, suppressEvents, false);}}- if (this._gc) {- this._enabled(true, false);+ return this;+ };++ p.startTime = function(value) {+ if (!arguments.length) {+ return this._startTime;}- if (this._totalTime !== time) {- this.render(time, suppressEvents, false);+ if (value !== this._startTime) {+ this._startTime = value;+ if (this.timeline) if (this.timeline._sortChildren) {+ this.timeline.insert(this, value - this._delay); //ensures that any necessary re-sequencing of Animations in the timeline occurs to make sure the rendering order is correct.+ }}- }- return this;- };+ return this;+ };- p.startTime = function(value) {- if (!arguments.length) {- return this._startTime;- }- if (value != this._startTime) {- this._startTime = value;- if (this.timeline) if (this.timeline._sortChildren) {- this.timeline.insert(this, value - this._delay); //ensures that any necessary re-sequencing of Animations in the timeline occurs to make sure the rendering order is correct.+ p.timeScale = function(value) {+ if (!arguments.length) {+ return this._timeScale;}- }- return this;- };-- p.timeScale = function(value) {- if (!arguments.length) {- return this._timeScale;- }- value = value || 0.000001; //can't allow zero because it'll throw the math off- if (this._timeline && this._timeline.smoothChildTiming) {- var t = (this._pauseTime || this._pauseTime === 0) ? this._pauseTime : this._timeline._totalTime;- this._startTime = t - ((t - this._startTime) * this._timeScale / value);- }- this._timeScale = value;- return this._uncache(false);- };-- p.reversed = function(value) {- if (!arguments.length) {- return this._reversed;- }- if (value !== this._reversed) {- this._reversed = value;- this.totalTime(this._totalTime, true);- }- return this;- };+ value = value || 0.000001; //can't allow zero because it'll throw the math off+ if (this._timeline && this._timeline.smoothChildTiming) {+ var t = (this._pauseTime || this._pauseTime === 0) ? this._pauseTime : this._timeline._totalTime;+ this._startTime = t - ((t - this._startTime) * this._timeScale / value);+ }+ this._timeScale = value;+ return this._uncache(false);+ };- p.paused = function(value) {- if (!arguments.length) {- return this._paused;- }- if (value !== this._paused) if (this._timeline) {- if (!value && this._timeline.smoothChildTiming) {- this._startTime += this._timeline.rawTime() - this._pauseTime;- this._uncache(false);+ p.reversed = function(value) {+ if (!arguments.length) {+ return this._reversed;}- this._pauseTime = (value) ? this._timeline.rawTime() : null;- this._paused = value;- this._active = (!this._paused && this._totalTime > 0 && this._totalTime < this._totalDuration);- }- if (this._gc) if (!value) {- this._enabled(true, false);- }- return this;- };--- /*- * ----------------------------------------------------------------- * SimpleTimeline- * ----------------------------------------------------------------- */- var SimpleTimeline = _class("core.SimpleTimeline", function(vars) {- Animation.call(this, 0, vars);- this.autoRemoveChildren = this.smoothChildTiming = true;- });-- p = SimpleTimeline.prototype = new Animation();- p.constructor = SimpleTimeline;- p.kill()._gc = false;- p._first = p._last = null;- p._sortChildren = false;-- p.insert = function(tween, time) {- tween._startTime = Number(time || 0) + tween._delay;- if (tween._paused) if (this !== tween._timeline) { //we only adjust the _pauseTime if it wasn't in this timeline already. Remember, sometimes a tween will be inserted again into the same timeline when its startTime is changed so that the tweens in the TimelineLite/Max are re-ordered properly in the linked list (so everything renders in the proper order).- tween._pauseTime = tween._startTime + ((this.rawTime() - tween._startTime) / tween._timeScale);- }- if (tween.timeline) {- tween.timeline._remove(tween, true); //removes from existing timeline so that it can be properly added to this one.- }- tween.timeline = tween._timeline = this;- if (tween._gc) {- tween._enabled(true, true);- }+ if (value !== this._reversed) {+ this._reversed = value;+ this.totalTime(this._totalTime, true);+ }+ return this;+ };- var prevTween = this._last;- if (this._sortChildren) {- var st = tween._startTime;- while (prevTween && prevTween._startTime > st) {- prevTween = prevTween._prev;+ p.paused = function(value) {+ if (!arguments.length) {+ return this._paused;}- }- if (prevTween) {- tween._next = prevTween._next;- prevTween._next = tween;- } else {- tween._next = this._first;- this._first = tween;- }- if (tween._next) {- tween._next._prev = tween;- } else {- this._last = tween;- }- tween._prev = prevTween;+ if (value !== this._paused) if (this._timeline) {+ if (!value && this._timeline.smoothChildTiming) {+ this._startTime += this._timeline.rawTime() - this._pauseTime;+ this._uncache(false);+ }+ this._pauseTime = (value) ? this._timeline.rawTime() : null;+ this._paused = value;+ this._active = (!this._paused && this._totalTime > 0 && this._totalTime < this._totalDuration);+ }+ if (this._gc) if (!value) {+ this._enabled(true, false);+ }+ return this;+ };- if (this._timeline) {- this._uncache(true);- }- return this;- };- p._remove = function(tween, skipDisable) {- if (tween.timeline === this) {- if (!skipDisable) {- tween._enabled(false, true);+/*+ * ----------------------------------------------------------------+ * SimpleTimeline+ * ----------------------------------------------------------------+ */+ var SimpleTimeline = _class("core.SimpleTimeline", function(vars) {+ Animation.call(this, 0, vars);+ this.autoRemoveChildren = this.smoothChildTiming = true;+ });++ p = SimpleTimeline.prototype = new Animation();+ p.constructor = SimpleTimeline;+ p.kill()._gc = false;+ p._first = p._last = null;+ p._sortChildren = false;++ p.insert = function(tween, time) {+ tween._startTime = Number(time || 0) + tween._delay;+ if (tween._paused) if (this !== tween._timeline) { //we only adjust the _pauseTime if it wasn't in this timeline already. Remember, sometimes a tween will be inserted again into the same timeline when its startTime is changed so that the tweens in the TimelineLite/Max are re-ordered properly in the linked list (so everything renders in the proper order).+ tween._pauseTime = tween._startTime + ((this.rawTime() - tween._startTime) / tween._timeScale);+ }+ if (tween.timeline) {+ tween.timeline._remove(tween, true); //removes from existing timeline so that it can be properly added to this one.+ }+ tween.timeline = tween._timeline = this;+ if (tween._gc) {+ tween._enabled(true, true);}- tween.timeline = null;- if (tween._prev) {- tween._prev._next = tween._next;- } else if (this._first === tween) {- this._first = tween._next;+ var prevTween = this._last;+ if (this._sortChildren) {+ var st = tween._startTime;+ while (prevTween && prevTween._startTime > st) {+ prevTween = prevTween._prev;+ }+ }+ if (prevTween) {+ tween._next = prevTween._next;+ prevTween._next = tween;+ } else {+ tween._next = this._first;+ this._first = tween;}if (tween._next) {- tween._next._prev = tween._prev;- } else if (this._last === tween) {- this._last = tween._prev;+ tween._next._prev = tween;+ } else {+ this._last = tween;}+ tween._prev = prevTween;if (this._timeline) {this._uncache(true);}- }- return this;- };-- p.render = function(time, suppressEvents, force) {- var tween = this._first,- next;- this._totalTime = this._time = this._rawPrevTime = time;- while (tween) {- next = tween._next; //record it here because the value could change after rendering...- if (tween._active || (time >= tween._startTime && !tween._paused)) {- if (!tween._reversed) {- tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, false);- } else {- tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, false);- }- }- tween = next;- }- };-- p.rawTime = function() {- return this._totalTime;- };--- /*- * ----------------------------------------------------------------- * TweenLite- * ----------------------------------------------------------------- */- var TweenLite = _class("TweenLite", function(target, duration, vars) {- Animation.call(this, duration, vars);-- if (target == null) {- throw "Cannot tween an undefined reference.";- }- this.target = target;+ return this;+ };- this._overwrite = (this.vars.overwrite == null) ? _overwriteLookup[TweenLite.defaultOverwrite] : (typeof(this.vars.overwrite) === "number") ? this.vars.overwrite >> 0 : _overwriteLookup[this.vars.overwrite];+ p._remove = function(tween, skipDisable) {+ if (tween.timeline === this) {+ if (!skipDisable) {+ tween._enabled(false, true);+ }+ tween.timeline = null;- var jq, i, targ;- if ((target instanceof Array || target.jquery) && typeof(target[0]) === "object") {- this._targets = target.slice(0); //works for both jQuery and Array instances- this._propLookup = [];- this._siblings = [];- for (i = 0; i < this._targets.length; i++) {- targ = this._targets[i];- //in case the user is passing in an array of jQuery objects, for example, we need to check one more level and pull things out if necessary...- if (targ.jquery) {- this._targets.splice(i--, 1);- this._targets = this._targets.concat(targ.constructor.makeArray(targ));- continue;+ if (tween._prev) {+ tween._prev._next = tween._next;+ } else if (this._first === tween) {+ this._first = tween._next;+ }+ if (tween._next) {+ tween._next._prev = tween._prev;+ } else if (this._last === tween) {+ this._last = tween._prev;}- this._siblings[i] = _register(targ, this, false);- if (this._overwrite === 1) if (this._siblings[i].length > 1) {- _applyOverwrite(targ, this, null, 1, this._siblings[i]);++ if (this._timeline) {+ this._uncache(true);}}+ return this;+ };- } else {- this._propLookup = {};- this._siblings = _register(target, this, false);- if (this._overwrite === 1) if (this._siblings.length > 1) {- _applyOverwrite(target, this, null, 1, this._siblings);+ p.render = function(time, suppressEvents, force) {+ var tween = this._first,+ next;+ this._totalTime = this._time = this._rawPrevTime = time;+ while (tween) {+ next = tween._next; //record it here because the value could change after rendering...+ if (tween._active || (time >= tween._startTime && !tween._paused)) {+ if (!tween._reversed) {+ tween.render((time - tween._startTime) * tween._timeScale, suppressEvents, false);+ } else {+ tween.render(((!tween._dirty) ? tween._totalDuration : tween.totalDuration()) - ((time - tween._startTime) * tween._timeScale), suppressEvents, false);+ }+ }+ tween = next;}- }+ };- if (this.vars.immediateRender || (duration === 0 && this._delay === 0 && this.vars.immediateRender !== false)) {- this.render(-this._delay, false, true);- }- }, true);+ p.rawTime = function() {+ return this._totalTime;+ };- p = TweenLite.prototype = new Animation();- p.constructor = TweenLite;- p.kill()._gc = false;-//----TweenLite defaults, overwrite management, and root updates ----------------------------------------------------+/*+ * ----------------------------------------------------------------+ * TweenLite+ * ----------------------------------------------------------------+ */+ var TweenLite = _class("TweenLite", function(target, duration, vars) {+ Animation.call(this, duration, vars);++ if (target == null) {+ throw "Cannot tween an undefined reference.";+ }+ this.target = target;++ this._overwrite = (this.vars.overwrite == null) ? _overwriteLookup[TweenLite.defaultOverwrite] : (typeof(this.vars.overwrite) === "number") ? this.vars.overwrite >> 0 : _overwriteLookup[this.vars.overwrite];++ var jq, i, targ;+ if ((target instanceof Array || target.jquery) && typeof(target[0]) === "object") {+ this._targets = target.slice(0); //works for both jQuery and Array instances+ this._propLookup = [];+ this._siblings = [];+ for (i = 0; i < this._targets.length; i++) {+ targ = this._targets[i];+ //in case the user is passing in an array of jQuery objects, for example, we need to check one more level and pull things out if necessary...+ if (targ.jquery) {+ this._targets.splice(i--, 1);+ this._targets = this._targets.concat(targ.constructor.makeArray(targ));+ continue;+ }+ this._siblings[i] = _register(targ, this, false);+ if (this._overwrite === 1) if (this._siblings[i].length > 1) {+ _applyOverwrite(targ, this, null, 1, this._siblings[i]);+ }+ }- p.ratio = 0;- p._firstPT = p._targets = p._overwrittenProps = null;- p._notifyPluginsOfEnabled = false;-- TweenLite.version = 1.651;- TweenLite.defaultEase = p._ease = new Ease(null, null, 1, 1);- TweenLite.defaultOverwrite = "auto";- TweenLite.ticker = _ticker;-- var _plugins = TweenLite._plugins = {},- _tweenLookup = TweenLite._tweenLookup = {},- _tweenLookupNum = 0,- _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, orientToBezier:1, immediateRender:1, repeat:1, repeatDelay:1, data:1, paused:1, reversed:1},- _overwriteLookup = {none:0, all:1, auto:2, concurrent:3, allOnStart:4, preexisting:5, "true":1, "false":0},- _rootFramesTimeline = Animation._rootFramesTimeline = new SimpleTimeline(),- _rootTimeline = Animation._rootTimeline = new SimpleTimeline();-- _rootTimeline._startTime = _ticker.time;- _rootFramesTimeline._startTime = _ticker.frame;- _rootTimeline._active = _rootFramesTimeline._active = true;-- Animation._updateRoot = function() {- _rootTimeline.render((_ticker.time - _rootTimeline._startTime) * _rootTimeline._timeScale, false, false);- _rootFramesTimeline.render((_ticker.frame - _rootFramesTimeline._startTime) * _rootFramesTimeline._timeScale, false, false);- if (!(_ticker.frame % 120)) { //dump garbage every 120 frames...- var i, a, p;- for (p in _tweenLookup) {- a = _tweenLookup[p].tweens;- i = a.length;- while (--i > -1) {- if (a[i]._gc) {- a.splice(i, 1);+ } else {+ this._propLookup = {};+ this._siblings = _register(target, this, false);+ if (this._overwrite === 1) if (this._siblings.length > 1) {+ _applyOverwrite(target, this, null, 1, this._siblings);}}- if (a.length === 0) {- delete _tweenLookup[p];++ if (this.vars.immediateRender || (duration === 0 && this._delay === 0 && this.vars.immediateRender !== false)) {+ this.render(-this._delay, false, true);}- }- }- };+ }, true);- _ticker.addEventListener("tick", Animation._updateRoot);+ p = TweenLite.prototype = new Animation();+ p.constructor = TweenLite;+ p.kill()._gc = false;- var _register = function(target, tween, scrub) {- var id = target._gsTweenID, a, i;- if (!_tweenLookup[id || (target._gsTweenID = id = "t" + (_tweenLookupNum++))]) {- _tweenLookup[id] = {target:target, tweens:[]};- }- if (tween) {- a = _tweenLookup[id].tweens;- a[(i = a.length)] = tween;- if (scrub) {- while (--i > -1) {- if (a[i] === tween) {- a.splice(i, 1);+//----TweenLite defaults, overwrite management, and root updates ----------------------------------------------------++ p.ratio = 0;+ p._firstPT = p._targets = p._overwrittenProps = null;+ p._notifyPluginsOfEnabled = false;++ TweenLite.version = 1.663;+ TweenLite.defaultEase = p._ease = new Ease(null, null, 1, 1);+ TweenLite.defaultOverwrite = "auto";+ TweenLite.ticker = _ticker;++ var _plugins = TweenLite._plugins = {},+ _tweenLookup = TweenLite._tweenLookup = {},+ _tweenLookupNum = 0,+ _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, orientToBezier:1, immediateRender:1, repeat:1, repeatDelay:1, data:1, paused:1, reversed:1},+ _overwriteLookup = {none:0, all:1, auto:2, concurrent:3, allOnStart:4, preexisting:5, "true":1, "false":0},+ _rootFramesTimeline = Animation._rootFramesTimeline = new SimpleTimeline(),+ _rootTimeline = Animation._rootTimeline = new SimpleTimeline();++ _rootTimeline._startTime = _ticker.time;+ _rootFramesTimeline._startTime = _ticker.frame;+ _rootTimeline._active = _rootFramesTimeline._active = true;++ Animation._updateRoot = function() {+ _rootTimeline.render((_ticker.time - _rootTimeline._startTime) * _rootTimeline._timeScale, false, false);+ _rootFramesTimeline.render((_ticker.frame - _rootFramesTimeline._startTime) * _rootFramesTimeline._timeScale, false, false);+ if (!(_ticker.frame % 120)) { //dump garbage every 120 frames...+ var i, a, p;+ for (p in _tweenLookup) {+ a = _tweenLookup[p].tweens;+ i = a.length;+ while (--i > -1) {+ if (a[i]._gc) {+ a.splice(i, 1);+ }+ }+ if (a.length === 0) {+ delete _tweenLookup[p];}}}- }- return _tweenLookup[id].tweens;- },+ };- _applyOverwrite = function(target, tween, props, mode, siblings) {- var i, changed, curTween;- if (mode === 1 || mode >= 4) {- var l = siblings.length;- for (i = 0; i < l; i++) {- if ((curTween = siblings[i]) !== tween) {- if (!curTween._gc) if (curTween._enabled(false, false)) {- changed = true;+ _ticker.addEventListener("tick", Animation._updateRoot);++ var _register = function(target, tween, scrub) {+ var id = target._gsTweenID, a, i;+ if (!_tweenLookup[id || (target._gsTweenID = id = "t" + (_tweenLookupNum++))]) {+ _tweenLookup[id] = {target:target, tweens:[]};+ }+ if (tween) {+ a = _tweenLookup[id].tweens;+ a[(i = a.length)] = tween;+ if (scrub) {+ while (--i > -1) {+ if (a[i] === tween) {+ a.splice(i, 1);+ }}- } else if (mode === 5) {- break;}}- return changed;- }- //NOTE: Add 0.0000000001 to overcome floating point errors that can cause the startTime to be VERY slightly off (when a tween's time() is set for example)- var startTime = tween._startTime + 0.0000000001,- overlaps = [],- oCount = 0,- zeroDur = (tween._duration === 0),- globalStart;- i = siblings.length;- while (--i > -1) {- if ((curTween = siblings[i]) === tween || curTween._gc || curTween._paused) {- //ignore- } else if (curTween._timeline !== tween._timeline) {- globalStart = globalStart || _checkOverlap(tween, 0, zeroDur);- if (_checkOverlap(curTween, globalStart, zeroDur) === 0) {+ return _tweenLookup[id].tweens;+ },++ _applyOverwrite = function(target, tween, props, mode, siblings) {+ var i, changed, curTween, l;+ if (mode === 1 || mode >= 4) {+ l = siblings.length;+ for (i = 0; i < l; i++) {+ if ((curTween = siblings[i]) !== tween) {+ if (!curTween._gc) if (curTween._enabled(false, false)) {+ changed = true;+ }+ } else if (mode === 5) {+ break;+ }+ }+ return changed;+ }+ //NOTE: Add 0.0000000001 to overcome floating point errors that can cause the startTime to be VERY slightly off (when a tween's time() is set for example)+ var startTime = tween._startTime + 0.0000000001,+ overlaps = [],+ oCount = 0,+ zeroDur = (tween._duration === 0),+ globalStart;+ i = siblings.length;+ while (--i > -1) {+ if ((curTween = siblings[i]) === tween || curTween._gc || curTween._paused) {+ //ignore+ } else if (curTween._timeline !== tween._timeline) {+ globalStart = globalStart || _checkOverlap(tween, 0, zeroDur);+ if (_checkOverlap(curTween, globalStart, zeroDur) === 0) {+ overlaps[oCount++] = curTween;+ }+ } else if (curTween._startTime <= startTime) if (curTween._startTime + curTween.totalDuration() / curTween._timeScale + 0.0000000001 > startTime) if (!((zeroDur || !curTween._initted) && startTime - curTween._startTime <= 0.0000000002)) {overlaps[oCount++] = curTween;}- } else if (curTween._startTime <= startTime) if (curTween._startTime + curTween.totalDuration() / curTween._timeScale + 0.0000000001 > startTime) if (!((zeroDur || !curTween._initted) && startTime - curTween._startTime <= 0.0000000002)) {- overlaps[oCount++] = curTween;}- }- i = oCount;- while (--i > -1) {- curTween = overlaps[i];- if (mode === 2) if (curTween._kill(props, target)) {- changed = true;- }- if (mode !== 2 || (!curTween._firstPT && curTween._initted)) {- if (curTween._enabled(false, false)) { //if all property tweens have been overwritten, kill the tween.+ i = oCount;+ while (--i > -1) {+ curTween = overlaps[i];+ if (mode === 2) if (curTween._kill(props, target)) {changed = true;}+ if (mode !== 2 || (!curTween._firstPT && curTween._initted)) {+ if (curTween._enabled(false, false)) { //if all property tweens have been overwritten, kill the tween.+ changed = true;+ }+ }}- }- return changed;- },+ return changed;+ },- _checkOverlap = function(tween, reference, zeroDur) {- var tl = tween._timeline,- ts = tl._timeScale,- t = tween._startTime;- while (tl._timeline) {- t += tl._startTime;- ts *= tl._timeScale;- if (tl._paused) {- return -100;+ _checkOverlap = function(tween, reference, zeroDur) {+ var tl = tween._timeline,+ ts = tl._timeScale,+ t = tween._startTime;+ while (tl._timeline) {+ t += tl._startTime;+ ts *= tl._timeScale;+ if (tl._paused) {+ return -100;+ }+ tl = tl._timeline;}- tl = tl._timeline;- }- t /= ts;- return (t > reference) ? t - reference : ((zeroDur && t === reference) || (!tween._initted && t - reference < 0.0000000002)) ? 0.0000000001 : ((t = t + tween.totalDuration() / tween._timeScale / ts) > reference) ? 0 : t - reference - 0.0000000001;- };+ t /= ts;+ return (t > reference) ? t - reference : ((zeroDur && t === reference) || (!tween._initted && t - reference < 0.0000000002)) ? 0.0000000001 : ((t = t + tween.totalDuration() / tween._timeScale / ts) > reference) ? 0 : t - reference - 0.0000000001;+ };//---- TweenLite instance methods ------------------------------------------------------------------------------ p._init = function() {- if (this.vars.startAt) {- this.vars.startAt.overwrite = 0;- this.vars.startAt.immediateRender = true;- TweenLite.to(this.target, 0, this.vars.startAt);- }- var i, initPlugins, pt;- if (this.vars.ease instanceof Ease) {- this._ease = (this.vars.easeParams instanceof Array) ? this.vars.ease.config.apply(this.vars.ease, this.vars.easeParams) : this.vars.ease;- } else if (typeof(this.vars.ease) === "function") {- this._ease = new Ease(this.vars.ease, this.vars.easeParams);- } else {- this._ease = TweenLite.defaultEase;- }- this._easeType = this._ease._type;- this._easePower = this._ease._power;- this._firstPT = null;+ p._init = function() {+ if (this.vars.startAt) {+ this.vars.startAt.overwrite = 0;+ this.vars.startAt.immediateRender = true;+ TweenLite.to(this.target, 0, this.vars.startAt);+ }+ var i, initPlugins, pt;+ if (this.vars.ease instanceof Ease) {+ this._ease = (this.vars.easeParams instanceof Array) ? this.vars.ease.config.apply(this.vars.ease, this.vars.easeParams) : this.vars.ease;+ } else if (typeof(this.vars.ease) === "function") {+ this._ease = new Ease(this.vars.ease, this.vars.easeParams);+ } else {+ this._ease = TweenLite.defaultEase;+ }+ this._easeType = this._ease._type;+ this._easePower = this._ease._power;+ this._firstPT = null;- if (this._targets) {- i = this._targets.length;- while (--i > -1) {- if ( this._initProps( this._targets[i], (this._propLookup[i] = {}), this._siblings[i], (this._overwrittenProps ? this._overwrittenProps[i] : null)) ) {- initPlugins = true;+ if (this._targets) {+ i = this._targets.length;+ while (--i > -1) {+ if ( this._initProps( this._targets[i], (this._propLookup[i] = {}), this._siblings[i], (this._overwrittenProps ? this._overwrittenProps[i] : null)) ) {+ initPlugins = true;+ }}+ } else {+ initPlugins = this._initProps(this.target, this._propLookup, this._siblings, this._overwrittenProps);}- } else {- initPlugins = this._initProps(this.target, this._propLookup, this._siblings, this._overwrittenProps);- }- if (initPlugins) {- TweenLite._onPluginEvent("_onInitAllProps", this); //reorders the array in order of priority. Uses a static TweenPlugin method in order to minimize file size in TweenLite- }- if (this._overwrittenProps) if (this._firstPT == null) if (typeof(this.target) !== "function") { //if all tweening properties have been overwritten, kill the tween. If the target is a function, it's probably a delayedCall so let it live.- this._enabled(false, false);- }- if (this.vars.runBackwards) {- pt = this._firstPT;- while (pt) {- pt.s += pt.c;- pt.c = -pt.c;- pt = pt._next;+ if (initPlugins) {+ TweenLite._onPluginEvent("_onInitAllProps", this); //reorders the array in order of priority. Uses a static TweenPlugin method in order to minimize file size in TweenLite}- }- this._onUpdate = this.vars.onUpdate;- this._initted = true;- };+ if (this._overwrittenProps) if (this._firstPT == null) if (typeof(this.target) !== "function") { //if all tweening properties have been overwritten, kill the tween. If the target is a function, it's probably a delayedCall so let it live.+ this._enabled(false, false);+ }+ if (this.vars.runBackwards) {+ pt = this._firstPT;+ while (pt) {+ pt.s += pt.c;+ pt.c = -pt.c;+ pt = pt._next;+ }+ }+ this._onUpdate = this.vars.onUpdate;+ this._initted = true;+ };- p._initProps = function(target, propLookup, siblings, overwrittenProps) {- var p, i, initPlugins, plugin, a, pt, v;- if (target == null) {- return false;- }- for (p in this.vars) {- if (_reservedProps[p]) {- if (p === "onStartParams" || p === "onUpdateParams" || p === "onCompleteParams" || p === "onReverseCompleteParams" || p === "onRepeatParams") if ((a = this.vars[p])) {- i = a.length;- while (--i > -1) {- if (a[i] === "{self}") {- a = this.vars[p] = a.concat(); //copy the array in case the user referenced the same array in multiple tweens/timelines (each {self} should be unique)- a[i] = this;+ p._initProps = function(target, propLookup, siblings, overwrittenProps) {+ var p, i, initPlugins, plugin, a, pt, v;+ if (target == null) {+ return false;+ }+ for (p in this.vars) {+ if (_reservedProps[p]) {+ if (p === "onStartParams" || p === "onUpdateParams" || p === "onCompleteParams" || p === "onReverseCompleteParams" || p === "onRepeatParams") if ((a = this.vars[p])) {+ i = a.length;+ while (--i > -1) {+ if (a[i] === "{self}") {+ a = this.vars[p] = a.concat(); //copy the array in case the user referenced the same array in multiple tweens/timelines (each {self} should be unique)+ a[i] = this;+ }}}- }- } else if (_plugins[p] && (plugin = new _plugins[p]())._onInitTween(target, this.vars[p], this)) {+ } else if (_plugins[p] && (plugin = new _plugins[p]())._onInitTween(target, this.vars[p], this)) {++ //t - target [object]+ //p - property [string]+ //s - start [number]+ //c - change [number]+ //f - isFunction [boolean]+ //n - name [string]+ //pg - isPlugin [boolean]+ //pr - priority [number]+ this._firstPT = pt = {_next:this._firstPT, t:plugin, p:"setRatio", s:0, c:1, f:true, n:p, pg:true, pr:plugin._priority};+ i = plugin._overwriteProps.length;+ while (--i > -1) {+ propLookup[plugin._overwriteProps[i]] = this._firstPT;+ }+ if (plugin._priority || plugin._onInitAllProps) {+ initPlugins = true;+ }+ if (plugin._onDisable || plugin._onEnable) {+ this._notifyPluginsOfEnabled = true;+ }- //t - target [object]- //p - property [string]- //s - start [number]- //c - change [number]- //f - isFunction [boolean]- //n - name [string]- //pg - isPlugin [boolean]- //pr - priority [number]- this._firstPT = pt = {_next:this._firstPT, t:plugin, p:"setRatio", s:0, c:1, f:true, n:p, pg:true, pr:plugin._priority};- i = plugin._overwriteProps.length;- while (--i > -1) {- propLookup[plugin._overwriteProps[i]] = this._firstPT;- }- if (plugin._priority || plugin._onInitAllProps) {- initPlugins = true;+ } else {+ this._firstPT = propLookup[p] = pt = {_next:this._firstPT, t:target, p:p, f:(typeof(target[p]) === "function"), n:p, pg:false, pr:0};+ pt.s = (!pt.f) ? parseFloat(target[p]) : target[ ((p.indexOf("set") || typeof(target["get" + p.substr(3)]) !== "function") ? p : "get" + p.substr(3)) ]();+ v = this.vars[p];+ pt.c = (typeof(v) === "number") ? v - pt.s : (typeof(v) === "string" && v.charAt(1) === "=") ? parseInt(v.charAt(0)+"1", 10) * Number(v.substr(2)) : Number(v) || 0; //previously, we used Number(v.split("=").join("")) but that wouldn't adequately handle a value like "+=-500" or "-=-500".}- if (plugin._onDisable || plugin._onEnable) {- this._notifyPluginsOfEnabled = true;+ if (pt) if (pt._next) {+ pt._next._prev = pt;}+ }- } else {- this._firstPT = propLookup[p] = pt = {_next:this._firstPT, t:target, p:p, f:(typeof(target[p]) === "function"), n:p, pg:false, pr:0};- pt.s = (!pt.f) ? parseFloat(target[p]) : target[ ((p.indexOf("set") || typeof(target["get" + p.substr(3)]) !== "function") ? p : "get" + p.substr(3)) ]();- v = this.vars[p];- pt.c = (typeof(v) === "number") ? v - pt.s : (typeof(v) === "string" && v.charAt(1) === "=") ? parseInt(v.charAt(0)+"1") * Number(v.substr(2)) : Number(v) || 0; //previously, we used Number(v.split("=").join("")) but that wouldn't adequately handle a value like "+=-500" or "-=-500".+ if (overwrittenProps) if (this._kill(overwrittenProps, target)) { //another tween may have tried to overwrite properties of this tween before init() was called (like if two tweens start at the same time, the one created second will run first)+ return this._initProps(target, propLookup, siblings, overwrittenProps);}- if (pt) if (pt._next) {- pt._next._prev = pt;+ if (this._overwrite > 1) if (this._firstPT) if (siblings.length > 1) if (_applyOverwrite(target, this, propLookup, this._overwrite, siblings)) {+ this._kill(propLookup, target);+ return this._initProps(target, propLookup, siblings, overwrittenProps);}- }+ return initPlugins;+ };- if (overwrittenProps) if (this._kill(overwrittenProps, target)) { //another tween may have tried to overwrite properties of this tween before init() was called (like if two tweens start at the same time, the one created second will run first)- return this._initProps(target, propLookup, siblings, overwrittenProps);- }- if (this._overwrite > 1) if (this._firstPT) if (siblings.length > 1) if (_applyOverwrite(target, this, propLookup, this._overwrite, siblings)) {- this._kill(propLookup, target);- return this._initProps(target, propLookup, siblings, overwrittenProps);- }- return initPlugins;- };-- p.render = function(time, suppressEvents, force) {- var prevTime = this._time,- isComplete, callback, pt;- if (time >= this._duration) {- this._totalTime = this._time = this._duration;- this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1;- if (!this._reversed) {- isComplete = true;- callback = "onComplete";- }- if (this._duration === 0) { //zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the "playhead" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's "playhead" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.- if (time === 0 || this._rawPrevTime < 0) if (this._rawPrevTime !== time) {- force = true;+ p.render = function(time, suppressEvents, force) {+ var prevTime = this._time,+ isComplete, callback, pt;+ if (time >= this._duration) {+ this._totalTime = this._time = this._duration;+ this.ratio = this._ease._calcEnd ? this._ease.getRatio(1) : 1;+ if (!this._reversed) {+ isComplete = true;+ callback = "onComplete";}- this._rawPrevTime = time;- }-- } else if (time <= 0) {- this._totalTime = this._time = 0;- this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0;- if (prevTime !== 0 || (this._duration === 0 && this._rawPrevTime > 0)) {- callback = "onReverseComplete";- isComplete = this._reversed;- }- if (time < 0) {- this._active = false;if (this._duration === 0) { //zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the "playhead" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's "playhead" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.- if (this._rawPrevTime >= 0) {+ if (time === 0 || this._rawPrevTime < 0) if (this._rawPrevTime !== time) {force = true;}this._rawPrevTime = time;}- } else if (!this._initted) { //if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.- force = true;- }-- } else {- this._totalTime = this._time = time;- if (this._easeType) {- var r = time / this._duration, type = this._easeType, pow = this._easePower;- if (type === 1 || (type === 3 && r >= 0.5)) {- r = 1 - r;- }- if (type === 3) {- r *= 2;+ } else if (time <= 0) {+ this._totalTime = this._time = 0;+ this.ratio = this._ease._calcEnd ? this._ease.getRatio(0) : 0;+ if (prevTime !== 0 || (this._duration === 0 && this._rawPrevTime > 0)) {+ callback = "onReverseComplete";+ isComplete = this._reversed;}- if (pow === 1) {- r *= r;- } else if (pow === 2) {- r *= r * r;- } else if (pow === 3) {- r *= r * r * r;- } else if (pow === 4) {- r *= r * r * r * r;+ if (time < 0) {+ this._active = false;+ if (this._duration === 0) { //zero-duration tweens are tricky because we must discern the momentum/direction of time in order to determine whether the starting values should be rendered or the ending values. If the "playhead" of its timeline goes past the zero-duration tween in the forward direction or lands directly on it, the end values should be rendered, but if the timeline's "playhead" moves past it in the backward direction (from a postitive time to a negative time), the starting values must be rendered.+ if (this._rawPrevTime >= 0) {+ force = true;+ }+ this._rawPrevTime = time;+ }+ } else if (!this._initted) { //if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.+ force = true;}- if (type === 1) {- this.ratio = 1 - r;- } else if (type === 2) {- this.ratio = r;- } else if (time / this._duration < 0.5) {- this.ratio = r / 2;+ } else {+ this._totalTime = this._time = time;++ if (this._easeType) {+ var r = time / this._duration, type = this._easeType, pow = this._easePower;+ if (type === 1 || (type === 3 && r >= 0.5)) {+ r = 1 - r;+ }+ if (type === 3) {+ r *= 2;+ }+ if (pow === 1) {+ r *= r;+ } else if (pow === 2) {+ r *= r * r;+ } else if (pow === 3) {+ r *= r * r * r;+ } else if (pow === 4) {+ r *= r * r * r * r;+ }++ if (type === 1) {+ this.ratio = 1 - r;+ } else if (type === 2) {+ this.ratio = r;+ } else if (time / this._duration < 0.5) {+ this.ratio = r / 2;+ } else {+ this.ratio = 1 - (r / 2);+ }+} else {- this.ratio = 1 - (r / 2);+ this.ratio = this._ease.getRatio(time / this._duration);}- } else {- this.ratio = this._ease.getRatio(time / this._duration);}- }-- if (this._time === prevTime && !force) {- return;- } else if (!this._initted) {- this._init();- if (!isComplete && this._time) { //_ease is initially set to defaultEase, so now that init() has run, _ease is set properly and we need to recalculate the ratio. Overall this is faster than using conditional logic earlier in the method to avoid having to set ratio twice because we only init() once but renderTime() gets called VERY frequently.- this.ratio = this._ease.getRatio(this._time / this._duration);+ if (this._time === prevTime && !force) {+ return;+ } else if (!this._initted) {+ this._init();+ if (!isComplete && this._time) { //_ease is initially set to defaultEase, so now that init() has run, _ease is set properly and we need to recalculate the ratio. Overall this is faster than using conditional logic earlier in the method to avoid having to set ratio twice because we only init() once but renderTime() gets called VERY frequently.+ this.ratio = this._ease.getRatio(this._time / this._duration);+ }}- }- if (!this._active) if (!this._paused) {- this._active = true; //so that if the user renders a tween (as opposed to the timeline rendering it), the timeline is forced to re-render and align it with the proper time/frame on the next rendering cycle. Maybe the tween already finished but the user manually re-renders it as halfway done.- }- if (prevTime === 0) if (this.vars.onStart) if (this._time !== 0 || this._duration === 0) if (!suppressEvents) {- this.vars.onStart.apply(this.vars.onStartScope || this, this.vars.onStartParams || _blankArray);- }+ if (!this._active) if (!this._paused) {+ this._active = true; //so that if the user renders a tween (as opposed to the timeline rendering it), the timeline is forced to re-render and align it with the proper time/frame on the next rendering cycle. Maybe the tween already finished but the user manually re-renders it as halfway done.+ }+ if (prevTime === 0) if (this.vars.onStart) if (this._time !== 0 || this._duration === 0) if (!suppressEvents) {+ this.vars.onStart.apply(this.vars.onStartScope || this, this.vars.onStartParams || _blankArray);+ }- pt = this._firstPT;- while (pt) {- if (pt.f) {- pt.t[pt.p](pt.c * this.ratio + pt.s);- } else {- pt.t[pt.p] = pt.c * this.ratio + pt.s;+ pt = this._firstPT;+ while (pt) {+ if (pt.f) {+ pt.t[pt.p](pt.c * this.ratio + pt.s);+ } else {+ pt.t[pt.p] = pt.c * this.ratio + pt.s;+ }+ pt = pt._next;}- pt = pt._next;- }- if (this._onUpdate) if (!suppressEvents) {- this._onUpdate.apply(this.vars.onUpdateScope || this, this.vars.onUpdateParams || _blankArray);- }+ if (this._onUpdate) if (!suppressEvents) {+ this._onUpdate.apply(this.vars.onUpdateScope || this, this.vars.onUpdateParams || _blankArray);+ }- if (callback) if (!this._gc) { //check _gc because there's a chance that kill() could be called in an onUpdate- if (isComplete) {- if (this._timeline.autoRemoveChildren) {- this._enabled(false, false);+ if (callback) if (!this._gc) { //check _gc because there's a chance that kill() could be called in an onUpdate+ if (isComplete) {+ if (this._timeline.autoRemoveChildren) {+ this._enabled(false, false);+ }+ this._active = false;+ }+ if (!suppressEvents) if (this.vars[callback]) {+ this.vars[callback].apply(this.vars[callback + "Scope"] || this, this.vars[callback + "Params"] || _blankArray);}- this._active = false;- }- if (!suppressEvents) if (this.vars[callback]) {- this.vars[callback].apply(this.vars[callback + "Scope"] || this, this.vars[callback + "Params"] || _blankArray);}- }- };+ };- p._kill = function(vars, target) {- if (vars === "all") {- vars = null;- }- if (vars == null) if (target == null || target == this.target) {- return this._enabled(false, false);- }- target = target || this._targets || this.target;- var i, overwrittenProps, p, pt, propLookup, changed, killProps, record;- if ((target instanceof Array || target.jquery) && typeof(target[0]) === "object") {- i = target.length;- while (--i > -1) {- if (this._kill(vars, target[i])) {- changed = true;- }+ p._kill = function(vars, target) {+ if (vars === "all") {+ vars = null;}- } else {- if (this._targets) {- i = this._targets.length;+ if (vars == null) if (target == null || target == this.target) {+ return this._enabled(false, false);+ }+ target = target || this._targets || this.target;+ var i, overwrittenProps, p, pt, propLookup, changed, killProps, record;+ if ((target instanceof Array || target.jquery) && typeof(target[0]) === "object") {+ i = target.length;while (--i > -1) {- if (target === this._targets[i]) {- propLookup = this._propLookup[i] || {};- this._overwrittenProps = this._overwrittenProps || [];- overwrittenProps = this._overwrittenProps[i] = vars ? this._overwrittenProps[i] || {} : "all";- break;+ if (this._kill(vars, target[i])) {+ changed = true;}}- } else if (target !== this.target) {- return false;} else {- propLookup = this._propLookup;- overwrittenProps = this._overwrittenProps = vars ? this._overwrittenProps || {} : "all";- }-- if (propLookup) {- killProps = vars || propLookup;- record = (vars != overwrittenProps && overwrittenProps != "all" && vars != propLookup && (vars == null || vars._tempKill != true)); //_tempKill is a super-secret way to delete a particular tweening property but NOT have it remembered as an official overwritten property (like in BezierPlugin)- for (p in killProps) {- if ((pt = propLookup[p])) {- if (pt.pg && pt.t._kill(killProps)) {- changed = true; //some plugins need to be notified so they can perform cleanup tasks first+ if (this._targets) {+ i = this._targets.length;+ while (--i > -1) {+ if (target === this._targets[i]) {+ propLookup = this._propLookup[i] || {};+ this._overwrittenProps = this._overwrittenProps || [];+ overwrittenProps = this._overwrittenProps[i] = vars ? this._overwrittenProps[i] || {} : "all";+ break;}- if (!pt.pg || pt.t._overwriteProps.length === 0) {- if (pt._prev) {- pt._prev._next = pt._next;- } else if (pt === this._firstPT) {- this._firstPT = pt._next;+ }+ } else if (target !== this.target) {+ return false;+ } else {+ propLookup = this._propLookup;+ overwrittenProps = this._overwrittenProps = vars ? this._overwrittenProps || {} : "all";+ }++ if (propLookup) {+ killProps = vars || propLookup;+ record = (vars != overwrittenProps && overwrittenProps != "all" && vars != propLookup && (vars == null || vars._tempKill != true)); //_tempKill is a super-secret way to delete a particular tweening property but NOT have it remembered as an official overwritten property (like in BezierPlugin)+ for (p in killProps) {+ if ((pt = propLookup[p])) {+ if (pt.pg && pt.t._kill(killProps)) {+ changed = true; //some plugins need to be notified so they can perform cleanup tasks first}- if (pt._next) {- pt._next._prev = pt._prev;+ if (!pt.pg || pt.t._overwriteProps.length === 0) {+ if (pt._prev) {+ pt._prev._next = pt._next;+ } else if (pt === this._firstPT) {+ this._firstPT = pt._next;+ }+ if (pt._next) {+ pt._next._prev = pt._prev;+ }+ pt._next = pt._prev = null;}- pt._next = pt._prev = null;+ delete propLookup[p];+ }+ if (record) {+ overwrittenProps[p] = 1;}- delete propLookup[p];- }- if (record) {- overwrittenProps[p] = 1;}}}- }- return changed;- };+ return changed;+ };- p.invalidate = function() {- if (this._notifyPluginsOfEnabled) {- TweenLite._onPluginEvent("_onDisable", this);- }- this._firstPT = null;- this._overwrittenProps = null;- this._onUpdate = null;- this._initted = this._active = this._notifyPluginsOfEnabled = false;- this._propLookup = (this._targets) ? {} : [];- return this;- };-- p._enabled = function(enabled, ignoreTimeline) {- if (enabled && this._gc) {- if (this._targets) {- var i = this._targets.length;- while (--i > -1) {- this._siblings[i] = _register(this._targets[i], this, true);+ p.invalidate = function() {+ if (this._notifyPluginsOfEnabled) {+ TweenLite._onPluginEvent("_onDisable", this);+ }+ this._firstPT = null;+ this._overwrittenProps = null;+ this._onUpdate = null;+ this._initted = this._active = this._notifyPluginsOfEnabled = false;+ this._propLookup = (this._targets) ? {} : [];+ return this;+ };++ p._enabled = function(enabled, ignoreTimeline) {+ if (enabled && this._gc) {+ if (this._targets) {+ var i = this._targets.length;+ while (--i > -1) {+ this._siblings[i] = _register(this._targets[i], this, true);+ }+ } else {+ this._siblings = _register(this.target, this, true);}- } else {- this._siblings = _register(this.target, this, true);}- }- Animation.prototype._enabled.call(this, enabled, ignoreTimeline);- if (this._notifyPluginsOfEnabled) if (this._firstPT) {- return TweenLite._onPluginEvent(((enabled) ? "_onEnable" : "_onDisable"), this);- }- return false;- };+ Animation.prototype._enabled.call(this, enabled, ignoreTimeline);+ if (this._notifyPluginsOfEnabled) if (this._firstPT) {+ return TweenLite._onPluginEvent(((enabled) ? "_onEnable" : "_onDisable"), this);+ }+ return false;+ };//----TweenLite static methods ------------------------------------------------------ TweenLite.to = function(target, duration, vars) {- return new TweenLite(target, duration, vars);- };+ TweenLite.to = function(target, duration, vars) {+ return new TweenLite(target, duration, vars);+ };- TweenLite.from = function(target, duration, vars) {- vars.runBackwards = true;- if (vars.immediateRender != false) {- vars.immediateRender = true;- }- return new TweenLite(target, duration, vars);- };+ TweenLite.from = function(target, duration, vars) {+ vars.runBackwards = true;+ if (vars.immediateRender !== false) {+ vars.immediateRender = true;+ }+ return new TweenLite(target, duration, vars);+ };- TweenLite.fromTo = function(target, duration, fromVars, toVars) {- toVars.startAt = fromVars;- if (fromVars.immediateRender) {- toVars.immediateRender = true;- }- return new TweenLite(target, duration, toVars);- };-- TweenLite.delayedCall = function(delay, callback, params, scope, useFrames) {- return new TweenLite(callback, 0, {delay:delay, onComplete:callback, onCompleteParams:params, onCompleteScope:scope, onReverseComplete:callback, onReverseCompleteParams:params, onReverseCompleteScope:scope, immediateRender:false, useFrames:useFrames, overwrite:0});- };-- TweenLite.set = function(target, vars) {- return new TweenLite(target, 0, vars);- };-- TweenLite.killTweensOf = TweenLite.killDelayedCallsTo = function(target, vars) {- var a = TweenLite.getTweensOf(target),- i = a.length;- while (--i > -1) {- a[i]._kill(vars, target);- }- };-- TweenLite.getTweensOf = function(target) {- if (target == null) { return; }- var i, a, j, t;- if ((target instanceof Array || target.jquery) && typeof(target[0]) === "object") {- i = target.length;- a = [];- while (--i > -1) {- a = a.concat(TweenLite.getTweensOf(target[i]));+ TweenLite.fromTo = function(target, duration, fromVars, toVars) {+ toVars.startAt = fromVars;+ if (fromVars.immediateRender) {+ toVars.immediateRender = true;}- i = a.length;- //now get rid of any duplicates (tweens of arrays of objects could cause duplicates)+ return new TweenLite(target, duration, toVars);+ };++ TweenLite.delayedCall = function(delay, callback, params, scope, useFrames) {+ return new TweenLite(callback, 0, {delay:delay, onComplete:callback, onCompleteParams:params, onCompleteScope:scope, onReverseComplete:callback, onReverseCompleteParams:params, onReverseCompleteScope:scope, immediateRender:false, useFrames:useFrames, overwrite:0});+ };++ TweenLite.set = function(target, vars) {+ return new TweenLite(target, 0, vars);+ };++ TweenLite.killTweensOf = TweenLite.killDelayedCallsTo = function(target, vars) {+ var a = TweenLite.getTweensOf(target),+ i = a.length;while (--i > -1) {- t = a[i];- j = i;- while (--j > -1) {- if (t === a[j]) {- a.splice(i, 1);+ a[i]._kill(vars, target);+ }+ };++ TweenLite.getTweensOf = function(target) {+ if (target == null) { return; }+ var i, a, j, t;+ if ((target instanceof Array || target.jquery) && typeof(target[0]) === "object") {+ i = target.length;+ a = [];+ while (--i > -1) {+ a = a.concat(TweenLite.getTweensOf(target[i]));+ }+ i = a.length;+ //now get rid of any duplicates (tweens of arrays of objects could cause duplicates)+ while (--i > -1) {+ t = a[i];+ j = i;+ while (--j > -1) {+ if (t === a[j]) {+ a.splice(i, 1);+ }}}- }- } else {- a = _register(target).concat();- i = a.length;- while (--i > -1) {- if (a[i]._gc) {- a.splice(i, 1);+ } else {+ a = _register(target).concat();+ i = a.length;+ while (--i > -1) {+ if (a[i]._gc) {+ a.splice(i, 1);+ }}}- }- return a;- };-+ return a;+ };- /*- * ----------------------------------------------------------------- * TweenPlugin (could easily be split out as a separate file/class, but included for ease of use (so that people don't need to include another <script> call before loading plugins which is easy to forget)- * ----------------------------------------------------------------- */- var TweenPlugin = _class("plugins.TweenPlugin", function(props, priority) {- this._overwriteProps = (props || "").split(",");- this._propName = this._overwriteProps[0];- this._priority = priority || 0;- }, true);- p = TweenPlugin.prototype;- TweenPlugin.version = 12;- TweenPlugin.API = 2;- p._firstPT = null;-- p._addTween = function(target, prop, start, end, overwriteProp, round) {- var c, pt;- if (end != null && (c = (typeof(end) === "number" || end.charAt(1) !== "=") ? Number(end) - start : parseInt(end.charAt(0)+"1") * Number(end.substr(2)))) {- this._firstPT = pt = {_next:this._firstPT, t:target, p:prop, s:start, c:c, f:(typeof(target[prop]) === "function"), n:overwriteProp || prop, r:round};- if (pt._next) {- pt._next._prev = pt;- }- }- }-- p.setRatio = function(v) {- var pt = this._firstPT,- val;- while (pt) {- val = pt.c * v + pt.s;- if (pt.r) {- val = (val + ((val > 0) ? 0.5 : -0.5)) >> 0; //about 4x faster than Math.round()- }- if (pt.f) {- pt.t[pt.p](val);- } else {- pt.t[pt.p] = val;- }- pt = pt._next;- }- }+/*+ * ----------------------------------------------------------------+ * TweenPlugin (could easily be split out as a separate file/class, but included for ease of use (so that people don't need to include another <script> call before loading plugins which is easy to forget)+ * ----------------------------------------------------------------+ */+ var TweenPlugin = _class("plugins.TweenPlugin", function(props, priority) {+ this._overwriteProps = (props || "").split(",");+ this._propName = this._overwriteProps[0];+ this._priority = priority || 0;+ }, true);++ p = TweenPlugin.prototype;+ TweenPlugin.version = 12;+ TweenPlugin.API = 2;+ p._firstPT = null;- p._kill = function(lookup) {- if (lookup[this._propName] != null) {- this._overwriteProps = [];- } else {- var i = this._overwriteProps.length;- while (--i > -1) {- if (lookup[this._overwriteProps[i]] != null) {- this._overwriteProps.splice(i, 1);+ p._addTween = function(target, prop, start, end, overwriteProp, round) {+ var c, pt;+ if (end != null && (c = (typeof(end) === "number" || end.charAt(1) !== "=") ? Number(end) - start : parseInt(end.charAt(0)+"1", 10) * Number(end.substr(2)))) {+ this._firstPT = pt = {_next:this._firstPT, t:target, p:prop, s:start, c:c, f:(typeof(target[prop]) === "function"), n:overwriteProp || prop, r:round};+ if (pt._next) {+ pt._next._prev = pt;}}- }- var pt = this._firstPT;- while (pt) {- if (lookup[pt.n] != null) {- if (pt._next) {- pt._next._prev = pt._prev;+ };++ p.setRatio = function(v) {+ var pt = this._firstPT,+ val;+ while (pt) {+ val = pt.c * v + pt.s;+ if (pt.r) {+ val = (val + ((val > 0) ? 0.5 : -0.5)) >> 0; //about 4x faster than Math.round()}- if (pt._prev) {- pt._prev._next = pt._next;- pt._prev = null;- } else if (this._firstPT === pt) {- this._firstPT = pt._next;+ if (pt.f) {+ pt.t[pt.p](val);+ } else {+ pt.t[pt.p] = val;}+ pt = pt._next;}- pt = pt._next;- }- return false;- }+ };- p._roundProps = function(lookup, value) {- var pt = this._firstPT;- while (pt) {- if (lookup[this._propName] || (pt.n != null && lookup[ pt.n.split(this._propName + "_").join("") ])) { //some properties that are very plugin-specific add a prefix named after the _propName plus an underscore, so we need to ignore that extra stuff here.- pt.r = value;+ p._kill = function(lookup) {+ if (lookup[this._propName] != null) {+ this._overwriteProps = [];+ } else {+ var i = this._overwriteProps.length;+ while (--i > -1) {+ if (lookup[this._overwriteProps[i]] != null) {+ this._overwriteProps.splice(i, 1);+ }+ }}- pt = pt._next;- }- }-- TweenLite._onPluginEvent = function(type, tween) {- var pt = tween._firstPT,- changed;- if (type === "_onInitAllProps") {- //sorts the PropTween linked list in order of priority because some plugins need to render earlier/later than others, like MotionBlurPlugin applies its effects after all x/y/alpha tweens have rendered on each frame.- var pt2, first, last, next;+ var pt = this._firstPT;while (pt) {- next = pt._next;- pt2 = first;- while (pt2 && pt2.pr > pt.pr) {- pt2 = pt2._next;+ if (lookup[pt.n] != null) {+ if (pt._next) {+ pt._next._prev = pt._prev;+ }+ if (pt._prev) {+ pt._prev._next = pt._next;+ pt._prev = null;+ } else if (this._firstPT === pt) {+ this._firstPT = pt._next;+ }}- if ((pt._prev = pt2 ? pt2._prev : last)) {- pt._prev._next = pt;- } else {- first = pt;+ pt = pt._next;+ }+ return false;+ };++ p._roundProps = function(lookup, value) {+ var pt = this._firstPT;+ while (pt) {+ if (lookup[this._propName] || (pt.n != null && lookup[ pt.n.split(this._propName + "_").join("") ])) { //some properties that are very plugin-specific add a prefix named after the _propName plus an underscore, so we need to ignore that extra stuff here.+ pt.r = value;}- if ((pt._next = pt2)) {- pt2._prev = pt;- } else {- last = pt;+ pt = pt._next;+ }+ };++ TweenLite._onPluginEvent = function(type, tween) {+ var pt = tween._firstPT,+ changed;+ if (type === "_onInitAllProps") {+ //sorts the PropTween linked list in order of priority because some plugins need to render earlier/later than others, like MotionBlurPlugin applies its effects after all x/y/alpha tweens have rendered on each frame.+ var pt2, first, last, next;+ while (pt) {+ next = pt._next;+ pt2 = first;+ while (pt2 && pt2.pr > pt.pr) {+ pt2 = pt2._next;+ }+ if ((pt._prev = pt2 ? pt2._prev : last)) {+ pt._prev._next = pt;+ } else {+ first = pt;+ }+ if ((pt._next = pt2)) {+ pt2._prev = pt;+ } else {+ last = pt;+ }+ pt = next;}- pt = next;+ pt = tween._firstPT = first;}- pt = tween._firstPT = first;- }- while (pt) {- if (pt.pg) if (typeof(pt.t[type]) === "function") if (pt.t[type]()) {- changed = true;+ while (pt) {+ if (pt.pg) if (typeof(pt.t[type]) === "function") if (pt.t[type]()) {+ changed = true;+ }+ pt = pt._next;}- pt = pt._next;- }- return changed;- }+ return changed;+ };- TweenPlugin.activate = function(plugins) {- var i = plugins.length;- while (--i > -1) {- if (plugins[i].API === TweenPlugin.API) {- TweenLite._plugins[(new plugins[i]())._propName] = plugins[i];+ TweenPlugin.activate = function(plugins) {+ var i = plugins.length;+ while (--i > -1) {+ if (plugins[i].API === TweenPlugin.API) {+ TweenLite._plugins[(new plugins[i]())._propName] = plugins[i];+ }}- }- return true;- }+ return true;+ };- //now run through all the dependencies discovered and if any are missing, log that to the console as a warning. This is why it's best to have TweenLite load last - it can check all the dependencies for you.- if ((a = window._gsQueue)) {- for (i = 0; i < a.length; i++) {- a[i]();- }- for (p in _classLookup) {- if (!_classLookup[p].def) {- console.log("Warning: TweenLite encountered missing dependency: com.greensock."+p);+ //now run through all the dependencies discovered and if any are missing, log that to the console as a warning. This is why it's best to have TweenLite load last - it can check all the dependencies for you.+ if ((a = window._gsQueue)) {+ for (i = 0; i < a.length; i++) {+ a[i]();+ }+ for (p in _classLookup) {+ if (!_classLookup[p].def) {+ console.log("Warning: TweenLite encountered missing dependency: com.greensock."+p);+ }}}- }})(window);\ No newline at end of filediff --git a/src/uncompressed/plugins/BezierPlugin.js b/src/uncompressed/plugins/BezierPlugin.jsindex f7c223f..b3dbd9f 100755--- a/src/uncompressed/plugins/BezierPlugin.js+++ b/src/uncompressed/plugins/BezierPlugin.js@@ -1,6 +1,6 @@/**- * VERSION: beta 1.15- * DATE: 2012-12-14+ * VERSION: beta 1.151+ * DATE: 2012-12-20* JavaScript (also available in AS3 and AS2)* UPDATES AND DOCS AT: http://www.greensock.com*@@ -348,7 +348,7 @@vars = {values:vars};}this._props = [];- this._timeRes = (vars.timeResolution == null) ? 6 : parseInt(vars.timeResolution);+ this._timeRes = (vars.timeResolution == null) ? 6 : parseInt(vars.timeResolution, 10);var values = vars.values || [],first = {},second = values[0],diff --git a/src/uncompressed/plugins/CSSPlugin.js b/src/uncompressed/plugins/CSSPlugin.jsindex c81ed3e..93c621a 100755--- a/src/uncompressed/plugins/CSSPlugin.js+++ b/src/uncompressed/plugins/CSSPlugin.js@@ -1,5 +1,5 @@/*!- * VERSION: beta 1.662+ * VERSION: beta 1.663* DATE: 2012-12-15* JavaScript* UPDATES AND DOCS AT: http://www.greensock.com@@ -29,7 +29,7 @@p = CSSPlugin.prototype = new TweenPlugin("css");p.constructor = CSSPlugin;- CSSPlugin.version = 1.661;+ CSSPlugin.version = 1.663;CSSPlugin.API = 2;CSSPlugin.defaultTransformPerspective = 0;p = "px"; //we'll reuse the "p" variable to keep file size down@@ -309,7 +309,7 @@* @return {number} Amount of change between the beginning and ending values (relative values that have a "+=" or "-=" are recognized)*/_parseChange = function(e, b) {- return (typeof(e) === "string" && e.charAt(1) === "=") ? parseInt(e.charAt(0) + "1") * parseFloat(e.substr(2)) : parseFloat(e) - parseFloat(b);+ return (typeof(e) === "string" && e.charAt(1) === "=") ? parseInt(e.charAt(0) + "1", 10) * parseFloat(e.substr(2)) : parseFloat(e) - parseFloat(b);},/**@@ -319,7 +319,7 @@* @return {number} Parsed value*/_parseVal = function(v, d) {- return (v == null) ? d : (typeof(v) === "string" && v.charAt(1) === "=") ? parseInt(v.charAt(0) + "1") * Number(v.substr(2)) + d : parseFloat(v);+ return (v == null) ? d : (typeof(v) === "string" && v.charAt(1) === "=") ? parseInt(v.charAt(0) + "1", 10) * Number(v.substr(2)) + d : parseFloat(v);},/**@@ -412,7 +412,6 @@}_colorExp = new RegExp(_colorExp+")", "gi");-/*** @private Returns a formatter function that handles taking a string (or number in some cases) and returning a consistently formatted one in terms of delimiters, quantity of values, etc. For example, we may get boxShadow values defined as "0px red" or "0px 0px 10px rgb(255,0,0)" or "0px 0px 20px 20px #F00" and we need to ensure that what we get back is described with 4 numbers and a color. This allows us to feed it into the _parseComplex() method and split the values up appropriately. The neat thing about this _getFormatter() function is that the dflt defines a pattern as well as a default, so for example, _getFormatter("0px 0px 0px 0px #777", true) not only sets the default as 0px for all distances and #777 for the color, but also sets the pattern such that 4 numbers and a color will always get returned.* @param {!string} dflt The default value and pattern to follow. So "0px 0px 0px 0px #777" will ensure that 4 numbers and a color will always get returned.@@ -447,21 +446,20 @@return pfx + vals.join(delim) + delim + color + sfx;};- } else {- return function(v) {- if (typeof(v) === "number") {- v += dSfx;- }- var vals = v.match(_valuesExp) || [],- i = vals.length;- if (numVals > i--) {- while (++i < numVals) {- vals[i] = collapsible ? vals[(((i - 1) / 2) >> 0)] : dVals[i];- }- }- return pfx + vals.join(delim) + sfx;- };}+ return function(v) {+ if (typeof(v) === "number") {+ v += dSfx;+ }+ var vals = v.match(_valuesExp) || [],+ i = vals.length;+ if (numVals > i--) {+ while (++i < numVals) {+ vals[i] = collapsible ? vals[(((i - 1) / 2) >> 0)] : dVals[i];+ }+ }+ return pfx + vals.join(delim) + sfx;+ };},/**@@ -1443,8 +1441,7 @@b11 = b[0], b21 = b[1], b31 = b[2], b41 = b[3],b12 = b[4], b22 = b[5], b32 = b[6], b42 = b[7],b13 = b[8], b23 = b[9], b33 = b[10], b43 = b[11],- b14 = b[12], b24 = b[13], b34 = b[14], b44 = b[15],- min = 0.000001, i = 12;+ b14 = b[12], b24 = b[13], b34 = b[14], b44 = b[15];c[0] = a11*b11+a12*b21+a13*b31+a14*b41; //a11c[1] = a21*b11+a22*b21+a23*b31+a24*b41; //a21c[2] = a31*b11+a32*b21+a33*b31+a34*b41; //a31@@ -1461,11 +1458,6 @@c[13] = a21*b14+a22*b24+a23*b34+a24*b44; //a24c[14] = a31*b14+a32*b24+a33*b34+a34*b44; //a34c[15] = a41*b14+a42*b24+a43*b34+a44*b44; //a44- while (--i > -1) {- if (c[i] < min) if (c[i] > -min) {- c[i] = 0;- }- }return c;}*/@@ -1496,7 +1488,7 @@bsfx = bs.substr((bn + "").length);rel = (es.charAt(1) === "=");if (rel) {- en = parseInt(es.charAt(0)+"1");+ en = parseInt(es.charAt(0)+"1", 10);es = es.substr(2);en *= parseFloat(es);esfx = es.substr((en + "").length - (en < 0 ? 1 : 0)) || "";@@ -1557,6 +1549,7 @@_registerComplexSpecialProp("perspective", "0px", null, true);_registerComplexSpecialProp("perspectiveOrigin", "50% 50%", null, true);_registerComplexSpecialProp("transformStyle", "preserve-3d", null, true);+ _registerComplexSpecialProp("backfaceVisibility", "visible", null, true);_registerComplexSpecialProp("margin", null, _getEdgeParser("marginTop,marginRight,marginBottom,marginLeft"));_registerComplexSpecialProp("padding", null, _getEdgeParser("paddingTop,paddingRight,paddingBottom,paddingLeft"));_registerComplexSpecialProp("clip", "rect(0px,0px,0px,0px)");@@ -1810,7 +1803,7 @@rel = (isStr && es.charAt(1) === "=");if (rel) {- en = parseInt(es.charAt(0)+"1");+ en = parseInt(es.charAt(0)+"1", 10);es = es.substr(2);en *= parseFloat(es);esfx = es.substr((en + "").length - (en < 0 ? 1 : 0)) || "";diff --git a/src/uncompressed/plugins/CSSRulePlugin.js b/src/uncompressed/plugins/CSSRulePlugin.jsindex 33908d6..a66abe3 100755--- a/src/uncompressed/plugins/CSSRulePlugin.js+++ b/src/uncompressed/plugins/CSSRulePlugin.js@@ -1,6 +1,6 @@/*!- * VERSION: beta 0.42- * DATE: 2012-09-19+ * VERSION: beta 0.5+ * DATE: 2012-12-20* JavaScript* UPDATES AND DOCS AT: http://www.greensock.com*@@ -12,666 +12,80 @@*/(window._gsQueue || (window._gsQueue = [])).push( function() {- _gsDefine("plugins.CSSRulePlugin", ["plugins.TweenPlugin","TweenLite"], function(TweenPlugin, TweenLite) {+ _gsDefine("plugins.CSSRulePlugin", ["plugins.TweenPlugin","TweenLite","plugins.CSSPlugin"], function(TweenPlugin, TweenLite, CSSPlugin) {"use strict";-++ /** @constructor **/var CSSRulePlugin = function() {TweenPlugin.call(this, "cssRule");- this._overwriteProps.pop();+ this._overwriteProps.length = 0;},- p = CSSRulePlugin.prototype = new TweenPlugin("cssRule");-+ _doc = window.document,+ _superSetRatio = CSSPlugin.prototype.setRatio,+ p = CSSRulePlugin.prototype = new CSSPlugin();++ p._propName = "cssRule";p.constructor = CSSRulePlugin;CSSRulePlugin.API = 2;- CSSRulePlugin.suffixMap = {top:"px", right:"px", bottom:"px", left:"px", width:"px", height:"px", fontSize:"px", padding:"px", margin:"px"};-- //set up some local variables and functions that we can reuse for all tweens - we do this only once and cache things to improve performance- var _NaNExp = /[^\d\-\.]/g,- _suffixExp = /(\d|\-|\+|=|#|\.)*/g,- _numExp = /(\d|\.)+/g,- _opacityExp = /opacity *= *([^)]*)/,- _opacityValExp = /opacity:([^;]*)/,- _capsExp = /([A-Z])/g,- _camelExp = /-([a-z])/gi,- _camelFunc = function(s, g) { return g.toUpperCase() },- _horizExp = /(Left|Right|Width)/i,- _ieGetMatrixExp = /(M11|M12|M21|M22)=[\d\-\.e]+/gi,- _ieSetMatrixExp = /progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,- _DEG2RAD = Math.PI / 180,- _RAD2DEG = 180 / Math.PI,- _doc = document,- _tempDiv = _doc.createElement("div"),- _agent = navigator.userAgent,- _reqSafariFix, //we won't apply the Safari transform fix until we actually come across a tween that affects a transform property (to maintain best performance).- _isSafari, //Safari (and Android 4 which uses a flavor of Safari) has a bug that prevents changes to "top" and "left" properties from rendering properly if changed on the same frame as a transform UNLESS we set the element's WebkitBackfaceVisibility to hidden (weird, I know). Doing this for Android 3 and earlier seems to actually cause other problems, though (fun!)- _supportsOpacity = (function() { //we set _isSafari and _supportsOpacity all in one function here to reduce file size slightly, especially in the minified version.- var i = _agent.indexOf("Android"),- d = _doc.createElement("div"), a;-- _isSafari = (_agent.indexOf("Safari") !== -1 && _agent.indexOf("Chrome") === -1 && (i === -1 || Number(_agent.substr(i+8, 1)) > 3));-- d.innerHTML = "<a style='top:1px;opacity:.55;'>a</a>";- a = d.getElementsByTagName("a")[0];- return a ? /^0.55/.test(a.style.opacity) : false;- })(),-- //parses a color (like #9F0, #FF9900, or rgb(255,51,153)) into an array with 3 elements for red, green, and blue. Also handles rgba() values (splits into array of 4 elements of course)- _parseColor = function(v) {- if (!v || v === "") {- return _colorLookup.black;- } else if (_colorLookup[v]) {- return _colorLookup[v];- } else if (typeof(v) === "number") {- return [v >> 16, (v >> 8) & 255, v & 255];- } else if (v.charAt(0) === "#") {- if (v.length === 4) { //for shorthand like #9F0- var c1 = v.charAt(1),- c2 = v.charAt(2),- c3 = v.charAt(3);- v = "#" + c1 + c1 + c2 + c2 + c3 + c3;- }- v = parseInt(v.substr(1), 16);- return [v >> 16, (v >> 8) & 255, v & 255];- } else {- return v.match(_numExp) || _colorLookup.transparent;- }- },- _getIEOpacity = function(obj) {- return (_opacityExp.test( ((typeof(obj) === "string") ? obj : (obj.currentStyle ? obj.currentStyle.filter : obj.style.filter) || "") ) ? ( parseFloat( RegExp.$1 ) / 100 ) : 1);- },- _getComputedStyle = (_doc.defaultView) ? _doc.defaultView.getComputedStyle : function(o,s) {},-- //gets an individual style property. cs is for computedStyle (a speed optimization - we don't want to run it more than once if we don't have to). calc forces the returned value to be based on the computedStyle, ignoring anything that's in the element's "style" property (computing normalizes certain things for us)- _getStyle = function(t, p, cs, calc) {- if (!_supportsOpacity && p === "opacity") { //several versions of IE don't use the standard "opacity" property - they use things like filter:alpha(opacity=50), so we parse that here.- return _getIEOpacity(t);- } else if (!calc && t.style[p]) {- return t.style[p];- } else if ((cs = cs || _getComputedStyle(t, null))) {- t = cs.getPropertyValue(p.replace(_capsExp, "-$1").toLowerCase());- return (t || cs.length) ? t : cs[p]; //Opera behaves VERY strangely - length is usually 0 and cs[p] is the only way to get accurate results EXCEPT when checking for -o-transform which only works with cs.getPropertyValue()!- } else if (t.currentStyle) {- cs = t.currentStyle,- calc = cs[p]; //reuse "calc" variable to reduce minification size and improve speed slightly compared to creating a new variable.- if (!calc && p === "backgroundPosition") { //IE doesn't report backgroundPosition accurately (before version 9) - instead, it only reports backgroundPositionX and backgroundPositionY, so we need to combine them manually.- return cs[p + "X"] + " " + cs[p + "Y"];- }- return calc;- }- return null;- },-- _transformMap = {scaleX:1, scaleY:1, x:1, y:1, rotation:1, shortRotation:1, skewX:1, skewY:1, scale:1},-- _prefixCSS = "", //the non-camelCase vendor prefix like "-o-", "-moz-", "-ms-", or "-webkit-"- _prefix = "", //camelCase vendor prefix like "O", "ms", "Webkit", or "Moz".- //feed in a camelCase property name like "transform" and it will check to see if it is valid as-is or if it needs a vendor prefix. It returns the corrected camelCase property name (i.e. "WebkitTransform" or "MozTransform" or "transform" or null if no such property is found, like if the browser is IE8 or before, "transform" won't be found at all)- _checkPropPrefix = function(p, e) {- e = e || _doc.body || _doc.documentElement;- var cs = _getComputedStyle(e, ""),- a, i;- if (_getStyle(e, p)) {- return p;- }- p = p.substr(0,1).toUpperCase() + p.substr(1);- a = ["O","Moz","ms","Ms","Webkit"];- i = 5;- while ( --i > -1 && !_getStyle(e, a[i]+p, cs)) { }- if (i >= 0) {- _prefix = (i === 3) ? "ms" : a[i];- _prefixCSS = "-" + _prefix.toLowerCase() + "-";- return _prefix + p;- }- return null;- },- _transformProp = _checkPropPrefix("transform"), //the Javascript (camelCase) transform property, like msTransform, WebkitTransform, MozTransform, or OTransform.- _transformPropCSS = _prefixCSS + "transform",-- _getRule = CSSRulePlugin.getRule = function(selector) {- var ruleProp = _doc.all ? 'rules' : 'cssRules',- ss = _doc.styleSheets,- i = ss.length,- pseudo = (selector.charAt(0) === ":"),- j, curSS, a;- selector = (pseudo ? "" : ",") + selector + ",";- if (pseudo) {- a = [];- }- while (--i > -1) {- curSS = ss[i][ruleProp];- j = curSS.length;- while (--j > -1) {- if ((","+curSS[j].selectorText.split("::").join(":")+",").indexOf(selector) !== -1) { //note: IE adds an extra ":" to pseudo selectors, so .myClass:after becomes .myClass::after, so we need to strip the extra one out.- if (pseudo) {- a.push(curSS[j].style);- } else {- return curSS[j].style;- }+ /**+ * Searches the style sheets in the document for a particular selector like ".myClass" or "a" or "a:hover" or ":after" and+ * returns a reference to that style sheet (or an array of them in the case of a pseudo selector like ":after"). Then you+ * can animate the individual properties of the style sheet.+ *+ * @param {!string} selector a string describing the selector, like ".myClass" or "a" or "a:hover" or ":after"+ * @return a reference to the style sheet (or an array of them in the case of a pseudo selector). If none was found, null is returned (or an empty array for a pseudo selector)+ */+ CSSRulePlugin.getRule = function(selector) {+ var ruleProp = _doc.all ? 'rules' : 'cssRules',+ ss = _doc.styleSheets,+ i = ss.length,+ pseudo = (selector.charAt(0) === ":"),+ j, curSS, cs, a;+ selector = (pseudo ? "" : ",") + selector.toLowerCase() + ","; //note: old versions of IE report tag name selectors as upper case, so we just change everything to lowercase.+ if (pseudo) {+ a = [];+ }+ while (--i > -1) {+ curSS = ss[i][ruleProp];+ j = curSS.length;+ while (--j > -1) {+ cs = curSS[j];+ if (cs.selectorText && ("," + cs.selectorText.split("::").join(":").toLowerCase() + ",").indexOf(selector) !== -1) { //note: IE adds an extra ":" to pseudo selectors, so .myClass:after becomes .myClass::after, so we need to strip the extra one out.+ if (pseudo) {+ a.push(cs.style);+ } else {+ return cs.style;}}}- return a;- },-- //parses the transform values for an element, returning an object with x, y, scaleX, scaleY, rotation, skewX, and skewY properties. Note: by default (for performance reasons), all skewing is combined into skewX and rotation but skewY still has a place in the transform object so that we can record how much of the skew is attributed to skewX vs skewY. Remember, a skewY of 10 looks the same as a rotation of 10 and skewX of -10.- _getTransform = function(style, rec) {- _tempDiv.cssText = style.cssText;- var t = _tempDiv,- tm = style._gsTransform, s;- if (_transformProp) {- s = _getStyle(t, _transformPropCSS, null, true);- } else if (t.currentStyle) {- //for older versions of IE, we need to interpret the filter portion that is in the format: progid:DXImageTransform.Microsoft.Matrix(M11=6.123233995736766e-17, M12=-1, M21=1, M22=6.123233995736766e-17, sizingMethod='auto expand') Notice that we need to swap b and c compared to a normal matrix.- s = t.currentStyle.filter.match(_ieGetMatrixExp);- s = (s && s.length === 4) ? s[0].substr(4) + "," + Number(s[2].substr(4)) + "," + Number(s[1].substr(4)) + "," + s[3].substr(4) + "," + (tm ? tm.x : 0) + "," + (tm ? tm.y : 0) : null;- }- var v = (s || "").replace(/[^\d\-\.e,]/g, "").split(","),- k = (v.length >= 6),- a = k ? Number(v[0]) : 1,- b = k ? Number(v[1]) : 0,- c = k ? Number(v[2]) : 0,- d = k ? Number(v[3]) : 1,- min = 0.000001,- m = rec ? tm || {skewY:0} : {skewY:0},- invX = (m.scaleX < 0); //in order to interpret things properly, we need to know if the user applied a negative scaleX previously so that we can adjust the rotation and skewX accordingly. Otherwise, if we always interpret a flipped matrix as affecting scaleY and the user only wants to tween the scaleX on multiple sequential tweens, it would keep the negative scaleY without that being the user's intent.-- m.x = (k ? Number(v[4]) : 0);- m.y = (k ? Number(v[5]) : 0);- m.scaleX = Math.sqrt(a * a + b * b);- m.scaleY = Math.sqrt(d * d + c * c);- m.rotation = (a || b) ? Math.atan2(b, a) : m.rotation || 0; //note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).- m.skewX = (c || d) ? Math.atan2(c, d) + m.rotation : m.skewX || 0;- if (Math.abs(m.skewX) > Math.PI / 2) {- if (invX) {- m.scaleX *= -1;- m.skewX += (m.rotation <= 0) ? Math.PI : -Math.PI;- m.rotation += (m.rotation <= 0) ? Math.PI : -Math.PI;- } else {- m.scaleY *= -1;- m.skewX += (m.skewX <= 0) ? Math.PI : -Math.PI;- }- }- //some browsers have a hard time with very small values like 2.4492935982947064e-16 (notice the "e-" towards the end) and would render the object slightly off. So we round to 0 in these cases. The conditional logic here is faster than calling Math.abs().- if (m.rotation < min) if (m.rotation > -min) if (a || b) {- m.rotation = 0;- }- if (m.skewX < min) if (m.skewX > -min) if (b || c) {- m.skewX = 0;- }- if (rec) {- style._gsTransform = m; //record to the object's _gsTransform which we use so that tweens can control individual properties independently (we need all the properties to accurately recompose the matrix in the setRatio() method)- }- return m;- },-- _dimensions = {width:["Left","Right"], height:["Top","Bottom"]},- _margins = ["marginLeft","marginRight","marginTop","marginBottom"],-- //for parsing things like transformOrigin or backgroundPosition which must recognize keywords like top/left/right/bottom/center as well as percentages and pixel values. Decorates the supplied object with the following properties: "ox" (offsetX), "oy" (offsetY), "oxp" (if true, "ox" is a percentage not a pixel value), and "oxy" (if true, "oy" is a percentage not a pixel value)- _parsePosition = function(v, o) {- if (v == null || v === "" || v === "auto") {- v = "0 0";- }- o = o || {};- var x = (v.indexOf("left") !== -1) ? "0%" : (v.indexOf("right") !== -1) ? "100%" : v.split(" ")[0],- y = (v.indexOf("top") !== -1) ? "0%" : (v.indexOf("bottom") !== -1) ? "100%" : v.split(" ")[1];- if (y == null) {- y = "0";- } else if (y === "center") {- y = "50%";- }- if (x === "center") {- x = "50%";- }- o.oxp = (x.indexOf("%") !== -1);- o.oyp = (y.indexOf("%") !== -1);- o.oxr = (x.charAt(1) === "=");- o.oyr = (y.charAt(1) === "=");- o.ox = parseFloat(x.replace(_NaNExp, ""));- o.oy = parseFloat(y.replace(_NaNExp, ""));- return o;- },-- //takes a value and a default number, checks if the value is relative, null, or numeric and spits back a normalized number accordingly. Primarily used in the _parseTransform() function.- _parseVal = function(v, d) {- return (v == null) ? d : (typeof(v) === "string" && v.indexOf("=") === 1) ? parseInt(v.charAt(0)+"1") * Number(v.substr(2)) + d : Number(v);- },-- //translates strings like "40deg" or "40" or 40rad" or "+=40deg" to a numeric radian angle, optionally relative to a default value (if "+=" or "-=" prefix is found)- _parseAngle = function(v, d) {- var m = (v.indexOf("rad") === -1) ? _DEG2RAD : 1,- r = (v.indexOf("=") === 1);- v = Number(v.replace(_NaNExp, "")) * m;- return r ? v + d : v;- },- _colorLookup = {aqua:[0,255,255],- lime:[0,255,0],- silver:[192,192,192],- black:[0,0,0],- maroon:[128,0,0],- teal:[0,128,128],- blue:[0,0,255],- navy:[0,0,128],- white:[255,255,255],- fuchsia:[255,0,255],- olive:[128,128,0],- yellow:[255,255,0],- orange:[255,165,0],- gray:[128,128,128],- purple:[128,0,128],- green:[0,128,0],- red:[255,0,0],- pink:[255,192,203],- cyan:[0,255,255],- transparent:[255,255,255,0]};+ }+ return a;+ };+- //gets called when the tween renders for the first time. This kicks everything off, recording start/end values, etc.+ //@private gets called when the tween renders for the first time. This kicks everything off, recording start/end values, etc.p._onInitTween = function(target, value, tween) {- this._style = target;- this._tween = tween;- this._transform = null; //_transform is only used for scaleX/scaleY/x/y/rotation/skewX/skewY tweens-- if (_reqSafariFix) if (this._style.zIndex === "" || this._style.zIndex === "auto") {- this._style.zIndex = 0;+ if (target.cssText === undefined) {+ return false;}-- this._parseVars(value, target, value.suffixMap || CSSRulePlugin.suffixMap);+ var div = _doc.createElement("div");+ this._ss = target;+ this._proxy = div.style;+ div.style.cssText = target.cssText;+ CSSPlugin.prototype._onInitTween.call(this, div, value, tween); //we just offload all the work to the regular CSSPlugin and then copy the cssText back over to the rule in the setRatio() method. This allows us to have all of the updates to CSSPlugin automatically flow through to CSSRulePlugin instead of having to maintain bothreturn true;- }-- //feed a vars object to this function and it will parse through its properties and add PropTweens as necessary. This is split out from the _onInitTween() so that we can recurse if necessary, like "margin" should affect "marginLeft", "marginRight", "marginTop", and "marginBottom".- p._parseVars = function(vars, s, map) {- var p, v, pt, beg, clr1, clr2, bsfx, esfx, rel, start, copy;-- for (p in vars) {-- v = vars[p];-- if (p === "transform" || p === _transformProp) {- this._parseTransform(s, v, map);- continue;- } else if (_transformMap[p] || p === "transformOrigin") {- this._parseTransform(s, vars, map);- continue;- } else if (p === "alpha" || p === "autoAlpha") { //alpha tweens are opacity tweens- p = "opacity";- } else if (p === "margin" || p === "padding") {- copy = (v + "").split(" ");- rel = copy.length;- pt = {};- pt[p + "Top"] = copy[0];- pt[p + "Right"] = (rel > 1) ? copy[1] : copy[0];- pt[p + "Bottom"] = (rel === 4) ? copy[2] : copy[0];- pt[p + "Left"] = (rel === 4) ? copy[3] : (rel === 2) ? copy[1] : copy[0];- this._parseVars(pt, s, map);- continue;- } else if (p === "backgroundPosition" || p === "backgroundSize") {- pt = _parsePosition(v); //end values- start = _parsePosition( (beg = s[p] || "50% 50%") ); //starting values- this._firstPT = pt = {_next:this._firstPT, t:s, p:p, b:beg, f:false, n:"css_" + p, type:3,- s:start.ox, //x start- c:pt.oxr ? pt.ox : pt.ox - start.ox, //change in x- ys:start.oy, //y start- yc:pt.oyr ? pt.oy : pt.oy - start.oy, //change in y- sfx:pt.oxp ? "%" : "px", //x suffix- ysfx:pt.oyp ? "%" : "px", //y suffix- r:(!pt.oxp && vars.autoRound !== false)};- pt.e = (pt.s + pt.c) + pt.sfx + " " + (pt.ys + pt.yc) + pt.ysfx; //we can't just use v because it could contain relative values, like +=50px which is an illegal final value.- continue;- } else if (p === "border") {- copy = (v + "").split(" ");- this._parseVars({borderWidth:copy[0], borderStyle:copy[1] || "none", borderColor:copy[2] || "#000000"}, s, map);- continue;- } else if (p === "autoRound") {- continue;- }-- beg = s[p];- beg = (beg != null) ? beg + "" : "";-- //Some of these properties are in place in order to conform with the standard PropTweens in TweenPlugins so that overwriting and roundProps occur properly. For example, f and r may seem unnecessary here, but they enable other functionality.- //_next:* next linked list node [object]- //t: * target [object]- //p: * property (camelCase) [string]- //s: * starting value [number]- //c: * change value [number]- //f: * is function [boolean]- //n: * name (for overwriting) [string]- //sfx: suffix [string]- //b: beginning value [string]- //i: intermediate value [string]- //e: ending value [string]- //r: * round [boolean]- //type: 0=normal, 1=color, 2=rgba, 3=positional offset (like backgroundPosition or backgroundSize), 4=unsupported opacity (ie), -1=non-tweening prop [number]- this._firstPT = pt = {_next:this._firstPT,- t:s,- p:p,- b:beg,- f:false,- n:"css_" + p,- sfx:"",- r:false,- type:0};-- //if it's an autoAlpha, add a new PropTween for "visibility". We must make sure the "visibility" PropTween comes BEFORE the "opacity" one in order to work around a bug in old versions of IE tht would ignore "visibility" changes if made right after an alpha change. Remember, we add PropTweens in reverse order - that's why we do this here, after creating the original PropTween.- if (p === "opacity") if (vars.autoAlpha != null) {- this._firstPT = pt._prev = {_next:pt, t:s, p:"visibility", f:false, n:"css_visibility", r:false, type:-1, b:(Number(beg) !== 0) ? "visible" : "hidden", i:"visible", e:(Number(v) === 0) ? "hidden" : "visible"};- this._overwriteProps.push("css_visibility");- }-- //color values must be split apart into their R, G, B (and sometimes alpha) values and tweened independently.- if (p === "color" || p === "fill" || p === "stroke" || p.indexOf("Color") !== -1 || (typeof(v) === "string" && !v.indexOf("rgb("))) { //Opera uses background: to define color sometimes in addition to backgroundColor:- clr1 = _parseColor(beg);- clr2 = _parseColor(v);- pt.e = pt.i = ((clr2.length > 3) ? "rgba(" : "rgb(") + clr2.join(",") + ")"; //don't just do pt.e = v because that won't work if the destination color is numeric, like 0xFF0000. We need to parse it.- pt.b = ((clr1.length > 3) ? "rgba(" : "rgb(") + clr1.join(",") + ")"; //normalize to rgb in case the beginning value was passed in as numeric, like 0xFF0000- pt.s = Number(clr1[0]); //red starting value- pt.c = Number(clr2[0]) - pt.s; //red change- pt.gs = Number(clr1[1]); //green starting value- pt.gc = Number(clr2[1]) - pt.gs; //green change- pt.bs = Number(clr1[2]); //blue starting value- pt.bc = Number(clr2[2]) - pt.bs; //blue change- pt.type = 1;- if (clr1.length > 3 || clr2.length > 3) { //detect an rgba() value- if (_supportsOpacity) {- pt.as = (clr1.length < 4) ? 1 : Number(clr1[3]);- pt.ac = ((clr2.length < 4) ? 1 : Number(clr2[3])) - pt.as;- pt.type = 2;- } else { //older versions of IE don't support rgba(), so if the destination alpha is 0, just use "transparent" for the color and make it a non-tweening property- if (clr2[3] == 0) {- pt.e = pt.i = "transparent";- pt.type = -1;- }- if (clr1[3] == 0) {- pt.b = "transparent";- }- }- }-- } else {-- bsfx = beg.replace(_suffixExp, ""); //beginning suffix-- if (beg === "" || beg === "auto") {- start = (p !== "opacity") ? 0 : 1;- } else {- start = (beg.indexOf(" ") === -1) ? parseFloat(beg.replace(_NaNExp, "")) : NaN;- }-- if (typeof(v) === "string") {- rel = (v.charAt(1) === "=");- esfx = v.replace(_suffixExp, "");- v = (v.indexOf(" ") === -1) ? parseFloat(v.replace(_NaNExp, "")) : NaN;- } else {- rel = false;- esfx = "";- }-- if (esfx === "") {- esfx = map[p] || bsfx; //populate the end suffix, prioritizing the map, then if none is found, use the beginning suffix.- }-- pt.e = (v || v === 0) ? (rel ? v + start : v) + esfx : vars[p]; //ensures that any += or -= prefixes are taken care of. Record the end value before normalizing the suffix because we always want to end the tween on exactly what they intended even if it doesn't match the beginning value's suffix.-- //if the beginning/ending suffixes don't match, normalize them...- if (bsfx !== esfx) if (esfx !== "") if (v || v === 0) if (start || start === 0) {- throw("CSSRulePlugin error: starting and ending units don't match on tween of " + p + " (" + bsfx + " vs " + esfx + ")");- }-- if ((start || start === 0) && (v || v === 0) && (pt.c = (rel ? v : v - start))) { //faster than isNaN(). Also, we set pt.c (change) here because if it's 0, we'll just treat it like a non-tweening value. can't do (v !== start) because if it's a relative value and the CHANGE is identical to the START, the condition will fail unnecessarily.- pt.s = start;- pt.sfx = esfx;- if (p === "opacity") {- if (!_supportsOpacity) {- pt.type = 4;- pt.p = "filter";- pt.b = "alpha(opacity=" + (pt.s * 100) + ")";- pt.e = "alpha(opacity=" + ((pt.s + pt.c) * 100) + ")";- pt.dup = (vars.autoAlpha != null); //dup = duplicate the setting of the alpha in order to work around a bug in IE7 and IE8 that prevents changes to "visibility" from taking effect if the filter is changed to a different alpha(opacity) at the same time. Setting it to the SAME value first, then the new value works around the IE7/8 bug.- this._style.zoom = 1; //helps correct an IE issue.- }- } else if (vars.autoRound !== false && (esfx === "px" || p === "zIndex")) { //always round zIndex, and as long as autoRound isn't false, round pixel values (that improves performance in browsers typically)- pt.r = true;- }- } else {- pt.type = -1;- pt.i = (p === "display" && pt.e === "none") ? pt.b : pt.e; //intermediate value is typically the same as the end value except for "display"- pt.s = pt.c = 0;- }-- }-- this._overwriteProps.push("css_" + p);- if (pt._next) {- pt._next._prev = pt;- }- }-- }--- //compares the beginning x, y, scaleX, scaleY, rotation, and skewX properties with the ending ones and adds PropTweens accordingly wherever necessary. We must tween them individually (rather than just tweening the matrix values) so that elgant overwriting can occur, like if one tween is controlling scaleX, scaleY, and rotation and then another one starts mid-tween that is trying to control the scaleX only - this tween should continue tweening scaleY and rotation.- p._parseTransform = function(s, v, map) {- if (this._transform) { return; } //only need to parse the transform once, and only if the browser supports it.-- var m1 = this._transform = _getTransform(s, true),- min = 0.000001,- m2, skewY, p, pt, copy, orig;-- if (typeof(v) === "object") { //for values like scaleX, scaleY, rotation, x, y, skewX, and skewY or transform:{...} (object)-- m2 = {scaleX:_parseVal((v.scaleX != null) ? v.scaleX : v.scale, m1.scaleX),- scaleY:_parseVal((v.scaleY != null) ? v.scaleY : v.scale, m1.scaleY),- x:_parseVal(v.x, m1.x),- y:_parseVal(v.y, m1.y)};-- if (v.shortRotation != null) {- m2.rotation = (typeof(v.shortRotation) === "number") ? v.shortRotation * _DEG2RAD : _parseAngle(v.shortRotation, m1.rotation);- var dif = (m2.rotation - m1.rotation) % (Math.PI * 2);- if (dif !== dif % Math.PI) {- dif += Math.PI * ((dif < 0) ? 2 : -2);- }- m2.rotation = m1.rotation + dif;-- } else {- m2.rotation = (v.rotation == null) ? m1.rotation : (typeof(v.rotation) === "number") ? v.rotation * _DEG2RAD : _parseAngle(v.rotation, m1.rotation);- }- m2.skewX = (v.skewX == null) ? m1.skewX : (typeof(v.skewX) === "number") ? v.skewX * _DEG2RAD : _parseAngle(v.skewX, m1.skewX);-- //note: for performance reasons, we combine all skewing into the skewX and rotation values, ignoring skewY but we must still record it so that we can discern how much of the overall skew is attributed to skewX vs. skewY. Otherwise, if the skewY would always act relative (tween skewY to 10deg, for example, multiple times and if we always combine things into skewX, we can't remember that skewY was 10 from last time). Remember, a skewY of 10 degrees looks the same as a rotation of 10 degrees plus a skewX of -10 degrees.- m2.skewY = (v.skewY == null) ? m1.skewY : (typeof(v.skewY) === "number") ? v.skewY * _DEG2RAD : _parseAngle(v.skewY, m1.skewY);- if ((skewY = m2.skewY - m1.skewY)) {- m2.skewX += skewY- m2.rotation += skewY;- }- //don't allow rotation/skew values to be a SUPER small decimal because when they're translated back to strings for setting the css property, the browser reports them in a funky way, like 1-e7. Of course we could use toFixed() to resolve that issue but that hurts performance quite a bit with all those function calls on every frame, plus it is virtually impossible to discern values that small visually (nobody will notice changing a rotation of 0.0000001 to 0, so the performance improvement is well worth it).- if (m2.skewY < min) if (m2.skewY > -min) {- m2.skewY = 0;- }- if (m2.skewX < min) if (m2.skewX > -min) {- m2.skewX = 0;- }- if (m2.rotation < min) if (m2.rotation > -min) {- m2.rotation = 0;- }-- //if a transformOrigin is defined, handle it here...- if ((orig = v.transformOrigin) != null) {- if (_transformProp) {- p = _transformProp + "Origin";- this._firstPT = pt = {_next:this._firstPT, t:s, p:p, s:0, c:0, n:p, f:false, r:false, b:s[p], e:orig, i:orig, type:-1, sfx:""};- if (pt._next) {- pt._next._prev = pt;- }-- //for older versions of IE (6-8), we need to manually calculate things inside the setRatio() function. We record origin x and y (ox and oy) and whether or not the values are percentages (oxp and oyp).- } else {- _parsePosition(orig, m1);- }- }-- } else if (typeof(v) === "string" && _transformProp) { //for values like transform:"rotate(60deg) scale(0.5, 0.8)"- copy = s[_transformProp];- s[_transformProp] = v;- m2 = _getTransform(s, false);- s[_transformProp] = copy;- } else {- return;- }-- if (!_transformProp) {- s.zoom = 1; //helps correct an IE issue.- } else if (_isSafari) {- _reqSafariFix = true;- //corrects a bug in [non-Android] Safari that causes it to skip rendering changes to "top" and "left" that are made on the same frame/render as a transform update. It also helps work around bugs in iOS Safari that can prevent it from repainting elements in their new positions. We cannot just check for a Webkit browser because some Android devices like the Atrix don't like this "fix". Setting "WebkitPerspective" to a non-zero value worked too except that on iOS Safari things would flicker randomly.- if (s.WebkitBackfaceVisibility === "") {- s.WebkitBackfaceVisibility = "hidden";- }- //if zIndex isn't set, iOS Safari doesn't repaint things correctly sometimes (seemingly at random).- if (s.zIndex === "") {- s.zIndex = 0;- }- }-- for (p in _transformMap) {- if (m1[p] !== m2[p]) if (p !== "shortRotation") if (p !== "scale") {- this._firstPT = pt = {_next:this._firstPT, t:m1, p:p, s:m1[p], c:m2[p] - m1[p], n:p, f:false, r:false, b:m1[p], e:m2[p], type:0, sfx:0};- if (pt._next) {- pt._next._prev = pt;- }- this._overwriteProps.push("css_" + p);- }- }};+- //gets called every time the tween updates, passing the new ratio (typically a value between 0 and 1, but not always (for example, if an Elastic.easeOut is used, the value can jump above 1 mid-tween). It will always start and 0 and end at 1.+ //@private gets called every time the tween updates, passing the new ratio (typically a value between 0 and 1, but not always (for example, if an Elastic.easeOut is used, the value can jump above 1 mid-tween). It will always start and 0 and end at 1.p.setRatio = function(v) {- var pt = this._firstPT,- min = 0.000001, val, y;-- //at the end of the tween, we set the values to exactly what we received in order to make sure non-tweening values (like "position" or "float" or whatever) are set and so that if the beginning/ending suffixes (units) didn't match and we normalized to px, the value that the user passed in is used here. We check to see if the tween is at its beginning in case it's a from() tween in which case the ratio will actually go from 1 to 0 over the course of the tween (backwards).- if (v === 1 && (this._tween._time === this._tween._duration || this._tween._time === 0)) {- while (pt) {- pt.t[pt.p] = pt.e;- pt = pt._next;- }-- } else if (v || !(this._tween._time === this._tween._duration || this._tween._time === 0)) {-- while (pt) {- val = pt.c * v + pt.s;- if (pt.r) {- val = (val > 0) ? (val + 0.5) >> 0 : (val - 0.5) >> 0;- } else if (val < min) if (val > -min) {- val = 0;- }- if (!pt.type) {- pt.t[pt.p] = val + pt.sfx;- } else if (pt.type === 1) { //rgb()- pt.t[pt.p] = "rgb(" + (val >> 0) + ", " + ((pt.gs + (v * pt.gc)) >> 0) + ", " + ((pt.bs + (v * pt.bc)) >> 0) + ")";- } else if (pt.type === 2) { //rgba()- pt.t[pt.p] = "rgba(" + (val >> 0) + ", " + ((pt.gs + (v * pt.gc)) >> 0) + ", " + ((pt.bs + (v * pt.bc)) >> 0) + ", " + (pt.as + (v * pt.ac)) + ")";- } else if (pt.type === -1) { //non-tweening- pt.t[pt.p] = pt.i;- } else if (pt.type === 3) { //positional property with an x and y, like backgroundPosition or backgroundSize- y = pt.ys + v * pt.yc;- if (pt.r) {- y = (y > 0) ? (y + 0.5) >> 0 : (y - 0.5) >> 0;- }- pt.t[pt.p] = val + pt.sfx + " " + y + pt.ysfx;- } else {- if (pt.dup) {- pt.t.filter = pt.t.filter || "alpha(opacity=100)"; //works around bug in IE7/8 that prevents changes to "visibility" from being applied propertly if the filter is changed to a different alpha on the same frame.- }- if (pt.t.filter.indexOf("opacity") === -1) { //only used if browser doesn't support the standard opacity style property (IE 7 and 8)- pt.t.filter += " alpha(opacity=" + ((val * 100) >> 0) + ")"; //we round the value because otherwise, bugs in IE7/8 can prevent "visibility" changes from being applied properly.- } else {- pt.t.filter = pt.t.filter.replace(_opacityExp, "opacity=" + ((val * 100) >> 0)); //we round the value because otherwise, bugs in IE7/8 can prevent "visibility" changes from being applied properly.- }- }- pt = pt._next;- }-- //if the tween is reversed all the way back to the beginning, we need to restore the original values which may have different units (like % instead of px or em or whatever).- } else {- while (pt) {- pt.t[pt.p] = pt.b;- pt = pt._next;- }- }-- //apply transform values like x, y, scaleX, scaleY, rotation, skewX, or skewY. We do these after looping through all the PropTweens because those are where the changes are made to scaleX/scaleY/rotation/skewX/skewY/x/y.- if (this._transform) {- pt = this._transform; //to improve speed and reduce size, reuse the pt variable as an alias to the _transform property- //if there is no rotation or skew, browsers render the transform faster if we just feed it the list of transforms like translate() skewX() scale(), otherwise defining the matrix() values directly is fastest.- if (_transformProp && !pt.rotation && !pt.skewX) {- this._style[_transformProp] = ((pt.x || pt.y) ? "translate(" + pt.x + "px," + pt.y + "px) " : "") + ((pt.scaleX !== 1 || pt.scaleY !== 1) ? "scale(" + pt.scaleX + "," + pt.scaleY + ")" : "") || "translate(0px,0px)"; //we need to default to translate(0px,0px) to work around a Chrome bug that rears its ugly head when the transform is set to "".- } else {- var ang = _transformProp ? pt.rotation : -pt.rotation,- skew = _transformProp ? ang - pt.skewX : ang + pt.skewX,- a = Math.cos(ang) * pt.scaleX,- b = Math.sin(ang) * pt.scaleX,- c = Math.sin(skew) * -pt.scaleY,- d = Math.cos(skew) * pt.scaleY;- //some browsers have a hard time with very small values like 2.4492935982947064e-16 (notice the "e-" towards the end) and would render the object slightly off. So we round to 0 in these cases. The conditional logic here is faster than calling Math.abs().- if (a < min) if (a > -min) {- a = 0;- }- if (b < min) if (b > -min) {- b = 0;- }- if (c < min) if (c > -min) {- c = 0;- }- if (d < min) if (d > -min) {- d = 0;- }- if (_transformProp) {- this._style[_transformProp] = "matrix(" + a + "," + b + "," + c + "," + d + "," + pt.x + "," + pt.y + ")";-- //only for older versions of IE (6-8), we use a filter and marginLeft/marginTop to simulate the transform.- } else {- min = b; //just for swapping the variables an inverting them (reused "min" to avoid creating another variable in memory). IE's filter matrix uses a non-standard matrix configuration (angle goes the opposite way, and b and c are reversed and inverted)- b = -c;- c = -min;- var filters = this._style.filter;- this._style.filter = ""; //remove filters so that we can accurately measure offsetWidth/offsetHeight- var clip = (this._style.position !== "absolute"),- m = "progid:DXImageTransform.Microsoft.Matrix(M11=" + a + ", M12=" + b + ", M21=" + c + ", M22=" + d + ",sizingMethod='auto expand')",- ox = pt.x,- oy = pt.y,- dx, dy;-- if (filters.indexOf("DXImageTransform.Microsoft.Matrix(") !== -1) {- this._style.filter = filters.replace(_ieSetMatrixExp, m);- } else {- this._style.filter = m + " " + filters;- }- }- }- }-- }-- //we need to make sure that if alpha or autoAlpha is killed, opacity is too. And autoAlpha affects the "visibility" property.- p._kill = function(lookup) {- var copy = lookup, p;- if (lookup.autoAlpha || lookup.alpha) {- copy = {};- for (p in lookup) { //copy the lookup so that we're not changing the original which may be passed elsewhere.- copy[p] = lookup[p];- }- copy.opacity = 1;- if (copy.autoAlpha) {- copy.visibility = 1;- }- }- return TweenPlugin.prototype._kill.call(this, copy);- }+ _superSetRatio.call(this, v);+ this._ss.cssText = this._proxy.cssText;+ };TweenPlugin.activate([CSSRulePlugin]);diff --git a/src/uncompressed/plugins/ScrollToPlugin.js b/src/uncompressed/plugins/ScrollToPlugin.jsindex a47f7ec..141ff94 100755--- a/src/uncompressed/plugins/ScrollToPlugin.js+++ b/src/uncompressed/plugins/ScrollToPlugin.js@@ -1,6 +1,6 @@/**- * VERSION: beta 1.5- * DATE: 2012-11-16+ * VERSION: beta 1.52+ * DATE: 2012-12-17* JavaScript* UPDATES AND DOCS AT: http://www.greensock.com*@@ -69,7 +69,7 @@if (lookup.scrollTo_x) {this.skipX = true;}- if (lookup.scrollTo_x) {+ if (lookup.scrollTo_y) {this.skipY = true;}return TweenPlugin.prototype._kill.call(this, lookup);@@ -84,14 +84,17 @@p.setRatio = function(v) {_setRatio.call(this, v);- var x = this.getX(),- y = this.getY();+ var x = (this._wdw || !this.skipX) ? this.getX() : this.xPrev,+ y = (this._wdw || !this.skipY) ? this.getY() : this.yPrev,+ yDif = y - this.yPrev,+ xDif = x - this.xPrev;- if (!this.skipX && x !== this.xPrev) {+ //note: iOS has a bug that throws off the scroll by several pixels, so we need to check if it's within 7 pixels of the previous one that we set instead of just looking for an exact match.+ if (!this.skipX && (xDif > 7 || xDif < -7)) {this.skipX = true; //if the user scrolls separately, we should stop tweening!this._checkAutoKill();}- if (!this.skipY && y !== this.yPrev) {+ if (!this.skipY && (yDif > 7 || yDif < -7)) {this.skipY = true; //if the user scrolls separately, we should stop tweening!this._checkAutoKill();}