/******************************************** - themepunch tools ver. 1.0 - last update of tools 27.02.2015 *********************************************/ /* * @fileoverview touchswipe - jquery plugin * @version 1.6.9 * * @author matt bryson http://www.github.com/mattbryson * @see https://github.com/mattbryson/touchswipe-jquery-plugin * @see http://labs.skinkers.com/touchswipe/ * @see http://plugins.jquery.com/project/touchswipe * * copyright (c) 2010 matt bryson * dual licensed under the mit or gpl version 2 licenses. * */ (function(a){if(typeof define==="function"&&define.amd&&define.amd.jquery){define(["jquery"],a)}else{a(jquery)}}(function(f){var y="1.6.9",p="left",o="right",e="up",x="down",c="in",a="out",m="none",s="auto",l="swipe",t="pinch",b="tap",j="doubletap",b="longtap",z="hold",e="horizontal",u="vertical",i="all",r=10,g="start",k="move",h="end",q="cancel",a="ontouchstart" in window,v=window.navigator.mspointerenabled&&!window.navigator.pointerenabled,d=window.navigator.pointerenabled||window.navigator.mspointerenabled,c="touchswipe";var n={fingers:1,threshold:75,cancelthreshold:null,pinchthreshold:20,maxtimethreshold:null,fingerreleasethreshold:250,longtapthreshold:500,doubletapthreshold:200,swipe:null,swipeleft:null,swiperight:null,swipeup:null,swipedown:null,swipestatus:null,pinchin:null,pinchout:null,pinchstatus:null,click:null,tap:null,doubletap:null,longtap:null,hold:null,triggerontouchend:true,triggerontouchleave:false,allowpagescroll:"auto",fallbacktomouseevents:true,excludedelements:"label, button, input, select, textarea, a, .noswipe",preventdefaultevents:true};f.fn.swipetp=function(h){var g=f(this),f=g.data(c);if(f&&typeof h==="string"){if(f[h]){return f[h].apply(this,array.prototype.slice.call(arguments,1))}else{f.error("method "+h+" does not exist on jquery.swipetp")}}else{if(!f&&(typeof h==="object"||!h)){return w.apply(this,arguments)}}return g};f.fn.swipetp.version=y;f.fn.swipetp.defaults=n;f.fn.swipetp.phases={phase_start:g,phase_move:k,phase_end:h,phase_cancel:q};f.fn.swipetp.directions={left:p,right:o,up:e,down:x,in:c,out:a};f.fn.swipetp.pagescroll={none:m,horizontal:e,vertical:u,auto:s};f.fn.swipetp.fingers={one:1,two:2,three:3,all:i};function w(f){if(f&&(f.allowpagescroll===undefined&&(f.swipe!==undefined||f.swipestatus!==undefined))){f.allowpagescroll=m}if(f.click!==undefined&&f.tap===undefined){f.tap=f.click}if(!f){f={}}f=f.extend({},f.fn.swipetp.defaults,f);return this.each(function(){var h=f(this);var g=h.data(c);if(!g){g=new d(this,f);h.data(c,g)}})}function d(a5,aw){var aa=(a||d||!aw.fallbacktomouseevents),k=aa?(d?(v?"mspointerdown":"pointerdown"):"touchstart"):"mousedown",az=aa?(d?(v?"mspointermove":"pointermove"):"touchmove"):"mousemove",v=aa?(d?(v?"mspointerup":"pointerup"):"touchend"):"mouseup",t=aa?null:"mouseleave",ae=(d?(v?"mspointercancel":"pointercancel"):"touchcancel");var ah=0,aq=null,ac=0,a2=0,a0=0,h=1,ar=0,ak=0,n=null;var as=f(a5);var aa="start";var x=0;var ar=null;var u=0,a3=0,a6=0,ae=0,o=0;var ax=null,ag=null;try{as.bind(k,ao);as.bind(ae,ba)}catch(al){f.error("events not supported "+k+","+ae+" on jquery.swipetp")}this.enable=function(){as.bind(k,ao);as.bind(ae,ba);return as};this.disable=function(){al();return as};this.destroy=function(){al();as.data(c,null);as=null};this.option=function(bd,bc){if(aw[bd]!==undefined){if(bc===undefined){return aw[bd]}else{aw[bd]=bc}}else{f.error("option "+bd+" does not exist on jquery.swipetp.options")}return null};function ao(be){if(ac()){return}if(f(be.target).closest(aw.excludedelements,as).length>0){return}var bf=be.originalevent?be.originalevent:be;var bd,bg=bf.touches,bc=bg?bg[0]:bf;aa=g;if(bg){x=bg.length}else{be.preventdefault()}ah=0;aq=null;ak=null;ac=0;a2=0;a0=0;h=1;ar=0;ar=ak();n=ab();s();if(!bg||(x===aw.fingers||aw.fingers===i)||ay()){aj(0,bc);u=au();if(x==2){aj(1,bg[1]);a2=a0=av(ar[0].start,ar[1].start)}if(aw.swipestatus||aw.pinchstatus){bd=p(bf,aa)}}else{bd=false}if(bd===false){aa=q;p(bf,aa);return bd}else{if(aw.hold){ag=settimeout(f.proxy(function(){as.trigger("hold",[bf.target]);if(aw.hold){bd=aw.hold.call(as,bf,bf.target)}},this),aw.longtapthreshold)}ap(true)}return null}function a4(bf){var bi=bf.originalevent?bf.originalevent:bf;if(aa===h||aa===q||an()){return}var be,bj=bi.touches,bd=bj?bj[0]:bi;var bg=ai(bd);a3=au();if(bj){x=bj.length}if(aw.hold){cleartimeout(ag)}aa=k;if(x==2){if(a2==0){aj(1,bj[1]);a2=a0=av(ar[0].start,ar[1].start)}else{ai(bj[1]);a0=av(ar[0].end,ar[1].end);ak=at(ar[0].end,ar[1].end)}h=a8(a2,a0);ar=math.abs(a2-a0)}if((x===aw.fingers||aw.fingers===i)||!bj||ay()){aq=am(bg.start,bg.end);am(bf,aq);ah=at(bg.start,bg.end);ac=an();aj(aq,ah);if(aw.swipestatus||aw.pinchstatus){be=p(bi,aa)}if(!aw.triggerontouchend||aw.triggerontouchleave){var bc=true;if(aw.triggerontouchleave){var bh=az(this);bc=f(bg.end,bh)}if(!aw.triggerontouchend&&bc){aa=ad(k)}else{if(aw.triggerontouchleave&&!bc){aa=ad(h)}}if(aa==q||aa==h){p(bi,aa)}}}else{aa=q;p(bi,aa)}if(be===false){aa=q;p(bi,aa)}}function m(bc){var bd=bc.originalevent?bc.originalevent:bc,be=bd.touches;if(be){if(be.length){g();return true}}if(an()){x=ae}a3=au();ac=an();if(bb()||!ao()){aa=q;p(bd,aa)}else{if(aw.triggerontouchend||(aw.triggerontouchend==false&&aa===k)){bc.preventdefault();aa=h;p(bd,aa)}else{if(!aw.triggerontouchend&&a7()){aa=h;ag(bd,aa,b)}else{if(aa===k){aa=q;p(bd,aa)}}}}ap(false);return null}function ba(){x=0;a3=0;u=0;a2=0;a0=0;h=1;s();ap(false)}function l(bc){var bd=bc.originalevent?bc.originalevent:bc;if(aw.triggerontouchleave){aa=ad(h);p(bd,aa)}}function al(){as.unbind(k,ao);as.unbind(ae,ba);as.unbind(az,a4);as.unbind(v,m);if(t){as.unbind(t,l)}ap(false)}function ad(bg){var bf=bg;var be=ab();var bd=ao();var bc=bb();if(!be||bc){bf=q}else{if(bd&&bg==k&&(!aw.triggerontouchend||aw.triggerontouchleave)){bf=h}else{if(!bd&&bg==h&&aw.triggerontouchleave){bf=q}}}return bf}function p(be,bc){var bd,bf=be.touches;if((j()||w())||(q()||ay())){if(j()||w()){bd=ag(be,bc,l)}if((q()||ay())&&bd!==false){bd=ag(be,bc,t)}}else{if(ah()&&bd!==false){bd=ag(be,bc,j)}else{if(aq()&&bd!==false){bd=ag(be,bc,b)}else{if(ai()&&bd!==false){bd=ag(be,bc,b)}}}}if(bc===q){ba(be)}if(bc===h){if(bf){if(!bf.length){ba(be)}}else{ba(be)}}return bd}function ag(bf,bc,be){var bd;if(be==l){as.trigger("swipestatus",[bc,aq||null,ah||0,ac||0,x,ar]);if(aw.swipestatus){bd=aw.swipestatus.call(as,bf,bc,aq||null,ah||0,ac||0,x,ar);if(bd===false){return false}}if(bc==h&&aw()){as.trigger("swipe",[aq,ah,ac,x,ar]);if(aw.swipe){bd=aw.swipe.call(as,bf,aq,ah,ac,x,ar);if(bd===false){return false}}switch(aq){case p:as.trigger("swipeleft",[aq,ah,ac,x,ar]);if(aw.swipeleft){bd=aw.swipeleft.call(as,bf,aq,ah,ac,x,ar)}break;case o:as.trigger("swiperight",[aq,ah,ac,x,ar]);if(aw.swiperight){bd=aw.swiperight.call(as,bf,aq,ah,ac,x,ar)}break;case e:as.trigger("swipeup",[aq,ah,ac,x,ar]);if(aw.swipeup){bd=aw.swipeup.call(as,bf,aq,ah,ac,x,ar)}break;case x:as.trigger("swipedown",[aq,ah,ac,x,ar]);if(aw.swipedown){bd=aw.swipedown.call(as,bf,aq,ah,ac,x,ar)}break}}}if(be==t){as.trigger("pinchstatus",[bc,ak||null,ar||0,ac||0,x,h,ar]);if(aw.pinchstatus){bd=aw.pinchstatus.call(as,bf,bc,ak||null,ar||0,ac||0,x,h,ar);if(bd===false){return false}}if(bc==h&&a9()){switch(ak){case c:as.trigger("pinchin",[ak||null,ar||0,ac||0,x,h,ar]);if(aw.pinchin){bd=aw.pinchin.call(as,bf,ak||null,ar||0,ac||0,x,h,ar)}break;case a:as.trigger("pinchout",[ak||null,ar||0,ac||0,x,h,ar]);if(aw.pinchout){bd=aw.pinchout.call(as,bf,ak||null,ar||0,ac||0,x,h,ar)}break}}}if(be==b){if(bc===q||bc===h){cleartimeout(ax);cleartimeout(ag);if(z()&&!i()){o=au();ax=settimeout(f.proxy(function(){o=null;as.trigger("tap",[bf.target]);if(aw.tap){bd=aw.tap.call(as,bf,bf.target)}},this),aw.doubletapthreshold)}else{o=null;as.trigger("tap",[bf.target]);if(aw.tap){bd=aw.tap.call(as,bf,bf.target)}}}}else{if(be==j){if(bc===q||bc===h){cleartimeout(ax);o=null;as.trigger("doubletap",[bf.target]);if(aw.doubletap){bd=aw.doubletap.call(as,bf,bf.target)}}}else{if(be==b){if(bc===q||bc===h){cleartimeout(ax);o=null;as.trigger("longtap",[bf.target]);if(aw.longtap){bd=aw.longtap.call(as,bf,bf.target)}}}}}return bd}function ao(){var bc=true;if(aw.threshold!==null){bc=ah>=aw.threshold}return bc}function bb(){var bc=false;if(aw.cancelthreshold!==null&&aq!==null){bc=(au(aq)-ah)>=aw.cancelthreshold}return bc}function af(){if(aw.pinchthreshold!==null){return ar>=aw.pinchthreshold}return true}function ab(){var bc;if(aw.maxtimethreshold){if(ac>=aw.maxtimethreshold){bc=false}else{bc=true}}else{bc=true}return bc}function am(bc,bd){if(aw.preventdefaultevents===false){return}if(aw.allowpagescroll===m){bc.preventdefault()}else{var be=aw.allowpagescroll===s;switch(bd){case p:if((aw.swipeleft&&be)||(!be&&aw.allowpagescroll!=e)){bc.preventdefault()}break;case o:if((aw.swiperight&&be)||(!be&&aw.allowpagescroll!=e)){bc.preventdefault()}break;case e:if((aw.swipeup&&be)||(!be&&aw.allowpagescroll!=u)){bc.preventdefault()}break;case x:if((aw.swipedown&&be)||(!be&&aw.allowpagescroll!=u)){bc.preventdefault()}break}}}function a9(){var bd=ap();var bc=y();var be=af();return bd&&bc&&be}function ay(){return !!(aw.pinchstatus||aw.pinchin||aw.pinchout)}function q(){return !!(a9()&&ay())}function aw(){var bf=ab();var bh=ao();var be=ap();var bc=y();var bd=bb();var bg=!bd&&bc&&be&&bh&&bf;return bg}function w(){return !!(aw.swipe||aw.swipestatus||aw.swipeleft||aw.swiperight||aw.swipeup||aw.swipedown)}function j(){return !!(aw()&&w())}function ap(){return((x===aw.fingers||aw.fingers===i)||!a)}function y(){return ar[0].end.x!==0}function a7(){return !!(aw.tap)}function z(){return !!(aw.doubletap)}function av(){return !!(aw.longtap)}function r(){if(o==null){return false}var bc=au();return(z()&&((bc-o)<=aw.doubletapthreshold))}function i(){return r()}function ay(){return((x===1||!a)&&(isnan(ah)||ahaw.longtapthreshold)&&(ah=0)){return p}else{if((be<=360)&&(be>=315)){return p}else{if((be>=135)&&(be<=225)){return o}else{if((be>45)&&(be<135)){return x}else{return e}}}}}function au(){var bc=new date();return bc.gettime()}function az(bc){bc=f(bc);var be=bc.offset();var bd={left:be.left,right:be.left+bc.outerwidth(),top:be.top,bottom:be.top+bc.outerheight()};return bd}function f(bc,bd){return(bc.x>bd.left&&bc.xbd.top&&bc.ye;e++)r[s[e]]=r=r[s[e]]||{};return r},h=l("com.greensock"),_=1e-10,u=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},f=function(){},c=function(){var t=object.prototype.tostring,e=t.call([]);return function(i){return null!=i&&(i instanceof array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),m={},p=function(s,r,n,a){this.sc=m[s]?m[s].sc:[],m[s]=this,this.gsclass=null,this.func=n;var o=[];this.check=function(h){for(var _,u,f,c,d,v=r.length,g=v;--v>-1;)(_=m[r[v]]||new p(r[v],[])).gsclass?(o[v]=_.gsclass,g--):h&&_.sc.push(this);if(0===g&&n)for(u=("com.greensock."+s).split("."),f=u.pop(),c=l(u.join("."))[f]=this.gsclass=n.apply(n,o),a&&(i[f]=c,d="undefined"!=typeof module&&module.exports,!d&&"function"==typeof define&&define.amd?define((t.greensockamdpath?t.greensockamdpath+"/":"")+s.split(".").pop(),[],function(){return c}):s===e&&d&&(module.exports=c)),v=0;this.sc.length>v;v++)this.sc[v].check()},this.check(!0)},d=t._gsdefine=function(t,e,i,s){return new p(t,e,i,s)},v=h._class=function(t,e,i){return e=e||function(){},d(t,[],function(){return e},i),e};d.globals=i;var g=[0,0,1,1],t=[],y=v("easing.ease",function(t,e,i,s){this._func=t,this._type=i||0,this._power=s||0,this._params=e?g.concat(e):g},!0),w=y.map={},p=y.register=function(t,e,i,s){for(var r,n,a,o,l=e.split(","),_=l.length,u=(i||"easein,easeout,easeinout").split(",");--_>-1;)for(n=l[_],r=s?v("easing."+n,null,!0):h.easing[n]||{},a=u.length;--a>-1;)o=u[a],w[n+"."+o]=w[o+n]=r[o]=t.getratio?t:t[o]||new t};for(n=y.prototype,n._calcend=!1,n.getratio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,s=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?s*=s:2===i?s*=s*s:3===i?s*=s*s*s:4===i&&(s*=s*s*s*s),1===e?1-s:2===e?s:.5>t?s/2:1-s/2},s=["linear","quad","cubic","quart","quint,strong"],r=s.length;--r>-1;)n=s[r]+",power"+r,p(new y(null,null,1,r),n,"easeout",!0),p(new y(null,null,2,r),n,"easein"+(0===r?",easenone":"")),p(new y(null,null,3,r),n,"easeinout");w.linear=h.easing.linear.easein,w.swing=h.easing.quad.easeinout;var b=v("events.eventdispatcher",function(t){this._listeners={},this._eventtarget=t||this});n=b.prototype,n.addeventlistener=function(t,e,i,s,r){r=r||0;var n,l,h=this._listeners[t],_=0;for(null==h&&(this._listeners[t]=h=[]),l=h.length;--l>-1;)n=h[l],n.c===e&&n.s===i?h.splice(l,1):0===_&&r>n.pr&&(_=l+1);h.splice(_,0,{c:e,s:i,up:s,pr:r}),this!==a||o||a.wake()},n.removeeventlistener=function(t,e){var i,s=this._listeners[t];if(s)for(i=s.length;--i>-1;)if(s[i].c===e)return s.splice(i,1),void 0},n.dispatchevent=function(t){var e,i,s,r=this._listeners[t];if(r)for(e=r.length,i=this._eventtarget;--e>-1;)s=r[e],s&&(s.up?s.c.call(s.s||i,{type:t,target:i}):s.c.call(s.s||i))};var k=t.requestanimationframe,a=t.cancelanimationframe,s=date.now||function(){return(new date).gettime()},x=s();for(s=["ms","moz","webkit","o"],r=s.length;--r>-1&&!k;)k=t[s[r]+"requestanimationframe"],a=t[s[r]+"cancelanimationframe"]||t[s[r]+"cancelrequestanimationframe"];v("ticker",function(t,e){var i,s,r,n,l,h=this,u=s(),c=e!==!1&&k,m=500,p=33,d="tick",v=function(t){var e,a,o=s()-x;o>m&&(u+=o-p),x+=o,h.time=(x-u)/1e3,e=h.time-l,(!i||e>0||t===!0)&&(h.frame++,l+=e+(e>=n?.004:n-e),a=!0),t!==!0&&(r=s(v)),a&&h.dispatchevent(d)};b.call(h),h.time=h.frame=0,h.tick=function(){v(!0)},h.lagsmoothing=function(t,e){m=t||1/_,p=math.min(e,m,0)},h.sleep=function(){null!=r&&(c&&a?a(r):cleartimeout(r),s=f,r=null,h===a&&(o=!1))},h.wake=function(){null!==r?h.sleep():h.frame>10&&(x=s()-m+5),s=0===i?f:c&&k?k:function(t){return settimeout(t,0|1e3*(l-h.time)+1)},h===a&&(o=!0),v(2)},h.fps=function(t){return arguments.length?(i=t,n=1/(i||60),l=this.time+n,h.wake(),void 0):i},h.useraf=function(t){return arguments.length?(h.sleep(),c=t,h.fps(i),void 0):c},h.fps(t),settimeout(function(){c&&5>h.frame&&h.useraf(!1)},1500)}),n=h.ticker.prototype=new h.events.eventdispatcher,n.constructor=h.ticker;var r=v("core.animation",function(t,e){if(this.vars=e=e||{},this._duration=this._totalduration=t||0,this._delay=number(e.delay)||0,this._timescale=1,this._active=e.immediaterender===!0,this.data=e.data,this._reversed=e.reversed===!0,h){o||a.wake();var i=this.vars.useframes?k:h;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});a=r.ticker=new h.ticker,n=r.prototype,n._dirty=n._gc=n._initted=n._paused=!1,n._totaltime=n._time=0,n._rawprevtime=-1,n._next=n._last=n._onupdate=n._timeline=n.timeline=null,n._paused=!1;var c=function(){o&&s()-x>2e3&&a.wake(),settimeout(c,2e3)};c(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totaltime(number(t),e!==!1)},n.restart=function(t,e){return this.reversed(!1).paused(!1).totaltime(t?-this._delay:0,e!==!1,!0)},n.reverse=function(t,e){return null!=t&&this.seek(t||this.totalduration(),e),this.reversed(!0).paused(!1)},n.render=function(){},n.invalidate=function(){return this._time=this._totaltime=0,this._initted=this._gc=!1,this._rawprevtime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},n.isactive=function(){var t,e=this._timeline,i=this._starttime;return!e||!this._gc&&!this._paused&&e.isactive()&&(t=e.rawtime())>=i&&i+this.totalduration()/this._timescale>t},n._enabled=function(t,e){return o||a.wake(),this._gc=!t,this._active=this.isactive(),e!==!0&&(t&&!this.timeline?this._timeline.add(this,this._starttime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},n._kill=function(){return this._enabled(!1,!1)},n.kill=function(t,e){return this._kill(t,e),this},n._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},n._swapselfinparams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i},n._callback=function(t){var e=this.vars;e[t].apply(e[t+"scope"]||e.callbackscope||this,e[t+"params"]||t)},n.eventcallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"params"]=c(i)&&-1!==i.join("").indexof("{self}")?this._swapselfinparams(i):i,r[t+"scope"]=s),"onupdate"===t&&(this._onupdate=e)}return this},n.delay=function(t){return arguments.length?(this._timeline.smoothchildtiming&&this.starttime(this._starttime+t-this._delay),this._delay=t,this):this._delay},n.duration=function(t){return arguments.length?(this._duration=this._totalduration=t,this._uncache(!0),this._timeline.smoothchildtiming&&this._time>0&&this._timethis._duration?this._duration:t,e)):this._time},n.totaltime=function(t,e,i){if(o||a.wake(),!arguments.length)return this._totaltime;if(this._timeline){if(0>t&&!i&&(t+=this.totalduration()),this._timeline.smoothchildtiming){this._dirty&&this.totalduration();var s=this._totalduration,r=this._timeline;if(t>s&&!i&&(t=s),this._starttime=(this._paused?this._pausetime:r._time)-(this._reversed?s-t:t)/this._timescale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._starttime+r._totaltime)/r._timescale&&r.totaltime(r._totaltime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),(this._totaltime!==t||0===this._duration)&&(z.length&&v(),this.render(t,e,!1),z.length&&v())}return this},n.progress=n.totalprogress=function(t,e){var i=this.duration();return arguments.length?this.totaltime(i*t,e):i?this._time/i:this.ratio},n.starttime=function(t){return arguments.length?(t!==this._starttime&&(this._starttime=t,this.timeline&&this.timeline._sortchildren&&this.timeline.add(this,t-this._delay)),this):this._starttime},n.endtime=function(t){return this._starttime+(0!=t?this.totalduration():this.duration())/this._timescale},n.timescale=function(t){if(!arguments.length)return this._timescale;if(t=t||_,this._timeline&&this._timeline.smoothchildtiming){var e=this._pausetime,i=e||0===e?e:this._timeline.totaltime();this._starttime=i-(i-this._starttime)*this._timescale/t}return this._timescale=t,this._uncache(!1)},n.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totaltime(this._timeline&&!this._timeline.smoothchildtiming?this.totalduration()-this._totaltime:this._totaltime,!0)),this):this._reversed},n.paused=function(t){if(!arguments.length)return this._paused;var e,i,s=this._timeline;return t!=this._paused&&s&&(o||t||a.wake(),e=s.rawtime(),i=e-this._pausetime,!t&&s.smoothchildtiming&&(this._starttime+=i,this._uncache(!1)),this._pausetime=t?e:null,this._paused=t,this._active=this.isactive(),!t&&0!==i&&this._initted&&this.duration()&&(e=s.smoothchildtiming?this._totaltime:(e-this._starttime)/this._timescale,this.render(e,e===this._totaltime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var d=v("core.simpletimeline",function(t){r.call(this,0,t),this.autoremovechildren=this.smoothchildtiming=!0});n=d.prototype=new r,n.constructor=d,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortchildren=!1,n.add=n.insert=function(t,e){var i,s;if(t._starttime=number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pausetime=t._starttime+(this.rawtime()-t._starttime)/t._timescale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,this._sortchildren)for(s=t._starttime;i&&i._starttime>s;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._recent=t,this._timeline&&this._uncache(!0),this},n._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},n.render=function(t,e,i){var s,r=this._first;for(this._totaltime=this._time=this._rawprevtime=t;r;)s=r._next,(r._active||t>=r._starttime&&!r._paused)&&(r._reversed?r.render((r._dirty?r.totalduration():r._totalduration)-(t-r._starttime)*r._timescale,e,i):r.render((t-r._starttime)*r._timescale,e,i)),r=s},n.rawtime=function(){return o||a.wake(),this._totaltime};var i=v("tweenlite",function(e,i,s){if(r.call(this,i,s),this.render=i.prototype.render,null==e)throw"cannot tween a null target.";this.target=e="string"!=typeof e?e:i.selector(e)||e;var r,n,a,o=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodetype&&e[0].style&&!e.nodetype),l=this.vars.overwrite;if(this._overwrite=l=null==l?$[i.defaultoverwrite]:"number"==typeof l?l>>0:$[l],(o||e instanceof array||e.push&&c(e))&&"number"!=typeof e[0])for(this._targets=a=u(e),this._proplookup=[],this._siblings=[],r=0;a.length>r;r++)n=a[r],n?"string"!=typeof n?n.length&&n!==t&&n[0]&&(n[0]===t||n[0].nodetype&&n[0].style&&!n.nodetype)?(a.splice(r--,1),this._targets=a=a.concat(u(n))):(this._siblings[r]=w(n,this,!1),1===l&&this._siblings[r].length>1&&y(n,this,null,1,this._siblings[r])):(n=a[r--]=i.selector(n),"string"==typeof n&&a.splice(r+1,1)):a.splice(r--,1);else this._proplookup={},this._siblings=w(e,this,!1),1===l&&this._siblings.length>1&&y(e,this,null,1,this._siblings);(this.vars.immediaterender||0===i&&0===this._delay&&this.vars.immediaterender!==!1)&&(this._time=-_,this.render(-this._delay))},!0),e=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodetype&&e[0].style&&!e.nodetype)},o=function(t,e){var i,s={};for(i in t)m[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"classname"!==i&&"border"!==i||!(!q[i]||q[i]&&q[i]._autocss)||(s[i]=t[i],delete t[i]);t.css=s};n=i.prototype=new r,n.constructor=i,n.kill()._gc=!1,n.ratio=0,n._firstpt=n._targets=n._overwrittenprops=n._startat=null,n._notifypluginsofenabled=n._lazy=!1,i.version="1.18.0",i.defaultease=n._ease=new y(null,null,1,1),i.defaultoverwrite="auto",i.ticker=a,i.autosleep=120,i.lagsmoothing=function(t,e){a.lagsmoothing(t,e)},i.selector=t.$||t.jquery||function(e){var i=t.$||t.jquery;return i?(i.selector=i,i(e)):"undefined"==typeof document?e:document.queryselectorall?document.queryselectorall(e):document.getelementbyid("#"===e.charat(0)?e.substr(1):e)};var z=[],f={},l=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,n=function(t){for(var e,i=this._firstpt,s=1e-6;i;)e=i.blob?t?this.join(""):this.start:i.c*t+i.s,i.r?e=math.round(e):s>e&&e>-s&&(e=0),i.f?i.fp?i.t[i.p](i.fp,e):i.t[i.p](e):i.t[i.p]=e,i=i._next},u=function(t,e,i,s){var r,n,a,o,l,h,_,u=[t,e],f=0,c="",m=0;for(u.start=t,i&&(i(u),t=u[0],e=u[1]),u.length=0,r=t.match(l)||[],n=e.match(l)||[],s&&(s._next=null,s.blob=1,u._firstpt=s),l=n.length,o=0;l>o;o++)_=n[o],h=e.substr(f,e.indexof(_,f)-f),c+=h||!o?h:",",f+=h.length,m?m=(m+1)%5:"rgba("===h.substr(-5)&&(m=1),_===r[o]||o>=r.length?c+=_:(c&&(u.push(c),c=""),a=parsefloat(r[o]),u.push(a),u._firstpt={_next:u._firstpt,t:u,p:u.length-1,s:a,c:("="===_.charat(1)?parseint(_.charat(0)+"1",10)*parsefloat(_.substr(2)):parsefloat(_)-a)||0,f:0,r:m&&4>m}),f+=_.length;return c+=e.substr(f),c&&u.push(c),u.setratio=n,u},j=function(t,e,i,s,r,n,a,o){var l,h,_="get"===i?t[e]:i,u=typeof t[e],f="string"==typeof s&&"="===s.charat(1),c={t:t,p:e,s:_,f:"function"===u,pg:0,n:r||e,r:n,pr:0,c:f?parseint(s.charat(0)+"1",10)*parsefloat(s.substr(2)):parsefloat(s)-_||0};return"number"!==u&&("function"===u&&"get"===i&&(h=e.indexof("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),c.s=_=a?t[h](a):t[h]()),"string"==typeof _&&(a||isnan(_))?(c.fp=a,l=u(_,s,o||i.defaultstringfilter,c),c={t:l,p:"setratio",s:0,c:1,f:2,pg:0,n:r||e,pr:0}):f||(c.c=parsefloat(s)-parsefloat(_)||0)),c.c?((c._next=this._firstpt)&&(c._next._prev=c),this._firstpt=c,c):void 0},g=i._internals={isarray:c,isselector:e,lazytweens:z,blobdif:u},q=i._plugins={},q=g.tweenlookup={},b=0,m=g.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},$={none:0,all:1,auto:2,concurrent:3,allonstart:4,preexisting:5,"true":1,"false":0},k=r._rootframestimeline=new d,h=r._roottimeline=new d,j=30,v=g.lazyrender=function(){var t,e=z.length;for(f={};--e>-1;)t=z[e],t&&t._lazy!==!1&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);z.length=0};h._starttime=a.time,k._starttime=a.frame,h._active=k._active=!0,settimeout(v,1),r._updateroot=i.render=function(){var t,e,i;if(z.length&&v(),h.render((a.time-h._starttime)*h._timescale,!1,!1),k.render((a.frame-k._starttime)*k._timescale,!1,!1),z.length&&v(),a.frame>=j){j=a.frame+(parseint(i.autosleep,10)||120);for(i in q){for(e=q[i].tweens,t=e.length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete q[i]}if(i=h._first,(!i||i._paused)&&i.autosleep&&!k._first&&1===a._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||a.sleep()}}},a.addeventlistener("tick",r._updateroot);var w=function(t,e,i){var s,r,n=t._gstweenid;if(q[n||(t._gstweenid=n="t"+b++)]||(q[n]={target:t,tweens:[]}),e&&(s=q[n].tweens,s[r=s.length]=e,i))for(;--r>-1;)s[r]===e&&s.splice(r,1);return q[n].tweens},x=function(t,e,i,s){var r,n,a=t.vars.onoverwrite;return a&&(r=a(t,e,i,s)),a=i.onoverwrite,a&&(n=a(t,e,i,s)),r!==!1&&n!==!1},y=function(t,e,i,s,r){var n,a,o,l;if(1===s||s>=4){for(l=r.length,n=0;l>n;n++)if((o=r[n])!==e)o._gc||o._kill(null,t,e)&&(a=!0);else if(5===s)break;return a}var h,u=e._starttime+_,f=[],c=0,m=0===e._duration;for(n=r.length;--n>-1;)(o=r[n])===e||o._gc||o._paused||(o._timeline!==e._timeline?(h=h||z(e,0,m),0===z(o,h,m)&&(f[c++]=o)):u>=o._starttime&&o._starttime+o.totalduration()/o._timescale>u&&((m||!o._initted)&&2e-10>=u-o._starttime||(f[c++]=o)));for(n=c;--n>-1;)if(o=f[n],2===s&&o._kill(i,t,e)&&(a=!0),2!==s||!o._firstpt&&o._initted){if(2!==s&&!x(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},z=function(t,e,i){for(var s=t._timeline,r=s._timescale,n=t._starttime;s._timeline;){if(n+=s._starttime,r*=s._timescale,s._paused)return-100;s=s._timeline}return n/=r,n>e?n-e:i&&n===e||!t._initted&&2*_>n-e?_:(n+=t.totalduration()/t._timescale/r)>e+_?0:n-e-_};n._init=function(){var t,e,i,s,r,n=this.vars,a=this._overwrittenprops,o=this._duration,l=!!n.immediaterender,h=n.ease;if(n.startat){this._startat&&(this._startat.render(-1,!0),this._startat.kill()),r={};for(s in n.startat)r[s]=n.startat[s];if(r.overwrite=!1,r.immediaterender=!0,r.lazy=l&&n.lazy!==!1,r.startat=r.delay=null,this._startat=i.to(this.target,0,r),l)if(this._time>0)this._startat=null;else if(0!==o)return}else if(n.runbackwards&&0!==o)if(this._startat)this._startat.render(-1,!0),this._startat.kill(),this._startat=null;else{0!==this._time&&(l=!1),i={};for(s in n)m[s]&&"autocss"!==s||(i[s]=n[s]);if(i.overwrite=0,i.data="isfromstart",i.lazy=l&&n.lazy!==!1,i.immediaterender=l,this._startat=i.to(this.target,0,i),l){if(0===this._time)return}else this._startat._init(),this._startat._enabled(!1),this.vars.immediaterender&&(this._startat=null)}if(this._ease=h=h?h instanceof y?h:"function"==typeof h?new y(h,n.easeparams):w[h]||i.defaultease:i.defaultease,n.easeparams instanceof array&&h.config&&(this._ease=h.config.apply(h,n.easeparams)),this._easetype=this._ease._type,this._easepower=this._ease._power,this._firstpt=null,this._targets)for(t=this._targets.length;--t>-1;)this._initprops(this._targets[t],this._proplookup[t]={},this._siblings[t],a?a[t]:null)&&(e=!0);else e=this._initprops(this.target,this._proplookup,this._siblings,a);if(e&&i._onpluginevent("_oninitallprops",this),a&&(this._firstpt||"function"!=typeof this.target&&this._enabled(!1,!1)),n.runbackwards)for(i=this._firstpt;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onupdate=n.onupdate,this._initted=!0},n._initprops=function(e,i,s,r){var n,a,o,l,h,_;if(null==e)return!1;f[e._gstweenid]&&v(),this.vars.css||e.style&&e!==t&&e.nodetype&&q.css&&this.vars.autocss!==!1&&o(this.vars,e);for(n in this.vars)if(_=this.vars[n],m[n])_&&(_ instanceof array||_.push&&c(_))&&-1!==_.join("").indexof("{self}")&&(this.vars[n]=_=this._swapselfinparams(_,this));else if(q[n]&&(l=new q[n])._oninittween(e,this.vars[n],this)){for(this._firstpt=h={_next:this._firstpt,t:l,p:"setratio",s:0,c:1,f:1,n:n,pg:1,pr:l._priority},a=l._overwriteprops.length;--a>-1;)i[l._overwriteprops[a]]=this._firstpt;(l._priority||l._oninitallprops)&&(o=!0),(l._ondisable||l._onenable)&&(this._notifypluginsofenabled=!0),h._next&&(h._next._prev=h)}else i[n]=j.call(this,e,n,"get",_,n,0,null,this.vars.stringfilter);return r&&this._kill(r,e)?this._initprops(e,i,s,r):this._overwrite>1&&this._firstpt&&s.length>1&&y(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initprops(e,i,s,r)):(this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(f[e._gstweenid]=!0),o)},n.render=function(t,e,i){var s,r,n,a,o=this._time,l=this._duration,h=this._rawprevtime;if(t>=l)this._totaltime=this._time=l,this.ratio=this._ease._calcend?this._ease.getratio(1):1,this._reversed||(s=!0,r="oncomplete",i=i||this._timeline.autoremovechildren),0===l&&(this._initted||!this.vars.lazy||i)&&(this._starttime===this._timeline._duration&&(t=0),(0===t||0>h||h===_&&"ispause"!==this.data)&&h!==t&&(i=!0,h>_&&(r="onreversecomplete")),this._rawprevtime=a=!e||t||h===t?t:_);else if(1e-7>t)this._totaltime=this._time=0,this.ratio=this._ease._calcend?this._ease.getratio(0):0,(0!==o||0===l&&h>0)&&(r="onreversecomplete",s=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(h!==_||"ispause"!==this.data)&&(i=!0),this._rawprevtime=a=!e||t||h===t?t:_)),this._initted||(i=!0);else if(this._totaltime=this._time=t,this._easetype){var u=t/l,f=this._easetype,c=this._easepower;(1===f||3===f&&u>=.5)&&(u=1-u),3===f&&(u*=2),1===c?u*=u:2===c?u*=u*u:3===c?u*=u*u*u:4===c&&(u*=u*u*u*u),this.ratio=1===f?1-u:2===f?u:.5>t/l?u/2:1-u/2}else this.ratio=this._ease.getratio(t/l);if(this._time!==o||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstpt&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totaltime=o,this._rawprevtime=h,z.push(this),this._lazy=[t,e],void 0;this._time&&!s?this.ratio=this._ease.getratio(this._time/l):s&&this._ease._calcend&&(this.ratio=this._ease.getratio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==o&&t>=0&&(this._active=!0),0===o&&(this._startat&&(t>=0?this._startat.render(t,e,i):r||(r="_dummygs")),this.vars.onstart&&(0!==this._time||0===l)&&(e||this._callback("onstart"))),n=this._firstpt;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._next;this._onupdate&&(0>t&&this._startat&&t!==-1e-4&&this._startat.render(t,e,i),e||(this._time!==o||s)&&this._callback("onupdate")),r&&(!this._gc||i)&&(0>t&&this._startat&&!this._onupdate&&t!==-1e-4&&this._startat.render(t,e,i),s&&(this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===l&&this._rawprevtime===_&&a!==_&&(this._rawprevtime=0))}},n._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:i.selector(e)||e;var s,r,n,a,o,l,h,_,u,f=i&&this._time&&i._starttime===this._starttime&&this._timeline===i._timeline;if((c(e)||e(e))&&"number"!=typeof e[0])for(s=e.length;--s>-1;)this._kill(t,e[s],i)&&(l=!0);else{if(this._targets){for(s=this._targets.length;--s>-1;)if(e===this._targets[s]){o=this._proplookup[s]||{},this._overwrittenprops=this._overwrittenprops||[],r=this._overwrittenprops[s]=t?this._overwrittenprops[s]||{}:"all";break}}else{if(e!==this.target)return!1;o=this._proplookup,r=this._overwrittenprops=t?this._overwrittenprops||{}:"all"}if(o){if(h=t||o,_=t!==r&&"all"!==r&&t!==o&&("object"!=typeof t||!t._tempkill),i&&(i.onoverwrite||this.vars.onoverwrite)){for(n in h)o[n]&&(u||(u=[]),u.push(n));if((u||!t)&&!x(this,i,e,u))return!1}for(n in h)(a=o[n])&&(f&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(h)&&(l=!0),a.pg&&0!==a.t._overwriteprops.length||(a._prev?a._prev._next=a._next:a===this._firstpt&&(this._firstpt=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete o[n]),_&&(r[n]=1);!this._firstpt&&this._initted&&this._enabled(!1,!1)}}return l},n.invalidate=function(){return this._notifypluginsofenabled&&i._onpluginevent("_ondisable",this),this._firstpt=this._overwrittenprops=this._startat=this._onupdate=null,this._notifypluginsofenabled=this._active=this._lazy=!1,this._proplookup=this._targets?{}:[],r.prototype.invalidate.call(this),this.vars.immediaterender&&(this._time=-_,this.render(-this._delay)),this},n._enabled=function(t,e){if(o||a.wake(),t&&this._gc){var i,s=this._targets;if(s)for(i=s.length;--i>-1;)this._siblings[i]=w(s[i],this,!0);else this._siblings=w(this.target,this,!0)}return r.prototype._enabled.call(this,t,e),this._notifypluginsofenabled&&this._firstpt?i._onpluginevent(t?"_onenable":"_ondisable",this):!1},i.to=function(t,e,i){return new i(t,e,i)},i.from=function(t,e,i){return i.runbackwards=!0,i.immediaterender=0!=i.immediaterender,new i(t,e,i)},i.fromto=function(t,e,i,s){return s.startat=i,s.immediaterender=0!=s.immediaterender&&0!=i.immediaterender,new i(t,e,s)},i.delayedcall=function(t,e,i,s,r){return new i(e,0,{delay:t,oncomplete:e,oncompleteparams:i,callbackscope:s,onreversecomplete:e,onreversecompleteparams:i,immediaterender:!1,lazy:!1,useframes:r,overwrite:0})},i.set=function(t,e){return new i(t,0,e)},i.gettweensof=function(t,e){if(null==t)return[];t="string"!=typeof t?t:i.selector(t)||t;var i,s,r,n;if((c(t)||e(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(i.gettweensof(t[i],e));for(i=s.length;--i>-1;)for(n=s[i],r=i;--r>-1;)n===s[r]&&s.splice(i,1)}else for(s=w(t).concat(),i=s.length;--i>-1;)(s[i]._gc||e&&!s[i].isactive())&&s.splice(i,1);return s},i.killtweensof=i.killdelayedcallsto=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=i.gettweensof(t,e),r=s.length;--r>-1;)s[r]._kill(i,t)};var te=v("plugins.tweenplugin",function(t,e){this._overwriteprops=(t||"").split(","),this._propname=this._overwriteprops[0],this._priority=e||0,this._super=te.prototype},!0);if(n=te.prototype,te.version="1.18.0",te.api=2,n._firstpt=null,n._addtween=j,n.setratio=n,n._kill=function(t){var e,i=this._overwriteprops,s=this._firstpt;if(null!=t[this._propname])this._overwriteprops=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;s;)null!=t[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstpt===s&&(this._firstpt=s._next)),s=s._next;return!1},n._roundprops=function(t,e){for(var i=this._firstpt;i;)(t[this._propname]||null!=i.n&&t[i.n.split(this._propname+"_").join("")])&&(i.r=e),i=i._next},i._onpluginevent=function(t,e){var i,s,r,n,a,o=e._firstpt;if("_oninitallprops"===t){for(;o;){for(a=o._next,s=r;s&&s.pr>o.pr;)s=s._next;(o._prev=s?s._prev:n)?o._prev._next=o:r=o,(o._next=s)?s._prev=o:n=o,o=a}o=e._firstpt=r}for(;o;)o.pg&&"function"==typeof o.t[t]&&o.t[t]()&&(i=!0),o=o._next;return i},te.activate=function(t){for(var e=t.length;--e>-1;)t[e].api===te.api&&(q[(new t[e])._propname]=t[e]);return!0},d.plugin=function(t){if(!(t&&t.propname&&t.init&&t.api))throw"illegal plugin definition.";var e,i=t.propname,s=t.priority||0,r=t.overwriteprops,n={init:"_oninittween",set:"setratio",kill:"_kill",round:"_roundprops",initall:"_oninitallprops"},a=v("plugins."+i.charat(0).touppercase()+i.substr(1)+"plugin",function(){te.call(this,i,s),this._overwriteprops=r||[]},t.global===!0),o=a.prototype=new te(i);o.constructor=a,a.api=t.api;for(e in n)"function"==typeof t[e]&&(o[n[e]]=t[e]);return a.version=t.version,te.activate([a]),a},s=t._gsqueue){for(r=0;s.length>r;r++)s[r]();for(n in m)m[n].func||t.console.log("gsap encountered missing dependency: com.greensock."+n)}o=!1}})("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"tweenlite"); /*! * version: 1.18.0 * date: 2015-08-29 * updates and docs at: http://greensock.com * * @license copyright (c) 2008-2015, 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("timelinelite",["core.animation","core.simpletimeline","tweenlite"],function(t,e,i){var s=function(t){e.call(this,t),this._labels={},this.autoremovechildren=this.vars.autoremovechildren===!0,this.smoothchildtiming=this.vars.smoothchildtiming===!0,this._sortchildren=!0,this._onupdate=this.vars.onupdate;var i,s,r=this.vars;for(s in r)i=r[s],l(i)&&-1!==i.join("").indexof("{self}")&&(r[s]=this._swapselfinparams(i));l(r.tweens)&&this.add(r.tweens,0,r.align,r.stagger)},r=1e-10,n=i._internals,a=s._internals={},o=n.isselector,l=n.isarray,h=n.lazytweens,_=n.lazyrender,u=_gsscope._gsdefine.globals,f=function(t){var e,i={};for(e in t)i[e]=t[e];return i},c=function(t,e,i){var s,r,n=t.cycle;for(s in n)r=n[s],t[s]="function"==typeof r?r.call(e[i],i):r[i%r.length];delete t.cycle},p=a.pausecallback=function(){},m=function(t){var e,i=[],s=t.length;for(e=0;e!==s;i.push(t[e++]));return i},d=s.prototype=new e;return s.version="1.18.0",d.constructor=s,d.kill()._gc=d._forcingplayhead=d._haspause=!1,d.to=function(t,e,s,r){var n=s.repeat&&u.tweenmax||i;return e?this.add(new n(t,e,s),r):this.set(t,s,r)},d.from=function(t,e,s,r){return this.add((s.repeat&&u.tweenmax||i).from(t,e,s),r)},d.fromto=function(t,e,s,r,n){var a=r.repeat&&u.tweenmax||i;return e?this.add(a.fromto(t,e,s,r),n):this.set(t,r,n)},d.staggerto=function(t,e,r,n,a,l,h,_){var u,p,d=new s({oncomplete:l,oncompleteparams:h,callbackscope:_,smoothchildtiming:this.smoothchildtiming}),g=r.cycle;for("string"==typeof t&&(t=i.selector(t)||t),t=t||[],o(t)&&(t=m(t)),n=n||0,0>n&&(t=m(t),t.reverse(),n*=-1),p=0;t.length>p;p++)u=f(r),u.startat&&(u.startat=f(u.startat),u.startat.cycle&&c(u.startat,t,p)),g&&c(u,t,p),d.to(t[p],e,u,p*n);return this.add(d,a)},d.staggerfrom=function(t,e,i,s,r,n,a,o){return i.immediaterender=0!=i.immediaterender,i.runbackwards=!0,this.staggerto(t,e,i,s,r,n,a,o)},d.staggerfromto=function(t,e,i,s,r,n,a,o,l){return s.startat=i,s.immediaterender=0!=s.immediaterender&&0!=i.immediaterender,this.staggerto(t,e,s,r,n,a,o,l)},d.call=function(t,e,s,r){return this.add(i.delayedcall(0,t,e,s),r)},d.set=function(t,e,s){return s=this._parsetimeorlabel(s,0,!0),null==e.immediaterender&&(e.immediaterender=s===this._time&&!this._paused),this.add(new i(t,0,e),s)},s.exportroot=function(t,e){t=t||{},null==t.smoothchildtiming&&(t.smoothchildtiming=!0);var r,n,a=new s(t),o=a._timeline;for(null==e&&(e=!0),o._remove(a,!0),a._starttime=0,a._rawprevtime=a._time=a._totaltime=o._time,r=o._first;r;)n=r._next,e&&r instanceof i&&r.target===r.vars.oncomplete||a.add(r,r._starttime-r._delay),r=n;return o.add(a,0),a},d.add=function(r,n,a,o){var h,_,u,f,c,p;if("number"!=typeof n&&(n=this._parsetimeorlabel(n,0,!0,r)),!(r instanceof t)){if(r instanceof array||r&&r.push&&l(r)){for(a=a||"normal",o=o||0,h=n,_=r.length,u=0;_>u;u++)l(f=r[u])&&(f=new s({tweens:f})),this.add(f,h),"string"!=typeof f&&"function"!=typeof f&&("sequence"===a?h=f._starttime+f.totalduration()/f._timescale:"start"===a&&(f._starttime-=f.delay())),h+=o;return this._uncache(!0)}if("string"==typeof r)return this.addlabel(r,n);if("function"!=typeof r)throw"cannot add "+r+" into the timeline; it is not a tween, timeline, function, or string.";r=i.delayedcall(0,r)}if(e.prototype.add.call(this,r,n),(this._gc||this._time===this._duration)&&!this._paused&&this._durationr._starttime;c._timeline;)p&&c._timeline.smoothchildtiming?c.totaltime(c._totaltime,!0):c._gc&&c._enabled(!0,!1),c=c._timeline;return this},d.remove=function(e){if(e instanceof t){this._remove(e,!1);var i=e._timeline=e.vars.useframes?t._rootframestimeline:t._roottimeline;return e._starttime=(e._paused?e._pausetime:i._time)-(e._reversed?e.totalduration()-e._totaltime:e._totaltime)/e._timescale,this}if(e instanceof array||e&&e.push&&l(e)){for(var s=e.length;--s>-1;)this.remove(e[s]);return this}return"string"==typeof e?this.removelabel(e):this.kill(null,e)},d._remove=function(t,i){e.prototype._remove.call(this,t,i);var s=this._last;return s?this._time>s._starttime+s._totalduration/s._timescale&&(this._time=this.duration(),this._totaltime=this._totalduration):this._time=this._totaltime=this._duration=this._totalduration=0,this},d.append=function(t,e){return this.add(t,this._parsetimeorlabel(null,e,!0,t))},d.insert=d.insertmultiple=function(t,e,i,s){return this.add(t,e||0,i,s)},d.appendmultiple=function(t,e,i,s){return this.add(t,this._parsetimeorlabel(null,e,!0,t),i,s)},d.addlabel=function(t,e){return this._labels[t]=this._parsetimeorlabel(e),this},d.addpause=function(t,e,s,r){var n=i.delayedcall(0,p,s,r||this);return n.vars.oncomplete=n.vars.onreversecomplete=e,n.data="ispause",this._haspause=!0,this.add(n,t)},d.removelabel=function(t){return delete this._labels[t],this},d.getlabeltime=function(t){return null!=this._labels[t]?this._labels[t]:-1},d._parsetimeorlabel=function(e,i,s,r){var n;if(r instanceof t&&r.timeline===this)this.remove(r);else if(r&&(r instanceof array||r.push&&l(r)))for(n=r.length;--n>-1;)r[n]instanceof t&&r[n].timeline===this&&this.remove(r[n]);if("string"==typeof i)return this._parsetimeorlabel(i,s&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,s);if(i=i||0,"string"!=typeof e||!isnan(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(n=e.indexof("="),-1===n)return null==this._labels[e]?s?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseint(e.charat(n-1)+"1",10)*number(e.substr(n+1)),e=n>1?this._parsetimeorlabel(e.substr(0,n-1),0,s):this.duration()}return number(e)+i},d.seek=function(t,e){return this.totaltime("number"==typeof t?t:this._parsetimeorlabel(t),e!==!1)},d.stop=function(){return this.paused(!0)},d.gotoandplay=function(t,e){return this.play(t,e)},d.gotoandstop=function(t,e){return this.pause(t,e)},d.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var s,n,a,o,l,u,f=this._dirty?this.totalduration():this._totalduration,c=this._time,p=this._starttime,m=this._timescale,d=this._paused;if(t>=f)this._totaltime=this._time=f,this._reversed||this._haspausedchild()||(n=!0,o="oncomplete",l=!!this._timeline.autoremovechildren,0===this._duration&&(0===t||0>this._rawprevtime||this._rawprevtime===r)&&this._rawprevtime!==t&&this._first&&(l=!0,this._rawprevtime>r&&(o="onreversecomplete"))),this._rawprevtime=this._duration||!e||t||this._rawprevtime===t?t:r,t=f+1e-4;else if(1e-7>t)if(this._totaltime=this._time=0,(0!==c||0===this._duration&&this._rawprevtime!==r&&(this._rawprevtime>0||0>t&&this._rawprevtime>=0))&&(o="onreversecomplete",n=this._reversed),0>t)this._active=!1,this._timeline.autoremovechildren&&this._reversed?(l=n=!0,o="onreversecomplete"):this._rawprevtime>=0&&this._first&&(l=!0),this._rawprevtime=t;else{if(this._rawprevtime=this._duration||!e||t||this._rawprevtime===t?t:r,0===t&&n)for(s=this._first;s&&0===s._starttime;)s._duration||(n=!1),s=s._next;t=0,this._initted||(l=!0)}else{if(this._haspause&&!this._forcingplayhead&&!e){if(t>=c)for(s=this._first;s&&t>=s._starttime&&!u;)s._duration||"ispause"!==s.data||s.ratio||0===s._starttime&&0===this._rawprevtime||(u=s),s=s._next;else for(s=this._last;s&&s._starttime>=t&&!u;)s._duration||"ispause"===s.data&&s._rawprevtime>0&&(u=s),s=s._prev;u&&(this._time=t=u._starttime,this._totaltime=t+this._cycle*(this._totalduration+this._repeatdelay))}this._totaltime=this._time=this._rawprevtime=t}if(this._time!==c&&this._first||i||l||u){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==c&&t>0&&(this._active=!0),0===c&&this.vars.onstart&&0!==this._time&&(e||this._callback("onstart")),this._time>=c)for(s=this._first;s&&(a=s._next,!this._paused||d);)(s._active||s._starttime<=this._time&&!s._paused&&!s._gc)&&(u===s&&this.pause(),s._reversed?s.render((s._dirty?s.totalduration():s._totalduration)-(t-s._starttime)*s._timescale,e,i):s.render((t-s._starttime)*s._timescale,e,i)),s=a;else for(s=this._last;s&&(a=s._prev,!this._paused||d);){if(s._active||c>=s._starttime&&!s._paused&&!s._gc){if(u===s){for(u=s._prev;u&&u.endtime()>this._time;)u.render(u._reversed?u.totalduration()-(t-u._starttime)*u._timescale:(t-u._starttime)*u._timescale,e,i),u=u._prev;u=null,this.pause()}s._reversed?s.render((s._dirty?s.totalduration():s._totalduration)-(t-s._starttime)*s._timescale,e,i):s.render((t-s._starttime)*s._timescale,e,i)}s=a}this._onupdate&&(e||(h.length&&_(),this._callback("onupdate"))),o&&(this._gc||(p===this._starttime||m!==this._timescale)&&(0===this._time||f>=this.totalduration())&&(n&&(h.length&&_(),this._timeline.autoremovechildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o)))}},d._haspausedchild=function(){for(var t=this._first;t;){if(t._paused||t instanceof s&&t._haspausedchild())return!0;t=t._next}return!1},d.getchildren=function(t,e,s,r){r=r||-9999999999;for(var n=[],a=this._first,o=0;a;)r>a._starttime||(a instanceof i?e!==!1&&(n[o++]=a):(s!==!1&&(n[o++]=a),t!==!1&&(n=n.concat(a.getchildren(!0,e,s)),o=n.length))),a=a._next;return n},d.gettweensof=function(t,e){var s,r,n=this._gc,a=[],o=0;for(n&&this._enabled(!0,!0),s=i.gettweensof(t),r=s.length;--r>-1;)(s[r].timeline===this||e&&this._contains(s[r]))&&(a[o++]=s[r]);return n&&this._enabled(!1,!0),a},d.recent=function(){return this._recent},d._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},d.shiftchildren=function(t,e,i){i=i||0;for(var s,r=this._first,n=this._labels;r;)r._starttime>=i&&(r._starttime+=t),r=r._next;if(e)for(s in n)n[s]>=i&&(n[s]+=t);return this._uncache(!0)},d._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.gettweensof(e):this.getchildren(!0,!0,!1),s=i.length,r=!1;--s>-1;)i[s]._kill(t,e)&&(r=!0);return r},d.clear=function(t){var e=this.getchildren(!1,!0,!0),i=e.length;for(this._time=this._totaltime=0;--i>-1;)e[i]._enabled(!1,!1);return t!==!1&&(this._labels={}),this._uncache(!0)},d.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},d._enabled=function(t,i){if(t===this._gc)for(var s=this._first;s;)s._enabled(t,!0),s=s._next;return e.prototype._enabled.call(this,t,i)},d.totaltime=function(){this._forcingplayhead=!0;var e=t.prototype.totaltime.apply(this,arguments);return this._forcingplayhead=!1,e},d.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timescale(this._duration/t),this):(this._dirty&&this.totalduration(),this._duration)},d.totalduration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,s=0,r=this._last,n=999999999999;r;)e=r._prev,r._dirty&&r.totalduration(),r._starttime>n&&this._sortchildren&&!r._paused?this.add(r,r._starttime-r._delay):n=r._starttime,0>r._starttime&&!r._paused&&(s-=r._starttime,this._timeline.smoothchildtiming&&(this._starttime+=r._starttime/this._timescale),this.shiftchildren(-r._starttime,!1,-9999999999),n=0),i=r._starttime+r._totalduration/r._timescale,i>s&&(s=i),r=e;this._duration=this._totalduration=s,this._dirty=!1}return this._totalduration}return 0!==this.totalduration()&&0!==t&&this.timescale(this._totalduration/t),this},d.paused=function(e){if(!e)for(var i=this._first,s=this._time;i;)i._starttime===s&&"ispause"===i.data&&(i._rawprevtime=0),i=i._next;return t.prototype.paused.apply(this,arguments)},d.usesframes=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootframestimeline},d.rawtime=function(){return this._paused?this._totaltime:(this._timeline.rawtime()-this._starttime)*this._timescale},s},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(),function(t){"use strict";var e=function(){return(_gsscope.greensockglobals||_gsscope)[t]};"function"==typeof define&&define.amd?define(["tweenlite"],e):"undefined"!=typeof module&&module.exports&&(require("./tweenlite.js"),module.exports=e())}("timelinelite"); /*! * version: beta 1.15.2 * date: 2015-01-27 * updates and docs at: http://greensock.com * * @license copyright (c) 2008-2015, 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("easing.back",["easing.ease"],function(t){var e,i,s,r=_gsscope.greensockglobals||_gsscope,n=r.com.greensock,a=2*math.pi,o=math.pi/2,h=n._class,l=function(e,i){var s=h("easing."+e,function(){},!0),r=s.prototype=new t;return r.constructor=s,r.getratio=i,s},_=t.register||function(){},u=function(t,e,i,s){var r=h("easing."+t,{easeout:new e,easein:new i,easeinout:new s},!0);return _(r,t),r},c=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},f=function(e,i){var s=h("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=s.prototype=new t;return r.constructor=s,r.getratio=i,r.config=function(t){return new s(t)},s},p=u("back",f("backout",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),f("backin",function(t){return t*t*((this._p1+1)*t-this._p1)}),f("backinout",function(t){return 1>(t*=2)?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=h("easing.slowmo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcend=i===!0},!0),d=m.prototype=new t;return d.constructor=m,d.getratio=function(t){var e=t+(.5-t)*this._p;return this._p1>t?this._calcend?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcend?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcend?1:e},m.ease=new m(.7,.7),d.config=m.config=function(t,e,i){return new m(t,e,i)},e=h("easing.steppedease",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),d=e.prototype=new t,d.constructor=e,d.getratio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},d.config=e.config=function(t){return new e(t)},i=h("easing.roughease",function(e){e=e||{};for(var i,s,r,n,a,o,h=e.taper||"none",l=[],_=0,u=0|(e.points||20),f=u,p=e.randomize!==!1,m=e.clamp===!0,d=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--f>-1;)i=p?math.random():1/u*f,s=d?d.getratio(i):i,"none"===h?r=g:"out"===h?(n=1-i,r=n*n*g):"in"===h?r=i*i*g:.5>i?(n=2*i,r=.5*n*n*g):(n=2*(1-i),r=.5*n*n*g),p?s+=math.random()*r-.5*r:f%2?s+=.5*r:s-=.5*r,m&&(s>1?s=1:0>s&&(s=0)),l[_++]={x:i,y:s};for(l.sort(function(t,e){return t.x-e.x}),o=new c(1,1,null),f=u;--f>-1;)a=l[f],o=new c(a.x,a.y,o);this._prev=new c(0,0,0!==o.t?o:o.next)},!0),d=i.prototype=new t,d.constructor=i,d.getratio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&e.t>=t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},d.config=function(t){return new i(t)},i.ease=new i,u("bounce",l("bounceout",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),l("bouncein",function(t){return 1/2.75>(t=1-t)?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),l("bounceinout",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),u("circ",l("circout",function(t){return math.sqrt(1-(t-=1)*t)}),l("circin",function(t){return-(math.sqrt(1-t*t)-1)}),l("circinout",function(t){return 1>(t*=2)?-.5*(math.sqrt(1-t*t)-1):.5*(math.sqrt(1-(t-=2)*t)+1)})),s=function(e,i,s){var r=h("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||s)/(1>t?t:1),this._p3=this._p2/a*(math.asin(1/this._p1)||0),this._p2=a/this._p2},!0),n=r.prototype=new t;return n.constructor=r,n.getratio=i,n.config=function(t,e){return new r(t,e)},r},u("elastic",s("elasticout",function(t){return this._p1*math.pow(2,-10*t)*math.sin((t-this._p3)*this._p2)+1},.3),s("elasticin",function(t){return-(this._p1*math.pow(2,10*(t-=1))*math.sin((t-this._p3)*this._p2))},.3),s("elasticinout",function(t){return 1>(t*=2)?-.5*this._p1*math.pow(2,10*(t-=1))*math.sin((t-this._p3)*this._p2):.5*this._p1*math.pow(2,-10*(t-=1))*math.sin((t-this._p3)*this._p2)+1},.45)),u("expo",l("expoout",function(t){return 1-math.pow(2,-10*t)}),l("expoin",function(t){return math.pow(2,10*(t-1))-.001}),l("expoinout",function(t){return 1>(t*=2)?.5*math.pow(2,10*(t-1)):.5*(2-math.pow(2,-10*(t-1)))})),u("sine",l("sineout",function(t){return math.sin(t*o)}),l("sinein",function(t){return-math.cos(t*o)+1}),l("sineinout",function(t){return-.5*(math.cos(math.pi*t)-1)})),h("easing.easelookup",{find:function(e){return t.map[e]}},!0),_(r.slowmo,"slowmo","ease,"),_(i,"roughease","ease,"),_(e,"steppedease","ease,"),p},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(); /*! * version: 1.18.0 * date: 2015-09-05 * updates and docs at: http://greensock.com * * @license copyright (c) 2008-2015, 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("plugins.cssplugin",["plugins.tweenplugin","tweenlite"],function(t,e){var i,r,s,n,a=function(){t.call(this,"css"),this._overwriteprops.length=0,this.setratio=a.prototype.setratio},o=_gsscope._gsdefine.globals,l={},h=a.prototype=new t("css");h.constructor=a,a.version="1.18.0",a.api=2,a.defaulttransformperspective=0,a.defaultskewtype="compensated",a.defaultsmoothorigin=!0,h="px",a.suffixmap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontsize:h,padding:h,margin:h,perspective:h,lineheight:""};var u,f,c,_,p,d,m=/(?:\d|\-\d|\.\d|\-\.\d)+/g,g=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,v=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-za-z0-9]*(?:%|\b)/gi,y=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,x=/(?:\d|\-|\+|=|#|\.)*/g,t=/opacity *= *([^)]*)/i,w=/opacity:([^;]*)/i,b=/alpha\(opacity *=.+?\)/i,p=/^(rgb|hsl)/,s=/([a-z])/g,o=/-([a-z])/gi,c=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,k=function(t,e){return e.touppercase()},r=/(?:left|right|width)/i,a=/(m11|m12|m21|m22)=[\d\-\.e]+/gi,m=/progid\:dximagetransform\.microsoft\.matrix\(.+?\)/i,d=/,(?=[^\)]*(?:\(|$))/gi,l=math.pi/180,n=180/math.pi,f={},x=document,z=function(t){return x.createelementns?x.createelementns("http://www.w3.org/1999/xhtml",t):x.createelement(t)},b=z("div"),i=z("img"),e=a._internals={_specialprops:l},y=navigator.useragent,w=function(){var t=y.indexof("android"),e=z("a");return c=-1!==y.indexof("safari")&&-1===y.indexof("chrome")&&(-1===t||number(y.substr(t+8,1))>3),p=c&&6>number(y.substr(y.indexof("version/")+8,1)),_=-1!==y.indexof("firefox"),(/msie ([0-9]{1,}[\.0-9]{0,})/.exec(y)||/trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(y))&&(d=parsefloat(regexp.$1)),e?(e.style.csstext="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity)):!1}(),v=function(t){return t.test("string"==typeof t?t:(t.currentstyle?t.currentstyle.filter:t.style.filter)||"")?parsefloat(regexp.$1)/100:1},j=function(t){window.console&&console.log(t)},g="",u="",q=function(t,e){e=e||b;var i,r,s=e.style;if(void 0!==s[t])return t;for(t=t.charat(0).touppercase()+t.substr(1),i=["o","moz","ms","ms","webkit"],r=5;--r>-1&&void 0===s[i[r]+t];);return r>=0?(u=3===r?"ms":i[r],g="-"+u.tolowercase()+"-",u+t):null},h=x.defaultview?x.defaultview.getcomputedstyle:function(){},q=a.getstyle=function(t,e,i,r,s){var n;return w||"opacity"!==e?(!r&&t.style[e]?n=t.style[e]:(i=i||h(t))?n=i[e]||i.getpropertyvalue(e)||i.getpropertyvalue(e.replace(s,"-$1").tolowercase()):t.currentstyle&&(n=t.currentstyle[e]),null==s||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:s):v(t)},z=e.converttopixels=function(t,i,r,s,n){if("px"===s||!s)return r;if("auto"===s||!r)return 0;var o,l,h,u=r.test(i),f=t,c=b.style,_=0>r;if(_&&(r=-r),"%"===s&&-1!==i.indexof("border"))o=r/100*(u?t.clientwidth:t.clientheight);else{if(c.csstext="border:0 solid red;position:"+q(t,"position")+";line-height:0;","%"!==s&&f.appendchild&&"v"!==s.charat(0)&&"rem"!==s)c[u?"borderleftwidth":"bordertopwidth"]=r+s;else{if(f=t.parentnode||x.body,l=f._gscache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*r/100;c[u?"width":"height"]=r+s}f.appendchild(b),o=parsefloat(b[u?"offsetwidth":"offsetheight"]),f.removechild(b),u&&"%"===s&&a.cachewidths!==!1&&(l=f._gscache=f._gscache||{},l.time=h,l.width=100*(o/r)),0!==o||n||(o=z(t,i,r,s,!0))}return _?-o:o},$=e.calculateoffset=function(t,e,i){if("absolute"!==q(t,"position",i))return 0;var r="left"===e?"left":"top",s=q(t,"margin"+r,i);return t["offset"+r]-(z(t,e,parsefloat(s),s.replace(x,""))||0)},k=function(t,e){var i,r,s,n={};if(e=e||h(t,null))if(i=e.length)for(;--i>-1;)s=e[i],(-1===s.indexof("-transform")||se===s)&&(n[s.replace(o,k)]=e.getpropertyvalue(s));else for(i in e)(-1===i.indexof("transform")||pe===i)&&(n[i]=e[i]);else if(e=t.currentstyle||t.style)for(i in e)"string"==typeof i&&void 0===n[i]&&(n[i.replace(o,k)]=e[i]);return w||(n.opacity=v(t)),r=ze(t,e,!1),n.rotation=r.rotation,n.skewx=r.skewx,n.scalex=r.scalex,n.scaley=r.scaley,n.x=r.x,n.y=r.y,ce&&(n.z=r.z,n.rotationx=r.rotationx,n.rotationy=r.rotationy,n.scalez=r.scalez),n.filters&&delete n.filters,n},j=function(t,e,i,r,s){var n,a,o,l={},h=t.style;for(a in i)"csstext"!==a&&"length"!==a&&isnan(a)&&(e[a]!==(n=i[a])||s&&s[a])&&-1===a.indexof("origin")&&("number"==typeof n||"string"==typeof n)&&(l[a]="auto"!==n||"left"!==a&&"top"!==a?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof e[a]||""===e[a].replace(y,"")?n:0:$(t,a),void 0!==h[a]&&(o=new pe(h,a,h[a],o)));if(r)for(a in r)"classname"!==a&&(l[a]=r[a]);return{difs:l,firstmpt:o}},te={width:["left","right"],height:["top","bottom"]},ee=["marginleft","marginright","margintop","marginbottom"],ie=function(t,e,i){var r=parsefloat("width"===e?t.offsetwidth:t.offsetheight),s=te[e],n=s.length;for(i=i||h(t,null);--n>-1;)r-=parsefloat(q(t,"padding"+s[n],i,!0))||0,r-=parsefloat(q(t,"border"+s[n]+"width",i,!0))||0;return r},re=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";(null==t||""===t)&&(t="0 0");var i=t.split(" "),r=-1!==t.indexof("left")?"0%":-1!==t.indexof("right")?"100%":i[0],s=-1!==t.indexof("top")?"0%":-1!==t.indexof("bottom")?"100%":i[1];return null==s?s="center"===r?"50%":"0":"center"===s&&(s="50%"),("center"===r||isnan(parsefloat(r))&&-1===(r+"").indexof("="))&&(r="50%"),t=r+" "+s+(i.length>2?" "+i[2]:""),e&&(e.oxp=-1!==r.indexof("%"),e.oyp=-1!==s.indexof("%"),e.oxr="="===r.charat(1),e.oyr="="===s.charat(1),e.ox=parsefloat(r.replace(y,"")),e.oy=parsefloat(s.replace(y,"")),e.v=t),e||t},se=function(t,e){return"string"==typeof t&&"="===t.charat(1)?parseint(t.charat(0)+"1",10)*parsefloat(t.substr(2)):parsefloat(t)-parsefloat(e)},ne=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charat(1)?parseint(t.charat(0)+"1",10)*parsefloat(t.substr(2))+e:parsefloat(t)},ae=function(t,e,i,r){var s,n,a,o,l,h=1e-6;return null==t?o=e:"number"==typeof t?o=t:(s=360,n=t.split("_"),l="="===t.charat(1),a=(l?parseint(t.charat(0)+"1",10)*parsefloat(n[0].substr(2)):parsefloat(n[0]))*(-1===t.indexof("rad")?1:n)-(l?0:e),n.length&&(r&&(r[i]=e+a),-1!==t.indexof("short")&&(a%=s,a!==a%(s/2)&&(a=0>a?a+s:a-s)),-1!==t.indexof("_cw")&&0>a?a=(a+9999999999*s)%s-(0|a/s)*s:-1!==t.indexof("ccw")&&a>0&&(a=(a-9999999999*s)%s-(0|a/s)*s)),o=e+a),h>o&&o>-h&&(o=0),o},oe={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]},le=function(t,e,i){return t=0>t?t+1:t>1?t-1:t,0|255*(1>6*t?e+6*(i-e)*t:.5>t?i:2>3*t?e+6*(i-e)*(2/3-t):e)+.5},he=a.parsecolor=function(t,e){var i,r,s,n,a,o,l,h,u,f,c;if(t)if("number"==typeof t)i=[t>>16,255&t>>8,255&t];else{if(","===t.charat(t.length-1)&&(t=t.substr(0,t.length-1)),oe[t])i=oe[t];else if("#"===t.charat(0))4===t.length&&(r=t.charat(1),s=t.charat(2),n=t.charat(3),t="#"+r+r+s+s+n+n),t=parseint(t.substr(1),16),i=[t>>16,255&t>>8,255&t];else if("hsl"===t.substr(0,3))if(i=c=t.match(m),e){if(-1!==t.indexof("="))return t.match(g)}else a=number(i[0])%360/360,o=number(i[1])/100,l=number(i[2])/100,s=.5>=l?l*(o+1):l+o-l*o,r=2*l-s,i.length>3&&(i[3]=number(t[3])),i[0]=le(a+1/3,r,s),i[1]=le(a,r,s),i[2]=le(a-1/3,r,s);else i=t.match(m)||oe.transparent;i[0]=number(i[0]),i[1]=number(i[1]),i[2]=number(i[2]),i.length>3&&(i[3]=number(i[3]))}else i=oe.black;return e&&!c&&(r=i[0]/255,s=i[1]/255,n=i[2]/255,h=math.max(r,s,n),u=math.min(r,s,n),l=(h+u)/2,h===u?a=o=0:(f=h-u,o=l>.5?f/(2-h-u):f/(h+u),a=h===r?(s-n)/f+(n>s?6:0):h===s?(n-r)/f+2:(r-s)/f+4,a*=60),i[0]=0|a+.5,i[1]=0|100*o+.5,i[2]=0|100*l+.5),i},ue=function(t,e){var i,r,s,n=t.match(fe)||[],a=0,o=n.length?"":t;for(i=0;n.length>i;i++)r=n[i],s=t.substr(a,t.indexof(r,a)-a),a+=s.length+r.length,r=he(r,e),3===r.length&&r.push(1),o+=s+(e?"hsla("+r[0]+","+r[1]+"%,"+r[2]+"%,"+r[3]:"rgba("+r.join(","))+")";return o},fe="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\b#.+?\\b";for(h in oe)fe+="|"+h+"\\b";fe=regexp(fe+")","gi"),a.colorstringfilter=function(t){var e,i=t[0]+t[1];fe.lastindex=0,fe.test(i)&&(e=-1!==i.indexof("hsl(")||-1!==i.indexof("hsla("),t[0]=ue(t[0],e),t[1]=ue(t[1],e))},e.defaultstringfilter||(e.defaultstringfilter=a.colorstringfilter);var ce=function(t,e,i,r){if(null==t)return function(t){return t};var s,n=e?(t.match(fe)||[""])[0]:"",a=t.split(n).join("").match(v)||[],o=t.substr(0,t.indexof(a[0])),l=")"===t.charat(t.length-1)?")":"",h=-1!==t.indexof(" ")?" ":",",u=a.length,f=u>0?a[0].replace(m,""):"";return u?s=e?function(t){var e,c,_,p;if("number"==typeof t)t+=f;else if(r&&d.test(t)){for(p=t.replace(d,"|").split("|"),_=0;p.length>_;_++)p[_]=s(p[_]);return p.join(",")}if(e=(t.match(fe)||[n])[0],c=t.split(e).join("").match(v)||[],_=c.length,u>_--)for(;u>++_;)c[_]=i?c[0|(_-1)/2]:a[_];return o+c.join(h)+h+e+l+(-1!==t.indexof("inset")?" inset":"")}:function(t){var e,n,c;if("number"==typeof t)t+=f;else if(r&&d.test(t)){for(n=t.replace(d,"|").split("|"),c=0;n.length>c;c++)n[c]=s(n[c]);return n.join(",")}if(e=t.match(v)||[],c=e.length,u>c--)for(;u>++c;)e[c]=i?e[0|(c-1)/2]:a[c];return o+e.join(h)+l}:function(t){return t}},_e=function(t){return t=t.split(","),function(e,i,r,s,n,a,o){var l,h=(i+"").split(" ");for(o={},l=0;4>l;l++)o[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return s.parse(e,o,n,a)}},pe=(e._setpluginratio=function(t){this.plugin.setratio(t);for(var e,i,r,s,n=this.data,a=n.proxy,o=n.firstmpt,l=1e-6;o;)e=a[o.v],o.r?e=math.round(e):l>e&&e>-l&&(e=0),o.t[o.p]=e,o=o._next;if(n.autorotate&&(n.autorotate.rotation=a.rotation),1===t)for(o=n.firstmpt;o;){if(i=o.t,i.type){if(1===i.type){for(s=i.xs0+i.s+i.xs1,r=1;i.l>r;r++)s+=i["xn"+r]+i["xs"+(r+1)];i.e=s}}else i.e=i.s+i.xs0;o=o._next}},function(t,e,i,r,s){this.t=t,this.p=e,this.v=i,this.r=s,r&&(r._prev=this,this._next=r)}),de=(e._parsetoproxy=function(t,e,i,r,s,n){var a,o,l,h,u,f=r,c={},_={},p=i._transform,d=f;for(i._transform=null,f=e,r=u=i.parse(t,e,r,s),f=d,n&&(i._transform=p,f&&(f._prev=null,f._prev&&(f._prev._next=null)));r&&r!==f;){if(1>=r.type&&(o=r.p,_[o]=r.s+r.c,c[o]=r.s,n||(h=new pe(r,"s",o,h,r.r),r.c=0),1===r.type))for(a=r.l;--a>0;)l="xn"+a,o=r.p+"_"+l,_[o]=r.data[l],c[o]=r[l],n||(h=new pe(r,l,o,h,r.rxp[l]));r=r._next}return{proxy:c,end:_,firstmpt:h,pt:u}},e.cssproptween=function(t,e,r,s,a,o,l,h,u,f,c){this.t=t,this.p=e,this.s=r,this.c=s,this.n=l||e,t instanceof de||n.push(this.n),this.r=h,this.type=o||0,u&&(this.pr=u,i=!0),this.b=void 0===f?r:f,this.e=void 0===c?r+s:c,a&&(this._next=a,a._prev=this)}),me=function(t,e,i,r,s,n){var a=new de(t,e,i,r-i,s,-1,n);return a.b=i,a.e=a.xs0=r,a},ge=a.parsecomplex=function(t,e,i,r,s,n,a,o,l,h){i=i||n||"",a=new de(t,e,0,0,a,h?2:1,null,!1,o,i,r),r+="";var f,c,_,p,d,v,y,x,t,w,b,p,s,o=i.split(", ").join(",").split(" "),c=r.split(", ").join(",").split(" "),k=o.length,r=u!==!1;for((-1!==r.indexof(",")||-1!==i.indexof(","))&&(o=o.join(" ").replace(d,", ").split(" "),c=c.join(" ").replace(d,", ").split(" "),k=o.length),k!==c.length&&(o=(n||"").split(" "),k=o.length),a.plugin=l,a.setratio=h,fe.lastindex=0,f=0;k>f;f++)if(p=o[f],d=c[f],x=parsefloat(p),x||0===x)a.appendxtra("",x,se(d,x),d.replace(g,""),r&&-1!==d.indexof("px"),!0);else if(s&&fe.test(p))p=","===d.charat(d.length-1)?"),":")",s=-1!==d.indexof("hsl")&&w,p=he(p,s),d=he(d,s),t=p.length+d.length>6,t&&!w&&0===d[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(c[f]).join("transparent")):(w||(t=!1),s?a.appendxtra(t?"hsla(":"hsl(",p[0],se(d[0],p[0]),",",!1,!0).appendxtra("",p[1],se(d[1],p[1]),"%,",!1).appendxtra("",p[2],se(d[2],p[2]),t?"%,":"%"+p,!1):a.appendxtra(t?"rgba(":"rgb(",p[0],d[0]-p[0],",",!0,!0).appendxtra("",p[1],d[1]-p[1],",",!0).appendxtra("",p[2],d[2]-p[2],t?",":p,!0),t&&(p=4>p.length?1:p[3],a.appendxtra("",p,(4>d.length?1:d[3])-p,p,!1))),fe.lastindex=0;else if(v=p.match(m)){if(y=d.match(g),!y||y.length!==v.length)return a;for(_=0,c=0;v.length>c;c++)b=v[c],w=p.indexof(b,_),a.appendxtra(p.substr(_,w-_),number(b),se(y[c],b),"",r&&"px"===p.substr(w+b.length,2),0===c),_=w+b.length;a["xs"+a.l]+=p.substr(_)}else a["xs"+a.l]+=a.l?" "+p:p;if(-1!==r.indexof("=")&&a.data){for(p=a.xs0+a.data.s,f=1;a.l>f;f++)p+=a["xs"+f]+a.data["xn"+f];a.e=p+a["xs"+f]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},ve=9;for(h=de.prototype,h.l=h.pr=0;--ve>0;)h["xn"+ve]=0,h["xs"+ve]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setratio=h.rxp=null,h.appendxtra=function(t,e,i,r,s,n){var a=this,o=a.l;return a["xs"+o]+=n&&o?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setratio?2:1,a["xs"+a.l]=r||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=s,a["xn"+o]=e,a.plugin||(a.xfirst=new de(a,"xn"+o,e,i,a.xfirst||a,0,a.n,s,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=s,a)):(a["xs"+o]+=e+(r||""),a)};var ye=function(t,e){e=e||{},this.p=e.prefix?q(t)||t:t,l[t]=l[this.p]=this,this.format=e.formatter||ce(e.defaultvalue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultvalue,this.pr=e.priority||0},xe=e._registercomplexspecialprop=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,s,n=t.split(","),a=e.defaultvalue;for(i=i||[a],r=0;n.length>r;r++)e.prefix=0===r&&e.prefix,e.defaultvalue=i[r]||a,s=new ye(n[r],e)},te=function(t){if(!l[t]){var e=t.charat(0).touppercase()+t.substr(1)+"plugin";xe(t,{parser:function(t,i,r,s,n,a,h){var u=o.com.greensock.plugins[e];return u?(u._cssregister(),l[r].parse(t,i,r,s,n,a,h)):(j("error: "+e+" js file not loaded."),n)}})}};h=ye.prototype,h.parsecomplex=function(t,e,i,r,s,n){var a,o,l,h,u,f,c=this.keyword;if(this.multi&&(d.test(i)||d.test(e)?(o=e.replace(d,"|").split("|"),l=i.replace(d,"|").split("|")):c&&(o=[e],l=[i])),l){for(h=l.length>o.length?l.length:o.length,a=0;h>a;a++)e=o[a]=o[a]||this.dflt,i=l[a]=l[a]||this.dflt,c&&(u=e.indexof(c),f=i.indexof(c),u!==f&&(-1===f?o[a]=o[a].split(c).join(""):-1===u&&(o[a]+=" "+c)));e=o.join(", "),i=l.join(", ")}return ge(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,s,n)},h.parse=function(t,e,i,r,n,a){return this.parsecomplex(t.style,this.format(q(t,this.p,s,!1,this.dflt)),this.format(e),n,a)},a.registerspecialprop=function(t,e,i){xe(t,{parser:function(t,r,s,n,a,o){var l=new de(t,s,0,0,a,2,s,!1,i);return l.plugin=o,l.setratio=e(t,r,n._tween,s),l},priority:i})},a.usesvgtransformattr=c||_;var we,be="scalex,scaley,scalez,x,y,z,skewx,skewy,rotation,rotationx,rotationy,perspective,xpercent,ypercent".split(","),pe=q("transform"),se=g+"transform",oe=q("transformorigin"),ce=null!==q("perspective"),ke=e.transform=function(){this.perspective=parsefloat(a.defaulttransformperspective)||0,this.force3d=a.defaultforce3d!==!1&&ce?a.defaultforce3d||"auto":!1},re=window.svgelement,ae=function(t,e,i){var r,s=x.createelementns("http://www.w3.org/2000/svg",t),n=/([a-z])([a-z])/g;for(r in i)s.setattributens(null,r.replace(n,"$1-$2").tolowercase(),i[r]);return e.appendchild(s),s},me=x.documentelement,de=function(){var t,e,i,r=d||/android/i.test(y)&&!window.chrome;return x.createelementns&&!r&&(t=ae("svg",me),e=ae("rect",t,{width:100,height:50,x:100}),i=e.getboundingclientrect().width,e.style[oe]="50% 50%",e.style[pe]="scalex(0.5)",r=i===e.getboundingclientrect().width&&!(_&&ce),me.removechild(t)),r}(),le=function(t,e,i,r,s){var n,o,l,h,u,f,c,_,p,d,m,g,v,y,x=t._gstransform,t=xe(t,!0);x&&(v=x.xorigin,y=x.yorigin),(!r||2>(n=r.split(" ")).length)&&(c=t.getbbox(),e=re(e).split(" "),n=[(-1!==e[0].indexof("%")?parsefloat(e[0])/100*c.width:parsefloat(e[0]))+c.x,(-1!==e[1].indexof("%")?parsefloat(e[1])/100*c.height:parsefloat(e[1]))+c.y]),i.xorigin=h=parsefloat(n[0]),i.yorigin=u=parsefloat(n[1]),r&&t!==fe&&(f=t[0],c=t[1],_=t[2],p=t[3],d=t[4],m=t[5],g=f*p-c*_,o=h*(p/g)+u*(-_/g)+(_*m-p*d)/g,l=h*(-c/g)+u*(f/g)-(f*m-c*d)/g,h=i.xorigin=n[0]=o,u=i.yorigin=n[1]=l),x&&(s||s!==!1&&a.defaultsmoothorigin!==!1?(o=h-v,l=u-y,x.xoffset+=o*t[0]+l*t[2]-o,x.yoffset+=o*t[1]+l*t[3]-l):x.xoffset=x.yoffset=0),t.setattribute("data-svg-origin",n.join(" "))},ne=function(t){return!!(re&&"function"==typeof t.getbbox&&t.getctm&&(!t.parentnode||t.parentnode.getbbox&&t.parentnode.getctm))},fe=[1,0,0,1,0,0],xe=function(t,e){var i,r,s,n,a,o=t._gstransform||new ke,l=1e5;if(pe?r=q(t,se,null,!0):t.currentstyle&&(r=t.currentstyle.filter.match(a),r=r&&4===r.length?[r[0].substr(4),number(r[2].substr(4)),number(r[1].substr(4)),r[3].substr(4),o.x||0,o.y||0].join(","):""),i=!r||"none"===r||"matrix(1, 0, 0, 1, 0, 0)"===r,(o.svg||t.getbbox&&ne(t))&&(i&&-1!==(t.style[pe]+"").indexof("matrix")&&(r=t.style[pe],i=0),s=t.getattribute("transform"),i&&s&&(-1!==s.indexof("matrix")?(r=s,i=0):-1!==s.indexof("translate")&&(r="matrix(1,0,0,1,"+s.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",i=0))),i)return fe;for(s=(r||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],ve=s.length;--ve>-1;)n=number(s[ve]),s[ve]=(a=n-(n|=0))?(0|a*l+(0>a?-.5:.5))/l+n:n;return e&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s},ze=e.gettransform=function(t,i,r,n){if(t._gstransform&&r&&!n)return t._gstransform;var o,l,h,u,f,c,_=r?t._gstransform||new ke:new ke,p=0>_.scalex,d=2e-5,m=1e5,g=ce?parsefloat(q(t,oe,i,!1,"0 0 0").split(" ")[2])||_.zorigin||0:0,v=parsefloat(a.defaulttransformperspective)||0;if(_.svg=!(!t.getbbox||!ne(t)),_.svg&&(le(t,q(t,oe,s,!1,"50% 50%")+"",_,t.getattribute("data-svg-origin")),we=a.usesvgtransformattr||de),o=xe(t),o!==fe){if(16===o.length){var y,x,t,w,b,p=o[0],s=o[1],o=o[2],c=o[3],k=o[4],r=o[5],a=o[6],m=o[7],d=o[8],l=o[9],f=o[10],x=o[12],z=o[13],b=o[14],i=o[11],e=math.atan2(a,f);_.zorigin&&(b=-_.zorigin,x=d*b-o[12],z=l*b-o[13],b=f*b+_.zorigin-o[14]),_.rotationx=e*n,e&&(w=math.cos(-e),b=math.sin(-e),y=k*w+d*b,x=r*w+l*b,t=a*w+f*b,d=k*-b+d*w,l=r*-b+l*w,f=a*-b+f*w,i=m*-b+i*w,k=y,r=x,a=t),e=math.atan2(d,f),_.rotationy=e*n,e&&(w=math.cos(-e),b=math.sin(-e),y=p*w-d*b,x=s*w-l*b,t=o*w-f*b,l=s*b+l*w,f=o*b+f*w,i=c*b+i*w,p=y,s=x,o=t),e=math.atan2(s,p),_.rotation=e*n,e&&(w=math.cos(-e),b=math.sin(-e),p=p*w+k*b,x=s*w+r*b,r=s*-b+r*w,a=o*-b+a*w,s=x),_.rotationx&&math.abs(_.rotationx)+math.abs(_.rotation)>359.9&&(_.rotationx=_.rotation=0,_.rotationy+=180),_.scalex=(0|math.sqrt(p*p+s*s)*m+.5)/m,_.scaley=(0|math.sqrt(r*r+l*l)*m+.5)/m,_.scalez=(0|math.sqrt(a*a+f*f)*m+.5)/m,_.skewx=0,_.perspective=i?1/(0>i?-i:i):0,_.x=x,_.y=z,_.z=b,_.svg&&(_.x-=_.xorigin-(_.xorigin*p-_.yorigin*k),_.y-=_.yorigin-(_.yorigin*s-_.xorigin*r))}else if(!(ce&&!n&&o.length&&_.x===o[4]&&_.y===o[5]&&(_.rotationx||_.rotationy)||void 0!==_.x&&"none"===q(t,"display",i))){var y=o.length>=6,w=y?o[0]:1,v=o[1]||0,j=o[2]||0,g=y?o[3]:1;_.x=o[4]||0,_.y=o[5]||0,h=math.sqrt(w*w+v*v),u=math.sqrt(g*g+j*j),f=w||v?math.atan2(v,w)*n:_.rotation||0,c=j||g?math.atan2(j,g)*n+f:_.skewx||0,math.abs(c)>90&&270>math.abs(c)&&(p?(h*=-1,c+=0>=f?180:-180,f+=0>=f?180:-180):(u*=-1,c+=0>=c?180:-180)),_.scalex=h,_.scaley=u,_.rotation=f,_.skewx=c,ce&&(_.rotationx=_.rotationy=_.z=0,_.perspective=v,_.scalez=1),_.svg&&(_.x-=_.xorigin-(_.xorigin*w+_.yorigin*j),_.y-=_.yorigin-(_.xorigin*v+_.yorigin*g))}_.zorigin=g;for(l in _)d>_[l]&&_[l]>-d&&(_[l]=0)}return r&&(t._gstransform=_,_.svg&&(we&&t.style[pe]?e.delayedcall(.001,function(){ye(t.style,pe)}):!we&&t.getattribute("transform")&&e.delayedcall(.001,function(){t.removeattribute("transform")}))),_},be=function(t){var e,i,r=this.data,s=-r.rotation*l,n=s+r.skewx*l,a=1e5,o=(0|math.cos(s)*r.scalex*a)/a,l=(0|math.sin(s)*r.scalex*a)/a,h=(0|math.sin(n)*-r.scaley*a)/a,u=(0|math.cos(n)*r.scaley*a)/a,f=this.t.style,c=this.t.currentstyle;if(c){i=l,l=-h,h=-i,e=c.filter,f.filter="";var _,p,m=this.t.offsetwidth,g=this.t.offsetheight,v="absolute"!==c.position,y="progid:dximagetransform.microsoft.matrix(m11="+o+", m12="+l+", m21="+h+", m22="+u,w=r.x+m*r.xpercent/100,b=r.y+g*r.ypercent/100;if(null!=r.ox&&(_=(r.oxp?.01*m*r.ox:r.ox)-m/2,p=(r.oyp?.01*g*r.oy:r.oy)-g/2,w+=_-(_*o+p*l),b+=p-(_*h+p*u)),v?(_=m/2,p=g/2,y+=", dx="+(_-(_*o+p*l)+w)+", dy="+(p-(_*h+p*u)+b)+")"):y+=", sizingmethod='auto expand')",f.filter=-1!==e.indexof("dximagetransform.microsoft.matrix(")?e.replace(m,y):y+" "+e,(0===t||1===t)&&1===o&&0===l&&0===h&&1===u&&(v&&-1===y.indexof("dx=0, dy=0")||t.test(e)&&100!==parsefloat(regexp.$1)||-1===e.indexof("gradient("&&e.indexof("alpha"))&&f.removeattribute("filter")),!v){var p,s,o,c=8>d?1:-1;for(_=r.ieoffsetx||0,p=r.ieoffsety||0,r.ieoffsetx=math.round((m-((0>o?-o:o)*m+(0>l?-l:l)*g))/2+w),r.ieoffsety=math.round((g-((0>u?-u:u)*g+(0>h?-h:h)*m))/2+b),ve=0;4>ve;ve++)s=ee[ve],p=c[s],i=-1!==p.indexof("px")?parsefloat(p):z(this.t,s,parsefloat(p),p.replace(x,""))||0,o=i!==r[s]?2>ve?-r.ieoffsetx:-r.ieoffsety:2>ve?_-r.ieoffsetx:p-r.ieoffsety,f[s]=(r[s]=math.round(i-o*(0===ve||2===ve?1:c)))+"px"}}},ie=e.set3dtransformratio=e.settransformratio=function(t){var e,i,r,s,n,a,o,l,h,u,f,c,p,d,m,g,v,y,x,t,w,b,p,s=this.data,o=this.t.style,c=s.rotation,k=s.rotationx,r=s.rotationy,a=s.scalex,m=s.scaley,d=s.scalez,n=s.x,f=s.y,x=s.z,z=s.svg,b=s.perspective,i=s.force3d;if(!(((1!==t&&0!==t||"auto"!==i||this.tween._totaltime!==this.tween._totalduration&&this.tween._totaltime)&&i||x||b||r||k)&&(!we||!z)&&ce))return c||s.skewx||z?(c*=l,b=s.skewx*l,p=1e5,e=math.cos(c)*a,s=math.sin(c)*a,i=math.sin(c-b)*-m,n=math.cos(c-b)*m,b&&"simple"===s.skewtype&&(v=math.tan(b),v=math.sqrt(1+v*v),i*=v,n*=v,s.skewy&&(e*=v,s*=v)),z&&(n+=s.xorigin-(s.xorigin*e+s.yorigin*i)+s.xoffset,f+=s.yorigin-(s.xorigin*s+s.yorigin*n)+s.yoffset,we&&(s.xpercent||s.ypercent)&&(d=this.t.getbbox(),n+=.01*s.xpercent*d.width,f+=.01*s.ypercent*d.height),d=1e-6,d>n&&n>-d&&(n=0),d>f&&f>-d&&(f=0)),x=(0|e*p)/p+","+(0|s*p)/p+","+(0|i*p)/p+","+(0|n*p)/p+","+n+","+f+")",z&&we?this.t.setattribute("transform","matrix("+x):o[pe]=(s.xpercent||s.ypercent?"translate("+s.xpercent+"%,"+s.ypercent+"%) matrix(":"matrix(")+x):o[pe]=(s.xpercent||s.ypercent?"translate("+s.xpercent+"%,"+s.ypercent+"%) matrix(":"matrix(")+a+",0,0,"+m+","+n+","+f+")",void 0;if(_&&(d=1e-4,d>a&&a>-d&&(a=d=2e-5),d>m&&m>-d&&(m=d=2e-5),!b||s.z||s.rotationx||s.rotationy||(b=0)),c||s.skewx)c*=l,m=e=math.cos(c),g=s=math.sin(c),s.skewx&&(c-=s.skewx*l,m=math.cos(c),g=math.sin(c),"simple"===s.skewtype&&(v=math.tan(s.skewx*l),v=math.sqrt(1+v*v),m*=v,g*=v,s.skewy&&(e*=v,s*=v))),i=-g,n=m;else{if(!(r||k||1!==d||b||z))return o[pe]=(s.xpercent||s.ypercent?"translate("+s.xpercent+"%,"+s.ypercent+"%) translate3d(":"translate3d(")+n+"px,"+f+"px,"+x+"px)"+(1!==a||1!==m?" scale("+a+","+m+")":""),void 0;e=n=1,i=s=0}h=1,r=a=o=l=u=f=0,c=b?-1/b:0,p=s.zorigin,d=1e-6,t=",",w="0",c=r*l,c&&(m=math.cos(c),g=math.sin(c),o=-g,u=c*-g,r=e*g,a=s*g,h=m,c*=m,e*=m,s*=m),c=k*l,c&&(m=math.cos(c),g=math.sin(c),v=i*m+r*g,y=n*m+a*g,l=h*g,f=c*g,r=i*-g+r*m,a=n*-g+a*m,h*=m,c*=m,i=v,n=y),1!==d&&(r*=d,a*=d,h*=d,c*=d),1!==m&&(i*=m,n*=m,l*=m,f*=m),1!==a&&(e*=a,s*=a,o*=a,u*=a),(p||z)&&(p&&(n+=r*-p,f+=a*-p,x+=h*-p+p),z&&(n+=s.xorigin-(s.xorigin*e+s.yorigin*i)+s.xoffset,f+=s.yorigin-(s.xorigin*s+s.yorigin*n)+s.yoffset),d>n&&n>-d&&(n=w),d>f&&f>-d&&(f=w),d>x&&x>-d&&(x=0)),x=s.xpercent||s.ypercent?"translate("+s.xpercent+"%,"+s.ypercent+"%) matrix3d(":"matrix3d(",x+=(d>e&&e>-d?w:e)+t+(d>s&&s>-d?w:s)+t+(d>o&&o>-d?w:o),x+=t+(d>u&&u>-d?w:u)+t+(d>i&&i>-d?w:i)+t+(d>n&&n>-d?w:n),k||r?(x+=t+(d>l&&l>-d?w:l)+t+(d>f&&f>-d?w:f)+t+(d>r&&r>-d?w:r),x+=t+(d>a&&a>-d?w:a)+t+(d>h&&h>-d?w:h)+t+(d>c&&c>-d?w:c)+t):x+=",0,0,0,0,1,0,",x+=n+t+f+t+x+t+(b?1+-x/b:1)+")",o[pe]=x};h=ke.prototype,h.x=h.y=h.z=h.skewx=h.skewy=h.rotation=h.rotationx=h.rotationy=h.zorigin=h.xpercent=h.ypercent=h.xoffset=h.yoffset=0,h.scalex=h.scaley=h.scalez=1,xe("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(t,e,i,r,n,o,l){if(r._lastparsedtransform===l)return n;r._lastparsedtransform=l;var h,u,f,c,_,p,d,m,g,v,y=t._gstransform,x=t.style,t=1e-6,w=be.length,b=l,p={},s="transformorigin";if(l.display?(c=q(t,"display"),x.display="block",h=ze(t,s,!0,l.parsetransform),x.display=c):h=ze(t,s,!0,l.parsetransform),r._transform=h,"string"==typeof b.transform&&pe)c=b.style,c[pe]=b.transform,c.display="block",c.position="absolute",x.body.appendchild(b),u=ze(b,null,!1),x.body.removechild(b),u.perspective||(u.perspective=h.perspective),null!=b.xpercent&&(u.xpercent=ne(b.xpercent,h.xpercent)),null!=b.ypercent&&(u.ypercent=ne(b.ypercent,h.ypercent));else if("object"==typeof b){if(u={scalex:ne(null!=b.scalex?b.scalex:b.scale,h.scalex),scaley:ne(null!=b.scaley?b.scaley:b.scale,h.scaley),scalez:ne(b.scalez,h.scalez),x:ne(b.x,h.x),y:ne(b.y,h.y),z:ne(b.z,h.z),xpercent:ne(b.xpercent,h.xpercent),ypercent:ne(b.ypercent,h.ypercent),perspective:ne(b.transformperspective,h.perspective)},m=b.directionalrotation,null!=m)if("object"==typeof m)for(c in m)b[c]=m[c];else b.rotation=m;"string"==typeof b.x&&-1!==b.x.indexof("%")&&(u.x=0,u.xpercent=ne(b.x,h.xpercent)),"string"==typeof b.y&&-1!==b.y.indexof("%")&&(u.y=0,u.ypercent=ne(b.y,h.ypercent)),u.rotation=ae("rotation"in b?b.rotation:"shortrotation"in b?b.shortrotation+"_short":"rotationz"in b?b.rotationz:h.rotation,h.rotation,"rotation",p),ce&&(u.rotationx=ae("rotationx"in b?b.rotationx:"shortrotationx"in b?b.shortrotationx+"_short":h.rotationx||0,h.rotationx,"rotationx",p),u.rotationy=ae("rotationy"in b?b.rotationy:"shortrotationy"in b?b.shortrotationy+"_short":h.rotationy||0,h.rotationy,"rotationy",p)),u.skewx=null==b.skewx?h.skewx:ae(b.skewx,h.skewx),u.skewy=null==b.skewy?h.skewy:ae(b.skewy,h.skewy),(f=u.skewy-h.skewy)&&(u.skewx+=f,u.rotation+=f)}for(ce&&null!=b.force3d&&(h.force3d=b.force3d,d=!0),h.skewtype=b.skewtype||h.skewtype||a.defaultskewtype,p=h.force3d||h.z||h.rotationx||h.rotationy||u.z||u.rotationx||u.rotationy||u.perspective,p||null==b.scale||(u.scalez=1);--w>-1;)i=be[w],_=u[i]-h[i],(_>t||-t>_||null!=b[i]||null!=f[i])&&(d=!0,n=new de(h,i,h[i],_,n),i in p&&(n.e=p[i]),n.xs0=0,n.plugin=o,r._overwriteprops.push(n.n));return _=b.transformorigin,h.svg&&(_||b.svgorigin)&&(g=h.xoffset,v=h.yoffset,le(t,re(_),u,b.svgorigin,b.smoothorigin),n=me(h,"xorigin",(y?h:u).xorigin,u.xorigin,n,s),n=me(h,"yorigin",(y?h:u).yorigin,u.yorigin,n,s),(g!==h.xoffset||v!==h.yoffset)&&(n=me(h,"xoffset",y?g:h.xoffset,h.xoffset,n,s),n=me(h,"yoffset",y?v:h.yoffset,h.yoffset,n,s)),_=we?null:"0px 0px"),(_||ce&&p&&h.zorigin)&&(pe?(d=!0,i=oe,_=(_||q(t,i,s,!1,"50% 50%"))+"",n=new de(x,i,0,0,n,-1,s),n.b=x[i],n.plugin=o,ce?(c=h.zorigin,_=_.split(" "),h.zorigin=(_.length>2&&(0===c||"0px"!==_[2])?parsefloat(_[2]):c)||0,n.xs0=n.e=_[0]+" "+(_[1]||"50%")+" 0px",n=new de(h,"zorigin",0,0,n,-1,n.n),n.b=c,n.xs0=n.e=h.zorigin):n.xs0=n.e=_):re(_+"",h)),d&&(r._transformtype=h.svg&&we||!p&&3!==this._transformtype?2:3),n},prefix:!0}),xe("boxshadow",{defaultvalue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),xe("borderradius",{defaultvalue:"0px",parser:function(t,e,i,n,a){e=this.format(e);var o,l,h,u,f,c,_,p,d,m,g,v,y,x,t,w,b=["bordertopleftradius","bordertoprightradius","borderbottomrightradius","borderbottomleftradius"],p=t.style;for(d=parsefloat(t.offsetwidth),m=parsefloat(t.offsetheight),o=e.split(" "),l=0;b.length>l;l++)this.p.indexof("border")&&(b[l]=q(b[l])),f=u=q(t,b[l],s,!1,"0px"),-1!==f.indexof(" ")&&(u=f.split(" "),f=u[0],u=u[1]),c=h=o[l],_=parsefloat(f),v=f.substr((_+"").length),y="="===c.charat(1),y?(p=parseint(c.charat(0)+"1",10),c=c.substr(2),p*=parsefloat(c),g=c.substr((p+"").length-(0>p?1:0))||""):(p=parsefloat(c),g=c.substr((p+"").length)),""===g&&(g=r[i]||v),g!==v&&(x=z(t,"borderleft",_,v),t=z(t,"bordertop",_,v),"%"===g?(f=100*(x/d)+"%",u=100*(t/m)+"%"):"em"===g?(w=z(t,"borderleft",1,"em"),f=x/w+"em",u=t/w+"em"):(f=x+"px",u=t+"px"),y&&(c=parsefloat(f)+p+g,h=parsefloat(u)+p+g)),a=ge(p,b[l],f+" "+u,c+" "+h,!1,"0px",a);return a},prefix:!0,formatter:ce("0px 0px 0px 0px",!1,!0)}),xe("backgroundposition",{defaultvalue:"0 0",parser:function(t,e,i,r,n,a){var o,l,h,u,f,c,_="background-position",p=s||h(t,null),m=this.format((p?d?p.getpropertyvalue(_+"-x")+" "+p.getpropertyvalue(_+"-y"):p.getpropertyvalue(_):t.currentstyle.backgroundpositionx+" "+t.currentstyle.backgroundpositiony)||"0 0"),g=this.format(e);if(-1!==m.indexof("%")!=(-1!==g.indexof("%"))&&(c=q(t,"backgroundimage").replace(c,""),c&&"none"!==c)){for(o=m.split(" "),l=g.split(" "),i.setattribute("src",c),h=2;--h>-1;)m=o[h],u=-1!==m.indexof("%"),u!==(-1!==l[h].indexof("%"))&&(f=0===h?t.offsetwidth-i.width:t.offsetheight-i.height,o[h]=u?parsefloat(m)/100*f+"px":100*(parsefloat(m)/f)+"%");m=o.join(" ")}return this.parsecomplex(t.style,m,g,n,a)},formatter:re}),xe("backgroundsize",{defaultvalue:"0 0",formatter:re}),xe("perspective",{defaultvalue:"0px",prefix:!0}),xe("perspectiveorigin",{defaultvalue:"50% 50%",prefix:!0}),xe("transformstyle",{prefix:!0}),xe("backfacevisibility",{prefix:!0}),xe("userselect",{prefix:!0}),xe("margin",{parser:_e("margintop,marginright,marginbottom,marginleft")}),xe("padding",{parser:_e("paddingtop,paddingright,paddingbottom,paddingleft")}),xe("clip",{defaultvalue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,n,a){var o,l,h;return 9>d?(l=t.currentstyle,h=8>d?" ":",",o="rect("+l.cliptop+h+l.clipright+h+l.clipbottom+h+l.clipleft+")",e=this.format(e).split(",").join(h)):(o=this.format(q(t,this.p,s,!1,this.dflt)),e=this.format(e)),this.parsecomplex(t.style,o,e,n,a)}}),xe("textshadow",{defaultvalue:"0px 0px 0px #999",color:!0,multi:!0}),xe("autoround,strictunits",{parser:function(t,e,i,r,s){return s}}),xe("border",{defaultvalue:"0px solid #000",parser:function(t,e,i,r,n,a){return this.parsecomplex(t.style,this.format(q(t,"bordertopwidth",s,!1,"0px")+" "+q(t,"bordertopstyle",s,!1,"solid")+" "+q(t,"bordertopcolor",s,!1,"#000")),this.format(e),n,a)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(fe)||["#000"])[0]}}),xe("borderwidth",{parser:_e("bordertopwidth,borderrightwidth,borderbottomwidth,borderleftwidth")}),xe("float,cssfloat,stylefloat",{parser:function(t,e,i,r,s){var n=t.style,a="cssfloat"in n?"cssfloat":"stylefloat";return new de(n,a,0,0,s,-1,i,!1,0,n[a],e)}});var ee=function(t){var e,i=this.t,r=i.filter||q(this.data,"filter")||"",s=0|this.s+this.c*t;100===s&&(-1===r.indexof("atrix(")&&-1===r.indexof("radient(")&&-1===r.indexof("oader(")?(i.removeattribute("filter"),e=!q(this.data,"filter")):(i.filter=r.replace(b,""),e=!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+s+")"),-1===r.indexof("pacity")?0===s&&this.xn1||(i.filter=r+" alpha(opacity="+s+")"):i.filter=r.replace(t,"opacity="+s))};xe("opacity,alpha,autoalpha",{defaultvalue:"1",parser:function(t,e,i,r,n,a){var o=parsefloat(q(t,"opacity",s,!1,"1")),l=t.style,h="autoalpha"===i;return"string"==typeof e&&"="===e.charat(1)&&(e=("-"===e.charat(0)?-1:1)*parsefloat(e.substr(2))+o),h&&1===o&&"hidden"===q(t,"visibility",s)&&0!==e&&(o=0),w?n=new de(l,"opacity",o,e-o,n):(n=new de(l,"opacity",100*o,100*(e-o),n),n.xn1=h?1:0,l.zoom=1,n.type=2,n.b="alpha(opacity="+n.s+")",n.e="alpha(opacity="+(n.s+n.c)+")",n.data=t,n.plugin=a,n.setratio=ee),h&&(n=new de(l,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit"),n.xs0="inherit",r._overwriteprops.push(n.n),r._overwriteprops.push(i)),n}});var ye=function(t,e){e&&(t.removeproperty?(("ms"===e.substr(0,2)||"webkit"===e.substr(0,6))&&(e="-"+e),t.removeproperty(e.replace(s,"-$1").tolowercase())):t.removeattribute(e))},we=function(t){if(this.t._gsclasspt=this,1===t||0===t){this.t.setattribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:ye(i,e.p),e=e._next;1===t&&this.t._gsclasspt===this&&(this.t._gsclasspt=null)}else this.t.getattribute("class")!==this.e&&this.t.setattribute("class",this.e)};xe("classname",{parser:function(t,e,r,n,a,o,l){var h,u,f,c,_,p=t.getattribute("class")||"",d=t.style.csstext;if(a=n._classnamept=new de(t,r,0,0,a,2),a.setratio=we,a.pr=-11,i=!0,a.b=p,u=k(t,s),f=t._gsclasspt){for(c={},_=f.data;_;)c[_.p]=1,_=_._next; f.setratio(1)}return t._gsclasspt=a,a.e="="!==e.charat(1)?e:p.replace(regexp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charat(0)?" "+e.substr(2):""),t.setattribute("class",a.e),h=j(t,u,k(t),l,c),t.setattribute("class",p),a.data=h.firstmpt,t.style.csstext=d,a=a.xfirst=n.parse(t,h.difs,a,o)}});var ve=function(t){if((1===t||0===t)&&this.data._totaltime===this.data._totalduration&&"isfromstart"!==this.data.data){var e,i,r,s,n,a=this.t.style,o=l.transform.parse;if("all"===this.e)a.csstext="",s=!0;else for(e=this.e.split(" ").join("").split(","),r=e.length;--r>-1;)i=e[r],l[i]&&(l[i].parse===o?s=!0:i="transformorigin"===i?oe:l[i].p),ye(a,i);s&&(ye(a,pe),n=this.t._gstransform,n&&(n.svg&&this.t.removeattribute("data-svg-origin"),delete this.t._gstransform))}};for(xe("clearprops",{parser:function(t,e,r,s,n){return n=new de(t,r,0,0,n,2),n.setratio=ve,n.e=e,n.pr=-10,n.data=s._tween,i=!0,n}}),h="bezier,throwprops,physicsprops,physics2d".split(","),ve=h.length;ve--;)te(h[ve]);h=a.prototype,h._firstpt=h._lastparsedtransform=h._transform=null,h._oninittween=function(t,e,o){if(!t.nodetype)return!1;this._target=t,this._tween=o,this._vars=e,u=e.autoround,i=!1,r=e.suffixmap||a.suffixmap,s=h(t,""),n=this._overwriteprops;var h,_,d,m,g,v,y,x,t,b=t.style;if(f&&""===b.zindex&&(h=q(t,"zindex",s),("auto"===h||""===h)&&this._addlazyset(b,"zindex",0)),"string"==typeof e&&(m=b.csstext,h=k(t,s),b.csstext=m+";"+e,h=j(t,h,k(t)).difs,!w&&w.test(e)&&(h.opacity=parsefloat(regexp.$1)),e=h,b.csstext=m),this._firstpt=_=e.classname?l.classname.parse(t,e.classname,"classname",this,null,null,e):this.parse(t,e,null),this._transformtype){for(t=3===this._transformtype,pe?c&&(f=!0,""===b.zindex&&(y=q(t,"zindex",s),("auto"===y||""===y)&&this._addlazyset(b,"zindex",0)),p&&this._addlazyset(b,"webkitbackfacevisibility",this._vars.webkitbackfacevisibility||(t?"visible":"hidden"))):b.zoom=1,d=_;d&&d._next;)d=d._next;x=new de(t,"transform",0,0,null,2),this._linkcssp(x,null,d),x.setratio=pe?ie:be,x.data=this._transform||ze(t,s,!0),x.tween=o,x.pr=-1,n.pop()}if(i){for(;_;){for(v=_._next,d=m;d&&d.pr>_.pr;)d=d._next;(_._prev=d?d._prev:g)?_._prev._next=_:m=_,(_._next=d)?d._prev=_:g=_,_=v}this._firstpt=m}return!0},h.parse=function(t,e,i,n){var a,o,h,f,c,_,p,d,m,g,v=t.style;for(a in e)_=e[a],o=l[a],o?i=o.parse(t,_,a,this,i,n,e):(c=q(t,a,s)+"",m="string"==typeof _,"color"===a||"fill"===a||"stroke"===a||-1!==a.indexof("color")||m&&p.test(_)?(m||(_=he(_),_=(_.length>3?"rgba(":"rgb(")+_.join(",")+")"),i=ge(v,a,c,_,!0,"transparent",i,0,n)):!m||-1===_.indexof(" ")&&-1===_.indexof(",")?(h=parsefloat(c),p=h||0===h?c.substr((h+"").length):"",(""===c||"auto"===c)&&("width"===a||"height"===a?(h=ie(t,a,s),p="px"):"left"===a||"top"===a?(h=$(t,a,s),p="px"):(h="opacity"!==a?0:1,p="")),g=m&&"="===_.charat(1),g?(f=parseint(_.charat(0)+"1",10),_=_.substr(2),f*=parsefloat(_),d=_.replace(x,"")):(f=parsefloat(_),d=m?_.replace(x,""):""),""===d&&(d=a in r?r[a]:p),_=f||0===f?(g?f+h:f)+d:e[a],p!==d&&""!==d&&(f||0===f)&&h&&(h=z(t,a,h,p),"%"===d?(h/=z(t,a,100,"%")/100,e.strictunits!==!0&&(c=h+"%")):"em"===d||"rem"===d?h/=z(t,a,1,d):"px"!==d&&(f=z(t,a,f,d),d="px"),g&&(f||0===f)&&(_=f+h+d)),g&&(f+=h),!h&&0!==h||!f&&0!==f?void 0!==v[a]&&(_||"nan"!=_+""&&null!=_)?(i=new de(v,a,f||h||0,0,i,-1,a,!1,0,c,_),i.xs0="none"!==_||"display"!==a&&-1===a.indexof("style")?_:c):j("invalid "+a+" tween value: "+e[a]):(i=new de(v,a,h,f-h,i,0,a,u!==!1&&("px"===d||"zindex"===a),0,c,_),i.xs0=d)):i=ge(v,a,c,_,!0,null,i,0,n)),n&&i&&!i.plugin&&(i.plugin=n);return i},h.setratio=function(t){var e,i,r,s=this._firstpt,n=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawprevtime===-1e-6)for(;s;){if(e=s.c*t+s.s,s.r?e=math.round(e):n>e&&e>-n&&(e=0),s.type)if(1===s.type)if(r=s.l,2===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2;else if(3===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3;else if(4===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4;else if(5===r)s.t[s.p]=s.xs0+e+s.xs1+s.xn1+s.xs2+s.xn2+s.xs3+s.xn3+s.xs4+s.xn4+s.xs5;else{for(i=s.xs0+e+s.xs1,r=1;s.l>r;r++)i+=s["xn"+r]+s["xs"+(r+1)];s.t[s.p]=i}else-1===s.type?s.t[s.p]=s.xs0:s.setratio&&s.setratio(t);else s.t[s.p]=e+s.xs0;s=s._next}else for(;s;)2!==s.type?s.t[s.p]=s.b:s.setratio(t),s=s._next;else for(;s;){if(2!==s.type)if(s.r&&-1!==s.type)if(e=math.round(s.s+s.c),s.type){if(1===s.type){for(r=s.l,i=s.xs0+e+s.xs1,r=1;s.l>r;r++)i+=s["xn"+r]+s["xs"+(r+1)];s.t[s.p]=i}}else s.t[s.p]=e+s.xs0;else s.t[s.p]=s.e;else s.setratio(t);s=s._next}},h._enabletransforms=function(t){this._transform=this._transform||ze(this._target,s,!0),this._transformtype=this._transform.svg&&we||!t&&3!==this._transformtype?2:3};var je=function(){this.t[this.p]=this.e,this.data._linkcssp(this,this._next,null,!0)};h._addlazyset=function(t,e,i){var r=this._firstpt=new de(t,e,0,0,this._firstpt,2);r.e=i,r.setratio=je,r.data=this},h._linkcssp=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstpt===t&&(this._firstpt=t._next,r=!0),i?i._next=t:r||null!==this._firstpt||(this._firstpt=t),t._next=e,t._prev=i),t},h._kill=function(e){var i,r,s,n=e;if(e.autoalpha||e.alpha){n={};for(r in e)n[r]=e[r];n.opacity=1,n.autoalpha&&(n.visibility=1)}return e.classname&&(i=this._classnamept)&&(s=i.xfirst,s&&s._prev?this._linkcssp(s._prev,i._next,s._prev._prev):s===this._firstpt&&(this._firstpt=i._next),i._next&&this._linkcssp(i._next,i._next._next,s._prev),this._classnamept=null),t.prototype._kill.call(this,n)};var ge=function(t,e,i){var r,s,n,a;if(t.slice)for(s=t.length;--s>-1;)ge(t[s],e,i);else for(r=t.childnodes,s=r.length;--s>-1;)n=r[s],a=n.type,n.style&&(e.push(k(n)),i&&i.push(n)),1!==a&&9!==a&&11!==a||!n.childnodes.length||ge(n,e,i)};return a.cascadeto=function(t,i,r){var s,n,a,o,l=e.to(t,i,r),h=[l],u=[],f=[],c=[],_=e._internals.reservedprops;for(t=l._targets||l.target,ge(t,u,c),l.render(i,!0,!0),ge(t,f),l.render(0,!0,!0),l._enabled(!0),s=c.length;--s>-1;)if(n=j(c[s],u[s],f[s]),n.firstmpt){n=n.difs;for(a in r)_[a]&&(n[a]=r[a]);o={};for(a in n)o[a]=u[s][a];h.push(e.fromto(c[s],i,o,n))}return h},t.activate([a]),a},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()(),function(t){"use strict";var e=function(){return(_gsscope.greensockglobals||_gsscope)[t]};"function"==typeof define&&define.amd?define(["tweenlite"],e):"undefined"!=typeof module&&module.exports&&(require("../tweenlite.js"),module.exports=e())}("cssplugin"); /*! * version: beta 0.3.4 * date: 2015-08-15 * updates and docs at: http://greensock.com * * @license copyright (c) 2008-2015, greensock. all rights reserved. * splittext is a club greensock membership benefit; you must have a valid membership to use * this code without violating the terms of use. visit http://www.greensock.com/club/ to sign up or get more details. * this work is subject to 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;(function(t){"use strict";var e=t.greensockglobals||t,i=function(t){var i,s=t.split("."),r=e;for(i=0;s.length>i;i++)r[s[i]]=r=r[s[i]]||{};return r},s=i("com.greensock.utils"),r=function(t){var e=t.nodetype,i="";if(1===e||9===e||11===e){if("string"==typeof t.textcontent)return t.textcontent;for(t=t.firstchild;t;t=t.nextsibling)i+=r(t)}else if(3===e||4===e)return t.nodevalue;return i},n=document,a=n.defaultview?n.defaultview.getcomputedstyle:function(){},o=/([a-z])/g,l=function(t,e,i,s){var r;return(i=i||a(t,null))?(t=i.getpropertyvalue(e.replace(o,"-$1").tolowercase()),r=t||i.length?t:i[e]):t.currentstyle&&(i=t.currentstyle,r=i[e]),s?r:parseint(r,10)||0},h=function(t){return t.length&&t[0]&&(t[0].nodetype&&t[0].style&&!t.nodetype||t[0].length&&t[0][0])?!0:!1},_=function(t){var e,i,s,r=[],n=t.length;for(e=0;n>e;e++)if(i=t[e],h(i))for(s=i.length,s=0;i.length>s;s++)r.push(i[s]);else r.push(i);return r},u=")eefec303079ad17405c",c=/(?:
||
)/gi,f=n.all&&!n.addeventlistener,p="
":">")}},d=s.splittext=e.splittext=function(t,e){if("string"==typeof t&&(t=d.selector(t)),!t)throw"cannot split a null element.";this.elements=h(t)?_(t):[t],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)},g=function(t,e,i){var s=t.nodetype;if(1===s||9===s||11===s)for(t=t.firstchild;t;t=t.nextsibling)g(t,e,i);else(3===s||4===s)&&(t.nodevalue=t.nodevalue.split(e).join(i))},v=function(t,e){for(var i=e.length;--i>-1;)t.push(e[i])},y=function(t,e,i,s,o){c.test(t.innerhtml)&&(t.innerhtml=t.innerhtml.replace(c,u));var h,_,f,p,d,y,t,w,b,x,p,s,k,c,r=r(t),o=e.type||e.split||"chars,words,lines",a=-1!==o.indexof("lines")?[]:null,d=-1!==o.indexof("words"),m=-1!==o.indexof("chars"),l="absolute"===e.position||e.absolute===!0,f=l?"­ ":" ",z=-999,i=a(t),e=l(t,"paddingleft",i),n=l(t,"borderbottomwidth",i)+l(t,"bordertopwidth",i),x=l(t,"borderleftwidth",i)+l(t,"borderrightwidth",i),b=l(t,"paddingtop",i)+l(t,"paddingbottom",i),j=l(t,"paddingleft",i)+l(t,"paddingright",i),u=l(t,"textalign",i,!0),y=t.clientheight,q=t.clientwidth,v="
",g=m(e.wordsclass),q=m(e.charsclass),w=-1!==(e.linesclass||"").indexof("++"),z=e.linesclass,h=-1!==r.indexof("<"),$=!0,k=[],j=[],te=[];for(w&&(z=z.split("++").join("")),h&&(r=r.split("<").join("{{lt}}")),h=r.length,p=g(),d=0;h>d;d++)if(t=r.charat(d),")"===t&&r.substr(d,20)===u)p+=($?v:"")+"
",$=!1,d!==h-20&&r.substr(d+20,20)!==u&&(p+=" "+g(),$=!0),d+=19;else if(" "===t&&" "!==r.charat(d-1)&&d!==h-1&&r.substr(d-20,20)!==u){for(p+=$?v:"",$=!1;" "===r.charat(d+1);)p+=f,d++;(")"!==r.charat(d+1)||r.substr(d+1,20)!==u)&&(p+=f+g(),$=!0)}else"{"===t&&"{{lt}}"===r.substr(d,6)?(p+=m?q()+"{{lt}}"+"":"{{lt}}",d+=5):p+=m&&" "!==t?q()+t+"":t;for(t.innerhtml=p+($?v:""),h&&g(t,"{{lt}}","<"),y=t.getelementsbytagname("*"),h=y.length,w=[],d=0;h>d;d++)w[d]=y[d];if(a||l)for(d=0;h>d;d++)b=w[d],f=b.parentnode===t,(f||l||m&&!d)&&(x=b.offsettop,a&&f&&x!==z&&"br"!==b.nodename&&(_=[],a.push(_),z=x),l&&(b._x=b.offsetleft,b._y=x,b._w=b.offsetwidth,b._h=b.offsetheight),a&&(d!==f&&m||(_.push(b),b._x-=e),f&&d&&(w[d-1]._wordend=!0),"br"===b.nodename&&b.nextsibling&&"br"===b.nextsibling.nodename&&a.push([])));for(d=0;h>d;d++)b=w[d],f=b.parentnode===t,"br"!==b.nodename?(l&&(s=b.style,d||f||(b._x+=b.parentnode._x,b._y+=b.parentnode._y),s.left=b._x+"px",s.top=b._y+"px",s.position="absolute",s.display="block",s.width=b._w+1+"px",s.height=b._h+"px"),d?f&&""!==b.innerhtml?j.push(b):m&&k.push(b):f?(t.removechild(b),w.splice(d--,1),h--):!f&&m&&(x=!a&&!l&&b.nextsibling,t.appendchild(b),x||t.appendchild(n.createtextnode(" ")),k.push(b))):a||l?(t.removechild(b),w.splice(d--,1),h--):d||t.appendchild(b);if(a){for(l&&(p=n.createelement("div"),t.appendchild(p),k=p.offsetwidth+"px",x=p.offsetparent===t?0:t.offsetleft,t.removechild(p)),s=t.style.csstext,t.style.csstext="display:none;";t.firstchild;)t.removechild(t.firstchild);for(c=!l||!d&&!m,d=0;a.length>d;d++){for(_=a[d],p=n.createelement("div"),p.style.csstext="display:block;text-align:"+u+";position:"+(l?"absolute;":"relative;"),z&&(p.classname=z+(w?d+1:"")),te.push(p),h=_.length,y=0;h>y;y++)"br"!==_[y].nodename&&(b=_[y],p.appendchild(b),c&&(b._wordend||d)&&p.appendchild(n.createtextnode(" ")),l&&(0===y&&(p.style.top=b._y+"px",p.style.left=e+x+"px"),b.style.top="0px",x&&(b.style.left=b._x-x+"px")));0===h&&(p.innerhtml=" "),d||m||(p.innerhtml=r(p).split(string.fromcharcode(160)).join(" ")),l&&(p.style.width=k,p.style.height=b._h+"px"),t.appendchild(p)}t.style.csstext=s}l&&(y>t.clientheight&&(t.style.height=y-b+"px",y>t.clientheight&&(t.style.height=y+n+"px")),q>t.clientwidth&&(t.style.width=q-j+"px",q>t.clientwidth&&(t.style.width=q+x+"px"))),v(i,k),v(s,j),v(o,te)},t=d.prototype;t.split=function(t){this.issplit&&this.revert(),this.vars=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e=this.elements.length;--e>-1;)this._originals[e]=this.elements[e].innerhtml,y(this.elements[e],this.vars,this.chars,this.words,this.lines);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.issplit=!0,this},t.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var t=this._originals.length;--t>-1;)this.elements[t].innerhtml=this._originals[t];return this.chars=[],this.words=[],this.lines=[],this.issplit=!1,this},d.selector=t.$||t.jquery||function(e){var i=t.$||t.jquery;return i?(d.selector=i,i(e)):"undefined"==typeof document?e:document.queryselectorall?document.queryselectorall(e):document.getelementbyid("#"===e.charat(0)?e.substr(1):e)},d.version="0.3.4"})(_gsscope),function(t){"use strict";var e=function(){return(_gsscope.greensockglobals||_gsscope)[t]};"function"==typeof define&&define.amd?define(["tweenlite"],e):"undefined"!=typeof module&&module.exports&&(module.exports=e())}("splittext"); try{ window.greensockglobals = null; window._gsqueue = null; window._gsdefine = null; delete(window.greensockglobals); delete(window._gsqueue); delete(window._gsdefine); } catch(e) {} try{ window.greensockglobals = oldgs; window._gsqueue = oldgs_queue; } catch(e) {} if (window.tplogs==true) try { console.groupend(); } catch(e) {} (function(e,t){ e.waitforimages={hasimageproperties:["backgroundimage","liststyleimage","borderimage","bordercornerimage"]};e.expr[":"].uncached=function(t){var n=document.createelement("img");n.src=t.src;return e(t).is('img[src!=""]')&&!n.complete};e.fn.waitforimages=function(t,n,r){if(e.isplainobject(arguments[0])){n=t.each;r=t.waitforall;t=t.finished}t=t||e.noop;n=n||e.noop;r=!!r;if(!e.isfunction(t)||!e.isfunction(n)){throw new typeerror("an invalid callback was supplied.")}return this.each(function(){var i=e(this),s=[];if(r){var o=e.waitforimages.hasimageproperties||[],u=/url\((['"]?)(.*?)\1\)/g;i.find("*").each(function(){var t=e(this);if(t.is("img:uncached")){s.push({src:t.attr("src"),element:t[0]})}e.each(o,function(e,n){var r=t.css(n);if(!r){return true}var i;while(i=u.exec(r)){s.push({src:i[2],element:t[0]})}})})}else{i.find("img:uncached").each(function(){s.push({src:this.src,element:this})})}var f=s.length,l=0;if(f==0){t.call(i[0])}e.each(s,function(r,s){var o=new image;e(o).bind("load error",function(e){l++;n.call(s.element,l,f,e.type=="load");if(l==f){t.call(i[0]);return false}});o.src=s.src})})}; })(jquery)