this._s2&&l<_.length-1){for(p=_.length-1;l0){for(;l>0&&(this._s1=_[--l])>=e;);0===l&&e=1?i-1:i*e>>0)*(1/i))*i;for(o=1-u,l=this._props.length;--l>-1;)h=this._props[l],d=(u*u*(c=this._beziers[h][a]).da+3*o*(u*c.ca+o*c.ba))*u+c.a,this._mod[h]&&(d=this._mod[h](d,n)),s[h]?n[h](d):n[h]=d;if(this._autoRotate){var m=this._autoRotate,v,g,y,b,w,T,x;for(l=m.length;--l>-1;)h=m[l][2],T=m[l][3]||0,x=!0===m[l][4]?1:t,c=this._beziers[m[l][0]],v=this._beziers[m[l][1]],c&&v&&(c=c[a],v=v[a],g=c.a+(c.b-c.a)*u,g+=((b=c.b+(c.c-c.b)*u)-g)*u,b+=(c.c+(c.d-c.c)*u-b)*u,y=v.a+(v.b-v.a)*u,y+=((w=v.b+(v.c-v.b)*u)-y)*u,w+=(v.c+(v.d-v.c)*u-w)*u,d=r?Math.atan2(w-y,b-g)*x+T:this._initialRotations[l],this._mod[h]&&(d=this._mod[h](d,n)),s[h]?n[h](d):n[h]=d)}}}),m=_.prototype,_.bezierThrough=u,_.cubicToQuadratic=l,_._autoCSS=!0,_.quadraticToCubic=function(t,e,i){return new a(t,(2*e+t)/3,(2*e+i)/3,i)},_._cssRegister=function(){var t=r.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,s=e._setPluginRatio,n=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,r,a,o,l){e instanceof Array&&(e={values:e}),l=new _;var h=e.values,c=h.length-1,u=[],d={},p,f,m;if(c<0)return o;for(p=0;p<=c;p++)m=i(t,h[p],a,o,l,c!==p),u[p]=m.end;for(f in e)d[f]=e[f];return d.values=u,(o=new n(t,"bezier",0,0,m.pt,2)).data=m,o.plugin=l,o.setRatio=s,0===d.autoRotate&&(d.autoRotate=!0),!d.autoRotate||d.autoRotate instanceof Array||(p=!0===d.autoRotate?0:Number(d.autoRotate),d.autoRotate=null!=m.end.left?[["left","top","rotation",p,!1]]:null!=m.end.x&&[["x","y","rotation",p,!1]]),d.autoRotate&&(a._transform||a._enableTransforms(!1),m.autoRotate=a._target._gsTransform,m.proxy.rotation=m.autoRotate.rotation||0,a._overwriteProps.push("rotation")),l._onInitTween(m.proxy,d,a._tween),o}})}},m._mod=function(t){for(var e=this._overwriteProps,i=e.length,s;--i>-1;)(s=t[e[i]])&&"function"==typeof s&&(this._mod[e[i]]=s)},m._kill=function(t){var e=this._props,i,s;for(i in this._beziers)if(i in t)for(delete this._beziers[i],delete this._func[i],s=e.length;--s>-1;)e[s]===i&&e.splice(s,1);if(e=this._autoRotate)for(s=e.length;--s>-1;)t[e[s][2]]&&e.splice(s,1);return this._super._kill.call(this,t)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(t,e){var i=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=i.prototype.setRatio},s=_gsScope._gsDefine.globals,n,r,a,o,l={},h=i.prototype=new t("css");h.constructor=i,i.version="1.20.5",i.API=2,i.defaultTransformPerspective=0,i.defaultSkewType="compensated",i.defaultSmoothOrigin=!0,h="px",i.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:""};var c=/(?:\-|\.|\b)(\d|\.|e\-)+/g,u=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,d=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,p=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,f=/(?:\d|\-|\+|=|#|\.)*/g,_=/opacity *= *([^)]*)/i,m=/opacity:([^;]*)/i,v=/alpha\(opacity *=.+?\)/i,g=/^(rgb|hsl)/,y=/([A-Z])/g,b=/-([a-z])/gi,w=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,T=function(t,e){return e.toUpperCase()},x=/(?:Left|Right|Width)/i,k=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,C=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,P=/,(?=[^\)]*(?:\(|$))/gi,S=/[\s,\(]/i,O=Math.PI/180,A=180/Math.PI,E={},M={style:{}},R=_gsScope.document||{createElement:function(){return M}},I=function(t,e){return R.createElementNS?R.createElementNS(e||"http://www.w3.org/1999/xhtml",t):R.createElement(t)},D=I("div"),L=I("img"),z=i._internals={_specialProps:l},F=(_gsScope.navigator||{}).userAgent||"",$,N,j,H,B,V,q=function(){var t=F.indexOf("Android"),e=I("a");return j=-1!==F.indexOf("Safari")&&-1===F.indexOf("Chrome")&&(-1===t||parseFloat(F.substr(t+8,2))>3),B=j&&parseFloat(F.substr(F.indexOf("Version/")+8,2))<6,H=-1!==F.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(F)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(F))&&(V=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),X=function(t){return _.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},W=function(t){_gsScope.console&&console.log(t)},Y,U,Q="",G="",Z=function(t,e){var i=(e=e||D).style,s,n;if(void 0!==i[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),s=["O","Moz","ms","Ms","Webkit"],n=5;--n>-1&&void 0===i[s[n]+t];);return n>=0?(G=3===n?"ms":s[n],Q="-"+G.toLowerCase()+"-",G+t):null},J=("undefined"!=typeof window?window:R.defaultView||{getComputedStyle:function(){}}).getComputedStyle,K=i.getStyle=function(t,e,i,s,n){var r;return q||"opacity"!==e?(!s&&t.style[e]?r=t.style[e]:(i=i||J(t))?r=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(y,"-$1").toLowerCase()):t.currentStyle&&(r=t.currentStyle[e]),null==n||r&&"none"!==r&&"auto"!==r&&"auto auto"!==r?r:n):X(t)},tt=z.convertToPixels=function(t,s,n,r,a){if("px"===r||!r&&"lineHeight"!==s)return n;if("auto"===r||!n)return 0;var o=x.test(s),l=t,h=D.style,c=n<0,u=1===n,d,p,f;if(c&&(n=-n),u&&(n*=100),"lineHeight"!==s||r)if("%"===r&&-1!==s.indexOf("border"))d=n/100*(o?t.clientWidth:t.clientHeight);else{if(h.cssText="border:0 solid red;position:"+K(t,"position")+";line-height:0;","%"!==r&&l.appendChild&&"v"!==r.charAt(0)&&"rem"!==r)h[o?"borderLeftWidth":"borderTopWidth"]=n+r;else{if(l=t.parentNode||R.body,-1!==K(l,"display").indexOf("flex")&&(h.position="absolute"),p=l._gsCache,f=e.ticker.frame,p&&o&&p.time===f)return p.width*n/100;h[o?"width":"height"]=n+r}l.appendChild(D),d=parseFloat(D[o?"offsetWidth":"offsetHeight"]),l.removeChild(D),o&&"%"===r&&!1!==i.cacheWidths&&((p=l._gsCache=l._gsCache||{}).time=f,p.width=d/n*100),0!==d||a||(d=tt(t,s,n,r,!0))}else p=J(t).lineHeight,t.style.lineHeight=n,d=parseFloat(J(t).lineHeight),t.style.lineHeight=p;return u&&(d/=100),c?-d:d},et=z.calculateOffset=function(t,e,i){if("absolute"!==K(t,"position",i))return 0;var s="left"===e?"Left":"Top",n=K(t,"margin"+s,i);return t["offset"+s]-(tt(t,e,parseFloat(n),n.replace(f,""))||0)},it=function(t,e){var i={},s,n,r;if(e=e||J(t,null))if(s=e.length)for(;--s>-1;)-1!==(r=e[s]).indexOf("-transform")&&Et!==r||(i[r.replace(b,T)]=e.getPropertyValue(r));else for(s in e)-1!==s.indexOf("Transform")&&At!==s||(i[s]=e[s]);else if(e=t.currentStyle||t.style)for(s in e)"string"==typeof s&&void 0===i[s]&&(i[s.replace(b,T)]=e[s]);return q||(i.opacity=X(t)),n=Xt(t,e,!1),i.rotation=n.rotation,i.skewX=n.skewX,i.scaleX=n.scaleX,i.scaleY=n.scaleY,i.x=n.x,i.y=n.y,Rt&&(i.z=n.z,i.rotationX=n.rotationX,i.rotationY=n.rotationY,i.scaleZ=n.scaleZ),i.filters&&delete i.filters,i},st=function(t,e,i,s,n){var r={},a=t.style,o,l,h;for(l in i)"cssText"!==l&&"length"!==l&&isNaN(l)&&(e[l]!==(o=i[l])||n&&n[l])&&-1===l.indexOf("Origin")&&("number"!=typeof o&&"string"!=typeof o||(r[l]="auto"!==o||"left"!==l&&"top"!==l?""!==o&&"auto"!==o&&"none"!==o||"string"!=typeof e[l]||""===e[l].replace(p,"")?o:0:et(t,l),void 0!==a[l]&&(h=new yt(a,l,a[l],h))));if(s)for(l in s)"className"!==l&&(r[l]=s[l]);return{difs:r,firstMPT:h}},nt={width:["Left","Right"],height:["Top","Bottom"]},rt=["marginLeft","marginRight","marginTop","marginBottom"],at=function(t,e,i){if("svg"===(t.nodeName+"").toLowerCase())return(i||J(t))[e]||0;if(t.getCTM&&Bt(t))return t.getBBox()[e]||0;var s=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=nt[e],r=n.length;for(i=i||J(t,null);--r>-1;)s-=parseFloat(K(t,"padding"+n[r],i,!0))||0,s-=parseFloat(K(t,"border"+n[r]+"Width",i,!0))||0;return s},ot=function(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";null!=t&&""!==t||(t="0 0");var i=t.split(" "),s=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],n=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1],r;if(i.length>3&&!e){for(i=t.split(", ").join(",").split(","),t=[],r=0;r2?" "+i[2]:""),e&&(e.oxp=-1!==s.indexOf("%"),e.oyp=-1!==n.indexOf("%"),e.oxr="="===s.charAt(1),e.oyr="="===n.charAt(1),e.ox=parseFloat(s.replace(p,"")),e.oy=parseFloat(n.replace(p,"")),e.v=t),e||t},lt=function(t,e){return"function"==typeof t&&(t=t(U,Y)),"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0},ht=function(t,e){return"function"==typeof t&&(t=t(U,Y)),null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0},ct=function(t,e,i,s){var n=1e-6,r,a,o,l,h;return"function"==typeof t&&(t=t(U,Y)),null==t?l=e:"number"==typeof t?l=t:(r=360,a=t.split("_"),o=((h="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(a[0].substr(2)):parseFloat(a[0]))*(-1===t.indexOf("rad")?1:A)-(h?0:e),a.length&&(s&&(s[i]=e+o),-1!==t.indexOf("short")&&(o%=360)!==o%180&&(o=o<0?o+360:o-360),-1!==t.indexOf("_cw")&&o<0?o=(o+3599999999640)%360-360*(o/360|0):-1!==t.indexOf("ccw")&&o>0&&(o=(o-3599999999640)%360-360*(o/360|0))),l=e+o),l-n&&(l=0),l},ut={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]},dt=function(t,e,i){return 255*(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)+.5|0},pt=i.parseColor=function(t,e){var i,s,n,r,a,o,l,h,d,p,f;if(t)if("number"==typeof t)i=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),ut[t])i=ut[t];else if("#"===t.charAt(0))4===t.length&&(s=t.charAt(1),n=t.charAt(2),r=t.charAt(3),t="#"+s+s+n+n+r+r),i=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(i=f=t.match(c),e){if(-1!==t.indexOf("="))return t.match(u)}else a=Number(i[0])%360/360,o=Number(i[1])/100,s=2*(l=Number(i[2])/100)-(n=l<=.5?l*(o+1):l+o-l*o),i.length>3&&(i[3]=Number(i[3])),i[0]=dt(a+1/3,s,n),i[1]=dt(a,s,n),i[2]=dt(a-1/3,s,n);else i=t.match(c)||ut.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=ut.black;return e&&!f&&(s=i[0]/255,n=i[1]/255,r=i[2]/255,l=((h=Math.max(s,n,r))+(d=Math.min(s,n,r)))/2,h===d?a=o=0:(p=h-d,o=l>.5?p/(2-h-d):p/(h+d),a=h===s?(n-r)/p+(n0?r[0].replace(c,""):"",p;return h?p=e?function(t){var e,c,f,_;if("number"==typeof t)t+=u;else if(s&&P.test(t)){for(_=t.replace(P,"|").split("|"),f=0;f<_.length;f++)_[f]=p(_[f]);return _.join(",")}if(e=(t.match(_t)||[n])[0],f=(c=t.split(e).join("").match(d)||[]).length,h>f--)for(;++fc--)for(;++c>0];return n.parse(e,o,r,a)}},gt=z._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e=this.data,i=e.proxy,s=e.firstMPT,n=1e-6,r,a,o,l,h;s;)r=i[s.v],s.r?r=s.r(r):r-n&&(r=0),s.t[s.p]=r,s=s._next;if(e.autoRotate&&(e.autoRotate.rotation=e.mod?e.mod.call(this._tween,i.rotation,this.t,this._tween):i.rotation),1===t||0===t)for(s=e.firstMPT,h=1===t?"e":"b";s;){if((a=s.t).type){if(1===a.type){for(l=a.xs0+a.s+a.xs1,o=1;o0;)p="xn"+u,l[d=s.p+"_"+p]=s.data[p],o[d]=s[p],r||(f=new yt(s,p,d,f,s.rxp[p]));s=s._next}return{proxy:o,end:l,firstMPT:f,pt:_}},wt=z.CSSPropTween=function(t,e,i,s,r,a,l,h,c,u,d){this.t=t,this.p=e,this.s=i,this.c=s,this.n=l||e,t instanceof wt||o.push(this.n),this.r=h?"function"==typeof h?h:Math.round:h,this.type=a||0,c&&(this.pr=c,n=!0),this.b=void 0===u?i:u,this.e=void 0===d?i+s:d,r&&(this._next=r,r._prev=this)},Tt=function(t,e,i,s,n,r){var a=new wt(t,e,i,s-i,n,-1,r);return a.b=i,a.e=a.xs0=s,a},xt=i.parseComplex=function(t,e,s,n,r,a,o,l,h,d){s=s||a||"","function"==typeof n&&(n=n(U,Y)),o=new wt(t,e,0,0,o,d?2:1,null,!1,l,s,n),n+="",r&&_t.test(n+s)&&(n=[s,n],i.colorStringFilter(n),s=n[0],n=n[1]);var p=s.split(", ").join(",").split(" "),f=n.split(", ").join(",").split(" "),_=p.length,m=!1!==$,v,g,y,b,w,T,x,k,C,S,O,A,E;for(-1===n.indexOf(",")&&-1===s.indexOf(",")||(-1!==(n+s).indexOf("rgb")||-1!==(n+s).indexOf("hsl")?(p=p.join(" ").replace(P,", ").split(" "),f=f.join(" ").replace(P,", ").split(" ")):(p=p.join(" ").split(",").join(", ").split(" "),f=f.join(" ").split(",").join(", ").split(" ")),_=p.length),_!==f.length&&(_=(p=(a||"").split(" ")).length),o.plugin=h,o.setRatio=d,_t.lastIndex=0,v=0;v<_;v++)if(b=p[v],w=f[v]+"",(k=parseFloat(b))||0===k)o.appendXtra("",k,lt(w,k),w.replace(u,""),!(!m||-1===w.indexOf("px"))&&Math.round,!0);else if(r&&_t.test(b))A=")"+((A=w.indexOf(")")+1)?w.substr(A):""),E=-1!==w.indexOf("hsl")&&q,S=w,b=pt(b,E),w=pt(w,E),(C=b.length+w.length>6)&&!q&&0===w[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(f[v]).join("transparent")):(q||(C=!1),E?o.appendXtra(S.substr(0,S.indexOf("hsl"))+(C?"hsla(":"hsl("),b[0],lt(w[0],b[0]),",",!1,!0).appendXtra("",b[1],lt(w[1],b[1]),"%,",!1).appendXtra("",b[2],lt(w[2],b[2]),C?"%,":"%"+A,!1):o.appendXtra(S.substr(0,S.indexOf("rgb"))+(C?"rgba(":"rgb("),b[0],w[0]-b[0],",",Math.round,!0).appendXtra("",b[1],w[1]-b[1],",",Math.round).appendXtra("",b[2],w[2]-b[2],C?",":A,Math.round),C&&(b=b.length<4?1:b[3],o.appendXtra("",b,(w.length<4?1:w[3])-b,A,!1))),_t.lastIndex=0;else if(T=b.match(c)){if(!(x=w.match(u))||x.length!==T.length)return o;for(y=0,g=0;g0;)h["xn"+kt]=0,h["xs"+kt]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setRatio=h.rxp=null,h.appendXtra=function(t,e,i,s,n,r){var a=this,o=a.l;return a["xs"+o]+=r&&(o||a["xs"+o])?" "+t:t||"",i||0===o||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=s||"",o>0?(a.data["xn"+o]=e+i,a.rxp["xn"+o]=n,a["xn"+o]=e,a.plugin||(a.xfirst=new wt(a,"xn"+o,e,i,a.xfirst||a,0,a.n,n,a.pr),a.xfirst.xs0=0),a):(a.data={s:e+i},a.rxp={},a.s=e,a.c=i,a.r=n,a)):(a["xs"+o]+=e+(s||""),a)};var Ct=function(t,e){e=e||{},this.p=e.prefix&&Z(t)||t,l[t]=l[this.p]=this,this.format=e.formatter||mt(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},Pt=z._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var s=t.split(","),n=e.defaultValue,r,a;for(i=i||[n],r=0;rl.length?h.length:l.length,o=0;o-1;)l=Number(o[kt]),o[kt]=(h=l-(l|=0))?(1e5*h+(h<0?-.5:.5)|0)/1e5+l:l;return e&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o},Xt=z.getTransform=function(t,s,n,r){if(t._gsTransform&&n&&!r)return t._gsTransform;var a=n&&t._gsTransform||new It,o=a.scaleX<0,l=2e-5,h=1e5,c=Rt&&(parseFloat(K(t,Mt,s,!1,"0 0 0").split(" ")[2])||a.zOrigin)||0,u=parseFloat(i.defaultTransformPerspective)||0,d,p,f,_,m,v;if(a.svg=!(!t.getCTM||!Bt(t)),a.svg&&(Nt(t,K(t,Mt,s,!1,"50% 50%")+"",a,t.getAttribute("data-svg-origin")),Lt=i.useSVGTransformAttr||$t),(d=qt(t))!==Vt){if(16===d.length){var g=d[0],y=d[1],b=d[2],w=d[3],T=d[4],x=d[5],k=d[6],C=d[7],P=d[8],S=d[9],O=d[10],E=d[12],M=d[13],R=d[14],I=d[11],D=Math.atan2(k,O),L,z,F,$,N,j;a.zOrigin&&(E=P*(R=-a.zOrigin)-d[12],M=S*R-d[13],R=O*R+a.zOrigin-d[14]),a.rotationX=D*A,D&&(L=T*(N=Math.cos(-D))+P*(j=Math.sin(-D)),z=x*N+S*j,F=k*N+O*j,P=T*-j+P*N,S=x*-j+S*N,O=k*-j+O*N,I=C*-j+I*N,T=L,x=z,k=F),D=Math.atan2(-b,O),a.rotationY=D*A,D&&(z=y*(N=Math.cos(-D))-S*(j=Math.sin(-D)),F=b*N-O*j,S=y*j+S*N,O=b*j+O*N,I=w*j+I*N,g=L=g*N-P*j,y=z,b=F),D=Math.atan2(y,g),a.rotation=D*A,D&&(L=g*(N=Math.cos(D))+y*(j=Math.sin(D)),z=T*N+x*j,F=P*N+S*j,y=y*N-g*j,x=x*N-T*j,S=S*N-P*j,g=L,T=z,P=F),a.rotationX&&Math.abs(a.rotationX)+Math.abs(a.rotation)>359.9&&(a.rotationX=a.rotation=0,a.rotationY=180-a.rotationY),D=Math.atan2(T,x),a.scaleX=(1e5*Math.sqrt(g*g+y*y+b*b)+.5|0)/1e5,a.scaleY=(1e5*Math.sqrt(x*x+k*k)+.5|0)/1e5,a.scaleZ=(1e5*Math.sqrt(P*P+S*S+O*O)+.5|0)/1e5,g/=a.scaleX,T/=a.scaleY,y/=a.scaleX,x/=a.scaleY,Math.abs(D)>l?(a.skewX=D*A,T=0,"simple"!==a.skewType&&(a.scaleY*=1/Math.cos(D))):a.skewX=0,a.perspective=I?1/(I<0?-I:I):0,a.x=E,a.y=M,a.z=R,a.svg&&(a.x-=a.xOrigin-(a.xOrigin*g-a.yOrigin*T),a.y-=a.yOrigin-(a.yOrigin*y-a.xOrigin*x))}else if(!Rt||r||!d.length||a.x!==d[4]||a.y!==d[5]||!a.rotationX&&!a.rotationY){var H=d.length>=6,B=H?d[0]:1,V=d[1]||0,q=d[2]||0,X=H?d[3]:1;a.x=d[4]||0,a.y=d[5]||0,f=Math.sqrt(B*B+V*V),_=Math.sqrt(X*X+q*q),m=B||V?Math.atan2(V,B)*A:a.rotation||0,v=q||X?Math.atan2(q,X)*A+m:a.skewX||0,a.scaleX=f,a.scaleY=_,a.rotation=m,a.skewX=v,Rt&&(a.rotationX=a.rotationY=a.z=0,a.perspective=u,a.scaleZ=1),a.svg&&(a.x-=a.xOrigin-(a.xOrigin*B+a.yOrigin*q),a.y-=a.yOrigin-(a.xOrigin*V+a.yOrigin*X))}for(p in Math.abs(a.skewX)>90&&Math.abs(a.skewX)<270&&(o?(a.scaleX*=-1,a.skewX+=a.rotation<=0?180:-180,a.rotation+=a.rotation<=0?180:-180):(a.scaleY*=-1,a.skewX+=a.skewX<=0?180:-180)),a.zOrigin=c,a)a[p]-l&&(a[p]=0)}return n&&(t._gsTransform=a,a.svg&&(Lt&&t.style[At]?e.delayedCall(.001,function(){Kt(t.style,At)}):!Lt&&t.getAttribute("transform")&&e.delayedCall(.001,function(){t.removeAttribute("transform")}))),a},Wt=function(t){var e=this.data,i=-e.rotation*O,s=i+e.skewX*O,n=1e5,r=(Math.cos(i)*e.scaleX*1e5|0)/1e5,a=(Math.sin(i)*e.scaleX*1e5|0)/1e5,o=(Math.sin(s)*-e.scaleY*1e5|0)/1e5,l=(Math.cos(s)*e.scaleY*1e5|0)/1e5,h=this.t.style,c=this.t.currentStyle,u,d;if(c){d=a,a=-o,o=-d,u=c.filter,h.filter="";var p=this.t.offsetWidth,m=this.t.offsetHeight,v="absolute"!==c.position,g="progid:DXImageTransform.Microsoft.Matrix(M11="+r+", M12="+a+", M21="+o+", M22="+l,y=e.x+p*e.xPercent/100,b=e.y+m*e.yPercent/100,w,T;if(null!=e.ox&&(y+=(w=(e.oxp?p*e.ox*.01:e.ox)-p/2)-(w*r+(T=(e.oyp?m*e.oy*.01:e.oy)-m/2)*a),b+=T-(w*o+T*l)),g+=v?", Dx="+((w=p/2)-(w*r+(T=m/2)*a)+y)+", Dy="+(T-(w*o+T*l)+b)+")":", sizingMethod='auto expand')",-1!==u.indexOf("DXImageTransform.Microsoft.Matrix(")?h.filter=u.replace(C,g):h.filter=g+" "+u,0!==t&&1!==t||1===r&&0===a&&0===o&&1===l&&(v&&-1===g.indexOf("Dx=0, Dy=0")||_.test(u)&&100!==parseFloat(RegExp.$1)||-1===u.indexOf(u.indexOf("Alpha"))&&h.removeAttribute("filter")),!v){var x=V<8?1:-1,k,P,S;for(w=e.ieOffsetX||0,T=e.ieOffsetY||0,e.ieOffsetX=Math.round((p-((r<0?-r:r)*p+(a<0?-a:a)*m))/2+y),e.ieOffsetY=Math.round((m-((l<0?-l:l)*m+(o<0?-o:o)*p))/2+b),kt=0;kt<4;kt++)S=(d=-1!==(k=c[P=rt[kt]]).indexOf("px")?parseFloat(k):tt(this.t,P,parseFloat(k),k.replace(f,""))||0)!==e[P]?kt<2?-e.ieOffsetX:-e.ieOffsetY:kt<2?w-e.ieOffsetX:T-e.ieOffsetY,h[P]=(e[P]=Math.round(d-S*(0===kt||2===kt?1:x)))+"px"}}},Yt=z.set3DTransformRatio=z.setTransformRatio=function(t){var e=this.data,i=this.t.style,s=e.rotation,n=e.rotationX,r=e.rotationY,a=e.scaleX,o=e.scaleY,l=e.scaleZ,h=e.x,c=e.y,u=e.z,d=e.svg,p=e.perspective,f=e.force3D,_=e.skewY,m=e.skewX,v,g,y,b,w,T,x,k,C,P,S,A,E,M,R,I,D,L,z,F,$,N,j;if(_&&(m+=_,s+=_),!((1!==t&&0!==t||"auto"!==f||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&f||u||p||r||n||1!==l)||Lt&&d||!Rt)s||m||d?(s*=O,N=m*O,j=1e5,g=Math.cos(s)*a,w=Math.sin(s)*a,y=Math.sin(s-N)*-o,T=Math.cos(s-N)*o,N&&"simple"===e.skewType&&(v=Math.tan(N-_*O),y*=v=Math.sqrt(1+v*v),T*=v,_&&(v=Math.tan(_*O),g*=v=Math.sqrt(1+v*v),w*=v)),d&&(h+=e.xOrigin-(e.xOrigin*g+e.yOrigin*y)+e.xOffset,c+=e.yOrigin-(e.xOrigin*w+e.yOrigin*T)+e.yOffset,Lt&&(e.xPercent||e.yPercent)&&(R=this.t.getBBox(),h+=.01*e.xPercent*R.width,c+=.01*e.yPercent*R.height),h<(R=1e-6)&&h>-R&&(h=0),c-R&&(c=0)),z=(1e5*g|0)/1e5+","+(1e5*w|0)/1e5+","+(1e5*y|0)/1e5+","+(1e5*T|0)/1e5+","+h+","+c+")",d&&Lt?this.t.setAttribute("transform","matrix("+z):i[At]=(e.xPercent||e.yPercent?"translate("+e.xPercent+"%,"+e.yPercent+"%) matrix(":"matrix(")+z):i[At]=(e.xPercent||e.yPercent?"translate("+e.xPercent+"%,"+e.yPercent+"%) matrix(":"matrix(")+a+",0,0,"+o+","+h+","+c+")";else{if(H&&(a<(R=1e-4)&&a>-R&&(a=l=2e-5),o-R&&(o=l=2e-5),!p||e.z||e.rotationX||e.rotationY||(p=0)),s||m)s*=O,I=g=Math.cos(s),D=w=Math.sin(s),m&&(s-=m*O,I=Math.cos(s),D=Math.sin(s),"simple"===e.skewType&&(v=Math.tan((m-_)*O),I*=v=Math.sqrt(1+v*v),D*=v,e.skewY&&(v=Math.tan(_*O),g*=v=Math.sqrt(1+v*v),w*=v))),y=-D,T=I;else{if(!(r||n||1!==l||p||d))return void(i[At]=(e.xPercent||e.yPercent?"translate("+e.xPercent+"%,"+e.yPercent+"%) translate3d(":"translate3d(")+h+"px,"+c+"px,"+u+"px)"+(1!==a||1!==o?" scale("+a+","+o+")":""));g=T=1,y=w=0}P=1,b=x=k=C=S=A=0,E=p?-1/p:0,M=e.zOrigin,R=1e-6,F=",",$="0",(s=r*O)&&(I=Math.cos(s),k=-(D=Math.sin(s)),S=E*-D,b=g*D,x=w*D,P=I,E*=I,g*=I,w*=I),(s=n*O)&&(v=y*(I=Math.cos(s))+b*(D=Math.sin(s)),L=T*I+x*D,C=P*D,A=E*D,b=y*-D+b*I,x=T*-D+x*I,P*=I,E*=I,y=v,T=L),1!==l&&(b*=l,x*=l,P*=l,E*=l),1!==o&&(y*=o,T*=o,C*=o,A*=o),1!==a&&(g*=a,w*=a,k*=a,S*=a),(M||d)&&(M&&(h+=b*-M,c+=x*-M,u+=P*-M+M),d&&(h+=e.xOrigin-(e.xOrigin*g+e.yOrigin*y)+e.xOffset,c+=e.yOrigin-(e.xOrigin*w+e.yOrigin*T)+e.yOffset),h-R&&(h="0"),c-R&&(c="0"),u-R&&(u=0)),z=e.xPercent||e.yPercent?"translate("+e.xPercent+"%,"+e.yPercent+"%) matrix3d(":"matrix3d(",z+=(g-R?"0":g)+","+(w-R?"0":w)+","+(k-R?"0":k),z+=","+(S-R?"0":S)+","+(y-R?"0":y)+","+(T-R?"0":T),n||r||1!==l?(z+=","+(C-R?"0":C)+","+(A-R?"0":A)+","+(b-R?"0":b),z+=","+(x-R?"0":x)+","+(P-R?"0":P)+","+(E-R?"0":E)+","):z+=",0,0,0,0,1,0,",z+=h+","+c+","+u+","+(p?1+-u/p:1)+")",i[At]=z}},Ut,Qt,Gt,Zt
;(h=It.prototype).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,Pt("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,s,n,r,o,l){if(n._lastParsedTransform===l)return r;n._lastParsedTransform=l;var h=l.scale&&"function"==typeof l.scale?l.scale:0,c;"function"==typeof l[s]&&(c=l[s],l[s]=e),h&&(l.scale=h(U,t));var u=t._gsTransform,d=t.style,p=1e-6,f=Ot.length,_=l,m={},v="transformOrigin",g=Xt(t,a,!0,_.parseTransform),y=_.transform&&("function"==typeof _.transform?_.transform(U,Y):_.transform),b,w,T,x,k,C,P,S,A;if(g.skewType=_.skewType||g.skewType||i.defaultSkewType,n._transform=g,y&&"string"==typeof y&&At)(w=D.style)[At]=y,w.display="block",w.position="absolute",-1!==y.indexOf("%")&&(w.width=K(t,"width"),w.height=K(t,"height")),R.body.appendChild(D),b=Xt(D,null,!1),"simple"===g.skewType&&(b.scaleY*=Math.cos(b.skewX*O)),g.svg&&(C=g.xOrigin,P=g.yOrigin,b.x-=g.xOffset,b.y-=g.yOffset,(_.transformOrigin||_.svgOrigin)&&(y={},Nt(t,ot(_.transformOrigin),y,_.svgOrigin,_.smoothOrigin,!0),C=y.xOrigin,P=y.yOrigin,b.x-=y.xOffset-g.xOffset,b.y-=y.yOffset-g.yOffset),(C||P)&&(S=qt(D,!0),b.x-=C-(C*S[0]+P*S[2]),b.y-=P-(C*S[1]+P*S[3]))),R.body.removeChild(D),b.perspective||(b.perspective=g.perspective),null!=_.xPercent&&(b.xPercent=ht(_.xPercent,g.xPercent)),null!=_.yPercent&&(b.yPercent=ht(_.yPercent,g.yPercent));else if("object"==typeof _){if(b={scaleX:ht(null!=_.scaleX?_.scaleX:_.scale,g.scaleX),scaleY:ht(null!=_.scaleY?_.scaleY:_.scale,g.scaleY),scaleZ:ht(_.scaleZ,g.scaleZ),x:ht(_.x,g.x),y:ht(_.y,g.y),z:ht(_.z,g.z),xPercent:ht(_.xPercent,g.xPercent),yPercent:ht(_.yPercent,g.yPercent),perspective:ht(_.transformPerspective,g.perspective)},null!=(k=_.directionalRotation))if("object"==typeof k)for(w in k)_[w]=k[w];else _.rotation=k;"string"==typeof _.x&&-1!==_.x.indexOf("%")&&(b.x=0,b.xPercent=ht(_.x,g.xPercent)),"string"==typeof _.y&&-1!==_.y.indexOf("%")&&(b.y=0,b.yPercent=ht(_.y,g.yPercent)),b.rotation=ct("rotation"in _?_.rotation:"shortRotation"in _?_.shortRotation+"_short":"rotationZ"in _?_.rotationZ:g.rotation,g.rotation,"rotation",m),Rt&&(b.rotationX=ct("rotationX"in _?_.rotationX:"shortRotationX"in _?_.shortRotationX+"_short":g.rotationX||0,g.rotationX,"rotationX",m),b.rotationY=ct("rotationY"in _?_.rotationY:"shortRotationY"in _?_.shortRotationY+"_short":g.rotationY||0,g.rotationY,"rotationY",m)),b.skewX=ct(_.skewX,g.skewX),b.skewY=ct(_.skewY,g.skewY)}for(Rt&&null!=_.force3D&&(g.force3D=_.force3D,x=!0),(T=g.force3D||g.z||g.rotationX||g.rotationY||b.z||b.rotationX||b.rotationY||b.perspective)||null==_.scale||(b.scaleZ=1);--f>-1;)((y=b[A=Ot[f]]-g[A])>p||y<-p||null!=_[A]||null!=E[A])&&(x=!0,r=new wt(g,A,g[A],y,r),A in m&&(r.e=m[A]),r.xs0=0,r.plugin=o,n._overwriteProps.push(r.n));return y=_.transformOrigin,g.svg&&(y||_.svgOrigin)&&(C=g.xOffset,P=g.yOffset,Nt(t,ot(y),b,_.svgOrigin,_.smoothOrigin),r=Tt(g,"xOrigin",(u?g:b).xOrigin,b.xOrigin,r,"transformOrigin"),r=Tt(g,"yOrigin",(u?g:b).yOrigin,b.yOrigin,r,"transformOrigin"),C===g.xOffset&&P===g.yOffset||(r=Tt(g,"xOffset",u?C:g.xOffset,g.xOffset,r,"transformOrigin"),r=Tt(g,"yOffset",u?P:g.yOffset,g.yOffset,r,"transformOrigin")),y="0px 0px"),(y||Rt&&T&&g.zOrigin)&&(At?(x=!0,A=Mt,y=(y||K(t,A,a,!1,"50% 50%"))+"",(r=new wt(d,A,0,0,r,-1,"transformOrigin")).b=d[A],r.plugin=o,Rt?(w=g.zOrigin,y=y.split(" "),g.zOrigin=(y.length>2&&(0===w||"0px"!==y[2])?parseFloat(y[2]):w)||0,r.xs0=r.e=y[0]+" "+(y[1]||"50%")+" 0px",(r=new wt(g,"zOrigin",0,0,r,-1,r.n)).b=w,r.xs0=r.e=g.zOrigin):r.xs0=r.e=y):ot(y+"",g)),x&&(n._transformType=g.svg&&Lt||!T&&3!==this._transformType?2:3),c&&(l[s]=c),h&&(l.scale=h),r},prefix:!0}),Pt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Pt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,n,o){e=this.format(e);var l=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],h=t.style,c,u,d,p,f,_,m,v,g,y,b,w,T,x,k,C;for(g=parseFloat(t.offsetWidth),y=parseFloat(t.offsetHeight),c=e.split(" "),u=0;u-1;)(f=-1!==(h=u[p]).indexOf("%"))!==(-1!==d[p].indexOf("%"))&&(_=0===p?t.offsetWidth-L.width:t.offsetHeight-L.height,u[p]=f?parseFloat(h)/100*_+"px":parseFloat(h)/_*100+"%");h=u.join(" ")}return this.parseComplex(t.style,h,c,n,r)},formatter:ot}),Pt("backgroundSize",{defaultValue:"0 0",formatter:function(t){return"co"===(t+="").substr(0,2)?t:ot(-1===t.indexOf(" ")?t+" "+t:t)}}),Pt("perspective",{defaultValue:"0px",prefix:!0}),Pt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Pt("transformStyle",{prefix:!0}),Pt("backfaceVisibility",{prefix:!0}),Pt("userSelect",{prefix:!0}),Pt("margin",{parser:vt("marginTop,marginRight,marginBottom,marginLeft")}),Pt("padding",{parser:vt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Pt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,s,n,r){var o,l,h;return V<9?(l=t.currentStyle,h=V<8?" ":",",o="rect("+l.clipTop+h+l.clipRight+h+l.clipBottom+h+l.clipLeft+")",e=this.format(e).split(",").join(h)):(o=this.format(K(t,this.p,a,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,o,e,n,r)}}),Pt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Pt("autoRound,strictUnits",{parser:function(t,e,i,s,n){return n}}),Pt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,s,n,r){var o=K(t,"borderTopWidth",a,!1,"0px"),l=this.format(e).split(" "),h=l[0].replace(f,"");return"px"!==h&&(o=parseFloat(o)/tt(t,"borderTopWidth",1,h)+h),this.parseComplex(t.style,this.format(o+" "+K(t,"borderTopStyle",a,!1,"solid")+" "+K(t,"borderTopColor",a,!1,"#000")),l.join(" "),n,r)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(_t)||["#000"])[0]}}),Pt("borderWidth",{parser:vt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Pt("float,cssFloat,styleFloat",{parser:function(t,e,i,s,n,r){var a=t.style,o="cssFloat"in a?"cssFloat":"styleFloat";return new wt(a,o,0,0,n,-1,i,!1,0,a[o],e)}});var Jt=function(t){var e=this.t,i=e.filter||K(this.data,"filter")||"",s=this.s+this.c*t|0,n;100===s&&(-1===i.indexOf("atrix(")&&-1===i.indexOf("radient(")&&-1===i.indexOf("oader(")?(e.removeAttribute("filter"),n=!K(this.data,"filter")):(e.filter=i.replace(v,""),n=!0)),n||(this.xn1&&(e.filter=i=i||"alpha(opacity="+s+")"),-1===i.indexOf("pacity")?0===s&&this.xn1||(e.filter=i+" alpha(opacity="+s+")"):e.filter=i.replace(_,"opacity="+s))};Pt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,s,n,r){var o=parseFloat(K(t,"opacity",a,!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"===K(t,"visibility",a)&&0!==e&&(o=0),q?n=new wt(l,"opacity",o,e-o,n):((n=new wt(l,"opacity",100*o,100*(e-o),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=r,n.setRatio=Jt),h&&((n=new wt(l,"visibility",0,0,n,-1,null,!1,0,0!==o?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",s._overwriteProps.push(n.n),s._overwriteProps.push(i)),n}});var Kt=function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(y,"-$1").toLowerCase())):t.removeAttribute(e))},te=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:Kt(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)};Pt("className",{parser:function(t,e,i,s,r,o,l){var h=t.getAttribute("class")||"",c=t.style.cssText,u,d,p,f,_;if((r=s._classNamePT=new wt(t,i,0,0,r,2)).setRatio=te,r.pr=-11,n=!0,r.b=h,d=it(t,a),p=t._gsClassPT){for(f={},_=p.data;_;)f[_.p]=1,_=_._next;p.setRatio(1)}return t._gsClassPT=r,r.e="="!==e.charAt(1)?e:h.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",r.e),u=st(t,d,it(t),l,f),t.setAttribute("class",h),r.data=u.firstMPT,t.style.cssText=c,r=r.xfirst=s.parse(t,u.difs,r,o)}});var ee=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e=this.t.style,i=l.transform.parse,s,n,r,a,o;if("all"===this.e)e.cssText="",a=!0;else for(r=(s=this.e.split(" ").join("").split(",")).length;--r>-1;)n=s[r],l[n]&&(l[n].parse===i?a=!0:n="transformOrigin"===n?Mt:l[n].p),Kt(e,n);a&&(Kt(e,At),(o=this.t._gsTransform)&&(o.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Pt("clearProps",{parser:function(t,e,i,s,r){return(r=new wt(t,i,0,0,r,2)).setRatio=ee,r.e=e,r.pr=-10,r.data=s._tween,n=!0,r}}),h="bezier,throwProps,physicsProps,physics2D".split(","),kt=h.length;kt--;)St(h[kt]);(h=i.prototype)._firstPT=h._lastParsedTransform=h._transform=null,h._onInitTween=function(t,e,s,h){if(!t.nodeType)return!1;this._target=Y=t,this._tween=s,this._vars=e,U=h,$=e.autoRound,n=!1,r=e.suffixMap||i.suffixMap,a=J(t,""),o=this._overwriteProps;var c=t.style,u,d,p,f,_,v,g,y,b;if(N&&""===c.zIndex&&("auto"!==(u=K(t,"zIndex",a))&&""!==u||this._addLazySet(c,"zIndex",0)),"string"==typeof e&&(f=c.cssText,u=it(t,a),c.cssText=f+";"+e,u=st(t,u,it(t)).difs,!q&&m.test(e)&&(u.opacity=parseFloat(RegExp.$1)),e=u,c.cssText=f),e.className?this._firstPT=d=l.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=d=this.parse(t,e,null),this._transformType){for(b=3===this._transformType,At?j&&(N=!0,""===c.zIndex&&("auto"!==(g=K(t,"zIndex",a))&&""!==g||this._addLazySet(c,"zIndex",0)),B&&this._addLazySet(c,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(b?"visible":"hidden"))):c.zoom=1,p=d;p&&p._next;)p=p._next;y=new wt(t,"transform",0,0,null,2),this._linkCSSP(y,null,p),y.setRatio=At?Yt:Wt,y.data=this._transform||Xt(t,a,!0),y.tween=s,y.pr=-1,o.pop()}if(n){for(;d;){for(v=d._next,p=f;p&&p.pr>d.pr;)p=p._next;(d._prev=p?p._prev:_)?d._prev._next=d:f=d,(d._next=p)?p._prev=d:_=d,d=v}this._firstPT=f}return!0},h.parse=function(t,e,i,s){var n=t.style,o,h,c,u,d,p,_,m,v,y;for(o in e){if("function"==typeof(p=e[o])&&(p=p(U,Y)),h=l[o])i=h.parse(t,p,o,this,i,s,e);else{if("--"===o.substr(0,2)){this._tween._propLookup[o]=this._addTween.call(this._tween,t.style,"setProperty",J(t).getPropertyValue(o)+"",p+"",o,!1,o);continue}d=K(t,o,a)+"",v="string"==typeof p,"color"===o||"fill"===o||"stroke"===o||-1!==o.indexOf("Color")||v&&g.test(p)?(v||(p=((p=pt(p)).length>3?"rgba(":"rgb(")+p.join(",")+")"),i=xt(n,o,d,p,!0,"transparent",i,0,s)):v&&S.test(p)?i=xt(n,o,d,p,!0,null,i,0,s):(_=(c=parseFloat(d))||0===c?d.substr((c+"").length):"",""!==d&&"auto"!==d||("width"===o||"height"===o?(c=at(t,o,a),_="px"):"left"===o||"top"===o?(c=et(t,o,a),_="px"):(c="opacity"!==o?0:1,_="")),(y=v&&"="===p.charAt(1))?(u=parseInt(p.charAt(0)+"1",10),p=p.substr(2),u*=parseFloat(p),m=p.replace(f,"")):(u=parseFloat(p),m=v?p.replace(f,""):""),""===m&&(m=o in r?r[o]:_),p=u||0===u?(y?u+c:u)+m:e[o],_!==m&&(""===m&&"lineHeight"!==o||(u||0===u)&&c&&(c=tt(t,o,c,_),"%"===m?(c/=tt(t,o,100,"%")/100,!0!==e.strictUnits&&(d=c+"%")):"em"===m||"rem"===m||"vw"===m||"vh"===m?c/=tt(t,o,1,m):"px"!==m&&(u=tt(t,o,u,m),m="px"),y&&(u||0===u)&&(p=u+c+m))),y&&(u+=c),!c&&0!==c||!u&&0!==u?void 0!==n[o]&&(p||p+""!="NaN"&&null!=p)?(i=new wt(n,o,u||c||0,0,i,-1,o,!1,0,d,p)).xs0="none"!==p||"display"!==o&&-1===o.indexOf("Style")?p:d:W("invalid "+o+" tween value: "+e[o]):(i=new wt(n,o,c,u-c,i,0,o,!1!==$&&("px"===m||"zIndex"===o),0,d,p)).xs0=m)}s&&i&&!i.plugin&&(i.plugin=s)}return i},h.setRatio=function(t){var e=this._firstPT,i=1e-6,s,n,r;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||-1e-6===this._tween._rawPrevTime)for(;e;){if(s=e.c*t+e.s,e.r?s=e.r(s):s-i&&(s=0),e.type)if(1===e.type)if(2===(r=e.l))e.t[e.p]=e.xs0+s+e.xs1+e.xn1+e.xs2;else if(3===r)e.t[e.p]=e.xs0+s+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===r)e.t[e.p]=e.xs0+s+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===r)e.t[e.p]=e.xs0+s+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(n=e.xs0+s+e.xs1,r=1;r-1;)se(t[n],e,i);else for(n=(s=t.childNodes).length;--n>-1;)a=(r=s[n]).type,r.style&&(e.push(it(r)),i&&i.push(r)),1!==a&&9!==a&&11!==a||!r.childNodes.length||se(r,e,i)};return i.cascadeTo=function(t,i,s){var n=e.to(t,i,s),r=[n],a=[],o=[],l=[],h=e._internals.reservedProps,c,u,d,p;for(t=n._targets||n.target,se(t,a,l),n.render(i,!0,!0),se(t,o),n.render(0,!0,!0),n._enabled(!0),c=l.length;--c>-1;)if((u=st(l[c],a[c],o[c])).firstMPT){for(d in u=u.difs,s)h[d]&&(u[d]=s[d]);for(d in p={},u)p[d]=a[c][d];r.push(e.fromTo(l[c],i,p,u))}return r},t.activate([i]),i},!0),function(){var t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}),e=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(i){return(Math.round(i/t)*t*e|0)/e}},i=function(t,e){for(;t;)t.f||t.blob||(t.m=e||Math.round),t=t._next},s=t.prototype;s._onInitAllProps=function(){var t=this._tween,s=t.vars.roundProps,n={},r=t._propLookup.roundProps,a,o,l,h;if("object"!=typeof s||s.push)for("string"==typeof s&&(s=s.split(",")),l=s.length;--l>-1;)n[s[l]]=Math.round;else for(h in s)n[h]=e(s[h]);for(h in n)for(a=t._firstPT;a;)o=a._next,a.pg?a.t._mod(n):a.n===h&&(2===a.f&&a.t?i(a.t._firstPT,n[h]):(this._add(a.t,h,a.s,a.c,n[h]),o&&(o._prev=a._prev),a._prev?a._prev._next=o:t._firstPT===a&&(t._firstPT=o),a._next=a._prev=null,t._propLookup[h]=r)),a=o;return!1},s._add=function(t,e,i,s,n){this._addTween(t,e,i,i+s,e,n||Math.round),this._overwriteProps.push(e)}}(),_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(t,e,i,s){var n,r;if("function"!=typeof t.setAttribute)return!1;for(n in e)"function"==typeof(r=e[n])&&(r=r(s,t)),this._addTween(t,"setAttribute",t.getAttribute(n)+"",r+"",n,!1,n),this._overwriteProps.push(n);return!0}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(t,e,i,s){"object"!=typeof e&&(e={rotation:e}),this.finals={};var n=!0===e.useRadians?2*Math.PI:360,r=1e-6,a,o,l,h,c,u;for(a in e)"useRadians"!==a&&("function"==typeof(h=e[a])&&(h=h(s,t)),o=(u=(h+"").split("_"))[0],l=parseFloat("function"!=typeof t[a]?t[a]:t[a.indexOf("set")||"function"!=typeof t["get"+a.substr(3)]?a:"get"+a.substr(3)]()),c=(h=this.finals[a]="string"==typeof o&&"="===o.charAt(1)?l+parseInt(o.charAt(0)+"1",10)*Number(o.substr(2)):Number(o)||0)-l,u.length&&(-1!==(o=u.join("_")).indexOf("short")&&(c%=n)!==c%(n/2)&&(c=c<0?c+n:c-n),-1!==o.indexOf("_cw")&&c<0?c=(c+9999999999*n)%n-(c/n|0)*n:-1!==o.indexOf("ccw")&&c>0&&(c=(c-9999999999*n)%n-(c/n|0)*n)),(c>r||c<-r)&&(this._addTween(t,a,l,l+c,a),this._overwriteProps.push(a)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(t){var e=_gsScope.GreenSockGlobals||_gsScope,i=e.com.greensock,s=2*Math.PI,n=Math.PI/2,r=i._class,a=function(e,i){var s=r("easing."+e,function(){},!0),n=s.prototype=new t;return n.constructor=s,n.getRatio=i,s},o=t.register||function(){},l=function(t,e,i,s,n){var a=r("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new s},!0);return o(a,t),a},h=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)},c=function(e,i){var s=r("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),n=s.prototype=new t;return n.constructor=s,n.getRatio=i,n.config=function(t){return new s(t)},s},u=l("Back",c("BackOut",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),c("BackIn",function(t){return t*t*((this._p1+1)*t-this._p1)}),c("BackInOut",function(t){return(t*=2)<1?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),d=r("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=!0===i},!0),p=d.prototype=new t,f,_,m,v;return p.constructor=d,p.getRatio=function(t){var e=t+(.5-t)*this._p;return tthis._p3?this._calcEnd?1===t?0:1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcEnd?1:e},d.ease=new d(.7,.7),p.config=d.config=function(t,e,i){return new d(t,e,i)},(p=(f=r("easing.SteppedEase",function(t,e){t=t||1,this._p1=1/t,this._p2=t+(e?0:1),this._p3=e?1:0},!0)).prototype=new t).constructor=f,p.getRatio=function(t){return t<0?t=0:t>=1&&(t=.999999999),((this._p2*t|0)+this._p3)*this._p1},p.config=f.config=function(t,e){return new f(t,e)},(p=(_=r("easing.ExpoScaleEase",function(t,e,i){this._p1=Math.log(e/t),this._p2=e-t,this._p3=t,this._ease=i},!0)).prototype=new t).constructor=_,p.getRatio=function(t){return this._ease&&(t=this._ease.getRatio(t)),(this._p3*Math.exp(this._p1*t)-this._p3)/this._p2},p.config=_.config=function(t,e,i){return new _(t,e,i)},(p=(m=r("easing.RoughEase",function(e){for(var i=(e=e||{}).taper||"none",s=[],n=0,r=0|(e.points||20),a=r,o=!1!==e.randomize,l=!0===e.clamp,c=e.template instanceof t?e.template:null,u="number"==typeof e.strength?.4*e.strength:.4,d,p,f,_,m,v;--a>-1;)d=o?Math.random():1/r*a,p=c?c.getRatio(d):d,f="none"===i?u:"out"===i?(_=1-d)*_*u:"in"===i?d*d*u:d<.5?(_=2*d)*_*.5*u:(_=2*(1-d))*_*.5*u,o?p+=Math.random()*f-.5*f:a%2?p+=.5*f:p-=.5*f,l&&(p>1?p=1:p<0&&(p=0)),s[n++]={x:d,y:p};for(s.sort(function(t,e){return t.x-e.x}),v=new h(1,1,null),a=r;--a>-1;)m=s[a],v=new h(m.x,m.y,v);this._prev=new h(0,0,0!==v.t?v:v.next)},!0)).prototype=new t).constructor=m,p.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&&t<=e.t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},p.config=function(t){return new m(t)},m.ease=new m,l("Bounce",a("BounceOut",function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),a("BounceIn",function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),a("BounceInOut",function(t){var e=t<.5;return(t=e?1-2*t:2*t-1)<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?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})),l("Circ",a("CircOut",function(t){return Math.sqrt(1-(t-=1)*t)}),a("CircIn",function(t){return-(Math.sqrt(1-t*t)-1)}),a("CircInOut",function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)})),l("Elastic",(v=function(e,i,n){var a=r("easing."+e,function(t,e){this._p1=t>=1?t:1,this._p2=(e||n)/(t<1?t:1),this._p3=this._p2/s*(Math.asin(1/this._p1)||0),this._p2=s/this._p2},!0),o=a.prototype=new t;return o.constructor=a,o.getRatio=i,o.config=function(t,e){return new a(t,e)},a})("ElasticOut",function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*this._p2)+1},.3),v("ElasticIn",function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*this._p2)},.3),v("ElasticInOut",function(t){return(t*=2)<1?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)*.5+1},.45)),l("Expo",a("ExpoOut",function(t){return 1-Math.pow(2,-10*t)}),a("ExpoIn",function(t){return Math.pow(2,10*(t-1))-.001}),a("ExpoInOut",function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))})),l("Sine",a("SineOut",function(t){return Math.sin(t*n)}),a("SineIn",function(t){return 1-Math.cos(t*n)}),a("SineInOut",function(t){return-.5*(Math.cos(Math.PI*t)-1)})),r("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),o(e.SlowMo,"SlowMo","ease,"),o(m,"RoughEase","ease,"),o(f,"SteppedEase","ease,"),u},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i={},s=t.document,n=t.GreenSockGlobals=t.GreenSockGlobals||t;if(n.TweenLite)return n.TweenLite;var r=function(t){var e=t.split("."),i=n,s;for(s=0;s-1;)(d=m[s[c]]||new v(s[c],[])).gsClass?(l[c]=d.gsClass,u--):h&&d.sc.push(this);if(0===u&&a){if(f=(p=("com.greensock."+e).split(".")).pop(),_=r(p.join("."))[f]=this.gsClass=a.apply(a,l),o)if(n[f]=i[f]=_,"undefined"!=typeof module&&module.exports)if("TweenMax"===e)for(c in module.exports=i.TweenMax=_,i)_[c]=i[c];else i.TweenMax&&(i.TweenMax[f]=_);else"function"==typeof define&&define.amd&&define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+e.split(".").pop(),[],function(){return _});for(c=0;c-1;)for(h=n[r],l=s?y("easing."+h,null,!0):a.easing[h]||{},c=o.length;--c>-1;)u=o[c],k[h+"."+u]=k[u+h]=l[u]=t.getRatio?t:t[u]||new t};for((p=x.prototype)._calcEnd=!1,p.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:t<.5?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:t<.5?s/2:1-s/2},d=(u=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--d>-1;)p=u[d]+",Power"+d,C(new x(null,null,1,d),p,"easeOut",!0),C(new x(null,null,2,d),p,"easeIn"+(0===d?",easeNone":"")),C(new x(null,null,3,d),p,"easeInOut");k.linear=a.easing.Linear.easeIn,k.swing=a.easing.Quad.easeInOut;var P=y("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this});(p=P.prototype).addEventListener=function(t,e,i,s,n){n=n||0;var r=this._listeners[t],a=0,o,l;for(this!==f||_||f.wake(),null==r&&(this._listeners[t]=r=[]),l=r.length;--l>-1;)(o=r[l]).c===e&&o.s===i?r.splice(l,1):0===a&&o.pr-1;)if(i[s].c===e)return void i.splice(s,1)},p.dispatchEvent=function(t){var e=this._listeners[t],i,s,n;if(e)for((i=e.length)>1&&(e=e.slice(0)),s=this._eventTarget;--i>-1;)(n=e[i])&&(n.up?n.c.call(n.s||s,{type:t,target:s}):n.c.call(n.s||s))};var S=t.requestAnimationFrame,O=t.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},E=A();for(d=(u=["ms","moz","webkit","o"]).length;--d>-1&&!S;)S=t[u[d]+"RequestAnimationFrame"],O=t[u[d]+"CancelAnimationFrame"]||t[u[d]+"CancelRequestAnimationFrame"];y("Ticker",function(t,e){var i=this,n=A(),r=!(!1===e||!S)&&"auto",a=500,o=33,l="tick",c,u,d,p,m,v=function(t){var e=A()-E,s,r;e>a&&(n+=e-o),E+=e,i.time=(E-n)/1e3,s=i.time-m,(!c||s>0||!0===t)&&(i.frame++,m+=s+(s>=p?.004:p-s),r=!0),!0!==t&&(d=u(v)),r&&i.dispatchEvent("tick")};P.call(i),i.time=i.frame=0,i.tick=function(){v(!0)},i.lagSmoothing=function(t,e){if(!arguments.length)return a<1e10;a=t||1e10,o=Math.min(e,a,0)},i.sleep=function(){null!=d&&(r&&O?O(d):clearTimeout(d),u=h,d=null,i===f&&(_=!1))},i.wake=function(t){null!==d?i.sleep():t?n+=-E+(E=A()):i.frame>10&&(E=A()-a+5),u=0===c?h:r&&S?S:function(t){return setTimeout(t,1e3*(m-i.time)+1|0)},i===f&&(_=!0),v(2)},i.fps=function(t){if(!arguments.length)return c;p=1/((c=t)||60),m=this.time+p,i.wake()},i.useRAF=function(t){if(!arguments.length)return r;i.sleep(),r=t,i.fps(c)},i.fps(t),setTimeout(function(){"auto"===r&&i.frame<5&&"hidden"!==(s||{}).visibilityState&&i.useRAF(!1)},1500)}),(p=a.Ticker.prototype=new a.events.EventDispatcher).constructor=a.Ticker;var M=y("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=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,Z){_||f.wake();var i=this.vars.useFrames?G:Z;i.add(this,i._time),this.vars.paused&&this.paused(!0)}});f=M.ticker=new a.Ticker,(p=M.prototype)._dirty=p._gc=p._initted=p._paused=!1,p._totalTime=p._time=0,p._rawPrevTime=-1,p._next=p._last=p._onUpdate=p._timeline=p.timeline=null,p._paused=!1;var R=function(){_&&A()-E>2e3&&("hidden"!==(s||{}).visibilityState||!f.lagSmoothing())&&f.wake();var t=setTimeout(R,2e3);t.unref&&t.unref()};R(),p.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},p.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},p.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},p.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},p.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},p.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},p.render=function(t,e,i){},p.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},p.isActive=function(){var t=this._timeline,e=this._startTime,i;return!t||!this._gc&&!this._paused&&t.isActive()&&(i=t.rawTime(!0))>=e&&i-1;)"{self}"===t[e]&&(i[e]=this);return i},p._callback=function(t){var e=this.vars,i=e[t],s=e[t+"Params"],n=e[t+"Scope"]||e.callbackScope||this,r;switch(s?s.length:0){case 0:i.call(n);break;case 1:i.call(n,s[0]);break;case 2:i.call(n,s[0],s[1]);break;default:i.apply(n,s)}},p.eventCallback=function(t,e,i,s){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=c(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[t+"Scope"]=s),"onUpdate"===t&&(this._onUpdate=e)}return this},p.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},p.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},p.totalTime=function(t,e,i){if(_||f.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var s=this._totalDuration,n=this._timeline;if(t>s&&!i&&(t=s),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?s-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(F.length&&K(),this.render(t,e,!1),F.length&&K())}return this},p.progress=p.totalProgress=function(t,e){var i=this.duration();return arguments.length?this.totalTime(i*t,e):i?this._time/i:this.ratio},p.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},p.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},p.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,i;for(t=t||1e-10,this._timeline&&this._timeline.smoothChildTiming&&(i=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=i-(i-this._startTime)*this._timeScale/t),this._timeScale=t,i=this.timeline;i&&i.timeline;)i._dirty=!0,i.totalDuration(),i=i.timeline;return this},p.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},p.paused=function(t){if(!arguments.length)return this._paused;var e=this._timeline,i,s;return t!=this._paused&&e&&(_||t||f.wake(),s=(i=e.rawTime())-this._pauseTime,!t&&e.smoothChildTiming&&(this._startTime+=s,this._uncache(!1)),this._pauseTime=t?i:null,this._paused=t,this._active=this.isActive(),!t&&0!==s&&this._initted&&this.duration()&&(i=e.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,this.render(i,i===this._totalTime,!0))),this._gc&&!t&&this._enabled(!0,!1),this};var I=y("core.SimpleTimeline",function(t){M.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0});(p=I.prototype=new M).constructor=I,p.kill()._gc=!1,p._first=p._last=p._recent=null,p._sortChildren=!1,p.add=p.insert=function(t,e,i,s){var n,r;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),n=this._last,this._sortChildren)for(r=t._startTime;n&&n._startTime>r;)n=n._prev;return n?(t._next=n._next,n._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=n,this._recent=t,this._timeline&&this._uncache(!0),this},p._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},p.render=function(t,e,i){var s=this._first,n;for(this._totalTime=this._time=this._rawPrevTime=t;s;)n=s._next,(s._active||t>=s._startTime&&!s._paused&&!s._gc)&&(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=n},p.rawTime=function(){return _||f.wake(),this._totalTime};var D=y("TweenLite",function(e,i,s){if(M.call(this,i,s),this.render=D.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:D.selector(e)||e;var n=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),r=this.vars.overwrite,a,o,h;if(this._overwrite=r=null==r?Q[D.defaultOverwrite]:"number"==typeof r?r>>0:Q[r],(n||e instanceof Array||e.push&&c(e))&&"number"!=typeof e[0])for(this._targets=h=l(e),this._propLookup=[],this._siblings=[],a=0;a1&&it(o,this,null,1,this._siblings[a])):"string"==typeof(o=h[a--]=D.selector(o))&&h.splice(a+1,1):h.splice(a--,1);else this._propLookup={},this._siblings=tt(e,this,!1),1===r&&this._siblings.length>1&&it(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-1e-10,this.render(Math.min(0,-this._delay)))},!0),L=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},z=function(t,e){var i={},s;for(s in t)U[s]||s in e&&"transform"!==s&&"x"!==s&&"y"!==s&&"width"!==s&&"height"!==s&&"className"!==s&&"border"!==s||!(!X[s]||X[s]&&X[s]._autoCSS)||(i[s]=t[s],delete t[s]);t.css=i};(p=D.prototype=new M).constructor=D,p.kill()._gc=!1,p.ratio=0,p._firstPT=p._targets=p._overwrittenProps=p._startAt=null,p._notifyPluginsOfEnabled=p._lazy=!1,D.version="2.0.0",D.defaultEase=p._ease=new x(null,null,1,1),D.defaultOverwrite="auto",D.ticker=f,D.autoSleep=120,D.lagSmoothing=function(t,e){f.lagSmoothing(t,e)},D.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(D.selector=i,i(e)):(s||(s=t.document),s?s.querySelectorAll?s.querySelectorAll(e):s.getElementById("#"===e.charAt(0)?e.substr(1):e):e)};var F=[],$={},N=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,j=/[\+-]=-?[\.\d]/,H=function(t){for(var e=this._firstPT,i=1e-6,s;e;)s=e.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:e.c*t+e.s,e.m?s=e.m.call(this._tween,s,this._target||e.t,this._tween):s-i&&!e.blob&&(s=0),e.f?e.fp?e.t[e.p](e.fp,s):e.t[e.p](s):e.t[e.p]=s,e=e._next},B=function(t,e,i,s){var n=[],r=0,a="",o=0,l,h,c,u,d,p,f;for(n.start=t,n.end=e,t=n[0]=t+"",e=n[1]=e+"",i&&(i(n),t=n[0],e=n[1]),n.length=0,l=t.match(N)||[],h=e.match(N)||[],s&&(s._next=null,s.blob=1,n._firstPT=n._applyPT=s),d=h.length,u=0;u-1;)(e=F[t])&&!1!==e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);F.length=0};Z._startTime=f.time,G._startTime=f.frame,Z._active=G._active=!0,setTimeout(K,1),M._updateRoot=D.render=function(){var t,e,i;if(F.length&&K(),Z.render((f.time-Z._startTime)*Z._timeScale,!1,!1),G.render((f.frame-G._startTime)*G._timeScale,!1,!1),F.length&&K(),f.frame>=J){for(i in J=f.frame+(parseInt(D.autoSleep,10)||120),W){for(t=(e=W[i].tweens).length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete W[i]}if((!(i=Z._first)||i._paused)&&D.autoSleep&&!G._first&&1===f._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||f.sleep()}}},f.addEventListener("tick",M._updateRoot);var tt=function(t,e,i){var s=t._gsTweenID,n,r;if(W[s||(t._gsTweenID=s="t"+Y++)]||(W[s]={target:t,tweens:[]}),e&&((n=W[s].tweens)[r=n.length]=e,i))for(;--r>-1;)n[r]===e&&n.splice(r,1);return W[s].tweens},et=function(t,e,i,s){var n=t.vars.onOverwrite,r,a;return n&&(r=n(t,e,i,s)),(n=D.onOverwrite)&&(a=n(t,e,i,s)),!1!==r&&!1!==a},it=function(t,e,i,s,n){var r,a,o,l;if(1===s||s>=4){for(l=n.length,r=0;r-1;)(o=n[r])===e||o._gc||o._paused||(o._timeline!==e._timeline?(p=p||st(e,0,d),0===st(o,p,d)&&(c[u++]=o)):o._startTime<=h&&o._startTime+o.totalDuration()/o._timeScale>h&&((d||!o._initted)&&h-o._startTime<=2e-10||(c[u++]=o)));for(r=u;--r>-1;)if(o=c[r],2===s&&o._kill(i,t,e)&&(a=!0),2!==s||!o._firstPT&&o._initted){if(2!==s&&!et(o,e))continue;o._enabled(!1,!1)&&(a=!0)}return a},st=function(t,e,i){for(var s=t._timeline,n=s._timeScale,r=t._startTime;s._timeline;){if(r+=s._startTime,n*=s._timeScale,s._paused)return-100;s=s._timeline}return(r/=n)>e?r-e:i&&r===e||!t._initted&&r-e<2e-10?1e-10:(r+=t.totalDuration()/t._timeScale/n)>e+1e-10?0:r-e-1e-10};p._init=function(){var t=this.vars,e=this._overwrittenProps,i=this._duration,s=!!t.immediateRender,n=t.ease,r,a,o,l,h,c;if(t.startAt){for(l in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),h={},t.startAt)h[l]=t.startAt[l];if(h.data="isStart",h.overwrite=!1,h.immediateRender=!0,h.lazy=s&&!1!==t.lazy,h.startAt=h.delay=null,h.onUpdate=t.onUpdate,h.onUpdateParams=t.onUpdateParams,h.onUpdateScope=t.onUpdateScope||t.callbackScope||this,this._startAt=D.to(this.target||{},0,h),s)if(this._time>0)this._startAt=null;else if(0!==i)return}else if(t.runBackwards&&0!==i)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(l in 0!==this._time&&(s=!1),o={},t)U[l]&&"autoCSS"!==l||(o[l]=t[l]);if(o.overwrite=0,o.data="isFromStart",o.lazy=s&&!1!==t.lazy,o.immediateRender=s,this._startAt=D.to(this.target,0,o),s){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=n=n?n instanceof x?n:"function"==typeof n?new x(n,t.easeParams):k[n]||D.defaultEase:D.defaultEase,t.easeParams instanceof Array&&n.config&&(this._ease=n.config.apply(n,t.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(c=this._targets.length,r=0;r-1;)i[h._overwriteProps[o]]=this._firstPT;(h._priority||h._onInitAllProps)&&(l=!0),(h._onDisable||h._onEnable)&&(this._notifyPluginsOfEnabled=!0),u._next&&(u._next._prev=u)}else i[a]=V.call(this,e,a,"get",d,a,0,null,this.vars.stringFilter,r);return n&&this._kill(n,e)?this._initProps(e,i,s,n,r):this._overwrite>1&&this._firstPT&&s.length>1&&it(e,this,i,this._overwrite,s)?(this._kill(i,e),this._initProps(e,i,s,n,r)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&($[e._gsTweenID]=!0),l)},p.render=function(t,e,i){var s=this._time,n=this._duration,r=this._rawPrevTime,a,o,l,h;if(t>=n-1e-7&&t>=0)this._totalTime=this._time=n,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(a=!0,o="onComplete",i=i||this._timeline.autoRemoveChildren),0===n&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(r<0||t<=0&&t>=-1e-7||1e-10===r&&"isPause"!==this.data)&&r!==t&&(i=!0,r>1e-10&&(o="onReverseComplete")),this._rawPrevTime=h=!e||t||r===t?t:1e-10);else if(t<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==s||0===n&&r>0)&&(o="onReverseComplete",a=this._reversed),t<0&&(this._active=!1,0===n&&(this._initted||!this.vars.lazy||i)&&(r>=0&&(1e-10!==r||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=h=!e||t||r===t?t:1e-10)),(!this._initted||this._startAt&&this._startAt.progress())&&(i=!0);else if(this._totalTime=this._time=t,this._easeType){var c=t/n,u=this._easeType,d=this._easePower;(1===u||3===u&&c>=.5)&&(c=1-c),3===u&&(c*=2),1===d?c*=c:2===d?c*=c*c:3===d?c*=c*c*c:4===d&&(c*=c*c*c*c),this.ratio=1===u?1-c:2===u?c:t/n<.5?c/2:1-c/2}else this.ratio=this._ease.getRatio(t/n);if(this._time!==s||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=s,this._rawPrevTime=r,F.push(this),void(this._lazy=[t,e]);this._time&&!a?this.ratio=this._ease.getRatio(this._time/n):a&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==s&&t>=0&&(this._active=!0),0===s&&(this._startAt&&(t>=0?this._startAt.render(t,!0,i):o||(o="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==n||e||this._callback("onStart"))),l=this._firstPT;l;)l.f?l.t[l.p](l.c*this.ratio+l.s):l.t[l.p]=l.c*this.ratio+l.s,l=l._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,i),e||(this._time!==s||a||i)&&this._callback("onUpdate")),o&&(this._gc&&!i||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,i),a&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[o]&&this._callback(o),0===n&&1e-10===this._rawPrevTime&&1e-10!==h&&(this._rawPrevTime=0)))}},p._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:D.selector(e)||e;var s=i&&this._time&&i._startTime===this._startTime&&this._timeline===i._timeline,n,r,a,o,l,h,u,d,p;if((c(e)||L(e))&&"number"!=typeof e[0])for(n=e.length;--n>-1;)this._kill(t,e[n],i)&&(h=!0);else{if(this._targets){for(n=this._targets.length;--n>-1;)if(e===this._targets[n]){l=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[n]=t?this._overwrittenProps[n]||{}:"all";break}}else{if(e!==this.target)return!1;l=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(l){if(u=t||l,d=t!==r&&"all"!==r&&t!==l&&("object"!=typeof t||!t._tempKill),i&&(D.onOverwrite||this.vars.onOverwrite)){for(a in u)l[a]&&(p||(p=[]),p.push(a));if((p||!t)&&!et(this,i,e,p))return!1}for(a in u)(o=l[a])&&(s&&(o.f?o.t[o.p](o.s):o.t[o.p]=o.s,h=!0),o.pg&&o.t._kill(u)&&(h=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete l[a]),d&&(r[a]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return h},p.invalidate=function(){return this._notifyPluginsOfEnabled&&D._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],M.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-1e-10,this.render(Math.min(0,-this._delay))),this},p._enabled=function(t,e){if(_||f.wake(),t&&this._gc){var i=this._targets,s;if(i)for(s=i.length;--s>-1;)this._siblings[s]=tt(i[s],this,!0);else this._siblings=tt(this.target,this,!0)}return M.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&D._onPluginEvent(t?"_onEnable":"_onDisable",this)},D.to=function(t,e,i){return new D(t,e,i)},D.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new D(t,e,i)},D.fromTo=function(t,e,i,s){return s.startAt=i,s.immediateRender=0!=s.immediateRender&&0!=i.immediateRender,new D(t,e,s)},D.delayedCall=function(t,e,i,s,n){return new D(e,0,{delay:t,onComplete:e,onCompleteParams:i,callbackScope:s,onReverseComplete:e,onReverseCompleteParams:i,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},D.set=function(t,e){return new D(t,0,e)},D.getTweensOf=function(t,e){if(null==t)return[];var i,s,n,r;if(t="string"!=typeof t?t:D.selector(t)||t,(c(t)||L(t))&&"number"!=typeof t[0]){for(i=t.length,s=[];--i>-1;)s=s.concat(D.getTweensOf(t[i],e));for(i=s.length;--i>-1;)for(r=s[i],n=i;--n>-1;)r===s[n]&&s.splice(i,1)}else if(t._gsTweenID)for(i=(s=tt(t).concat()).length;--i>-1;)(s[i]._gc||e&&!s[i].isActive())&&s.splice(i,1);return s||[]},D.killTweensOf=D.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var s=D.getTweensOf(t,e),n=s.length;--n>-1;)s[n]._kill(i,t)};var nt=y("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=nt.prototype},!0);if(p=nt.prototype,nt.version="1.19.0",nt.API=2,p._firstPT=null,p._addTween=V,p.setRatio=H,p._kill=function(t){var e=this._overwriteProps,i=this._firstPT,s;if(null!=t[this._propName])this._overwriteProps=[];else for(s=e.length;--s>-1;)null!=t[e[s]]&&e.splice(s,1);for(;i;)null!=t[i.n]&&(i._next&&(i._next._prev=i._prev),i._prev?(i._prev._next=i._next,i._prev=null):this._firstPT===i&&(this._firstPT=i._next)),i=i._next;return!1},p._mod=p._roundProps=function(t){for(var e=this._firstPT,i;e;)(i=t[this._propName]||null!=e.n&&t[e.n.split(this._propName+"_").join("")])&&"function"==typeof i&&(2===e.f?e.t._applyPT.m=i:e.m=i),e=e._next},D._onPluginEvent=function(t,e){var i=e._firstPT,s,n,r,a,o;if("_onInitAllProps"===t){for(;i;){for(o=i._next,n=r;n&&n.pr>i.pr;)n=n._next;(i._prev=n?n._prev:a)?i._prev._next=i:r=i,(i._next=n)?n._prev=i:a=i,i=o}i=e._firstPT=r}for(;i;)i.pg&&"function"==typeof i.t[t]&&i.t[t]()&&(s=!0),i=i._next;return s},nt.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===nt.API&&(X[(new t[e])._propName]=t[e]);return!0},g.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e=t.propName,i=t.priority||0,s=t.overwriteProps,n={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},r=y("plugins."+e.charAt(0).toUpperCase()+e.substr(1)+"Plugin",function(){nt.call(this,e,i),this._overwriteProps=s||[]},!0===t.global),a=r.prototype=new nt(e),o;for(o in a.constructor=r,r.API=t.API,n)"function"==typeof t[o]&&(a[n[o]]=t[o]);return r.version=t.version,nt.activate([r]),r},u=t._gsQueue){for(d=0;d ul)"),public_vars.$mobileMenu=public_vars.$body.find(".mobile-menu"),public_vars.$stickyLogo=public_vars.$body.find(".logo-sticky"),"PerfectScrollbar"in e){var i=new PerfectScrollbar(public_vars.$mainSidebar[0],{wheelPropagation:!0});t(e).width()<992&&i.destroy()}public_vars.$sidebarMenu.hasClass("collapsed-subs")&&setupCollapsedSidebarMenu(),t.extend(public_vars,{hoverIndex:100,mainTopMenuFall:15,mainTopMenuDuration:.3}),0==public_vars.$body.find(".main-menu-env .megaMenuContainer").length&&0==public_vars.$body.find(".main-menu-env .mega-menu-wrap").length&&public_vars.$topMainMenu.each(function(e,i){var s=t(i),n=s.find("> ul"),r="UL"==s.parent().parent().parent()[0].tagName,a="sub-visible";r?TweenLite.set(n,{css:{x:-public_vars.mainTopMenuFall,y:0}}):TweenLite.set(n,{css:{y:public_vars.mainTopMenuFall}}),s.hoverIntent({over:function(){public_vars.hoverIndex++,s.css({overflow:"visible"}),n.css({zIndex:public_vars.hoverIndex}),r?TweenLite.to(n,public_vars.mainTopMenuDuration,{css:{x:0,autoAlpha:1}}):TweenLite.to(n,public_vars.mainTopMenuDuration,{css:{y:0,autoAlpha:1}}),s.addClass("sub-visible")},out:function(){n.css({zIndex:public_vars.hoverIndex}),r?TweenLite.to(n,public_vars.mainTopMenuDuration,{css:{x:-public_vars.mainTopMenuFall,autoAlpha:0},onComplete:function(){s.css({overflow:"hidden"})}}):TweenLite.to(n,public_vars.mainTopMenuDuration,{css:{y:public_vars.mainTopMenuFall,autoAlpha:0},onComplete:function(){s.css({overflow:"hidden"})}}),s.removeClass("sub-visible")},timeout:200});var o=!1;s.on("touchend",function(t){o=!1,s.hasClass("sub-visible")||(o=!0)}),s.on("click",function(t){o&&t.preventDefault()})}),t(".autogrow").autogrow();var s=[],n=function(){if(s.length){var t=s.shift(),e=new Image;e.src=t.src,e.onload=function(){t.$el.hasClass("lab-lazy-load")&&t.$el.attr("src",t.src).removeClass("lab-lazy-load"),n()}}};if(t("img:not(.lab-lazy-load):visible").each(function(e,i){var n=t(i),r=n.attr("src");r&&s.push({i:e,src:r,$el:n})}),t("img.lab-lazy-load").each(function(e,i){var n=t(i),r=n.data("src");s.push({i:e,src:r,$el:n})}),t(e).load(n),t.isFunction(t.fn.nivoLightbox)){var r=1;t(".post_details .post-content a:has(img)").each(function(e,i){0==t(i).closest(".gallery").length&&t(this).attr("data-lightbox-gallery","gallery-0")}),t(".post_details .post-content .gallery").each(function(e,i){t(this).find("a:has(img)").attr("data-lightbox-gallery","gallery-"+r),r++}),t(".nivo a, .post_details .post-content a").nivoLightbox({effect:"fade",theme:"default"})}t().slick&&t(".post-slider-images").each(function(e,i){var s=t(i);s.find(".loading").remove(),s.find("> a.hidden").removeClass("hidden");var n=parseInt(s.data("autoswitch"),10);s.slick({arrows:!0,adaptiveHeight:!0,autoplay:n>0,autoplaySpeed:n})});var a=t(".contact-form"),o;if(("undefined"==typeof oxygen_disable_contact_form_js||!oxygen_disable_contact_form_js)&&a.length&&a.find("form").length){var l=a.find("form"),h=a.find("h4"),c=l.find('input[name="privacy_policy"]'),u=c.closest(".privacy-policy");l.submit(function(e){e.preventDefault();var i=l.serializeArray(),s=l.find('[data-required="1"]');if(s.length){var n=s.serializeArray(),r=[];for(var o in n)r.push(n[o].name)}for(var o in i.reverse()){var h=i[o],d=l.find('[name="'+h.name+'"]');-1!=t.inArray(h.name,r)&&(""==t.trim(d.val())?d.addClass("has-errors").focus():d.removeClass("has-errors")),"email"==h.name&&d.val().length&&(validateEmail(d.val())?d.removeClass("has-errors"):d.addClass("has-errors").focus())}if(u.removeClass("has-errors"),!l.find(".has-errors").length&&!a.hasClass("is-loading")&&!a.data("is-done")){if(c.length&&!c.is(":checked"))return u.addClass("has-errors"),void alert(c.data("required-text"));u.removeClass("has-errors"),i.push({name:"action",value:"cf_process"}),i.push({name:"verify",value:l.data("check")}),i.push({name:"id",value:l.data("id")}),a.addClass("is-loading"),t.post(ajaxurl,i,function(t){var e;t.success?(a.find(".success-message").show(),a.removeClass("is-loading"),a.data("is-done",1),a.find("[name]").fadeTo(200,.6).attr("readonly",!0),packTheContactForm(a)):alert("An error occured your message cannot be send!")},"json")}})}t.isFunction(t.fn.tooltip)&&t('a[data-toggle="tooltip"], span[data-toggle="tooltip"]').tooltip({}),e.openHeaderCart=function(){t("html, body").animate({scrollTop:0}),public_vars.$headerCart.removeClass("visible-outer"),public_vars.$headerCart.slideDown(function(){t(e).on("click",d)}),public_vars.$body.addClass("header-cart-open")},e.closeHeaderCart=function(){public_vars.$headerCart.slideUp("normal",function(){public_vars.$body.removeClass("header-cart-open")})},e.toggleHeaderCart=function(){public_vars.$body.hasClass("header-cart-open")?closeHeaderCart():openHeaderCart()},public_vars.$cartRibbon.closest(".cart-ribbon").on("click",function(t){if(public_vars.$cartRibbon.closest(".cart-ribbon").hasClass("direct-link"))return!0;t.preventDefault(),toggleHeaderCart()});var d=function(i){public_vars.$headerCart.is(":visible")&&(t(i.target).closest(".header-cart").length||(t(e).off("click",d),public_vars.$headerCart.slideUp("normal",function(){public_vars.$body.removeClass("header-cart-open")})))},p=t(".main-menu-top .search-form, .top-menu-centered .search-form");if(p.length){var f=p.find(".search-input-env"),_=f.find("input"),m=f.val();p.on("click","a",function(t){t.preventDefault(),_.val().length>0&&m!=f.val()?p.submit():(_.val().length&&!f.is(":visible")&&m!=f.val()&&p.submit(),f.toggleClass("visible"),f.hasClass("visible")&&setTimeout(function(){_.focus()},100))}),_.on("blur",function(){f.removeClass("visible")})}"undefined"!=typeof WOW&&setTimeout(function(){(new WOW).init()},500),t(".vc_separator.one-line-border, .vc_separator.double-bordered, .vc_separator.double-bordered-thin, .vc_separator.double-bordered-thick").each(function(e,i){var s=t(i),n=s.attr("class"),r;(r=n.match(/custom-color-([a-f0-9]+)/))&&(s.find(".vc_sep_line").css({borderColor:"#"+r[1]}),s.hasClass("one-line-border")&&s.find("h4").css({borderColor:"#"+r[1]})),(r=n.match(/__(.*?)__/i))&&s.find("h4").append(""+r[1].replace(/-/g," ")+"")});var v=300,g=function(){public_vars.$mobileMenu.addClass("visible-xs").removeClass("hidden").attr("style","display: block !important").data("height",public_vars.$mobileMenu.outerHeight()),public_vars.$mobileMenu.find(".menu-item-has-children").each(function(e,i){var s,n=t(i).find("> ul");n.attr("style","display: block !important").data("height",n.outerHeight()).attr("style","height: 0px; display: block")}),public_vars.$mobileMenu.attr("style","height: 0px")},y;public_vars.$body.find(".mobile-menu-link > a").on("click",function(e){e.preventDefault();var i=t(this);if(i.hasClass("opened")){i.removeClass("opened");var s=public_vars.$mobileMenu.find("li.visible");public_vars.$mobileMenu.add(s).removeClass("visible"),TweenLite.to(public_vars.$mobileMenu,.3,{css:{height:0},delay:.15,onComplete:function(){s.find("> ul").height(0).removeClass("visible"),s.find(".expand").removeClass("expanded")}})}else i.addClass("opened"),setTimeout(function(){public_vars.$mobileMenu.addClass("visible")},150),TweenLite.to(public_vars.$mobileMenu,.3,{css:{height:public_vars.$mobileMenu.data("height")},ease:Power2.easeInOut,onComplete:function(){public_vars.$mobileMenu.height("")}})}),public_vars.$mobileMenu.find(".menu-item-has-children").each(function(e,i){var s=t(i),n=t(''),r=s.find("> ul");s.find("> a").prepend(n),n.on("click",function(t){if(t.preventDefault(),n.hasClass("expanded")){n.removeClass("expanded");var e=r.add(r.find("ul"));e.parent().removeClass("visible"),TweenLite.to(e,.3,{css:{height:0},delay:.15,onComplete:function(){e.find(".expand").removeClass("expanded")}})}else n.addClass("expanded"),setTimeout(function(){s.addClass("visible")},150),TweenLite.to(r,.3,{css:{height:r.data("height")},onComplete:function(){r.height("")}})})}),g(),public_vars.$body.hasClass("sticky-menu")&&setupStickMenu(),t(".lab_wpb_testimonials").each(function(i,s){var n=t(s),r=n.find(".testimonials-inner"),a=n.find(".testimonial-entry"),o=a.filter(".hidden"),l=n.data("autoswitch"),h=t(''),c=0;if(a.eq(c).addClass("current"),o.removeClass("hidden").hide(),a.length>1){for(var i=0;i
'+(i+1)+"");r.append(h)}var u=function(t){if(c!=t){t%=a.length;var e=a.filter(".current"),i=a.eq(t);i.show(),e.hide();var s=i.outerHeight(!0)+h.outerHeight();e.show(),i.hide(),h.find("a").removeClass("active").eq(t).addClass("active"),TweenLite.to(e,.15,{css:{autoAlpha:0},onComplete:function(){e.attr("style","").removeClass("current").hide(),i.show().addClass("current"),TweenLite.set(i,{css:{autoAlpha:0}}),TweenLite.to(i,.35,{css:{autoAlpha:1},onComplete:function(){c=t}})}}),TweenLite.to(r,.3,{css:{height:s},onComplete:function(){r.attr("style","")}})}};if(h.on("click","a",function(e){e.preventDefault(),u(parseInt(t(this).data("index"),10))}),l>0){var d=0,p=function(t){e.clearTimeout(d),t&&(d=setTimeout(function(){u(c+1),p(1)},1e3*l))};n.on("mouseover",function(){p()}).on("mouseleave",function(){p(!0)}),p(!0)}}),t(".mobile-menu .search-form>a").on("click",function(e){e.preventDefault(),t(this).closest("form").submit()}),t("form.cart").on("submit",function(e){var i,s=t(this).find(".qty.text"),n;0==t(".product-type-grouped").length>0&&s.length&&0==s.val()&&(e.preventDefault(),s.select())}),t(".summary .variations select, select.oxy-list").each(function(e,i){var s=t(i);if(!s.next(".attribute-swatch").length){s.css({width:"100%"}).wrap(t(''));var n=s.parent(),r=t('');n.prepend(r),n.prepend(''),r.html(s.find("option:selected").html()),s.on("change",function(t){r.html(s.find("option:selected").html())})}}),t("#search-again").on("click",function(e){e.preventDefault(),t(".search_input").focus().select()}),t(".go-to-top[data-offset-type]").each(function(i,s){function n(){c&&(c.destroy(),c=null),d(),(c=scrollMonitor.create(u)).lock(),"footer"==h?c.stateChange(function(t){this.isAboveViewport&&!this.isBelowViewport&&r(),this.isAboveViewport&&this.isBelowViewport&&this.isFullyInViewport&&a()}):(c.exitViewport(function(){r()}),c.enterViewport(function(){a()}))}function r(){o.addClass("go-to-top--visible")}function a(){o.removeClass("go-to-top--visible")}var o=t(s),l=o.data("offset-type"),h=o.data("offset-value"),c,u=t('');u.appendTo("body");var d=function(){var e=public_vars.$body.outerHeight();"footer"==h?e-=public_vars.$footer.outerHeight():"percentage"==l?e=h+"%":"pixels"==l&&(e=Math.min(h,t(document).outerHeight())+"px"),u.css("height",e)};d(),n(),o.on("click",function(i){i.preventDefault();var s={pos:t(e).scrollTop()};TweenMax.to(s,1,{pos:0,ease:Power4.easeOut,onUpdate:function(){t(e).scrollTop(s.pos)}})})}),t(".woocommerce-ordering .dropdown-menu li a").each(function(e,i){var s=t(i),n=t(".woocommerce-ordering select.orderby");s.on("click",function(t){t.preventDefault(),s.closest(".woocommerce-ordering").fadeTo(220,.5).find(".dropdown .btn span").html(s.html()),n.find('option[value="'+s.attr("href").replace("#","")+'"]').prop("selected",!0),n.trigger("change")})})});var s=0;t(e).resize(function(){clearTimeout(s),s=setTimeout(trigger_resizable,200)})}(jQuery,window),function(t,e,i){"use strict";t(document).ready(function(){t(".products:has(.type-product)").each(function(i,s){var n=t(s),a=[],o=new r;o.setContainer(s),o.fetchItems(),n.find(".type-product").each(function(e,i){var s;t(i).on("click",".quick-view a",function(t){t.preventDefault(),o.open(e)})}),t(e).width()>=992&&o.render()})});var s=0,n=function(i){var s=this.getSlideWidth(),n=this.getSlideScreenWidth(),r,a=t(e).width()/2-s/2-i*n
;return isRTL()?-a:a},r=function(){this.instanceId=++s,this.container=null,this.items=[],this.needsRender=!0,this.isOpen=!1,this.previewSize=100,t(e).on("keydown",function(t){27==t.keyCode?this.close():!this.isOpen||37!=t.keyCode&&39!=t.keyCode||(37==t.keyCode?this.prev():this.next())}.bind(this)),this.resize=t.debounce(350,function(){this.setPreviewSize(),this.setCurrent(this.current,!0)}.bind(this))};r.prototype={constructor:r,setContainer:function(t){this.container=t},fetchItems:function(){var e=this,i;t(this.container).find(".type-product").each(function(i,s){var n,r=t(s).find(".product-quickview-template").html();r&&e.addItem(r)})},addItem:function(t){return this.items.push(t),this},getSlideWidth:function(){return this.$items.first().find(".product-quickview").outerWidth()},getSlideScreenWidth:function(){var i=this.getSlideWidth(),s;return i+(t(e).width()-i)/2-this.previewSize},setCurrent:function(e,i){e<0||e>=this.items.length||(i&&this.$list.addClass("product-quickview--no-animations"),TweenMax.set(this.$track,{x:n.call(this,e)}),this.$items.removeClass("product-quickview--current").eq(e).addClass("product-quickview--current"),this.$track.one("transitionend",t.debounce(100,function(){this.initialize(this.$items.eq(e))}.bind(this))),this.$prev[e<=0?"addClass":"removeClass"]("product-quickview--hidden"),this.$next[e+1>=this.$items.length?"addClass":"removeClass"]("product-quickview--hidden"),i&&setTimeout(function(){this.$list.removeClass("product-quickview--no-animations")}.bind(this),1),this.current=e)},setPreviewSize:function(){var t=this.getSlideScreenWidth();this.$track.css({minWidth:t,maxWidth:t})},render:function(){var e=this,i="product-quickview--instance-"+this.instanceId;this.$overlay=t(".product-quickview--overlay."+i),this.$list=t(".product-quickview--list."+i),0==this.$overlay.length&&(t("body").append(''),t("body").append(''),this.$overlay=t(".product-quickview--overlay."+i),this.$list=t(".product-quickview--list."+i)),this.$overlay.on("click",this.close.bind(this)),this.$list.empty(),t.each(this.items,function(i,s){var n;t('').append(s).appendTo(e.$list)}),this.$items=this.$list.children(),this.$items.each(function(e,i){var s=t(i),n=t(i).find(".summary");n.prop("scrollHeight")>s.height()&&n.addClass("summary-scroll")}),this.$list.wrapInner(''),this.$track=this.$list.find(".product-quickview--track"),this.$prev=t(''),this.$next=t(''),this.items.length>1&&this.$list.append(this.$prev).append(this.$next),t(".product-quickview--arrow").on("click",this.handleNextPrev.bind(this)),this.$close=t(''),this.$list.append(this.$close),this.$close.on("click",function(t){t.preventDefault(),e.close()}),this.setCurrent(0,!0),this.needsRender=!1},initialize:function(e){if(e.length&&!e[0].qvInitialized){var i;if(t().slick)e.find(".product-images").slick({rtl:isRTL(),adaptiveHeight:!0,accessibility:!1});e[0].qvInitialized=!0}},open:function(t){this.needsRender&&this.render(),this.setPreviewSize(),"number"==typeof t&&this.setCurrent(t,!0),this.show(),e.addEventListener("resize",this.resize,{passive:!0,capture:!0})},close:function(){this.$overlay.removeClass("product-quickview--visible"),this.$list.removeClass("product-quickview--visible"),this.isOpen=!1,e.removeEventListener("resize",this.resize)},handleNextPrev:function(e){e.preventDefault(),t(e.srcElement).hasClass("product-quickview--prev")?this.prev():this.next()},prev:function(){var t=isRTL()?1:-1;this.setCurrent(this.current+t)},next:function(){var t=isRTL()?-1:1;this.setCurrent(this.current+t)},show:function(){this.$overlay.addClass("product-quickview--visible"),this.$list.addClass("product-quickview--visible"),this.isOpen=!0}}}(jQuery,window),function(t,e,i){"use strict";t(document).ready(function(){var i=function(){t(".products .type-product").each(function(e,i){if(!i.oxygenProductSetup){var n=t(i);s(n),t().tooltip&&n.find('i[data-toggle="tooltip"]').tooltip(),i.oxygenProductSetup=!0}})},s=function(e){var i=e.find(".product-images"),s=i.find(".product-images--navigation"),n=i.find(".featured-image .image-placeholder"),r=n.length,a=0,o=100;if(i.hasClass("preview-type-gallery")){var l=function(t,e){var s=n.eq(t);TweenMax.set(s,{zIndex:o}),TweenMax.fromTo(s,.45,{x:e?"-100%":"100%",autoAlpha:0},{autoAlpha:1,x:"0%",ease:Circ.easeOut}),i.outerHeight()!=s.outerHeight()&&TweenMax.to(i,.4,{height:s.outerHeight()}),o++},h=function(t){return isRTL()&&(t=!t),a+=t?-1:1,(a%=r)<0&&(a=r+a),a};s.on("click",function(e){e.preventDefault();var i=t(this).hasClass("product-images--prev");l(h(i),i)}),i.on("swipeleft",function(){l(h())}),i.on("swiperight",function(){l(h(!0),!0)})}};i(),jQuery(document).on("yith_infs_adding_elem post-load",i),t(".products").on("click",".type-product .yith-add-to-wishlist .yith-wcwl-add-button a",function(e){t(this).closest(".type-product").addClass("adding-to-wishlist")}),t(document.body).on("added_to_wishlist",function(e,i,s){var n;t(i).closest(".type-product").addClass("yith-added-to-wishlist").removeClass("adding-to-wishlist")}),t(document).on("adding_to_cart",function(t,e,i){var s;e&&e.closest(".product, .type-cross-sells, .product-item").addClass("is-adding-to-cart")}),t(document).on("added_to_cart",function(t,e,i,s){if(s){var n=s.closest(".product, .type-cross-sells");n.removeClass("is-adding-to-cart").addClass("added-to-cart"),setTimeout(function(){n.removeClass("added-to-cart")},1500)}updateCartItemsNumber(e.labMiniCartCount),updateHeaderCart(e.labMiniCartSubtotal,e.labMiniCart)}),t(".product-gallery").each(function(i,s){var n=t(s),r=n.find(".product-images"),a=n.find(".product-thumbnails"),o;a.find("a").first().addClass("active"),r.slick({slide:".woocommerce-product-gallery__image",infinite:!1,arrows:!0,autoplay:oxygen_single_product_params.product_image_autoswitch>0,autoplaySpeed:1e3*oxygen_single_product_params.product_image_autoswitch,rtl:isRTL(),adaptiveHeight:!0}),r.on("beforeChange",function(t,e,i,s){a.find("a").removeClass("active").eq(s).addClass("active");var n=a.find(".slick-active"),r=n.first().index(),o=a.slick("slickGetOption","slidesToShow"),l=a.find(".slick-slide").length-o;i a:has(img)"),n=r.find("img");i.push({src:r.attr("href"),w:n.data("large_image_width"),h:n.data("large_image_height"),title:n.attr("data-caption")?n.attr("data-caption"):n.attr("title")})});var n=t.extend({index:e},wc_single_product_params.photoswipe_options),a;new PhotoSwipe(s[0],PhotoSwipeUI_Default,i,n).init()}});n.hasClass("lightbox")&&r.on("click",".woocommerce-product-gallery__image > a, .product-gallery-lightbox-trigger",function(e){e.preventDefault();var i=parseInt(t(this).closest(".woocommerce-product-gallery__image").attr("data-slick-index"),10);u(i)}),n.hasClass("zoom")||r.on("click",".woocommerce-product-gallery__image:has(.product-gallery-lightbox-trigger) > a",function(e){e.preventDefault();var i=parseInt(t(this).closest(".woocommerce-product-gallery__image").attr("data-slick-index"),10);u(i)});var d=null;t.fn.wc_variations_image_update=function(t){d&&(r.slick("slickRemove",!0,!0),a.slick("slickRemove",!0,!0),d=null),console.log(t),t&&parseInt(t.image_id,10)&&"oxygen_image"in t&&(r.slick("slickAdd",t.oxygen_image,!0,!0),a.slick("slickAdd",t.oxygen_thumbnail,!0,!0),n.hasClass("zoom")&&c(r.find("a").first()),r.slick("slickGoTo",0),a.slick("slickGoTo",0),d=t.image_id)}}),t(".cart-update-buttons--update-cart").on("click",function(e){e.preventDefault(),t('[name="update_cart"]').click()});var n=function(){t(".cart-update-buttons--update-cart")[t('[name="update_cart"]').is(":disabled")?"addClass":"removeClass"]("disabled")};t(".woocommerce-cart").on("click change",".quantity input",t.debounce(10,n)),t(document.body).on("updated_wc_div",n),t("#coupon_code_alt").on("keydown",function(e){13==e.keyCode&&t('[name="apply_coupon_alt"]').click()}),t('.woocommerce-cart [name="apply_coupon_alt"]').on("click",function(e){t("#coupon_code").val(t("#coupon_code_alt").val()),t('[name="apply_coupon"]').click()});var r=function(){jQuery(document.body).trigger("country_to_state_changed"),t(".quantity").each(function(e,i){var s=t(i),n=s.find(".qty");s.hasClass("buttons_added")||(s.addClass("buttons_added"),n.before(''),n.after(''))})};r(),t(document.body).on("updated_wc_div cart_page_refreshed cart_totals_refreshed",r),t("body").on("click",'input[type="button"].plusminus',function(){var e=t(this),i=e.parent().find(".qty"),s=1;e.hasClass("minus")&&(s=-1);var n=parseInt(i.val(),10)+s;n<0&&(n=0),i.val(n).trigger("change")});var a=function(){if(sessionStorage){var e=null;"undefined"!=typeof wc_cart_fragments_params&&wc_cart_fragments_params.fragment_name&&(e=t.parseJSON(sessionStorage.getItem(wc_cart_fragments_params.fragment_name))),e?(t(".cart-ribbon").find(".number").html(e.labMiniCartCount),updateHeaderCart(e.labMiniCartSubtotal,e.labMiniCart),e.labMiniCartCount||public_vars.$cartItems.html(e["div.widget_shopping_cart_content"]).css("opacity",1)):t(".cart-ribbon").find(".number").html("0")}};a(),t(document.body).on("wc_fragments_refreshed",a)})}(jQuery,window);