/*! * version: 1.19.0 * date: 2016-07-14 * updates and docs at: http://greensock.com * * includes all of the following: tweenlite, tweenmax, timelinelite, timelinemax, easepack, cssplugin, roundpropsplugin, bezierplugin, attrplugin, directionalrotationplugin * * @license copyright (c) 2008-2016, greensock. all rights reserved. * this work is subject to the terms at http://greensock.com/standard-license or for * club greensock members, the software agreement that was issued with your membership. * * @author: jack doyle, jack@greensock.com **/ var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsscope._gsqueue||(_gsscope._gsqueue=[])).push(function(){"use strict";_gsscope._gsdefine("tweenmax",["core.animation","core.simpletimeline","tweenlite"],function(a,b,c){var d=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},e=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c]):e[c%e.length];delete a.cycle},f=function(a,b,d){c.call(this,a,b,d),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._dirty=!0,this.render=f.prototype.render},g=1e-10,h=c._internals,i=h.isselector,j=h.isarray,k=f.prototype=c.to({},.1,{}),l=[];f.version="1.19.0",k.constructor=f,k.kill()._gc=!1,f.killtweensof=f.killdelayedcallsto=c.killtweensof,f.gettweensof=c.gettweensof,f.lagsmoothing=c.lagsmoothing,f.ticker=c.ticker,f.render=c.render,k.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._uncache(!0),c.prototype.invalidate.call(this)},k.updateto=function(a,b){var d,e=this.ratio,f=this.vars.immediaterender||a.immediaterender;b&&this._starttime.998){var g=this._totaltime;this.render(0,!0,!1),this._initted=!1,this.render(g,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||f)for(var h,i=1/(1-e),j=this._firstpt;j;)h=j.s+j.c,j.c*=i,j.s=h-j.c,j=j._next;return this},k.render=function(a,b,c){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var d,e,f,i,j,k,l,m,n=this._dirty?this.totalduration():this._totalduration,o=this._time,p=this._totaltime,q=this._cycle,r=this._duration,s=this._rawprevtime;if(a>=n-1e-7?(this._totaltime=n,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0):(this._time=r,this.ratio=this._ease._calcend?this._ease.getratio(1):1),this._reversed||(d=!0,e="oncomplete",c=c||this._timeline.autoremovechildren),0===r&&(this._initted||!this.vars.lazy||c)&&(this._starttime===this._timeline._duration&&(a=0),(0>s||0>=a&&a>=-1e-7||s===g&&"ispause"!==this.data)&&s!==a&&(c=!0,s>g&&(e="onreversecomplete")),this._rawprevtime=m=!b||a||s===a?a:g)):1e-7>a?(this._totaltime=this._time=this._cycle=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==p||0===r&&s>0)&&(e="onreversecomplete",d=this._reversed),0>a&&(this._active=!1,0===r&&(this._initted||!this.vars.lazy||c)&&(s>=0&&(c=!0),this._rawprevtime=m=!b||a||s===a?a:g)),this._initted||(c=!0)):(this._totaltime=this._time=a,0!==this._repeat&&(i=r+this._repeatdelay,this._cycle=this._totaltime/i>>0,0!==this._cycle&&this._cycle===this._totaltime/i&&a>=p&&this._cycle--,this._time=this._totaltime-this._cycle*i,this._yoyo&&0!==(1&this._cycle)&&(this._time=r-this._time),this._time>r?this._time=r:this._time<0&&(this._time=0)),this._easetype?(j=this._time/r,k=this._easetype,l=this._easepower,(1===k||3===k&&j>=.5)&&(j=1-j),3===k&&(j*=2),1===l?j*=j:2===l?j*=j*j:3===l?j*=j*j*j:4===l&&(j*=j*j*j*j),1===k?this.ratio=1-j:2===k?this.ratio=j:this._time/r<.5?this.ratio=j/2:this.ratio=1-j/2):this.ratio=this._ease.getratio(this._time/r)),o===this._time&&!c&&q===this._cycle)return void(p!==this._totaltime&&this._onupdate&&(b||this._callback("onupdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=o,this._totaltime=p,this._rawprevtime=s,this._cycle=q,h.lazytweens.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getratio(this._time/r):d&&this._ease._calcend&&(this.ratio=this._ease.getratio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&a>=0&&(this._active=!0),0===p&&(2===this._initted&&a>0&&this._init(),this._startat&&(a>=0?this._startat.render(a,b,c):e||(e="_dummygs")),this.vars.onstart&&(0!==this._totaltime||0===r)&&(b||this._callback("onstart"))),f=this._firstpt;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onupdate&&(0>a&&this._startat&&this._starttime&&this._startat.render(a,b,c),b||(this._totaltime!==p||e)&&this._callback("onupdate")),this._cycle!==q&&(b||this._gc||this.vars.onrepeat&&this._callback("onrepeat")),e&&(!this._gc||c)&&(0>a&&this._startat&&!this._onupdate&&this._starttime&&this._startat.render(a,b,c),d&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===r&&this._rawprevtime===g&&m!==g&&(this._rawprevtime=0))},f.to=function(a,b,c){return new f(a,b,c)},f.from=function(a,b,c){return c.runbackwards=!0,c.immediaterender=0!=c.immediaterender,new f(a,b,c)},f.fromto=function(a,b,c,d){return d.startat=c,d.immediaterender=0!=d.immediaterender&&0!=c.immediaterender,new f(a,b,d)},f.staggerto=f.allto=function(a,b,g,h,k,m,n){h=h||0;var o,p,q,r,s=0,t=[],u=function(){g.oncomplete&&g.oncomplete.apply(g.oncompletescope||this,arguments),k.apply(n||g.callbackscope||this,m||l)},v=g.cycle,w=g.startat&&g.startat.cycle;for(j(a)||("string"==typeof a&&(a=c.selector(a)||a),i(a)&&(a=d(a))),a=a||[],0>h&&(a=d(a),a.reverse(),h*=-1),o=a.length-1,q=0;o>=q;q++){p={};for(r in g)p[r]=g[r];if(v&&(e(p,a,q),null!=p.duration&&(b=p.duration,delete p.duration)),w){w=p.startat={};for(r in g.startat)w[r]=g.startat[r];e(p.startat,a,q)}p.delay=s+(p.delay||0),q===o&&k&&(p.oncomplete=u),t[q]=new f(a[q],b,p),s+=h}return t},f.staggerfrom=f.allfrom=function(a,b,c,d,e,g,h){return c.runbackwards=!0,c.immediaterender=0!=c.immediaterender,f.staggerto(a,b,c,d,e,g,h)},f.staggerfromto=f.allfromto=function(a,b,c,d,e,g,h,i){return d.startat=c,d.immediaterender=0!=d.immediaterender&&0!=c.immediaterender,f.staggerto(a,b,d,e,g,h,i)},f.delayedcall=function(a,b,c,d,e){return new f(b,0,{delay:a,oncomplete:b,oncompleteparams:c,callbackscope:d,onreversecomplete:b,onreversecompleteparams:c,immediaterender:!1,useframes:e,overwrite:0})},f.set=function(a,b){return new f(a,0,b)},f.istweening=function(a){return c.gettweensof(a,!0).length>0};var m=function(a,b){for(var d=[],e=0,f=a._first;f;)f instanceof c?d[e++]=f:(b&&(d[e++]=f),d=d.concat(m(f,b)),e=d.length),f=f._next;return d},n=f.getalltweens=function(b){return m(a._roottimeline,b).concat(m(a._rootframestimeline,b))};f.killall=function(a,c,d,e){null==c&&(c=!0),null==d&&(d=!0);var f,g,h,i=n(0!=e),j=i.length,k=c&&d&&e;for(h=0;j>h;h++)g=i[h],(k||g instanceof b||(f=g.target===g.vars.oncomplete)&&d||c&&!f)&&(a?g.totaltime(g._reversed?0:g.totalduration()):g._enabled(!1,!1))},f.killchildtweensof=function(a,b){if(null!=a){var e,g,k,l,m,n=h.tweenlookup;if("string"==typeof a&&(a=c.selector(a)||a),i(a)&&(a=d(a)),j(a))for(l=a.length;--l>-1;)f.killchildtweensof(a[l],b);else{e=[];for(k in n)for(g=n[k].target.parentnode;g;)g===a&&(e=e.concat(n[k].tweens)),g=g.parentnode;for(m=e.length,l=0;m>l;l++)b&&e[l].totaltime(e[l].totalduration()),e[l]._enabled(!1,!1)}}};var o=function(a,c,d,e){c=c!==!1,d=d!==!1,e=e!==!1;for(var f,g,h=n(e),i=c&&d&&e,j=h.length;--j>-1;)g=h[j],(i||g instanceof b||(f=g.target===g.vars.oncomplete)&&d||c&&!f)&&g.paused(a)};return f.pauseall=function(a,b,c){o(!0,a,b,c)},f.resumeall=function(a,b,c){o(!1,a,b,c)},f.globaltimescale=function(b){var d=a._roottimeline,e=c.ticker.time;return arguments.length?(b=b||g,d._starttime=e-(e-d._starttime)*d._timescale/b,d=a._rootframestimeline,e=c.ticker.frame,d._starttime=e-(e-d._starttime)*d._timescale/b,d._timescale=a._roottimeline._timescale=b,b):d._timescale},k.progress=function(a,b){return arguments.length?this.totaltime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatdelay),b):this._time/this.duration()},k.totalprogress=function(a,b){return arguments.length?this.totaltime(this.totalduration()*a,b):this._totaltime/this.totalduration()},k.time=function(a,b){return arguments.length?(this._dirty&&this.totalduration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatdelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatdelay)),this.totaltime(a,b)):this._time},k.duration=function(b){return arguments.length?a.prototype.duration.call(this,b):this._duration},k.totalduration=function(a){return arguments.length?-1===this._repeat?this:this.duration((a-this._repeat*this._repeatdelay)/(this._repeat+1)):(this._dirty&&(this._totalduration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatdelay*this._repeat,this._dirty=!1),this._totalduration)},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatdelay=function(a){return arguments.length?(this._repeatdelay=a,this._uncache(!0)):this._repeatdelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},f},!0),_gsscope._gsdefine("timelinelite",["core.animation","core.simpletimeline","tweenlite"],function(a,b,c){var d=function(a){b.call(this,a),this._labels={},this.autoremovechildren=this.vars.autoremovechildren===!0,this.smoothchildtiming=this.vars.smoothchildtiming===!0,this._sortchildren=!0,this._onupdate=this.vars.onupdate;var c,d,e=this.vars;for(d in e)c=e[d],i(c)&&-1!==c.join("").indexof("{self}")&&(e[d]=this._swapselfinparams(c));i(e.tweens)&&this.add(e.tweens,0,e.align,e.stagger)},e=1e-10,f=c._internals,g=d._internals={},h=f.isselector,i=f.isarray,j=f.lazytweens,k=f.lazyrender,l=_gsscope._gsdefine.globals,m=function(a){var b,c={};for(b in a)c[b]=a[b];return c},n=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e.call(b[c],c):e[c%e.length];delete a.cycle},o=g.pausecallback=function(){},p=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},q=d.prototype=new b;return d.version="1.19.0",q.constructor=d,q.kill()._gc=q._forcingplayhead=q._haspause=!1,q.to=function(a,b,d,e){var f=d.repeat&&l.tweenmax||c;return b?this.add(new f(a,b,d),e):this.set(a,d,e)},q.from=function(a,b,d,e){return this.add((d.repeat&&l.tweenmax||c).from(a,b,d),e)},q.fromto=function(a,b,d,e,f){var g=e.repeat&&l.tweenmax||c;return b?this.add(g.fromto(a,b,d,e),f):this.set(a,e,f)},q.staggerto=function(a,b,e,f,g,i,j,k){var l,o,q=new d({oncomplete:i,oncompleteparams:j,callbackscope:k,smoothchildtiming:this.smoothchildtiming}),r=e.cycle;for("string"==typeof a&&(a=c.selector(a)||a),a=a||[],h(a)&&(a=p(a)),f=f||0,0>f&&(a=p(a),a.reverse(),f*=-1),o=0;ol;l++)i(m=e[l])&&(m=new d({tweens:m})),this.add(m,j),"string"!=typeof m&&"function"!=typeof m&&("sequence"===g?j=m._starttime+m.totalduration()/m._timescale:"start"===g&&(m._starttime-=m.delay())),j+=h;return this._uncache(!0)}if("string"==typeof e)return this.addlabel(e,f);if("function"!=typeof e)throw"cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=c.delayedcall(0,e)}if(b.prototype.add.call(this,e,f),(this._gc||this._time===this._duration)&&!this._paused&&this._duratione._starttime;n._timeline;)o&&n._timeline.smoothchildtiming?n.totaltime(n._totaltime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline;return this},q.remove=function(b){if(b instanceof a){this._remove(b,!1);var c=b._timeline=b.vars.useframes?a._rootframestimeline:a._roottimeline;return b._starttime=(b._paused?b._pausetime:c._time)-(b._reversed?b.totalduration()-b._totaltime:b._totaltime)/b._timescale,this}if(b instanceof array||b&&b.push&&i(b)){for(var d=b.length;--d>-1;)this.remove(b[d]);return this}return"string"==typeof b?this.removelabel(b):this.kill(null,b)},q._remove=function(a,c){b.prototype._remove.call(this,a,c);var d=this._last;return d?this._time>d._starttime+d._totalduration/d._timescale&&(this._time=this.duration(),this._totaltime=this._totalduration):this._time=this._totaltime=this._duration=this._totalduration=0,this},q.append=function(a,b){return this.add(a,this._parsetimeorlabel(null,b,!0,a))},q.insert=q.insertmultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},q.appendmultiple=function(a,b,c,d){return this.add(a,this._parsetimeorlabel(null,b,!0,a),c,d)},q.addlabel=function(a,b){return this._labels[a]=this._parsetimeorlabel(b),this},q.addpause=function(a,b,d,e){var f=c.delayedcall(0,o,d,e||this);return f.vars.oncomplete=f.vars.onreversecomplete=b,f.data="ispause",this._haspause=!0,this.add(f,a)},q.removelabel=function(a){return delete this._labels[a],this},q.getlabeltime=function(a){return null!=this._labels[a]?this._labels[a]:-1},q._parsetimeorlabel=function(b,c,d,e){var f;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e&&(e instanceof array||e.push&&i(e)))for(f=e.length;--f>-1;)e[f]instanceof a&&e[f].timeline===this&&this.remove(e[f]);if("string"==typeof c)return this._parsetimeorlabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-this.duration():0,d);if(c=c||0,"string"!=typeof b||!isnan(b)&&null==this._labels[b])null==b&&(b=this.duration());else{if(f=b.indexof("="),-1===f)return null==this._labels[b]?d?this._labels[b]=this.duration()+c:c:this._labels[b]+c;c=parseint(b.charat(f-1)+"1",10)*number(b.substr(f+1)),b=f>1?this._parsetimeorlabel(b.substr(0,f-1),0,d):this.duration()}return number(b)+c},q.seek=function(a,b){return this.totaltime("number"==typeof a?a:this._parsetimeorlabel(a),b!==!1)},q.stop=function(){return this.paused(!0)},q.gotoandplay=function(a,b){return this.play(a,b)},q.gotoandstop=function(a,b){return this.pause(a,b)},q.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,g,h,i,l,m,n=this._dirty?this.totalduration():this._totalduration,o=this._time,p=this._starttime,q=this._timescale,r=this._paused;if(a>=n-1e-7)this._totaltime=this._time=n,this._reversed||this._haspausedchild()||(f=!0,h="oncomplete",i=!!this._timeline.autoremovechildren,0===this._duration&&(0>=a&&a>=-1e-7||this._rawprevtime<0||this._rawprevtime===e)&&this._rawprevtime!==a&&this._first&&(i=!0,this._rawprevtime>e&&(h="onreversecomplete"))),this._rawprevtime=this._duration||!b||a||this._rawprevtime===a?a:e,a=n+1e-4;else if(1e-7>a)if(this._totaltime=this._time=0,(0!==o||0===this._duration&&this._rawprevtime!==e&&(this._rawprevtime>0||0>a&&this._rawprevtime>=0))&&(h="onreversecomplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoremovechildren&&this._reversed?(i=f=!0,h="onreversecomplete"):this._rawprevtime>=0&&this._first&&(i=!0),this._rawprevtime=a;else{if(this._rawprevtime=this._duration||!b||a||this._rawprevtime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._starttime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(i=!0)}else{if(this._haspause&&!this._forcingplayhead&&!b){if(a>=o)for(d=this._first;d&&d._starttime<=a&&!l;)d._duration||"ispause"!==d.data||d.ratio||0===d._starttime&&0===this._rawprevtime||(l=d),d=d._next;else for(d=this._last;d&&d._starttime>=a&&!l;)d._duration||"ispause"===d.data&&d._rawprevtime>0&&(l=d),d=d._prev;l&&(this._time=a=l._starttime,this._totaltime=a+this._cycle*(this._totalduration+this._repeatdelay))}this._totaltime=this._time=this._rawprevtime=a}if(this._time!==o&&this._first||c||i||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==o&&a>0&&(this._active=!0),0===o&&this.vars.onstart&&(0===this._time&&this._duration||b||this._callback("onstart")),m=this._time,m>=o)for(d=this._first;d&&(g=d._next,m===this._time&&(!this._paused||r));)(d._active||d._starttime<=m&&!d._paused&&!d._gc)&&(l===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,c):d.render((a-d._starttime)*d._timescale,b,c)),d=g;else for(d=this._last;d&&(g=d._prev,m===this._time&&(!this._paused||r));){if(d._active||d._starttime<=o&&!d._paused&&!d._gc){if(l===d){for(l=d._prev;l&&l.endtime()>this._time;)l.render(l._reversed?l.totalduration()-(a-l._starttime)*l._timescale:(a-l._starttime)*l._timescale,b,c),l=l._prev;l=null,this.pause()}d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,c):d.render((a-d._starttime)*d._timescale,b,c)}d=g}this._onupdate&&(b||(j.length&&k(),this._callback("onupdate"))),h&&(this._gc||(p===this._starttime||q!==this._timescale)&&(0===this._time||n>=this.totalduration())&&(f&&(j.length&&k(),this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[h]&&this._callback(h)))}},q._haspausedchild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._haspausedchild())return!0;a=a._next}return!1},q.getchildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)g._starttime-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(g[h++]=d[e]);return f&&this._enabled(!1,!0),g},q.recent=function(){return this._recent},q._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},q.shiftchildren=function(a,b,c){c=c||0;for(var d,e=this._first,f=this._labels;e;)e._starttime>=c&&(e._starttime+=a),e=e._next;if(b)for(d in f)f[d]>=c&&(f[d]+=a);return this._uncache(!0)},q._kill=function(a,b){if(!a&&!b)return this._enabled(!1,!1);for(var c=b?this.gettweensof(b):this.getchildren(!0,!0,!1),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},q.clear=function(a){var b=this.getchildren(!1,!0,!0),c=b.length;for(this._time=this._totaltime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},q.invalidate=function(){for(var b=this._first;b;)b.invalidate(),b=b._next;return a.prototype.invalidate.call(this)},q._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},q.totaltime=function(b,c,d){this._forcingplayhead=!0;var e=a.prototype.totaltime.apply(this,arguments);return this._forcingplayhead=!1,e},q.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timescale(this._duration/a),this):(this._dirty&&this.totalduration(),this._duration)},q.totalduration=function(a){if(!arguments.length){if(this._dirty){for(var b,c,d=0,e=this._last,f=999999999999;e;)b=e._prev,e._dirty&&e.totalduration(),e._starttime>f&&this._sortchildren&&!e._paused?this.add(e,e._starttime-e._delay):f=e._starttime,e._starttime<0&&!e._paused&&(d-=e._starttime,this._timeline.smoothchildtiming&&(this._starttime+=e._starttime/this._timescale),this.shiftchildren(-e._starttime,!1,-9999999999),f=0),c=e._starttime+e._totalduration/e._timescale,c>d&&(d=c),e=b;this._duration=this._totalduration=d,this._dirty=!1}return this._totalduration}return a&&this.totalduration()?this.timescale(this._totalduration/a):this},q.paused=function(b){if(!b)for(var c=this._first,d=this._time;c;)c._starttime===d&&"ispause"===c.data&&(c._rawprevtime=0),c=c._next;return a.prototype.paused.apply(this,arguments)},q.usesframes=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootframestimeline},q.rawtime=function(){return this._paused?this._totaltime:(this._timeline.rawtime()-this._starttime)*this._timescale},d},!0),_gsscope._gsdefine("timelinemax",["timelinelite","tweenlite","easing.ease"],function(a,b,c){var d=function(b){a.call(this,b),this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},e=1e-10,f=b._internals,g=f.lazytweens,h=f.lazyrender,i=_gsscope._gsdefine.globals,j=new c(null,null,1,0),k=d.prototype=new a;return k.constructor=d,k.kill()._gc=!1,d.version="1.19.0",k.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatdelay=this.vars.repeatdelay||0,this._uncache(!0),a.prototype.invalidate.call(this)},k.addcallback=function(a,c,d,e){return this.add(b.delayedcall(0,a,d,e),c)},k.removecallback=function(a,b){if(a)if(null==b)this._kill(null,a);else for(var c=this.gettweensof(a,!1),d=c.length,e=this._parsetimeorlabel(b);--d>-1;)c[d]._starttime===e&&c[d]._enabled(!1,!1);return this},k.removepause=function(b){return this.removecallback(a._internals.pausecallback,b)},k.tweento=function(a,c){c=c||{};var d,e,f,g={ease:j,useframes:this.usesframes(),immediaterender:!1},h=c.repeat&&i.tweenmax||b;for(e in c)g[e]=c[e];return g.time=this._parsetimeorlabel(a),d=math.abs(number(g.time)-this._time)/this._timescale||.001,f=new h(this,d,g),g.onstart=function(){f.target.paused(!0),f.vars.time!==f.target.time()&&d===f.duration()&&f.duration(math.abs(f.vars.time-f.target.time())/f.target._timescale),c.onstart&&f._callback("onstart")},f},k.tweenfromto=function(a,b,c){c=c||{},a=this._parsetimeorlabel(a),c.startat={oncomplete:this.seek,oncompleteparams:[a],callbackscope:this},c.immediaterender=c.immediaterender!==!1;var d=this.tweento(b,c);return d.duration(math.abs(d.vars.time-a)/this._timescale||.001)},k.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,i,j,k,l,m,n,o=this._dirty?this.totalduration():this._totalduration,p=this._duration,q=this._time,r=this._totaltime,s=this._starttime,t=this._timescale,u=this._rawprevtime,v=this._paused,w=this._cycle;if(a>=o-1e-7)this._locked||(this._totaltime=o,this._cycle=this._repeat),this._reversed||this._haspausedchild()||(f=!0,j="oncomplete",k=!!this._timeline.autoremovechildren,0===this._duration&&(0>=a&&a>=-1e-7||0>u||u===e)&&u!==a&&this._first&&(k=!0,u>e&&(j="onreversecomplete"))),this._rawprevtime=this._duration||!b||a||this._rawprevtime===a?a:e,this._yoyo&&0!==(1&this._cycle)?this._time=a=0:(this._time=p,a=p+1e-4);else if(1e-7>a)if(this._locked||(this._totaltime=this._cycle=0),this._time=0,(0!==q||0===p&&u!==e&&(u>0||0>a&&u>=0)&&!this._locked)&&(j="onreversecomplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoremovechildren&&this._reversed?(k=f=!0,j="onreversecomplete"):u>=0&&this._first&&(k=!0),this._rawprevtime=a;else{if(this._rawprevtime=p||!b||a||this._rawprevtime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._starttime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(k=!0)}else if(0===p&&0>u&&(k=!0),this._time=this._rawprevtime=a,this._locked||(this._totaltime=a,0!==this._repeat&&(l=p+this._repeatdelay,this._cycle=this._totaltime/l>>0,0!==this._cycle&&this._cycle===this._totaltime/l&&a>=r&&this._cycle--,this._time=this._totaltime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=p-this._time),this._time>p?(this._time=p,a=p+1e-4):this._time<0?this._time=a=0:a=this._time)),this._haspause&&!this._forcingplayhead&&!b){if(a=this._time,a>=q)for(d=this._first;d&&d._starttime<=a&&!m;)d._duration||"ispause"!==d.data||d.ratio||0===d._starttime&&0===this._rawprevtime||(m=d),d=d._next;else for(d=this._last;d&&d._starttime>=a&&!m;)d._duration||"ispause"===d.data&&d._rawprevtime>0&&(m=d),d=d._prev;m&&(this._time=a=m._starttime,this._totaltime=a+this._cycle*(this._totalduration+this._repeatdelay))}if(this._cycle!==w&&!this._locked){var x=this._yoyo&&0!==(1&w),y=x===(this._yoyo&&0!==(1&this._cycle)),z=this._totaltime,a=this._cycle,b=this._rawprevtime,c=this._time;if(this._totaltime=w*p,this._cycle0&&(this._active=!0),0===r&&this.vars.onstart&&(0===this._totaltime&&this._totalduration||b||this._callback("onstart")),n=this._time,n>=q)for(d=this._first;d&&(i=d._next,n===this._time&&(!this._paused||v));)(d._active||d._starttime<=this._time&&!d._paused&&!d._gc)&&(m===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,c):d.render((a-d._starttime)*d._timescale,b,c)),d=i;else for(d=this._last;d&&(i=d._prev,n===this._time&&(!this._paused||v));){if(d._active||d._starttime<=q&&!d._paused&&!d._gc){if(m===d){for(m=d._prev;m&&m.endtime()>this._time;)m.render(m._reversed?m.totalduration()-(a-m._starttime)*m._timescale:(a-m._starttime)*m._timescale,b,c),m=m._prev;m=null,this.pause()}d._reversed?d.render((d._dirty?d.totalduration():d._totalduration)-(a-d._starttime)*d._timescale,b,c):d.render((a-d._starttime)*d._timescale,b,c)}d=i}this._onupdate&&(b||(g.length&&h(),this._callback("onupdate"))),j&&(this._locked||this._gc||(s===this._starttime||t!==this._timescale)&&(0===this._time||o>=this.totalduration())&&(f&&(g.length&&h(),this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[j]&&this._callback(j)))},k.getactive=function(a,b,c){null==a&&(a=!0),null==b&&(b=!0),null==c&&(c=!1);var d,e,f=[],g=this.getchildren(a,b,c),h=0,i=g.length;for(d=0;i>d;d++)e=g[d],e.isactive()&&(f[h++]=e);return f},k.getlabelafter=function(a){a||0!==a&&(a=this._time);var b,c=this.getlabelsarray(),d=c.length;for(b=0;d>b;b++)if(c[b].time>a)return c[b].name;return null},k.getlabelbefore=function(a){null==a&&(a=this._time);for(var b=this.getlabelsarray(),c=b.length;--c>-1;)if(b[c].timethis._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatdelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatdelay)),this.totaltime(a,b)):this._time},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatdelay=function(a){return arguments.length?(this._repeatdelay=a,this._uncache(!0)):this._repeatdelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},k.currentlabel=function(a){return arguments.length?this.seek(a,!0):this.getlabelbefore(this._time+1e-8)},d},!0),function(){var a=180/math.pi,b=[],c=[],d=[],e={},f=_gsscope._gsdefine.globals,g=function(a,b,c,d){c===d&&(c=d-(d-b)/1e6),a===b&&(b=a+(c-a)/1e6),this.a=a,this.b=b,this.c=c,this.d=d,this.da=d-a,this.ca=c-a,this.ba=b-a},h=",x,y,z,left,top,right,bottom,margintop,marginleft,marginright,marginbottom,paddingleft,paddingtop,paddingright,paddingbottom,backgroundposition,backgroundposition_y,",i=function(a,b,c,d){var e={a:a},f={},g={},h={c:d},i=(a+b)/2,j=(b+c)/2,k=(c+d)/2,l=(i+j)/2,m=(j+k)/2,n=(m-l)/8;return e.b=i+(a-i)/4,f.b=l+n,e.c=f.a=(e.b+f.b)/2,f.c=g.a=(l+m)/2,g.b=m-n,h.b=k+(d-k)/4,g.c=h.a=(g.b+h.b)/2,[e,f,g,h]},j=function(a,e,f,g,h){var j,k,l,m,n,o,p,q,r,s,t,u,v,w=a.length-1,x=0,y=a[0].a;for(j=0;w>j;j++)n=a[x],k=n.a,l=n.d,m=a[x+1].d,h?(t=b[j],u=c[j],v=(u+t)*e*.25/(g?.5:d[j]||.5),o=l-(l-k)*(g?.5*e:0!==t?v/t:0),p=l+(m-l)*(g?.5*e:0!==u?v/u:0),q=l-(o+((p-o)*(3*t/(t+u)+.5)/4||0))):(o=l-(l-k)*e*.5,p=l+(m-l)*e*.5,q=l-(o+p)/2),o+=q,p+=q,n.c=r=o,0!==j?n.b=y:n.b=y=n.a+.6*(n.c-n.a),n.da=l-k,n.ca=r-k,n.ba=y-k,f?(s=i(k,y,r,l),a.splice(x,1,s[0],s[1],s[2],s[3]),x+=4):x++,y=p;n=a[x],n.b=y,n.c=y+.4*(n.d-y),n.da=n.d-n.a,n.ca=n.c-n.a,n.ba=y-n.a,f&&(s=i(n.a,y,n.c,n.d),a.splice(x,1,s[0],s[1],s[2],s[3]))},k=function(a,d,e,f){var h,i,j,k,l,m,n=[];if(f)for(a=[f].concat(a),i=a.length;--i>-1;)"string"==typeof(m=a[i][d])&&"="===m.charat(1)&&(a[i][d]=f[d]+number(m.charat(0)+m.substr(2)));if(h=a.length-2,0>h)return n[0]=new g(a[0][d],0,0,a[-1>h?0:1][d]),n;for(i=0;h>i;i++)j=a[i][d],k=a[i+1][d],n[i]=new g(j,0,0,k),e&&(l=a[i+2][d],b[i]=(b[i]||0)+(k-j)*(k-j),c[i]=(c[i]||0)+(l-k)*(l-k));return n[i]=new g(a[i][d],0,0,a[i+1][d]),n},l=function(a,f,g,i,l,m){var n,o,p,q,r,s,t,u,v={},w=[],x=m||a[0];l="string"==typeof l?","+l+",":h,null==f&&(f=1);for(o in a[0])w.push(o);if(a.length>1){for(u=a[a.length-1],t=!0,n=w.length;--n>-1;)if(o=w[n],math.abs(x[o]-u[o])>.05){t=!1;break}t&&(a=a.concat(),m&&a.unshift(m),a.push(a[1]),m=a[a.length-3])}for(b.length=c.length=d.length=0,n=w.length;--n>-1;)o=w[n],e[o]=-1!==l.indexof(","+o+","),v[o]=k(a,o,e[o],m);for(n=b.length;--n>-1;)b[n]=math.sqrt(b[n]),c[n]=math.sqrt(c[n]);if(!i){for(n=w.length;--n>-1;)if(e[o])for(p=v[w[n]],s=p.length-1,q=0;s>q;q++)r=p[q+1].da/c[q]+p[q].da/b[q]||0,d[q]=(d[q]||0)+r*r;for(n=d.length;--n>-1;)d[n]=math.sqrt(d[n])}for(n=w.length,q=g?4:1;--n>-1;)o=w[n],p=v[o],j(p,f,g,i,e[o]),t&&(p.splice(0,q),p.splice(p.length-q,q));return v},m=function(a,b,c){b=b||"soft";var d,e,f,h,i,j,k,l,m,n,o,p={},q="cubic"===b?3:2,r="soft"===b,s=[];if(r&&c&&(a=[c].concat(a)),null==a||a.length-1;){for(m=s[j],p[m]=i=[],n=0,l=a.length,k=0;l>k;k++)d=null==c?a[k][m]:"string"==typeof(o=a[k][m])&&"="===o.charat(1)?c[m]+number(o.charat(0)+o.substr(2)):number(o),r&&k>1&&l-1>k&&(i[n++]=(d+i[n-2])/2),i[n++]=d;for(l=n-q+1,n=0,k=0;l>k;k+=q)d=i[k],e=i[k+1],f=i[k+2],h=2===q?0:i[k+3],i[n++]=o=3===q?new g(d,e,f,h):new g(d,(2*e+d)/3,(2*e+f)/3,f);i.length=n}return p},n=function(a,b,c){for(var d,e,f,g,h,i,j,k,l,m,n,o=1/c,p=a.length;--p>-1;)for(m=a[p],f=m.a,g=m.d-f,h=m.c-f,i=m.b-f,d=e=0,k=1;c>=k;k++)j=o*k,l=1-j,d=e-(e=(j*j*g+3*l*(j*h+l*i))*j),n=p*c+k-1,b[n]=(b[n]||0)+d*d},o=function(a,b){b=b>>0||6;var c,d,e,f,g=[],h=[],i=0,j=0,k=b-1,l=[],m=[];for(c in a)n(a[c],g,b);for(e=g.length,d=0;e>d;d++)i+=math.sqrt(g[d]),f=d%b,m[f]=i,f===k&&(j+=i,f=d/b>>0,l[f]=m,h[f]=j,i=0,m=[]);return{length:j,lengths:h, segments:l}},p=_gsscope._gsdefine.plugin({propname:"bezier",priority:-1,version:"1.3.7",api:2,global:!0,init:function(a,b,c){this._target=a,b instanceof array&&(b={values:b}),this._func={},this._mod={},this._props=[],this._timeres=null==b.timeresolution?6:parseint(b.timeresolution,10);var d,e,f,g,h,i=b.values||[],j={},k=i[0],n=b.autorotate||c.vars.orienttobezier;this._autorotate=n?n instanceof array?n:[["x","y","rotation",n===!0?0:number(n)||0]]:null;for(d in k)this._props.push(d);for(f=this._props.length;--f>-1;)d=this._props[f],this._overwriteprops.push(d),e=this._func[d]="function"==typeof a[d],j[d]=e?a[d.indexof("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]():parsefloat(a[d]),h||j[d]!==i[0][d]&&(h=j);if(this._beziers="cubic"!==b.type&&"quadratic"!==b.type&&"soft"!==b.type?l(i,isnan(b.curviness)?1:b.curviness,!1,"thrubasic"===b.type,b.correlate,h):m(i,b.type,j),this._segcount=this._beziers[d].length,this._timeres){var p=o(this._beziers,this._timeres);this._length=p.length,this._lengths=p.lengths,this._segments=p.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curseg=this._segments[0],this._s2=this._curseg[0],this._prec=1/this._curseg.length}if(n=this._autorotate)for(this._initialrotations=[],n[0]instanceof array||(this._autorotate=n=[n]),f=n.length;--f>-1;){for(g=0;3>g;g++)d=n[f][g],this._func[d]="function"==typeof a[d]?a[d.indexof("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]:!1;d=n[f][2],this._initialrotations[f]=(this._func[d]?this._func[d].call(this._target):this._target[d])||0,this._overwriteprops.push(d)}return this._startratio=c.vars.runbackwards?1:0,!0},set:function(b){var c,d,e,f,g,h,i,j,k,l,m=this._segcount,n=this._func,o=this._target,p=b!==this._startratio;if(this._timeres){if(k=this._lengths,l=this._curseg,b*=this._length,e=this._li,b>this._l2&&m-1>e){for(j=m-1;j>e&&(this._l2=k[++e])<=b;);this._l1=k[e-1],this._li=e,this._curseg=l=this._segments[e],this._s2=l[this._s1=this._si=0]}else if(b0){for(;e>0&&(this._l1=k[--e])>=b;);0===e&&bthis._s2&&ee&&(this._s2=l[++e])<=b;);this._s1=l[e-1],this._si=e}else if(b0){for(;e>0&&(this._s1=l[--e])>=b;);0===e&&bb?0:b>=1?m-1:m*b>>0,h=(b-c*(1/m))*m;for(d=1-h,e=this._props.length;--e>-1;)f=this._props[e],g=this._beziers[f][c],i=(h*h*g.da+3*d*(h*g.ca+d*g.ba))*h+g.a,this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i;if(this._autorotate){var q,r,s,t,u,v,w,x=this._autorotate;for(e=x.length;--e>-1;)f=x[e][2],v=x[e][3]||0,w=x[e][4]===!0?1:a,g=this._beziers[x[e][0]],q=this._beziers[x[e][1]],g&&q&&(g=g[c],q=q[c],r=g.a+(g.b-g.a)*h,t=g.b+(g.c-g.b)*h,r+=(t-r)*h,t+=(g.c+(g.d-g.c)*h-t)*h,s=q.a+(q.b-q.a)*h,u=q.b+(q.c-q.b)*h,s+=(u-s)*h,u+=(q.c+(q.d-q.c)*h-u)*h,i=p?math.atan2(u-s,t-r)*w+v:this._initialrotations[e],this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i)}}}),q=p.prototype;p.bezierthrough=l,p.cubictoquadratic=i,p._autocss=!0,p.quadratictocubic=function(a,b,c){return new g(a,(2*b+a)/3,(2*b+c)/3,c)},p._cssregister=function(){var a=f.cssplugin;if(a){var b=a._internals,c=b._parsetoproxy,d=b._setpluginratio,e=b.cssproptween;b._registercomplexspecialprop("bezier",{parser:function(a,b,f,g,h,i){b instanceof array&&(b={values:b}),i=new p;var j,k,l,m=b.values,n=m.length-1,o=[],q={};if(0>n)return h;for(j=0;n>=j;j++)l=c(a,m[j],g,h,i,n!==j),o[j]=l.end;for(k in b)q[k]=b[k];return q.values=o,h=new e(a,"bezier",0,0,l.pt,2),h.data=l,h.plugin=i,h.setratio=d,0===q.autorotate&&(q.autorotate=!0),!q.autorotate||q.autorotate instanceof array||(j=q.autorotate===!0?0:number(q.autorotate),q.autorotate=null!=l.end.left?[["left","top","rotation",j,!1]]:null!=l.end.x?[["x","y","rotation",j,!1]]:!1),q.autorotate&&(g._transform||g._enabletransforms(!1),l.autorotate=g._target._gstransform,l.proxy.rotation=l.autorotate.rotation||0,g._overwriteprops.push("rotation")),i._oninittween(l.proxy,q,g._tween),h}})}},q._mod=function(a){for(var b,c=this._overwriteprops,d=c.length;--d>-1;)b=a[c[d]],b&&"function"==typeof b&&(this._mod[c[d]]=b)},q._kill=function(a){var b,c,d=this._props;for(b in this._beziers)if(b in a)for(delete this._beziers[b],delete this._func[b],c=d.length;--c>-1;)d[c]===b&&d.splice(c,1);if(d=this._autorotate)for(c=d.length;--c>-1;)a[d[c][2]]&&d.splice(c,1);return this._super._kill.call(this,a)}}(),_gsscope._gsdefine("plugins.cssplugin",["plugins.tweenplugin","tweenlite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteprops.length=0,this.setratio=g.prototype.setratio},h=_gsscope._gsdefine.globals,i={},j=g.prototype=new a("css");j.constructor=g,g.version="1.19.0",g.api=2,g.defaulttransformperspective=0,g.defaultskewtype="compensated",g.defaultsmoothorigin=!0,j="px",g.suffixmap={top:j,right:j,bottom:j,left:j,width:j,height:j,fontsize:j,padding:j,margin:j,perspective:j,lineheight:""};var k,l,m,n,o,p,q,r,s=/(?:\-|\.|\b)(\d|\.|e\-)+/g,t=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,u=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-za-z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,y=/opacity:([^;]*)/i,z=/alpha\(opacity *=.+?\)/i,a=/^(rgb|hsl)/,b=/([a-z])/g,c=/-([a-z])/gi,d=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,e=function(a,b){return b.touppercase()},f=/(?:left|right|width)/i,g=/(m11|m12|m21|m22)=[\d\-\.e]+/gi,h=/progid\:dximagetransform\.microsoft\.matrix\(.+?\)/i,i=/,(?=[^\)]*(?:\(|$))/gi,j=/[\s,\(]/i,k=math.pi/180,l=180/math.pi,m={},n=document,o=function(a){return n.createelementns?n.createelementns("http://www.w3.org/1999/xhtml",a):n.createelement(a)},p=o("div"),q=o("img"),r=g._internals={_specialprops:i},s=navigator.useragent,t=function(){var a=s.indexof("android"),b=o("a");return m=-1!==s.indexof("safari")&&-1===s.indexof("chrome")&&(-1===a||number(s.substr(a+8,1))>3),o=m&&number(s.substr(s.indexof("version/")+8,1))<6,n=-1!==s.indexof("firefox"),(/msie ([0-9]{1,}[\.0-9]{0,})/.exec(s)||/trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(s))&&(p=parsefloat(regexp.$1)),b?(b.style.csstext="top:1px;opacity:.55;",/^0.55/.test(b.style.opacity)):!1}(),u=function(a){return x.test("string"==typeof a?a:(a.currentstyle?a.currentstyle.filter:a.style.filter)||"")?parsefloat(regexp.$1)/100:1},v=function(a){window.console&&console.log(a)},w="",x="",y=function(a,b){b=b||p;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charat(0).touppercase()+a.substr(1),c=["o","moz","ms","ms","webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(x=3===d?"ms":c[d],w="-"+x.tolowercase()+"-",x+a):null},z=n.defaultview?n.defaultview.getcomputedstyle:function(){},$=g.getstyle=function(a,b,c,d,e){var f;return t||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||z(a))?f=c[b]||c.getpropertyvalue(b)||c.getpropertyvalue(b.replace(b,"-$1").tolowercase()):a.currentstyle&&(f=a.currentstyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):u(a)},_=r.converttopixels=function(a,c,d,e,f){if("px"===e||!e)return d;if("auto"===e||!d)return 0;var h,i,j,k=f.test(c),l=a,m=p.style,n=0>d,o=1===d;if(n&&(d=-d),o&&(d*=100),"%"===e&&-1!==c.indexof("border"))h=d/100*(k?a.clientwidth:a.clientheight);else{if(m.csstext="border:0 solid red;position:"+$(a,"position")+";line-height:0;","%"!==e&&l.appendchild&&"v"!==e.charat(0)&&"rem"!==e)m[k?"borderleftwidth":"bordertopwidth"]=d+e;else{if(l=a.parentnode||n.body,i=l._gscache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendchild(p),h=parsefloat(p[k?"offsetwidth":"offsetheight"]),l.removechild(p),k&&"%"===e&&g.cachewidths!==!1&&(i=l._gscache=l._gscache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=_(a,c,d,e,!0))}return o&&(h/=100),n?-h:h},aa=r.calculateoffset=function(a,b,c){if("absolute"!==$(a,"position",c))return 0;var d="left"===b?"left":"top",e=$(a,"margin"+d,c);return a["offset"+d]-(_(a,b,parsefloat(e),e.replace(w,""))||0)},ba=function(a,b){var c,d,e,f={};if(b=b||z(a,null))if(c=b.length)for(;--c>-1;)e=b[c],(-1===e.indexof("-transform")||ca===e)&&(f[e.replace(c,e)]=b.getpropertyvalue(e));else for(c in b)(-1===c.indexof("transform")||ba===c)&&(f[c]=b[c]);else if(b=a.currentstyle||a.style)for(c in b)"string"==typeof c&&void 0===f[c]&&(f[c.replace(c,e)]=b[c]);return t||(f.opacity=u(a)),d=pa(a,b,!1),f.rotation=d.rotation,f.skewx=d.skewx,f.scalex=d.scalex,f.scaley=d.scaley,f.x=d.x,f.y=d.y,ea&&(f.z=d.z,f.rotationx=d.rotationx,f.rotationy=d.rotationy,f.scalez=d.scalez),f.filters&&delete f.filters,f},ca=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"csstext"!==g&&"length"!==g&&isnan(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexof("origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(v,"")?f:0:aa(a,g),void 0!==j[g]&&(h=new ra(j,g,j[g],h)));if(d)for(g in d)"classname"!==g&&(i[g]=d[g]);return{difs:i,firstmpt:h}},da={width:["left","right"],height:["top","bottom"]},ea=["marginleft","marginright","margintop","marginbottom"],fa=function(a,b,c){if("svg"===(a.nodename+"").tolowercase())return(c||z(a))[b]||0;if(a.getbbox&&ma(a))return a.getbbox()[b]||0;var d=parsefloat("width"===b?a.offsetwidth:a.offsetheight),e=da[b],f=e.length;for(c=c||z(a,null);--f>-1;)d-=parsefloat($(a,"padding"+e[f],c,!0))||0,d-=parsefloat($(a,"border"+e[f]+"width",c,!0))||0;return d},ga=function(a,b){if("contain"===a||"auto"===a||"auto auto"===a)return a+" ";(null==a||""===a)&&(a="0 0");var c,d=a.split(" "),e=-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];if(d.length>3&&!b){for(d=a.split(", ").join(",").split(","),a=[],c=0;c2?" "+d[2]:""),b&&(b.oxp=-1!==e.indexof("%"),b.oyp=-1!==f.indexof("%"),b.oxr="="===e.charat(1),b.oyr="="===f.charat(1),b.ox=parsefloat(e.replace(v,"")),b.oy=parsefloat(f.replace(v,"")),b.v=a),b||a},ha=function(a,b){return"function"==typeof a&&(a=a(r,q)),"string"==typeof a&&"="===a.charat(1)?parseint(a.charat(0)+"1",10)*parsefloat(a.substr(2)):parsefloat(a)-parsefloat(b)||0},ia=function(a,b){return"function"==typeof a&&(a=a(r,q)),null==a?b:"string"==typeof a&&"="===a.charat(1)?parseint(a.charat(0)+"1",10)*parsefloat(a.substr(2))+b:parsefloat(a)||0},ja=function(a,b,c,d){var e,f,g,h,i,j=1e-6;return"function"==typeof a&&(a=a(r,q)),null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),i="="===a.charat(1),g=(i?parseint(a.charat(0)+"1",10)*parsefloat(f[0].substr(2)):parsefloat(f[0]))*(-1===a.indexof("rad")?1:l)-(i?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexof("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexof("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexof("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),j>h&&h>-j&&(h=0),h},ka={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]},la=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},ma=g.parsecolor=function(a,b){var c,d,e,f,g,h,i,j,k,l,m;if(a)if("number"==typeof a)c=[a>>16,a>>8&255,255&a];else{if(","===a.charat(a.length-1)&&(a=a.substr(0,a.length-1)),ka[a])c=ka[a];else if("#"===a.charat(0))4===a.length&&(d=a.charat(1),e=a.charat(2),f=a.charat(3),a="#"+d+d+e+e+f+f),a=parseint(a.substr(1),16),c=[a>>16,a>>8&255,255&a];else if("hsl"===a.substr(0,3))if(c=m=a.match(s),b){if(-1!==a.indexof("="))return a.match(t)}else g=number(c[0])%360/360,h=number(c[1])/100,i=number(c[2])/100,e=.5>=i?i*(h+1):i+h-i*h,d=2*i-e,c.length>3&&(c[3]=number(a[3])),c[0]=la(g+1/3,d,e),c[1]=la(g,d,e),c[2]=la(g-1/3,d,e);else c=a.match(s)||ka.transparent;c[0]=number(c[0]),c[1]=number(c[1]),c[2]=number(c[2]),c.length>3&&(c[3]=number(c[3]))}else c=ka.black;return b&&!m&&(d=c[0]/255,e=c[1]/255,f=c[2]/255,j=math.max(d,e,f),k=math.min(d,e,f),i=(j+k)/2,j===k?g=h=0:(l=j-k,h=i>.5?l/(2-j-k):l/(j+k),g=j===d?(e-f)/l+(f>e?6:0):j===e?(f-d)/l+2:(d-e)/l+4,g*=60),c[0]=g+.5|0,c[1]=100*h+.5|0,c[2]=100*i+.5|0),c},na=function(a,b){var c,d,e,f=a.match(oa)||[],g=0,h=f.length?"":a;for(c=0;c0?g[0].replace(s,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&i.test(a)){for(o=a.replace(i,"|").split("|"),n=0;nn--)for(;++nm--)for(;++mi;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},ra=(r._setpluginratio=function(a){this.plugin.setratio(a);for(var b,c,d,e,f,g=this.data,h=g.proxy,i=g.firstmpt,j=1e-6;i;)b=h[i.v],i.r?b=math.round(b):j>b&&b>-j&&(b=0),i.t[i.p]=b,i=i._next;if(g.autorotate&&(g.autorotate.rotation=g.mod?g.mod(h.rotation,this.t):h.rotation),1===a||0===a)for(i=g.firstmpt,f=1===a?"e":"b";i;){if(c=i.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new ra(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstmpt:j,pt:k}},r.cssproptween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof sa||f.push(this.n),this.r=j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),ta=function(a,b,c,d,e,f){var g=new sa(a,b,c,d-c,e,-1,f);return g.b=c,g.e=g.xs0=d,g},ua=g.parsecomplex=function(a,b,c,d,e,f,h,i,j,l){c=c||f||"","function"==typeof d&&(d=d(r,q)),h=new sa(a,b,0,0,h,l?2:1,null,!1,i,c,d),d+="",e&&oa.test(d+c)&&(d=[c,d],g.colorstringfilter(d),c=d[0],d=d[1]);var m,n,o,p,u,v,w,x,y,z,a,b,c,d=c.split(", ").join(",").split(" "),e=d.split(", ").join(",").split(" "),f=d.length,g=k!==!1;for((-1!==d.indexof(",")||-1!==c.indexof(","))&&(d=d.join(" ").replace(i,", ").split(" "),e=e.join(" ").replace(i,", ").split(" "),f=d.length),f!==e.length&&(d=(f||"").split(" "),f=d.length),h.plugin=j,h.setratio=l,oa.lastindex=0,m=0;f>m;m++)if(p=d[m],u=e[m],x=parsefloat(p),x||0===x)h.appendxtra("",x,ha(u,x),u.replace(t,""),g&&-1!==u.indexof("px"),!0);else if(e&&oa.test(p))b=u.indexof(")")+1,b=")"+(b?u.substr(b):""),c=-1!==u.indexof("hsl")&&t,p=ma(p,c),u=ma(u,c),y=p.length+u.length>6,y&&!t&&0===u[3]?(h["xs"+h.l]+=h.l?" transparent":"transparent",h.e=h.e.split(e[m]).join("transparent")):(t||(y=!1),c?h.appendxtra(y?"hsla(":"hsl(",p[0],ha(u[0],p[0]),",",!1,!0).appendxtra("",p[1],ha(u[1],p[1]),"%,",!1).appendxtra("",p[2],ha(u[2],p[2]),y?"%,":"%"+b,!1):h.appendxtra(y?"rgba(":"rgb(",p[0],u[0]-p[0],",",!0,!0).appendxtra("",p[1],u[1]-p[1],",",!0).appendxtra("",p[2],u[2]-p[2],y?",":b,!0),y&&(p=p.length<4?1:p[3],h.appendxtra("",p,(u.length<4?1:u[3])-p,b,!1))),oa.lastindex=0;else if(v=p.match(s)){if(w=u.match(t),!w||w.length!==v.length)return h;for(o=0,n=0;n0;)j["xn"+va]=0,j["xs"+va]="";j.xs0="",j._next=j._prev=j.xfirst=j.data=j.plugin=j.setratio=j.rxp=null,j.appendxtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&(h||g["xs"+h])?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setratio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new sa(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var wa=function(a,b){b=b||{},this.p=b.prefix?y(a)||a:a,i[a]=i[this.p]=this,this.format=b.formatter||pa(b.defaultvalue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultvalue,this.pr=b.priority||0},xa=r._registercomplexspecialprop=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultvalue;for(c=c||[g],d=0;dh.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexof(m),l=c.indexof(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return ua(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parsecomplex(a.style,this.format($(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerspecialprop=function(a,b,c){xa(a,{parser:function(a,d,e,f,g,h,i){var j=new sa(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setratio=b(a,d,f._tween,e),j},priority:c})},g.usesvgtransformattr=m||n;var za,aa="scalex,scaley,scalez,x,y,z,skewx,skewy,rotation,rotationx,rotationy,perspective,xpercent,ypercent".split(","),ba=y("transform"),ca=w+"transform",da=y("transformorigin"),ea=null!==y("perspective"),fa=r.transform=function(){this.perspective=parsefloat(g.defaulttransformperspective)||0,this.force3d=g.defaultforce3d!==!1&&ea?g.defaultforce3d||"auto":!1},ga=window.svgelement,ha=function(a,b,c){var d,e=n.createelementns("http://www.w3.org/2000/svg",a),f=/([a-z])([a-z])/g;for(d in c)e.setattributens(null,d.replace(f,"$1-$2").tolowercase(),c[d]);return b.appendchild(e),e},ia=n.documentelement,ja=function(){var a,b,c,d=p||/android/i.test(s)&&!window.chrome;return n.createelementns&&!d&&(a=ha("svg",ia),b=ha("rect",a,{width:100,height:50,x:100}),c=b.getboundingclientrect().width,b.style[da]="50% 50%",b.style[ba]="scalex(0.5)",d=c===b.getboundingclientrect().width&&!(n&&ea),ia.removechild(a)),d}(),ka=function(a,b,c,d,e,f){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=a._gstransform,w=oa(a,!0);v&&(t=v.xorigin,u=v.yorigin),(!d||(h=d.split(" ")).length<2)&&(n=a.getbbox(),b=ga(b).split(" "),h=[(-1!==b[0].indexof("%")?parsefloat(b[0])/100*n.width:parsefloat(b[0]))+n.x,(-1!==b[1].indexof("%")?parsefloat(b[1])/100*n.height:parsefloat(b[1]))+n.y]),c.xorigin=k=parsefloat(h[0]),c.yorigin=l=parsefloat(h[1]),d&&w!==na&&(m=w[0],n=w[1],o=w[2],p=w[3],q=w[4],r=w[5],s=m*p-n*o,i=k*(p/s)+l*(-o/s)+(o*r-p*q)/s,j=k*(-n/s)+l*(m/s)-(m*r-n*q)/s,k=c.xorigin=h[0]=i,l=c.yorigin=h[1]=j),v&&(f&&(c.xoffset=v.xoffset,c.yoffset=v.yoffset,v=c),e||e!==!1&&g.defaultsmoothorigin!==!1?(i=k-t,j=l-u,v.xoffset+=i*w[0]+j*w[2]-i,v.yoffset+=i*w[1]+j*w[3]-j):v.xoffset=v.yoffset=0),f||a.setattribute("data-svg-origin",h.join(" "))},la=function(a){try{return a.getbbox()}catch(a){}},ma=function(a){return!!(ga&&a.getbbox&&a.getctm&&la(a)&&(!a.parentnode||a.parentnode.getbbox&&a.parentnode.getctm))},na=[1,0,0,1,0,0],oa=function(a,b){var c,d,e,f,g,h,i=a._gstransform||new fa,j=1e5,k=a.style;if(ba?d=$(a,ca,null,!0):a.currentstyle&&(d=a.currentstyle.filter.match(g),d=d&&4===d.length?[d[0].substr(4),number(d[2].substr(4)),number(d[1].substr(4)),d[3].substr(4),i.x||0,i.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,c&&ba&&((h="none"===z(a).display)||!a.parentnode)&&(h&&(f=k.display,k.display="block"),a.parentnode||(g=1,ia.appendchild(a)),d=$(a,ca,null,!0),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,f?k.display=f:h&&ta(k,"display"),g&&ia.removechild(a)),(i.svg||a.getbbox&&ma(a))&&(c&&-1!==(k[ba]+"").indexof("matrix")&&(d=k[ba],c=0),e=a.getattribute("transform"),c&&e&&(-1!==e.indexof("matrix")?(d=e,c=0):-1!==e.indexof("translate")&&(d="matrix(1,0,0,1,"+e.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",c=0))),c)return na;for(e=(d||"").match(s)||[],va=e.length;--va>-1;)f=number(e[va]),e[va]=(g=f-(f|=0))?(g*j+(0>g?-.5:.5)|0)/j+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},pa=r.gettransform=function(a,c,d,e){if(a._gstransform&&d&&!e)return a._gstransform;var f,h,i,j,k,l,m=d?a._gstransform||new fa:new fa,n=m.scalex<0,o=2e-5,p=1e5,q=ea?parsefloat($(a,da,c,!1,"0 0 0").split(" ")[2])||m.zorigin||0:0,r=parsefloat(g.defaulttransformperspective)||0;if(m.svg=!(!a.getbbox||!ma(a)),m.svg&&(ka(a,$(a,da,c,!1,"50% 50%")+"",m,a.getattribute("data-svg-origin")),za=g.usesvgtransformattr||ja),f=oa(a),f!==na){if(16===f.length){var s,t,u,v,w,x=f[0],y=f[1],z=f[2],a=f[3],b=f[4],c=f[5],d=f[6],e=f[7],f=f[8],g=f[9],h=f[10],i=f[12],j=f[13],k=f[14],m=f[11],n=math.atan2(d,h);m.zorigin&&(k=-m.zorigin,i=f*k-f[12],j=g*k-f[13],k=h*k+m.zorigin-f[14]),m.rotationx=n*l,n&&(v=math.cos(-n),w=math.sin(-n),s=b*v+f*w,t=c*v+g*w,u=d*v+h*w,f=b*-w+f*v,g=c*-w+g*v,h=d*-w+h*v,m=e*-w+m*v,b=s,c=t,d=u),n=math.atan2(-z,h),m.rotationy=n*l,n&&(v=math.cos(-n),w=math.sin(-n),s=x*v-f*w,t=y*v-g*w,u=z*v-h*w,g=y*w+g*v,h=z*w+h*v,m=a*w+m*v,x=s,y=t,z=u),n=math.atan2(y,x),m.rotation=n*l,n&&(v=math.cos(-n),w=math.sin(-n),x=x*v+b*w,t=y*v+c*w,c=y*-w+c*v,d=z*-w+d*v,y=t),m.rotationx&&math.abs(m.rotationx)+math.abs(m.rotation)>359.9&&(m.rotationx=m.rotation=0,m.rotationy=180-m.rotationy),m.scalex=(math.sqrt(x*x+y*y)*p+.5|0)/p,m.scaley=(math.sqrt(c*c+g*g)*p+.5|0)/p,m.scalez=(math.sqrt(d*d+h*h)*p+.5|0)/p,m.rotationx||m.rotationy?m.skewx=0:(m.skewx=b||c?math.atan2(b,c)*l+m.rotation:m.skewx||0,math.abs(m.skewx)>90&&math.abs(m.skewx)<270&&(n?(m.scalex*=-1,m.skewx+=m.rotation<=0?180:-180,m.rotation+=m.rotation<=0?180:-180):(m.scaley*=-1,m.skewx+=m.skewx<=0?180:-180))),m.perspective=m?1/(0>m?-m:m):0,m.x=i,m.y=j,m.z=k,m.svg&&(m.x-=m.xorigin-(m.xorigin*x-m.yorigin*b),m.y-=m.yorigin-(m.yorigin*y-m.xorigin*c))}else if(!ea||e||!f.length||m.x!==f[4]||m.y!==f[5]||!m.rotationx&&!m.rotationy){var o=f.length>=6,p=o?f[0]:1,q=f[1]||0,r=f[2]||0,s=o?f[3]:1;m.x=f[4]||0,m.y=f[5]||0,i=math.sqrt(p*p+q*q),j=math.sqrt(s*s+r*r),k=p||q?math.atan2(q,p)*l:m.rotation||0,l=r||s?math.atan2(r,s)*l+k:m.skewx||0,math.abs(l)>90&&math.abs(l)<270&&(n?(i*=-1,l+=0>=k?180:-180,k+=0>=k?180:-180):(j*=-1,l+=0>=l?180:-180)),m.scalex=i,m.scaley=j,m.rotation=k,m.skewx=l,ea&&(m.rotationx=m.rotationy=m.z=0,m.perspective=r,m.scalez=1),m.svg&&(m.x-=m.xorigin-(m.xorigin*p+m.yorigin*r),m.y-=m.yorigin-(m.xorigin*q+m.yorigin*s))}m.zorigin=q;for(h in m)m[h]-o&&(m[h]=0)}return d&&(a._gstransform=m,m.svg&&(za&&a.style[ba]?b.delayedcall(.001,function(){ta(a.style,ba)}):!za&&a.getattribute("transform")&&b.delayedcall(.001,function(){a.removeattribute("transform")}))),m},qa=function(a){var b,c,d=this.data,e=-d.rotation*k,f=e+d.skewx*k,g=1e5,h=(math.cos(e)*d.scalex*g|0)/g,i=(math.sin(e)*d.scalex*g|0)/g,j=(math.sin(f)*-d.scaley*g|0)/g,k=(math.cos(f)*d.scaley*g|0)/g,l=this.t.style,m=this.t.currentstyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetwidth,r=this.t.offsetheight,s="absolute"!==m.position,t="progid:dximagetransform.microsoft.matrix(m11="+h+", m12="+i+", m21="+j+", m22="+k,u=d.x+q*d.xpercent/100,v=d.y+r*d.ypercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,u+=n-(n*h+o*i),v+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", dx="+(n-(n*h+o*i)+u)+", dy="+(o-(n*j+o*k)+v)+")"):t+=", sizingmethod='auto expand')",-1!==b.indexof("dximagetransform.microsoft.matrix(")?l.filter=b.replace(h,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexof("dx=0, dy=0")||x.test(b)&&100!==parsefloat(regexp.$1)||-1===b.indexof(b.indexof("alpha"))&&l.removeattribute("filter")),!s){var y,z,a,b=8>p?1:-1;for(n=d.ieoffsetx||0,o=d.ieoffsety||0,d.ieoffsetx=math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+u),d.ieoffsety=math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+v),va=0;4>va;va++)z=ea[va],y=m[z],c=-1!==y.indexof("px")?parsefloat(y):_(this.t,z,parsefloat(y),y.replace(w,""))||0,a=c!==d[z]?2>va?-d.ieoffsetx:-d.ieoffsety:2>va?n-d.ieoffsetx:o-d.ieoffsety,l[z]=(d[z]=math.round(c-a*(0===va||2===va?1:b)))+"px"}}},ra=r.set3dtransformratio=r.settransformratio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,a=this.t.style,b=z.rotation,c=z.rotationx,d=z.rotationy,e=z.scalex,f=z.scaley,g=z.scalez,h=z.x,i=z.y,j=z.z,l=z.svg,m=z.perspective,n=z.force3d;if(((1===a||0===a)&&"auto"===n&&(this.tween._totaltime===this.tween._totalduration||!this.tween._totaltime)||!n)&&!j&&!m&&!d&&!c&&1===g||za&&l||!ea)return void(b||z.skewx||l?(b*=k,x=z.skewx*k,y=1e5,b=math.cos(b)*e,e=math.sin(b)*e,c=math.sin(b-x)*-f,f=math.cos(b-x)*f,x&&"simple"===z.skewtype&&(s=math.tan(x-z.skewy*k),s=math.sqrt(1+s*s),c*=s,f*=s,z.skewy&&(s=math.tan(z.skewy*k),s=math.sqrt(1+s*s),b*=s,e*=s)),l&&(h+=z.xorigin-(z.xorigin*b+z.yorigin*c)+z.xoffset,i+=z.yorigin-(z.xorigin*e+z.yorigin*f)+z.yoffset,za&&(z.xpercent||z.ypercent)&&(p=this.t.getbbox(),h+=.01*z.xpercent*p.width,i+=.01*z.ypercent*p.height),p=1e-6,p>h&&h>-p&&(h=0),p>i&&i>-p&&(i=0)),u=(b*y|0)/y+","+(e*y|0)/y+","+(c*y|0)/y+","+(f*y|0)/y+","+h+","+i+")",l&&za?this.t.setattribute("transform","matrix("+u):a[ba]=(z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) matrix(":"matrix(")+u):a[ba]=(z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) matrix(":"matrix(")+e+",0,0,"+f+","+h+","+i+")");if(n&&(p=1e-4,p>e&&e>-p&&(e=g=2e-5),p>f&&f>-p&&(f=g=2e-5),!m||z.z||z.rotationx||z.rotationy||(m=0)),b||z.skewx)b*=k,q=b=math.cos(b),r=e=math.sin(b),z.skewx&&(b-=z.skewx*k,q=math.cos(b),r=math.sin(b),"simple"===z.skewtype&&(s=math.tan((z.skewx-z.skewy)*k),s=math.sqrt(1+s*s),q*=s,r*=s,z.skewy&&(s=math.tan(z.skewy*k),s=math.sqrt(1+s*s),b*=s,e*=s))),c=-r,f=q;else{if(!(d||c||1!==g||m||l))return void(a[ba]=(z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) translate3d(":"translate3d(")+h+"px,"+i+"px,"+j+"px)"+(1!==e||1!==f?" scale("+e+","+f+")":""));b=f=1,c=e=0}j=1,d=g=h=i=k=l=0,m=m?-1/m:0,o=z.zorigin,p=1e-6,v=",",w="0",b=d*k,b&&(q=math.cos(b),r=math.sin(b),h=-r,k=m*-r,d=b*r,g=e*r,j=q,m*=q,b*=q,e*=q),b=c*k,b&&(q=math.cos(b),r=math.sin(b),s=c*q+d*r,t=f*q+g*r,i=j*r,l=m*r,d=c*-r+d*q,g=f*-r+g*q,j*=q,m*=q,c=s,f=t),1!==g&&(d*=g,g*=g,j*=g,m*=g),1!==f&&(c*=f,f*=f,i*=f,l*=f),1!==e&&(b*=e,e*=e,h*=e,k*=e),(o||l)&&(o&&(h+=d*-o,i+=g*-o,j+=j*-o+o),l&&(h+=z.xorigin-(z.xorigin*b+z.yorigin*c)+z.xoffset,i+=z.yorigin-(z.xorigin*e+z.yorigin*f)+z.yoffset),p>h&&h>-p&&(h=w),p>i&&i>-p&&(i=w),p>j&&j>-p&&(j=0)),u=z.xpercent||z.ypercent?"translate("+z.xpercent+"%,"+z.ypercent+"%) matrix3d(":"matrix3d(",u+=(p>b&&b>-p?w:b)+v+(p>e&&e>-p?w:e)+v+(p>h&&h>-p?w:h),u+=v+(p>k&&k>-p?w:k)+v+(p>c&&c>-p?w:c)+v+(p>f&&f>-p?w:f),c||d||1!==g?(u+=v+(p>i&&i>-p?w:i)+v+(p>l&&l>-p?w:l)+v+(p>d&&d>-p?w:d),u+=v+(p>g&&g>-p?w:g)+v+(p>j&&j>-p?w:j)+v+(p>m&&m>-p?w:m)+v):u+=",0,0,0,0,1,0,",u+=h+v+i+v+j+v+(m?1+-j/m:1)+")",a[ba]=u};j=fa.prototype,j.x=j.y=j.z=j.skewx=j.skewy=j.rotation=j.rotationx=j.rotationy=j.zorigin=j.xpercent=j.ypercent=j.xoffset=j.yoffset=0,j.scalex=j.scaley=j.scalez=1,xa("transform,scale,scalex,scaley,scalez,x,y,z,rotation,rotationx,rotationy,rotationz,skewx,skewy,shortrotation,shortrotationx,shortrotationy,shortrotationz,transformorigin,svgorigin,transformperspective,directionalrotation,parsetransform,force3d,skewtype,xpercent,ypercent,smoothorigin",{parser:function(a,b,c,d,f,h,i){if(d._lastparsedtransform===i)return f;d._lastparsedtransform=i;var j;"function"==typeof i[c]&&(j=i[c],i[c]=b);var k,l,m,n,o,p,s,t,u,v=a._gstransform,w=a.style,x=1e-6,y=aa.length,z=i,a={},b="transformorigin",c=pa(a,e,!0,z.parsetransform),d=z.transform&&("function"==typeof z.transform?z.transform(r,q):z.transform);if(d._transform=c,d&&"string"==typeof d&&ba)l=p.style,l[ba]=d,l.display="block",l.position="absolute",n.body.appendchild(p),k=pa(p,null,!1),c.svg&&(p=c.xorigin,s=c.yorigin,k.x-=c.xoffset,k.y-=c.yoffset,(z.transformorigin||z.svgorigin)&&(d={},ka(a,ga(z.transformorigin),d,z.svgorigin,z.smoothorigin,!0),p=d.xorigin,s=d.yorigin,k.x-=d.xoffset-c.xoffset,k.y-=d.yoffset-c.yoffset),(p||s)&&(t=oa(p,!0),k.x-=p-(p*t[0]+s*t[2]),k.y-=s-(p*t[1]+s*t[3]))),n.body.removechild(p),k.perspective||(k.perspective=c.perspective),null!=z.xpercent&&(k.xpercent=ia(z.xpercent,c.xpercent)),null!=z.ypercent&&(k.ypercent=ia(z.ypercent,c.ypercent));else if("object"==typeof z){if(k={scalex:ia(null!=z.scalex?z.scalex:z.scale,c.scalex),scaley:ia(null!=z.scaley?z.scaley:z.scale,c.scaley),scalez:ia(z.scalez,c.scalez),x:ia(z.x,c.x),y:ia(z.y,c.y),z:ia(z.z,c.z),xpercent:ia(z.xpercent,c.xpercent),ypercent:ia(z.ypercent,c.ypercent),perspective:ia(z.transformperspective,c.perspective)},o=z.directionalrotation,null!=o)if("object"==typeof o)for(l in o)z[l]=o[l];else z.rotation=o;"string"==typeof z.x&&-1!==z.x.indexof("%")&&(k.x=0,k.xpercent=ia(z.x,c.xpercent)),"string"==typeof z.y&&-1!==z.y.indexof("%")&&(k.y=0,k.ypercent=ia(z.y,c.ypercent)),k.rotation=ja("rotation"in z?z.rotation:"shortrotation"in z?z.shortrotation+"_short":"rotationz"in z?z.rotationz:c.rotation-c.skewy,c.rotation-c.skewy,"rotation",a),ea&&(k.rotationx=ja("rotationx"in z?z.rotationx:"shortrotationx"in z?z.shortrotationx+"_short":c.rotationx||0,c.rotationx,"rotationx",a),k.rotationy=ja("rotationy"in z?z.rotationy:"shortrotationy"in z?z.shortrotationy+"_short":c.rotationy||0,c.rotationy,"rotationy",a)),k.skewx=ja(z.skewx,c.skewx-c.skewy),(k.skewy=ja(z.skewy,c.skewy))&&(k.skewx+=k.skewy,k.rotation+=k.skewy)}for(ea&&null!=z.force3d&&(c.force3d=z.force3d,n=!0),c.skewtype=z.skewtype||c.skewtype||g.defaultskewtype,m=c.force3d||c.z||c.rotationx||c.rotationy||k.z||k.rotationx||k.rotationy||k.perspective,m||null==z.scale||(k.scalez=1);--y>-1;)u=aa[y],d=k[u]-c[u],(d>x||-x>d||null!=z[u]||null!=m[u])&&(n=!0, f=new sa(c,u,c[u],d,f),u in a&&(f.e=a[u]),f.xs0=0,f.plugin=h,d._overwriteprops.push(f.n));return d=z.transformorigin,c.svg&&(d||z.svgorigin)&&(p=c.xoffset,s=c.yoffset,ka(a,ga(d),k,z.svgorigin,z.smoothorigin),f=ta(c,"xorigin",(v?c:k).xorigin,k.xorigin,f,b),f=ta(c,"yorigin",(v?c:k).yorigin,k.yorigin,f,b),(p!==c.xoffset||s!==c.yoffset)&&(f=ta(c,"xoffset",v?p:c.xoffset,c.xoffset,f,b),f=ta(c,"yoffset",v?s:c.yoffset,c.yoffset,f,b)),d=za?null:"0px 0px"),(d||ea&&m&&c.zorigin)&&(ba?(n=!0,u=da,d=(d||$(a,u,e,!1,"50% 50%"))+"",f=new sa(w,u,0,0,f,-1,b),f.b=w[u],f.plugin=h,ea?(l=c.zorigin,d=d.split(" "),c.zorigin=(d.length>2&&(0===l||"0px"!==d[2])?parsefloat(d[2]):l)||0,f.xs0=f.e=d[0]+" "+(d[1]||"50%")+" 0px",f=new sa(c,"zorigin",0,0,f,-1,f.n),f.b=l,f.xs0=f.e=c.zorigin):f.xs0=f.e=d):ga(d+"",c)),n&&(d._transformtype=c.svg&&za||!m&&3!==this._transformtype?2:3),j&&(i[c]=j),f},prefix:!0}),xa("boxshadow",{defaultvalue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),xa("borderradius",{defaultvalue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["bordertopleftradius","bordertoprightradius","borderbottomrightradius","borderbottomleftradius"],z=a.style;for(q=parsefloat(a.offsetwidth),r=parsefloat(a.offsetheight),i=b.split(" "),j=0;jp?1:0))||""):(p=parsefloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=_(a,"borderleft",o,t),w=_(a,"bordertop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=_(a,"borderleft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parsefloat(m)+p+s,k=parsefloat(l)+p+s)),g=ua(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:pa("0px 0px 0px 0px",!1,!0)}),xa("borderbottomleftradius,borderbottomrightradius,bordertopleftradius,bordertoprightradius",{defaultvalue:"0px",parser:function(a,b,c,d,f,g){return ua(a.style,c,this.format($(a,c,e,!1,"0px 0px")),this.format(b),!1,"0px",f)},prefix:!0,formatter:pa("0px 0px",!1,!0)}),xa("backgroundposition",{defaultvalue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||z(a,null),q=this.format((o?p?o.getpropertyvalue(n+"-x")+" "+o.getpropertyvalue(n+"-y"):o.getpropertyvalue(n):a.currentstyle.backgroundpositionx+" "+a.currentstyle.backgroundpositiony)||"0 0"),r=this.format(b);if(-1!==q.indexof("%")!=(-1!==r.indexof("%"))&&r.split(",").length<2&&(m=$(a,"backgroundimage").replace(d,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),q.setattribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexof("%"),k!==(-1!==i[j].indexof("%"))&&(l=0===j?a.offsetwidth-q.width:a.offsetheight-q.height,h[j]=k?parsefloat(q)/100*l+"px":parsefloat(q)/l*100+"%");q=h.join(" ")}return this.parsecomplex(a.style,q,r,f,g)},formatter:ga}),xa("backgroundsize",{defaultvalue:"0 0",formatter:function(a){return a+="",ga(-1===a.indexof(" ")?a+" "+a:a)}}),xa("perspective",{defaultvalue:"0px",prefix:!0}),xa("perspectiveorigin",{defaultvalue:"50% 50%",prefix:!0}),xa("transformstyle",{prefix:!0}),xa("backfacevisibility",{prefix:!0}),xa("userselect",{prefix:!0}),xa("margin",{parser:qa("margintop,marginright,marginbottom,marginleft")}),xa("padding",{parser:qa("paddingtop,paddingright,paddingbottom,paddingleft")}),xa("clip",{defaultvalue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentstyle,j=8>p?" ":",",h="rect("+i.cliptop+j+i.clipright+j+i.clipbottom+j+i.clipleft+")",b=this.format(b).split(",").join(j)):(h=this.format($(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parsecomplex(a.style,h,b,f,g)}}),xa("textshadow",{defaultvalue:"0px 0px 0px #999",color:!0,multi:!0}),xa("autoround,strictunits",{parser:function(a,b,c,d,e){return e}}),xa("border",{defaultvalue:"0px solid #000",parser:function(a,b,c,d,f,g){var h=$(a,"bordertopwidth",e,!1,"0px"),i=this.format(b).split(" "),j=i[0].replace(w,"");return"px"!==j&&(h=parsefloat(h)/_(a,"bordertopwidth",1,j)+j),this.parsecomplex(a.style,this.format(h+" "+$(a,"bordertopstyle",e,!1,"solid")+" "+$(a,"bordertopcolor",e,!1,"#000")),i.join(" "),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(oa)||["#000"])[0]}}),xa("borderwidth",{parser:qa("bordertopwidth,borderrightwidth,borderbottomwidth,borderleftwidth")}),xa("float,cssfloat,stylefloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssfloat"in g?"cssfloat":"stylefloat";return new sa(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var sa=function(a){var b,c=this.t,d=c.filter||$(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexof("atrix(")&&-1===d.indexof("radient(")&&-1===d.indexof("oader(")?(c.removeattribute("filter"),b=!$(this.data,"filter")):(c.filter=d.replace(z,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexof("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(x,"opacity="+e))};xa("opacity,alpha,autoalpha",{defaultvalue:"1",parser:function(a,b,c,d,f,g){var h=parsefloat($(a,"opacity",e,!1,"1")),i=a.style,j="autoalpha"===c;return"string"==typeof b&&"="===b.charat(1)&&(b=("-"===b.charat(0)?-1:1)*parsefloat(b.substr(2))+h),j&&1===h&&"hidden"===$(a,"visibility",e)&&0!==b&&(h=0),t?f=new sa(i,"opacity",h,b-h,f):(f=new sa(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setratio=sa),j&&(f=new sa(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteprops.push(f.n),d._overwriteprops.push(c)),f}});var ta=function(a,b){b&&(a.removeproperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeproperty(b.replace(b,"-$1").tolowercase())):a.removeattribute(b))},ua=function(a){if(this.t._gsclasspt=this,1===a||0===a){this.t.setattribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:ta(c,b.p),b=b._next;1===a&&this.t._gsclasspt===this&&(this.t._gsclasspt=null)}else this.t.getattribute("class")!==this.e&&this.t.setattribute("class",this.e)};xa("classname",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getattribute("class")||"",p=a.style.csstext;if(g=f._classnamept=new sa(a,d,0,0,g,2),g.setratio=ua,g.pr=-11,c=!0,g.b=o,k=ba(a,e),l=a._gsclasspt){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setratio(1)}return a._gsclasspt=g,g.e="="!==b.charat(1)?b:o.replace(new regexp("(?:\\s|^)"+b.substr(2)+"(?![\\w-])"),"")+("+"===b.charat(0)?" "+b.substr(2):""),a.setattribute("class",g.e),j=ca(a,k,ba(a),i,m),a.setattribute("class",o),g.data=j.firstmpt,a.style.csstext=p,g=g.xfirst=f.parse(a,j.difs,g,h)}});var va=function(a){if((1===a||0===a)&&this.data._totaltime===this.data._totalduration&&"isfromstart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.csstext="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformorigin"===c?da:i[c].p),ta(g,c);e&&(ta(g,ba),f=this.t._gstransform,f&&(f.svg&&(this.t.removeattribute("data-svg-origin"),this.t.removeattribute("transform")),delete this.t._gstransform))}};for(xa("clearprops",{parser:function(a,b,d,e,f){return f=new sa(a,d,0,0,f,2),f.setratio=va,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwprops,physicsprops,physics2d".split(","),va=j.length;va--;)ya(j[va]);j=g.prototype,j._firstpt=j._lastparsedtransform=j._transform=null,j._oninittween=function(a,b,h,j){if(!a.nodetype)return!1;this._target=q=a,this._tween=h,this._vars=b,r=j,k=b.autoround,c=!1,d=b.suffixmap||g.suffixmap,e=z(a,""),f=this._overwriteprops;var n,p,s,t,u,v,w,x,z,a=a.style;if(l&&""===a.zindex&&(n=$(a,"zindex",e),("auto"===n||""===n)&&this._addlazyset(a,"zindex",0)),"string"==typeof b&&(t=a.csstext,n=ba(a,e),a.csstext=t+";"+b,n=ca(a,n,ba(a)).difs,!t&&y.test(b)&&(n.opacity=parsefloat(regexp.$1)),b=n,a.csstext=t),b.classname?this._firstpt=p=i.classname.parse(a,b.classname,"classname",this,null,null,b):this._firstpt=p=this.parse(a,b,null),this._transformtype){for(z=3===this._transformtype,ba?m&&(l=!0,""===a.zindex&&(w=$(a,"zindex",e),("auto"===w||""===w)&&this._addlazyset(a,"zindex",0)),o&&this._addlazyset(a,"webkitbackfacevisibility",this._vars.webkitbackfacevisibility||(z?"visible":"hidden"))):a.zoom=1,s=p;s&&s._next;)s=s._next;x=new sa(a,"transform",0,0,null,2),this._linkcssp(x,null,s),x.setratio=ba?ra:qa,x.data=this._transform||pa(a,e,!0),x.tween=h,x.pr=-1,f.pop()}if(c){for(;p;){for(v=p._next,s=t;s&&s.pr>p.pr;)s=s._next;(p._prev=s?s._prev:u)?p._prev._next=p:t=p,(p._next=s)?s._prev=p:u=p,p=v}this._firstpt=t}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,s,t,u=a.style;for(g in b)n=b[g],"function"==typeof n&&(n=n(r,q)),h=i[g],h?c=h.parse(a,n,g,this,c,f,b):(m=$(a,g,e)+"",s="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexof("color")||s&&a.test(n)?(s||(n=ma(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=ua(u,g,m,n,!0,"transparent",c,0,f)):s&&j.test(n)?c=ua(u,g,m,n,!0,null,c,0,f):(j=parsefloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=fa(a,g,e),o="px"):"left"===g||"top"===g?(j=aa(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),t=s&&"="===n.charat(1),t?(l=parseint(n.charat(0)+"1",10),n=n.substr(2),l*=parsefloat(n),p=n.replace(w,"")):(l=parsefloat(n),p=s?n.replace(w,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(t?l+j:l)+p:b[g],o!==p&&""!==p&&(l||0===l)&&j&&(j=_(a,g,j,o),"%"===p?(j/=_(a,g,100,"%")/100,b.strictunits!==!0&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=_(a,g,1,p):"px"!==p&&(l=_(a,g,l,p),p="px"),t&&(l||0===l)&&(n=l+j+p)),t&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==u[g]&&(n||n+""!="nan"&&null!=n)?(c=new sa(u,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexof("style")?n:m):v("invalid "+g+" tween value: "+b[g]):(c=new sa(u,g,j,l-j,c,0,g,k!==!1&&("px"===p||"zindex"===g),0,m,n),c.xs0=p))),f&&c&&!c.plugin&&(c.plugin=f);return c},j.setratio=function(a){var b,c,d,e=this._firstpt,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawprevtime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=math.round(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)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{for(c=e.xs0+b+e.xs1,d=1;d-1;)xa(a[e],b,c);else for(d=a.childnodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(ba(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childnodes.length||xa(f,b,c)};return g.cascadeto=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedprops;for(a=i._targets||i.target,xa(a,k,m),i.render(c,!0,!0),xa(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=ca(m[e],k[e],l[e]),f.firstmpt){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromto(m[e],c,h,f))}return j},a.activate([g]),g},!0),function(){var a=_gsscope._gsdefine.plugin({propname:"roundprops",version:"1.6.0",priority:-1,api:2,init:function(a,b,c){return this._tween=c,!0}}),b=function(a){for(;a;)a.f||a.blob||(a.m=math.round),a=a._next},c=a.prototype;c._oninitallprops=function(){for(var a,c,d,e=this._tween,f=e.vars.roundprops.join?e.vars.roundprops:e.vars.roundprops.split(","),g=f.length,h={},i=e._proplookup.roundprops;--g>-1;)h[f[g]]=math.round;for(g=f.length;--g>-1;)for(a=f[g],c=e._firstpt;c;)d=c._next,c.pg?c.t._mod(h):c.n===a&&(2===c.f&&c.t?b(c.t._firstpt):(this._add(c.t,a,c.s,c.c),d&&(d._prev=c._prev),c._prev?c._prev._next=d:e._firstpt===c&&(e._firstpt=d),c._next=c._prev=null,e._proplookup[a]=i)),c=d;return!1},c._add=function(a,b,c,d){this._addtween(a,b,c,c+d,b,math.round),this._overwriteprops.push(b)}}(),function(){_gsscope._gsdefine.plugin({propname:"attr",api:2,version:"0.6.0",init:function(a,b,c,d){var e,f;if("function"!=typeof a.setattribute)return!1;for(e in b)f=b[e],"function"==typeof f&&(f=f(d,a)),this._addtween(a,"setattribute",a.getattribute(e)+"",f+"",e,!1,e),this._overwriteprops.push(e);return!0}})}(),_gsscope._gsdefine.plugin({propname:"directionalrotation",version:"0.3.0",api:2,init:function(a,b,c,d){"object"!=typeof b&&(b={rotation:b}),this.finals={};var e,f,g,h,i,j,k=b.useradians===!0?2*math.pi:360,l=1e-6;for(e in b)"useradians"!==e&&(h=b[e],"function"==typeof h&&(h=h(d,a)),j=(h+"").split("_"),f=j[0],g=parsefloat("function"!=typeof a[e]?a[e]:a[e.indexof("set")||"function"!=typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)]()),h=this.finals[e]="string"==typeof f&&"="===f.charat(1)?g+parseint(f.charat(0)+"1",10)*number(f.substr(2)):number(f)||0,i=h-g,j.length&&(f=j.join("_"),-1!==f.indexof("short")&&(i%=k,i!==i%(k/2)&&(i=0>i?i+k:i-k)),-1!==f.indexof("_cw")&&0>i?i=(i+9999999999*k)%k-(i/k|0)*k:-1!==f.indexof("ccw")&&i>0&&(i=(i-9999999999*k)%k-(i/k|0)*k)),(i>l||-l>i)&&(this._addtween(a,e,g,g+i,e),this._overwriteprops.push(e)));return!0},set:function(a){var b;if(1!==a)this._super.setratio.call(this,a);else for(b=this._firstpt;b;)b.f?b.t[b.p](this.finals[b.p]):b.t[b.p]=this.finals[b.p],b=b._next}})._autocss=!0,_gsscope._gsdefine("easing.back",["easing.ease"],function(a){var b,c,d,e=_gsscope.greensockglobals||_gsscope,f=e.com.greensock,g=2*math.pi,h=math.pi/2,i=f._class,j=function(b,c){var d=i("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getratio=c,d},k=a.register||function(){},l=function(a,b,c,d,e){var f=i("easing."+a,{easeout:new b,easein:new c,easeinout:new d},!0);return k(f,a),f},m=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},n=function(b,c){var d=i("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getratio=c,e.config=function(a){return new d(a)},d},o=l("back",n("backout",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),n("backin",function(a){return a*a*((this._p1+1)*a-this._p1)}),n("backinout",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),p=i("easing.slowmo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcend=c===!0},!0),q=p.prototype=new a;return q.constructor=p,q.getratio=function(a){var b=a+(.5-a)*this._p;return athis._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},p.ease=new p(.7,.7),q.config=p.config=function(a,b,c){return new p(a,b,c)},b=i("easing.steppedease",function(a){a=a||1,this._p1=1/a,this._p2=a+1},!0),q=b.prototype=new a,q.constructor=b,q.getratio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),(this._p2*a>>0)*this._p1},q.config=b.config=function(a){return new b(a)},c=i("easing.roughease",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),n=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--n>-1;)c=o?math.random():1/l*n,d=q?q.getratio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=math.random()*e-.5*e:n%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new m(1,1,null),n=l;--n>-1;)g=j[n],h=new m(g.x,g.y,h);this._prev=new m(0,0,0!==h.t?h:h.next)},!0),q=c.prototype=new a,q.constructor=c,q.getratio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},q.config=function(a){return new c(a)},c.ease=new c,l("bounce",j("bounceout",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),j("bouncein",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),j("bounceinout",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),l("circ",j("circout",function(a){return math.sqrt(1-(a-=1)*a)}),j("circin",function(a){return-(math.sqrt(1-a*a)-1)}),j("circinout",function(a){return(a*=2)<1?-.5*(math.sqrt(1-a*a)-1):.5*(math.sqrt(1-(a-=2)*a)+1)})),d=function(b,c,d){var e=i("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/g*(math.asin(1/this._p1)||0),this._p2=g/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getratio=c,f.config=function(a,b){return new e(a,b)},e},l("elastic",d("elasticout",function(a){return this._p1*math.pow(2,-10*a)*math.sin((a-this._p3)*this._p2)+1},.3),d("elasticin",function(a){return-(this._p1*math.pow(2,10*(a-=1))*math.sin((a-this._p3)*this._p2))},.3),d("elasticinout",function(a){return(a*=2)<1?-.5*(this._p1*math.pow(2,10*(a-=1))*math.sin((a-this._p3)*this._p2)):this._p1*math.pow(2,-10*(a-=1))*math.sin((a-this._p3)*this._p2)*.5+1},.45)),l("expo",j("expoout",function(a){return 1-math.pow(2,-10*a)}),j("expoin",function(a){return math.pow(2,10*(a-1))-.001}),j("expoinout",function(a){return(a*=2)<1?.5*math.pow(2,10*(a-1)):.5*(2-math.pow(2,-10*(a-1)))})),l("sine",j("sineout",function(a){return math.sin(a*h)}),j("sinein",function(a){return-math.cos(a*h)+1}),j("sineinout",function(a){return-.5*(math.cos(math.pi*a)-1)})),i("easing.easelookup",{find:function(b){return a.map[b]}},!0),k(e.slowmo,"slowmo","ease,"),k(c,"roughease","ease,"),k(b,"steppedease","ease,"),o},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(),function(a,b){"use strict";var c={},d=a.greensockglobals=a.greensockglobals||a;if(!d.tweenlite){var e,f,g,h,i,j=function(a){var b,c=a.split("."),e=d;for(b=0;b-1;)(l=p[f[s]]||new q(f[s],[])).gsclass?(i[s]=l.gsclass,t--):k&&l.sc.push(this);if(0===t&&g){if(m=("com.greensock."+e).split("."),n=m.pop(),o=j(m.join("."))[n]=this.gsclass=g.apply(g,i),h)if(d[n]=c[n]=o,r="undefined"!=typeof module&&module.exports,!r&&"function"==typeof define&&define.amd)define((a.greensockamdpath?a.greensockamdpath+"/":"")+e.split(".").pop(),[],function(){return o});else if(r)if(e===b){module.exports=c[b]=o;for(s in c)o[s]=c[s]}else c[b]&&(c[b][n]=o);for(s=0;s-1;)for(f=i[j],e=d?s("easing."+f,null,!0):k.easing[f]||{},g=l.length;--g>-1;)h=l[g],v[f+"."+h]=v[h+f]=e[h]=a.getratio?a:a[h]||new a};for(g=u.prototype,g._calcend=!1,g.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:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},e=["linear","quad","cubic","quart","quint,strong"],f=e.length;--f>-1;)g=e[f]+",power"+f,w(new u(null,null,1,f),g,"easeout",!0),w(new u(null,null,2,f),g,"easein"+(0===f?",easenone":"")),w(new u(null,null,3,f),g,"easeinout");v.linear=k.easing.linear.easein,v.swing=k.easing.quad.easeinout;var x=s("events.eventdispatcher",function(a){this._listeners={},this._eventtarget=a||this});g=x.prototype,g.addeventlistener=function(a,b,c,d,e){e=e||0;var f,g,j=this._listeners[a],k=0;for(this!==h||i||h.wake(),null==j&&(this._listeners[a]=j=[]),g=j.length;--g>-1;)f=j[g],f.c===b&&f.s===c?j.splice(g,1):0===k&&f.pr-1;)if(d[c].c===b)return void d.splice(c,1)},g.dispatchevent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,b>1&&(e=e.slice(0)),c=this._eventtarget;--b>-1;)d=e[b],d&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var y=a.requestanimationframe,z=a.cancelanimationframe,a=date.now||function(){return(new date).gettime()},b=a();for(e=["ms","moz","webkit","o"],f=e.length;--f>-1&&!y;)y=a[e[f]+"requestanimationframe"],z=a[e[f]+"cancelanimationframe"]||a[e[f]+"cancelrequestanimationframe"];s("ticker",function(a,b){var c,d,e,f,g,j=this,k=a(),m=b!==!1&&y?"auto":!1,o=500,p=33,q="tick",r=function(a){var b,h,i=a()-b;i>o&&(k+=i-p),b+=i,j.time=(b-k)/1e3,b=j.time-g,(!c||b>0||a===!0)&&(j.frame++,g+=b+(b>=f?.004:f-b),h=!0),a!==!0&&(e=d(r)),h&&j.dispatchevent(q)};x.call(j),j.time=j.frame=0,j.tick=function(){r(!0)},j.lagsmoothing=function(a,b){o=a||1/l,p=math.min(b,o,0)},j.sleep=function(){null!=e&&(m&&z?z(e):cleartimeout(e),d=n,e=null,j===h&&(i=!1))},j.wake=function(a){null!==e?j.sleep():a?k+=-b+(b=a()):j.frame>10&&(b=a()-o+5),d=0===c?n:m&&y?y:function(a){return settimeout(a,1e3*(g-j.time)+1|0)},j===h&&(i=!0),r(2)},j.fps=function(a){return arguments.length?(c=a,f=1/(c||60),g=this.time+f,void j.wake()):c},j.useraf=function(a){return arguments.length?(j.sleep(),m=a,void j.fps(c)):m},j.fps(a),settimeout(function(){"auto"===m&&j.frame<5&&"hidden"!==document.visibilitystate&&j.useraf(!1)},1500)}),g=k.ticker.prototype=new k.events.eventdispatcher,g.constructor=k.ticker;var c=s("core.animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalduration=a||0,this._delay=number(b.delay)||0,this._timescale=1,this._active=b.immediaterender===!0,this.data=b.data,this._reversed=b.reversed===!0,v){i||h.wake();var c=this.vars.useframes?u:v;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});h=c.ticker=new k.ticker,g=c.prototype,g._dirty=g._gc=g._initted=g._paused=!1,g._totaltime=g._time=0,g._rawprevtime=-1,g._next=g._last=g._onupdate=g._timeline=g.timeline=null,g._paused=!1;var d=function(){i&&a()-b>2e3&&h.wake(),settimeout(d,2e3)};d(),g.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},g.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},g.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},g.seek=function(a,b){return this.totaltime(number(a),b!==!1)},g.restart=function(a,b){return this.reversed(!1).paused(!1).totaltime(a?-this._delay:0,b!==!1,!0)},g.reverse=function(a,b){return null!=a&&this.seek(a||this.totalduration(),b),this.reversed(!0).paused(!1)},g.render=function(a,b,c){},g.invalidate=function(){return this._time=this._totaltime=0,this._initted=this._gc=!1,this._rawprevtime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},g.isactive=function(){var a,b=this._timeline,c=this._starttime;return!b||!this._gc&&!this._paused&&b.isactive()&&(a=b.rawtime())>=c&&a-1;)"{self}"===a[b]&&(c[b]=this);return c},g._callback=function(a){var b=this.vars,c=b[a],d=b[a+"params"],e=b[a+"scope"]||b.callbackscope||this,f=d?d.length:0;switch(f){case 0:c.call(e);break;case 1:c.call(e,d[0]);break;case 2:c.call(e,d[0],d[1]);break;default:c.apply(e,d)}},g.eventcallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"params"]=o(c)&&-1!==c.join("").indexof("{self}")?this._swapselfinparams(c):c,e[a+"scope"]=d),"onupdate"===a&&(this._onupdate=b)}return this},g.delay=function(a){return arguments.length?(this._timeline.smoothchildtiming&&this.starttime(this._starttime+a-this._delay),this._delay=a,this):this._delay},g.duration=function(a){return arguments.length?(this._duration=this._totalduration=a,this._uncache(!0),this._timeline.smoothchildtiming&&this._time>0&&this._timethis._duration?this._duration:a,b)):this._time},g.totaltime=function(a,b,c){if(i||h.wake(),!arguments.length)return this._totaltime;if(this._timeline){if(0>a&&!c&&(a+=this.totalduration()),this._timeline.smoothchildtiming){this._dirty&&this.totalduration();var d=this._totalduration,e=this._timeline;if(a>d&&!c&&(a=d),this._starttime=(this._paused?this._pausetime:e._time)-(this._reversed?d-a:a)/this._timescale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._starttime+e._totaltime)/e._timescale&&e.totaltime(e._totaltime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totaltime!==a||0===this._duration)&&(i.length&&x(),this.render(a,b,!1),i.length&&x())}return this},g.progress=g.totalprogress=function(a,b){var c=this.duration();return arguments.length?this.totaltime(c*a,b):c?this._time/c:this.ratio},g.starttime=function(a){return arguments.length?(a!==this._starttime&&(this._starttime=a,this.timeline&&this.timeline._sortchildren&&this.timeline.add(this,a-this._delay)),this):this._starttime},g.endtime=function(a){return this._starttime+(0!=a?this.totalduration():this.duration())/this._timescale},g.timescale=function(a){if(!arguments.length)return this._timescale;if(a=a||l,this._timeline&&this._timeline.smoothchildtiming){var b=this._pausetime,c=b||0===b?b:this._timeline.totaltime();this._starttime=c-(c-this._starttime)*this._timescale/a}return this._timescale=a,this._uncache(!1)},g.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totaltime(this._timeline&&!this._timeline.smoothchildtiming?this.totalduration()-this._totaltime:this._totaltime,!0)),this):this._reversed},g.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(i||a||h.wake(),b=d.rawtime(),c=b-this._pausetime,!a&&d.smoothchildtiming&&(this._starttime+=c,this._uncache(!1)),this._pausetime=a?b:null,this._paused=a,this._active=this.isactive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothchildtiming?this._totaltime:(b-this._starttime)/this._timescale,this.render(b,b===this._totaltime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var e=s("core.simpletimeline",function(a){c.call(this,0,a),this.autoremovechildren=this.smoothchildtiming=!0});g=e.prototype=new c,g.constructor=e,g.kill()._gc=!1,g._first=g._last=g._recent=null,g._sortchildren=!1,g.add=g.insert=function(a,b,c,d){var e,f;if(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),e=this._last,this._sortchildren)for(f=a._starttime;e&&e._starttime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},g._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),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),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},g.render=function(a,b,c){var d,e=this._first;for(this._totaltime=this._time=this._rawprevtime=a;e;)d=e._next,(e._active||a>=e._starttime&&!e._paused)&&(e._reversed?e.render((e._dirty?e.totalduration():e._totalduration)-(a-e._starttime)*e._timescale,b,c):e.render((a-e._starttime)*e._timescale,b,c)),e=d},g.rawtime=function(){return i||h.wake(),this._totaltime};var f=s("tweenlite",function(b,c,d){if(c.call(this,c,d),this.render=f.prototype.render,null==b)throw"cannot tween a null target.";this.target=b="string"!=typeof b?b:f.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodetype&&b[0].style&&!b.nodetype),i=this.vars.overwrite;if(this._overwrite=i=null==i?t[f.defaultoverwrite]:"number"==typeof i?i>>0:t[i],(h||b instanceof array||b.push&&o(b))&&"number"!=typeof b[0])for(this._targets=g=m(b),this._proplookup=[],this._siblings=[],e=0;e1&&$(f,this,null,1,this._siblings[e])):(f=g[e--]=f.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._proplookup={},this._siblings=y(b,this,!1),1===i&&this._siblings.length>1&&$(b,this,null,1,this._siblings);(this.vars.immediaterender||0===c&&0===this._delay&&this.vars.immediaterender!==!1)&&(this._time=-l,this.render(math.min(0,-this._delay)))},!0),g=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodetype&&b[0].style&&!b.nodetype); },h=function(a,b){var c,d={};for(c in a)s[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"classname"!==c&&"border"!==c||!(!p[c]||p[c]&&p[c]._autocss)||(d[c]=a[c],delete a[c]);a.css=d};g=f.prototype=new c,g.constructor=f,g.kill()._gc=!1,g.ratio=0,g._firstpt=g._targets=g._overwrittenprops=g._startat=null,g._notifypluginsofenabled=g._lazy=!1,f.version="1.19.0",f.defaultease=g._ease=new u(null,null,1,1),f.defaultoverwrite="auto",f.ticker=h,f.autosleep=120,f.lagsmoothing=function(a,b){h.lagsmoothing(a,b)},f.selector=a.$||a.jquery||function(b){var c=a.$||a.jquery;return c?(f.selector=c,c(b)):"undefined"==typeof document?b:document.queryselectorall?document.queryselectorall(b):document.getelementbyid("#"===b.charat(0)?b.substr(1):b)};var i=[],j={},k=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,l=function(a){for(var b,c=this._firstpt,d=1e-6;c;)b=c.blob?a?this.join(""):this.start:c.c*a+c.s,c.m?b=c.m(b,this._target||c.t):d>b&&b>-d&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},m=function(a,b,c,d){var e,f,g,h,i,j,k,l=[a,b],m=0,n="",o=0;for(l.start=a,c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(k)||[],f=b.match(k)||[],d&&(d._next=null,d.blob=1,l._firstpt=l._applypt=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexof(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parsefloat(e[h]),l.push(g),l._firstpt={_next:l._firstpt,t:l,p:l.length-1,s:g,c:("="===k.charat(1)?parseint(k.charat(0)+"1",10)*parsefloat(k.substr(2)):parsefloat(k)-g)||0,f:0,m:o&&4>o?math.round:0}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setratio=l,l},n=function(a,b,c,d,e,f,g,h,i){"function"==typeof d&&(d=d(i||0,a));var j,k,l="get"===c?a[b]:c,m=typeof a[b],n="string"==typeof d&&"="===d.charat(1),o={t:a,p:b,s:l,f:"function"===m,pg:0,n:e||b,m:f?"function"==typeof f?f:math.round:0,pr:0,c:n?parseint(d.charat(0)+"1",10)*parsefloat(d.substr(2)):parsefloat(d)-l||0};return"number"!==m&&("function"===m&&"get"===c&&(k=b.indexof("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),o.s=l=g?a[k](g):a[k]()),"string"==typeof l&&(g||isnan(l))?(o.fp=g,j=m(l,d,h||f.defaultstringfilter,o),o={t:j,p:"setratio",s:0,c:1,f:2,pg:0,n:e||b,pr:0,m:0}):n||(o.s=parsefloat(l),o.c=parsefloat(d)-o.s||0)),o.c?((o._next=this._firstpt)&&(o._next._prev=o),this._firstpt=o,o):void 0},o=f._internals={isarray:o,isselector:g,lazytweens:i,blobdif:m},p=f._plugins={},q=o.tweenlookup={},r=0,s=o.reservedprops={ease:1,delay:1,overwrite:1,oncomplete:1,oncompleteparams:1,oncompletescope:1,useframes:1,runbackwards:1,startat:1,onupdate:1,onupdateparams:1,onupdatescope:1,onstart:1,onstartparams:1,onstartscope:1,onreversecomplete:1,onreversecompleteparams:1,onreversecompletescope:1,onrepeat:1,onrepeatparams:1,onrepeatscope:1,easeparams:1,yoyo:1,immediaterender:1,repeat:1,repeatdelay:1,data:1,paused:1,reversed:1,autocss:1,lazy:1,onoverwrite:1,callbackscope:1,stringfilter:1,id:1},t={none:0,all:1,auto:2,concurrent:3,allonstart:4,preexisting:5,"true":1,"false":0},u=c._rootframestimeline=new e,v=c._roottimeline=new e,w=30,x=o.lazyrender=function(){var a,b=i.length;for(j={};--b>-1;)a=i[b],a&&a._lazy!==!1&&(a.render(a._lazy[0],a._lazy[1],!0),a._lazy=!1);i.length=0};v._starttime=h.time,u._starttime=h.frame,v._active=u._active=!0,settimeout(x,1),c._updateroot=f.render=function(){var a,b,c;if(i.length&&x(),v.render((h.time-v._starttime)*v._timescale,!1,!1),u.render((h.frame-u._starttime)*u._timescale,!1,!1),i.length&&x(),h.frame>=w){w=h.frame+(parseint(f.autosleep,10)||120);for(c in q){for(b=q[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete q[c]}if(c=v._first,(!c||c._paused)&&f.autosleep&&!u._first&&1===h._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||h.sleep()}}},h.addeventlistener("tick",c._updateroot);var y=function(a,b,c){var d,e,f=a._gstweenid;if(q[f||(a._gstweenid=f="t"+r++)]||(q[f]={target:a,tweens:[]}),b&&(d=q[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return q[f].tweens},z=function(a,b,c,d){var e,f,g=a.vars.onoverwrite;return g&&(e=g(a,b,c,d)),g=f.onoverwrite,g&&(f=g(a,b,c,d)),e!==!1&&f!==!1},$=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,k=b._starttime+l,m=[],n=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||_(b,0,o),0===_(h,j,o)&&(m[n++]=h)):h._starttime<=k&&h._starttime+h.totalduration()/h._timescale>k&&((o||!h._initted)&&k-h._starttime<=2e-10||(m[n++]=h)));for(f=n;--f>-1;)if(h=m[f],2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstpt&&h._initted){if(2!==d&&!z(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},_=function(a,b,c){for(var d=a._timeline,e=d._timescale,f=a._starttime;d._timeline;){if(f+=d._starttime,e*=d._timescale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*l>f-b?l:(f+=a.totalduration()/a._timescale/e)>b+l?0:f-b-l};g._init=function(){var a,b,c,d,e,f,g=this.vars,h=this._overwrittenprops,i=this._duration,j=!!g.immediaterender,k=g.ease;if(g.startat){this._startat&&(this._startat.render(-1,!0),this._startat.kill()),e={};for(d in g.startat)e[d]=g.startat[d];if(e.overwrite=!1,e.immediaterender=!0,e.lazy=j&&g.lazy!==!1,e.startat=e.delay=null,this._startat=f.to(this.target,0,e),j)if(this._time>0)this._startat=null;else if(0!==i)return}else if(g.runbackwards&&0!==i)if(this._startat)this._startat.render(-1,!0),this._startat.kill(),this._startat=null;else{0!==this._time&&(j=!1),c={};for(d in g)s[d]&&"autocss"!==d||(c[d]=g[d]);if(c.overwrite=0,c.data="isfromstart",c.lazy=j&&g.lazy!==!1,c.immediaterender=j,this._startat=f.to(this.target,0,c),j){if(0===this._time)return}else this._startat._init(),this._startat._enabled(!1),this.vars.immediaterender&&(this._startat=null)}if(this._ease=k=k?k instanceof u?k:"function"==typeof k?new u(k,g.easeparams):v[k]||f.defaultease:f.defaultease,g.easeparams instanceof array&&k.config&&(this._ease=k.config.apply(k,g.easeparams)),this._easetype=this._ease._type,this._easepower=this._ease._power,this._firstpt=null,this._targets)for(f=this._targets.length,a=0;f>a;a++)this._initprops(this._targets[a],this._proplookup[a]={},this._siblings[a],h?h[a]:null,a)&&(b=!0);else b=this._initprops(this.target,this._proplookup,this._siblings,h,0);if(b&&f._onpluginevent("_oninitallprops",this),h&&(this._firstpt||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runbackwards)for(c=this._firstpt;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onupdate=g.onupdate,this._initted=!0},g._initprops=function(b,c,d,e,f){var g,h,i,j,k,l;if(null==b)return!1;j[b._gstweenid]&&x(),this.vars.css||b.style&&b!==a&&b.nodetype&&p.css&&this.vars.autocss!==!1&&h(this.vars,b);for(g in this.vars)if(l=this.vars[g],s[g])l&&(l instanceof array||l.push&&o(l))&&-1!==l.join("").indexof("{self}")&&(this.vars[g]=l=this._swapselfinparams(l,this));else if(p[g]&&(j=new p[g])._oninittween(b,this.vars[g],this,f)){for(this._firstpt=k={_next:this._firstpt,t:j,p:"setratio",s:0,c:1,f:1,n:g,pg:1,pr:j._priority,m:0},h=j._overwriteprops.length;--h>-1;)c[j._overwriteprops[h]]=this._firstpt;(j._priority||j._oninitallprops)&&(i=!0),(j._ondisable||j._onenable)&&(this._notifypluginsofenabled=!0),k._next&&(k._next._prev=k)}else c[g]=n.call(this,b,g,"get",l,g,0,null,this.vars.stringfilter,f);return e&&this._kill(e,b)?this._initprops(b,c,d,e,f):this._overwrite>1&&this._firstpt&&d.length>1&&$(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initprops(b,c,d,e,f)):(this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(j[b._gstweenid]=!0),i)},g.render=function(a,b,c){var d,e,f,g,h=this._time,i=this._duration,j=this._rawprevtime;if(a>=i-1e-7)this._totaltime=this._time=i,this.ratio=this._ease._calcend?this._ease.getratio(1):1,this._reversed||(d=!0,e="oncomplete",c=c||this._timeline.autoremovechildren),0===i&&(this._initted||!this.vars.lazy||c)&&(this._starttime===this._timeline._duration&&(a=0),(0>j||0>=a&&a>=-1e-7||j===l&&"ispause"!==this.data)&&j!==a&&(c=!0,j>l&&(e="onreversecomplete")),this._rawprevtime=g=!b||a||j===a?a:l);else if(1e-7>a)this._totaltime=this._time=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==h||0===i&&j>0)&&(e="onreversecomplete",d=this._reversed),0>a&&(this._active=!1,0===i&&(this._initted||!this.vars.lazy||c)&&(j>=0&&(j!==l||"ispause"!==this.data)&&(c=!0),this._rawprevtime=g=!b||a||j===a?a:l)),this._initted||(c=!0);else if(this._totaltime=this._time=a,this._easetype){var k=a/i,m=this._easetype,n=this._easepower;(1===m||3===m&&k>=.5)&&(k=1-k),3===m&&(k*=2),1===n?k*=k:2===n?k*=k*k:3===n?k*=k*k*k:4===n&&(k*=k*k*k*k),1===m?this.ratio=1-k:2===m?this.ratio=k:.5>a/i?this.ratio=k/2:this.ratio=1-k/2}else this.ratio=this._ease.getratio(a/i);if(this._time!==h||c){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totaltime=h,this._rawprevtime=j,i.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getratio(this._time/i):d&&this._ease._calcend&&(this.ratio=this._ease.getratio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&a>=0&&(this._active=!0),0===h&&(this._startat&&(a>=0?this._startat.render(a,b,c):e||(e="_dummygs")),this.vars.onstart&&(0!==this._time||0===i)&&(b||this._callback("onstart"))),f=this._firstpt;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onupdate&&(0>a&&this._startat&&a!==-1e-4&&this._startat.render(a,b,c),b||(this._time!==h||d||c)&&this._callback("onupdate")),e&&(!this._gc||c)&&(0>a&&this._startat&&!this._onupdate&&a!==-1e-4&&this._startat.render(a,b,c),d&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===i&&this._rawprevtime===l&&g!==l&&(this._rawprevtime=0))}},g._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:f.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._starttime===this._starttime&&this._timeline===c._timeline;if((o(b)||g(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._proplookup[d]||{},this._overwrittenprops=this._overwrittenprops||[],e=this._overwrittenprops[d]=a?this._overwrittenprops[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._proplookup,e=this._overwrittenprops=a?this._overwrittenprops||{}:"all"}if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempkill),c&&(f.onoverwrite||this.vars.onoverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!z(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteprops.length||(g._prev?g._prev._next=g._next:g===this._firstpt&&(this._firstpt=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstpt&&this._initted&&this._enabled(!1,!1)}}return i},g.invalidate=function(){return this._notifypluginsofenabled&&f._onpluginevent("_ondisable",this),this._firstpt=this._overwrittenprops=this._startat=this._onupdate=null,this._notifypluginsofenabled=this._active=this._lazy=!1,this._proplookup=this._targets?{}:[],c.prototype.invalidate.call(this),this.vars.immediaterender&&(this._time=-l,this.render(math.min(0,-this._delay))),this},g._enabled=function(a,b){if(i||h.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=y(d[c],this,!0);else this._siblings=y(this.target,this,!0)}return c.prototype._enabled.call(this,a,b),this._notifypluginsofenabled&&this._firstpt?f._onpluginevent(a?"_onenable":"_ondisable",this):!1},f.to=function(a,b,c){return new f(a,b,c)},f.from=function(a,b,c){return c.runbackwards=!0,c.immediaterender=0!=c.immediaterender,new f(a,b,c)},f.fromto=function(a,b,c,d){return d.startat=c,d.immediaterender=0!=d.immediaterender&&0!=c.immediaterender,new f(a,b,d)},f.delayedcall=function(a,b,c,d,e){return new f(b,0,{delay:a,oncomplete:b,oncompleteparams:c,callbackscope:d,onreversecomplete:b,onreversecompleteparams:c,immediaterender:!1,lazy:!1,useframes:e,overwrite:0})},f.set=function(a,b){return new f(a,0,b)},f.gettweensof=function(a,b){if(null==a)return[];a="string"!=typeof a?a:f.selector(a)||a;var c,d,e,f;if((o(a)||g(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(f.gettweensof(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else for(d=y(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isactive())&&d.splice(c,1);return d},f.killtweensof=f.killdelayedcallsto=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=f.gettweensof(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var aa=s("plugins.tweenplugin",function(a,b){this._overwriteprops=(a||"").split(","),this._propname=this._overwriteprops[0],this._priority=b||0,this._super=aa.prototype},!0);if(g=aa.prototype,aa.version="1.19.0",aa.api=2,g._firstpt=null,g._addtween=n,g.setratio=l,g._kill=function(a){var b,c=this._overwriteprops,d=this._firstpt;if(null!=a[this._propname])this._overwriteprops=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstpt===d&&(this._firstpt=d._next)),d=d._next;return!1},g._mod=g._roundprops=function(a){for(var b,c=this._firstpt;c;)b=a[this._propname]||null!=c.n&&a[c.n.split(this._propname+"_").join("")],b&&"function"==typeof b&&(2===c.f?c.t._applypt.m=b:c.m=b),c=c._next},f._onpluginevent=function(a,b){var c,d,e,f,g,h=b._firstpt;if("_oninitallprops"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstpt=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},aa.activate=function(a){for(var b=a.length;--b>-1;)a[b].api===aa.api&&(p[(new a[b])._propname]=a[b]);return!0},r.plugin=function(a){if(!(a&&a.propname&&a.init&&a.api))throw"illegal plugin definition.";var b,c=a.propname,d=a.priority||0,e=a.overwriteprops,f={init:"_oninittween",set:"setratio",kill:"_kill",round:"_mod",mod:"_mod",initall:"_oninitallprops"},g=s("plugins."+c.charat(0).touppercase()+c.substr(1)+"plugin",function(){aa.call(this,c,d),this._overwriteprops=e||[]},a.global===!0),h=g.prototype=new aa(c);h.constructor=g,g.api=a.api;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,aa.activate([g]),g},e=a._gsqueue){for(f=0;f