!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e){t.exports=jQuery},function(t,e,n){n(2),n(6),t.exports=n(4)},function(t,e,n){var r,i,u,s; s=function(t){"use strict";var e="left",n="right",r="up",i="down",u="none",s="doubletap",o="longtap",a="horizontal",l="vertical",h="all",f="move",p="end",c="cancel",D="ontouchstart"in window,d=window.navigator.msPointerEnabled&&!window.PointerEvent&&!D,g=(window.PointerEvent||window.navigator.msPointerEnabled)&&!D,_="TouchSwipe";function m(m,v){v=t.extend({},v);var y=D||g||!v.fallbackToMouseEvents,C=y?g?d?"MSPointerDown":"pointerdown":"touchstart":"mousedown",x=y?g?d?"MSPointerMove":"pointermove":"touchmove":"mousemove",F=y?g?d?"MSPointerUp":"pointerup":"touchend":"mouseup",w=y?g?"mouseleave":null:"mouseleave",E=g?d?"MSPointerCancel":"pointercancel":"touchcancel",T=0,b=null,A=null,M=0,O=0,P=0,S=1,B=0,k=0,L=null,N=t(m),R="start",I=0,z={},Y=0,X=0,j=0,V=0,U=0,W=null,q=null;try{N.on(C,G),N.on(E,K)}catch(m){t.error("events not supported "+C+","+E+" on jQuery.swipe")}function G(u){if(!0!==N.data(_+"_intouch")&&!(0g.left&&d.xg.top&&d.yv.longTapThreshold&&T<10&&v.longTap&&!1!==n?n=et(t,e,o):1!==I&&D||!(isNaN(T)||T=v.threshold),t}function rt(){var t=!1;return null!==v.cancelThreshold&&null!==b&&(t=vt(b)-T>=v.cancelThreshold),t}function it(){return!(v.maxTimeThreshold&&M>=v.maxTimeThreshold)}function ut(){var t=lt(),e=ht(),n=null===v.pinchThreshold||B>=v.pinchThreshold;return t&&e&&n}function st(){return v.pinchStatus||v.pinchIn||v.pinchOut}function ot(){var t=it(),e=nt(),n=lt(),r=ht();return!rt()&&r&&n&&e&&t}function at(){return v.swipe||v.swipeStatus||v.swipeLeft||v.swipeRight||v.swipeUp||v.swipeDown}function lt(){return I===v.fingers||v.fingers===h||!D}function ht(){return 0!==z[0].end.x}function ft(){return v.tap}function pt(){return!!v.doubleTap}function ct(){if(null==U)return!1;var t=wt();return pt()&&t-U<=v.doubleTapThreshold}function Dt(){V=j=0}function dt(){var t=!1;return j&&wt()-j<=v.fingerReleaseThreshold&&(t=!0),t}function gt(t){N&&(!0===t?(N.on(x,H),N.on(F,Q),w&&N.on(w,Z)):(N.off(x,H,!1),N.off(F,Q,!1),w&&N.off(w,Z,!1)),N.data(_+"_intouch",!0===t))}function _t(t,e){var n={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return n.start.x=n.last.x=n.end.x=e.pageX||e.clientX,n.start.y=n.last.y=n.end.y=e.pageY||e.clientY,z[t]=n}function mt(t){var e=void 0!==t.identifier?t.identifier:0,n=z[e]||null;return null===n&&(n=_t(e,t)),n.last.x=n.end.x,n.last.y=n.end.y,n.end.x=t.pageX||t.clientX,n.end.y=t.pageY||t.clientY,n}function vt(t){if(L[t])return L[t].distance}function yt(t){return{direction:t,distance:0}}function Ct(){return X-Y}function xt(t,e){var n=Math.abs(t.x-e.x),r=Math.abs(t.y-e.y);return Math.round(Math.sqrt(n*n+r*r))}function Ft(t,s){if(a=s,(o=t).x==a.x&&o.y==a.y)return u;var o,a,l,h,f,p,c,D,d=(h=s,f=(l=t).x-h.x,p=h.y-l.y,c=Math.atan2(p,f),(D=Math.round(180*c/Math.PI))<0&&(D=360-Math.abs(D)),D);return d<=45&&0<=d||d<=360&&315<=d?e:135<=d&&d<=225?n:45t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},zt=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Yt=function(t){return t._repeat?Xt(t._tTime,t=t.duration()+t._rDelay)*t:0},Xt=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},jt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Vt=function(t){return t._end=Et(t._start+(t._tDur/Math.abs(t._ts||t._rts||1e-8)||0))},Ut=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Et(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Vt(t),n._dirty||It(n,t)),t},Wt=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=jt(t.rawTime(),e),(!e._dur||ne(0,e.totalDuration(),n)-e._tTime>1e-8)&&e.render(n,!0)),It(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},qt=function(t,e,n,r){return e.parent&&Rt(e),e._start=Et((U(n)?n:n||t!==s?Jt(t,n,e):t._time)+e._delay),e._end=Et(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var u,s=t[r];if(i)for(u=e[i];s&&s[i]>u;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),Qt(e)||(t._recent=e),r||Wt(t,e),t},Gt=function(t,e){return(ut.ScrollTrigger||at("scrollTrigger",e))&&ut.ScrollTrigger.create(e,t)},Ht=function(t,e,n,r){return He(t,e),t._initted?!n&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==Ae.frame?(ct.push(t),t._lazy=[e,r],1):void 0:1},Qt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Kt=function(t,e,n,r){var i=t._repeat,u=Et(e)||0,s=t._tTime/t._tDur;return s&&!r&&(t._time*=u/t._dur),t._dur=u,t._tDur=i?i<0?1e10:Et(u*(i+1)+t._rDelay*i):u,s>0&&!r?Ut(t,t._tTime=t._tDur*s):t.parent&&Vt(t),n||It(t.parent,t),t},Zt=function(t){return t instanceof Ve?It(t):Kt(t,t._dur)},$t={_start:0,endTime:ft,totalDuration:ft},Jt=function t(e,n,r){var i,u,s,o=e.labels,a=e._recent||$t,l=e.duration()>=L?a.endTime(!1):e._dur;return j(n)&&(isNaN(n)||n in o)?(u=n.charAt(0),s="%"===n.substr(-1),i=n.indexOf("="),"<"===u||">"===u?(i>=0&&(n=n.replace(/=/,"")),("<"===u?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(s?(i<0?a:r).totalDuration()/100:1)):i<0?(n in o||(o[n]=l),o[n]):(u=parseFloat(n.charAt(i-1)+n.substr(i+1)),s&&r&&(u=u/100*(Z(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+u:l+u)):null==n?l:+n},te=function(t,e,n){var r,i,u=U(e[1]),s=(u?2:1)+(t<2?0:1),o=e[s];if(u&&(o.duration=e[1]),o.parent=n,t){for(r=o,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=G(i.vars.inherit)&&i.parent;o.immediateRender=G(r.immediateRender),t<2?o.runBackwards=1:o.startAt=e[s-1]}return new Je(e[0],o,e[s+1])},ee=function(t,e){return t||0===t?e(t):e},ne=function(t,e,n){return ne?e:n},re=function(t,e){return j(t)&&(e=it.exec(t))?t.substr(e.index+e[0].length):""},ie=[].slice,ue=function(t,e){return t&&q(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&q(t[0]))&&!t.nodeType&&t!==o},se=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return j(t)&&!e||ue(t,1)?(r=n).push.apply(r,oe(t)):n.push(t)}))||n},oe=function(t,e,n){return!j(t)||n||!a&&Me()?Z(t)?se(t,n):ue(t)?ie.call(t,0):t?[t]:[]:ie.call((e||l).querySelectorAll(t),0)},ae=function(t){return t.sort((function(){return.5-Math.random()}))},le=function(t){if(V(t))return t;var e=q(t)?t:{each:t},n=Ne(e.ease),r=e.from||0,i=parseFloat(e.base)||0,u={},s=r>0&&r<1,o=isNaN(r)||s,a=e.axis,l=r,h=r;return j(r)?l=h={center:.5,edges:.5,end:1}[r]||0:!s&&o&&(l=r[0],h=r[1]),function(t,s,f){var p,c,D,d,g,_,m,v,y,C=(f||e).length,x=u[C];if(!x){if(!(y="auto"===e.grid?0:(e.grid||[1,L])[1])){for(m=-L;m<(m=f[y++].getBoundingClientRect().left)&&ym&&(m=g),gC?C-1:a?"y"===a?C/y:y:Math.max(y,C/y))||0)*("edges"===r?-1:1),x.b=C<0?i-C:i,x.u=re(e.amount||e.each)||0,n=n&&C<0?ke(n):n}return C=(x[t]-x.min)/x.max||0,Et(x.b+(n?n(C):C)*x.v)+x.u}},he=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Math.round(parseFloat(n)/t)*t*e;return(r-r%1)/e+(U(n)?0:re(n))}},fe=function(t,e){var n,r,i=Z(t);return!i&&q(t)&&(n=i=t.radius||L,t.values?(t=oe(t.values),(r=!U(t[0]))&&(n*=n)):t=he(t.increment)),ee(e,i?V(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,u,s=parseFloat(r?e.x:e),o=parseFloat(r?e.y:0),a=L,l=0,h=t.length;h--;)(i=r?(i=t[h].x-s)*i+(u=t[h].y-o)*u:Math.abs(t[h]-s))(i=Math.abs(i))&&(u=r,o=i);return u},_e=function(t,e,n){var r,i,u=t.vars,s=u[e];if(s)return r=u[e+"Params"],i=u.callbackScope||t,n&&ct.length&&bt(),r?s.apply(i,r):s.call(i)},me=function(t){return Rt(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&_e(t,"onInterrupt"),t},ve=function(t){var e=(t=!t.name&&t.default||t).name,n=V(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:ft,render:ln,add:qe,kill:fn,modifier:hn,rawVars:0},u={targetTest:0,get:0,getSetter:un,aliases:{},register:0};if(Me(),t!==r){if(dt[e])return;Pt(r,Pt(kt(t,i),u)),St(r.prototype,St(i,kt(t,u))),dt[r.prop=e]=r,t.targetTest&&(mt.push(r),pt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}ht(e,r),t.register&&t.register(mn,r,Dn)},ye={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],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]},Ce=function(t,e,n){return 255*(6*(t+=t<0?1:t>1?-1:0)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)+.5|0},xe=function(t,e,n){var r,i,u,s,o,a,l,h,f,p,c=t?U(t)?[t>>16,t>>8&255,255&t]:0:ye.black;if(!c){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ye[t])c=ye[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),u=t.charAt(3),t="#"+r+r+i+i+u+u+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(c=parseInt(t.substr(1,6),16))>>16,c>>8&255,255&c,parseInt(t.substr(7),16)/255];c=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t]}else if("hsl"===t.substr(0,3))if(c=p=t.match($),e){if(~t.indexOf("="))return c=t.match(J),n&&c.length<4&&(c[3]=1),c}else s=+c[0]%360/360,o=+c[1]/100,r=2*(a=+c[2]/100)-(i=a<=.5?a*(o+1):a+o-a*o),c.length>3&&(c[3]*=1),c[0]=Ce(s+1/3,r,i),c[1]=Ce(s,r,i),c[2]=Ce(s-1/3,r,i);else c=t.match($)||ye.transparent;c=c.map(Number)}return e&&!p&&(r=c[0]/255,i=c[1]/255,u=c[2]/255,a=((l=Math.max(r,i,u))+(h=Math.min(r,i,u)))/2,l===h?s=o=0:(f=l-h,o=a>.5?f/(2-l-h):f/(l+h),s=l===r?(i-u)/f+(iC&&(F+=s-x),((n=(i=(w+=s)-F)-T)>0||o)&&(u=++_.frame,m=i-1e3*_.time,_.time=i/=1e3,T+=n+(n>=E?4:E-n),r=1),o||(D=d(t)),r)for(v=0;v=e&&v--},_listeners:b=[]}),Me=function(){return!c&&Ae.wake()},Oe={},Pe=/^[\d.\-M][\d.\-,\s]/,Se=/["']/g,Be=function(t){for(var e,n,r,i={},u=t.substr(1,t.length-3).split(":"),s=u[0],o=1,a=u.length;o1&&s.config?s.config.apply(null,~t.indexOf("{")?[Be(u[1])]:(e=t,n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n),e.substring(n,~i&&i=1?n:1,u=(r||(e?.3:.45))/(n<1?n:1),s=u/N*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*X((t-s)*u)+1},a="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Ie(o);return u=N/u,a.config=function(n,r){return t(e,n,r)},a},Ye=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:Ie(r);return i.config=function(n){return t(e,n)},i};Ft("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Re(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),Oe.Linear.easeNone=Oe.none=Oe.Linear.easeIn,Re("Elastic",ze("in"),ze("out"),ze()),M=7.5625,P=1/(O=2.75),Re("Bounce",(function(t){return 1-S(1-t)}),S=function(t){return t0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Kt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Me(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Ut(this,t),!n._dp||n.parent||Wt(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&qt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&1e-8===Math.abs(this._zTime)||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),At(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Yt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Yt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?Xt(this._tTime,n)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?jt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,zt(this.totalTime(ne(-this._delay,this._tDur,e),!0)),Vt(this),this},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Me(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&qt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(G(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?jt(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(e._ts||1),e=e._dp;return n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Zt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Zt(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Jt(this,t),G(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,G(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=V(t)?t:Ot,i=function(){var t=e.then;e.then=null,V(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){me(this)},t}();Pt(je.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ve=function(t){function e(e,n){var i;return void 0===e&&(e={}),(i=t.call(this,e)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=G(e.sortChildren),s&&qt(e.parent||s,r(i),n),e.reversed&&i.reverse(),e.paused&&i.paused(!0),e.scrollTrigger&&Gt(r(i),e.scrollTrigger),i}i(e,t);var n=e.prototype;return n.to=function(t,e,n){return te(0,arguments,this),this},n.from=function(t,e,n){return te(1,arguments,this),this},n.fromTo=function(t,e,n,r){return te(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Lt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Je(t,e,Jt(this,n),1),this},n.call=function(t,e,n){return qt(this,Je.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,u,s){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=u,n.onCompleteParams=s,n.parent=this,new Je(t,n,Jt(this,i)),this},n.staggerFrom=function(t,e,n,r,i,u,s){return n.runBackwards=1,Lt(n).immediateRender=G(n.immediateRender),this.staggerTo(t,e,n,r,i,u,s)},n.staggerFromTo=function(t,e,n,r,i,u,s,o){return r.startAt=n,Lt(r).immediateRender=G(r.immediateRender),this.staggerTo(t,e,r,i,u,s,o)},n.render=function(t,e,n){var r,i,u,o,a,l,h,f,p,c,D,d,g=this._time,_=this._dirty?this.totalDuration():this._tDur,m=this._dur,v=t<=0?0:Et(t),y=this._zTime<0!=t<0&&(this._initted||!m);if(this!==s&&v>_&&t>=0&&(v=_),v!==this._tTime||n||y){if(g!==this._time&&m&&(v+=this._time-g,t+=this._time-g),r=v,p=this._start,l=!(f=this._ts),y&&(m||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(D=this._yoyo,a=m+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,n);if(r=Et(v%a),v===_?(o=this._repeat,r=m):((o=~~(v/a))&&o===v/a&&(r=m,o--),r>m&&(r=m)),c=Xt(this._tTime,a),!g&&this._tTime&&c!==o&&(c=o),D&&1&o&&(r=m-r,d=1),o!==c&&!this._lock){var C=D&&1&c,x=C===(D&&1&o);if(oe)for(r=t._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if("isPause"===r.data&&r._start=g&&t>=0)for(i=this._first;i;){if(u=i._next,(i._act||r>=i._start)&&i._ts&&h!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!l){h=0,u&&(v+=this._zTime=-1e-8);break}}i=u}else{i=this._last;for(var F=t<0?t:r;i;){if(u=i._prev,(i._act||F<=i._end)&&i._ts&&h!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(F-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(F-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!l){h=0,u&&(v+=this._zTime=F?-1e-8:1e-8);break}}i=u}}if(h&&!e&&(this.pause(),h.render(r>=g?0:-1e-8)._zTime=r>=g?1:-1,this._ts))return this._start=p,Vt(this),this.render(t,e,n);this._onUpdate&&!e&&_e(this,"onUpdate",!0),(v===_&&_>=this.totalDuration()||!v&&g)&&(p!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||((t||!m)&&(v===_&&this._ts>0||!v&&this._ts<0)&&Rt(this,1),e||t<0&&!g||!v&&!g&&_||(_e(this,v===_&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<_&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(U(e)||(e=Jt(this,e,t)),!(t instanceof je)){if(Z(t))return t.forEach((function(t){return n.add(t,e)})),this;if(j(t))return this.addLabel(t,e);if(!V(t))return this;t=Je.delayedCall(0,t)}return this!==t?qt(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-L);for(var i=[],u=this._first;u;)u._start>=r&&(u instanceof Je?e&&i.push(u):(n&&i.push(u),t&&i.push.apply(i,u.getChildren(!0,e,n)))),u=u._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return j(t)?this.removeLabel(t):V(t)?this.killTweensOf(t):(Nt(this,t),t===this._recent&&(this._recent=this._last),It(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Et(Ae.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=Jt(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=Je.delayedCall(0,e||ft,n);return r.data="isPause",this._hasPause=1,qt(this,r,Jt(this,t))},n.removePause=function(t){var e=this._first;for(t=Jt(this,t);e;)e._start===t&&"isPause"===e.data&&Rt(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)Ue!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=oe(t),u=this._first,s=U(e);u;)u instanceof Je?Tt(u._targets,i)&&(s?(!Ue||u._initted&&u._ts)&&u.globalTime(0)<=e&&u.globalTime(u.totalDuration())>e:!e||u.isActive())&&r.push(u):(n=u.getTweensOf(i,e)).length&&r.push.apply(r,n),u=u._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=Jt(r,t),u=e,s=u.startAt,o=u.onStart,a=u.onStartParams,l=u.immediateRender,h=Je.to(r,Pt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale())||1e-8,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale());h._dur!==t&&Kt(h,t,0,1).render(h._time,!0,!0),n=1}o&&o.apply(h,a||[])}},e));return l?h.render(0):h},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,Pt({startAt:{time:Jt(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),ge(this,Jt(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),ge(this,Jt(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+1e-8)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,u=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in u)u[r]>=n&&(u[r]+=t);return It(this)},n.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),It(this)},n.totalDuration=function(t){var e,n,r,i=0,u=this,o=u._last,a=L;if(arguments.length)return u.timeScale((u._repeat<0?u.duration():u.totalDuration())/(u.reversed()?-t:t));if(u._dirty){for(r=u.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(n=o._start)>a&&u._sort&&o._ts&&!u._lock?(u._lock=1,qt(u,o,n-o._delay,1)._lock=0):a=n,n<0&&o._ts&&(i-=n,(!r&&!u._dp||r&&r.smoothChildTiming)&&(u._start+=n/u._ts,u._time-=n,u._tTime-=n),u.shiftChildren(-n,!1,-Infinity),a=0),o._end>i&&o._ts&&(i=o._end),o=e;Kt(u,u===s&&u._time>i?u._time:i,1,1),u._dirty=0}return u._tDur},e.updateRoot=function(t){if(s._ts&&(At(s,jt(t,s)),f=Ae.frame),Ae.frame>=_t){_t+=B.autoSleep||120;var e=s._first;if((!e||!e._ts)&&B.autoSleep&&Ae._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ae.sleep()}}},e}(je);Pt(Ve.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ue,We=function(t,e,n,r,i,u,s){var o,a,l,h,f,p,c,D,d=new Dn(this._pt,t,e,0,1,an,null,i),g=0,_=0;for(d.b=n,d.e=r,n+="",(c=~(r+="").indexOf("random("))&&(r=De(r)),u&&(u(D=[n,r],t,e),n=D[0],r=D[1]),a=n.match(et)||[];o=et.exec(r);)h=o[0],f=r.substring(g,o.index),l?l=(l+1)%5:"rgba("===f.substr(-5)&&(l=1),h!==a[_++]&&(p=parseFloat(a[_-1])||0,d._pt={_next:d._pt,p:f||1===_?f:",",s:p,c:"="===h.charAt(1)?parseFloat(h.substr(2))*("-"===h.charAt(0)?-1:1):parseFloat(h)-p,m:l&&l<4?Math.round:0},g=et.lastIndex);return d.c=g0&&!M&&(e._startAt=0),O&&n<=0)return void(n&&(e._zTime=n))}else!1===M&&(e._startAt=0);else if(T&&O)if(P)!M&&(e._startAt=0);else if(n&&(C=!1),o=Pt({overwrite:!1,data:"isFromStart",lazy:C&&G(x),immediateRender:C,stagger:0,parent:B},r),g&&(o[p.prop]=g),Rt(e._startAt=Je.set(S,o)),n<0&&e._startAt.render(-1,!0),e._zTime=n,C){if(!n)return}else t(e._startAt,1e-8);for(e._pt=0,x=O&&G(x)||x&&!O,i=0;i")}));else{for(c in f={},F)"ease"===c||"easeEach"===c||Qe(c,F[c],f,F.easeEach);for(c in f)for(M=f[c].sort((function(t,e){return t.t-e.t})),S=0,h=0;hc-1e-8&&t>=0?c:t<1e-8?0:t;if(D){if(d!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=t<0){if(r=d,h=this.timeline,this._repeat){if(s=D+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,n);if(r=Et(d%s),d===c?(u=this._repeat,r=D):((u=~~(d/s))&&u===d/s&&(r=D,u--),r>D&&(r=D)),(a=this._yoyo&&1&u)&&(f=this._yEase,r=D-r),o=Xt(this._tTime,s),r===p&&!n&&this._initted)return this;u!==o&&(h&&this._yEase&&Le(h,a),!this.vars.repeatRefresh||a||this._lock||(this._lock=n=1,this.render(Et(s*u),!0).invalidate()._lock=0))}if(!this._initted){if(Ht(this,t<0?t:r,n,e))return this._tTime=0,this;if(D!==this._dur)return this.render(t,e,n)}if(this._tTime=d,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(f||this._ease)(r/D),this._from&&(this.ratio=l=1-l),r&&!p&&!e&&(_e(this,"onStart"),this._tTime!==d))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;h&&h.render(t<0?t:!r&&a?-1e-8:h._dur*h._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,n),_e(this,"onUpdate")),this._repeat&&u!==o&&this.vars.onRepeat&&!e&&this.parent&&_e(this,"onRepeat"),d!==this._tDur&&d||this._tTime!==d||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!D)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&Rt(this,1),e||t<0&&!p||!d&&!p||(_e(this,d===c?"onComplete":"onReverseComplete",!0),this._prom&&!(d0)&&this._prom()))}}else!function(t,e,n,r){var i,u,s,o=t.ratio,a=e<0||!e&&(!t._start&&function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))}(t)&&(t._initted||!Qt(t))||(t._ts<0||t._dp._ts<0)&&!Qt(t))?0:1,l=t._rDelay,h=0;if(l&&t._repeat&&(h=ne(0,t._tDur,e),u=Xt(h,l),t._yoyo&&1&u&&(a=1-a),u!==Xt(t._tTime,l)&&(o=1-a,t.vars.repeatRefresh&&t._initted&&t.invalidate())),a!==o||r||1e-8===t._zTime||!e&&t._zTime){if(!t._initted&&Ht(t,e,r,n))return;for(s=t._zTime,t._zTime=e||(n?1e-8:0),n||(n=e&&!s),t.ratio=a,t._from&&(a=1-a),t._time=0,t._tTime=h,i=t._pt;i;)i.r(a,i.d),i=i._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!n&&_e(t,"onUpdate"),h&&t._repeat&&!n&&t.parent&&_e(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===a&&(a&&Rt(t,1),n||(_e(t,a?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?me(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ue&&!0!==Ue.vars.overwrite)._first||me(this),this.parent&&n!==this.timeline.totalDuration()&&Kt(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,u,s,o,a,l,h=this._targets,f=t?oe(t):h,p=this._ptLookup,c=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(h,f))return"all"===e&&(this._pt=0),me(this);for(r=this._op=this._op||[],"all"!==e&&(j(e)&&(o={},Ft(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var n,r,i,u,s=t[0]?Ct(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(r in n=St({},e),o)if(r in n)for(i=(u=o[r].split(",")).length;i--;)n[u[i]]=n[r];return n}(h,e)),l=h.length;l--;)if(~f.indexOf(h[l]))for(o in i=p[l],"all"===e?(r[l]=e,s=i,u={}):(u=r[l]=r[l]||{},s=e),s)(a=i&&i[o])&&("kill"in a.d&&!0!==a.d.kill(o)||Nt(this,a,"_pt"),delete i[o]),"all"!==u&&(u[o]=1);return this._initted&&!this._pt&&c&&me(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return te(1,arguments)},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,e,n){return te(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return s.killTweensOf(t,e,n)},e}(je);Pt(Je.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ft("staggerTo,staggerFrom,staggerFromTo",(function(t){Je[t]=function(){var e=new Ve,n=ie.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var tn=function(t,e,n){return t[e]=n},en=function(t,e,n){return t[e](n)},nn=function(t,e,n,r){return t[e](r.fp,n)},rn=function(t,e,n){return t.setAttribute(e,n)},un=function(t,e){return V(t[e])?en:W(t[e])&&t.setAttribute?rn:tn},sn=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},on=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},an=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},ln=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},hn=function(t,e,n,r){for(var i,u=this._pt;u;)i=u._next,u.p===r&&u.modifier(t,e,n),u=i},fn=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Nt(this,r,"_pt"):r.dep||(e=1),r=n;return!e},pn=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},cn=function(t){for(var e,n,r,i,u=t._pt;u;){for(e=u._next,n=r;n&&n.pr>u.pr;)n=n._next;(u._prev=n?n._prev:i)?u._prev._next=u:r=u,(u._next=n)?n._prev=u:i=u,u=e}t._pt=r},Dn=function(){function t(t,e,n,r,i,u,s,o,a){this.t=e,this.s=r,this.c=i,this.p=n,this.r=u||sn,this.d=s||this,this.set=o||tn,this.pr=a||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=pn,this.m=t,this.mt=n,this.tween=e},t}();Ft(vt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return pt[t]=1})),ut.TweenMax=ut.TweenLite=Je,ut.TimelineLite=ut.TimelineMax=Ve,s=new Ve({sortChildren:!1,defaults:k,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),B.stringFilter=be;var dn={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n1){var r=t.map((function(t){return mn.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var u=dt[e],s=Ct(t),o=s.harness&&(s.harness.aliases||{})[e]||e,a=u?function(e){var r=new u;p._pt=0,r.init(t,n?e+n:e,p,0,[t]),r.render(1,r),p._pt&&ln(1,p)}:s.set(t,o);return u?a:function(e){return a(t,o,n?e+n:e,s,1)}},isTweening:function(t){return s.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ne(t.ease,k.ease)),Bt(k,t||{})},config:function(t){return Bt(B,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,u=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!dt[t]&&!ut[t]&<(e+" effect requires "+t+" plugin.")})),gt[e]=function(t,e,r){return n(oe(t),Pt(e||{},i),r)},u&&(Ve.prototype[e]=function(t,n,r){return this.add(gt[e](t,q(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Oe[t]=Ne(e)},parseEase:function(t,e){return arguments.length?Ne(t,e):Oe},getById:function(t){return s.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new Ve(t);for(i.smoothChildTiming=G(t.smoothChildTiming),s.remove(i),i._dp=0,i._time=i._tTime=s._time,n=s._first;n;)r=n._next,!e&&!n._dur&&n instanceof Je&&n.vars.onComplete===n._targets[0]||qt(i,n,n._start-n._delay),n=r;return qt(s,i,0),i},utils:{wrap:function t(e,n,r){var i=n-e;return Z(e)?ce(e,t(0,e.length),n):ee(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,u=2*i;return Z(e)?ce(e,t(0,e.length-1),n):ee(r,(function(t){return e+((t=(u+(t-e)%u)%u||0)>i?u-t:t)}))},distribute:le,random:pe,snap:fe,normalize:function(t,e,n){return de(t,e,0,1,n)},getUnit:re,clamp:function(t,e,n){return ee(n,(function(n){return ne(t,e,n)}))},splitColor:xe,toArray:oe,selector:function(t){return t=oe(t)[0]||lt("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return oe(e,n.querySelectorAll?n:n===t?lt("Invalid scope")||l.createElement("div"):t)}},mapRange:de,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n=0?Kn[i]:"")+t},$n=function(){"undefined"!=typeof window&&window.document&&(vn=window,yn=vn.document,Cn=yn.documentElement,Fn=Hn("div")||{style:{}},Hn("div"),qn=Zn(qn),Gn=qn+"Origin",Fn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",En=!!Zn("perspective"),xn=1)},Jn=function t(e){var n,r=Hn("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,u=this.nextSibling,s=this.style.cssText;if(Cn.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(u?i.insertBefore(this,u):i.appendChild(this)),Cn.removeChild(r),this.style.cssText=s,n},tr=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},er=function(t){var e;try{e=t.getBBox()}catch(n){e=Jn.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Jn||(e=Jn.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+tr(t,["x","cx","x1"])||0,y:+tr(t,["y","cy","y1"])||0,width:0,height:0}},nr=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!er(t))},rr=function(t,e){if(e){var n=t.style;e in Tn&&e!==Gn&&(e=qn),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(On,"-$1").toLowerCase())):n.removeAttribute(e)}},ir=function(t,e,n,r,i,u){var s=new Dn(t._pt,e,n,0,1,u?zn:In);return t._pt=s,s.b=r,s.e=i,t._props.push(n),s},ur={deg:1,rad:1,turn:1},sr=function t(e,n,r,i){var u,s,o,a,l=parseFloat(r)||0,h=(r+"").trim().substr((l+"").length)||"px",f=Fn.style,p=Pn.test(n),c="svg"===e.tagName.toLowerCase(),D=(c?"client":"offset")+(p?"Width":"Height"),d="px"===i,g="%"===i;return i===h||!l||ur[i]||ur[h]?l:("px"!==h&&!d&&(l=t(e,n,r,"px")),a=e.getCTM&&nr(e),!g&&"%"!==h||!Tn[n]&&!~n.indexOf("adius")?(f[p?"width":"height"]=100+(d?h:i),s=~n.indexOf("adius")||"em"===i&&e.appendChild&&!c?e:e.parentNode,a&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==yn&&s.appendChild||(s=yn.body),(o=s._gsap)&&g&&o.width&&p&&o.time===Ae.time?wt(l/o.width*100):((g||"%"===h)&&(f.position=Qn(e,"position")),s===e&&(f.position="static"),s.appendChild(Fn),u=Fn[D],s.removeChild(Fn),f.position="absolute",p&&g&&((o=Ct(s)).time=Ae.time,o.width=s[D]),wt(d?u*l/100:u&&l?100/u*l:0))):(u=a?e.getBBox()[p?"width":"height"]:e[D],wt(g?l/u*100:l/100*u)))},or=function(t,e,n,r){var i;return xn||$n(),e in Bn&&"transform"!==e&&~(e=Bn[e]).indexOf(",")&&(e=e.split(",")[0]),Tn[e]&&"transform"!==e?(i=mr(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:vr(Qn(t,Gn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=fr[e]&&fr[e](t,e,n)||Qn(t,e)||xt(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?sr(t,e,i,n)+n:i},ar=function(t,e,n,r){if(!n||"none"===n){var i=Zn(e,t,1),u=i&&Qn(t,i,1);u&&u!==n?(e=i,n=u):"borderColor"===e&&(n=Qn(t,"borderTopColor"))}var s,o,a,l,h,f,p,c,D,d,g,_,m=new Dn(this._pt,t.style,e,0,1,an),v=0,y=0;if(m.b=n,m.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=Qn(t,e)||r,t.style[e]=n),be(s=[n,r]),r=s[1],a=(n=s[0]).match(tt)||[],(r.match(tt)||[]).length){for(;o=tt.exec(r);)p=o[0],D=r.substring(v,o.index),h?h=(h+1)%5:"rgba("!==D.substr(-5)&&"hsla("!==D.substr(-5)||(h=1),p!==(f=a[y++]||"")&&(l=parseFloat(f)||0,g=f.substr((l+"").length),(_="="===p.charAt(1)?+(p.charAt(0)+"1"):0)&&(p=p.substr(2)),c=parseFloat(p),d=p.substr((c+"").length),v=tt.lastIndex-d.length,d||(d=d||B.units[e]||g,v===r.length&&(r+=d,m.e+=d)),g!==d&&(l=sr(t,e,f,d)||0),m._pt={_next:m._pt,p:D||1===y?D:",",s:l,c:_?_*c:c-l,m:h&&h<4||"zIndex"===e?Math.round:0});m.c=v-1;)n=o[i],Tn[n]&&(r=1,n="transformOrigin"===n?Gn:qn),rr(u,n);r&&(rr(u,qn),a&&(a.svg&&u.removeAttribute("transform"),mr(u,1),a.uncache=1))}},fr={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var u=t._pt=new Dn(t._pt,e,n,0,0,hr);return u.u=r,u.pr=-10,u.tween=i,t._props.push(n),1}}},pr=[1,0,0,1,0,0],cr={},Dr=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},dr=function(t){var e=Qn(t,qn);return Dr(e)?pr:e.substr(7).match(J).map(wt)},gr=function(t,e){var n,r,i,u,s=t._gsap||Ct(t),o=t.style,a=dr(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(a=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?pr:a:(a!==pr||t.offsetParent||t===Cn||s.svg||(i=o.display,o.display="block",(n=t.parentNode)&&t.offsetParent||(u=1,r=t.nextSibling,Cn.appendChild(t)),a=dr(t),i?o.display=i:rr(t,"display"),u&&(r?n.insertBefore(t,r):n?n.appendChild(t):Cn.removeChild(t))),e&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},_r=function(t,e,n,r,i,u){var s,o,a,l=t._gsap,h=i||gr(t,!0),f=l.xOrigin||0,p=l.yOrigin||0,c=l.xOffset||0,D=l.yOffset||0,d=h[0],g=h[1],_=h[2],m=h[3],v=h[4],y=h[5],C=e.split(" "),x=parseFloat(C[0])||0,F=parseFloat(C[1])||0;n?h!==pr&&(o=d*m-g*_)&&(a=x*(-g/o)+F*(d/o)-(d*y-g*v)/o,x=x*(m/o)+F*(-_/o)+(_*y-m*v)/o,F=a):(x=(s=er(t)).x+(~C[0].indexOf("%")?x/100*s.width:x),F=s.y+(~(C[1]||C[0]).indexOf("%")?F/100*s.height:F)),r||!1!==r&&l.smooth?(v=x-f,y=F-p,l.xOffset=c+(v*d+y*_)-v,l.yOffset=D+(v*g+y*m)-y):l.xOffset=l.yOffset=0,l.xOrigin=x,l.yOrigin=F,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[Gn]="0px 0px",u&&(ir(u,l,"xOrigin",f,x),ir(u,l,"yOrigin",p,F),ir(u,l,"xOffset",c,l.xOffset),ir(u,l,"yOffset",D,l.yOffset)),t.setAttribute("data-svg-origin",x+" "+F)},mr=function(t,e){var n=t._gsap||new Xe(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,u,s,o,a,l,h,f,p,c,D,d,g,_,m,v,y,C,x,F,w,E,T,b,A,M,O,P,S,k,L,N=t.style,R=n.scaleX<0,I=Qn(t,Gn)||"0";return r=i=u=a=l=h=f=p=c=0,s=o=1,n.svg=!(!t.getCTM||!nr(t)),g=gr(t,n.svg),n.svg&&(T=(!n.uncache||"0px 0px"===I)&&!e&&t.getAttribute("data-svg-origin"),_r(t,T||I,!!T||n.originIsAbsolute,!1!==n.smooth,g)),D=n.xOrigin||0,d=n.yOrigin||0,g!==pr&&(y=g[0],C=g[1],x=g[2],F=g[3],r=w=g[4],i=E=g[5],6===g.length?(s=Math.sqrt(y*y+C*C),o=Math.sqrt(F*F+x*x),a=y||C?Mn(C,y)*bn:0,(f=x||F?Mn(x,F)*bn+a:0)&&(o*=Math.abs(Math.cos(f*An))),n.svg&&(r-=D-(D*y+d*x),i-=d-(D*C+d*F))):(L=g[6],S=g[7],M=g[8],O=g[9],P=g[10],k=g[11],r=g[12],i=g[13],u=g[14],l=(_=Mn(L,P))*bn,_&&(T=w*(m=Math.cos(-_))+M*(v=Math.sin(-_)),b=E*m+O*v,A=L*m+P*v,M=w*-v+M*m,O=E*-v+O*m,P=L*-v+P*m,k=S*-v+k*m,w=T,E=b,L=A),h=(_=Mn(-x,P))*bn,_&&(m=Math.cos(-_),k=F*(v=Math.sin(-_))+k*m,y=T=y*m-M*v,C=b=C*m-O*v,x=A=x*m-P*v),a=(_=Mn(C,y))*bn,_&&(T=y*(m=Math.cos(_))+C*(v=Math.sin(_)),b=w*m+E*v,C=C*m-y*v,E=E*m-w*v,y=T,w=b),l&&Math.abs(l)+Math.abs(a)>359.9&&(l=a=0,h=180-h),s=wt(Math.sqrt(y*y+C*C+x*x)),o=wt(Math.sqrt(E*E+L*L)),_=Mn(w,E),f=Math.abs(_)>2e-4?_*bn:0,c=k?1/(k<0?-k:k):0),n.svg&&(T=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Dr(Qn(t,qn)),T&&t.setAttribute("transform",T))),Math.abs(f)>90&&Math.abs(f)<270&&(R?(s*=-1,f+=a<=0?180:-180,a+=a<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),n.x=r-((n.xPercent=r&&(n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+"px",n.y=i-((n.yPercent=i&&(n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+"px",n.z=u+"px",n.scaleX=wt(s),n.scaleY=wt(o),n.rotation=wt(a)+"deg",n.rotationX=wt(l)+"deg",n.rotationY=wt(h)+"deg",n.skewX=f+"deg",n.skewY=p+"deg",n.transformPerspective=c+"px",(n.zOrigin=parseFloat(I.split(" ")[2])||0)&&(N[Gn]=vr(I)),n.xOffset=n.yOffset=0,n.force3D=B.force3D,n.renderTransform=n.svg?Fr:En?xr:Cr,n.uncache=0,n},vr=function(t){return(t=t.split(" "))[0]+" "+t[1]},yr=function(t,e,n){var r=re(e);return wt(parseFloat(e)+parseFloat(sr(t,"x",n+"px",r)))+r},Cr=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,xr(t,e)},xr=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,u=n.x,s=n.y,o=n.z,a=n.rotation,l=n.rotationY,h=n.rotationX,f=n.skewX,p=n.skewY,c=n.scaleX,D=n.scaleY,d=n.transformPerspective,g=n.force3D,_=n.target,m=n.zOrigin,v="",y="auto"===g&&t&&1!==t||!0===g;if(m&&("0deg"!==h||"0deg"!==l)){var C,x=parseFloat(l)*An,F=Math.sin(x),w=Math.cos(x);x=parseFloat(h)*An,C=Math.cos(x),u=yr(_,u,F*C*-m),s=yr(_,s,-Math.sin(x)*-m),o=yr(_,o,w*C*-m+m)}"0px"!==d&&(v+="perspective("+d+") "),(r||i)&&(v+="translate("+r+"%, "+i+"%) "),(y||"0px"!==u||"0px"!==s||"0px"!==o)&&(v+="0px"!==o||y?"translate3d("+u+", "+s+", "+o+") ":"translate("+u+", "+s+") "),"0deg"!==a&&(v+="rotate("+a+") "),"0deg"!==l&&(v+="rotateY("+l+") "),"0deg"!==h&&(v+="rotateX("+h+") "),"0deg"===f&&"0deg"===p||(v+="skew("+f+", "+p+") "),1===c&&1===D||(v+="scale("+c+", "+D+") "),_.style[qn]=v||"translate(0, 0)"},Fr=function(t,e){var n,r,i,u,s,o=e||this,a=o.xPercent,l=o.yPercent,h=o.x,f=o.y,p=o.rotation,c=o.skewX,D=o.skewY,d=o.scaleX,g=o.scaleY,_=o.target,m=o.xOrigin,v=o.yOrigin,y=o.xOffset,C=o.yOffset,x=o.forceCSS,F=parseFloat(h),w=parseFloat(f);p=parseFloat(p),c=parseFloat(c),(D=parseFloat(D))&&(c+=D=parseFloat(D),p+=D),p||c?(p*=An,c*=An,n=Math.cos(p)*d,r=Math.sin(p)*d,i=Math.sin(p-c)*-g,u=Math.cos(p-c)*g,c&&(D*=An,s=Math.tan(c-D),i*=s=Math.sqrt(1+s*s),u*=s,D&&(s=Math.tan(D),n*=s=Math.sqrt(1+s*s),r*=s)),n=wt(n),r=wt(r),i=wt(i),u=wt(u)):(n=d,u=g,r=i=0),(F&&!~(h+"").indexOf("px")||w&&!~(f+"").indexOf("px"))&&(F=sr(_,"x",h,"px"),w=sr(_,"y",f,"px")),(m||v||y||C)&&(F=wt(F+m-(m*n+v*i)+y),w=wt(w+v-(m*r+v*u)+C)),(a||l)&&(s=_.getBBox(),F=wt(F+a/100*s.width),w=wt(w+l/100*s.height)),s="matrix("+n+","+r+","+i+","+u+","+F+","+w+")",_.setAttribute("transform",s),x&&(_.style[qn]=s)},wr=function(t,e,n,r,i,u){var s,o,a=j(i),l=parseFloat(i)*(a&&~i.indexOf("rad")?bn:1),h=u?l*u:l-r,f=r+h+"deg";return a&&("short"===(s=i.split("_")[1])&&(h%=360)!==h%180&&(h+=h<0?360:-360),"cw"===s&&h<0?h=(h+36e9)%360-360*~~(h/360):"ccw"===s&&h>0&&(h=(h-36e9)%360-360*~~(h/360))),t._pt=o=new Dn(t._pt,e,n,r,h,Ln),o.e=f,o.u="deg",t._props.push(n),o},Er=function(t,e){for(var n in e)t[n]=e[n];return t},Tr=function(t,e,n){var r,i,u,s,o,a,l,h=Er({},n._gsap),f=n.style;for(i in h.svg?(u=n.getAttribute("transform"),n.setAttribute("transform",""),f[qn]=e,r=mr(n,1),rr(n,qn),n.setAttribute("transform",u)):(u=getComputedStyle(n)[qn],f[qn]=e,r=mr(n,1),f[qn]=u),Tn)(u=h[i])!==(s=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=re(u)!==(l=re(s))?sr(n,i,u,l):parseFloat(u),a=parseFloat(s),t._pt=new Dn(t._pt,r,i,o,a-o,kn),t._pt.u=l||0,t._props.push(i));Er(r,h)};Ft("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",u="Left",s=(e<3?[n,r,i,u]:[n+u,n+r,i+r,i+u]).map((function(n){return e<2?t+n:"border"+n+t}));fr[e>1?"border"+t:t]=function(t,e,n,r,i){var u,o;if(arguments.length<4)return u=s.map((function(e){return or(t,e,n)})),5===(o=u.join(" ")).split(u[0]).length?u[0]:o;u=(r+"").split(" "),o={},s.forEach((function(t,e){return o[t]=u[e]=u[e]||u[(e-1)/2|0]})),t.init(e,o,i)}}));var br,Ar,Mr={name:"css",register:$n,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var u,s,o,a,l,h,f,p,c,D,d,g,_,m,v,y,C,x,F,w=this._props,E=t.style,T=n.vars.startAt;for(f in xn||$n(),e)if("autoRound"!==f&&(s=e[f],!dt[f]||!Ge(f,e,n,r,t,i)))if(l=typeof s,h=fr[f],"function"===l&&(l=typeof(s=s.call(n,r,t,i))),"string"===l&&~s.indexOf("random(")&&(s=De(s)),h)h(this,t,f,s,n)&&(v=1);else if("--"===f.substr(0,2))u=(getComputedStyle(t).getPropertyValue(f)+"").trim(),s+="",Ee.lastIndex=0,Ee.test(u)||(p=re(u),c=re(s)),c?p!==c&&(u=sr(t,f,u,c)+c):p&&(s+=p),this.add(E,"setProperty",u,s,r,i,0,0,f),w.push(f);else if("undefined"!==l){if(T&&f in T?(u="function"==typeof T[f]?T[f].call(n,r,t,i):T[f],f in B.units&&!re(u)&&(u+=B.units[f]),j(u)&&~u.indexOf("random(")&&(u=De(u)),"="===(u+"").charAt(1)&&(u=or(t,f))):u=or(t,f),a=parseFloat(u),(D="string"===l&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),o=parseFloat(s),f in Bn&&("autoAlpha"===f&&(1===a&&"hidden"===or(t,"visibility")&&o&&(a=0),ir(this,E,"visibility",a?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==f&&"transform"!==f&&~(f=Bn[f]).indexOf(",")&&(f=f.split(",")[0])),d=f in Tn)if(g||((_=t._gsap).renderTransform&&!e.parseTransform||mr(t,e.parseTransform),m=!1!==e.smoothOrigin&&_.smooth,(g=this._pt=new Dn(this._pt,E,qn,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===f)this._pt=new Dn(this._pt,_,"scaleY",_.scaleY,(D?D*o:o-_.scaleY)||0),w.push("scaleY",f),f+="X";else{if("transformOrigin"===f){C=void 0,x=void 0,F=void 0,C=(y=s).split(" "),x=C[0],F=C[1]||"50%","top"!==x&&"bottom"!==x&&"left"!==F&&"right"!==F||(y=x,x=F,F=y),C[0]=lr[x]||x,C[1]=lr[F]||F,s=C.join(" "),_.svg?_r(t,s,0,m,0,this):((c=parseFloat(s.split(" ")[2])||0)!==_.zOrigin&&ir(this,_,"zOrigin",_.zOrigin,c),ir(this,E,f,vr(u),vr(s)));continue}if("svgOrigin"===f){_r(t,s,1,m,0,this);continue}if(f in cr){wr(this,_,f,a,s,D);continue}if("smoothOrigin"===f){ir(this,_,"smooth",_.smooth,s);continue}if("force3D"===f){_[f]=s;continue}if("transform"===f){Tr(this,s,t);continue}}else f in E||(f=Zn(f)||f);if(d||(o||0===o)&&(a||0===a)&&!Sn.test(s)&&f in E)o||(o=0),(p=(u+"").substr((a+"").length))!==(c=re(s)||(f in B.units?B.units[f]:p))&&(a=sr(t,f,u,c)),this._pt=new Dn(this._pt,d?_:E,f,a,D?D*o:o-a,d||"px"!==c&&"zIndex"!==f||!1===e.autoRound?kn:Rn),this._pt.u=c||0,p!==c&&"%"!==c&&(this._pt.b=u,this._pt.r=Nn);else if(f in E)ar.call(this,t,f,u,s);else{if(!(f in t)){at(f,s);continue}this.add(t,f,u||t[f],s,r,i)}w.push(f)}v&&cn(this)},get:or,aliases:Bn,getSetter:function(t,e,n){var r=Bn[e];return r&&r.indexOf(",")<0&&(e=r),e in Tn&&e!==Gn&&(t._gsap.x||or(t,"x"))?n&&wn===n?"scale"===e?Vn:jn:(wn=n||{})&&("scale"===e?Un:Wn):t.style&&!W(t.style[e])?Yn:~e.indexOf("-")?Xn:un(t,e)},core:{_removeProperty:rr,_getMatrix:gr}};mn.utils.checkPrefix=Zn,Ar=Ft("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(br="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Tn[t]=1})),Ft(br,(function(t){B.units[t]="deg",cr[t]=1})),Bn[Ar[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+br,Ft("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Bn[e[1]]=Ar[e[0]]})),Ft("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective,transformPerspective",(function(t){B.units[t]="px"})),mn.registerPlugin(Mr);var Or,Pr,Sr,Br=mn.registerPlugin(Mr)||mn,kr=Br.core.Tween,Lr=function(){return Or||"undefined"!=typeof window&&(Or=window.gsap)&&Or.registerPlugin&&Or},Nr=function(t){Or=Lr(),(Sr=Or&&Or.parseEase("_CE"))?(Pr=1,Or.parseEase("bounce").config=function(t){return"object"==typeof t?Ir("",t):Ir("bounce("+t+")",{strength:+t})}):t&&console.warn("Please gsap.registerPlugin(CustomEase, CustomBounce)")},Rr=function(t){var e,n=t.length,r=1/t[n-2];for(e=2;e.999));s++);if(e.endAtStart&&"false"!==e.endAtStart){if(i=-.1,_.unshift(i,1,i,1,-.07,0),p)for(i-=f=2.5*p,_.unshift(i,1,i,1,i,1),m.splice(0,6),m.unshift(i,0,i,0,i,1,i+f/2,1,i+f,1,i+f,0,i+f,0,i+f,-.6,i+f+.033,0),s=0;se)for(;--i&&t[i]>e;);else for(;t[++i] element or an SVG path data string")}function li(t){var e,n=0;for(t.reverse();n-1;)n=i[u].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,i[u].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),F=function(t,e){for(var n=e?e.split(","):[],r={},i=n.length;--i>-1;)r[n[i]]=+t.getAttribute(n[i])||0;return r}(t,hi[w]),"rect"===w?(u=F.rx,s=F.ry||u,r=F.x,i=F.y,f=F.width-2*u,p=F.height-2*s,n=u||s?"M"+(_=(d=(D=r+u)+f)+u)+","+(v=i+s)+" V"+(y=v+p)+" C"+[_,C=y+s*E,g=d+u*E,x=y+s,d,x,d-(d-D)/3,x,D+(d-D)/3,x,D,x,c=r+u*(1-E),x,r,C,r,y,r,y-(y-v)/3,r,v+(y-v)/3,r,v,r,m=i+s*(1-E),c,i,D,i,D+(d-D)/3,i,d-(d-D)/3,i,d,i,g,i,_,m,_,v].join(",")+"z":"M"+(r+f)+","+i+" v"+p+" h"+-f+" v"+-p+" h"+f+"z"):"circle"===w||"ellipse"===w?("circle"===w?l=(u=s=F.r)*E:(u=F.rx,l=(s=F.ry)*E),n="M"+((r=F.cx)+u)+","+(i=F.cy)+" C"+[r+u,i+l,r+(a=u*E),i+s,r,i+s,r-a,i+s,r-u,i+l,r-u,i,r-u,i-l,r-a,i-s,r,i-s,r+a,i-s,r+u,i-l,r+u,i].join(",")+"z"):"line"===w?n="M"+F.x1+","+F.y1+" L"+F.x2+","+F.y2:"polyline"!==w&&"polygon"!==w||(n="M"+(r=(h=(t.getAttribute("points")+"").match(Xr)||[]).shift())+","+(i=h.shift())+" L"+h.join(","),"polygon"===w&&(n+=","+r+","+i+"z")),o.setAttribute("d",wi(o._gsRawPath=Ci(n))),e&&t.parentNode&&(t.parentNode.insertBefore(o,t),t.parentNode.removeChild(t)),o):t}function pi(t,e,n){var r,i=t[e],u=t[e+2],s=t[e+4];return i+=(u-i)*n,i+=((u+=(s-u)*n)-i)*n,r=u+(s+(t[e+6]-s)*n-u)*n-i,i=t[e+1],i+=((u=t[e+3])-i)*n,i+=((u+=((s=t[e+5])-u)*n)-i)*n,ni(Kr(u+(s+(t[e+7]-s)*n-u)*n-i,r)*Wr)}function ci(t,e,n){n=void 0===n?1:ri(n)||0,e=ri(e)||0;var r=Math.max(0,~~(Hr(n-e)-1e-8)),i=function(t){for(var e=[],n=0;nn&&(e=1-e,n=1-n,function(t,e){var n=t.length;for(e||t.reverse();n--;)t[n].reversed||li(t[n])}(i),i.totalLength=0),e<0||n<0){var u=Math.abs(~~Math.min(e,n))+1;e+=u,n+=u}i.totalLength||di(i);var s,o,a,l,h,f,p,c,D=n>1,d=_i(i,e,Jr,!0),g=_i(i,n,ti),_=g.segment,m=d.segment,v=g.segIndex,y=d.segIndex,C=g.i,x=d.i,F=y===v,w=C===x&&F;if(D||r){for(s=vv)&&i.splice(l,1);else _.angle=pi(_,C+a,0),d=_[C+=a],g=_[C+1],_.length=_.totalLength=0,_.totalPoints=i.totalPoints=8,_.push(d,g,d,g,d,g,d,g);return i.totalLength=0,i}function Di(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var r,i,u,s,o,a,l,h,f,p,c,D,d,g,_,m,v,y=~~t.resolution||12,C=1/y,x=n?e+6*n+1:t.length,F=t[e],w=t[e+1],E=e?e/6*y:0,T=t.samples,b=t.lookup,A=(e?t.minLength:1e8)||1e8,M=T[E+n*y-1],O=e?T[E-1]:0;for(T.length=b.length=0,i=e+2;i8&&(t.splice(i,6),i-=6,x-=6);else for(r=1;r<=y;r++)a=l-(l=((g=C*r)*g*u+3*(d=1-g)*(g*s+d*o))*g),c=D-(D=(g*g*h+3*d*(g*f+d*p))*g),(m=Qr(c*c+a*a))=1)return 0;var r=t[e],i=t[e+1],u=t[e+2],s=t[e+3],o=t[e+4],a=t[e+5],l=r+(u-r)*n,h=u+(o-u)*n,f=i+(s-i)*n,p=s+(a-s)*n,c=l+(h-l)*n,D=f+(p-f)*n,d=o+(t[e+6]-o)*n,g=a+(t[e+7]-a)*n;return h+=(d-h)*n,p+=(g-p)*n,t.splice(e+2,4,ni(l),ni(f),ni(c),ni(D),ni(c+(h-c)*n),ni(D+(p-D)*n),ni(h),ni(p),ni(d),ni(g)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function _i(t,e,n,r){n=n||{},t.totalLength||di(t),(e<0||e>1)&&(e=ei(e));var i,u,s,o,a,l,h,f=0,p=t[0];if(e)if(1===e)h=1,l=(p=t[f=t.length-1]).length-8;else{if(t.length>1){for(s=t.totalLength*e,a=l=0;(a+=t[l++].totalLength)1)&&(e=ei(e)),t.length>1){for(s=t.totalLength*e,a=l=0;(a+=t[l++].totalLength)=1?1-1e-9:h||1e-9):c.angle||0),D}function vi(t,e,n,r,i,u,s){for(var o,a,l,h,f,p=t.length;--p>-1;)for(a=(o=t[p]).length,l=0;l1&&(n=Qr(y)*n,r=Qr(y)*r);var C=n*n,x=r*r,F=(C*x-C*v-x*m)/(C*v+x*m);F<0&&(F=0);var w=(u===s?-1:1)*Qr(F),E=w*(n*_/r),T=w*(-r*g/n),b=(t+o)/2+(h*E-f*T),A=(e+a)/2+(f*E+h*T),M=(g-E)/n,O=(_-T)/r,P=(-g-E)/n,S=(-_-T)/r,B=M*M+O*O,k=(O<0?-1:1)*Math.acos(M/Qr(B)),L=(M*S-O*P<0?-1:1)*Math.acos((M*P+O*S)/Qr(B*(P*P+S*S)));isNaN(L)&&(L=p),!s&&L>0?L-=c:s&&L<0&&(L+=c),k%=c,L%=c;var N,R=Math.ceil(Hr(L)/(c/4)),I=[],z=L/R,Y=4/3*qr(z/2)/(1+Gr(z/2)),X=h*n,j=f*n,V=f*-r,U=h*r;for(N=0;N-1e-4?0:e})).match(Yr)||[],_=[],m=0,v=0,y=g.length,C=0,x="ERROR: malformed path: "+t,F=function(t,e,n,r){h=(n-t)/3,f=(r-e)/3,o.push(t+h,e+f,n-h,r-f,n,r)};if(!t||!isNaN(g[0])||isNaN(g[1]))return console.log(x),_;for(e=0;e.5||Hr(v-i)>.5)&&(F(m,v,r,i),"L"===u&&(e+=2)),m=r,v=i;else if("A"===u){if(D=g[e+4],d=g[e+5],h=g[e+6],f=g[e+7],n=7,D.length>1&&(D.length<3?(f=h,h=d,n--):(f=d,h=D.substr(2),n-=2),d=D.charAt(1),D=D.charAt(0)),p=yi(m,v,+g[e+1],+g[e+2],+g[e+3],+D,+d,(s?m:0)+1*h,(s?v:0)+1*f),e+=n,p)for(n=0;nn?(s=Kr(f,l),x.push(ni(m-Gr(s)*p),ni(v-qr(s)*p),ni(m),ni(v),ni(m+Gr(s)*c),ni(v+qr(s)*c))):(s=Kr(h,a),x.push(ni(m-Gr(s)*p),ni(v-qr(s)*p)),s=Kr(w,F),x.push(ni(m),ni(v),ni(m+Gr(s)*c),ni(v+qr(s)*c)))));return m!==y||v!==C||x.length<4?x.push(ni(y),ni(C),ni(y),ni(C)):x.length-=2,E&&(x.splice(0,6),x.length=x.length-6),x}function wi(t){$r(t[0])&&(t=[t]);var e,n,r,i,u="",s=t.length;for(n=0;nl*(E*E+T*T)&&(p=h.length,t(e,n,c,D,v,y,F,w,l,h,f),t(F,w,C,x,_,m,o,a,l,h,f+1+(h.length-p))),h},Bi=function(){function t(t,e,n){Ti||Ai(),this.id=t,this.setData(e,n)}var e=t.prototype;return e.setData=function(t,e){e=e||{};var n,r,i,u,s,o,a,l,h,f=(t=t||"0,0,1,1").match(Oi),p=1,c=[],D=[],d=e.precision||1,g=d<=1;if(this.data=t,(Pi.test(t)||~t.indexOf("M")&&t.indexOf("C")<0)&&(f=Ci(t)[0]),4===(n=f.length))f.unshift(0,0),f.push(1,1),n=8;else if((n-2)%6)throw"Invalid CustomEase";for(0==+f[0]&&1==+f[n-2]||function(t,e,n){n||0===n||(n=Math.max(+t[t.length-1],+t[1]));var r,i=-1*+t[0],u=-n,s=t.length,o=1/(+t[s-2]+i),a=-e||(Math.abs(+t[s-1]-+t[1])<.01*(+t[s-2]-+t[0])?function(t){var e,n=t.length,r=1e20;for(e=1;el.x||l.y!==a.y&&l.x===a.x||a===l)&&a.x<=1?(l.cx=a.x-l.x,l.cy=a.y-l.y,l.n=a,l.nx=a.x,g&&u>1&&Math.abs(l.cy/l.cx-c[u-2].cy/c[u-2].cx)>2&&(g=0),l.cxh||u===l-1)&&(r.push(f,p),i=(a-p)/(o-f)),f=o,p=a;r="M"+r.join(",")}return _&&_.setAttribute("d",r),r},t}();bi()&&Ei.registerPlugin(Bi),Bi.version="3.9.0"; var ki,Li,Ni,Ri=function(){return ki||"undefined"!=typeof window&&(ki=window.gsap)&&ki.registerPlugin&&ki},Ii={easeOut:"M0,1,C0.7,1,0.6,0,1,0",easeInOut:"M0,0,C0.1,0,0.24,1,0.444,1,0.644,1,0.6,0,1,0",anticipate:"M0,0,C0,0.222,0.024,0.386,0,0.4,0.18,0.455,0.65,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1",uniform:"M0,0,C0,0.95,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0"},zi=function(t){return t},Yi=function(t){if(!Li)if(ki=Ri(),Ni=ki&&ki.parseEase("_CE")){for(var e in Ii)Ii[e]=Ni("",Ii[e]);Li=1,ji("wiggle").config=function(t){return"object"==typeof t?ji("",t):ji("wiggle("+t+")",{wiggles:+t})}}else t&&console.warn("Please gsap.registerPlugin(CustomEase, CustomWiggle)")},Xi=function(t,e){return"function"!=typeof t&&(t=ki.parseEase(t)||Ni("",t)),t.custom||!e?t:function(e){return 1-t(e)}},ji=function(t,e){Li||Yi(1);var n,r,i,u,s,o,a,l,h,f=0|((e=e||{}).wiggles||10),p=1/f,c=p/2,D="anticipate"===e.type,d=Ii[e.type]||Ii.easeOut,g=zi;if(D&&(g=d,d=Ii.easeOut),e.timingEase&&(g=Xi(e.timingEase)),e.amplitudeEase&&(d=Xi(e.amplitudeEase,!0)),l=[0,0,(o=g(c))/4,0,o/2,a=D?-d(c):d(c),o,a],"random"===e.type){for(l.length=4,n=g(p),r=2*Math.random()-1,h=2;h0?-1:1)*d(h*p),o=g(c),l.push(g(c-p/2),a,o,a);l.push(g(c+p/4),a,g(c+p/4),0,1,0)}for(h=l.length;--h>-1;)l[h]=~~(1e3*l[h])/1e3;return l[2]="C"+l[2],Ni(t,"M"+l.join(","))},Vi=function(){function t(t,e){this.ease=ji(t,e)}return t.create=function(t,e){return ji(t,e)},t.register=function(t){ki=t,Yi()},t}();Ri()&&ki.registerPlugin(Vi),Vi.version="3.9.0"; var Ui,Wi,qi,Gi,Hi,Qi=function(){return"undefined"!=typeof window},Ki=function(){return Ui||Qi()&&(Ui=window.gsap)&&Ui.registerPlugin&&Ui},Zi=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,$i={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},Ji=function(t){return Math.round(1e4*t)/1e4},tu=function(t){return parseFloat(t)||0},eu=function(t,e){var n=tu(t);return~t.indexOf("%")?n/100*e:n},nu=function(t,e){return tu(t.getAttribute(e))},ru=Math.sqrt,iu=function(t,e,n,r,i,u){return ru(Math.pow((tu(n)-tu(t))*i,2)+Math.pow((tu(r)-tu(e))*u,2))},uu=function(t){return console.warn(t)},su=function(t){return"non-scaling-stroke"===t.getAttribute("vector-effect")},ou=function(t){if(!(t=Wi(t)[0]))return 0;var e,n,r,i,u,s,o,a=t.tagName.toLowerCase(),l=t.style,h=1,f=1;su(t)&&(f=t.getScreenCTM(),h=ru(f.a*f.a+f.b*f.b),f=ru(f.d*f.d+f.c*f.c));try{n=t.getBBox()}catch(t){uu("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var p=n||{x:0,y:0,width:0,height:0},c=p.x,D=p.y,d=p.width,g=p.height;if(n&&(d||g)||!$i[a]||(d=nu(t,$i[a][0]),g=nu(t,$i[a][1]),"rect"!==a&&"line"!==a&&(d*=2,g*=2),"line"===a&&(c=nu(t,"x1"),D=nu(t,"y1"),d=Math.abs(d-c),g=Math.abs(g-D))),"path"===a)i=l.strokeDasharray,l.strokeDasharray="none",e=t.getTotalLength()||0,h!==f&&uu("Warning: length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),e*=(h+f)/2,l.strokeDasharray=i;else if("rect"===a)e=2*d*h+2*g*f;else if("line"===a)e=iu(c,D,c+d,D+g,h,f);else if("polyline"===a||"polygon"===a)for(r=t.getAttribute("points").match(Zi)||[],"polygon"===a&&r.push(r[0],r[1]),e=0,u=2;ue&&(r=e),[-i||0,r-i||0]},lu=function(){Qi()&&(document,qi=window,Hi=Ui=Ki(),Wi=Ui.utils.toArray,Gi=-1!==((qi.navigator||{}).userAgent||"").indexOf("Edge"))},hu={version:"3.9.0",name:"drawSVG",register:function(t){Ui=t,lu()},init:function(t,e,n,r,i){if(!t.getBBox)return!1;Hi||lu();var u,s,o,a=ou(t);return this._style=t.style,this._target=t,e+""=="true"?e="0 100%":e?-1===(e+"").indexOf(" ")&&(e="0 "+e):e="0 0",s=function(t,e,n){var r,i,u=t.indexOf(" ");return u<0?(r=void 0!==n?n+"":t,i=t):(r=t.substr(0,u),i=t.substr(u+1)),(r=eu(r,e))>(i=eu(i,e))?[i,r]:[r,i]}(e,a,(u=au(t,a))[0]),this._length=Ji(a),this._dash=Ji(u[1]-u[0]),this._offset=Ji(-u[0]),this._dashPT=this.add(this,"_dash",this._dash,Ji(s[1]-s[0])),this._offsetPT=this.add(this,"_offset",this._offset,Ji(-s[0])),Gi&&(o=qi.getComputedStyle(t)).strokeLinecap!==o.strokeLinejoin&&(s=tu(o.strokeMiterlimit),this.add(t.style,"strokeMiterlimit",s,s+.01)),this._live=su(t)||~(e+"").indexOf("live"),this._nowrap=~(e+"").indexOf("nowrap"),this._props.push("drawSVG"),1},render:function(t,e){var n,r,i,u,s=e._pt,o=e._style;if(s){for(e._live&&(n=ou(e._target))!==e._length&&(r=n/e._length,e._length=n,e._offsetPT&&(e._offsetPT.s*=r,e._offsetPT.c*=r),e._dashPT?(e._dashPT.s*=r,e._dashPT.c*=r):e._dash*=r);s;)s.r(t,s.d),s=s._next;i=e._dash||t&&1!==t&&1e-4||0,n=e._length-i+.1,u=e._offset,i&&u&&i+Math.abs(u%e._length)>e._length-.2&&(u+=u<0?.1:-.1)&&(n+=.1),o.strokeDashoffset=i?u:u+.001,o.strokeDasharray=n<.2?"none":i?i+"px,"+(e._nowrap?999999:n)+"px":"0px, 999999px"}},getLength:ou,getPosition:au};Ki()&&Ui.registerPlugin(hu); var fu,pu,cu,Du,du,gu,_u,mu,vu,yu="transform",Cu=yu+"Origin",xu=function(t){var e=t.ownerDocument||t;!(yu in t.style)&&"msTransform"in t.style&&(Cu=(yu="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(pu=window,_u=new Mu,e){fu=e,cu=e.documentElement,Du=e.body,(mu=fu.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var n=e.createElement("div"),r=e.createElement("div");Du.appendChild(n),n.appendChild(r),n.style.position="static",n.style[yu]="translate3d(0,0,1px)",vu=r.offsetParent!==n,Du.removeChild(n)}return e},Fu=[],wu=[],Eu=function(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},Tu=function t(e,n){if(e.parentNode&&(fu||xu(e))){var r=Eu(e),i=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",u=r?n?"rect":"g":"div",s=2!==n?0:100,o=3===n?100:0,a="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=fu.createElementNS?fu.createElementNS(i.replace(/^https/,"http"),u):fu.createElement(u);return n&&(r?(gu||(gu=t(e)),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+s+","+o+")"),gu.appendChild(l)):(du||((du=t(e)).style.cssText=a),l.style.cssText=a+"width:0.1px;height:0.1px;top:"+o+"px;left:"+s+"px",du.appendChild(l))),l}throw"Need document and parent."},bu=function(t,e){var n,r,i,u,s,o,a=Eu(t),l=t===a,h=a?Fu:wu,f=t.parentNode;if(t===pu)return t;if(h.length||h.push(Tu(t,1),Tu(t,2),Tu(t,3)),n=a?gu:du,a)l?(u=-(i=function(t){var e,n=t.getCTM();return n||(e=t.style[yu],t.style[yu]="none",t.appendChild(mu),n=mu.getCTM(),t.removeChild(mu),e?t.style[yu]=e:t.style.removeProperty(yu.replace(/([A-Z])/g,"-$1").toLowerCase())),n||_u.clone()}(t)).e/i.a,s=-i.f/i.d,r=_u):(i=t.getBBox(),u=(r=(r=t.transform?t.transform.baseVal:{}).numberOfItems?r.numberOfItems>1?function(t){for(var e=new Mu,n=0;n4&&(u=i.offsetLeft,s=i.offsetTop,i=0);if("absolute"!==(o=pu.getComputedStyle(t)).position&&"fixed"!==o.position)for(r=t.offsetParent;f&&f!==r;)u+=f.scrollLeft||0,s+=f.scrollTop||0,f=f.parentNode;(i=n.style).top=t.offsetTop-s+"px",i.left=t.offsetLeft-u+"px",i[yu]=o[yu],i[Cu]=o[Cu],i.position="fixed"===o.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n},Au=function(t,e,n,r,i,u,s){return t.a=e,t.b=n,t.c=r,t.d=i,t.e=u,t.f=s,t},Mu=function(){function t(t,e,n,r,i,u){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===i&&(i=0),void 0===u&&(u=0),Au(this,t,e,n,r,i,u)}var e=t.prototype;return e.inverse=function(){var t=this.a,e=this.b,n=this.c,r=this.d,i=this.e,u=this.f,s=t*r-e*n||1e-10;return Au(this,r/s,-e/s,-n/s,t/s,(n*u-r*i)/s,-(t*u-e*i)/s)},e.multiply=function(t){var e=this.a,n=this.b,r=this.c,i=this.d,u=this.e,s=this.f,o=t.a,a=t.c,l=t.b,h=t.d,f=t.e,p=t.f;return Au(this,o*e+l*r,o*n+l*i,a*e+h*r,a*n+h*i,u+f*e+p*r,s+f*n+p*i)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var e=this.a,n=this.b,r=this.c,i=this.d,u=this.e,s=this.f;return e===t.a&&n===t.b&&r===t.c&&i===t.d&&u===t.e&&s===t.f},e.apply=function(t,e){void 0===e&&(e={});var n=t.x,r=t.y,i=this.a,u=this.b,s=this.c,o=this.d,a=this.e,l=this.f;return e.x=n*i+r*s+a||0,e.y=n*u+r*o+l||0,e},t}();function Ou(t,e,n,r){if(!t||!t.parentNode||(fu||xu(t)).documentElement===t)return new Mu;var i=function(t){for(var e,n;t&&t!==Du;)(n=t._gsap)&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t),u=Eu(t)?Fu:wu,s=bu(t,n),o=u[0].getBoundingClientRect(),a=u[1].getBoundingClientRect(),l=u[2].getBoundingClientRect(),h=s.parentNode,f=!r&&function t(e){return"fixed"===pu.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)}(t),p=new Mu((a.left-o.left)/100,(a.top-o.top)/100,(l.left-o.left)/100,(l.top-o.top)/100,o.left+(f?0:pu.pageXOffset||fu.scrollLeft||cu.scrollLeft||Du.scrollLeft||0),o.top+(f?0:pu.pageYOffset||fu.scrollTop||cu.scrollTop||Du.scrollTop||0));if(h.removeChild(s),i)for(o=i.length;o--;)(a=i[o]).scaleX=a.scaleY=0,a.renderTransform(1,a);return e?p.inverse():p} var Pu,Su,Bu,ku,Lu="x,translateX,left,marginLeft,xPercent".split(","),Nu="y,translateY,top,marginTop,yPercent".split(","),Ru=Math.PI/180,Iu=function(t,e,n,r){for(var i=e.length,u=2===r?0:r,s=0;s1?t=1:t<0&&(t=0);r--;)mi(n[r],t,!r&&e.rotate,n[r]);for(;i;)i.set(i.t,i.p,i.path[i.pp]+i.u,i.d,t),i=i._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?Ru:1)+e.rOffset+e.ru,e,t)},getLength:function(t){return di(ai(t)).totalLength},sliceRawPath:ci,getRawPath:ai,pointsToSegment:Fi,stringToRawPath:Ci,rawPathToString:wi,transformRawPath:vi,getGlobalMatrix:Ou,getPositionOnPath:mi,cacheRawPathMeasurements:di,convertToPath:function(t,e){return ku(t).map((function(t){return fi(t,!1!==e)}))},convertCoordinates:function(t,e,n){var r=Ou(e,!0,!0).multiply(Ou(t));return n?r.apply(n):r},getAlignMatrix:Wu,getRelativePosition:function(t,e,n,r){var i=Wu(t,e,n,r);return{x:i.e,y:i.f}},arrayToRawPath:function(t,e){var n=Iu(Iu([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&Yu(n),["cubic"===e.type?n:Fi(n,e.curviness)]}};(Pu||"undefined"!=typeof window&&(Pu=window.gsap)&&Pu.registerPlugin&&Pu)&&Pu.registerPlugin(Hu); var Qu,Ku,Zu,$u,Ju,ts,es,ns=function(){return"undefined"!=typeof window},rs=function(){return Qu||ns()&&(Qu=window.gsap)&&Qu.registerPlugin&&Qu},is=function(t){return"string"==typeof t},us=function(t){return"function"==typeof t},ss=function(t,e){var n="x"===e?"Width":"Height",r="scroll"+n,i="client"+n;return t===Zu||t===$u||t===Ju?Math.max($u[r],Ju[r])-(Zu["inner"+n]||$u[i]||Ju[i]):t[r]-t["offset"+n]},os=function(t,e){var n="scroll"+("x"===e?"Left":"Top");return t===Zu&&(null!=t.pageXOffset?n="page"+e.toUpperCase()+"Offset":t=null!=$u[n]?$u:Ju),function(){return t[n]}},as=function(t,e){if(!(t=ts(t)[0])||!t.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var n=t.getBoundingClientRect(),r=!e||e===Zu||e===Ju,i=r?{top:$u.clientTop-(Zu.pageYOffset||$u.scrollTop||Ju.scrollTop||0),left:$u.clientLeft-(Zu.pageXOffset||$u.scrollLeft||Ju.scrollLeft||0)}:e.getBoundingClientRect(),u={x:n.left-i.left,y:n.top-i.top};return!r&&e&&(u.x+=os(e,"x")(),u.y+=os(e,"y")()),u},ls=function(t,e,n,r,i){return isNaN(t)||"object"==typeof t?is(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+r-i:"max"===t?ss(e,n)-i:Math.min(ss(e,n),as(t,e)[n]-i):parseFloat(t)-i},hs=function(){Qu=rs(),ns()&&Qu&&document.body&&(Zu=window,Ju=document.body,$u=document.documentElement,ts=Qu.utils.toArray,Qu.config({autoKillThreshold:7}),es=Qu.config(),Ku=1)},fs={version:"3.9.0",name:"scrollTo",rawVars:1,register:function(t){Qu=t,hs()},init:function(t,e,n,r,i){Ku||hs();var u=Qu.getProperty(t,"scrollSnapType");this.isWin=t===Zu,this.target=t,this.tween=n,e=function(t,e,n,r){if(us(t)&&(t=t(e,n,r)),"object"!=typeof t)return is(t)&&"max"!==t&&"="!==t.charAt(1)?{x:t,y:t}:{y:t};if(t.nodeType)return{y:t,x:t};var i,u={};for(i in t)u[i]="onAutoKill"!==i&&us(t[i])?t[i](e,n,r):t[i];return u}(e,r,t,i),this.vars=e,this.autoKill=!!e.autoKill,this.getX=os(t,"x"),this.getY=os(t,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),u&&"none"!==u&&(this.snap=1,this.snapInline=t.style.scrollSnapType,t.style.scrollSnapType="none"),null!=e.x?(this.add(this,"x",this.x,ls(e.x,t,"x",this.x,e.offsetX||0),r,i),this._props.push("scrollTo_x")):this.skipX=1,null!=e.y?(this.add(this,"y",this.y,ls(e.y,t,"y",this.y,e.offsetY||0),r,i),this._props.push("scrollTo_y")):this.skipY=1},render:function(t,e){for(var n,r,i,u,s,o=e._pt,a=e.target,l=e.tween,h=e.autoKill,f=e.xPrev,p=e.yPrev,c=e.isWin,D=e.snap,d=e.snapInline;o;)o.r(t,o.d),o=o._next;n=c||!e.skipX?e.getX():f,i=(r=c||!e.skipY?e.getY():p)-p,u=n-f,s=es.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),h&&(!e.skipX&&(u>s||u<-s)&&ns||i<-s)&&r-1;)if(n=e[r],t.substr(0,n.length)===n)return n.length},Es=function(t,e){void 0===t&&(t="");var n=~t.indexOf("++"),r=1;return n&&(t=t.split("++").join("")),function(){return"<"+e+" style='position:relative;display:inline-block;'"+(t?" class='"+t+(n?r++:"")+"'>":">")}},Ts=function t(e,n,r){var i=e.nodeType;if(1===i||9===i||11===i)for(e=e.firstChild;e;e=e.nextSibling)t(e,n,r);else 3!==i&&4!==i||(e.nodeValue=e.nodeValue.split(n).join(r))},bs=function(t,e){for(var n=e.length;--n>-1;)t.push(e[n])},As=function(t,e,n){for(var r;t&&t!==e;){if(r=t._next||t.nextSibling)return r.textContent.charAt(0)===n;t=t.parentNode||t._parent}},Ms=function t(e){var n,r,i=xs(e.childNodes),u=i.length;for(n=0;nT&&("BR"!==h.nodeName||0===o)&&(c=[],k.push(c),C=m),R&&(h._x=h.offsetLeft,h._y=m,h._w=h.offsetWidth,h._h=h.offsetHeight),k&&((h._isSplit&&p||!N&&p||L&&p||!L&&h.parentNode.parentNode===t&&!h.parentNode._isSplit)&&(c.push(h),h._x-=y,As(h,t,P)&&(h._wordEnd=!0)),"BR"===h.nodeName&&(h.nextSibling&&"BR"===h.nextSibling.nodeName||0===o)&&k.push([])));for(o=0;o-1;)Y[o].parentNode.removeChild(Y[o]);if(k){for(R&&(g=cs.createElement(S),t.appendChild(g),_=g.offsetWidth+"px",m=g.offsetParent===t?0:t.offsetLeft,t.removeChild(g)),d=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(D=" "===P&&(!R||!L&&!N),o=0;ot.clientHeight&&(t.style.height=s-w+"px",t.clientHeightt.clientWidth&&(t.style.width=u-E+"px",t.clientWidth",m=1,v=e.specialChars?"function"==typeof e.specialChars?e.specialChars:ws:null,y=cs.createElement("div"),C=t.parentNode;for(C.insertBefore(y,t),y.textContent=t.nodeValue,C.removeChild(t),h=-1!==(i=function t(e){var n=e.nodeType,r="";if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=t(e)}else if(3===n||4===n)return e.nodeValue;return r}(t=y)).indexOf("<"),!1!==e.reduceWhiteSpace&&(i=i.replace(ms," ").replace(_s,"")),h&&(i=i.split("<").join("{{LT}}")),a=i.length,u=(" "===i.charAt(0)?g:"")+n(),s=0;s":l,s+=f-1;else if(l===d&&i.charAt(s-1)!==d&&s){for(u+=m?_:"",m=0;i.charAt(s+1)===d;)u+=g,s++;s===a-1?u+=g:")"!==i.charAt(s+1)&&(u+=g+n(),m=1)}else"{"===l&&"{{LT}}"===i.substr(s,6)?(u+=c?r()+"{{LT}}":"{{LT}}",s+=5):l.charCodeAt(0)>=55296&&l.charCodeAt(0)<=56319||i.charCodeAt(s+1)>=65024&&i.charCodeAt(s+1)<=65039?(o=((i.substr(s,12).split(ps)||[])[1]||"").length||2,u+=c&&" "!==l?r()+i.substr(s,o)+"":i.substr(s,o),s+=o-1):u+=c&&" "!==l?r()+l+"":l;t.outerHTML=u+(m?_:""),h&&Ts(C,"{{LT}}","<")},Bs=function t(e,n,r,i){var u,s,o=xs(e.childNodes),a=o.length,l=Fs(n);if(3!==e.nodeType||a>1){for(n.absolute=!1,u=0;u-1;)r=this.elements[i],this._originals[i]=r.innerHTML,e=r.clientHeight,n=r.clientWidth,Bs(r,t,s,o),Ps(r,t,this.chars,this.words,this.lines,n,e);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},e.revert=function(){var t=this._originals;if(!t)throw"revert() call wasn't scoped properly.";return this.elements.forEach((function(e,n){return e.innerHTML=t[n]})),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},t.create=function(e,n){return new t(e,n)},t}();ks.version="3.9.0",Br.registerPlugin(Je,kr,Ve,Ve,zr,Bi,Vi,hu,Hu,fs,Mr);var Ls=gs=window.punchgs=window.tpGS={};for(var Ns in Ls.gsap=Br,Ls.TweenLite=Je,Ls.TweenMax=kr,Ls.TimelineLite=Ve,Ls.TimelineMax=Ve,Ls.CustomBounce=zr,Ls.CustomEase=Bi,Ls.CustomWiggle=Vi,Ls.DrawSVGPlugin=hu,Ls.MotionPathPlugin=Hu,Ls.ScrollToPlugin=fs,Ls.CSSPlugin=Mr, Ls.SplitText=ks,Ls.RAD2DEG=180/Math.PI,Ls.DEG2RAD=Math.PI/180, Ls.gsap.registerPlugin(Ls.MotionPathPlugin),Ls.gsap.config({nullTargetWarn:!1}), Ls.eases=Ls.gsap.parseEase(),Ls.eases)Ls.eases.hasOwnProperty(Ns)&&void 0===Ls[Ns]&&(Ls[Ns]=Ls.eases[Ns]) ;void 0!==gs&&void 0!==gs.TweenLite&&void 0===gs.TweenLite.lagSmoothing&&(gs.TweenLite.lagSmoothing=function(){});var Rs=[];function Is(t,e,n){var r=document.createElement("canvas"),i=r.getContext("2d");if(r.width=100,r.height=200,0===t.length)i.fillStyle=n;else{for(var u=i.createLinearGradient(0,0,100,0),s=0;ss.stops.length?a+=zs(s.points,l,e,u.points):o+=zs(u.points,l,t,s.points)),o+=")",a+=")","sliding"===n&&(u.stops.length>s.stops.length?o=t:a=e),r.rFrom=o,r.rTo=a,r.tyep=n,Rs.push(r),{from:o,to:a}}}]); window.RS_MODULES=window.RS_MODULES||{}; window.RS_MODULES.tpGS={loaded:true, version:"6.5.14"}; if(window.RS_MODULES.checkMinimal) window.RS_MODULES.checkMinimal(); !function(e,i){"use strict";var t="Slider Revolution 6.5.14";window.RSANYID=window.RSANYID===i?[]:window.RSANYID,window.RSANYID_sliderID=window.RSANYID_sliderID===i?[]:window.RSANYID_sliderID,e.fn.revolution=e.fn.revolution||{};var a=e.fn.revolution;e.fn.revolutionInit=function(t){return this.each(function(){a.ISM=a.ISM||a.is_mobile();for(var s=document.getElementsByClassName("rs-p-wp-fix");s[0];)s[0].parentNode.removeChild(s[0]);this.id!==i?(a[n]={anyid:[]},this.id=a.revCheckIDS(n,this,!0)):this.id="rs_module_"+Math.round(1e7*Math.random());var n=this.id,d=a.clone(t);a[n]=G(t),a[n].ignoreHeightChange=a.ISM&&"fullscreen"===a[n].sliderLayout&&a[n].ignoreHeightChange,a[n].option_export=d,a[n].anyid=[],a[n]._Lshortcuts={},a[n].computedStyle={},a[n].c=e(this),a[n].cpar=a[n].c.parent(),a[n].canvas=a[n].c.find("rs-slides"),a[n].caches={calcResponsiveLayersList:[],contWidthManager:{},middleHeights:{}},a[n].sbgs={},window.RSBrowser=window.RSBrowser===i?a.get_browser():window.RSBrowser,a.setIsIOS(),a.setIsChrome8889(),a.useBackdrop===i&&a.checkBackdrop(),a[n].noDetach=a[n].BUG_ie_clipPath="Edge"===window.RSBrowser||"IE"===window.RSBrowser,a.getByTag=o(),a[n].indexhelper=0,a[n].fullScreenOffsetResult=0,a[n].level=0,a[n].rtl=e("body").hasClass("rtl"),a[n]._L=a[n]._L===i?{}:a[n]._L,a[n].emptyObject="{}",a[n].dimensionReCheck={},a.globalListener===i&&a.pageHandler(n),a[n].stopAfterLoops!=i&&a[n].stopAfterLoops>-1?a[n].looptogo=a[n].stopAfterLoops:a[n].looptogo="disabled",window.T=a[n],a[n].BUG_safari_clipPath="Safari"===a.get_browser()&&a.get_browser_version()>"12",a[n].minHeight="fullwidth"===a[n].sliderLayout||"carousel"===a[n].sliderType?0:a[n].minHeight!=i&&""!==a[n].minHeight?parseInt(a[n].minHeight,0):0,a[n].minHeight=a[n].minHeight===i?0:a[n].minHeight,a[n].isEdge="Edge"===a.get_browser(),r(n),a.updateVisibleArea(n),B(n),a.mesuredScrollBarDone||a.mesureScrollBar(),window.requestAnimationFrame(function(){if("fullscreen"===a[n].sliderLayout){var e=a.getFullscreenOffsets(n);0!==e&&a[n].cpar.height(a.getWinH(n)-e)}a[n].cpar[0].style.visibility="visible"}),"hero"==a[n].sliderType&&a[n].c.find("rs-slide").each(function(i){i>0&&e(this).remove()}),a[n].navigation.use="hero"!==a[n].sliderType&&("carousel"==a[n].sliderType||a[n].navigation.keyboardNavigation||"on"==a[n].navigation.mouseScrollNavigation||"carousel"==a[n].navigation.mouseScrollNavigation||a[n].navigation.touch.touchenabled||a[n].navigation.arrows.enable||a[n].navigation.bullets.enable||a[n].navigation.thumbnails.enable||a[n].navigation.tabs.enable),a[n].c.find("rs-bgvideo").each(function(){"RS-BGVIDEO"!==this.tagName||this.id!==i&&""!==this.id||(this.id="rs-bg-video-"+Math.round(1e6*Math.random()))}),tpGS.force3D="auto",!0===a[n].modal.useAsModal&&-1===a.RS_prioList.indexOf(n)&&(a.RS_toInit[n]=!1,a.RS_prioList.push(n)),a.RS_killedlist!==i&&-1!==a.RS_killedlist.indexOf(n)&&(a.RS_toInit[n]=!1,a.RS_prioList.push(n)),!0===a.RS_prioListFirstInit&&!0!==a[n].modal.useAsModal&&-1===a.RS_prioList.indexOf(n)&&(a.RS_toInit[n]=!1,a.RS_prioList.push(n)),a.initNextRevslider(n)})};a=window.RS_F;e.fn.extend({getRSJASONOptions:function(e){console.log(JSON.stringify(a[e].option_export))},getRSVersion:function(e){var i,t,a=window.SliderRevolutionVersion;if(!e){for(var o in i=t="---------------------------------------------------------\n",i+=" Currently Loaded Slider Revolution & SR Modules :\n"+t,a)a.hasOwnProperty(o)&&(i+=a[o].alias+": "+a[o].ver+"\n");i+=t}return e?a:i},revremoveslide:function(i){return this.each(function(){var t=this.id;if(!(i<0||i>a[t].slideamount)&&a[t]&&a[t].slides.length>0&&(i>0||i<=a[t].slides.length)){var o=a.gA(a[t].slides[i],"key");a[t].slideamount=a[t].slideamount-1,a[t].realslideamount=a[t].realslideamount-1,n("rs-bullet",o,t),n("rs-tab",o,t),n("rs-thumb",o,t),e(a[t].slides[i]).remove(),a[t].thumbs=s(a[t].thumbs,i),a.updateNavIndexes&&a.updateNavIndexes(t),i<=a[t].pr_active_key&&(a[t].pr_active_key=a[t].pr_active_key-1)}})},revaddcallback:function(e){return this.each(function(){a[this.id]&&(a[this.id].callBackArray===i&&(a[this.id].callBackArray=[]),a[this.id].callBackArray.push(e))})},revgetparallaxproc:function(){if(a[this[0].id])return a[this[0].id].scrollproc},revdebugmode:function(){},revscroll:function(i){return this.each(function(){var t=e(this);e("body,html").animate({scrollTop:t.offset().top+t.height()-i+"px"},{duration:400})})},revredraw:function(){return this.each(function(){m(this.id,i,!0)})},revkill:function(){return this.each(function(){if(this!=i&&null!=this){var t=this.id;a[t].c.data("conthover",1),a[t].c.data("conthoverchanged",1),a[t].c.trigger("revolution.slide.onpause"),a[t].tonpause=!0,a[t].c.trigger("stoptimer"),a[t].sliderisrunning=!1;var o="updateContainerSizes."+a[t].c.attr("id");a.window.off(o),tpGS.gsap.killTweensOf(a[t].c.find("*"),!1),tpGS.gsap.killTweensOf(a[t].c,!1),a[t].c.off("hover, mouseover, mouseenter,mouseleave, resize"),a[t].c.find("*").each(function(){var t=e(this);t.off("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer"),t.data("mySplitText",null),t.data("ctl",null),t.data("tween")!=i&&t.data("tween").kill(),t.data("pztl")!=i&&t.data("pztl").kill(),t.data("timeline_out")!=i&&t.data("timeline_out").kill(),t.data("timeline")!=i&&t.data("timeline").kill(),t.remove(),t.empty(),t=null}),tpGS.gsap.killTweensOf(a[t].c.find("*"),!1),tpGS.gsap.killTweensOf(a[t].c,!1),a[t].progressC.remove();try{a[t].c.closest(".rev_slider_wrapper").detach()}catch(e){}try{a[t].c.closest("rs-fullwidth-wrap").remove()}catch(e){}try{a[t].c.closest("rs-module-wrap").remove()}catch(e){}try{a[t].c.remove()}catch(e){}a[t].cpar.detach(),a[t].c.html(""),a[t].c=null,window[a[t].revapi]=i,delete a[t],delete a.RS_swapList[t],delete a.slidersToScroll[t],delete a.RS_toInit[t],a.nextSlider==t&&delete a.nextSlider,a.RS_prioList.splice(a.RS_prioList.indexOf(t),1),a.RS_killedlist=a.RS_killedlist===i?[]:a.RS_killedlist,-1===a.RS_killedlist.indexOf(t)&&a.RS_killedlist.push(t)}})},revpause:function(){return this.each(function(){var t=e(this);t!=i&&t.length>0&&e("body").find("#"+t.attr("id")).length>0&&(t.data("conthover",1),t.data("conthoverchanged",1),t.trigger("revolution.slide.onpause"),a[this.id].tonpause=!0,t.trigger("stoptimer"))})},revresume:function(){return this.each(function(){if(a[this.id]!==i){var t=e(this);t.data("conthover",0),t.data("conthoverchanged",1),t.trigger("revolution.slide.onresume"),a[this.id].tonpause=!1,t.trigger("starttimer")}})},revmodal:function(t){var o=this instanceof e?this[0]:this,r=o.id;a[o.id]!==i&&a.revModal(r,t)},revstart:function(){var t=this instanceof e?this[0]:this;return a[t.id]===i?(console.log("Slider is Not Existing"),!1):a[t.id].sliderisrunning||!0===a[t.id].initEnded?(console.log("Slider Is Running Already"),!1):(a[t.id].c=e(t),a[t.id].canvas=a[t.id].c.find("rs-slides"),u(t.id),!0)},revnext:function(){return this.each(function(){a[this.id]!==i&&a.callingNewSlide(this.id,1,"carousel"===a[this.id].sliderType)})},revprev:function(){return this.each(function(){a[this.id]!==i&&a.callingNewSlide(this.id,-1,"carousel"===a[this.id].sliderType)})},revmaxslide:function(){return e(this).find("rs-slide").length},revcurrentslide:function(){if(a[e(this)[0].id]!==i)return parseInt(a[e(this)[0].id].pr_active_key,0)+1},revlastslide:function(){return e(this).find("rs-slide").length},revshowslide:function(e){return this.each(function(){a[this.id]!==i&&e!==i&&a.callingNewSlide(this.id,"to"+(e-1))})},revcallslidewithid:function(e){return this.each(function(){a[this.id]!==i&&a.callingNewSlide(this.id,e,"carousel"===a[this.id].sliderType)})}}),a=e.fn.revolution,e.extend(!0,a,{isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},trim:function(e){return e!==i&&null!==e&&"string"==typeof e?e.trim():e},setCookie:function(e,i,t){var a=new Date;a.setTime(a.getTime()+60*t*60*1e3);var o="expires="+a.toUTCString();document.cookie=e+"="+i+";"+o+";path=/"},getCookie:function(e){for(var i=e+"=",t=document.cookie.split(";"),a=0;a1&&T(t),setTimeout(function(){a[t]!==i&&(a[t].revolutionSlideOnLoaded=!0,a[t].c.trigger("revolution.slide.onloaded"),a.calcScrollToId())},50)},a[t].startDelay),a[t].startDelay=0,window.requestAnimationFrame(function(){h(t)})):(a[t].waitForCountDown&&(T(t),a[t].waitForCountDown=!1),"playing"!=a[t].sliderlaststatus&&a[t].sliderlaststatus!=i||a[t].c.trigger("starttimer"),a[t].lastplayedvideos!=i&&a[t].lastplayedvideos.length>0&&e.each(a[t].lastplayedvideos,function(e,i){a.playVideo(i,t)}))},leaveViewPort:function(t){a[t].sliderlaststatus=a[t].sliderstatus,a[t].c.trigger("stoptimer"),a[t].playingvideos!=i&&a[t].playingvideos.length>0&&(a[t].lastplayedvideos=e.extend(!0,[],a[t].playingvideos),a[t].playingvideos&&e.each(a[t].playingvideos,function(e,i){a[t].leaveViewPortBasedStop=!0,a.stopVideo&&a.stopVideo(i,t)}))},scrollHandling:function(e,t,o,r){if(a[e]!==i){var s=a[e].topc!==i?a[e].topc[0].getBoundingClientRect():0===a[e].canv.height?a[e].cpar[0].getBoundingClientRect():a[e].c[0].getBoundingClientRect();s.hheight=0===s.height?0===a[e].canv.height?a[e].module.height:a[e].canv.height:s.height,a[e].scrollproc=s.top<0||s.hheight>a.lastwindowheight&&s.topa.lastwindowheight?(s.bottom-a.lastwindowheight)/s.hheight:0;var n=Math.max(0,1-Math.abs(a[e].scrollproc));a[e].viewPort.enable&&("%"===a[e].viewPort.vaType[a[e].level]&&(a[e].viewPort.visible_area[a[e].level]<=n||n>0&&n<=1&&a[e].sbtimeline.fixed)||"px"===a[e].viewPort.vaType[a[e].level]&&(s.top<=0&&s.bottom>=a.lastwindowheight||s.top>=0&&s.bottom<=a.lastwindowheight||s.top>=0&&s.top=a[e].viewPort.visible_area[a[e].level]&&s.bottom=0})},getWinH:function(e){return a[e].ignoreHeightChange?a.mobileWinH:a.winH},getWindowDimension:function(e,t){!1===e?(a.rAfScrollbar="skip",a.winWAll=window.innerWidth,a.winWSbar=document.documentElement.clientWidth,a.ISM?(a.zoom=t?1:a.winWSbar/a.winWAll,a.winW=1!==a.zoom?a.winWSbar*a.zoom:Math.min(a.winWAll,a.winWSbar),a.winH=1!==a.zoom?window.innerHeight*a.zoom:window.innerHeight,t&&window.visualViewport&&(a.winH*=window.visualViewport.scale,a.winWAll*=window.visualViewport.scale),a.scrollBarWidth=0):(a.isModalOpen&&a.openModalId!==i&&a[a.openModalId]!==i&&a[a.openModalId].canv.height>a.winH?a.scrollBarWidth=a.mesuredScrollbarWidth:a.scrollBarWidth=a.winWAll-a.winWSbar,a.winW=Math.min(a.winWAll,a.winWSbar),a.winH=window.innerHeight),a.ISM&&a.winH>125&&(a.lastwindowheight!==i&&Math.abs(a.lastwindowheight-a.winH)<125?a.mobileWinH=a.lastwindowheight:a.mobileWinH=a.winH)):clearTimeout(a.windowDimenstionDelay),a.windowDimenstionDelay=setTimeout(function(){a.rAfScrollbar=i,a.winWAll=window.innerWidth,a.winWSbar=document.documentElement.clientWidth,a.ISM?(a.zoom=t?1:a.winWSbar/a.winWAll,a.RS_px_ratio=window.devicePixelRatio||window.screen.availWidth/document.documentElement.clientWidth,a.winW=1!==a.zoom?a.winWSbar*a.zoom:Math.min(a.winWAll,a.winWSbar),a.winH=1!==a.zoom?window.innerHeight*a.zoom:window.innerHeight,t&&window.visualViewport&&(a.winH*=window.visualViewport.scale,a.winWAll*=window.visualViewport.scale),a.scrollBarWidth=0,t&&tpGS.gsap.delayedCall(.1,function(){a.getWindowDimension()})):(a.isModalOpen&&a.openModalId!==i&&a[a.openModalId]!==i&&a[a.openModalId].canv.height>a.winH?a.scrollBarWidth=a.mesuredScrollbarWidth:a.scrollBarWidth=a.winWAll-a.winWSbar,a.winW=Math.min(a.winWAll,a.winWSbar),a.winH=window.innerHeight),a.ISM&&a.winH>125&&(a.lastwindowheight!==i&&Math.abs(a.lastwindowheight-a.winH)<125?a.mobileWinH=a.lastwindowheight:a.mobileWinH=a.winH),!1!==e&&a.document.trigger("updateContainerSizes")},100)},aC:function(i,t){i&&(i.classList&&i.classList.add?i.classList.add(""+t):e(i).addClass(t))},rC:function(i,t){i&&(i.classList&&i.classList.remove?i.classList.remove(""+t):e(i).removeClass(t))},sA:function(e,i,t){e&&e.setAttribute&&e.setAttribute("data-"+i,t)},gA:function(e,t,a){return e===i?i:e.hasAttribute&&e.hasAttribute("data-"+t)&&e.getAttribute("data-"+t)!==i&&null!==e.getAttribute("data-"+t)?e.getAttribute("data-"+t):a!==i?a:i},rA:function(e,i){e&&e.removeAttribute&&e.removeAttribute("data-"+i)},iWA:function(e,t){return a[e].justifyCarousel?"static"===t?a[e].carousel.wrapwidth:a[e].carousel.slide_widths[t!==i?t:a[e].carousel.focused]:a[e].gridwidth[a[e].level]},iHE:function(e,i){return a[e].useFullScreenHeight?a[e].canv.height:Math.max(a[e].currentRowsHeight,a[e].gridheight[a[e].level])},updateFixedScrollTimes:function(e){!0===a[e].sbtimeline.set&&!0===a[e].sbtimeline.fixed&&"auto"!==a[e].sliderLayout&&(a[e].sbtimeline.rest=a[e].duration-a[e].sbtimeline.fixEnd,a[e].sbtimeline.time=a[e].duration-(a[e].sbtimeline.fixStart+a[e].sbtimeline.rest),a[e].sbtimeline.extended=a[e].sbtimeline.time/10)},addSafariFix:function(e){!0===window.isSafari11&&!0!==a[e].safari3dFix&&(a[e].safari3dFix=!0,a[e].c[0].className+=" safarifix")},openModalAPI:function(t,o,r,s,n,d){if(window.RS_60_MODALS!==i&&-1!=e.inArray(t,window.RS_60_MODALS)||window.RS_60_MODAL_API_CALLS!==i&&-1!=e.inArray(t,window.RS_60_MODAL_API_CALLS))e.inArray(t,window.RS_60_MODALS)>=0&&e.fn.revolution.document.trigger("RS_OPENMODAL_"+t,o);else{window.RS_60_MODAL_API_CALLS=window.RS_60_MODAL_API_CALLS||[],window.RS_60_MODAL_API_CALLS.push(t),s&&a.showModalCover(n,d,"show");var l={action:"revslider_ajax_call_front",client_action:"get_slider_html",alias:t,usage:"modal"};e.ajax({type:"post",url:r,dataType:"json",data:l,success:function(r,l,c){if(null!==r&&1==r.success){var p;if(n=n==i?r.htmlid:n,r.waiting!==i)for(p in r.waiting)-1==e.inArray(r.waiting[p],RS_MODULES.waiting)&&(RS_MODULES.waiting.push(r.waiting[p]),window.RS_MODULES.minimal=!1);if(r.toload!==i){var g="";for(p in RS_MODULES=RS_MODULES||{},RS_MODULES.requestedScripts=[],r.toload)r.toload.hasOwnProperty(p)&&(RS_MODULES!=i&&RS_MODULES[p]!=i&&!0===RS_MODULES[p].loaded||-1===e.inArray(p,RS_MODULES.requestedScripts)&&(RS_MODULES.requestedScripts.push(p),g+=r.toload[p]));""!==g&&e("body").append(g)}RS_MODULES!==i&&RS_MODULES.modules[r.htmlid]!=i||e("body").append(r.data),s&&a.showModalCover(n,d,"hide"),a[t]!==i&&a[t].openModalApiListener?e.fn.revolution.document.trigger("RS_OPENMODAL_"+t,o):e(document).on("RS_MODALOPENLISTENER_"+t,function(){e.fn.revolution.document.trigger("RS_OPENMODAL_"+t,o)})}else s&&a.showModalCover(n,d,"hide")},error:function(e){s&&a.showModalCover(n,d,"hide"),console.log("Modal Can not be Loaded"),console.log(e)}})}},showModalCover:function(t,o,r){switch(r){case"show":var s;if(o.spin!==i&&"off"!==o.spin&&(s=a.buildSpinner(t,"spinner"+o.spin,o.spinc,"modalspinner")),o.bg!==i&&!1!==o.bg&&"false"!==o.bg&&"transparent"!==o.bg){var n=e('');e("body").append(n),o.speed=parseFloat(o.speed),o.speed=o.speed>200?o.speed/1e3:o.speed,o.speed=Math.max(Math.min(3,o.speed),.3),tpGS.gsap.to(n,o.speed,{display:"block",opacity:1,ease:"power3.inOut"}),a.isModalOpen=!0,s!==i&&n.append(s)}else s!==i&&a[t].c.append(s);break;case"hide":(n=e('rs-modal-cover[data-alias="'+o.alias+'"] .modalspinner'))!==i&&n.length>0?n.remove():t!==i&&a[t].c.find(".modalspinner").remove()}},revModal:function(t,o){if(t!==i&&a[t]!==i&&"clicked"!==a[t].modal.closeProtection){if(!0===a[t].modal.closeProtection)return a[t].modal.closeProtection,void setTimeout(function(){a[t].modal.closeProtection=!1,a.revModal(t,o)},750);switch(o.mode){case"show":if(!0===a[t].modal.isLive)return;if(!0===a.anyModalclosing)return;a[t].modal.isLive=!0,o.slide=o.slide===i?"to0":o.slide,a[t].modal.bodyclass!==i&&a[t].modal.bodyclass.length>=0&&document.body.classList.add(a[t].modal.bodyclass),a[t].modal.bg.attr("data-rid",t),tpGS.gsap.to(a[t].modal.bg,a[t].modal.coverSpeed,{display:"block",opacity:1,ease:"power3.inOut"}),tpGS.gsap.set(a[t].modal.c,{display:"auto"===a[t].sliderLayout?"inline-block":"block",opacity:0}),a[t].cpar.removeClass("hideallscrollbars"),tpGS.gsap.set(a[t].cpar,{display:"block",opacity:1});var r={a:0};a.isModalOpen=!0,a[t].clearModalBG=!0,"carousel"===a[t].sliderType&&a[t].pr_active_bg!==i&&a[t].pr_active_bg.length>0&&tpGS.gsap.to(a[t].pr_active_bg,.5,{opacity:1}),tpGS.gsap.fromTo(r,a[t].modal.coverSpeed/5,{a:0},{a:10,ease:"power3.inOut",onComplete:function(){a.openModalId=t,a[t].sliderisrunning?a.callingNewSlide(t,o.slide):("to0"!==o.slide&&(a[t].startWithSlideKey=o.slide),u(t))}}),setTimeout(function(){tpGS.gsap.fromTo([a[t].modal.c],.01,{opacity:0},{opacity:1,delay:a[t].modal.coverSpeed/4,ease:"power3.inOut",onComplete:function(){}}),window.overscrollhistory=document.body.style.overflow,document.body.style.overflow="hidden","fullscreen"===a[t].sliderLayout&&a.getWindowDimension()},250),"fullscreen"!==a[t].sliderLayout&&a.getWindowDimension();break;case"close":if(!0===a.anyModalclosing)return;a.anyModalclosing=!0,a.openModalId=i,x(t),document.body.style.overflow=window.overscrollhistory,a[t].cpar.addClass("hideallscrollbars"),a[t].modal.bodyclass!==i&&a[t].modal.bodyclass.length>=0&&document.body.classList.remove(a[t].modal.bodyclass),tpGS.gsap.to(a[t].modal.bg,a[t].modal.coverSpeed,{display:"none",opacity:0,ease:"power3.inOut"}),tpGS.gsap.to(a[t].modal.c,a[t].modal.coverSpeed/6.5,{display:"none",delay:a[t].modal.coverSpeed/4,opacity:0,onComplete:function(){tpGS.gsap.set(a[t].cpar,{display:"none",opacity:0}),a.document.trigger("revolution.all.resize"),a.document.trigger("revolution.modal.close",[a[t].modal]),a.getWindowDimension(),a.isModalOpen=!1}}),a[t].modal.closeProtection=!0,clearTimeout(a[t].modal.closeTimer),a[t].modal.closeTimer=setTimeout(function(){a.anyModalclosing=!1,a[t].modal.isLive=!1,a[t].modal.closeProtection=!1},Math.max(750,1020*a[t].modal.coverSpeed));break;case"init":if(window.RS_60_MODALS=window.RS_60_MODALS===i?[]:window.RS_60_MODALS,-1===e.inArray(a[t].modal.alias,window.RS_60_MODALS)&&window.RS_60_MODALS.push(a[t].modal.alias),a[t].modal.listener===i&&(a[t].modal.c=e("#"+t+"_modal"),!1!==a[t].modal.cover&&"false"!==a[t].modal.cover||(a[t].modal.coverColor="transparent"),a[t].modal.bg=e('rs-modal-cover[data-alias="'+o.alias+'"]'),a[t].modal.bg===i||0===a[t].modal.bg.length?(a[t].modal.bg=e(''),"auto"===a[t].sliderLayout&&a[t].modal.cover?e("body").append(a[t].modal.bg):a[t].modal.c.append(a[t].modal.bg)):a[t].modal.bg.attr("data-rid",t),a[t].modal.c[0].className+="rs-modal-"+a[t].sliderLayout,a[t].modal.calibration={left:"auto"===a[t].sliderLayout?"center"===a[t].modal.horizontal?"50%":"left"===a[t].modal.horizontal?"0px":"auto":"0px",right:"auto"===a[t].sliderLayout?"center"===a[t].modal.horizontal?"auto":"left"===a[t].modal.horizontal?"auto":"0px":"0px",top:"auto"===a[t].sliderLayout||"fullwidth"===a[t].sliderLayout?"middle"===a[t].modal.vertical?"50%":"top"===a[t].modal.vertical?"0px":"auto":"0px",bottom:"auto"===a[t].sliderLayout||"fullwidth"===a[t].sliderLayout?"middle"===a[t].modal.vertical?"auto":"top"===a[t].modal.vertical?"auto":"0px":"0px",y:("auto"===a[t].sliderLayout||"fullwidth"===a[t].sliderLayout)&&"middle"===a[t].modal.vertical?"-50%":0,x:"auto"===a[t].sliderLayout&&"center"===a[t].modal.horizontal?"-50%":0},"-50%"===a[t].modal.calibration.y&&(a[t].modal.calibration.filter="blur(0px)"),tpGS.gsap.set(a[t].modal.c,"auto"===a[t].sliderLayout||"fullscreen"===a[t].sliderLayout?e.extend(!0,a[t].modal.calibration,{opacity:0,display:"none"}):{opacity:0,display:"none"}),"fullwidth"===a[t].sliderLayout&&tpGS.gsap.set(a[t].modal.c.find("rs-module-wrap"),a[t].modal.calibration),a.document.on("RS_OPENMODAL_"+a[t].modal.alias,function(e,i){a[t].initEnded=!0,a.revModal(t,{mode:"show",slide:i})}),a[a[t].modal.alias]=a[a[t].modal.alias]||{},a[a[t].modal.alias].openModalApiListener=!0,a.document.trigger("RS_MODALOPENLISTENER_"+a[t].modal.alias),a.document.on("click","rs-modal-cover",function(){a.revModal(a.gA(this,"rid"),{mode:"close"})}),a[t].modal.listener=!0,a[t].modal.trigger!==i)){var s,n=a[t].modal.trigger.split(";");for(r in a[t].modal.trigger={},n)if(n.hasOwnProperty(r))switch((s=n[r].split(":"))[0]){case"t":a[t].modal.trigger.time=parseInt(s[1],0);break;case"s":a[t].modal.trigger.scroll=s[1];break;case"so":a[t].modal.trigger.scrollo=parseInt(s[1],0);break;case"e":a[t].modal.trigger.event=s[1];break;case"ha":a[t].modal.trigger.hash=s[1];break;case"co":a[t].modal.trigger.cookie=s[1]}var d=!0;if(a[t].modal.trigger.cookie!==i?d="true"!==a.getCookie(a[t].modal.alias+"_modal_one_time"):"true"==a.getCookie(a[t].modal.alias+"_modal_one_time")&&a.setCookie(a[t].modal.alias+"_modal_one_time",!1,10),d&&(a[t].modal.trigger.time!==i&&0!==a[t].modal.trigger.time&&(a[t].modal.trigger.cookie!==i&&a.setCookie(a[t].modal.alias+"_modal_one_time",!0,a[t].modal.trigger.cookie),setTimeout(function(){a.document.trigger("RS_OPENMODAL_"+a[t].modal.alias)},a[t].modal.trigger.time)),a[t].modal.trigger.scrollo!==i||a[t].modal.trigger.scroll!==i)){a[t].modal.trigger.scroll!==i&&e(a[t].modal.trigger.scroll)[0]!==i&&(a[t].modal.trigger.scroll=e(a[t].modal.trigger.scroll)[0]);var l=function(){if(a[t].modal.trigger.scroll!==i)var e="string"==typeof a[t].modal.trigger.scroll?document.getElementById(a[t].modal.trigger.scroll):"object"==typeof a[t].modal.trigger.scroll?a[t].modal.trigger.scroll:i,o=e!==i&&null!==e?a[t].modal.trigger.scroll.getBoundingClientRect():i;(a[t].modal.trigger.scroll!==i&&o!==i&&Math.abs(o.top+(o.bottom-o.top)/2-a.getWinH(t)/2)<50||a[t].modal.trigger.scrollo!==i&&Math.abs(a[t].modal.trigger.scrollo-(a.scrollY!==i?a.scrollY:window.scrollY))<100)&&(a.document.trigger("RS_OPENMODAL_"+a[t].modal.alias),a[t].modal.trigger.cookie!==i&&a.setCookie(a[t].modal.alias+"_modal_one_time",!0,a[t].modal.trigger.cookie),document.removeEventListener("scroll",l))};document.addEventListener("scroll",l,{id:t,passive:!0})}a[t].modal.trigger.event!==i&&a.document.on(a[t].modal.trigger.event,function(){a.document.trigger("RS_OPENMODAL_"+a[t].modal.alias)}),"t"==a[t].modal.trigger.hash&&window.location.hash.substring(1)==a[t].modal.alias&&a.document.trigger("RS_OPENMODAL_"+a[t].modal.alias)}}}},smartConvertDivs:function(e){var i="";if("string"==typeof e&&e.indexOf("#")>=0){var t=e.split(","),a=t.length-1;for(var o in t)i="string"==typeof t[o]&&"#"===t[o][0]?i+t[o][1]/t[o][3]*100+"%"+(o=0&&c[d].src.indexOf("data")>=0&&delete c[d].dataset.src;var u=g(c[d],i,o),h=u!==i?u:a.gA(c[d],"svg_src")!=i?a.gA(c[d],"svg_src"):c[d].src===i?e(c[d]).data("src"):c[d].src,m=a.gA(c[d],"svg_src")!=i?"svg":"img";h!==i&&a[o].loadqueue!==i&&0==a[o].loadqueue.filter(function(e){return e.src===h}).length&&a[o].loadqueue.push({src:h,img:c[d],index:d,starttoload:Date.now(),type:m||"img",prio:r,progress:c[d].complete&&h===c[d].src?"loaded":"prepared",static:s,width:c[d].complete&&h===c[d].src?c[d].width:i,height:c[d].complete&&h===c[d].src?c[d].height:i})}for(var d in p)p.hasOwnProperty(d)&&p[d]!==i&&p[d].dataset!==i&&p[d].dataset.bglazy!==i&&p[d].style.backgroundImage.indexOf("dummy.png")>=0&&(p[d].style.backgroundImage='url("'+p[d].dataset.bglazy+'")')}b(o)}},waitForCurrentImages:function(t,o,r){if(t!==i&&0!==t.length&&a[o]!==i){var s=!1,n=[];if(Array.isArray(t))for(var d in t)t.hasOwnProperty(d)&&t[d]!==i&&n.push(t[d]);else n.push(t);for(var l in n)if(n.hasOwnProperty(l)){var c=n[l].querySelectorAll("img, rs-sbg, .rs-svg");for(d in c)if(c.hasOwnProperty(d)&&"length"!==d&&!(c[d].className.indexOf("rs-pzimg")>=0)){var p=e(c[d]).data(),u=g(c[d],i,o),h=u!==i?u:a.gA(c[d],"svg_src")!=i?a.gA(c[d],"svg_src"):c[d].src===i?p.src:c[d].src,m=a.getLoadObj(o,h);if(a.sA(c[d],"src-rs-ref",h),p.loaded===i&&m!==i&&m.progress&&"loaded"==m.progress){if("img"==m.type){if(c[d].src.slice(c[d].src.length-10)!==m.src.slice(m.src.length-10)&&(c[d].src=m.src),p.slidebgimage){-1==m.src.indexOf("images/transparent.png")&&-1==m.src.indexOf("assets/transparent.png")||p.bgcolor===i||p.bgcolor!==i&&"transparent"!==p.bgcolor&&(m.bgColor=!0,m.useBGColor=!0),a.sA(n[l],"owidth",m.width),a.sA(n[l],"oheight",m.height);var v=a.getByTag(n[l],"RS-SBG-WRAP"),f=a.gA(n[l],"key");if(a[o].sbgs[f].loadobj=m,v.length>0&&(a.sA(v[0],"owidth",m.width),a.sA(v[0],"oheight",m.height)),"carousel"===a[o].sliderType){var w=e(v),y=a.getSlideIndex(o,f);(a[o].carousel.justify&&a[o].carousel.slide_widths===i||a[o].carousel.slide_width===i)&&a.setCarouselDefaults(o,!0),w.data("panzoom")===i||a[o].panzoomTLs!==i&&a[o].panzoomTLs[y]!==i||a.startPanZoom(w,o,0,y,"prepare",f),a[o].sbgs[f].isHTML5&&!a[o].sbgs[f].videoisplaying&&(a[o].sbgs[f].video=a[o].sbgs[f].loadobj.img),n[l].getAttribute("data-iratio")!==i&&!n[l].getAttribute("data-iratio")&&m.img&&m.img.naturalWidth&&(n[l].setAttribute("data-iratio",m.img.naturalWidth/m.img.naturalHeight),a.setCarouselDefaults(o,"redraw"),!0===a[o].carousel.ocfirsttun&&a.organiseCarousel(o,"right",!0,!1,!1)),a.updateSlideBGs(o,f,a[o].sbgs[f])}}}else"svg"==m.type&&"loaded"==m.progress&&(c[d].innerHTML=m.innerHTML);p.loaded=!0}m&&m.progress&&m.progress.match(/inprogress|inload|prepared/g)&&(!m.error&&Date.now()-m.starttoload<15e3?s=!0:(m.progress="failed",m.reported_img||(m.reported_img=!0,console.log(h+" Could not be loaded !")))),1!=a[o].youtubeapineeded||window.YT&&YT.Player!=i||(s=S("youtube",o)),1!=a[o].vimeoapineeded||window.Vimeo||(s=S("vimeo",o))}}e.each(a[o].loadqueue,function(e,i){!0===i.static&&("loaded"!=i.progress&&"done"!==i.progress||"failed"===i.progress)&&("failed"!=i.progress||i.reported?!i.error&&Date.now()-i.starttoload<5e3?s=!0:i.reported||(i.reported=_(i.src,i.error)):i.reported=_(i.src,i.error))}),s?tpGS.gsap.delayedCall(.02,a.waitForCurrentImages,[t,o,r]):r!==i&&tpGS.gsap.delayedCall(1e-4,r)}},updateVisibleArea:function(e){for(var t in a[e].viewPort.visible_area=a.revToResp(a[e].viewPort.visible_area,a[e].rle,"0px"),a[e].viewPort.vaType=new Array(4),a[e].viewPort.visible_area)a[e].viewPort.visible_area.hasOwnProperty(t)&&(!1===a[e].viewPort.local&&!0===a[e].viewPort.global?(a[e].viewPort.vaType[t]=a[e].viewPort.globalDist.indexOf("%")>=0?"%":"px",a[e].viewPort.visible_area[t]=parseInt(a[e].viewPort.globalDist)):(a.isNumeric(a[e].viewPort.visible_area[t])&&(a[e].viewPort.visible_area[t]+="%"),a[e].viewPort.visible_area[t]!==i&&(a[e].viewPort.vaType[t]=a[e].viewPort.visible_area[t].indexOf("%")>=0?"%":"px"),a[e].viewPort.visible_area[t]=parseInt(a[e].viewPort.visible_area[t],0)),a[e].viewPort.visible_area[t]="%"==a[e].viewPort.vaType[t]?a[e].viewPort.visible_area[t]/100:a[e].viewPort.visible_area[t])},observeFonts:function(e,t,o){o=o===i?0:o,a.fonts===i&&(a.fonts={},a.monoWidth=d("monospace"),a.sansWidth=d("sans-serif"),a.serifWidth=d("serif")),o++;var r=a.fonts[e];!0!==a.fonts[e]&&(a.fonts[e]=a.monoWidth!==d(e+",monospace")||a.sansWidth!==d(e+",sans-serif")||a.serifWidth!==d(e+",serif")),100===o||(!1===r||r===i)&&!0===a.fonts[e]?(d(e+",monospace",!0),d(e+",sans-serif",!0),d(e+",serif",!0),t()):setTimeout(function(){a.observeFonts(e,t,o)},19)},getversion:function(){return t},currentSlideIndex:function(e){return a[e].pr_active_key},iOSVersion:function(){return!!(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i))&&navigator.userAgent.match(/OS 4_\d like Mac OS X/i)},setIsIOS:function(){a.isiPhone=/iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,a.isIOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&void 0!==navigator.standalone},setIsChrome8889:function(){a.isChrome8889=a.isChrome8889===i?navigator.userAgent.indexOf("Chrome/88")>=0||navigator.userAgent.indexOf("Chrome/89")>=0:a.isChrome8889},isIE:function(){if(a.isIERes===i){var t=e('
').appendTo(e("body"));t.html("\x3c!--[if IE 8]> 1)||t);return t&&document.body&&-1===document.body.className.indexOf("rs-ISM")&&(document.body.className+=" rs-ISM"),t},is_android:function(){var e=["android","Android"],i=!1;for(var t in e)e.hasOwnProperty(t)&&(i=!!(i||navigator.userAgent.split(e[t]).length>1)||i);return i},callBackHandling:function(i,t,o){a[i].callBackArray&&e.each(a[i].callBackArray,function(e,i){i&&i.inmodule&&i.inmodule===t&&i.atposition&&i.atposition===o&&i.callback&&i.callback.call()})},get_browser:function(){var e,i=navigator.userAgent,t=i.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(t[1])?(e=/\brv[ :]+(\d+)/g.exec(i)||[],"IE"):"Chrome"===t[1]&&null!=(e=i.match(/\b(OPR|Edge)\/(\d+)/))?e[1].replace("OPR","Opera"):(t=t[2]?[t[1],t[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=i.match(/version\/(\d+)/i))&&t.splice(1,1,e[1]),t[0])},get_browser_version:function(){var e,i=navigator.appName,t=navigator.userAgent,a=t.match(/(edge|opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return a&&null!=(e=t.match(/version\/([\.\d]+)/i))&&(a[2]=e[1]),(a=a?[a[1],a[2]]:[i,navigator.appVersion,"-?"])[1]},isFaceBook:function(){return a.isFaceBookApp==i&&(a.isFaceBookApp=navigator.userAgent||navigator.vendor||window.opera,a.isFaceBookApp=a.isFaceBookApp.indexOf("FBAN")>-1||a.isFaceBookApp.indexOf("FBAV")>-1),a.isFaceBookApp},isFirefox:function(e){return a[e].isFirefox=a[e].isFirefox===i?"Firefox"===a.get_browser():a[e].isFirefox,a.isFF=a[e].isFirefox,a[e].isFirefox},isSafari11:function(){return"safari"===a.trim(a.get_browser().toLowerCase())&&parseFloat(a.get_browser_version())>=11},isWebkit:function(){var e=/(webkit)[ \/]([\w.]+)/.exec(navigator.userAgent.toLowerCase());return e&&e[1]&&"webkit"===e[1]},isIE11:function(){return a.IE11=a.IE11===i?!!navigator.userAgent.match(/Trident.*rv\:11\./):a.IE11,a.IE11},checkBackdrop:function(){var e=document.createElement("div");e.style.cssText="-webkit-backdrop-filter: blur(2px)";var t=0!=e.style.length,o=document.documentMode===i||document.documentMode>9;t&&o||(e.style.cssText="backdrop-filter: blur(2px)",t=0!=e.style.length),e=null,a.useBackdrop=t&&o},deepLink:function(e,t){if(t!==i){var o=parseInt(t.toString().replace(/^slide/,"").replace("-",""),10);if(isNaN(o))for(var r in a[e].slides)if(a[e].slides.hasOwnProperty(r)&&a.gA(a[e].slides[r],"deeplink")===t){o=parseInt(a.gA(a[e].slides[r],"originalindex"),10);break}return isNaN(o)||o<1||o>a[e].realslideamount?void 0:o}},getHorizontalOffset:function(e,i){var t=l(e,".outer-left"),a=l(e,".outer-right");return"left"==i?t:"right"==i?a:"all"==i?{left:t,right:a,both:t+a,inuse:t+a!=0}:t+a},getComingSlide:function(e,t){var o=a[e].pr_next_key!==i?a[e].pr_next_key:a[e].pr_processing_key!==i?a[e].pr_processing_key:a[e].pr_active_key,r=0;if(r=0,a[e].pr_active_slide!==i&&"true"==a.gA(a[e].pr_active_slide[0],"not_in_nav")&&(o=a[e].pr_lastshown_key),t!==i&&a.isNumeric(t)||t!==i&&t.match(/to/g))r=1===t||-1===t?parseInt(o,0)+t<0?a[e].slideamount-1:parseInt(o,0)+t>=a[e].slideamount?0:parseInt(o,0)+t:(t=a.isNumeric(t)?t:parseInt(t.split("to")[1],0))<0?0:t>a[e].slideamount-1?a[e].slideamount-1:t;else if(t)for(var s in a[e].slides)a[e].slides.hasOwnProperty(s)&&(r=a[e].slides&&a[e].slides[s]&&(a.gA(a[e].slides[s],"key")===t||a[e].slides[s].id===t)?s:r);return{nindex:r,aindex:o}},callingNewSlide:function(e,t,o){var r=a.getComingSlide(e,t);a[e].pr_next_key=r.nindex,a[e].sdir=a[e].pr_next_keyparseInt(a[e].responsiveLevels[s]))&&(i=parseInt(a[e].responsiveLevels[s]),r=parseInt(s),t=parseInt(a[e].responsiveLevels[s])),a.winWAll>a[e].responsiveLevels[s]&&to.w?o.h=o.w:o.w=o.h,(o.h>1||o.w>1)&&(o.w=1,o.h=1))),o},updateDims:function(e,t){var o=a[e].pr_processing_key||a[e].pr_active_key||0,r=a[e].pr_active_key||0,s=a[e].modal!==i&&a[e].modal.useAsModal,n=s?a.winWAll:a.winW,d=!1;if(a[e].lastScrollBarWidth=a.scrollBarWidth,a[e].redraw=a[e].redraw===i?{}:a[e].redraw,a[e].module=a[e].module===i?{}:a[e].module,a[e].canv=a[e].canv===i?{}:a[e].canv,a[e].content=a[e].content===i?{}:a[e].content,a[e].drawUpdates={c:{},cpar:{},canv:{}},"carousel"==a[e].sliderType?a[e].module.margins={top:parseInt(a[e].carousel.padding_top||0,0),bottom:parseInt(a[e].carousel.padding_bottom||0,0)}:a[e].module.margins={top:0,bottom:0},a[e].module.paddings===i&&(a[e].module.paddings={top:parseInt(a[e].cpar.css("paddingTop"),0)||0,bottom:parseInt(a[e].cpar.css("paddingBottom"),0)||0}),a[e].blockSpacing!==i?(a[e].block={bottom:a[e].blockSpacing.bottom!==i?parseInt(a[e].blockSpacing.bottom[a[e].level],0):0,top:a[e].blockSpacing.top!==i?parseInt(a[e].blockSpacing.top[a[e].level],0):0,left:a[e].blockSpacing.left!==i?parseInt(a[e].blockSpacing.left[a[e].level],0):0,right:a[e].blockSpacing.right!==i?parseInt(a[e].blockSpacing.right[a[e].level],0):0},a[e].block.hor=a[e].block.left+a[e].block.right,a[e].block.ver=a[e].block.top+a[e].block.bottom):a[e].block===i&&(a[e].block={top:0,left:0,right:0,bottom:0,hor:0,ver:0}),a[e].blockSpacing!==i){var l={paddingLeft:a[e].block.left,paddingRight:a[e].block.right,marginTop:a[e].block.top,marginBottom:a[e].block.bottom},c=JSON.stringify(l);l!==a[e].emptyObject&&c!==a[e].caches.setsizeBLOCKOBJ&&(tpGS.gsap.set(a[e].blockSpacing.block,l),a[e].caches.setsizeBLOCKOBJ=c,d=!0)}if(a[e].levelForced=a[e].level=a.getResponsiveLevel(e),a[e].rowHeights=a.getRowHeights(e),a[e].aratio=a[e].gridheight[a[e].level]/a[e].gridwidth[a[e].level],a[e].module.width="auto"===a[e].sliderLayout||1==a[e].disableForceFullWidth?a[e].cpar.width():n-a[e].block.hor,a[e].outNavDims=a.getOuterNavDimension(e),a[e].canv.width=a[e].module.width-a[e].outNavDims.horizontal-(s?a.scrollBarWidth:0),s&&"auto"===a[e].sliderLayout&&(a[e].canv.width=Math.min(a[e].gridwidth[a[e].level],n)),"fullscreen"===a[e].sliderLayout||a[e].infullscreenmode){var p=a.getWinH(e)-(!0===a[e].modal.useAsModal?0:a.getFullscreenOffsets(e));a[e].canv.height=Math.max(a[e].rowHeights.cur,Math.max(p-a[e].outNavDims.vertical,a[e].minHeight)),r!==o&&(a[e].currentSlideHeight=Math.max(a[e].rowHeights.last,Math.max(p-a[e].outNavDims.vertical,a[e].minHeight)),a[e].redraw.maxHeightOld=!0),a[e].drawUpdates.c.height="100%"}else a[e].canv.height=a[e].keepBPHeight?a[e].gridheight[a[e].level]:Math.round(a[e].canv.width*a[e].aratio),a[e].canv.height=a[e].autoHeight?a[e].canv.height:Math.min(a[e].canv.height,a[e].gridheight[a[e].level]),a[e].canv.height=Math.max(Math.max(a[e].rowHeights.cur,a[e].canv.height),a[e].minHeight),a[e].drawUpdates.c.height=a[e].canv.height;"fullscreen"!==a[e].sliderLayout&&"fullwidth"!==a[e].sliderLayout||(a[e].canv.width-=a[e].cpar.outerWidth()-a[e].cpar.width(),"fullscreen"===a[e].sliderLayout&&(a[e].canv.height-=a[e].cpar.outerHeight()-a[e].cpar.height())),a[e].module.height=a[e].canv.height,"fullwidth"!=a[e].sliderLayout||a[e].fixedOnTop||(a[e].drawUpdates.c.maxHeight=0!=a[e].maxHeight?Math.min(a[e].canv.height,a[e].maxHeight):a[e].canv.height),a[e].CM=a.getSizeMultpilicator(e,a[e].enableUpscaling,{width:a[e].canv.width,height:a[e].canv.height}),a[e].content.width=a[e].gridwidth[a[e].level]*a[e].CM.w,a[e].content.height=Math.round(Math.max(a[e].rowHeights.cur,a[e].gridheight[a[e].level]*a[e].CM.h));var g=a[e].module.margins.top+a[e].module.margins.bottom+("fullscreen"===a[e].sliderLayout?0:a[e].outNavDims.vertical)+a[e].canv.height+a[e].module.paddings.top+a[e].module.paddings.bottom;a[e].drawUpdates.cpar.height=g,a[e].drawUpdates.cpar.width="auto"===a[e].sliderLayout?"auto":a[e].module.width,"auto"===a[e].sliderLayout||"fullscreen"===a[e].sliderLayout&&!0===a[e].disableForceFullWidth||a[e].rsFullWidthWrap===i?"fullscreen"==a[e].sliderLayout&&1==a[e].disableForceFullWidth&&(a[e].drawUpdates.cpar.left=0):a[e].drawUpdates.cpar.left=0-Math.ceil(a[e].rsFullWidthWrap.offset().left-(a[e].outNavDims.left+a[e].block.left)),a[e].sbtimeline.set&&a[e].sbtimeline.fixed?(a[e].sbtimeline.extended===i&&a.updateFixedScrollTimes(e),a[e].forcerHeight=2*g+a[e].sbtimeline.extended,a[e].sbtimeline.pullc&&a[e].rsFullWidthWrap!==i&&null!==a[e].rsFullWidthWrap[0]&&requestAnimationFrame(function(){a[e].rsFullWidthWrap[0].style.marginBottom=a[e].rsFullWidthWrapMarginBottom+-1*a[e].forcerHeight+"px"})):a[e].forcerHeight=g,a[e].forcerHeight!==a[e].caches.setsizeForcerHeight&&a[e].forcer!==i&&(a[e].caches.setsizeForcerHeight=a[e].forcerHeight,d=!0,a[e].redraw.forcer=!0),a[e].drawUpdates.c.width=a[e].canv.width,"auto"===a[e].sliderLayout&&(a[e].drawUpdates.c.left=a[e].outNavDims.left),a[e].drawUpdates.c!==a[e].emptyObject&&JSON.stringify(a[e].drawUpdates.c)!==a[e].caches.setsizeCOBJ&&(a[e].caches.setsizeCOBJ=JSON.stringify(a[e].drawUpdates.c),d=!0,a[e].redraw.c=!0),a[e].drawUpdates.cpar!==a[e].emptyObject&&JSON.stringify(a[e].drawUpdates.cpar)!==a[e].caches.setsizeCPAROBJ&&(a[e].caches.setsizeCPAROBJ=JSON.stringify(a[e].drawUpdates.cpar),d=!0,a[e].redraw.cpar=!0),s&&"auto"===a[e].sliderLayout&&a[e].caches.canWidth!==a[e].canv.width&&(a[e].caches.canWidth=a[e].canv.width,d=!0,a[e].redraw.modalcanvas=!0),a[e].slayers&&a[e].slayers.length>0&&a[e].outNavDims.left!==a[e].caches.outNavDimsLeft&&"fullwidth"!=a[e].sliderLayout&&"fullscreen"!=a[e].sliderLayout&&(a[e].caches.outNavDimsLeft=a[e].outNavDims.left,a[e].redraw.slayers=!0),s&&a[e].modal.calibration!==i&&"middle"===a[e].modal.vertical&&(a[e].modal.calibration.top=a.getWinH(e)0&&(a.loadImages(i,e,2),a.waitForCurrentImages(i,e,function(){}))}},lazyLoadAllSlides:function(e){if("all"==a[e].lazyType&&!0!==a[e].lazyLoad_AllDone&&(a[e].viewPort.enable&&a[e].inviewport||!a[e].viewPort.enable)){for(var i in a[e].slides)a[e].slides.hasOwnProperty(i)&&(a.loadImages(a[e].slides[i],e,i),a.waitForCurrentImages(a[e].slides[i],e,function(){}));a[e].lazyLoad_AllDone=!0}},getFullscreenOffsets:function(t){var o=0;if(a[t].fullScreenOffsetContainer!=i){var r=(""+a[t].fullScreenOffsetContainer).split(",");for(var s in r)r.hasOwnProperty(s)&&(o+=e(r[s]).outerHeight(!0)||0)}return a[t].fullScreenOffset!=i&&(!a.isNumeric(a[t].fullScreenOffset)&&a[t].fullScreenOffset.split("%").length>1?o+=a.getWinH(t)*parseInt(a[t].fullScreenOffset,0)/100:a.isNumeric(parseInt(a[t].fullScreenOffset,0))&&(o+=parseInt(a[t].fullScreenOffset,0)||0)),a[t].fullScreenOffsetResult=o,o},unToggleState:function(e){if(e!==i)for(var t=0;t0)for(var t=0;t=0?o.classList.remove("rs-tc-active"):o.classList.add("rs-tc-active"))}},lastToggleState:function(e){var t;if(e!==i)for(var a=0;a=0||t}return t},revCheckIDS:function(t,o){if(a.gA(o,"idcheck")===i){var r=o.id,s=e.inArray(o.id,window.RSANYID),n=-1;-1!==s&&(n=e.inArray(o.id,a[t].anyid),window.RSANYID_sliderID[s]===t&&-1===n||(o.id=o.id+"_"+Math.round(9999*Math.random()),console.log("Warning - ID:"+r+" exists already. New Runtime ID:"+o.id),s=n=-1)),-1===n&&a[t].anyid.push(o.id),-1===s&&(window.RSANYID.push(o.id),window.RSANYID_sliderID.push(t))}return a.sA(o,"idcheck",!0),o.id},buildSpinner:function(t,a,o,r){var s;if("off"!==a){r=r===i?"":r,o=o===i?"#ffffff":o;var n=parseInt(a.replace("spinner",""),10);if(isNaN(n)||n<6){var d='style="background-color:'+o+'"',l=r===i||3!==n&&4!=n?"":d;s=e("
')}else{var c,p='
2&&(c="rgba("+c[0].trim()+", "+c[1].trim()+", "+c[2].trim()+", "),c&&"string"==typeof c&&(p+=' style="border-top-color: '+c+"0.65); border-bottom-color: "+c+"0.15); border-left-color: "+c+"0.65); border-right-color: "+c+'0.15)"');else 12===n&&(p+=' style="background:'+o+'"');p+=">";for(var g=[10,0,4,2,5,9,0,4,4,2][n-6],u=0;u0&&(p+=" "),p+='';s=e(''+(p+="
")+"
")}return s}},addStaticLayerTo:function(e,i,t){if(a[e].slayers.length<2){var o=document.createElement("rs-static-layers");o.className="rs-stl-"+i,o.appendChild(t[0]),a[e].c[0].appendChild(o),a[e].slayers.push(o)}else a[e].slayers[1].appendChild(t[0])}});var o=function(){return a.isIE11()?function(e,i){return e.querySelectorAll(i)}:function(e,i){return e.getElementsByTagName(i)}},r=function(e){a[e].responsiveLevels=a.revToResp(a[e].responsiveLevels,a[e].rle),a[e].visibilityLevels=a.revToResp(a[e].visibilityLevels,a[e].rle),a[e].responsiveLevels[0]=9999,a[e].rle=a[e].responsiveLevels.length||1,a[e].gridwidth=a.revToResp(a[e].gridwidth,a[e].rle),a[e].gridheight=a.revToResp(a[e].gridheight,a[e].rle),a[e].editorheight!==i&&(a[e].editorheight=a.revToResp(a[e].editorheight,a[e].rle)),a.updateDims(e)},s=function(i,t){var a=[];return e.each(i,function(e,i){e!=t&&a.push(i)}),a},n=function(i,t,o){a[o].c.find(i).each(function(){var i=e(this);i.data("key")===t&&i.remove()})},d=function(e,t){if(a["rsfont_"+e]==i&&(a["rsfont_"+e]=document.createElement("span"),a["rsfont_"+e].innerHTML=Array(100).join("wi"),a["rsfont_"+e].style.cssText=["position:absolute","width:auto","font-size:128px","left:-99999px"].join(" !important;"),a["rsfont_"+e].style.fontFamily=e,document.body.appendChild(a["rsfont_"+e])),t===i)return a["rsfont_"+e].clientWidth;document.body.removeChild(a["rsfont_"+e])},l=function(i,t){var a=0;return i.find(t).each(function(){var i=e(this);!i.hasClass("tp-forcenotvisible")&&a');else{window._rs_firefox13=!1,window._rs_firefox=a.isFirefox(),window._rs_ie=window._rs_ie===i?!e.support.opacity:window._rs_ie,window._rs_ie9=window._rs_ie9===i?9==document.documentMode:window._rs_ie9;var o=e.fn.jquery.split("."),r=parseFloat(o[0]),s=parseFloat(o[1]);1==r&&s<7&&a[t].c.html('
The Current Version of jQuery:'+o+"
Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin
"),r>1&&(window._rs_ie=!1),a[t].realslideamount=a[t].slideamount=0;var n=a.getByTag(a[t].canvas[0],"RS-SLIDE"),d=[];for(var l in a[t].notInNav=[],a[t].slides=[],n)n.hasOwnProperty(l)&&("on"==a.gA(n[l],"hsom")&&a.ISM?d.push(n[l]):(a.gA(n[l],"invisible")||1==a.gA(n[l],"invisible")?a[t].notInNav.push(n[l]):(a[t].slides.push(n[l]),a[t].slideamount++),a[t].realslideamount++,a.sA(n[l],"originalindex",a[t].realslideamount),a.sA(n[l],"origindex",a[t].realslideamount-1)));for(l in d)d.hasOwnProperty(l)&&d[l].remove();for(l in a[t].notInNav)a[t].notInNav.hasOwnProperty(l)&&(a.sA(a[t].notInNav[l],"not_in_nav",!0),a[t].canvas[0].appendChild(a[t].notInNav[l]));if(a[t].canvas.css({visibility:"visible"}),a[t].slayers=a[t].c.find("rs-static-layers"),a[t].slayers[0]&&a[t].slayers.className&&-1!==a[t].slayers[0].className.indexOf("rs-stl-visible")&&a[t].c.addClass("rs-stl-visible"),a[t].slayers.length>0&&a.sA(a[t].slayers[0],"key","staticlayers"),!0===a[t].modal.useAsModal&&(a[t].cpar.wrap(''),a[t].modal.c=e(a.closestNode(a[t].cpar[0],"RS-MODAL")),a[t].modal.c.appendTo(e("body")),a[t].modal!==i&&a[t].modal.alias!==i&&a.revModal(t,{mode:"init"})),1==a[t].waitForInit||1==a[t].modal.useAsModal)return a.RS_toInit!==i&&(a.RS_toInit[t]=!0),a[t].c.trigger("revolution.slide.waitingforinit"),void(a[t].waitingForInit=!0);window.requestAnimationFrame(function(){u(t)}),a[t].initEnded=!0}},p=function(){e("body").data("rs-fullScreenMode",!e("body").data("rs-fullScreenMode")),e("body").data("rs-fullScreenMode")&&setTimeout(function(){a.window.trigger("resize")},200)},g=function(e,t,o){return a.gA(e,"lazyload")!==i?a.gA(e,"lazyload"):a[o].lazyloaddata!==i&&a[o].lazyloaddata.length>0&&a.gA(e,a[o].lazyloaddata)!==i?a.gA(e,a[o].lazyloaddata):a.gA(e,"lazy-src")!==i?a.gA(e,"lazy-src"):a.gA(e,"lazy-wpfc-original-src")!==i?a.gA(e,"lazy-wpfc-original-src"):a.gA(e,"lazy")!==i?a.gA(e,"lazy"):t},u=function(t){if(a[t]!==i){if(a[t].sliderisrunning=!0,!0!==a[t].noDetach&&a[t].c.detach(),a[t].shuffle){for(var o=a[t].canvas.find("rs-slide:first-child"),r=a.gA(o[0],"firstanim"),s=0;s0&&tpGS.gsap.set(c,{borderRadius:d+"px"}),a.gA(c,"link")!=i||a.gA(c,"linktoslide")!==i){var w=a.gA(c,"link"),y=w!==i?w:"slide",b="slide"!=y?"no":a.gA(c,"linktoslide"),_=a.gA(c,"seoz"),S=a.gA(c,"tag");if(b!=i&&"no"!=b&&"next"!=b&&"prev"!=b)for(var x in a[t].slides)a[t].slides.hasOwnProperty(x)&&parseInt(a.gA(a[t].slides[x],"origindex"),0)+1==a.gA(c,"linktoslide")&&(b=a.gA(a[t].slides[x],"key"));"slide"==y||"a"!=S?e(c).prepend('"+(a.ISM?"":"")+""):e(c).prepend('')}n++}if(a[t].simplifyAll&&(a.isIE(8)||a.iOSVersion())&&(a[t].c.find(".rs-layer").each(function(){var i=e(this);i.removeClass("customin customout").addClass("fadein fadeout"),i.data("splitin",""),i.data("speed",400)}),a[t].c.find("rs-slide").each(function(){var i=e(this);i.data("transition","fade"),i.data("masterspeed",500),i.data("slotamount",1),(i.find(".rev-slidebg")||i.find(">img").first()).data("panzoom",null)})),window._rs_desktop=window._rs_desktop===i?!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i):window._rs_desktop,a[t].autoHeight="fullscreen"==a[t].sliderLayout||a[t].autoHeight,"fullwidth"!=a[t].sliderLayout||a[t].autoHeight||a[t].c.css({maxHeight:a[t].gridheight[a[t].level]+"px"}),"auto"==a[t].sliderLayout||null!==a.closestNode(a[t].c[0],"RS-FULLWIDTH-WRAP")||"fullscreen"===a[t].sliderLayout&&1==a[t].disableForceFullWidth)a[t].topc=a[t].cpar;else{var k=a[t].cpar[0].style.marginTop,L=a[t].cpar[0].style.marginBottom;a[t].rsFullWidthWrapMarginBottom=parseInt(L,0),k=k===i||""===k?"":"margin-top:"+k+";",L=L===i||""===L?"":"margin-bottom:"+L+";",a[t].rsFullWidthWrap=a[t].topc=e(''),a[t].forcer=e(''),a[t].topc.append(a[t].forcer),a[t].topc.insertBefore(a[t].cpar),a[t].cpar.detach(),a[t].cpar.css({marginTop:"0px",marginBottom:"0px",position:"absolute"}),a[t].cpar.prependTo(a[t].topc)}if(a[t].forceOverflow&&a[t].topc[0].classList.add("rs-forceoverflow"),"carousel"===a[t].sliderType&&!0!==a[t].overflowHidden&&a[t].c.css({overflow:"visible"}),0!==a[t].maxHeight&&tpGS.gsap.set([a[t].cpar,a[t].c,a[t].topc],{maxHeight:a[t].maxHeight+"px"}),a[t].fixedOnTop&&tpGS.gsap.set(a[t].blockSpacing!==i&&a[t].blockSpacing.block!==i?a[t].blockSpacing.block:a[t].topc,{position:"fixed",top:"0px",left:"0px",pointerEvents:"none",zIndex:5e3}),a[t].shadow!==i&&a[t].shadow>0&&a[t].cpar.addClass("tp-shadow"+a[t].shadow).append('
'),a.updateDims(t,"prepared"),a.observeWraps===i&&(a.observeWraps=new a.wrapObserver.init(function(e,t){m(t,i,!0)})),!a[t].c.hasClass("revslider-initialised")){a[t].c[0].classList.add("revslider-initialised"),a[t].c[0].id=a[t].c[0].id===i?"revslider-"+Math.round(1e3*Math.random()+5):a[t].c[0].id,a.revCheckIDS(t,a[t].c[0]),a[t].origcd=parseInt(a[t].duration,0),a[t].scrolleffect._L=[],a[t].sbas=a[t].sbas===i?{}:a[t].sbas,a[t].layers=a[t].layers||{},a[t].sortedLayers=a[t].sortedLayers||{};var R=a[t].c[0].querySelectorAll("rs-layer, rs-row, rs-column, rs-group, rs-bgvideo, .rs-layer");for(var O in R)if(R.hasOwnProperty(O)){var I,M,T=e(R[O]),C=T.data();if(C.startclasses=R[O].className,C.startclasses=C.startclasses===i||null===C.startclasses?"":C.startclasses,C.animationonscroll=!!a[t].sbtimeline.set&&a[t].sbtimeline.layers,C.animationonscroll=!0===C.animationonscroll||"true"==C.animationonscroll,C.filteronscroll=!!a[t].scrolleffect.set&&a[t].scrolleffect.layers,C.pxundermask=C.startclasses.indexOf("rs-pxmask")>=0&&"off"!==a[t].parallax.type&&C.startclasses.indexOf("rs-pxl-")>=0,C.noPevents=C.startclasses.indexOf("rs-noevents")>=0,C.sba)for(var v in I=C.sba.split(";"))I.hasOwnProperty(v)&&("t"==(M=I[v].split(":"))[0]&&(C.animationonscroll=M[1],"false"==M[1]&&(C.animOnScrollForceDisable=!0)),"e"==M[0]&&(C.filteronscroll=M[1]),"so"==M[0]&&(C.scrollBasedOffset=parseInt(M[1])/1e3));if("true"!=C.animationonscroll&&1!=C.animationonscroll||(C.startclasses+=" rs-sba",T[0].className+=" rs-sba"),C.startclasses.indexOf("rs-layer-static")>=0&&a.handleStaticLayers&&a.handleStaticLayers(T,t),"RS-BGVIDEO"!==T[0].tagName){if(T[0].classList.add("rs-layer"),"column"===C.type&&(C.columnwidth="33.33%",C.verticalalign="top",C.column!==i))for(var A in I=C.column.split(";"))I.hasOwnProperty(A)&&("w"===(M=I[A].split(":"))[0]&&(C.columnwidth=M[1]),"a"===M[0]&&(C.verticalalign=M[1]));var B=C.startclasses.indexOf("slidelink")>=0?"z-index:"+C.zindex+";width:100% !important;height:100% !important;":"",z="column"!==C.type?"":C.verticalalign===i?" vertical-align:top;":" vertical-align:"+C.verticalalign+";",G="row"===C.type||"column"===C.type?"position:relative;":"position:absolute;",H="",E="row"===C.type?"rs-row-wrap":"column"===C.type?"rs-column-wrap":"group"===C.type?"rs-group-wrap":"rs-layer-wrap",F="",N="",j=(C.noPevents,";pointer-events:none");"row"===C.type||"column"===C.type||"group"===C.type?(T[0].classList.remove("tp-resizeme"),"column"===C.type&&(C.width="auto",T[0].group="row",tpGS.gsap.set(T,{width:"auto"}),C.filteronscroll=!1)):(F="display:"+("inline-block"===T[0].style.display?"inline-block":"block")+";",null!==a.closestNode(T[0],"RS-COLUMN")?(T[0].group="column",C.filteronscroll=!1):null!==a.closestNode(T[0],"RS-GROUP-WRAP")&&(T[0].group="group",C.filteronscroll=!1)),C.wrpcls!==i&&(H=H+" "+C.wrpcls),C.wrpid!==i&&(N='id="'+C.wrpid+'"'),T.wrap("<"+E+" "+N+' class="rs-parallax-wrap '+H+'" style="'+z+" "+B+G+F+j+'">'+(C.pxundermask?"":"")+""),!0!==C.filteronscroll&&"true"!=C.filteronscroll||a[t].scrolleffect._L.push(T.parent()),T[0].id=T[0].id===i?"layer-"+Math.round(999999999*Math.random()):T[0].id,a.revCheckIDS(t,T[0]),C.pxundermask?a[t]._Lshortcuts[T[0].id]={p:e(T[0].parentNode.parentNode.parentNode.parentNode),lp:e(T[0].parentNode.parentNode.parentNode),m:e(T[0].parentNode.parentNode)}:a[t]._Lshortcuts[T[0].id]={p:e(T[0].parentNode.parentNode.parentNode),lp:e(T[0].parentNode.parentNode),m:e(T[0].parentNode)},"column"===C.type&&a[t]._Lshortcuts[T[0].id].p.append(''),"text"===C.type&&a.getByTag(T[0],"IFRAME").length>0&&(a[t].slideHasIframe=!0,T[0].classList.add("rs-ii-o")),a[t].BUG_safari_clipPath&&"true"!=C.animationonscroll&&1!=C.animationonscroll&&T[0].classList.add("rs-pelock"),T[0].dataset.staticz!==i&&"row"!==C.type&&"row"!==T[0].group&&"column"!==T[0].group&&a.addStaticLayerTo(t,T[0].dataset.staticz,a[t]._Lshortcuts[T[0].id].p)}a.gA(T[0],"actions")&&a.checkActions&&a.checkActions(T,t,a[t]),!a.checkVideoApis||window.rs_addedvim&&window.rs_addedyt||a[t].youtubeapineeded&&a[t].vimeoapineeded||a.checkVideoApis(T,t)}a.checkActions&&a.checkActions(i,t),a[t].c[0].addEventListener("mousedown",function(){if(!0!==a[t].onceClicked&&(a[t].onceClicked=!0,!0!==a[t].onceVideoPlayed&&a[t].activeRSSlide!==i&&a[t].slides!==i&&a[t].slides[a[t].activeRSSlide]!==i)){var o=e(a[t].slides[a[t].activeRSSlide]).find("rs-bgvideo");o!==i&&null!==o&&o.length>0&&a.playVideo(o,t)}}),a[t].c[0].addEventListener("mouseenter",function(){a[t].c.trigger("tp-mouseenter"),a[t].overcontainer=!0},{passive:!0}),a[t].c[0].addEventListener("mouseover",function(){a[t].c.trigger("tp-mouseover"),a[t].overcontainer=!0},{passive:!0}),a[t].c[0].addEventListener("mouseleave",function(){a[t].c.trigger("tp-mouseleft"),a[t].overcontainer=!1},{passive:!0}),a[t].c.find(".rs-layer video").each(function(i){var t=e(this);t.removeClass("video-js vjs-default-skin"),t.attr("preload",""),t.css({display:"none"})}),a[t].rs_static_layer=a.getByTag(a[t].c[0],"RS-STATIC-LAYERS"),a.preLoadAudio&&a[t].rs_static_layer.length>0&&a.preLoadAudio(e(a[t].rs_static_layer),t,1),a[t].rs_static_layer.length>0&&(a.loadImages(a[t].rs_static_layer[0],t,0,!0),a.waitForCurrentImages(a[t].rs_static_layer[0],t,function(){a[t]!==i&&a[t].c.find("rs-static-layers img").each(function(){this.src=a.getLoadObj(t,a.gA(this,"src")!=i?a.gA(this,"src"):this.src).src})})),a[t].rowzones=[],a[t].rowzonesHeights=[],a[t].topZones=[],a[t].middleZones=[],a[t].bottomZones=[],a[t].rowMiddleHeights={};var W=a.deepLink(t,P("#")[0]);W!==i&&(a[t].startWithSlide=W,a[t].deepLinkListener=!0,window.addEventListener("hashchange",function(){if(!0!==a[t].ignoreDeeplinkChange){var e=a.deepLink(t,P("#")[0]);e!==i&&a.callingNewSlide(t,e,!0)}a[t].ignoreDeeplinkChange=!1})),a[t].loader=a.buildSpinner(t,a[t].spinner,a[t].spinnerclr),a[t].loaderVisible=!0,a[t].c.append(a[t].loader),f(t),("off"!==a[t].parallax.type||a[t].scrolleffect.set||a[t].sbtimeline.set)&&a.checkForParallax&&a.checkForParallax(t),a[t].fallbacks.disableFocusListener||"true"==a[t].fallbacks.disableFocusListener||!0===a[t].fallbacks.disableFocusListener||(a[t].c.addClass("rev_redraw_on_blurfocus"),D());var V=a[t].viewPort;for(var v in"on"===a[t].navigation.mouseScrollNavigation&&(V.enable=!0),a[t].slides)if(a[t].slides.hasOwnProperty(v)){var U=e(a[t].slides[v]);a[t].rowzones[v]=[],a[t].rowzonesHeights[v]=[],a[t].topZones[v]=[],a[t].middleZones[v]=[],a[t].bottomZones[v]=[],U.find("rs-zone").each(function(){a[t].rowzones[v].push(e(this)),this.className.indexOf("rev_row_zone_top")>=0&&a[t].topZones[v].push(this),this.className.indexOf("rev_row_zone_middle")>=0&&(a[t].middleZones[v].push(this),this.dataset.middle="true"),this.className.indexOf("rev_row_zone_bottom")>=0&&a[t].bottomZones[v].push(this)})}a.lazyLoadAllSlides(t),a[t].srowzones=[],a[t].smiddleZones=[],a[t].slayers&&a[t].slayers.find("rs-zone").each(function(){a[t].srowzones.push(e(this)),this.className.indexOf("rev_row_zone_middle")>=0&&(a[t].smiddleZones.push(this),this.dataset.middle="true")}),"carousel"===a[t].sliderType&&tpGS.gsap.set(a[t].canvas,{scale:1,perspective:1200,transformStyle:"flat",opacity:0}),a[t].c.prependTo(a[t].cpar),e("body").data("rs-fullScreenMode",!1),window.addEventListener("fullscreenchange",p,{passive:!0}),window.addEventListener("mozfullscreenchange",p,{passive:!0}),window.addEventListener("webkitfullscreenchange",p,{passive:!0}),a.document.on("updateContainerSizes."+a[t].c.attr("id"),function(){if(a[t]!==i)return a[t].c!=i&&void(a.updateDims(t,"ignore")&&window.requestAnimationFrame(function(){a.updateDims(t,"ignore"),a[t].fullScreenMode=a.checkfullscreenEnabled(t),a.lastwindowheight=a.getWinH(t),m(t)}))}),V.presize&&(a[t].pr_next_slide=e(a[t].slides[0]),a.loadImages(a[t].pr_next_slide[0],t,0,!0),a.waitForCurrentImages(a[t].pr_next_slide.find(".tp-layers"),t,function(){a.animateTheLayers&&a.animateTheLayers({slide:a[t].pr_next_key,id:t,mode:"preset",caller:"runSlider"})})),("off"!=a[t].parallax.type||a[t].sbtimeline.set||!0===V.enable)&&a.scrollTicker(t),!0!==V.enable&&(a[t].inviewport=!0,a.enterViewPort(t)),a.RS_toInit!==i&&(a.RS_toInit[t]=!0),a[t].observeWrap&&a.observeWraps&&a.wrapObserver.observe(a[t].rsFullWidthWrap!==i?a[t].rsFullWidthWrap[0]:a[t].cpar[0],t)}}},h=function(e,t){a.winW'),a[t].cpar.prepend("").append(""),a.defineCarouselElements(t)}a[t].startWithSlide=a[t].startWithSlide===i?i:Math.max(1,(a[t].sliderType,parseInt(a[t].startWithSlide))),a[t].cpar.css({overflow:"visible"}),a[t].scrolleffect.bgs=[];for(var s=0;simg"),c=a[t].sbgs[d]=w(l.data(),t),p=n.data("mediafilter");if(c.skeyindex=a.getSlideIndex(t,d),c.bgvid=n.find("rs-bgvideo"),l.detach(),c.bgvid.detach(),(a[t].startWithSlide!=i&&a.gA(a[t].slides[s],"originalindex")==a[t].startWithSlide||a[t].startWithSlide===i&&0==s)&&(a[t].pr_next_key=n.index()),tpGS.gsap.set(n,{width:"100%",height:"100%",overflow:o}),l.wrap(''),c.wrap=e(a.closestNode(l[0],"RS-SBG-WRAP")),c.src=l[0].src,c.lazyload=c.lazyload=g(l[0],i,t),c.slidebgimage=!0,c.loadobj=c.loadobj===i?{}:c.loadobj,c.mediafilter=p="none"===p||p===i?"":p,c.sbg=document.createElement("rs-sbg"),a[t].overlay!==i&&"none"!=a[t].overlay.type&&a[t].overlay.type!=i){var u=a.createOverlay(t,a[t].overlay.type,a[t].overlay.size,{0:a[t].overlay.colora,1:a[t].overlay.colorb});c.wrap.append('')}l.data("mediafilter",p),c.canvas=document.createElement("canvas"),c.sbg.appendChild(c.canvas),c.canvas.style.width="100%",c.canvas.style.height="100%",c.ctx=c.canvas.getContext("2d"),c.lazyload!==i&&(c.sbg.dataset.lazyload=c.lazyload),c.sbg.className=p,c.sbg.src=c.src,c.sbg.dataset.bgcolor=c.bgcolor,c.sbg.style.width="100%",c.sbg.style.height="100%",c.key=d,c.wrap[0].dataset.key=d,e(c.sbg).data(c),c.wrap.data(c),c.wrap[0].appendChild(c.sbg);var h=document.createComment("Runtime Modification - Img tag is Still Available for SEO Goals in Source - "+l.get(0).outerHTML);l.replaceWith(h),a.gA(n[0],"sba")===i&&a.sA(n[0],"sba","");var m={},v=a.gA(n[0],"sba").split(";");for(var f in v)if(v.hasOwnProperty(f)){var y=v[f].split(":");switch(y[0]){case"f":m.f=y[1];break;case"b":m.b=y[1];break;case"g":m.g=y[1];break;case"t":m.s=y[1]}}a.sA(n[0],"scroll-based",!!a[t].sbtimeline.set&&(m.s!==i&&m.s)),c.bgvid.length>0&&(c.bgvidid=c.bgvid[0].id,c.animateDirection="idle",c.bgvid.addClass("defaultvid").css({zIndex:30}),p!==i&&""!==p&&"none"!==p&&c.bgvid.addClass(p),c.bgvid.appendTo(c.wrap),c.parallax!=i&&(c.bgvid.data("parallax",c.parallax),c.bgvid.data("showcoveronpause","on"),c.bgvid.data("mediafilter",p)),c.poster=!1,(c.src!==i&&-1==c.src.indexOf("assets/dummy.png")&&-1==c.src.indexOf("assets/transparent.png")||c.lazyload!==i&&-1==c.lazyload.indexOf("assets/transparent.png")&&-1==c.lazyload.indexOf("assets/dummy.png"))&&(c.poster=!0),c.bgvid.data("bgvideo",1),c.bgvid[0].dataset.key=d,0==c.bgvid.find(".rs-fullvideo-cover").length&&c.bgvid.append('
')),a[t].scrolleffect.set?(a[t].scrolleffect.bgs.push({fade:m.f!==i?m.f:!!a[t].scrolleffect.slide&&a[t].scrolleffect.fade,blur:m.b!==i?m.b:!!a[t].scrolleffect.slide&&a[t].scrolleffect.blur,grayscale:m.g!==i?m.g:!!a[t].scrolleffect.slide&&a[t].scrolleffect.grayscale,c:c.wrap.wrap("").parent()}),n.prepend(c.wrap.parent().parent())):n.prepend(c.wrap.parent())}"carousel"===a[t].sliderType?(tpGS.gsap.set(a[t].carousel.wrap,{opacity:0}),a[t].c[0].appendChild(a[t].carousel.wrap[0])):a[t].c[0].appendChild(a[t].canvas[0])},w=function(t,o){t.bg=t.bg===i?"":t.bg;var r=t.bg.split(";"),s={bgposition:"50% 50%",bgfit:"cover",bgrepeat:"no-repeat",bgcolor:"transparent"};for(var n in r)if(r.hasOwnProperty(n)){var d=r[n].split(":"),l=d[0],c=d[1],p="";switch(l){case"p":p="bgposition";break;case"f":p="bgfit";break;case"r":p="bgrepeat";break;case"c":p="bgcolor"}p!==i&&(s[p]=c)}return a[o].fallbacks.panZoomDisableOnMobile&&a.ISM&&(s.panzoom=i,s.bgfit="cover",t.panzoom=i),e.extend(!0,t,s)},y=function(e,t,o){if(a[t]!==i){a[t].syncload--;var r=a.gA(e,"reference");for(var s in a[t].loadqueue)a[t].loadqueue.hasOwnProperty(s)&&"loaded"!==a[t].loadqueue[s].progress&&r==a[t].loadqueue[s].src&&(a[t].loadqueue[s].img=e,a[t].loadqueue[s].progress=o,a[t].loadqueue[s].width=e.naturalWidth,a[t].loadqueue[s].height=e.naturalHeight);b(t)}},b=function(t){4!=a[t].syncload&&a[t].loadqueue&&e.each(a[t].loadqueue,function(o,r){if("prepared"==r.progress&&a[t].syncload<=4){if(a[t].syncload++,"img"==r.type){var s="IMG"==r.img.tagName?r.img:new Image;a.sA(s,"reference",r.src),/^([\w]+\:)?\/\//.test(r.src)&&-1===r.src.indexOf(location.host)&&""!==a[t].imgCrossOrigin&&a[t].imgCrossOrigin!==i&&(s.crossOrigin=a[t].imgCrossOrigin),s.onload=function(){y(this,t,"loaded"),r.error=!1},s.onerror=function(){y(this,t,"failed"),r.error=!0},s.src=r.src,r.starttoload=Date.now()}else e.get(r.src,function(e){r.innerHTML=(new XMLSerializer).serializeToString(e.documentElement),r.progress="loaded",a[t].syncload--,b(t)}).fail(function(){r.progress="failed",a[t].syncload--,b(t)});r.progress="inload"}})},_=function(e,i){return console.log("Static Image "+e+" Could not be loaded in time. Error Exists:"+i),!0},S=function(e,i){if(Date.now()-a[i][e+"starttime"]>5e3&&1!=a[i][e+"warning"]){a[i][e+"warning"]=!0;var t=e+" Api Could not be loaded !";"https:"===location.protocol&&(t+=" Please Check and Renew SSL Certificate !"),console.error(t),a[i].c.append('
'+t+"
")}return!0},x=function(t){a[t]!==i&&(a[t].pr_active_slide=e(a[t].slides[a[t].pr_active_key]),a[t].pr_next_slide=e(a[t].slides[a[t].pr_processing_key]),a[t].pr_active_bg=a[t].pr_active_slide.find("rs-sbg-wrap"),a[t].pr_next_bg=a[t].pr_next_slide.find("rs-sbg-wrap"),a[t].pr_active_bg!==i&&a[t].pr_active_bg.length>0&&tpGS.gsap.to(a[t].pr_active_bg,.5,{opacity:0}),a[t].pr_next_bg!==i&&a[t].pr_next_bg.length>0&&tpGS.gsap.to(a[t].pr_next_bg,.5,{opacity:0}),tpGS.gsap.set(a[t].pr_active_slide,{zIndex:18}),a[t].pr_next_slide!==i&&a[t].pr_next_slide.length>0&&tpGS.gsap.set(a[t].pr_next_slide,{autoAlpha:0,zIndex:20}),a[t].tonpause=!1,a[t].pr_active_key!==i&&a.removeTheLayers(a[t].pr_active_slide,t,!0),a[t].firststart=1,setTimeout(function(){delete a[t].pr_active_key,delete a[t].pr_processing_key},200))},k=function(t,o){if(a[t]!==i)if(clearTimeout(a[t].waitWithSwapSlide),a[t].pr_processing_key===i||!0!==a[t].firstSlideShown){if(clearTimeout(a[t].waitWithSwapSlide),a[t].startWithSlideKey!==i&&(a[t].pr_next_key=a.getComingSlide(t,a[t].startWithSlideKey).nindex,delete a[t].startWithSlideKey),a[t].pr_active_slide=e(a[t].slides[a[t].pr_active_key]),a[t].pr_next_slide=e(a[t].slides[a[t].pr_next_key]),a[t].pr_next_key==a[t].pr_active_key)return delete a[t].pr_next_key;var r=a.gA(a[t].pr_next_slide[0],"key");a[t].sbgs[r].bgvid&&a[t].sbgs[r].bgvid.length>0&&(a[t].videos==i||a[t].videos[a[t].sbgs[r].bgvid[0].id]===i)&&a.manageVideoLayer(a[t].sbgs[r].bgvid,t,r),a[t].pr_processing_key=a[t].pr_next_key,a[t].pr_cache_pr_next_key=a[t].pr_next_key,delete a[t].pr_next_key,a[t].pr_next_slide!==i&&a[t].pr_next_slide[0]!==i&&a.gA(a[t].pr_next_slide[0],"hal")!==i&&a.sA(a[t].pr_next_slide[0],"sofacounter",a.gA(a[t].pr_next_slide[0],"sofacounter")===i?1:parseInt(a.gA(a[t].pr_next_slide[0],"sofacounter"),0)+1),a[t].stopLoop&&a[t].pr_processing_key==a[t].lastslidetoshow-1&&(a[t].progressC.css({visibility:"hidden"}),a[t].c.trigger("revolution.slide.onstop"),a[t].noloopanymore=1),a[t].pr_next_slide.index()===a[t].slideamount-1&&a[t].looptogo>0&&"disabled"!==a[t].looptogo&&(a[t].looptogo--,a[t].looptogo<=0&&(a[t].stopLoop=!0)),a[t].tonpause=!0,a[t].slideInSwapTimer=!0,a[t].c.trigger("stoptimer"),"off"===a[t].spinner?a[t].loader!==i&&!0===a[t].loaderVisible&&(a[t].loader.css({display:"none"}),a[t].loaderVisible=!1):a[t].loadertimer=setTimeout(function(){a[t].loader!==i&&!0!==a[t].loaderVisible&&(a[t].loader.css({display:"block"}),a[t].loaderVisible=!0)},100);var s="carousel"===a[t].sliderType&&"all"!==a[t].lazyType?a.loadVisibleCarouselItems(t):a[t].pr_next_slide[0];a.loadImages(s,t,1),a.preLoadAudio&&a.preLoadAudio(a[t].pr_next_slide,t,1),a.waitForCurrentImages(s,t,function(){a[t].firstSlideShown=!0,a[t].pr_next_slide.find("rs-bgvideo").each(function(){a.prepareCoveredVideo(t)}),a.loadUpcomingContent(t),window.requestAnimationFrame(function(){L(a[t].pr_next_slide.find("rs-sbg"),t,o)})})}else a[t].waitWithSwapSlide=setTimeout(function(){k(t,o)},18)},L=function(t,o,r){if(a[o]!==i){O(o),a[o].pr_active_slide=e(a[o].slides[a[o].pr_active_key]),a[o].pr_next_slide=e(a[o].slides[a[o].pr_processing_key]),a[o].pr_active_bg=a[o].pr_active_slide.find("rs-sbg-wrap"),a[o].pr_next_bg=a[o].pr_next_slide.find("rs-sbg-wrap"),a[o].tonpause=!1,clearTimeout(a[o].loadertimer),a[o].loader!==i&&!0===a[o].loaderVisible&&(window.requestAnimationFrame(function(){a[o].loader.css({display:"none"})}),a[o].loaderVisible=!1),a[o].onBeforeSwap={slider:o,slideIndex:parseInt(a[o].pr_active_key,0)+1,slideLIIndex:a[o].pr_active_key,nextSlideIndex:parseInt(a[o].pr_processing_key,0)+1,nextSlideLIIndex:a[o].pr_processing_key,nextslide:a[o].pr_next_slide,slide:a[o].pr_active_slide,currentslide:a[o].pr_active_slide,prevslide:a[o].pr_lastshown_key!==i?a[o].slides[a[o].pr_lastshown_key]:""},a[o].c.trigger("revolution.slide.onbeforeswap",a[o].onBeforeSwap);var s=a.gA(a[o].pr_active_slide[0],"key"),n=a[o].sbgs[s];if(n&&n.panzoom&&n.pzAnim&&(n.pzLastFrame=!0,a.pzDrawShadow(o,n,n.pzAnim.start)),a[o].transition=1,a[o].stopByVideo=!1,a[o].pr_next_slide[0]!==i&&a.gA(a[o].pr_next_slide[0],"duration")!=i&&""!=a.gA(a[o].pr_next_slide[0],"duration")?a[o].duration=parseInt(a.gA(a[o].pr_next_slide[0],"duration"),0):a[o].duration=a[o].origcd,a[o].pr_next_slide[0]===i||"true"!=a.gA(a[o].pr_next_slide[0],"ssop")&&!0!==a.gA(a[o].pr_next_slide[0],"ssop")?a[o].ssop=!1:a[o].ssop=!0,a[o].sbtimeline.set&&a[o].sbtimeline.fixed&&a.updateFixedScrollTimes(o),a[o].c.trigger("nulltimer"),a[o].sdir=a[o].pr_processing_key0&&a.SLTR));a[o].sbgs[d].slideanimation=a[o].firstSlideAnimDone===i&&a[o].fanim!==i&&!1!==a[o].fanim?a.convertSlideAnimVals(e.extend(!0,{},a.getSlideAnim_EmptyObject(),a[o].fanim)):a[o].sbgs[d].slideanimation===i||a[o].sbgs[d].slideanimationRebuild||a[o].sbgs[d].altLen>0&&"default_first_anim"==a[o].sbgs[d].alt[a[o].sbgs[d].altIndex]?a.getSlideAnimationObj(o,{anim:a.gA(a[o].pr_next_slide[0],"anim"),filter:a.gA(a[o].pr_next_slide[0],"filter"),in:a.gA(a[o].pr_next_slide[0],"in"),out:a.gA(a[o].pr_next_slide[0],"out"),d3:a.gA(a[o].pr_next_slide[0],"d3")},d):a[o].sbgs[d].random!==i&&a.SLTR!==i?a.convertSlideAnimVals(e.extend(!0,{},a.getSlideAnim_EmptyObject(),a.getAnimObjectByKey(a.getRandomSlideTrans(a[o].sbgs[d].random.rndmain,a[o].sbgs[d].random.rndgrp,a.SLTR),a.SLTR))):a[o].sbgs[d].altLen>0&&a.SLTR!==i?a.convertSlideAnimVals(e.extend(!0,{altAnim:a[o].sbgs[d].alt[a[o].sbgs[d].altIndex]},a.getSlideAnim_EmptyObject(),a.getAnimObjectByKey(a[o].sbgs[d].alt[a[o].sbgs[d].altIndex],a.SLTR))):a[o].sbgs[d].slideanimation,a[o].sbgs[d].altLen>0&&(a[o].sbgs[d].firstSlideAnimDone!==i?(a[o].sbgs[d].altIndex++,a[o].sbgs[d].altIndex=a[o].sbgs[d].altIndex>=a[o].sbgs[d].altLen?0:a[o].sbgs[d].altIndex):(a[o].sbgs[d].firstSlideAnimDone=!0,a.SLTR===i&&a.SLTR_loading===i&&a.loadSlideAnimLibrary(o),a[o].sbgs[d].alt.push("default_first_anim"),a[o].sbgs[d].altLen++)),a[o].sbgs[d].currentState="animating",a.animateSlide(o,a[o].sbgs[d].slideanimation),a[o].firstSlideAnimDone===i&&a[o].fanim!==i&&!1!==a[o].fanim&&(a[o].sbgs[d].slideanimationRebuild=!0),a[o].firstSlideAnimDone=!0,a[o].pr_next_bg.data("panzoom")!==i&&requestAnimationFrame(function(){var e=a.gA(a[o].pr_next_slide[0],"key");a.startPanZoom(a[o].pr_next_bg,o,0,a.getSlideIndex(o,e),"first",e)}),a[o].mtl.pause()}if(a.animateTheLayers?"carousel"===a[o].sliderType?(!1!==a[o].carousel.showLayersAllTime&&(a[o].carousel.allLayersStarted?a.animateTheLayers({slide:"individual",id:o,mode:"rebuild",caller:"swapSlideProgress_5"}):a.animateTheLayers({slide:"individual",id:o,mode:"start",caller:"swapSlideProgress_4"}),a[o].carousel.allLayersStarted=!0),0!==a[o].firststart?a.animateTheLayers({slide:0,id:o,mode:"start",caller:"swapSlideProgress_6"}):!0!==r&&a.animateTheLayers({slide:a[o].pr_next_key!==i?a[o].pr_next_key:a[o].pr_processing_key!==i?a[o].pr_processing_key:a[o].pr_active_key,id:o,mode:"start",caller:"swapSlideProgress_7"}),a[o].firststart=0):a.animateTheLayers({slide:a[o].pr_next_key!==i?a[o].pr_next_key:a[o].pr_processing_key!==i?a[o].pr_processing_key:a[o].pr_active_key,id:o,mode:"start",caller:"swapSlideProgress_8"}):a[o].mtl!=i&&setTimeout(function(){a[o].mtl.resume()},18),"carousel"!==a[o].sliderType)if(a[o].scwDur=.001,Array.isArray(a[o].scwCallback)&&a[o].scwCallback.length>0){a[o].scwDone=!1,a[o].scwCount=a[o].scwCallback.length;for(var l=0;l0&&(a[o].scwTween&&"function"==typeof a[o].scwTween.kill&&(a[o].scwTween.kill(),a[o].scwTween=null),a[o].scwTween=tpGS.gsap.to(a[o].pr_next_slide,{duration:a[o].scwDur,autoAlpha:1}))})}else tpGS.gsap.to(a[o].pr_next_slide,{duration:a[o].scwDur,autoAlpha:1})}},R=function(t){if(a[t]!==i){if("done"!==a.RS_swapList[t]){a.RS_swapList[t]="done";var o=e.inArray(t,a.RS_swapping);a.RS_swapping.splice(o,1)}if(a[t].firstSlideAvailable===i&&(a[t].firstSlideAvailable=!0,window.requestAnimationFrame(function(){"hero"!==a[t].sliderType&&a.createNavigation&&a[t].navigation.use&&!0!==a[t].navigation.createNavigationDone&&a.createNavigation(t)})),"carousel"===a[t].sliderType&&tpGS.gsap.to(a[t].carousel.wrap,1,{opacity:1}),a[t].pr_active_key=a[t].pr_processing_key!==i?a[t].pr_processing_key:a[t].pr_active_key,delete a[t].pr_processing_key,"scroll"!=a[t].parallax.type&&"scroll+mouse"!=a[t].parallax.type&&"mouse+scroll"!=a[t].parallax.type||(a[t].lastscrolltop=-999,a.generalObserver(a.ISM)),a[t].mtldiff=a[t].mtl.time(),delete a[t].mtl,a[t].pr_active_key!==i){a.gA(a[t].slides[a[t].pr_active_key],"sloop")!==i&&function(e){if(a[e]!==i){a[e].sloops=a[e].sloops===i?{}:a[e].sloops;var t=a.gA(a[e].slides[a[e].pr_active_key],"key"),o=a[e].sloops[t];if(o===i){o={s:2500,e:4500,r:"unlimited"};var r=a.gA(a[e].slides[a[e].pr_active_key],"sloop").split(";");for(var s in r)if(r.hasOwnProperty(s)){var n=r[s].split(":");switch(n[0]){case"s":o.s=parseInt(n[1],0)/1e3;break;case"e":o.e=parseInt(n[1],0)/1e3;break;case"r":o.r=n[1]}}o.r="unlimited"===o.r?-1:parseInt(o.r,0),a[e].sloops[t]=o,o.key=t}o.ct={time:o.s},o.tl=tpGS.gsap.timeline({}),o.timer=tpGS.gsap.fromTo(o.ct,o.e-o.s,{time:o.s},{time:o.e,ease:"none",onRepeat:function(){for(var t in a[e].layers[o.key])a[e].layers[o.key].hasOwnProperty(t)&&a[e]._L[t].timeline.play(o.s);var r=a[e].progressC;r!==i&&r[0]!==i&&r[0].tween!==i&&r[0].tween.time(o.s)},onUpdate:function(){},onComplete:function(){}}).repeat(o.r),o.tl.add(o.timer,o.s),o.tl.time(a[e].mtldiff)}}(t),a.sA(a[t].slides[a[t].activeRSSlide],"isactiveslide",!1),a[t].activeRSSlide=a[t].pr_active_key,a.sA(a[t].slides[a[t].activeRSSlide],"isactiveslide",!0);var r=a.gA(a[t].slides[a[t].pr_active_key],"key"),s=a.gA(a[t].slides[a[t].pr_lastshown_key],"key");a.sA(a[t].c[0],"slideactive",r),s!==i&&a[t].panzoomTLs!==i&&a[t].panzoomTLs[a.getSlideIndex(t,s)]!==i&&("carousel"===a[t].sliderType?(a[t].panzoomTLs[a.getSlideIndex(t,s)].timeScale(3),a[t].panzoomTLs[a.getSlideIndex(t,s)].reverse()):a[t].panzoomTLs[a.getSlideIndex(t,s)].pause()),a[t].pr_next_bg.data("panzoom")!==i&&(a[t].panzoomTLs!==i&&a[t].panzoomTLs[a.getSlideIndex(t,r)]!==i?(a[t].panzoomTLs[a.getSlideIndex(t,r)].timeScale(1),a[t].panzoomTLs[a.getSlideIndex(t,r)].play()):a.startPanZoom(a[t].pr_next_bg,t,0,a.getSlideIndex(t,r),"play",r));var n={slider:t,slideIndex:parseInt(a[t].pr_active_key,0)+1,slideLIIndex:a[t].pr_active_key,slide:a[t].pr_next_slide,currentslide:a[t].pr_next_slide,prevSlideIndex:a[t].pr_lastshown_key!==i&&parseInt(a[t].pr_lastshown_key,0)+1,prevSlideLIIndex:a[t].pr_lastshown_key!==i&&parseInt(a[t].pr_lastshown_key,0),prevSlide:a[t].pr_lastshown_key!==i&&a[t].slides[a[t].pr_lastshown_key]};if(a[t].c.trigger("revolution.slide.onchange",n),a[t].c.trigger("revolution.slide.onafterswap",n),a[t].deepLinkListener||a[t].enableDeeplinkHash){var d=a.gA(a[t].slides[a[t].pr_active_key],"deeplink");d!==i&&d.length>0&&(a[t].ignoreDeeplinkChange=!0,window.location.hash=a.gA(a[t].slides[a[t].pr_active_key],"deeplink"))}a[t].pr_lastshown_key=a[t].pr_active_key,a[t].startWithSlide!==i&&"done"!==a[t].startWithSlide&&"carousel"===a[t].sliderType&&(a[t].firststart=0),a[t].duringslidechange=!1,a[t].pr_active_slide.length>0&&0!=a.gA(a[t].pr_active_slide[0],"hal")&&a.gA(a[t].pr_active_slide[0],"hal")<=a.gA(a[t].pr_active_slide[0],"sofacounter")&&a[t].c.revremoveslide(a[t].pr_active_slide.index());var l=a[t].pr_processing_key||a[t].pr_active_key||0;a[t].rowzones!=i&&(l=l>a[t].rowzones.length?a[t].rowzones.length:l),(a[t].rowzones!=i&&a[t].rowzones.length>0&&a[t].rowzones[l]!=i&&l>=0&&l<=a[t].rowzones.length&&a[t].rowzones[l].length>0||a.winH'),"horizontal"===o.style||"vertical"===o.style){if("module"===o.basedon){for(var r="",s=0;s";r+="";for(s=0;s";if(r+="","nogap"!==o.gaptype)for(s=0;s";a[t].progressC[0].innerHTML=r,!0===a[t].noDetach&&a[t].c.append(a[t].progressC),a[t].progressCBarBGS=a.getByTag(a[t].progressC[0],"RS-PROGRESS-BG"),a[t].progressCBarGAPS=a.getByTag(a[t].progressC[0],"RS-PROGRESS-GAP"),"nogap"!==o.gaptype&&tpGS.gsap.set(a[t].progressCBarGAPS,{backgroundColor:o.gapcolor,zIndex:"gapbg"===o.gaptype?17:27}),tpGS.gsap.set(a[t].progressCBarBGS,{backgroundColor:o.bgcolor})}else a[t].progressC[0].innerHTML="",!0===a[t].noDetach&&a[t].c.append(a[t].progressC);a[t].progressCBarInner=a.getByTag(a[t].progressC[0],"RS-PROGRESS-BAR"),tpGS.gsap.set(a[t].progressCBarInner,{background:o.color})}else a[t].progressC[0].innerHTML='',!0===a[t].noDetach&&a[t].c.append(a[t].progressC),a[t].progressCBarInner=a[t].progressC[0].getElementsByClassName("rs-progress-bar")[0],a[t].progressBCanvas=a[t].progressCBarInner.getContext("2d"),a[t].progressBar.degree="cw"===a[t].progressBar.style?360:0,I(t);if(!0!==a[t].noDetach&&a[t].progressC.detach(),a[t].progressBar.visibility[a[t].level]&&1!=a[t].progressBar.disableProgressBar)if("horizontal"===o.style||"vertical"===o.style){var n,d,l=a[t].slideamount-1;if("horizontal"===o.style){var c="grid"===o.alignby?a[t].gridwidth[a[t].level]:a[t].module.width;n=Math.ceil(c/a[t].slideamount),d=Math.ceil((c-l*o.gapsize)/a[t].slideamount),tpGS.gsap.set(a[t].progressC,{visibility:"visible",top:"top"===o.vertical?o.y+("grid"===o.alignby&&a[t].gridOffsetHeight!==i?Math.max(0,a[t].gridOffsetHeight):0):"center"===o.vertical?"50%":"auto",bottom:"top"===o.vertical||"center"===o.vertical?"auto":o.y+("grid"===o.alignby&&a[t].gridOffsetHeight!==i?Math.max(0,a[t].gridOffsetHeight):0),left:"left"===o.horizontal&&"grid"===o.alignby&&a[t].gridOffsetWidth!==i?Math.max(0,a[t].gridOffsetWidth):"auto",right:"right"===o.horizontal&&"grid"===o.alignby&&a[t].gridOffsetWidth!==i?Math.max(0,a[t].gridOffsetWidth):"auto",y:"center"===o.vertical?o.y:0,height:o.size,backgroundColor:"module"===o.basedon?"transparent":o.bgcolor,marginTop:"bottom"===o.vertical?0:"top"===o.vertical?0:parseInt(o.size,0)/2,width:"grid"===o.alignby?a[t].gridwidth[a[t].level]:"100%"}),tpGS.gsap.set(a[t].progressCBarInner,{x:"module"===o.basedon?o.gap?function(e){return("right"===o.horizontal?l-e:e)*(d+o.gapsize)}:function(e){return("right"===o.horizontal?l-e:e)*n}:0,width:"module"===o.basedon?o.gap?d+"px":100/a[t].slideamount+"%":"100%"}),"module"===o.basedon&&(tpGS.gsap.set(a[t].progressCBarBGS,{x:"module"===o.basedon?o.gap?function(e){return e*(d+o.gapsize)}:function(e){return e*n}:0,width:"module"===o.basedon?o.gap?d+"px":100/a[t].slideamount+"%":"100%"}),tpGS.gsap.set(a[t].progressCBarGAPS,{width:o.gap?o.gapsize+"px":0,x:o.gap?function(e){return(e+1)*d+parseInt(o.gapsize,0)*e}:0}))}else if("vertical"===o.style){c="grid"===o.alignby?a[t].gridheight[a[t].level]:a[t].module.height;n=Math.ceil(c/a[t].slideamount),d=Math.ceil((c-l*o.gapsize)/a[t].slideamount),tpGS.gsap.set(a[t].progressC,{visibility:"visible",left:"left"===o.horizontal?o.x+("grid"===o.alignby&&a[t].gridOffsetWidth!==i?Math.max(0,a[t].gridOffsetWidth):0):"center"===o.horizontal?"50%":"auto",right:"left"===o.horizontal||"center"===o.horizontal?"auto":o.x+("grid"===o.alignby&&a[t].gridOffsetWidth!==i?Math.max(0,a[t].gridOffsetWidth):0),x:"center"===o.horizontal?o.x:0,top:"top"===o.vertical&&"grid"===o.alignby&&a[t].gridOffsetHeight!==i?Math.max(a[t].gridOffsetHeight,0):"auto",bottom:"bottom"===o.vertical&&"grid"===o.alignby&&a[t].gridOffsetHeight!==i?Math.max(a[t].gridOffsetHeight,0):"auto",width:o.size,marginLeft:"left"===o.horizontal?0:"right"===o.horizontal?0:parseInt(o.size,0)/2,backgroundColor:"module"===o.basedon?"transparent":o.bgcolor,height:"grid"===o.alignby?a[t].gridheight[a[t].level]:"100%"}),tpGS.gsap.set(a[t].progressCBarInner,{y:"module"===o.basedon?o.gap?function(e){return("bottom"===o.vertical?l-e:e)*(d+o.gapsize)}:function(e){return("bottom"===o.vertical?l-e:e)*n}:0,height:"module"===o.basedon?o.gap?d+"px":100/a[t].slideamount+"%":"100%"}),"module"===o.basedon&&(tpGS.gsap.set(a[t].progressCBarBGS,{y:"module"===o.basedon?o.gap?function(e){return e*(d+o.gapsize)}:function(e){return e*n}:0,height:"module"===o.basedon?o.gap?d+"px":100/a[t].slideamount+"%":"100%"}),tpGS.gsap.set(a[t].progressCBarGAPS,{height:o.gap?o.gapsize+"px":0,y:o.gap?function(e){return(e+1)*d+parseInt(o.gapsize,0)*e}:0}))}}else tpGS.gsap.set(a[t].progressC,{top:"top"===o.vertical?o.y+("grid"===o.alignby&&a[t].gridOffsetHeight!==i?Math.max(0,a[t].gridOffsetHeight):0):"center"===o.vertical?"50%":"auto",bottom:"top"===o.vertical||"center"===o.vertical?"auto":o.y+("grid"===o.alignby&&a[t].gridOffsetHeight!==i?Math.max(0,a[t].gridOffsetHeight):0),left:"left"===o.horizontal?o.x+("grid"===o.alignby&&a[t].gridOffsetWidth!==i?Math.max(0,a[t].gridOffsetWidth):0):"center"===o.horizontal?"50%":"auto",right:"left"===o.horizontal||"center"===o.horizontal?"auto":o.x+("grid"===o.alignby&&a[t].gridOffsetWidth!==i?Math.max(0,a[t].gridOffsetWidth):0),y:"center"===o.vertical?o.y:0,x:"center"===o.horizontal?o.x:0,width:2*o.radius,height:2*o.radius,marginTop:"center"===o.vertical?0-o.radius:0,marginLeft:"center"===o.horizontal?0-o.radius:0,backgroundColor:"transparent",visibility:"visible"});else a[t].progressC[0].style.visibility="hidden";!0!==a[t].noDetach&&a[t].c.append(a[t].progressC),a[t].gridOffsetWidth===i&&"grid"===o.alignby?a[t].rebuildProgressBar=!0:a[t].rebuildProgressBar=!1},I=function(e){var i=a[e].progressBar;i.radius-parseInt(i.size,0)<=0&&(i.size=i.radius/4);var t=parseInt(i.radius),o=parseInt(i.radius);a[e].progressBCanvas.lineCap="round",a[e].progressBCanvas.clearRect(0,0,2*i.radius,2*i.radius),a[e].progressBCanvas.beginPath(),a[e].progressBCanvas.arc(t,o,i.radius-parseInt(i.size,0),Math.PI/180*270,Math.PI/180*630),a[e].progressBCanvas.strokeStyle=i.bgcolor,a[e].progressBCanvas.lineWidth=parseInt(i.size,0)-1,a[e].progressBCanvas.stroke(),a[e].progressBCanvas.beginPath(),a[e].progressBCanvas.strokeStyle=i.color,a[e].progressBCanvas.lineWidth=parseInt(i.size,0),a[e].progressBCanvas.arc(t,o,i.radius-parseInt(i.size,0),Math.PI/180*270,Math.PI/180*(270+a[e].progressBar.degree),"cw"!==i.style),a[e].progressBCanvas.stroke()},M=function(t){var o=function(){t!==i&&a!==i&&a[t]!==i&&(0==e("body").find(a[t].c).length||null===a[t]||null===a[t].c||a[t].c===i||0===a[t].length?(!function(i){a[i].c.children().each(function(){try{e(this).die("click")}catch(e){}try{e(this).die("mouseenter")}catch(e){}try{e(this).die("mouseleave")}catch(e){}try{e(this).off("hover")}catch(e){}});try{a[i].c.die("click","mouseenter","mouseleave")}catch(e){}clearInterval(a[i].cdint),a[i].c=null}(t),clearInterval(a[t].cdint)):(a[t].c.trigger("revolution.slide.slideatend"),1==a[t].c.data("conthoverchanged")&&(a[t].conthover=a[t].c.data("conthover"),a[t].c.data("conthoverchanged",0)),a.callingNewSlide(t,1,!0)))},r=tpGS.gsap.timeline({paused:!0}),s="reset"===a[t].progressBar.reset||a[t].progressBar.notnew===i?0:.2,n="slide"===a[t].progressBar.basedon?0:a[t].pr_processing_key!==i?a[t].pr_processing_key:a[t].pr_active_key;if(n=n===i?0:n,"horizontal"===a[t].progressBar.style){if(r.add(tpGS.gsap.to(a[t].progressCBarInner[n],s,{scaleX:0,transformOrigin:"right"===a[t].progressBar.horizontal?"100% 50%":"0% 50%"})),r.add(tpGS.gsap.to(a[t].progressCBarInner[n],a[t].duration/1e3,{transformOrigin:"right"===a[t].progressBar.horizontal?"100% 50%":"0% 50%",force3D:"auto",scaleX:1,onComplete:o,delay:.5,ease:a[t].progressBar.ease})),"module"===a[t].progressBar.basedon)for(var d=0;d-1?a[e].lastslidetoshow=a[e].stopAtSlide:a[e].lastslidetoshow=999,a[e].stopLoop=!1,0==a[e].looptogo&&(a[e].stopLoop=!0),a[e].c.on("stoptimer",function(){a[e].progressC!=i&&(a[e].progressC[0].tween.pause(),a[e].progressBar.disableProgressBar&&(a[e].progressC[0].style.visibility="hidden"),a[e].sliderstatus="paused",a[e].slideInSwapTimer||a.unToggleState(a[e].slidertoggledby),a[e].slideInSwapTimer=!1)}),a[e].c.on("starttimer",function(){a[e].progressC!=i&&(a[e].forcepaused||(1!=a[e].conthover&&1!=a[e].stopByVideo&&a[e].module.width>a[e].hideSliderAtLimit&&1!=a[e].tonpause&&1!=a[e].overnav&&1!=a[e].ssop&&(1===a[e].noloopanymore||a[e].viewPort.enable&&!a[e].inviewport||(a[e].progressBar.visibility[a[e].level]||(a[e].progressC[0].style.visibility="visible"),a[e].progressC[0].tween.resume(),a[e].sliderstatus="playing")),!a[e].progressBar.disableProgressBar&&a[e].progressBar.visibility[a[e].level]||(a[e].progressC[0].style.visibility="hidden"),a.toggleState(a[e].slidertoggledby)))}),a[e].c.on("restarttimer",function(){if(a[e].progressC!=i&&!a[e].forcepaused){if(a[e].mouseoncontainer&&"on"==a[e].navigation.onHoverStop&&!a.ISM)return!1;1===a[e].noloopanymore||a[e].viewPort.enable&&!a[e].inviewport||1==a[e].ssop?a.unToggleState(a[e].slidertoggledby):(a[e].progressBar.visibility[a[e].level]||(a[e].progressC[0].style.visibility="visible"),a[e].progressC[0].tween!==i&&a[e].progressC[0].tween.kill(),a[e].progressC[0].tween=M(e),a[e].progressC[0].tween.play(),a[e].sliderstatus="playing",a.toggleState(a[e].slidertoggledby)),!a[e].progressBar.disableProgressBar&&a[e].progressBar.visibility[a[e].level]||(a[e].progressC[0].style.visibility="hidden"),a[e].mouseoncontainer&&1==a[e].navigation.onHoverStop&&!a.ISM&&(a[e].c.trigger("stoptimer"),a[e].c.trigger("revolution.slide.onpause"))}}),a[e].c.on("nulltimer",function(){a[e].progressC!=i&&a[e].progressC[0]!==i&&(a[e].progressC[0].tween!==i&&a[e].progressC[0].tween.kill(),a[e].progressC[0].tween=M(e),a[e].progressC[0].tween.pause(0),!a[e].progressBar.disableProgressBar&&a[e].progressBar.visibility[a[e].level]||(a[e].progressC[0].style.visibility="hidden"),a[e].sliderstatus="paused")}),a[e].progressC!==i&&(a[e].progressC[0].tween=M(e)),a[e].slideamount>1&&(0!=a[e].stopAfterLoops||1!=a[e].stopAtSlide)?a[e].c.trigger("starttimer"):(a[e].noloopanymore=1,a[e].c.trigger("nulltimer")),a[e].c.on("tp-mouseenter",function(){a[e].mouseoncontainer=!0,1!=a[e].navigation.onHoverStop||a.ISM||(a[e].c.trigger("stoptimer"),a[e].c.trigger("revolution.slide.onpause"))}),a[e].c.on("tp-mouseleft",function(){a[e].mouseoncontainer=!1,1!=a[e].c.data("conthover")&&1==a[e].navigation.onHoverStop&&(1==a[e].viewPort.enable&&a[e].inviewport||0==a[e].viewPort.enable)&&(a[e].c.trigger("revolution.slide.onresume"),a[e].c.trigger("starttimer"))})},C=function(){e(".rev_redraw_on_blurfocus").each(function(){var e=this.id;if(a[e]==i||a[e].c==i||0===a[e].c.length)return!1;1!=a[e].windowfocused&&(a[e].windowfocused=!0,tpGS.gsap.delayedCall(.1,function(){a[e].fallbacks.nextSlideOnWindowFocus&&a[e].c.revnext(),a[e].c.revredraw(),"playing"==a[e].lastsliderstatus&&a[e].c.revresume(),a[e].c.trigger("revolution.slide.tabfocused")}))})},A=function(){document.hasFocus()||e(".rev_redraw_on_blurfocus").each(function(e){var i=this.id;a[i].windowfocused=!1,a[i].lastsliderstatus=a[i].sliderstatus,a[i].c.revpause(),a[i].c.trigger("revolution.slide.tabblured")})},D=function(){var e=document.documentMode===i,t=window.chrome;1!==a.revslider_focus_blur_listener&&(a.revslider_focus_blur_listener=1,e&&!t?a.window.on("focusin",function(){!0!==a.windowIsFocused&&C(),a.windowIsFocused=!0}).on("focusout",function(){!0!==a.windowIsFocused&&a.windowIsFocused!==i||A(),a.windowIsFocused=!1}):window.addEventListener?(window.addEventListener("focus",function(e){!0!==a.windowIsFocused&&C(),a.windowIsFocused=!0},{capture:!1,passive:!0}),window.addEventListener("blur",function(e){!0!==a.windowIsFocused&&a.windowIsFocused!==i||A(),a.windowIsFocused=!1},{capture:!1,passive:!0})):(window.attachEvent("focus",function(e){!0!==a.windowIsFocused&&C(),a.windowIsFocused=!0}),window.attachEvent("blur",function(e){!0!==a.windowIsFocused&&a.windowIsFocused!==i||A(),a.windowIsFocused=!1})))},P=function(e){for(var i,t=[],a=window.location.href.slice(window.location.href.indexOf(e)+1).split("_"),o=0;o1?e.carousel.maxOpacity/100:e.carousel.maxOpacity,e.carousel.showLayersAllTime="true"===e.carousel.showLayersAllTime||!0===e.carousel.showLayersAllTime?"all":e.carousel.showLayersAllTime,e.carousel.maxRotation=parseInt(e.carousel.maxRotation,0),e.carousel.minScale=parseInt(e.carousel.minScale,0),e.carousel.minScale=e.carousel.minScale>.9?e.carousel.minScale/100:e.carousel.minScale,e.carousel.speed=parseInt(e.carousel.speed,0),e.navigation.maintypes=["arrows","tabs","thumbnails","bullets"],e.perspective=parseInt(e.perspective,0),e.navigation.maintypes)e.navigation.maintypes.hasOwnProperty(t)&&e.navigation[e.navigation.maintypes[t]]!==i&&(e.navigation[e.navigation.maintypes[t]].animDelay=e.navigation[e.navigation.maintypes[t]].animDelay===i?1e3:e.navigation[e.navigation.maintypes[t]].animDelay,e.navigation[e.navigation.maintypes[t]].animSpeed=e.navigation[e.navigation.maintypes[t]].animSpeed===i?1e3:e.navigation[e.navigation.maintypes[t]].animSpeed,e.navigation[e.navigation.maintypes[t]].animDelay=parseInt(e.navigation[e.navigation.maintypes[t]].animDelay,0)/1e3,e.navigation[e.navigation.maintypes[t]].animSpeed=parseInt(e.navigation[e.navigation.maintypes[t]].animSpeed,0)/1e3);if(a.isNumeric(e.scrolleffect.tilt)||-1!==e.scrolleffect.tilt.indexOf("%")&&(e.scrolleffect.tilt=parseInt(e.scrolleffect.tilt)),e.scrolleffect.tilt=e.scrolleffect.tilt/100,e.navigation.thumbnails.position="outer-horizontal"==e.navigation.thumbnails.position?"bottom"==e.navigation.thumbnails.v_align?"outer-bottom":"outer-top":"outer-vertical"==e.navigation.thumbnails.position?"left"==e.navigation.thumbnails.h_align?"outer-left":"outer-right":e.navigation.thumbnails.position,e.navigation.tabs.position="outer-horizontal"==e.navigation.tabs.position?"bottom"==e.navigation.tabs.v_align?"outer-bottom":"outer-top":"outer-vertical"==e.navigation.tabs.position?"left"==e.navigation.tabs.h_align?"outer-left":"outer-right":e.navigation.tabs.position,e.sbtimeline.speed=parseInt(e.sbtimeline.speed,0)/1e3||.5,!0===e.sbtimeline.set&&!0===e.sbtimeline.fixed&&"auto"!==e.sliderLayout?(e.sbtimeline.fixStart=parseInt(e.sbtimeline.fixStart),e.sbtimeline.fixEnd=parseInt(e.sbtimeline.fixEnd)):e.sbtimeline.fixed=!1,e.progressBar===i||"true"!=e.progressBar.disableProgressBar&&1!=e.progressBar.disableProgressBar||(e.progressBar.disableProgressBar=!0),e.startDelay=parseInt(e.startDelay,0)||0,e.navigation!==i&&e.navigation.arrows!=i&&e.navigation.arrows.hide_under!=i&&(e.navigation.arrows.hide_under=parseInt(e.navigation.arrows.hide_under)),e.navigation!==i&&e.navigation.bullets!=i&&e.navigation.bullets.hide_under!=i&&(e.navigation.bullets.hide_under=parseInt(e.navigation.bullets.hide_under)),e.navigation!==i&&e.navigation.thumbnails!=i&&e.navigation.thumbnails.hide_under!=i&&(e.navigation.thumbnails.hide_under=parseInt(e.navigation.thumbnails.hide_under)),e.navigation!==i&&e.navigation.tabs!=i&&e.navigation.tabs.hide_under!=i&&(e.navigation.tabs.hide_under=parseInt(e.navigation.tabs.hide_under)),e.navigation!==i&&e.navigation.arrows!=i&&e.navigation.arrows.hide_over!=i&&(e.navigation.arrows.hide_over=parseInt(e.navigation.arrows.hide_over)),e.navigation!==i&&e.navigation.bullets!=i&&e.navigation.bullets.hide_over!=i&&(e.navigation.bullets.hide_over=parseInt(e.navigation.bullets.hide_over)),e.navigation!==i&&e.navigation.thumbnails!=i&&e.navigation.thumbnails.hide_over!=i&&(e.navigation.thumbnails.hide_over=parseInt(e.navigation.thumbnails.hide_over)),e.navigation!==i&&e.navigation.tabs!=i&&e.navigation.tabs.hide_over!=i&&(e.navigation.tabs.hide_over=parseInt(e.navigation.tabs.hide_over)),e.lazyloaddata!==i&&e.lazyloaddata.length>0&&e.lazyloaddata.indexOf("-")>0){var o=e.lazyloaddata.split("-");for(e.lazyloaddata=o[0],t=1;t200?e.modal.coverSpeed/1e3:e.modal.coverSpeed,e.modal.coverSpeed=Math.max(Math.min(3,e.modal.coverSpeed),.3),e.navigation.wheelViewPort=e.navigation.wheelViewPort===i?.5:e.navigation.wheelViewPort/100,e.navigation.wheelCallDelay=e.navigation.wheelCallDelay===i?1e3:parseInt(e.navigation.wheelCallDelay),e.autoDPR="string"==typeof e.DPR&&-1!==e.DPR.indexOf("ax"),e.DPR=e.DPR.replace("ax",""),e.DPR=parseInt(e.DPR.replace("x","")),e.DPR=isNaN(e.DPR)?window.devicePixelRatio:e.autoDPR?Math.min(window.devicePixelRatio,e.DPR):e.DPR,e.DPR=1!=e.onedpronmobile&&"true"!=e.onedpronmobile||!a.ISM?e.DPR:1,!1===e.viewPort.global?e.viewPort.enable=!1:!0===e.viewPort.global&&(e.viewPort.local=e.viewPort.enable,e.viewPort.enable=!0),e}(e.extend(!0,{DPR:"dpr",sliderType:"standard",sliderLayout:"auto",overlay:{type:"none",size:1,colora:"transparent",colorb:"#000000"},duration:9e3,imgCrossOrigin:"",modal:{useAsModal:!1,cover:!0,coverColor:"rgba(0,0,0,0.5)",horizontal:"center",vertical:"middle",coverSpeed:1},navigation:{keyboardNavigation:!1,keyboard_direction:"horizontal",mouseScrollNavigation:"off",wheelViewPort:50,wheelCallDelay:"1000ms",onHoverStop:!0,mouseScrollReverse:"default",target:"window",threshold:50,touch:{touchenabled:!1,touchOnDesktop:!1,swipe_treshold:75,swipe_min_touches:1,swipe_direction:"horizontal",drag_block_vertical:!1,mobileCarousel:!0,desktopCarousel:!0},arrows:{style:"",enable:!1,hide_onmobile:!1,hide_under:0,hide_onleave:!1,hide_delay:200,hide_delay_mobile:1200,hide_over:9999,tmp:"",rtl:!1,left:{h_align:"left",v_align:"center",h_offset:20,v_offset:0,container:"slider"},right:{h_align:"right",v_align:"center",h_offset:20,v_offset:0,container:"slider"}},bullets:{enable:!1,hide_onmobile:!1,hide_onleave:!1,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",h_align:"center",v_align:"bottom",space:5,h_offset:0,v_offset:20,tmp:'',container:"slider",rtl:!1,style:""},thumbnails:{container:"slider",rtl:!1,style:"",enable:!1,width:100,height:50,min_width:100,wrapper_padding:2,wrapper_color:"transparent",tmp:'',visibleAmount:5,hide_onmobile:!1,hide_onleave:!1,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",span:!1,position:"inner",space:2,h_align:"center",v_align:"bottom",h_offset:0,v_offset:20,mhoff:0,mvoff:0},tabs:{container:"slider",rtl:!1,style:"",enable:!1,width:100,min_width:100,height:50,wrapper_padding:10,wrapper_color:"transparent",tmp:'',visibleAmount:5,hide_onmobile:!1,hide_onleave:!1,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",span:!1,space:0,position:"inner",h_align:"center",v_align:"bottom",h_offset:0,v_offset:20,mhoff:0,mvoff:0}},responsiveLevels:4064,visibilityLevels:[2048,1024,778,480],gridwidth:960,gridheight:500,minHeight:0,maxHeight:0,keepBPHeight:!1,useFullScreenHeight:!0,overflowHidden:!1,forceOverflow:!1,fixedOnTop:!1,autoHeight:!1,gridEQModule:!1,disableForceFullWidth:!1,fullScreenOffsetContainer:"",fullScreenOffset:"0",hideLayerAtLimit:0,hideAllLayerAtLimit:0,hideSliderAtLimit:0,progressBar:{disableProgressBar:!1,style:"horizontal",size:"5px",radius:10,vertical:"bottom",horizontal:"left",x:0,y:0,color:"rgba(255,255,255,0.5)",bgcolor:"transparent",basedon:"slide",gapsize:0,reset:"reset",gaptype:"gapboth",gapcolor:"rgba(255,255,255,0.5)",ease:"none",visibility:{0:!0,1:!0,2:!0,3:!0}},stopAtSlide:-1,stopAfterLoops:0,shadow:0,startDelay:0,lazyType:"none",lazyOnBg:!1,spinner:"off",shuffle:!1,perspective:"600px",perspectiveType:"local",viewPort:{enable:!1,global:!1,globalDist:"-400px",outof:"wait",visible_area:"200px",presize:!1},fallbacks:{isJoomla:!1,panZoomDisableOnMobile:!1,simplifyAll:!0,nextSlideOnWindowFocus:!1,disableFocusListener:!1,allowHTML5AutoPlayOnAndroid:!0},fanim:!1,parallax:{type:"off",levels:[10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85],origo:"enterpoint",disable_onmobile:!1,ddd_shadow:!1,ddd_bgfreeze:!1,ddd_overflow:"visible",ddd_layer_overflow:"visible",ddd_z_correction:65,speed:400,speedbg:0,speedls:0},scrolleffect:{set:!1,fade:!1,blur:!1,scale:!1,grayscale:!1,maxblur:10,layers:!1,slide:!1,direction:"both",multiplicator:1.35,multiplicator_layers:.5,tilt:30,disable_onmobile:!1},sbtimeline:{set:!1,fixed:!1,fixStart:0,fixEnd:0,layers:!1,slide:!1,ease:"none",speed:500},carousel:{easing:"power3.inOut",speed:800,showLayersAllTime:!1,horizontal_align:"center",vertical_align:"center",infinity:!1,space:0,maxVisibleItems:3,stretch:!1,fadeout:!0,maxRotation:0,maxOpacity:100,minScale:0,offsetScale:!1,vary_fade:!1,vary_rotation:!1,vary_scale:!1,border_radius:"0px",padding_top:0,padding_bottom:0},observeWrap:!1,extensions:"extensions/",extensions_suffix:".min.js",stopLoop:!1,waitForInit:!1,ignoreHeightChange:!0,onedpronmobile:!1},t))};window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.waiting=window.RS_MODULES.waiting||[];var H=["DOM","main","parallax","video","slideanims","actions","layeranimation","navigation","carousel","panzoom"];for(var E in H)-1==window.RS_MODULES.waiting.indexOf(H[E])&&window.RS_MODULES.waiting.push(H[E]);function F(e){window.elementorFrontend!==i&&elementorFrontend.hooks!==i&&elementorFrontend.hooks.removeAction("frontend/element_ready/global",F),window.RS_MODULES.elementor={loaded:!0,version:"6.5.0"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}function N(){if(window.elementorFrontend===i||window.elementorFrontend.hooks===i||window.elementorFrontend.hooks.addAction===i)return window.RS_MODULES.elementorCounter++,window.RS_MODULES.elementorCounterCheck&&window.RS_MODULES.elementorCounter>20?void F():void requestAnimationFrame(N);window.elementorFrontend.config.environmentMode.edit?elementorFrontend.hooks.addAction("frontend/element_ready/widget",F):F()}function j(){1!=RS_MODULES.checkElementorCalled&&(RS_MODULES.checkElementorCalled=!0,document.body&&(document.body.className.indexOf("elementor-page")>=0||document.body.className.indexOf("elementor-default")>=0)&&(window.RS_MODULES.waiting=window.RS_MODULES.waiting===i?[]:window.RS_MODULES.waiting,-1==window.RS_MODULES.waiting.indexOf("elementor")&&window.RS_MODULES.waiting.push("elementor"),document.body&&-1==document.body.className.indexOf("elementor-editor-active")&&(window.RS_MODULES.elementorCounterCheck=!0),window.RS_MODULES.elementorCounter=0,N()))}window.RS_MODULES.main={loaded:!0,version:t},window.RS_MODULES.minimal=!1,window.RS_MODULES.callSliders=function(){for(var e in RS_MODULES.modules)!0!==RS_MODULES.modules[e].once&&window.RS_MODULES!==i&&window.RS_MODULES.minimal&&(RS_MODULES.modules[e].once=!0,RS_MODULES.modules[e].init())},"loading"===document.readyState?document.addEventListener("readystatechange",function(){"interactive"!==document.readyState&&"complete"!==document.readyState||(j(),window.RS_MODULES.DOM={loaded:!0},window.RS_MODULES.checkMinimal())}):"complete"!==document.readyState&&"interactive"!==document.readyState||(j(),window.RS_MODULES.DOM={loaded:!0}),window.RS_MODULES.checkMinimal=function(){if(0==window.RS_MODULES.minimal){var t=1==window.RS_MODULES.minimal||window.RS_MODULES.waiting!==i&&e.fn.revolution!==i&&window.tpGS!==i&&window.tpGS.gsap!==i;if(t)for(var a in window.RS_MODULES.waiting)window.RS_MODULES.waiting.hasOwnProperty(a)&&t&&window.RS_MODULES[window.RS_MODULES.waiting[a]]===i&&(t=!1);t&&(!0!==window.RS_MODULES.minimal&&e(document).trigger("REVSLIDER_READY_TO_USE"),window.RS_MODULES.minimal=!0)}else window.RS_MODULES.minimal=!0;!0===window.RS_MODULES.minimal&&window.RS_MODULES.callSliders()},window.RS_MODULES.checkMinimal()}(jQuery),function($,undefined){"use strict";var version="6.2.14";jQuery.fn.revolution=jQuery.fn.revolution||{};var _R=jQuery.fn.revolution;jQuery.extend(!0,_R,{checkActions:function(e,i){e===undefined?moduleEnterLeaveActions(i):checkActions_intern(e,i)},delayer:function(e,i,t){_R[e].timeStamps=_R[e].timeStamps===undefined?{}:_R[e].timeStamps;var a=(new Date).getTime(),o=_R[e].timeStamps[t]===undefined?parseInt(i)+100:a-_R[e].timeStamps[t],r=parseInt(o)>i;return r&&(_R[e].timeStamps[t]=a),r},getURLDetails:function(e){(e=e===undefined?{}:e).url=e.url===undefined?window.location.href:e.url,e.url=e.url.replace("www",""),e.protocol=0===e.url.indexOf("http://")?"http://":0===e.url.indexOf("https://")?"https://":0===e.url.indexOf("//")?"//":"relative";var i=e.url.replace("https://","");i=i.replace("http://",""),"relative"===e.protocol&&(i=i.replace("//","")),i=i.split("#"),e.anchor=(e.anchor===undefined||""==e.anchor||0==e.anchor.length)&&i.length>1?i[1]:e.anchor===undefined?"":e.anchor.replace("#",""),e.anchor=e.anchor.split("?"),e.queries=i[0].split("?"),e.queries=e.queries.length>1?e.queries[1]:"",e.queries=e.queries.length>1?e.queries[1]:e.anchor.length>1?e.anchor[1]:e.queries,e.anchor=e.anchor[0];(i=i[0]).split("/");var t=i.split("/");return e.host=t[0],t.splice(0,1),e.path="/"+t.join("/"),"/"==e.path[e.path.length-1]&&(e.path=e.path.slice(0,-1)),e.origin="relative"!==e.protocol?e.protocol+e.host:window.location.origin.replace("www","")+window.location.pathname,e.hash=(""!==e.queries&&e.queries!==undefined?"?"+e.queries:"")+(""!==e.anchor&&e.anchor!==undefined?"#"+e.anchor:""),e},scrollToId:function(e){if(_R.scrollToObj=e,!window.isSafari11){var i=tpGS.gsap.getProperty("html","scrollBehavior"),t=tpGS.gsap.getProperty("body","scrollBehavior");tpGS.gsap.set("html,body",{scrollBehavior:"auto"}),e.scrollBehaviorHtml=i,e.scrollBehaviorBody=t}_R.calcScrollToId()},calcScrollToId:function(){if(_R.scrollToObj){var e=_R.scrollToObj,i=e.tween&&e.tween.progress?e.tween.progress():0;e.tween&&e.tween.kill&&e.tween.kill(),e.startScrollPos!==undefined&&null!==e.startScrollPos||(e.startScrollPos=_R[e.id].modal.useAsModal?_R[e.id].cpar.scrollTop():_R.document.scrollTop());var t="scrollbelow"===e.action?(getOffContH(_R[e.id].fullScreenOffsetContainer)||0)-(parseInt(e.offset,0)||0)||0:0-(parseInt(e.offset,0)||0),a="scrollbelow"===e.action?_R[e.id].c:jQuery("#"+e.anchor),o=a.length>0?a.offset().top:0,r={_y:_R[e.id].modal.useAsModal?_R[e.id].cpar[0].scrollTop:window.pageYOffset!==document.documentElement.scrollTop?0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop:window.pageYOffset};o+="scrollbelow"===e.action?_R[e.id].sbtimeline.fixed?_R[e.id].cpar.parent().height()+_R[e.id].fullScreenOffsetResult:jQuery(_R[e.id].slides[0]).height():0,e.tween=tpGS.gsap.fromTo(r,e.speed/1e3,{_y:e.startScrollPos},{_y:o-t,ease:e.ease,onUpdate:function(){_R[e.id].modal.useAsModal?_R[e.id].cpar.scrollTop(r._y):_R.document.scrollTop(r._y)},onComplete:function(){e.hash!==undefined&&history.pushState(null,null,e.hash),window.isSafari11||(tpGS.gsap.set("html",{scrollBehavior:e.scrollBehaviorHtml}),tpGS.gsap.set("body",{scrollBehavior:e.scrollBehaviorBody})),_R.scrollToObj&&(_R.scrollToObj.tween&&(_R.scrollToObj.tween.kill(),_R.scrollToObj.tween=null),_R.scrollToObj.startScrollPos=null,_R.scrollToObj=null)}}),e.tween.progress(i)}}});var moduleEnterLeaveActions=function(e){!_R[e].moduleActionsPrepared&&_R[e].c[0].getElementsByClassName("rs-on-sh").length>0&&(_R[e].c.on("tp-mouseenter",function(){_R[e].mouseoncontainer=!0;var i,t=_R[e].pr_next_key!==undefined?_R[e].pr_next_key:_R[e].pr_processing_key!==undefined?_R[e].pr_processing_key:_R[e].pr_active_key!==undefined?_R[e].pr_active_key:_R[e].pr_next_key;if("none"!==t&&t!==undefined){if((t=_R.gA(_R[e].slides[t],"key"))!==undefined&&_R[e].layers[t])for(i in _R[e].layers[t])_R[e].layers[t][i].className.indexOf("rs-on-sh")>=0&&_R.renderLayerAnimation({layer:jQuery(_R[e].layers[t][i]),frame:"frame_1",mode:"trigger",id:e});for(i in _R[e].layers.static)_R[e].layers.static[i].className.indexOf("rs-on-sh")>=0&&_R.renderLayerAnimation({layer:jQuery(_R[e].layers.static[i]),frame:"frame_1",mode:"trigger",id:e})}}),_R[e].c.on("tp-mouseleft",function(){_R[e].mouseoncontainer=!0;var i,t=_R[e].pr_next_key!==undefined?_R[e].pr_next_key:_R[e].pr_processing_key!==undefined?_R[e].pr_processing_key:_R[e].pr_active_key!==undefined?_R[e].pr_active_key:_R[e].pr_next_key;if("none"!==t&&t!==undefined){if((t=_R.gA(_R[e].slides[t],"key"))!==undefined&&_R[e].layers[t])for(i in _R[e].layers[t])_R[e].layers[t][i].className.indexOf("rs-on-sh")>=0&&_R.renderLayerAnimation({layer:jQuery(_R[e].layers[t][i]),frame:"frame_999",mode:"trigger",id:e});for(i in _R[e].layers.static)_R[e].layers.static[i].className.indexOf("rs-on-sh")>=0&&_R.renderLayerAnimation({layer:jQuery(_R[e].layers.static[i]),frame:"frame_999",mode:"trigger",id:e})}})),_R[e].moduleActionsPrepared=!0},checkActions_intern=function(layer,id){var actions=_R.gA(layer[0],"actions");if("RS-COLUMN"==layer[0].tagName){var wrap=_R.closestNode(layer[0],"RS-COLUMN-WRAP");null!==wrap&&wrap!==undefined&&(_R.sA(wrap,"action",actions),layer=jQuery(wrap))}var _L=layer.data();for(var ei in actions=actions.split("||"),layer.addClass("rs-waction"),_L.events=_L.events===undefined?[]:_L.events,_R[id].lastMouseDown={},actions)if(actions.hasOwnProperty(ei)){var event=getEventParams(actions[ei].split(";"));_L.events.push(event),"click"===event.on&&layer[0].classList.add("rs-wclickaction"),_R[id].fullscreen_esclistener||"exitfullscreen"!=event.action&&"togglefullscreen"!=event.action||(_R.document.keyup(function(e){27==e.keyCode&&jQuery("#rs-go-fullscreen").length>0&&layer.trigger(event.on)}),_R[id].fullscreen_esclistener=!0);var targetlayer="backgroundvideo"==event.layer?jQuery("rs-bgvideo"):"firstvideo"==event.layer?jQuery("rs-slide").find(".rs-layer-video"):jQuery("#"+event.layer);switch(-1!=jQuery.inArray(event.action,["toggleslider","toggle_mute_video","toggle_global_mute_video","togglefullscreen"])&&(_L._togglelisteners=!0),event.action){case"togglevideo":jQuery.each(targetlayer,function(){updateToggleByList(jQuery(this),"videotoggledby",layer[0].id)});break;case"togglelayer":jQuery.each(targetlayer,function(){updateToggleByList(jQuery(this),"layertoggledby",layer[0].id),jQuery(this).data("triggered_startstatus",event.togglestate)});break;case"toggle_global_mute_video":case"toggle_mute_video":jQuery.each(targetlayer,function(){updateToggleByList(jQuery(this),"videomutetoggledby",layer[0].id)});break;case"toggleslider":_R[id].slidertoggledby==undefined&&(_R[id].slidertoggledby=[]),_R[id].slidertoggledby.push(layer[0].id);break;case"togglefullscreen":_R[id].fullscreentoggledby==undefined&&(_R[id].fullscreentoggledby=[]),_R[id].fullscreentoggledby.push(layer[0].id)}}_R[id].actionsPrepared=!0,layer.on("mousedown",function(e){e.touches&&(e=e.touches[0]),_R[id].lastMouseDown.pageX=e.pageX,_R[id].lastMouseDown.pageY=e.pageY}),layer.on("click mouseenter mouseleave",function(e){if("click"===e.type){var evt=e.touches?e.touches[0]:e;if(Math.abs(evt.pageX-_R[id].lastMouseDown.pageX)>5||Math.abs(evt.pageY-_R[id].lastMouseDown.pageY)>5)return}for(var i in _L.events)if(_L.events.hasOwnProperty(i)&&_L.events[i].on===e.type){var event=_L.events[i];if(!(event.repeat!==undefined&&event.repeat>0)||_R.delayer(id,1e3*event.repeat,_L.c[0].id+"_"+event.action)){if("click"===event.on&&layer.hasClass("tp-temporarydisabled"))return!1;var targetlayer="backgroundvideo"==event.layer?jQuery(_R[id].slides[_R[id].pr_active_key]).find("rs-sbg-wrap rs-bgvideo"):"firstvideo"==event.layer?jQuery(_R[id].slides[_R[id].pr_active_key]).find(".rs-layer-video").first():jQuery("#"+event.layer),tex=targetlayer.length>0;switch(event.action){case"menulink":var linkto=_R.getURLDetails({url:event.url,anchor:event.anchor}),linkfrom=_R.getURLDetails();linkto.host==linkfrom.host&&linkto.path==linkfrom.path&&"_self"===event.target?_R.scrollToId({id:id,offset:event.offset,action:event.action,anchor:event.anchor,hash:linkto.hash,speed:event.speed,ease:event.ease}):"_self"===event.target?window.location=linkto.url+(linkto.anchor!==undefined&&""!==linkto.anchor?"#"+linkto.anchor:""):window.open(linkto.url+(linkto.anchor!==undefined&&""!==linkto.anchor?"#"+linkto.anchor:"")),e.preventDefault();break;case"nextframe":case"prevframe":case"gotoframe":case"togglelayer":case"toggleframes":case"startlayer":case"stoplayer":if(targetlayer[0]===undefined)continue;var _=_R[id]._L[targetlayer[0].id],frame=event.frame,tou="triggerdelay";if("click"===e.type&&_.clicked_time_stamp!==undefined&&(new Date).getTime()-_.clicked_time_stamp<300)return;if("mouseenter"===e.type&&_.mouseentered_time_stamp!==undefined&&(new Date).getTime()-_.mouseentered_time_stamp<300)return;if(clearTimeout(_.triggerdelayIn),clearTimeout(_.triggerdelayOut),clearTimeout(_.triggerdelay),"click"===e.type&&(_.clicked_time_stamp=(new Date).getTime()),"mouseenter"===e.type&&(_.mouseentered_time_stamp=(new Date).getTime()),"mouseleave"===e.type&&(_.mouseentered_time_stamp=undefined),"nextframe"===event.action||"prevframe"===event.action){_.forda=_.forda===undefined?getFordWithAction(_):_.forda;var inx=jQuery.inArray(_.currentframe,_.ford);for("nextframe"===event.action&&inx++,"prevframe"===event.action&&inx--;"skip"!==_.forda[inx]&&inx>0&&inx<_.forda.length-1;)"nextframe"===event.action&&inx++,"prevframe"===event.action&&inx--,inx=Math.min(Math.max(0,inx),_.forda.length-1);frame=_.ford[inx]}jQuery.inArray(event.action,["toggleframes","togglelayer","startlayer","stoplayer"])>=0&&(_.triggeredstate="startlayer"===event.action||"togglelayer"===event.action&&"frame_1"!==_.currentframe||"toggleframes"===event.action&&_.currentframe!==event.frameN,"togglelayer"===event.action&&!0===_.triggeredstate&&_.currentframe!==undefined&&"frame_999"!==_.currentframe&&(_.triggeredstate=!1),frame=_.triggeredstate?"toggleframes"===event.action?event.frameN:"frame_1":"toggleframes"===event.action?event.frameM:"frame_999",tou=_.triggeredstate?"triggerdelayIn":"triggerdelayOut",_.triggeredstate?_R.toggleState(_.layertoggledby):(_R.stopVideo&&_R.stopVideo(targetlayer,id),_R.unToggleState(_.layertoggledby)));var pars={layer:targetlayer,frame:frame,mode:"trigger",id:id};!0===event.children&&(pars.updateChildren=!0,pars.fastforward=!0),_R.renderLayerAnimation&&(clearTimeout(_[tou]),_[tou]=setTimeout(function(e){_R.renderLayerAnimation(e)},1e3*event.delay,pars));break;case"playvideo":tex&&_R.playVideo(targetlayer,id);break;case"stopvideo":tex&&_R.stopVideo&&_R.stopVideo(targetlayer,id);break;case"togglevideo":tex&&(_R.isVideoPlaying(targetlayer,id)?_R.stopVideo&&_R.stopVideo(targetlayer,id):_R.playVideo(targetlayer,id));break;case"mutevideo":tex&&_R.Mute(targetlayer,id,!0);break;case"unmutevideo":tex&&_R.Mute&&_R.Mute(targetlayer,id,!1);break;case"toggle_mute_video":tex&&(_R.Mute(targetlayer,id)?_R.Mute(targetlayer,id,!1):_R.Mute&&_R.Mute(targetlayer,id,!0));break;case"toggle_global_mute_video":var pvl=_R[id].playingvideos!=undefined&&_R[id].playingvideos.length>0;pvl&&(_R[id].globalmute?jQuery.each(_R[id].playingvideos,function(e,i){_R.Mute&&_R.Mute(i,id,!1)}):jQuery.each(_R[id].playingvideos,function(e,i){_R.Mute&&_R.Mute(i,id,!0)})),_R[id].globalmute=!_R[id].globalmute;break;default:tpGS.gsap.delayedCall(event.delay,function(targetlayer,id,event,layer){switch(event.action){case"openmodal":_R.openModalAPI(event.modal,event.modalslide===undefined?0:event.modalslide,_R[id].ajaxUrl,!0,id,event);break;case"closemodal":_R.revModal(id,{mode:"close"});break;case"callback":eval(event.callback);break;case"simplelink":window.open(event.url,event.target);break;case"simulateclick":targetlayer.length>0&&targetlayer.trigger("click");break;case"toggleclass":targetlayer.length>0&&targetlayer.toggleClass(event.classname);break;case"scrollbelow":case"scrollto":"scrollbelow"===event.action&&layer.addClass("tp-scrollbelowslider"),_R.scrollToId({id:id,offset:event.offset,action:event.action,anchor:event.id,speed:event.speed,ease:event.ease});break;case"jumptoslide":switch(_R[id].skipAttachDetach=!0,event.slide.toLowerCase()){case"rs-random":var ts=Math.min(Math.max(0,Math.ceil(Math.random()*_R[id].realslideamount)-1));ts=_R[id].activeRSSlide==ts?ts>0?ts-1:ts+1:ts,_R.callingNewSlide(id,_R[id].slides[ts].dataset.key,"carousel"===_R[id].sliderType);break;case"+1":case"next":case"rs-next":_R[id].sc_indicator="arrow",_R[id].sc_indicator_dir=0,_R.callingNewSlide(id,1,"carousel"===_R[id].sliderType);break;case"rs-previous":case"rs-prev":case"previous":case"prev":case"-1":_R[id].sc_indicator="arrow",_R[id].sc_indicator_dir=1,_R.callingNewSlide(id,-1,"carousel"===_R[id].sliderType);break;case"first":case"rs-first":_R[id].sc_indicator="arrow",_R[id].sc_indicator_dir=1,_R.callingNewSlide(id,0,"carousel"===_R[id].sliderType);break;case"last":case"rs-last":_R[id].sc_indicator="arrow",_R[id].sc_indicator_dir=0,_R.callingNewSlide(id,_R[id].slideamount-1,"carousel"===_R[id].sliderType);break;default:var ts=_R.isNumeric(event.slide)?parseInt(event.slide,0):event.slide;_R.callingNewSlide(id,ts,"carousel"===_R[id].sliderType)}break;case"toggleslider":_R[id].noloopanymore=0,"playing"==_R[id].sliderstatus?(_R[id].c.revpause(),_R[id].forcepaused=!0,_R.unToggleState(_R[id].slidertoggledby)):(_R[id].forcepaused=!1,_R[id].c.revresume(),_R.toggleState(_R[id].slidertoggledby));break;case"pauseslider":_R[id].c.revpause(),_R.unToggleState(_R[id].slidertoggledby);break;case"playslider":_R[id].noloopanymore=0,_R[id].c.revresume(),_R.toggleState(_R[id].slidertoggledby);break;case"gofullscreen":case"exitfullscreen":case"togglefullscreen":var gf;tpGS.gsap.set(_R[id].parallax.bgcontainers,{y:0}),jQuery(".rs-go-fullscreen").length>0&&("togglefullscreen"==event.action||"exitfullscreen"==event.action)?(jQuery(".rs-go-fullscreen").removeClass("rs-go-fullscreen"),gf=_R[id].c.closest("rs-fullwidth-wrap").length>0?_R[id].c.closest("rs-fullwidth-wrap"):_R[id].c.closest("rs-module-wrap"),_R[id].minHeight=_R[id].oldminheight,_R[id].infullscreenmode=!1,_R[id].c.revredraw(),_R[id].c.revredraw(),jQuery(window).trigger("resize"),_R.unToggleState(_R[id].fullscreentoggledby)):0!=jQuery(".rs-go-fullscreen").length||"togglefullscreen"!=event.action&&"gofullscreen"!=event.action||(gf=_R[id].c.closest("rs-fullwidth-wrap").length>0?_R[id].c.closest("rs-fullwidth-wrap"):_R[id].c.closest("rs-module-wrap"),gf.addClass("rs-go-fullscreen"),_R[id].oldminheight=_R[id].minHeight,_R[id].minHeight=_R.getWinH(id),_R[id].infullscreenmode=!0,jQuery(window).trigger("resize"),_R.toggleState(_R[id].fullscreentoggledby),_R[id].c.revredraw());break;default:_R[id].c.trigger("layeraction",[event.action,layer,event])}},[targetlayer,id,event,layer])}}}})};function getFordWithAction(e){var i=[];for(var t in e.ford)e.frames[e.ford[t]].timeline.waitoncall?i.push(e.ford[t]):i.push("skip");return i}function updateToggleByList(e,i,t){var a=e.data(i);a===undefined&&(a=[]),a.push(t),e.data(i,a)}function getEventParams(e){var i={on:"click",delay:0,ease:"power2.out",speed:400};for(var t in e)if(e.hasOwnProperty(t)){var a=e[t].split(":");switch(a.length>2&&"call"===a[0]&&(a[1]=a.join(":").replace(a[0]+":","")),a[0]){case"modal":i.modal=a[1];break;case"ms":i.modalslide=a[1];break;case"m":i.frameM=a[1];break;case"n":i.frameN=a[1];break;case"o":i.on="click"===a[1]||"c"===a[1]?"click":"ml"===a[1]||"mouseleave"===a[1]?"mouseleave":"mouseenter"===a[1]||"me"===a[1]?"mouseenter":a[1];break;case"d":i.delay=parseInt(a[1],0)/1e3,i.delay="NaN"===i.delay||isNaN(i.delay)?0:i.delay;break;case"rd":i.repeat=parseInt(a[1],0)/1e3,i.repeat="NaN"===i.repeat||isNaN(i.repeat)?0:i.repeat;break;case"a":i.action=a[1];break;case"f":i.frame=a[1];break;case"slide":i.slide=a[1];break;case"layer":i.layer=a[1];break;case"sp":i.speed=parseInt(a[1],0);break;case"e":i.ease=a[1];break;case"ls":i.togglestate=a[1];break;case"offset":i.offset=a[1];break;case"call":i.callback=a[1];break;case"url":i.url="";for(var o=1;o0&&""!==a[0]&&(i[a[0]]=a[1])}}return i}var getOffContH=function(e){if(e==undefined)return 0;if(e.split(",").length>1){var i=e.split(","),t=0;return i&&jQuery.each(i,function(e,i){jQuery(i).length>0&&(t+=jQuery(i).outerHeight(!0))}),t}return jQuery(e).height()};window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.actions={loaded:!0,version:version},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(jQuery),function(e){"use strict";jQuery.fn.revolution=jQuery.fn.revolution||{};var i=jQuery.fn.revolution;jQuery.extend(!0,i,{prepareCarousel:function(e,t,a){if(void 0!==e){var r=i[e].carousel;r.slidepositions=void 0===r.slidepositions?[]:r.slidepositions,r.slideFakePositions=void 0===r.slideFakePositions?[]:r.slideFakePositions,r.slidesWithRowAdjustions={},t=r.lastdirection=o(t,r.lastdirection),i.setCarouselDefaults(e),void 0===r.slidepositions[0]&&(r.slideAnims=[],i.organiseCarousel(e,"right",!0,!1,!1),r.focused=0,r.keepFocusedFirst=!0),r.slide_offset=void 0!==r.slide_offset&&i.isNumeric(r.slide_offset)?r.slide_offset:0,r.swipeTo=r.slide_offset+s(e),r.swipeToDistance=Math.abs(r.slide_offset)+Math.abs(s(e)),void 0!==r.swipeTo&&i.isNumeric(r.swipeTo)?void 0!==a?i.swipeAnimate({id:e,to:r.swipeTo,distance:r.swipeToDistance,direction:t,fix:!0,speed:a}):i.swipeAnimate({id:e,to:r.swipeTo,distance:r.swipeToDistance,direction:t,fix:!0}):i.swipeAnimate({id:e,to:0,direction:t,speed:0})}},carouselToEvalPosition:function(e,a,r){var s=i[e].carousel;if(s.justify)s.focused=void 0===s.focused?0:s.focused,s.slidepositions[s.focused]=void 0===s.slidepositions[s.focused]?0:s.slidepositions[s.focused],s.slide_offset_target=t(e,s.focused);else{a=s.lastdirection=o(a,s.lastdirection);var n="center"===s.horizontal_align?(s.wrapwidth/2-s.slide_width/2-s.slide_offset)/s.slide_width:(0-s.slide_offset)/s.slide_width,d=n%i[e].slideamount,l=d-Math.floor(d),c=-1*(Math.ceil(d)-d),p=-1*(Math.floor(d)-d),g=l*s.slide_width,u=g>=20&&"left"===a?1:g>=s.slide_width-20&&"right"===a?2:g<20&&"left"===a?3:gi[e].slideamount-1?n-(i[e].slideamount-1):h)*s.slide_width}return s.slide_offset_target!==s.slide_offset_targetCACHE&&!0!==r&&(0!==Math.abs(s.slide_offset_target)?i.animateCarousel(e,a,!0):i.organiseCarousel(e,a),s.slide_offset_targetCACHE=s.slide_offset_target),s.slide_offset_target},loadVisibleCarouselItems:function(e,t){var a=[];i[e].carousel.focused=parseInt(i[e].carousel.focused,0),i[e].carousel.focused=i.isNumeric(i[e].carousel.focused)?i[e].carousel.focused:0;for(var o=0;o=i[e].slideamount?r-i[e].slideamount+0:r,s=s>=i[e].slideamount?s-i[e].slideamount+0:s,r=r<0?i[e].slideamount+r:r,s=s<0?i[e].slideamount+s:s,a.push(i[e].slides[r]),r!==s&&a.push(i[e].slides[s])}return t&&(i.loadImages(a,e,1),i.waitForCurrentImages(a,e)),a},organiseCarousel:function(e,t,a,o,r){Math.round(1e5*Math.random());var s=i[e].carousel,n="center"===s.horizontal_align?2:1,d=Math.ceil(s.maxVisibleItems/n),l="center"===s.horizontal_align?s.wrapwidth/2+s.maxwidth/2:s.maxwidth-s.slide_width,c="center"===s.horizontal_align?s.wrapwidth/2-s.maxwidth/2:0-s.slide_width,p=0,g=0,u=0;if(s.ocfirsttun=!0,t=s.slide_offset=s.maxwidth&&("left"===t&&(l=2*s.windhalf,c=0-(s.slide_width-(h-s.maxwidth))),"right"===t&&(l=2*s.windhalf-(h-s.maxwidth),c=0-s.slide_width))}for(var m=2*s.windhalf,v=0,f=-1,w=0;w0?s.slide_widths[w-1]+s.space:s.slide_offset,s.wrapwidth>=s.maxwidth&&"center"!==s.horizontal_align&&(s.slideFakePositions[w]=p-s.slide_offset),c=0-s.slide_widths[w],l=s.maxwidth-s.slide_widths[w],s.inneroffset=0):(p=w*s.slide_width+s.slide_offset,s.wrapwidth>=s.maxwidth&&"left"===s.horizontal_align&&(s.slideFakePositions[w]=w*s.slide_width),s.wrapwidth>=s.maxwidth&&"right"===s.horizontal_align&&(s.slideFakePositions[w]=s.wrapwidth-(w+1)*s.slide_width)),u=g=p,s.infinity&&(g=g>=l-s.inneroffset?g-s.maxwidth:g<=c-s.inneroffset?g+s.maxwidth:g),m>g&&(m=g,w),vs.maxwidth+l?g-s.maxwidth:u0&&v>s.wrapwidth&&(s.slidepositions[f]-=s.maxwidth);var y=999,b=0,_=(i[e].module.width,!1),S="right"===s.horizontal_align?0:s.wrapwidth;if(i[e].slides)for(w=0;w=s.maxwidth&&"center"!==s.horizontal_align||("center"===s.horizontal_align&&s.slidepositions[w]s.windhalf?s.focused=w:"left"===s.horizontal_align&&s.slidepositions[w]>=-25&&s.slidepositions[w]s.windhalf||s.slidepositions[w]>s.wrapwidth-s.slide_widths[w])&&(!_||s.slidepositions[w]>S)&&(s.focused=w,_=!0,S=s.slidepositions[w]),s.focused=s.focused>=s.len?s.infinity?0:s.len-1:s.focused<0?s.infinity?s.len-1:0:s.focused);else{k="center"===s.horizontal_align?(Math.abs(s.wrapwidth/2)-(x.left+s.slide_width/2))/s.slide_width:(s.inneroffset-x.left)/s.slide_width,(Math.abs(k)0&&(s.vary_scale?x.scale=1-Math.abs((1-s.minScale)/d*k):x.scale=k>=1||k<=-1?s.minScale:s.minScale+(1-s.minScale)*(1-Math.abs(k)),b=k*(x.width-x.width*x.scale)/2),s.fadeout&&(s.vary_fade?x.opacity=1-Math.abs(s.maxOpacity/d*k):x.opacity=k>=1||k<=-1?s.maxOpacity:s.maxOpacity+(1-s.maxOpacity)*(1-Math.abs(k)));var L=Math.ceil(s.maxVisibleItems/n)-Math.abs(k);x.opacity=void 0===x.opacity?1:x.opacity,x.opacity=Math.max(0,Math.min(L,x.opacity)),x.opacity>0&&(x.visibility="visible"),void 0===s.maxRotation||0==Math.abs(s.maxRotation)||i.isiPhone||(s.vary_rotation?(x.rotationY=Math.abs(s.maxRotation)-Math.abs((1-Math.abs(1/d*k))*s.maxRotation),x.opacity=Math.abs(x.rotationY)>90?0:x.opacity):x.rotationY=k>=1||k<=-1?s.maxRotation:Math.abs(k)*s.maxRotation,x.rotationY=k<0?-1*x.rotationY:x.rotationY,i.isSafari11()&&(x.z=0!==k?0-Math.abs(x.rotationY):0)),x.x=Math.floor(-1*s.space*k*(s.offsetScale?x.scale:1)),void 0!==x.scale&&(x.x=x.x+b)}x.x+=s.wrapwidth>=s.maxwidth&&("left"===s.horizontal_align||"right"===s.horizontal_align)?s.slideFakePositions[w]:Math.floor(x.left),delete x.left,x.zIndex=s.justify?95:Math.round(100-Math.abs(5*k)),!0!==r&&(void 0!==s.slideAnims[w]&&(x.width===s.slideAnims[w].width&&delete x.width,x.x===s.slideAnims[w].x&&delete x.x,x.opacity===s.slideAnims[w].opacity&&delete x.opacity,x.scale===s.slideAnims[w].scale&&delete x.scale,x.zIndex===s.slideAnims[w].zIndex&&delete x.zIndex,x.rotationY===s.slideAnims[w].rotationY&&delete x.rotationY),tpGS.gsap.set(i[e].slides[w],x),s.slideAnims[w]=jQuery.extend(!0,s.slideAnims[w],x))}if(i.loadVisibleCarouselItems(e,!0),o&&!0!==r){if(s.focused=void 0===s.focused?0:s.focused,s.oldfocused=void 0===s.oldfocused?0:s.oldfocused,i[e].pr_next_key=s.focused,i[e].carousel.allLayersStarted&&i.carouselRowAdjustment(s,e,s.focused,s.focused+1>=i[e].slideamount?0:s.focused+1,s.focused-1<0?i[e].slideamount-1:s.focused-1),s.focused!==s.oldfocused)for(var R in void 0!==s.oldfocused&&i.removeTheLayers(jQuery(i[e].slides[s.oldfocused]),e),i.animateTheLayers({slide:s.focused,id:e,mode:"start"}),i.animateTheLayers({slide:"individual",id:e,mode:i[e].carousel.allLayersStarted?"rebuild":"start"}),i[e].sbgs)i[e].sbgs.hasOwnProperty(R)&&void 0!==i[e].sbgs[R].bgvid&&0!==i[e].sbgs[R].bgvid.length&&(""+i[e].sbgs[R].skeyindex==""+s.focused?i.playBGVideo(e,i.gA(i[e].pr_next_slide[0],"key")):i.stopBGVideo(e,i[e].sbgs[R].key));s.oldfocused=s.focused,i[e].c.trigger("revolution.nextslide.waiting")}},carouselRowAdjustment:function(e,t,a,o,r){void 0===e.slidesWithRowAdjustions[a]&&(e.slidesWithRowAdjustions[a]=!0,i.getRowHeights(t,a),i.putMiddleZoneInPosition(t,a)),void 0===e.slidesWithRowAdjustions[o]&&(e.slidesWithRowAdjustions[o]=!0,i.getRowHeights(t,o),i.putMiddleZoneInPosition(t,o)),void 0===e.slidesWithRowAdjustions[r]&&(e.slidesWithRowAdjustions[r]=!0,i.getRowHeights(t,r),i.putMiddleZoneInPosition(t,r))},swipeAnimate:function(e){var t=i[e.id].carousel,o={from:t.slide_offset,to:e.to},r=void 0===e.speed?.5:e.speed;if(t.distance=void 0!==e.distance?e.distance:e.to,void 0!==t.positionanim&&t.positionanim.pause(),e.fix){if(!1!==t.snap){var s=t.slide_offset,n="end"===e.phase?t.focusedBeforeSwipe:t.focused;t.slide_offset=e.to,i.organiseCarousel(e.id,e.direction,!0,!1,!1),Math.abs(t.swipeDistance)>40&&n==t.focused&&(t.focused="right"===e.direction?t.focused-1:t.focused+1,t.focused=t.focused>=t.len?t.infinity?0:t.len-1:t.focused<0?t.infinity?t.len-1:0:t.focused),o.to+=i.carouselToEvalPosition(e.id,e.direction,!0),t.slide_offset=s,i.organiseCarousel(e.id,e.direction,!0,!1,!1),t.keepFocusedFirst&&(t.keepFocusedFirst=!1,t.focused=0)}else!0!==t.infinity?(o.to>0&&(o.to=0),o.to25&&(r=.3)}t.swipeDistance=0,r=!0!==t.firstSwipedDone?0:r,t.firstSwipedDone=!0,t.positionanim=tpGS.gsap.to(o,r,{from:o.to,onUpdate:function(){t.slide_offset=o.from%t.maxwidth,i.organiseCarousel(e.id,e.direction,!0!==e.fix,!0!==e.fix),t.slide_offset=o.from},onComplete:function(){t.slide_offset=o.from%t.maxwidth,"carousel"!==i[e.id].sliderType||t.fadein||(tpGS.gsap.to(i[e.id].canvas,1,{scale:1,opacity:1}),t.fadein=!0),t.lastNotSimplifedSlideOffset=t.slide_offset,t.justDragged=!1,e.fix&&(t.focusedAfterAnimation=t.focused,e.newSlide&&t.focusedBeforeSwipe!==t.focused&&i.callingNewSlide(e.id,jQuery(i[e.id].slides[t.focused]).data("key"),!0),i.organiseCarousel(e.id,e.direction,!0,!0),i[e.id].c.trigger("revolution.slide.carouselchange",{slider:e.id,slideIndex:parseInt(i[e.id].pr_active_key,0)+1,slideLIIndex:i[e.id].pr_active_key,slide:i[e.id].pr_next_slide,currentslide:i[e.id].pr_next_slide,prevSlideIndex:void 0!==i[e.id].pr_lastshown_key&&parseInt(i[e.id].pr_lastshown_key,0)+1,prevSlideLIIndex:void 0!==i[e.id].pr_lastshown_key&&parseInt(i[e.id].pr_lastshown_key,0),prevSlide:void 0!==i[e.id].pr_lastshown_key&&i[e.id].slides[i[e.id].pr_lastshown_key]}))},ease:e.easing?e.easing:t.easing})},defineCarouselElements:function(e){var t=i[e].carousel;t.infbackup=t.infinity,t.maxVisiblebackup=t.maxVisibleItems,t.slide_offset="none",t.slide_offset=0,t.cached_slide_offset=0,t.wrap=jQuery(i[e].canvas[0].parentNode),0!==t.maxRotation&&("3D"!==i[e].parallax.type&&"3d"!==i[e].parallax.type||tpGS.gsap.set(t.wrap,{perspective:"1600px",transformStyle:"preserve-3d"}))},setCarouselDefaults:function(e,t){var a=i[e].carousel;if(a.stretchCache=void 0===a.stretchCache?a.stretch:a.stretchCache,a.stretch=!!i[e].infullscreenmode||a.stretchCache,a.slide_width=!0!==a.stretch?i[e].gridwidth[i[e].level]*(0===i[e].CM.w?1:i[e].CM.w):i[e].canv.width,a.slide_height=!0!==a.stretch?i[e].infullscreenmode?i.getWinH(e)-i.getFullscreenOffsets(e):i[e].gridheight[i[e].level]*(0===i[e].CM.w?1:i[e].CM.w):i[e].canv.height,a.ratio=a.slide_width/a.slide_height,a.len=i[e].slides.length,a.maxwidth=i[e].slideamount*a.slide_width,1!=a.justify&&a.maxVisiblebackup>a.len&&(a.maxVisibleItems=a.len%2?a.len:a.len+1),a.wrapwidth=a.maxVisibleItems*a.slide_width+(a.maxVisibleItems-1)*a.space,a.wrapwidth="auto"!=i[e].sliderLayout?a.wrapwidth>i[e].canv.width?i[e].canv.width:a.wrapwidth:a.wrapwidth>i[e].module.width?0!==i[e].module.width?i[e].module.width:i[e].canv.width:a.wrapwidth,!0===a.justify){a.slide_height="fullscreen"===i[e].sliderLayout?i[e].module.height:i[e].gridheight[i[e].level],a.slide_widths=[],a.slide_widthsCache=void 0===a.slide_widthsCache?[]:a.slide_widthsCache,a.maxwidth=0;for(var o=0;o=a.maxwidth)&&a.infbackup,!0!==a.quickmode){a.wrapoffset="center"===a.horizontal_align?(i[e].canv.width-i[e].outNavDims.right-i[e].outNavDims.left-a.wrapwidth)/2:0,a.wrapoffset="auto"!=i[e].sliderLayout&&i[e].outernav?0:a.wrapoffset0&&tpGS.gsap.set(i[e].canvas,{left:0})}),a.cacheWrapObj=jQuery.extend(!0,{},n)),a.inneroffset="right"===a.horizontal_align?a.wrapwidth-a.slide_width:0,a.windhalf="auto"===i[e].sliderLayout?i[e].module.width/2:i.winW/2}}});var t=function(e,t){var a=i[e].carousel;return"center"===a.horizontal_align?a.windhalf-a.slide_widths[t]/2-a.slidepositions[t]:"left"===a.horizontal_align?0-a.slidepositions[t]:a.wrapwidth-a.slide_widths[t]-a.slidepositions[t]},a=function(e){return e<1?Math.sqrt(1-(e-=1)*e):Math.sqrt(e)},o=function(e,i){return null===e||jQuery.isEmptyObject(e)?i:void 0===e?"right":e},r=function(e,i){return Math.abs(e)>Math.abs(i)?e>0?e-Math.abs(Math.floor(e/i)*i):e+Math.abs(Math.floor(e/i)*i):e},s=function(e){var t,a,o,s,n,d=0,l=i[e].carousel;if(void 0!==l.positionanim&&l.positionanim.pause(),l.justify)"center"===l.horizontal_align?d=l.windhalf-l.slide_widths[l.focused]/2-l.slidepositions[l.focused]:"left"===l.horizontal_align?d=0-l.slidepositions[l.focused]:"right"===l.horizontal_align&&(d=l.wrapwidth-l.slide_widths[l.focused]-l.slidepositions[l.focused]),d=d>l.maxwidth/2?l.maxwidth-d:d<0-l.maxwidth/2?d+l.maxwidth:d;else{var c=i[e].pr_processing_key>=0?i[e].pr_processing_key:i[e].pr_active_key>=0?i[e].pr_active_key:0,p=("center"===l.horizontal_align?(l.wrapwidth/2-l.slide_width/2-l.slide_offset)/l.slide_width:(0-l.slide_offset)/l.slide_width)%i[e].slideamount;d=(l.infinity?(t=p,a=c,o=i[e].slideamount,n=a-o-t,s=r(s=a-t,o),n=r(n,o),-(Math.abs(s)>Math.abs(n)?n:s)):p-c)*l.slide_width}return!1===l.snap&&l.justDragged&&(d=0),l.justDragged=!1,d};window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.carousel={loaded:!0,version:"6.5.8"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(jQuery),function(e){"use strict";var i=["chars","words","lines"],t=["Top","Right","Bottom","Left"],a=["TopLeft","TopRight","BottomRight","BottomLeft"],o=["top","right","bottom","left"];jQuery.fn.revolution=jQuery.fn.revolution||{};var r=jQuery.fn.revolution;jQuery.extend(!0,r,{checkLayerDimensions:function(e){var i=!1;for(var t in r[e.id].layers[e.skey])if(r[e.id].layers[e.skey].hasOwnProperty(t)){var a=r[e.id].layers[e.skey][t],o=r[e.id]._L[a.id];o.eow!==a.offsetWidth&&"true"!==r.gA(a,"vary-layer-dims")&&(i=!0),o.lastknownwidth=o.eow,o.lastknownheight=o.eoh,o._slidelink||r[e.id].caches.calcResponsiveLayersList.push({a:r[e.id]._L[a.id].c,b:e.id,c:0,d:o.rsp_bd,e:e.slideIndex})}return i},requestLayerUpdates:function(e,i,t,a){var o,s,n,d;if(void 0!==t)o=t,r[e]._L[o].pVisRequest!==r[e]._L[o].pVisStatus&&(void 0===r[e]._L[o]._ligid||!0!==r[e]._L[r[e]._L[o]._ligid].childrenAtStartNotVisible?(r[e]._L[o].pVisStatus=r[e]._L[o].pVisRequest,d=("row"===r[e]._L[o].type||"column"===r[e]._L[o].type||"group"===r[e]._L[o].type)&&void 0!==r[e]._L[o].frames&&void 0!==r[e]._L[o].frames.frame_999&&void 0!==r[e]._L[o].frames.frame_999.transform&&""+r[e]._L[o].frames.frame_999.transform.opacity!="0",n=1===r[e]._L[o].pVisRequest?"remove":d?n:"add",s=1===r[e]._L[o].pVisRequest?"remove":d?"add":s):(n="add",s="remove"),"group"===r[e]._L[o].type&&"add"==s&&"hidden"==(1===r[e]._L[o].pVisStatus?"visible":0===r[e]._L[o].pVisStatus?"hidden":r[e]._L[o].pVisStatus)&&(n="add"),void 0!==s&&r[e]._L[o].p[0].classList[s]("rs-forceuntouchable"),void 0!==n&&r[e]._L[o].p[0].classList[n]("rs-forcehidden")),r[e]._L[o].pPointerStatus!==r[e]._L[o].pPeventsRequest&&(r[e]._L[o].pPointerStatus=r[e]._L[o].pPeventsRequest,tpGS.gsap.set(r[e]._L[o].p[0],{pointerEvents:r[e]._L[o].pPointerStatus,visibility:1===r[e]._L[o].pVisStatus?"visible":0===r[e]._L[o].pVisStatus?"hidden":r[e]._L[o].pVisStatus})),void 0!==a&&"ignore"!==a&&0!==a&&(a++,"enterstage"===i||"leavestage"===i||"framestarted"===i?r.isFirefox(e)?-1===r[e]._L[o].p[0].style.transform.indexOf("perspective")&&(r[e]._L[o].p[0].style.transform+=(0===r[e]._L[o].p[0].style.transform.length?" ":"")+"perspective("+a+"px)"):(!window.isSafari11&&!0!==r[e]._L[o].maskHasPerspective&&0===r[e]._L[o].p[0].style.perspective.length||"none"==r[e]._L[o].p[0].style.perspective)&&(r[e]._L[o].p[0].style.perspective=a+"px"):"frameended"===i&&(r.isFirefox(e)?r[e]._L[o].p[0].style.transform=r[e]._L[o].p[0].style.transform.replace("perspective("+a+"px)",""):window.isSafari11||(r[e]._L[o].p[0].style.perspective=r[e]._L[o].p[0].style.perspective.replace(a-1+"px",""))));else for(o in r[e]._L)r[e]._L.hasOwnProperty(o)&&(r[e]._L[o].pVisRequest!==r[e]._L[o].pVisStatus&&(r[e]._L[o].pVisStatus=r[e]._L[o].pVisRequest,0===r[e]._L[o].pVisStatus?r[e]._L[o].p[0].classList.add("rs-forcehidden"):r[e]._L[o].p[0].classList.remove("rs-forcehidden")),r[e]._L[o].pPointerStatus!==r[e]._L[o].pPeventsRequest&&(r[e]._L[o].pPointerStatus=r[e]._L[o].pPeventsRequest,tpGS.gsap.set(r[e]._L[o].p[0],{pointerEvents:r[e]._L[o].pPointerStatus,visibility:r[e]._L[o].pVisStatus})));"enterstage"===i&&void 0!==t&&void 0!==r[e]._L[t].esginside&&r[e]._L[t].esginside.length>0&&void 0!==r[e]._L[t].esginside.esredraw&&r[e]._L[t].esginside.esredraw()},updateMiddleZonesAndESG:function(e){var i,t=r[e].pr_processing_key||r[e].pr_active_key||0;if(r[e].middleZones&&r[e].middleZones.length>0&&void 0!==r[e].middleZones[t])for(i=0;i0)for(i=0;i0){if(void 0!==r[e].rowzones[s])for(var d=0;d0)for(r[e].rowMiddleHeights.static=0,d=0;d5&&(t=r[e].rowHeights.cache[r[e].rowHeights.cache.length-1]===t?r[e].rowHeights.cache[r[e].rowHeights.cache.length-2]:r[e].rowHeights.cache[r[e].rowHeights.cache.length-1],c=r[e].rowHeights.tz):l=[],{cur:t,last:a,cache:l,tz:c}},getGridOffset:function(e,i,t,a){var o="grid"===t?r[e].canv.width:"carousel"!==r[e].sliderType||a?r[e].canv.width:r[e].carousel.slide_width,s=r[e].useFullScreenHeight?r[e].module.height:"grid"===t?r[e].content.height:"carousel"!==r[e].sliderType||a?r[e].module.height:r[e].canv.height,n="slide"===t?0:Math.max(0,"fullscreen"==r[e].sliderLayout?r[e].module.height/2-r.iHE(e)*(r[e].keepBPHeight?1:r[e].CM.h)/2:r[e].autoHeight||null!=r[e].minHeight&&r[e].minHeight>0||r[e].keepBPHeight?r[e].canv.height/2-r.iHE(e)*r[e].CM.h/2:0),d="slide"===t?0:Math.max(0,"carousel"===r[e].sliderType?0:r[e].canv.width/2-r.iWA(e,i)*r[e].CM.w/2);return"slide"!==t&&"carousel"===r[e].sliderType&&a&&void 0!==r[e].carousel&&void 0!==r[e].carousel.horizontal_align&&(d=Math.max(0,"center"===r[e].carousel.horizontal_align?0+(r[e].module.width-r.iWA(e,"static")*r[e].CM.w)/2:"right"===r[e].carousel.horizontal_align?r[e].module.width-r[e].gridwidth[r[e].level]*r[e].CM.w:d)),[o,s,d,n]},initLayer:function(e){var i,t,a,o=e.id,s=e.skey;for(var n in r[o].layers[e.skey])if(r[o].layers[e.skey].hasOwnProperty(n)){var d=r[o].layers[e.skey][n],l=jQuery(d),c=r.gA(d,"initialised"),p=c?r[o]._L[d.id]:l.data();if("individual"===e.skey&&(p.slideKey=void 0===p.slideKey?r.gA(l.closest("rs-slide")[0],"key"):p.slideKey,p.slideIndex=void 0===p.slideIndex?r.getSlideIndex(o,p.slideKey):p.slideIndex,e.slideIndex=p.slideIndex,s=p.slideKey),void 0===c){if(r.revCheckIDS(o,d),r[o]._L[d.id]=p,p.ford=void 0===p.ford?"frame_0;frame_1;frame_999":p.ford,p.ford=";"==p.ford[p.ford.length-1]?p.ford.substring(0,p.ford.length-1):p.ford,p.ford=p.ford.split(";"),void 0!==p.clip)for(i in p.clipPath={use:!1,origin:"l",type:"rectangle"},p.clip=p.clip.split(";"),p.clip)p.clip.hasOwnProperty(i)&&("u"==(t=p.clip[i].split(":"))[0]&&(p.clipPath.use="true"==t[1]),"o"==t[0]&&(p.clipPath.origin=t[1]),"t"==t[0]&&(p.clipPath.type=t[1]));if(p.frames=L(p,o),p.caches={},p.OBJUPD={},p.c=l,p.p=r[o]._Lshortcuts[d.id].p,p.lp=r[o]._Lshortcuts[d.id].lp,p.m=r[o]._Lshortcuts[d.id].m,p.triggercache=void 0===p.triggercache?"reset":p.triggercache,p.rsp_bd=void 0===p.rsp_bd?"column"===p.type||"row"===p.type?"off":"on":p.rsp_bd,p.rsp_o=void 0===p.rsp_o?"on":p.rsp_o,p.basealign=void 0===p.basealign?"grid":p.basealign,p.group="group"!==p.type&&null!==r.closestNode(l[0],"RS-GROUP-WRAP")?"group":"column"!==p.type&&null!==r.closestNode(l[0],"RS-COLUMN")?"column":"row"!==p.type&&null!==r.closestNode(l[0],"RS-ROW")?"row":void 0,p._lig="group"===p.group?jQuery(r.closestNode(l[0],"RS-GROUP")):"column"===p.group?jQuery(r.closestNode(l[0],"RS-COLUMN")):"row"===p.group?jQuery(r.closestNode(l[0],"RS-ROW")):void 0,p._ligid=void 0!==p._lig?p._lig[0].id:void 0,p._column="RS-COLUMN"===l[0].tagName?jQuery(r.closestNode(l[0],"RS-COLUMN-WRAP")):"none",p._row="RS-COLUMN"===l[0].tagName&&jQuery(r.closestNode(l[0],"RS-ROW")),p._ingroup="group"===p.group,p._incolumn="column"===p.group,p._inrow="row"===p.group,p.fsom="true"==p.fsom||1==p.fsom,(p._ingroup||p._incolumn)&&p._lig[0].className.indexOf("rs-sba")>=0&&(!1!==p.animationonscroll||void 0===p.frames.loop)&&!0!==p.animOnScrollForceDisable&&(p.animationonscroll=!0,l[0].className+=" rs-sba",r[o].sbas[s][d.id]=l[0]),p.animOnScrollRepeats=0,p._isgroup="RS-GROUP"===l[0].tagName,p.type=p.type||"none","row"===p.type&&(void 0===p.cbreak&&(p.cbreak=2),void 0===p.zone&&(p.zone=r.closestNode(l[0],"RS-ZONE"),p.zone=null!==p.zone&&void 0!==p.zone?p.zone.className:"")),p.esginside=jQuery(l[0].getElementsByClassName("esg-grid")[0]),p._isnotext=-1!==jQuery.inArray(p.type,["video","image","audio","shape","row","group"]),p._mediatag="html5"==p.audio?"audio":"video",p.img=l.find("img"),p.deepiframe=r.getByTag(l[0],"iframe"),p.deepmedia=r.getByTag(l[0],p._mediatag),p.layertype="image"===p.type?"image":l[0].className.indexOf("rs-layer-video")>=0||l[0].className.indexOf("rs-layer-audio")>=0||p.deepiframe.length>0&&(p.deepiframe[0].src.toLowerCase().indexOf("youtube")>0||p.deepiframe[0].src.toLowerCase().indexOf("vimeo")>0)||p.deepmedia.length>0?"video":"html",p.deepiframe.length>0&&r.sA(p.deepiframe[0],"layertype",p.layertype),"column"===p.type&&(p.cbg=jQuery(r.getByTag(p.p[0],"RS-COLUMN-BG")[0]),p.cbgmask=jQuery(r.getByTag(p.p[0],"RS-CBG-MASK-WRAP")[0])),p._slidelink=l[0].className.indexOf("slidelink")>=0,p._isstatic=l[0].className.indexOf("rs-layer-static")>=0,p.slidekey=p._isstatic?"staticlayers":s,p._togglelisteners=l[0].getElementsByClassName("rs-toggled-content").length>0,"text"===p.type&&(-1!==p.c[0].innerHTML.indexOf("{{total_slide_count}}")&&(p.c[0].innerHTML=p.c[0].innerHTML.replace("{{total_slide_count}}",r[o].realslideamount)),p.c[0].innerHTML.indexOf("{{current_slide_index}}")>=0))if(p._isstatic)p.metas=p.metas||{},p.metas.csi={},p.c[0].innerHTML=p.c[0].innerHTML.replace("{{current_slide_index}}",""+r[o].realslideamount+""),p.metas.csi.c=p.c[0].getElementsByTagName("CUSLI")[0];else{var g=parseInt(e.slideIndex)+1;p.c[0].innerHTML=p.c[0].innerHTML.replace("{{current_slide_index}}",(g<10&&r[o].realslideamount>9?"0":"")+g)}if(p.bgcol=void 0===p.bgcol?l[0].style.background.indexOf("gradient")>=0?l[0].style.background:l[0].style.backgroundColor:p.bgcol,p.bgcol=""===p.bgcol?"rgba(0, 0, 0, 0)":p.bgcol,p.bgcol=0===p.bgcol.indexOf("rgba(0, 0, 0, 0)")&&p.bgcol.length>18?p.bgcol.replace("rgba(0, 0, 0, 0)",""):p.bgcol,p.zindex=void 0===p.zindex?l[0].style.zIndex:p.zindex,p._isgroup&&(p.frames.frame_1.timeline.waitoncall&&(p.childrenAtStartNotVisible=!0),p.pVisRequest=0),p._togglelisteners&&l.on("click",function(){r.swaptoggleState([this.id])}),void 0!==p.border)for(i in p.border=p.border.split(";"),p.bordercolor="transparent",p.border)if(p.border.hasOwnProperty(i))switch((t=p.border[i].split(":"))[0]){case"boc":p.bordercolor=t[1];break;case"bow":p.borderwidth=r.revToResp(t[1],4,0);break;case"bos":p.borderstyle=r.revToResp(t[1],4,0);break;case"bor":p.borderradius=r.revToResp(t[1],4,0)}if("svg"===p.type&&(p.svg=l.find("svg"),p.svgI=w(p.svgi,o),p.svgPath=p.svg.find(p.svgI.svgAll?"path, circle, ellipse, line, polygon, polyline, rect":"path"),p.svgH=void 0!==p.svgi&&-1===p.svgi.indexOf("oc:t")?w(p.svgh,o):{}),void 0!==p.btrans){var u=p.btrans;for(i in p.btrans={rX:0,rY:0,rZ:0,o:1},u=u.split(";"))if(u.hasOwnProperty(i))switch((t=u[i].split(":"))[0]){case"rX":p.btrans.rX=t[1];break;case"rY":p.btrans.rY=t[1];break;case"rZ":p.btrans.rZ=t[1];break;case"o":p.btrans.o=t[1]}}if(void 0!==p.tsh)for(i in p.tshadow={c:"rgba(0,0,0,0.25)",v:0,h:0,b:0},p.tsh=p.tsh.split(";"),p.tsh)if(p.tsh.hasOwnProperty(i))switch((t=p.tsh[i].split(":"))[0]){case"c":p.tshadow.c=t[1];break;case"h":p.tshadow.h=t[1];break;case"v":p.tshadow.v=t[1];break;case"b":p.tshadow.b=t[1]}if(void 0!==p.tst)for(i in p.tstroke={c:"rgba(0,0,0,0.25)",w:1},p.tst=p.tst.split(";"),p.tst)if(p.tst.hasOwnProperty(i))switch((t=p.tst[i].split(":"))[0]){case"c":p.tstroke.c=t[1];break;case"w":p.tstroke.w=t[1]}if(void 0!==p.bsh)for(i in p.bshadow={e:"c",c:"rgba(0,0,0,0.25)",v:0,h:0,b:0,s:0},p.bsh=p.bsh.split(";"),p.bsh)if(p.bsh.hasOwnProperty(i))switch((t=p.bsh[i].split(":"))[0]){case"c":p.bshadow.c=t[1];break;case"h":p.bshadow.h=t[1];break;case"v":p.bshadow.v=t[1];break;case"b":p.bshadow.b=t[1];break;case"s":p.bshadow.s=t[1];break;case"e":p.bshadow.e=t[1]}if(void 0!==p.dim)for(i in p.dim=p.dim.split(";"),p.dim)if(p.dim.hasOwnProperty(i))switch((t=p.dim[i].split(":"))[0]){case"w":p.width=t[1];break;case"h":p.height=t[1];break;case"maxw":p.maxwidth=t[1];break;case"maxh":p.maxheight=t[1];break;case"minw":p.minwidth=t[1];break;case"minh":p.minheight=t[1]}if(void 0!==p.xy&&"row"!==p.type&&"column"!==p.type)for(i in p.xy=p.xy.split(";"),p.xy)if(p.xy.hasOwnProperty(i))switch((t=p.xy[i].split(":"))[0]){case"x":p.x=t[1].replace("px","");break;case"y":p.y=t[1].replace("px","");break;case"xo":p.hoffset=t[1].replace("px","");break;case"yo":p.voffset=t[1].replace("px","")}if(!p._isnotext&&void 0!==p.text)for(i in p.text=p.text.split(";"),p.text)if(p.text.hasOwnProperty(i))switch((t=p.text[i].split(":"))[0]){case"w":p.whitespace=t[1];break;case"td":p.textDecoration=t[1];break;case"c":p.clear=t[1];break;case"f":p.float=t[1];break;case"s":p.fontsize=t[1];break;case"l":p.lineheight=t[1];break;case"ls":p.letterspacing=t[1];break;case"fw":p.fontweight=t[1];break;case"a":p.textalign=t[1]}if("column"===p.type&&void 0!==p.textDecoration&&delete p.textDecoration,void 0!==p.flcr)for(i in p.flcr=p.flcr.split(";"),p.flcr)if(p.flcr.hasOwnProperty(i))switch((t=p.flcr[i].split(":"))[0]){case"c":p.clear=t[1];break;case"f":p.float=t[1]}if(void 0!==p.padding)for(i in p.padding=p.padding.split(";"),p.padding)if(p.padding.hasOwnProperty(i))switch((t=p.padding[i].split(":"))[0]){case"t":p.paddingtop=t[1];break;case"b":p.paddingbottom=t[1];break;case"l":p.paddingleft=t[1];break;case"r":p.paddingright=t[1]}if(void 0!==p.margin)for(i in p.margin=p.margin.split(";"),p.margin)if(p.margin.hasOwnProperty(i))switch((t=p.margin[i].split(":"))[0]){case"t":p.margintop=t[1];break;case"b":p.marginbottom=t[1];break;case"l":p.marginleft=t[1];break;case"r":p.marginright=t[1]}if(void 0!==p.spike&&(p.spike=G(p.spike)),void 0!==p.corners)for(i in a=p.corners.split(";"),p.corners={},a)a.hasOwnProperty(i)&&a[i].length>0&&(p.corners[a[i]]=jQuery("<"+a[i]+">"),p.c.append(p.corners[a[i]]));p.textalign=y(p.textalign),p.vbility=r.revToResp(p.vbility,r[o].rle,!0),p.hoffset=r.revToResp(p.hoffset,r[o].rle,0),p.voffset=r.revToResp(p.voffset,r[o].rle,0),p.x=r.revToResp(p.x,r[o].rle,"l"),p.y=r.revToResp(p.y,r[o].rle,"t"),A(l,0,o),r.sA(d,"initialised",!0),r[o].c.trigger("layerinitialised",{layer:l[0].id,slider:o})}var h=p.x[r[o].level],m=p.y[r[o].level],v=r.getGridOffset(o,e.slideIndex,p.basealign,p._isstatic),f=v[0],b=v[1],_=v[2],S=v[3];if(p.slideIndex=e.slideIndex,"updateposition"!==e.mode){if(0==p.vbility[r[o].levelForced]||"f"==p.vbility[r[o].levelForced]||fk&&x<=1||x1?{width:"100%",height:"auto",left:"c"===h||"center"===h?"50%":"left"===h||"l"===h?"0":"auto",right:"r"===h||"right"===h?"0":"auto",top:"c"===m||"center"===m||"middle"===m||"m"===m?"50%":"top"===m||"t"===m?"0":"auto",bottom:"b"===m||"bottom"===m?"0":"auto",x:"c"===h||"center"===h||"middle"===h||"m"===h?"-50%":"0",y:"c"===m||"center"===m||"middle"===m||"m"===m?"-50%":"0"}:{height:"100%",width:"auto",left:"c"===h||"center"===h?"50%":"left"===h||"l"===h?"0":"auto",right:"r"===h||"right"===h?"0":"auto",top:"c"===m||"center"===m||"middle"===m||"m"===m?"50%":"top"===m||"t"===m?"0":"auto",bottom:"b"===m||"bottom"===m?"0":"auto",x:"c"===h||"center"===h||"middle"===h||"m"===h?"-50%":"0",y:"c"===m||"center"===m||"middle"===m||"m"===m?"-50%":"0"}}else void 0===p.group&&"auto"===p.width[r[o].level]&&"auto"===p.height[r[o].level]&&(p.width[r[o].level]=r.gA(p.img[0],"owidth",p.img[0].width),p.height[r[o].level]=r.gA(p.img[0],"owidth",p.img[0].height)),p.imgOBJ={width:"auto"!==p.width[r[o].level]||isNaN(p.width[r[o].level])&&p.width[r[o].level].indexOf("%")>=0?"100%":"auto",height:"auto"!==p.height[r[o].level]||isNaN(p.height[r[o].level])&&p.height[r[o].level].indexOf("%")>=0?"100%":"auto"};else if("video"===p.layertype){r.manageVideoLayer(l,o,s),"rebuild"!==e.mode&&r.resetVideo(l,o,e.mode),null!=p.aspectratio&&p.aspectratio.split(":").length>1&&1==p.bgvideo&&r.prepareCoveredVideo(o,l),p.media=void 0===p.media?p.deepiframe.length>0?jQuery(p.deepiframe[0]):jQuery(p.deepmedia[0]):p.media,p.html5vid=void 0===p.html5vid?!(p.deepiframe.length>0):p.html5vid,p.mediaOBJ={display:"block"};var R=p.width[r[o].level],O=p.height[r[o].level];if(R="auto"===R?R:!r.isNumeric(R)&&R.indexOf("%")>0?p._incolumn||p._ingroup?"100%":"grid"===p.basealign?r.iWA(o,e.slideIndex)*r[o].CM.w:f:"off"!==p.rsp_bd?parseFloat(R)*r[o].CM.w+"px":parseFloat(R)+"px",O="auto"===O?O:!r.isNumeric(O)&&O.indexOf("%")>0?"grid"===p.basealign?r.iHE(o)*r[o].CM.w:b:"off"!==p.rsp_bd?parseFloat(O)*r[o].CM.h+"px":parseFloat(O)+"px",p.vd=void 0===p.vd?r[o].videos[l[0].id].ratio.split(":").length>1?r[o].videos[l[0].id].ratio.split(":")[0]/r[o].videos[l[0].id].ratio.split(":")[1]:1:p.vd,!p._incolumn||"100%"!==R&&"auto"!==O||void 0===p.ytid)-1==l[0].className.indexOf("rs-fsv")?(O="auto"===O&&void 0!==p.vd&&"auto"!==R?"100%"===R?l.width()/p.vd:R/p.vd:O,p.vidOBJ={width:R,height:O}):("grid"!==p.basealign&&(_=0,S=0),p.x=r.revToResp(0,r[o].rle,0),p.y=r.revToResp(0,r[o].rle,0),p.vidOBJ={width:R,height:r[o].autoHeight?r[o].canv.height:O}),0!=p.html5vid&&l.hasClass("rs-fsv")||(p.mediaOBJ={width:R,height:O,display:"block"}),p._ingroup&&null!==p.vidOBJ.width&&void 0!==p.vidOBJ.width&&!r.isNumeric(p.vidOBJ.width)&&p.vidOBJ.width.indexOf("%")>0&&(p.OBJUPD.lppmOBJ={minWidth:R});else{var I=l.width(),M="auto"===O?I/p.vd:O;p.vidOBJ={width:"auto",height:M},p.heightSetByVideo=!0}}p._slidelink||r[o].caches.calcResponsiveLayersList.push({a:l,b:o,c:0,d:p.rsp_bd,e:e.slideIndex}),"on"===p.rsp_ch&&"row"!==p.type&&"column"!==p.type&&"group"!==p.type&&"image"!==p.type&&"video"!==p.type&&"shape"!==p.type&&l.find("*").each(function(){var i=jQuery(this);"true"!==r.gA(this,"stylerecorder")&&!0!==r.gA(this,"stylerecorder")&&A(i,"rekursive",o),r[o].caches.calcResponsiveLayersList.push({a:i,b:o,c:"rekursive",d:p.rsp_bd,e:e.slideIndex,RSL:l})})}if("preset"!==e.mode){if(p.oldeow=p.eow,p.oldeoh=p.eoh,p.eow=l.outerWidth(!0),p.eoh=l.outerHeight(!0),void 0!==p.metas&&void 0!==p.metas.csi&&p.metas.csi.change!==r[o].focusedSlideIndex){p.metas.csi.change=r[o].focusedSlideIndex;g=parseInt(p.metas.csi.change)+1;p.metas.csi.c.innerHTML=(r[o].realslideamount>9&&g<10?"0":"")+g}if(p.imgInFirefox="image"==p.type&&"auto"==p.width[r[o].level]&&"100%"==p.height[r[o].level]&&r.isFirefox(o),p.imgInFirefox){var T=p.img.width();p.eow=0!==T?T:p.eow}if(p.eow<=0&&void 0!==p.lastknownwidth&&(p.eow=p.lastknownwidth),p.eoh<=0&&void 0!==p.lastknownheight&&(p.eoh=p.lastknownheight),void 0!==p.corners&&("text"===p.type||"button"===p.type||"shape"===p.type)){for(a in p.corners)if(p.corners.hasOwnProperty(a)){p.corners[a].css("borderWidth",p.eoh+"px");var C="rs-fcrt"===a||"rs-fcr"===a;p.corners[a].css("border"+(C?"Right":"Left"),"0px solid transparent"),p.corners[a].css("border"+("rs-fcrt"==a||"rs-bcr"==a?"Bottom":"Top")+"Color",p.bgcol)}p.eow=l.outerWidth(!0)}0==p.eow&&0==p.eoh&&(p.eow="grid"===p.basealign?r[o].content.width:r[o].module.width,p.eoh="grid"===p.basealign?r[o].content.height:r[o].module.height),p.basealign=r[o].justifyCarousel?"grid":p.basealign;var D="on"===p.rsp_o?parseInt(p.voffset[r[o].level],0)*r[o].CM.w:parseInt(p.voffset[r[o].level],0),P="on"===p.rsp_o?parseInt(p.hoffset[r[o].level],0)*r[o].CM.h:parseInt(p.hoffset[r[o].level],0),B="grid"===p.basealign?r.iWA(o,e.slideIndex)*r[o].CM.w:f,z="grid"===p.basealign?r.iHE(o)*(r[o].keepBPHeight||r[o].currentRowsHeight>r[o].gridheight[r[o].level]?1:r[o].CM.h):b;(1==r[o].gridEQModule||void 0!==p._lig&&"row"!==p.type&&"column"!==p.type&&"group"!==p.type)&&(B=void 0!==p._lig?p._lig.width():r[o].module.width,z=void 0!==p._lig?p._lig.height():r[o].module.height,_=0,S=0),"video"===p.type&&null!=p.vidOBJ&&(p.vidOBJ.height>=0&&0===p.eoh&&(p.eoh=p.vidOBJ.height),p.vidOBJ.width>=0&&0===p.eow&&(p.eow=p.vidOBJ.width)),h="c"===h||"m"===h||"center"===h||"middle"===h?B/2-p.eow/2+P:"l"===h||"left"===h?P:"r"===h||"right"===h?B-p.eow-P:"off"!==p.rsp_o?h*r[o].CM.w:h,m="m"===m||"c"===m||"center"===m||"middle"===m?z/2-p.eoh/2+D:"t"===m||"top"==m?D:"b"===m||"bottom"==m?z-p.eoh-D:"off"!==p.rsp_o?m*r[o].CM.w:m,h=p._slidelink?0:r[o].rtl&&-1==(""+p.width[r[o].level]).indexOf("%")?parseInt(h)+p.eow:h,p.calcx=parseInt(h,0)+_,p.calcy=parseInt(m,0)+S,"row"!==p.type&&"column"!==p.type?p.OBJUPD.POBJ={zIndex:p.zindex,top:p.calcy,left:p.calcx,overwrite:"auto"}:"row"!==p.type?p.OBJUPD.POBJ={zIndex:p.zindex,width:p.columnwidth,top:0,left:0,overwrite:"auto"}:"row"===p.type&&(p.OBJUPD.POBJ={zIndex:p.zindex,width:"grid"===p.basealign?B+"px":"100%",top:0,left:r[o].rtl?-1*_:_,overwrite:"auto"},p.cbreak<=r[o].level?-1===l[0].className.indexOf("rev_break_columns")&&l[0].classList.add("rev_break_columns"):l[0].className.indexOf("rev_break_columns")>0&&l[0].classList.remove("rev_break_columns"),p.rowcalcx=p.OBJUPD.POBJ.left,p.pow=p.p.outerWidth(!0)),void 0!==p.blendmode&&(p.OBJUPD.POBJ.mixBlendMode="color"===p.blendmode&&window.isSafari11?"color-burn":p.blendmode),(void 0!==p.frames.loop||p.imgInFirefox)&&(p.OBJUPD.LPOBJ={width:p.eow,height:p.eoh}),p._ingroup&&(void 0!==p._groupw&&!r.isNumeric(p._groupw)&&p._groupw.indexOf("%")>0&&(p.OBJUPD.lppmOBJ.minWidth=p._groupw),void 0!==p._grouph&&!r.isNumeric(p._grouph)&&p._grouph.indexOf("%")>0&&(p.OBJUPD.lppmOBJ.minHeight=p._grouph)),"updateposition"===e.mode&&(p.caches.POBJ_LEFT===p.OBJUPD.POBJ.left&&p.caches.POBJ_TOP===p.OBJUPD.POBJ.top||(tpGS.gsap.set(p.p,p.OBJUPD.POBJ),p.caches.POBJ_LEFT=p.OBJUPD.POBJ.left,p.caches.POBJ_TOP=p.OBJUPD.POBJ.top)),e.animcompleted&&r.animcompleted(l,o)}}},hoverReverseDone:function(e){r[e.id]._L[e.L[0].id].textDecoration&&tpGS.gsap.set(r[e.id]._L[e.L[0].id].c,{textDecoration:r[e.id]._L[e.L[0].id].textDecoration})},animcompleted:function(e,i,t){if(void 0!==r[i].videos){var a=r[i].videos[e[0].id];null!=a&&null!=a.type&&"none"!=a.type&&(1==a.aplay||"true"==a.aplay||"on"==a.aplay||"1sttime"==a.aplay?(("static"===a.slideid||"carousel"!==r[i].sliderType||e.closest("rs-slide").index()==r[i].carousel.focused||e.closest("rs-slide").index()==r[i].activeRSSlide&&r[i].carousel.oldfocused==r[i].carousel.focused||t)&&r.playVideo(e,i),r.toggleState(e.data("videotoggledby")),(a.aplay1||"1sttime"==a.aplay)&&(a.aplay1=!1,a.aplay=!1)):("no1sttime"==a.aplay&&(a.aplay=!0),r.unToggleState(e.data("videotoggledby"))))}},handleStaticLayers:function(e,i){var t=0,a=r[i].realslideamount+1;if(void 0!==r.gA(e[0],"onslides")){var o=r.gA(e[0],"onslides").split(";");for(var s in o)if(o.hasOwnProperty(s)){var n=o[s].split(":");"s"===n[0]&&(t=parseInt(n[1],0)),"e"===n[0]&&(a=parseInt(n[1],0))}}t=Math.max(0,t),a=Math.min(r[i].realslideamount,a<0?r[i].realslideamount:a),a=1!==t&&0!==t||a!==r[i].realslideamount?a:r[i].realslideamount+1,e.data("startslide",t),e.data("endslide",a),r.sA(e[0],"startslide",t),r.sA(e[0],"endslide",a)},updateLayersOnFullStage:function(e){if(r[e].caches.calcResponsiveLayersList.length>0){!0!==r[e].slideHasIframe&&!0!==r[e].fullScreenMode&&!0!==r[e].skipAttachDetach&&("carousel"===r[e].sliderType?r[e].carousel.wrap.detach():r[e].canvas.detach());for(var i=0;i0&&e.index>=0&&r[e.id].rowzones[Math.min(e.index,r[e.id].rowzones.length)]&&r[e.id].rowzones[Math.min(e.index,r[e.id].rowzones.length)].length>0||void 0!==r[e.id].srowzones&&r[e.id].srowzones.length>0||void 0!==r[e.id].smiddleZones&&r[e.id].smiddleZones.length>0)&&(r.updateDims(e.id),r.initLayer({id:e.id,skey:e.key,slideIndex:e.slide,mode:"updateposition"}),r.initLayer({id:e.id,skey:"static",slideIndex:"static",mode:"updateposition"}),"start"!==e.mode&&"preset"!==e.mode||r.manageNavigation(e.id),window.requestAnimationFrame(function(){r.putRowsInPosition(e.id)}))},updateLayerDimensions:function(e){var i=!1;r[e.id].caches.calcResponsiveLayersList=[],void 0===e.key||"individual"!=e.key&&void 0===r[e.id].layers[e.key]||!r.checkLayerDimensions({id:e.id,skey:e.key,slideIndex:e.slide})||(i=!0),r.initLayer({id:e.id,skey:e.key,slideIndex:e.slide,mode:"updateAndResize"}),r[e.id].layers.static&&r.checkLayerDimensions({id:e.id,skey:"static",slideIndex:"static"})&&(i=!0,r.initLayer({id:e.id,skey:"static",slideIndex:"static",mode:"updateAndResize"})),i&&r.updateLayersOnFullStage(e.id)},updateAnimatingLayerPositions:function(e){r.initLayer({id:e.id,skey:e.key,slideIndex:e.slide,mode:"updateposition"})},removeTheLayers:function(e,i,t){var a=r.gA(e[0],"key");for(var o in r[i].sloops&&r[i].sloops[a]&&r[i].sloops[a].tl&&r[i].sloops[a].tl.pause(),r[i].layers[a])r[i].layers[a].hasOwnProperty(o)&&r.renderLayerAnimation({layer:jQuery(r[i].layers[a][o]),frame:"frame_999",mode:"continue",remove:!0,id:i,allforce:t});for(var o in r[i].layers.static)r[i].layers.static.hasOwnProperty(o)&&r.renderLayerAnimation({layer:jQuery(r[i].layers.static[o]),frame:"frame_999",mode:"continue",remove:!0,id:i,allforce:t})},renderLayerAnimation:function(e){var t,a=e.layer,o=e.id,u=r[o].level,h=r[o]._L[a[0].id],v=void 0!==h.timeline?h.timeline.time():void 0,f=!1,w=!1,y="none";if(("containerResized_2"!==e.caller&&"swapSlideProgress_2"!==e.caller||!0===h.animationRendered)&&(h.animationRendered=!0,"preset"!==e.mode||!0===h.frames.frame_1.timeline.waitoncall||void 0!==h.scrollBasedOffset)){if("trigger"==e.mode&&(h.triggeredFrame=e.frame),h._isstatic){var S="carousel"===r[o].sliderType&&void 0!==r[o].carousel.oldfocused?r[o].carousel.oldfocused:void 0===r[o].pr_lastshown_key?1:parseInt(r[o].pr_lastshown_key,0)+1,k="carousel"===r[o].sliderType?void 0===r[o].pr_next_key?0===S?1:S:parseInt(r[o].pr_next_key,0)+1:void 0===r[o].pr_processing_key?S:parseInt(r[o].pr_processing_key,0)+1,L=S>=h.startslide&&S<=h.endslide,R=k>=h.startslide&&k<=h.endslide;if(y=S===h.endslide&&"continue"===e.mode||("continue"===e.mode||S===h.endslide)&&"none",!0===e.allforce||!0===y){if("continue"===e.mode&&"frame_999"===e.frame&&(R||void 0===h.lastRequestedMainFrame))return}else{if("preset"===e.mode&&(h.elementHovered||!R))return;if("rebuild"===e.mode&&!L&&!R)return;if("start"===e.mode&&R&&"frame_1"===h.lastRequestedMainFrame)return;if(("start"===e.mode||"preset"===e.mode)&&"frame_999"===h.lastRequestedMainFrame&&!0!==h.leftstage)return;if("continue"===e.mode&&"frame_999"===e.frame&&(R||void 0===h.lastRequestedMainFrame))return;if("start"===e.mode&&!R)return;if("rebuild"===e.mode&&h.elementHovered&&h._isstatic&&h.hovertimeline)return}}else"start"===e.mode&&"keep"!==h.triggercache&&(h.triggeredFrame=void 0);for(var O in"start"===e.mode&&(void 0!==h.layerLoop&&(h.layerLoop.count=0),e.frame=void 0===h.triggeredFrame?0:h.triggeredFrame),"continue"===e.mode||"trigger"===e.mode||void 0===h.timeline||h._isstatic&&!0===h.leftstage||h.timeline.pause(0),"continue"!==e.mode&&"trigger"!==e.mode||void 0===h.timeline||h.timeline.pause(),h.timeline=tpGS.gsap.timeline({paused:!0}),"text"!==h.type&&"button"!==h.type||void 0!==h.splitText&&(void 0!==h.splitTextFix||"start"!==e.mode&&"preset"!==e.mode)||(b({layer:a,id:o}),"start"===e.mode&&(h.splitTextFix=!0)),h.ford)if(h.ford.hasOwnProperty(O)){var I=h.ford[O],M=!1;if("frame_0"!==I&&"frame_hover"!==I&&"loop"!==I){if("frame_999"===I&&!h.frames[I].timeline.waitoncall&&h.frames[I].timeline.start>=r[o].duration&&!0!==e.remove&&(h.frames[I].timeline.waitoncall=!0),"start"===e.mode&&"keep"!==h.triggercache&&(h.frames[I].timeline.callstate=h.frames[I].timeline.waitoncall?"waiting":""),"trigger"===e.mode&&h.frames[I].timeline.waitoncall&&(I===e.frame?(h.frames[I].timeline.triggered=!0,h.frames[I].timeline.callstate="called"):h.frames[I].timeline.triggered=!1),"rebuild"===e.mode||h.frames[I].timeline.triggered||(h.frames[I].timeline.callstate=h.frames[I].timeline.waitoncall?"waiting":""),!1!==e.fastforward){if(("continue"===e.mode||"trigger"===e.mode)&&!1===w&&I!==e.frame)continue;if(("rebuild"===e.mode||"preset"===e.mode)&&!1===w&&void 0!==h.triggeredFrame&&I!==h.triggeredFrame)continue;(I===e.frame||"rebuild"===e.mode&&I===h.triggeredFrame)&&(w=!0)}else I===e.frame&&(w=!0);if(I!==e.frame&&h.frames[I].timeline.waitoncall&&"called"!==h.frames[I].timeline.callstate&&(f=!0),I!==e.frame&&w&&(f=!0===f&&h.frames[I].timeline.waitoncall?"skiprest":!0!==f&&f),void 0===h.hideonfirststart&&"frame_1"===I&&h.frames[I].timeline.waitoncall&&(h.hideonfirststart=!0),f&&"waiting"===h.frames[I].timeline.callstate&&"preset"===e.mode&&1!=h.firstTimeRendered){if(h._isstatic&&void 0===h.currentframe)continue;M=!0,h.firstTimeRendered=!0}else if("skiprest"===f||"called"!==h.frames[I].timeline.callstate&&f&&e.toframe!==I)continue;if("frame_999"!==I||!1!==y||"continue"!==e.mode&&"start"!==e.mode&&"rebuild"!==e.mode){h.fff="frame_1"===I&&("trigger"!==e.mode||"frame_999"===h.currentframe||"frame_0"===h.currentframe||void 0===h.currentframe),"trigger"===e.mode&&"frame_1"===e.frame&&!1===h.leftstage&&(h.fff=!1),M||(h.frames[I].timeline.callstate="called",h.currentframe=I);var T=h.frames[I],C=h.fff?h.frames.frame_0:void 0,A=tpGS.gsap.timeline(),D=tpGS.gsap.timeline(),P=h.c,B=void 0!==T.sfx&&_(T.sfx.effect,h.m,T.timeline.ease),z=T.timeline.speed/1e3,G=0,H=x({id:o,frame:T,layer:a,ease:T.timeline.ease,splitAmount:P.length,target:I,forcefilter:void 0!==h.frames.frame_hover&&void 0!==h.frames.frame_hover.filter}),E=h.fff?x({id:o,frame:C,layer:a,ease:T.timeline.ease,splitAmount:P.length,target:"frame_0"}):void 0,F=void 0!==T.mask?x({id:o,frame:{transform:{x:T.mask.x,y:T.mask.y}},layer:a,ease:H.ease,target:"mask"}):void 0,N=void 0!==F&&h.fff?x({id:o,frame:{transform:{x:C.mask.x,y:C.mask.y}},layer:a,ease:H.ease,target:"frommask"}):void 0,j=H.ease;if(H.force3D=!0,"block"===B.type&&(B.ft[0].background=T.sfx.fxc,B.ft[0].visibility="visible",B.ft[1].visibility="visible",A.add(tpGS.gsap.fromTo(B.bmask_in,z/2,B.ft[0],B.ft[1],0)),A.add(tpGS.gsap.fromTo(B.bmask_in,z/2,B.ft[1],B.t,z/2)),"frame_0"!==I&&"frame_1"!==I||(E.opacity=0)),void 0!==T.color?H.color=T.color:void 0!==h.color&&"npc"!==h.color[u]&&(H.color=h.color[u]),void 0!==C&&void 0!==C.color?E.color=C.color:void 0!==C&&void 0!==h.color&&"npc"!==h.color[u]&&(E.color=h.color[u]),void 0!==T.bgcolor?T.bgcolor.indexOf("gradient")>=0?H.background=T.bgcolor:H.backgroundColor=T.bgcolor:!0===h.bgcolinuse&&(h.bgcol.indexOf("gradient")>=0?H.background=h.bgcol:H.backgroundColor=h.bgcol),void 0!==C&&(void 0!==C.bgcolor?C.bgcolor.indexOf("gradient")>=0?E.background=C.bgcolor:E.backgroundColor=C.bgcolor:!0===h.bgcolinuse&&(h.bgcol.indexOf("gradient")>=0?E.background=h.bgcol:E.backgroundColor=h.bgcol)),void 0!==h.splitText&&!1!==h.splitText)for(var W in i)if(void 0!==T[i[W]]&&!h.quickRendering){var V=h.splitText[i[W]],U=x({id:o,frame:T,source:i[W],ease:j,layer:a,splitAmount:V.length,target:I+"_"+i[W]}),X=h.fff?x({id:o,frame:C,ease:U.ease,source:i[W],layer:a,splitAmount:V.length,target:"frame_0_"+i[W]}):void 0,Y=h.frames[I].dosplit?void 0===T[i[W]].delay?.05:T[i[W]].delay/100:0;h.color[u]===H.color&&"frame_1"===I||(U.color=H.color),void 0!==E&&h.color[u]!==E.color&&(X.color=E.color),void 0!==X&&X.color!==H.color&&(U.color=H.color);var Q=r.clone(U),J=h.fff?r.clone(X):void 0,q=T[i[W]].dir;delete Q.dir,Q.data={splitted:!0},Q.stagger="center"===q||"edge"===q?l({each:Y,offset:Y/2,from:q}):{each:Y,from:q},Q.duration=z,void 0!==J&&(void 0!==J.opacity&&(r.ISM||window.isSafari11)&&(J.opacity=Math.max(.001,parseFloat(J.opacity))),delete J.dir),h.fff?A.add(D.fromTo(V,J,Q),0):A.add(D.to(V,Q),0),G=Math.max(G,V.length*Y)}if(z+=G,void 0===t&&(t="isometric"===r[o].perspectiveType?0:"local"===r[o].perspectiveType?void 0!==H.transformPerspective?H.transformPerspective:h.fff&&void 0!==E.transfromPerspective?E.transfromPerspective:r[o].perspective:r[o].perspective),h.knowTransformPerspective=t,h.fsom&&(void 0!==H.filter||h.fff&&void 0!==E.filter)?(F.filter=H.filter,F["-webkit-filter"]=H.filter,delete H.filter,delete H["-webkit-filter"],h.fff&&void 0!==E.filter&&((N=N||{}).filter=E.filter,N["-webkit-filter"]=E.filter,delete E.filter,delete E["-webkit-filter"]),h.forceFsom=!0):h.forceFsom=!1,h.useMaskAnimation=h.pxundermask||void 0!==F&&(void 0!==C&&"hidden"===C.mask.overflow||"hidden"===T.mask.overflow),h.useMaskAnimation||h.forceFsom)h.useMaskAnimation?A.add(tpGS.gsap.to(h.m,.001,{overflow:"hidden"}),0):A.add(tpGS.gsap.to(h.m,.001,{overflow:"visible"}),0),"column"===h.type&&h.useMaskAnimation&&A.add(tpGS.gsap.to(h.cbgmask,.001,{overflow:"hidden"}),0),h.btrans&&(N&&(N.rotationX=h.btrans.rX,N.rotationY=h.btrans.rY,N.rotationZ=h.btrans.rZ,N.opacity=h.btrans.o),F.rotationX=h.btrans.rX,F.rotationY=h.btrans.rY,F.rotationZ=h.btrans.rZ,F.opacity=h.btrans.o),h.fff?A.add(tpGS.gsap.fromTo([h.m,h.cbgmask],z,r.clone(N),r.clone(F)),.001):A.add(tpGS.gsap.to([h.m,h.cbgmask],z,r.clone(F)),.001);else if(void 0!==h.btrans){var Z={x:0,y:0,filter:"none",opacity:h.btrans.o,rotationX:h.btrans.rX,rotationY:h.btrans.rY,rotationZ:h.btrans.rZ,overflow:"visible"};0===h.btrans.rX&&0==h.btrans.rY||(h.maskHasPerspective=!0,Z.transformPerspective=t),A.add(tpGS.gsap.to(h.m,.001,Z),0)}else A.add(tpGS.gsap.to(h.m,.001,{clearProps:"transform",overflow:"hidden"==h.ofHidOnHov?"hidden":"visible"}),0);H.force3D="auto",h.fff?(H.visibility="visible",void 0!==h.cbg&&A.fromTo(h.cbg,z,E,H,0),r[o].BUG_safari_clipPath&&(E.clipPath||H.clipPath||h.spike),void 0!==h.cbg&&"column"===h.type?A.fromTo(P,z,s(E),s(H),0):A.fromTo(P,z,E,H,0),A.invalidate()):("frame_999"!==h.frame&&(H.visibility="visible"),void 0!==h.cbg&&A.to(h.cbg,z,H,0),void 0!==h.cbg&&"column"===h.type?A.to(P,z,s(H),0):A.to(P,z,H,0)),void 0!==j&&"object"!=typeof j&&"function"!=typeof j&&j.indexOf("SFXBounce")>=0&&A.to(P,z,{scaleY:.5,scaleX:1.3,ease:H.ease+"-squash",transformOrigin:"bottom"},1e-4);var K="trigger"!==e.mode&&(!0!==f&&"skiprest"!==f||"rebuild"!==e.mode)||e.frame===I||void 0===T.timeline.start||!r.isNumeric(T.timeline.start)?"+=0"===T.timeline.start||void 0===T.timeline.start?"+=0.05":parseInt(T.timeline.start,0)/1e3:"+="+parseInt(T.timeline.startRelative,0)/1e3;h.timeline.addLabel(I,K),h.timeline.add(A,K),h.timeline.addLabel(I+"_end","+=0.01"),A.eventCallback("onStart",c,[{id:o,frame:I,L:a,tPE:t}]),"true"==h.animationonscroll||1==h.animationonscroll?(A.eventCallback("onUpdate",p,[{id:o,frame:I,L:a}]),A.smoothChildTiming=!0):A.eventCallback("onUpdate",p,[{id:o,frame:I,L:a}]),A.eventCallback("onComplete",g,[{id:o,frame:I,L:a,tPE:t}])}}}if(void 0!==h.frames.loop){var $=parseInt(h.frames.loop.timeline.speed,0)/1e3,ee=parseInt(h.frames.loop.timeline.start)/1e3||0,ie="trigger"!==e.mode&&"frame_999"!==e.frame||"frame_999"!==e.frame?.2:0,te=ee+ie;h.loop={root:tpGS.gsap.timeline({}),preset:tpGS.gsap.timeline({}),move:tpGS.gsap.timeline({repeat:-1,yoyo:h.frames.loop.timeline.yoyo_move}),rotate:tpGS.gsap.timeline({repeat:-1,yoyo:h.frames.loop.timeline.yoyo_rotate}),scale:tpGS.gsap.timeline({repeat:-1,yoyo:h.frames.loop.timeline.yoyo_scale}),filter:tpGS.gsap.timeline({repeat:-1,yoyo:h.frames.loop.timeline.yoyo_filter})};var ae=h.frames.loop.frame_0,oe=h.frames.loop.frame_999,re="blur("+parseInt(ae.blur||0,0)+"px) grayscale("+parseInt(ae.grayscale||0,0)+"%) brightness("+parseInt(ae.brightness||100,0)+"%)",se="blur("+(oe.blur||0)+"px) grayscale("+(oe.grayscale||0)+"%) brightness("+(oe.brightness||100)+"%)";if(h.loop.root.add(h.loop.preset,0),h.loop.root.add(h.loop.move,ie),h.loop.root.add(h.loop.rotate,ie),h.loop.root.add(h.loop.scale,ie),h.loop.root.add(h.loop.filter,ie),"blur(0px) grayscale(0%) brightness(100%)"===re&&"blur(0px) grayscale(0%) brightness(100%)"===se&&(re="none",se="none"),oe.originX=ae.originX,oe.originY=ae.originY,oe.originZ=ae.originZ,void 0===t&&(t="isometric"===r[o].perspectiveType?0:"local"===r[o].perspectiveType&&void 0!==H?void 0!==H.transformPerspective?H.transformPerspective:h.fff&&void 0!==E.transfromPerspective?E.transfromPerspective:r[o].perspective:r[o].perspective),h.frames.loop.timeline.curved){var ne=parseInt(h.frames.loop.timeline.radiusAngle,0)||0,de=[{x:(ae.x-ae.xr)*r[o].CM.w,y:0,z:(ae.z-ae.zr)*r[o].CM.w},{x:0,y:(ae.y+ae.yr)*r[o].CM.w,z:0},{x:(oe.x+oe.xr)*r[o].CM.w,y:0,z:(oe.z+oe.zr)*r[o].CM.w},{x:0,y:(oe.y-oe.yr)*r[o].CM.w,z:0}],le={type:"thru",curviness:h.frames.loop.timeline.curviness,path:[],autoRotate:h.frames.loop.timeline.autoRotate};for(var ce in de)de.hasOwnProperty(ce)&&(le.path[ce]=de[ne],ne=++ne==de.length?0:ne);("trigger"!==e.mode&&"frame_999"!==e.frame||"frame_999"!==e.frame)&&h.loop.preset.fromTo(h.lp,ie,{"-webkit-filter":re,filter:re,x:0,y:0,z:0,minWidth:h._incolumn||h._ingroup?"100%":void 0===h.eow?0:h.eow,minHeight:h._incolumn||h._ingroup?"100%":void 0===h.eoh?0:h.eoh,scaleX:1,scaleY:1,skewX:0,skewY:0,rotationX:0,rotationY:0,rotationZ:0,transformPerspective:t,transformOrigin:oe.originX+" "+oe.originY+" "+oe.originZ,opacity:1},d({x:le.path[3].x,y:le.path[3].y,z:le.path[3].z,scaleX:ae.scaleX,skewX:ae.skewX,skewY:ae.skewY,scaleY:ae.scaleY,rotationX:ae.rotationX,rotationY:ae.rotationY,rotationZ:ae.rotationZ,"-webkit-filter":re,filter:re,ease:"sine.inOut",opacity:ae.opacity}),0),n(le)&&h.loop.move.to(h.lp,h.frames.loop.timeline.yoyo_move?$/2:$,{motionPath:le,ease:h.frames.loop.timeline.ease})}else("trigger"!==e.mode&&"frame_999"!==e.frame||"frame_999"!==e.frame)&&h.loop.preset.fromTo(h.lp,ie,{"-webkit-filter":re,filter:re,x:0,y:0,z:0,minWidth:h._incolumn||h._ingroup?"100%":void 0===h.eow?0:h.eow,minHeight:h._incolumn||h._ingroup?"100%":void 0===h.eoh?0:h.eoh,scaleX:1,scaleY:1,skewX:0,skewY:0,rotationX:0,rotationY:0,rotationZ:0,transformPerspective:t,transformOrigin:oe.originX+" "+oe.originY+" "+oe.originZ,opacity:1},d({x:ae.x*r[o].CM.w,y:ae.y*r[o].CM.w,z:ae.z*r[o].CM.w,scaleX:ae.scaleX,skewX:ae.skewX,skewY:ae.skewY,scaleY:ae.scaleY,rotationX:ae.rotationX,rotationY:ae.rotationY,rotationZ:ae.rotationZ,ease:"sine.out",opacity:ae.opacity,"-webkit-filter":re,filter:re}),0),h.loop.move.to(h.lp,h.frames.loop.timeline.yoyo_move?$/2:$,{x:oe.x*r[o].CM.w,y:oe.y*r[o].CM.w,z:oe.z*r[o].CM.w,ease:h.frames.loop.timeline.ease});h.loop.rotate.to(h.lp,h.frames.loop.timeline.yoyo_rotate?$/2:$,{rotationX:oe.rotationX,rotationY:oe.rotationY,rotationZ:oe.rotationZ,ease:h.frames.loop.timeline.ease}),h.loop.scale.to(h.lp,h.frames.loop.timeline.yoyo_scale?$/2:$,d({scaleX:oe.scaleX,scaleY:oe.scaleY,skewX:oe.skewX,skewY:oe.skewY,ease:h.frames.loop.timeline.ease}));var pe={opacity:oe.opacity||1,ease:h.frames.loop.timeline.ease,"-webkit-filter":se,filter:se};h.loop.filter.to(h.lp,h.frames.loop.timeline.yoyo_filter?$/2:$,pe),h.timeline.add(h.loop.root,te)}if(void 0!==h.frames.frame_hover&&("start"===e.mode||void 0===h.hoverframeadded)){h.hoverframeadded=!0;var ge=h.frames.frame_hover.timeline.speed/1e3;ge=0===ge?1e-5:ge,h.hoverlistener||(h.hoverlistener=!0,r.document.on("mouseenter mousemove",("column"===h.type?"#"+h.cbg[0].id+",":"")+"#"+h.c[0].id,function(e){if("mousemove"!==e.type||!0!==h.ignoremousemove){if(h.animationonscroll||h.readyForHover){if(h.elementHovered=!0,h.hovertimeline||(h.hovertimeline=tpGS.gsap.timeline({paused:!0})),0==h.hovertimeline.progress()&&(void 0===h.lastHoveredTimeStamp||(new Date).getTime()-h.lastHoveredTimeStamp>150)&&(h.ignoremousemove=!0,h.ofHidOnHov=h.frames.frame_hover.mask?"hidden":"visible",h.hovertimeline.to([h.m,h.cbgmask],ge,{overflow:h.ofHidOnHov},0),"column"===h.type&&h.hovertimeline.to(h.cbg,ge,r.clone(m(h.frames.frame_hover,h.cbg,{bgCol:h.bgcol,bg:h.styleProps.background})),0),"text"!==h.type&&"button"!==h.type||void 0===h.splitText||!1===h.splitText||h.hovertimeline.to([h.splitText.lines,h.splitText.words,h.splitText.chars],ge,{color:h.frames.frame_hover.color,ease:h.frames.frame_hover.transform.ease},0),"column"===h.type?h.hovertimeline.to(h.c,ge,s(r.clone(m(h.frames.frame_hover,h.c,{bgCol:h.bgcol,bg:h.styleProps.background}))),0):h.hovertimeline.to(h.c,ge,r.clone(m(h.frames.frame_hover,h.c,{bgCol:h.bgcol,bg:h.styleProps.background})),0),"svg"===h.type)){h.svgHTemp=r.clone(h.svgH),delete h.svgHTemp.svgAll;var i=Array.isArray(h.svgHTemp.fill)?h.svgHTemp.fill[r[o].level]:h.svgHTemp.fill;h.svgHTemp.fill=i,h.hovertimeline.to(h.svg,ge,h.svgHTemp,0),h.svg.length<=0&&(h.svg=a.find("svg")),h.svgPath.length<=0&&(h.svgPath=h.svg.find(h.svgI.svgAll?"path, circle, ellipse, line, polygon, polyline, rect":"path")),h.hovertimeline.to(h.svgPath,ge,{fill:i},0)}h.hovertimeline.play()}h.lastHoveredTimeStamp=(new Date).getTime()}}),r.document.on("mouseleave",("column"===h.type?"#"+h.cbg[0].id+",":"")+"#"+h.c[0].id,function(){h.elementHovered=!1,(h.animationonscroll||h.readyForHover)&&void 0!==h.hovertimeline&&(h.hovertimeline.reverse(),h.hovertimeline.eventCallback("onReverseComplete",r.hoverReverseDone,[{id:o,L:a}]))}))}if(M||(h.lastRequestedMainFrame="start"===e.mode?"frame_1":"continue"===e.mode?void 0===e.frame?h.currentframe:e.frame:h.lastRequestedMainFrame),void 0!==e.totime?h.tSTART=e.totime:void 0!==v&&void 0===e.frame?h.tSTART=v:void 0!==e.frame?h.tSTART=e.frame:h.tSTART=0,0===h.tSTART&&void 0===h.startedAnimOnce&&void 0===h.leftstage&&void 0===h.startedAnimOnce&&!0===h.hideonfirststart&&"preset"===e.mode&&(r[o]._L[a[0].id].pVisRequest=0,h.hideonfirststart=!1),"frame_999"!==h.tSTART&&"frame_999"!==h.triggeredFrame||!h.leftstage&&void 0!==h.startedAnimOnce){if("true"!=h.animationonscroll&&1!=h.animationonscroll?h.timeline.play(h.tSTART):h.timeline.time(h.tSTART),jQuery.inArray(h.type,["group","row","column"])>=0&&void 0!==e.frame){if(void 0===h.childrenJS)for(var W in h.childrenJS={},r[o]._L)void 0!==r[o]._L[W]._lig&&void 0!==r[o]._L[W]._lig[0]&&r[o]._L[W]._lig[0].id===a[0].id&&r[o]._L[W]._lig[0].id!==r[o]._L[W].c[0].id&&(h.childrenJS[r[o]._L[W].c[0].id]=r[o]._L[W].c);e.frame="0"==e.frame?"frame_0":e.frame,e.frame="1"==e.frame?"frame_1":e.frame,e.frame="999"==e.frame?"frame_999":e.frame;var ue=void 0===e.totime?void 0!==h.frames[e.frame].timeline.startAbsolute?parseInt(h.frames[e.frame].timeline.startAbsolute,0)/1e3:void 0!==h.frames[e.frame].timeline.start?r.isNumeric(h.frames[e.frame].timeline.start)?parseInt(h.frames[e.frame].timeline.start,0)/1e3:0:.001:e.totime;if(!0===e.updateChildren)for(var W in h.childrenJS)h.childrenJS.hasOwnProperty(W)&&r.renderLayerAnimation({layer:h.childrenJS[W],fastforward:!1,id:o,mode:"continue",updateChildren:!0,totime:ue});else for(var W in h.childrenJS)h.childrenJS.hasOwnProperty(W)&&r[o]._L[W].pausedTrueParrent&&(r.renderLayerAnimation({layer:h.childrenJS[W],fastforward:!1,id:o,mode:"continue",updateChildren:!0,totime:ue}),r[o]._L[W].pausedTrueParrent=!1)}}else;}}});var s=function(e){var i=r.clone(e);return delete i.backgroundColor,delete i.background,delete i.backgroundImage,delete i.borderSize,delete i.borderStyle,delete i["backdrop-filter"],i},n=function(e){if(void 0!==e&&void 0!==e.path&&Array.isArray(e.path)){var i=0,t=0;for(var a in e.path)!e.path.hasOwnProperty(a)||i>0||t>0||(i+=e.path[a].x,t+=e.path[a].y);return 0!=i||0!=t}},d=function(e){return void 0===e.skewX&&delete e.skewX,void 0===e.skewY&&delete e.skewY,e},l=function(e){e.from="edge"===e.from?"edges":e.from;var i=tpGS.gsap.utils.distribute(e);return function(t,a,o){return i(t,a,o)+(t<=o.length/2?0:e.offset||0)}},c=function(e){r[e.id].BUG_safari_clipPath&&e.L[0].classList.remove("rs-pelock"),(r[e.id]._L[e.L[0].id]._ingroup||r[e.id]._L[e.L[0].id]._incolumn||r[e.id]._L[e.L[0].id]._inrow)&&void 0!==r[e.id]._L[r[e.id]._L[e.L[0].id]._ligid]&&void 0!==r[e.id]._L[r[e.id]._L[e.L[0].id]._ligid].timeline&&(r[e.id]._L[r[e.id]._L[e.L[0].id]._ligid].timeline.isActive()||void 0===r[e.id]._L[e.L[0].id]||void 0===r[e.id]._L[e.L[0].id].frames[r[e.id]._L[e.L[0].id].timeline.currentLabel()]||(null==r[e.id]._L[r[e.id]._L[e.L[0].id]._ligid].timezone||r[e.id]._L[r[e.id]._L[e.L[0].id]._ligid].timezone.to<=parseInt(r[e.id]._L[e.L[0].id].frames[r[e.id]._L[e.L[0].id].timeline.currentLabel()].timeline.start,0))&&!0!==r[e.id]._L[e.L[0].id].animOnScrollForceDisable&&(r[e.id]._L[e.L[0].id].pausedTrueParrent=!0,r[e.id]._L[e.L[0].id].timeline.pause()));var i=r[e.id]._L[e.L[0].id],t=i.hovertimeline;t&&t.time()>0&&(t.pause(),t.time(0),t.kill(),delete i.hovertimeline),delete r[e.id]._L[e.L[0].id].childrenAtStartNotVisible,r[e.id]._L[e.L[0].id].pVisRequest=1;var a={layer:e.L};r[e.id]._L[e.L[0].id].ignoremousemove=!1,r[e.id]._L[e.L[0].id].leftstage=!1,r[e.id]._L[e.L[0].id].readyForHover=!1,void 0!==r[e.id]._L[e.L[0].id].layerLoop&&r[e.id]._L[e.L[0].id].layerLoop.from===e.frame&&r[e.id]._L[e.L[0].id].layerLoop.count++,"frame_1"===e.frame&&"Safari"===window.RSBrowser&&void 0===r[e.id]._L[e.L[0].id].safariRenderIssue&&(tpGS.gsap.set([r[e.id]._L[e.L[0].id].c],{opacity:1}),r[e.id]._L[e.L[0].id].safariRenderIssue=!0),"frame_999"!==e.frame&&(r[e.id]._L[e.L[0].id].startedAnimOnce=!0,r[e.id]._L[e.L[0].id].pPeventsRequest=r[e.id]._L[e.L[0].id].noPevents?"none":"auto"),a.eventtype="frame_0"===e.frame||"frame_1"===e.frame?"enterstage":"frame_999"===e.frame?"leavestage":"framestarted",r[e.id]._L[e.L[0].id]._ingroup&&!0!==r[e.id]._L[r[e.id]._L[e.L[0].id]._lig[0].id].frames.frame_1.timeline.waitoncall&&(r[e.id]._L[r[e.id]._L[e.L[0].id]._lig[0].id].pVisRequest=1),r.requestLayerUpdates(e.id,a.eventtype,e.L[0].id,void 0!==r[e.id]._L[e.L[0].id].frames[e.frame]&&void 0!==r[e.id]._L[e.L[0].id].frames[e.frame].timeline&&0==r[e.id]._L[e.L[0].id].frames[e.frame].timeline.usePerspective?e.tPE:"ignore"),a.id=e.id,a.layerid=e.L[0].id,a.layertype=r[e.id]._L[e.L[0].id].type,a.frame_index=e.frame,a.layersettings=r[e.id]._L[e.L[0].id],r[e.id].c.trigger("revolution.layeraction",[a]),"enterstage"===a.eventtype&&r.toggleState(r[e.id]._L[e.L[0].id].layertoggledby),"frame_1"===e.frame&&r.animcompleted(e.L,e.id)},p=function(e){"frame_999"===e.frame&&(r[e.id]._L[e.L[0].id].pVisRequest=1,r[e.id]._L[e.L[0].id].pPeventsRequest=r[e.id]._L[e.L[0].id].noPevents?"none":"auto",r[e.id]._L[e.L[0].id].leftstage=!1,window.requestAnimationFrame(function(){r.requestLayerUpdates(e.id,"update",e.L[0].id)}))},g=function(e){var i=!0;if("column"===r[e.id]._L[e.L[0].id].type||"row"===r[e.id]._L[e.L[0].id].type||"group"===r[e.id]._L[e.L[0].id].type){var t=r[e.id]._L[e.L[0].id].timeline.currentLabel(),a=jQuery.inArray(t,r[e.id]._L[e.L[0].id].ford);a++,a=r[e.id]._L[e.L[0].id].ford.length>a?r[e.id]._L[e.L[0].id].ford[a]:t,void 0!==r[e.id]._L[e.L[0].id].frames[a]&&void 0!==r[e.id]._L[e.L[0].id].frames[t]&&(r[e.id]._L[e.L[0].id].timezone={from:parseInt(r[e.id]._L[e.L[0].id].frames[t].timeline.startAbsolute,0),to:parseInt(r[e.id]._L[e.L[0].id].frames[a].timeline.startAbsolute,0)})}if("frame_999"!==e.frame&&r[e.id].isEdge&&"shape"===r[e.id]._L[e.L[0].id].type){var o=r[e.id]._L[e.L[0].id].c[0].style.opacity;r[e.id]._L[e.L[0].id].c[0].style.opacity=o-1e-4,tpGS.gsap.set(r[e.id]._L[e.L[0].id].c[0],{opacity:o-.001,delay:.05}),tpGS.gsap.set(r[e.id]._L[e.L[0].id].c[0],{opacity:o,delay:.1})}var s={};s.layer=e.L,s.eventtype="frame_0"===e.frame||"frame_1"===e.frame?"enteredstage":"frame_999"===e.frame?"leftstage":"frameended",r[e.id]._L[e.L[0].id].readyForHover=!0,s.layertype=r[e.id]._L[e.L[0].id].type,s.frame_index=e.frame,s.layersettings=r[e.id]._L[e.L[0].id],r[e.id].c.trigger("revolution.layeraction",[s]),"frame_999"===e.frame&&"leftstage"===s.eventtype?(r[e.id]._L[e.L[0].id].leftstage=!0,r[e.id]._L[e.L[0].id].pVisRequest=0,r[e.id]._L[e.L[0].id].pPeventsRequest="none",i=!1,window.requestAnimationFrame(function(){r.requestLayerUpdates(e.id,"leftstage",e.L[0].id)})):(e.L[0].id,void 0!==r[e.id]._L[e.L[0].id].frames[e.frame]&&void 0!==r[e.id]._L[e.L[0].id].frames[e.frame].timeline&&0==r[e.id]._L[e.L[0].id].frames[e.frame].timeline.usePerspective&&window.requestAnimationFrame(function(){r.requestLayerUpdates(e.id,"frameended",e.L[0].id,e.tPE)})),"leftstage"===s.eventtype&&void 0!==r[e.id].videos&&void 0!==r[e.id].videos[e.L[0].id]&&r.stopVideo&&r.stopVideo(e.L,e.id),"column"===r[e.id]._L[e.L[0].id].type&&tpGS.gsap.to(r[e.id]._L[e.L[0].id].cbg,.01,{visibility:"visible"}),"leftstage"===s.eventtype&&(r.unToggleState(e.layertoggledby),"video"===r[e.id]._L[e.L[0].id].type&&r.resetVideo&&setTimeout(function(){r.resetVideo(e.L,e.id)},100)),r[e.id].BUG_safari_clipPath&&!i&&e.L[0].classList.add("rs-pelock"),void 0!==r[e.id]._L[e.L[0].id].layerLoop&&r[e.id]._L[e.L[0].id].layerLoop.to===e.frame&&(-1==r[e.id]._L[e.L[0].id].layerLoop.repeat||r[e.id]._L[e.L[0].id].layerLoop.repeat>r[e.id]._L[e.L[0].id].layerLoop.count)&&r.renderLayerAnimation({layer:r[e.id]._L[e.L[0].id].c,frame:r[e.id]._L[e.L[0].id].layerLoop.from,updateChildren:r[e.id]._L[e.L[0].id].layerLoop.children,mode:"continue",fastforward:!0===r[e.id]._L[e.L[0].id].layerLoop.keep,id:e.id})},u=function(e){if(void 0===e)return"";var i="";return r.isChrome8889&&0===e.blur&&(e.blur=.05),i=void 0!==e.blur?"blur("+(e.blur||0)+"px)":"",i+=void 0!==e.grayscale?(i.length>0?" ":"")+"grayscale("+(e.grayscale||0)+"%)":"",""===(i+=void 0!==e.brightness?(i.length>0?" ":"")+"brightness("+(e.brightness||100)+"%)":"")?"none":i},h=function(e){if(void 0===e)return"";var i="";return r.isChrome8889&&0===e.b_blur&&(e.b_blur=.05),i=void 0!==e.b_blur?"blur("+(e.b_blur||0)+"px)":"",i+=void 0!==e.b_grayscale?(i.length>0?" ":"")+"grayscale("+(e.b_grayscale||0)+"%)":"",i+=void 0!==e.b_sepia?(i.length>0?" ":"")+"sepia("+(e.b_sepia||0)+"%)":"",i+=void 0!==e.b_invert?(i.length>0?" ":"")+"invert("+(e.b_invert||0)+"%)":"",""===(i+=void 0!==e.b_brightness?(i.length>0?" ":"")+"brightness("+(e.b_brightness||100)+"%)":"")?"none":i},m=function(e,i,t){var a,o=r.clone(e.transform);if((o.originX||o.originY||o.originZ)&&(o.transformOrigin=(void 0===o.originX?"50%":o.originX)+" "+(void 0===o.originY?"50%":o.originY)+" "+(void 0===o.originZ?"50%":o.originZ),delete o.originX,delete o.originY,delete o.originZ),void 0!==e&&void 0!==e.filter&&(o.filter=u(e.filter),o["-webkit-filter"]=o.filter),o.color=void 0===o.color?"rgba(255,255,255,1)":o.color,o.force3D="auto",void 0!==o.borderRadius&&((a=o.borderRadius.split(" ")).length,o.borderTopLeftRadius=a[0],o.borderTopRightRadius=a[1],o.borderBottomRightRadius=a[2],o.borderBottomLeftRadius=a[3],delete o.borderRadius),void 0!==o.borderWidth&&((a=o.borderWidth.split(" ")).length,o.borderTopWidth=a[0],o.borderRightWidth=a[1],o.borderBottomWidth=a[2],o.borderLeftWidth=a[3],delete o.borderWidth),void 0===t.bg||-1===t.bg.indexOf("url")){var s=-1!==t.bgCol.search("gradient"),n=o.backgroundImage&&"string"==typeof o.backgroundImage&&-1!==o.backgroundImage.search("gradient");n&&s?(180!==f(t.bgCol)&&180==f(o.backgroundImage)&&(o.backgroundImage=v(o.backgroundImage,180)),o.backgroundImage=tpGS.getSSGColors(t.bgCol,o.backgroundImage,void 0===o.gs?"fading":o.gs).to):n&&!s?o.backgroundImage=tpGS.getSSGColors(t.bgCol,o.backgroundImage,void 0===o.gs?"fading":o.gs).to:!n&&s&&(o.backgroundImage=tpGS.getSSGColors(t.bgCol,o.backgroundColor,void 0===o.gs?"fading":o.gs).to)}return delete o.gs,o},v=function(e,i){var t=(e=e.split("("))[0];return e.shift(),t+"("+i+"deg, "+e.join("(")},f=function(e){if(-1!==e.search("deg,")){var i=e.split("deg,")[0];if(-1!==i.search(/\(/))return parseInt(i.split("(")[1],10)}return 180},w=function(e,i){if(void 0!==e&&e.indexOf("oc:t")>=0)return{};e=void 0===e?"":e.split(";");var t={fill:r.revToResp("#ffffff",r[i].rle),stroke:"transparent","stroke-width":"0px","stroke-dasharray":"0","stroke-dashoffset":"0"};for(var a in e)if(e.hasOwnProperty(a)){var o=e[a].split(":");switch(o[0]){case"c":t.fill=r.revToResp(o[1],r[i].rle,void 0,"||");break;case"sw":t["stroke-width"]=o[1];break;case"sc":t.stroke=o[1];break;case"so":t["stroke-dashoffset"]=o[1];break;case"sa":t["stroke-dasharray"]=o[1];break;case"sall":t.svgAll=o[1]}}return t},y=function(e){return"c"===e?"center":"l"===e?"left":"r"===e?"right":e},b=function(e){var i=r[e.id]._L[e.layer[0].id],t=!1;if(i.splitText&&!1!==i.splitText&&i.splitText.revert(),"text"===i.type||"button"===i.type){for(var a in i.frames)if(void 0!==i.frames[a].chars||void 0!==i.frames[a].words||void 0!==i.frames[a].lines){t=!0;break}i.splitText=!!t&&new tpGS.SplitText(i.c,{type:"lines,words,chars",wordsClass:"rs_splitted_words",linesClass:"rs_splitted_lines",charsClass:"rs_splitted_chars"})}else i.splitText=!1},_=function(e,i,t){if(void 0!==e&&e.indexOf("block")>=0){var a={};switch(0===i[0].getElementsByClassName("tp-blockmask_in").length&&(i.append('
'),i.append('
')),t=void 0===t?"power3.inOut":t,a.ft=[{scaleY:1,scaleX:0,transformOrigin:"0% 50%"},{scaleY:1,scaleX:1,ease:t,immediateRender:!1}],a.t={scaleY:1,scaleX:0,transformOrigin:"100% 50%",ease:t,immediateRender:!1},a.bmask_in=i.find(".tp-blockmask_in"),a.bmask_out=i.find(".tp-blockmask_out"),a.type="block",e){case"blocktoleft":case"blockfromright":a.ft[0].transformOrigin="100% 50%",a.t.transformOrigin="0% 50%";break;case"blockfromtop":case"blocktobottom":a.ft=[{scaleX:1,scaleY:0,transformOrigin:"50% 0%"},{scaleX:1,scaleY:1,ease:t,immediateRender:!1}],a.t={scaleX:1,scaleY:0,transformOrigin:"50% 100%",ease:t,immediateRender:!1};break;case"blocktotop":case"blockfrombottom":a.ft=[{scaleX:1,scaleY:0,transformOrigin:"50% 100%"},{scaleX:1,scaleY:1,ease:t,immediateRender:!1}],a.t={scaleX:1,scaleY:0,transformOrigin:"50% 0%",ease:t,immediateRender:!1}}return a.ft[1].overwrite="auto",a.t.overwrite="auto",a}return!1},S=function(e,i,t,a,o){return 0===r[o].sdir||void 0===i?e:("mask"===t?a="x"===a?"mX":"y"===a?"mY":a:"chars"===t?a="x"===a?"cX":"y"===a?"cY":"dir"===a?"cD":a:"words"===t?a="x"===a?"wX":"y"===a?"wY":"dir"===a?"wD":a:"lines"===t&&(a="x"===a?"lX":"y"===a?"lY":"dir"===a?"lD":a),void 0===i[a]||!1===i[a]?e:void 0!==i&&!0===i[a]?"t"===e||"top"===e?"b":"b"===e||"bottom"===e?"t":"l"===e||"left"===e?"r":"r"===e||"right"===e?"l":-1*parseFloat(e)+((""+e).indexOf("px")>=0?"px":(""+e).indexOf("%")>=0?"%":""):void 0)},x=function(e){var i,t=r[e.id]._L[e.layer[0].id],a=void 0===e.source?r.clone(e.frame.transform):r.clone(e.frame[e.source]),o={originX:"50%",originY:"50%",originZ:"0"},s=void 0!==t._lig?r[e.id]._L[t._lig[0].id].eow:r[e.id].conw,n=void 0!==t._lig?r[e.id]._L[t._lig[0].id].eoh:r[e.id].conh;for(var d in a)if(a.hasOwnProperty(d)){if(a[d]="object"==typeof a[d]?a[d][r[e.id].level]:a[d],"inherit"===a[d]||"delay"===d||"direction"===d||"use"===d)delete a[d];else if("originX"===d||"originY"===d||"originZ"===d)o[d]=a[d],delete a[d];else if(r.isNumeric(a[d],0))a[d]=S(a[d],e.frame.reverse,e.target,d,e.id,e.id);else if("r"===a[d][0]&&"a"===a[d][1]&&"("===a[d][3])a[d]=a[d].replace("ran","random");else if(a[d].indexOf("cyc(")>=0){var l=a[d].replace("cyc(","").replace(")","").replace("[","").replace("]","").split("|");a[d]=new function(e){return tpGS.gsap.utils.wrap(l,void 0)}}else if(a[d].indexOf("%")>=0&&r.isNumeric(i=parseInt(a[d],0)))a[d]="x"===d?S((t.eow||0)*i/100,e.frame.reverse,e.target,d,e.id):"y"===d?S((t.eoh||0)*i/100,e.frame.reverse,e.target,d,e.id):a[d];else{a[d]=a[d].replace("[","").replace("]",""),a[d]=S(a[d],e.frame.reverse,e.target,d,e.id,e.id);var c={t:0,b:0};switch("row"===t.type&&("rev_row_zone_top"===t.zone&&void 0!==r[e.id].topZones[t.slideIndex]&&void 0!==r[e.id].topZones[t.slideIndex][0]?c={t:0,b:0}:"rev_row_zone_middle"===t.zone&&void 0!==r[e.id].middleZones[t.slideIndex]&&void 0!==r[e.id].middleZones[t.slideIndex][0]?c={t:Math.round(r[e.id].module.height/2-r[e.id].middleZones[t.slideIndex][0].offsetHeight/2),b:Math.round(r[e.id].module.height/2+r[e.id].middleZones[t.slideIndex][0].offsetHeight/2)}:"rev_row_zone_bottom"===t.zone&&void 0!==r[e.id].bottomZones[t.slideIndex]&&void 0!==r[e.id].bottomZones[t.slideIndex][0]&&(c={t:Math.round(r[e.id].module.height-r[e.id].bottomZones[t.slideIndex][0].offsetHeight),b:r[e.id].module.height+r[e.id].bottomZones[t.slideIndex][0].offsetHeight})),a[d]){case"t":case"top":a[d]=0-(t.eoh||0)-("column"===t.type?0:t.calcy||0)-r.getLayerParallaxOffset(e.id,e.layer[0].id,"v")-("row"===t.type&&void 0!==t.marginTop?t.marginTop[r[e.id].level]:0)-c.b;break;case"b":case"bottom":a[d]=n-("column"===t.type||"row"===t.type?0:t.calcy||0)+r.getLayerParallaxOffset(e.id,e.layer[0].id,"v")-c.t;break;case"l":case"left":a[d]=0-("row"===t.type?t.pow:t.eow||0)-("column"===t.type?0:"row"===t.type?t.rowcalcx:t.calcx||0)-r.getLayerParallaxOffset(e.id,e.layer[0].id,"h");break;case"r":case"right":a[d]=s-("column"===t.type?0:"row"===t.type?t.rowcalcx:t.calcx||0)+r.getLayerParallaxOffset(e.id,e.layer[0].id,"h");break;case"m":case"c":case"middle":case"center":a[d]="x"===d?S(s/2-("column"===t.type?0:t.calcx||0)-(t.eow||0)/2,e.frame.reverse,e.target,d,e.id):"y"===d?S(n/2-("column"===t.type?0:t.calcy||0)-(t.eoh||0)/2,e.frame.reverse,e.target,d,e.id):a[d]}}"skewX"===d&&void 0!==a[d]&&(a.scaleY=void 0===a.scaleY?1:parseFloat(a.scaleY),a.scaleY*=Math.cos(parseFloat(a[d])*tpGS.DEG2RAD)),"skewY"===d&&void 0!==a[d]&&(a.scaleX=void 0===a.scaleX?1:parseFloat(a.scaleX),a.scaleX*=Math.cos(parseFloat(a[d])*tpGS.DEG2RAD))}if(a.transformOrigin=o.originX+" "+o.originY+" "+o.originZ,!r[e.id].BUG_ie_clipPath&&void 0!==a.clip&&void 0!==t.clipPath&&t.clipPath.use){a.clipB=null==a.clipB?100:a.clipB;var p="rectangle"==t.clipPath.type,g=parseInt(a.clip,0),m=100-parseInt(a.clipB,0),v=Math.round(g/2);switch(t.clipPath.origin){case"invh":a.clipPath="polygon(0% 0%, 0% 100%, "+g+"% 100%, "+g+"% 0%, 100% 0%, 100% 100%, "+m+"% 100%, "+m+"% 0%, 0% 0%)";break;case"invv":a.clipPath="polygon(100% 0%, 0% 0%, 0% "+g+"%, 100% "+g+"%, 100% 100%, 0% 100%, 0% "+m+"%, 100% "+m+"%, 100% 0%)";break;case"cv":a.clipPath=p?"polygon("+(50-v)+"% 0%, "+(50+v)+"% 0%, "+(50+v)+"% 100%, "+(50-v)+"% 100%)":"circle("+g+"% at 50% 50%)";break;case"ch":a.clipPath=p?"polygon(0% "+(50-v)+"%, 0% "+(50+v)+"%, 100% "+(50+v)+"%, 100% "+(50-v)+"%)":"circle("+g+"% at 50% 50%)";break;case"l":a.clipPath=p?"polygon(0% 0%, "+g+"% 0%, "+g+"% 100%, 0% 100%)":"circle("+g+"% at 0% 50%)";break;case"r":a.clipPath=p?"polygon("+(100-g)+"% 0%, 100% 0%, 100% 100%, "+(100-g)+"% 100%)":"circle("+g+"% at 100% 50%)";break;case"t":a.clipPath=p?"polygon(0% 0%, 100% 0%, 100% "+g+"%, 0% "+g+"%)":"circle("+g+"% at 50% 0%)";break;case"b":a.clipPath=p?"polygon(0% 100%, 100% 100%, 100% "+(100-g)+"%, 0% "+(100-g)+"%)":"circle("+g+"% at 50% 100%)";break;case"lt":a.clipPath=p?"polygon(0% 0%,"+2*g+"% 0%, 0% "+2*g+"%)":"circle("+g+"% at 0% 0%)";break;case"lb":a.clipPath=p?"polygon(0% "+(100-2*g)+"%, 0% 100%,"+2*g+"% 100%)":"circle("+g+"% at 0% 100%)";break;case"rt":a.clipPath=p?"polygon("+(100-2*g)+"% 0%, 100% 0%, 100% "+2*g+"%)":"circle("+g+"% at 100% 0%)";break;case"rb":a.clipPath=p?"polygon("+(100-2*g)+"% 100%, 100% 100%, 100% "+(100-2*g)+"%)":"circle("+g+"% at 100% 100%)";break;case"clr":a.clipPath=p?"polygon(0% 0%, 0% "+g+"%, "+(100-g)+"% 100%, 100% 100%, 100% "+(100-g)+"%, "+g+"% 0%)":"circle("+g+"% at 50% 50%)";break;case"crl":a.clipPath=p?"polygon(0% "+(100-g)+"%, 0% 100%, "+g+"% 100%, 100% "+g+"%, 100% 0%, "+(100-g)+"% 0%)":"circle("+g+"% at 50% 50%)"}!0!==r.isFirefox(e.id)&&(a["-webkit-clip-path"]=a.clipPath),a["clip-path"]=a.clipPath,delete a.clip,delete a.clipB}else delete a.clip;return"mask"!==e.target&&(void 0===e.frame||void 0===e.frame.filter&&!e.forcefilter||(a.filter=u(e.frame.filter),a["-webkit-filter"]=a.filter,r.useBackdrop&&(window.isSafari11?a["-webkit-backdrop-filter"]=h(e.frame.filter):a["backdrop-filter"]=h(e.frame.filter)),window.isSafari11&&void 0!==a.filter&&void 0===a.x&&void 0!==e.frame.filter&&void 0!==e.frame.filter.blur&&(a.x=1e-4)),jQuery.inArray(e.source,["chars","words","lines"])>=0&&(void 0!==e.frame[e.source].blur||e.forcefilter)&&(a.filter=u(e.frame[e.source]),a["-webkit-filter"]=a.filter),delete a.grayscale,delete a.blur,delete a.brightness),a.ease=void 0!==a.ease?a.ease:void 0===a.ease&&void 0!==e.ease||void 0!==a.ease&&void 0!==e.ease&&"inherit"===a.ease?e.ease:e.frame.timeline.ease,a.ease=void 0===a.ease||"default"===a.ease?"power3.inOut":a.ease,a},k=function(e,i,t,a,o){var s,n,d={},l={},c={};for(var p in a=void 0===a?"transform":a,"loop"===o?(c.autoRotate=!1,c.yoyo_filter=!1,c.yoyo_rotate=!1,c.yoyo_move=!1,c.yoyo_scale=!1,c.curved=!1,c.curviness=2,c.ease="none",c.speed=1e3,c.st=0,d.x=0,d.y=0,d.z=0,d.xr=0,d.yr=0,d.zr=0,d.scaleX=1,d.scaleY=1,d.originX="50%",d.originY="50%",d.originZ="0",d.rotationX="0deg",d.rotationY="0deg",d.rotationZ="0deg"):(c.speed=300,t?c.ease="default":d.ease="default"),"sfx"===o&&(d.fxc="#ffffff"),e=e.split(";"))if(e.hasOwnProperty(p)){var g=e[p].split(":");switch(g[0]){case"u":d.use="true"===g[1]||"t"===g[1]||fasle;break;case"c":s=g[1];break;case"fxc":d.fxc=g[1];break;case"bgc":n=g[1];break;case"auto":d.auto="t"===g[1]||void 0===g[1]||"true"===g[1];break;case"o":d.opacity=g[1];break;case"oX":d.originX=g[1];break;case"oY":d.originY=g[1];break;case"oZ":d.originZ=g[1];break;case"sX":d.scaleX=g[1];break;case"sY":d.scaleY=g[1];break;case"skX":d.skewX=g[1];break;case"skY":d.skewY=g[1];break;case"rX":d.rotationX=g[1],0!=g[1]&&"0deg"!==g[1]&&r.addSafariFix(i);break;case"rY":d.rotationY=g[1],0!=g[1]&&"0deg"!==g[1]&&r.addSafariFix(i);break;case"rZ":d.rotationZ=g[1];break;case"sc":d.color=g[1];break;case"se":d.effect=g[1];break;case"bos":d.borderStyle=g[1];break;case"boc":d.borderColor=g[1];break;case"td":d.textDecoration=g[1];break;case"zI":d.zIndex=g[1];break;case"tp":d.transformPerspective="isometric"===r[i].perspectiveType?0:"global"===r[i].perspectiveType?r[i].perspective:g[1];break;case"cp":d.clip=parseInt(g[1],0);break;case"cpb":d.clipB=parseInt(g[1],0);break;case"aR":c.autoRotate="t"==g[1];break;case"rA":c.radiusAngle=g[1];break;case"yyf":c.yoyo_filter="t"==g[1];break;case"yym":c.yoyo_move="t"==g[1];break;case"yyr":c.yoyo_rotate="t"==g[1];break;case"yys":c.yoyo_scale="t"==g[1];break;case"crd":c.curved="t"==g[1];break;case"x":d.x="reverse"===o?"t"===g[1]||!0===g[1]||"true"==g[1]:"loop"===o?parseInt(g[1],0):r.revToResp(g[1],r[i].rle);break;case"y":d.y="reverse"===o?"t"===g[1]||!0===g[1]||"true"==g[1]:"loop"===o?parseInt(g[1],0):r.revToResp(g[1],r[i].rle);break;case"z":d.z="loop"===o?parseInt(g[1],0):r.revToResp(g[1],r[i].rle),0!=g[1]&&r.addSafariFix(i);break;case"bow":d.borderWidth=r.revToResp(g[1],4,0).toString().replace(/,/g," ");break;case"bor":d.borderRadius=r.revToResp(g[1],4,0).toString().replace(/,/g," ");break;case"m":d.mask="t"===g[1]||"f"!==g[1]&&g[1];break;case"iC":d.instantClick="t"===g[1]||"f"!==g[1]&&g[1];break;case"xR":d.xr=parseInt(g[1],0),r.addSafariFix(i);break;case"yR":d.yr=parseInt(g[1],0),r.addSafariFix(i);break;case"zR":d.zr=parseInt(g[1],0);break;case"blu":"loop"===o?d.blur=parseInt(g[1],0):l.blur=parseInt(g[1],0);break;case"gra":"loop"===o?d.grayscale=parseInt(g[1],0):l.grayscale=parseInt(g[1],0);break;case"bri":"loop"===o?d.brightness=parseInt(g[1],0):l.brightness=parseInt(g[1],0);break;case"bB":l.b_blur=parseInt(g[1],0);break;case"bG":l.b_grayscale=parseInt(g[1],0);break;case"bR":l.b_brightness=parseInt(g[1],0);break;case"bI":l.b_invert=parseInt(g[1],0);break;case"bS":l.b_sepia=parseInt(g[1],0);break;case"sp":c.speed=parseInt(g[1],0);break;case"d":d.delay=parseInt(g[1],0);break;case"crns":c.curviness=parseInt(g[1],0);break;case"st":c.start="w"===g[1]||"a"===g[1]?"+=0":g[1],c.waitoncall="w"===g[1]||"a"===g[1];break;case"sA":c.startAbsolute=g[1];break;case"sR":c.startRelative=g[1];break;case"e":t?c.ease=g[1]:d.ease=g[1];break;default:g[0].length>0&&(d[g[0]]="t"===g[1]||"f"!==g[1]&&g[1])}}var u={timeline:c};return jQuery.isEmptyObject(l)||("split"===o?d=jQuery.extend(!0,d,l):u.filter=l),"split"===o&&(d.dir=void 0===d.dir?"start":"backward"===d.dir?"end":"middletoedge"===d.dir?"center":"edgetomiddle"===d.dir?"edge":d.dir),jQuery.isEmptyObject(s)||(u.color=s),jQuery.isEmptyObject(n)||(u.bgcolor=n),u[a]=d,u},L=function(e,i){var t={},a=0;if(void 0===r[i]._rdF0){var o=k("x:0;y:0;z:0;rX:0;rY:0;rZ:0;o:0;skX:0;skY:0;sX:0;sY:0;oX:50%;oY:50%;oZ:0;dir:forward;d:5",i).transform;r[i]._rdF0=r[i]._rdF1={transform:k("x:0;y:0;z:0;rX:0;rY:0;rZ:0;o:0;skX:0;skY:0;sX:0;sY:0;oX:50%;oY:50%;oZ:0;tp:600px",i,!0).transform,mask:k("x:0;y:0",i,!0).transform,chars:jQuery.extend(!0,{blur:0,grayscale:0,brightness:100},o),words:jQuery.extend(!0,{blur:0,grayscale:0,brightness:100},o),lines:jQuery.extend(!0,{blur:0,grayscale:0,brightness:100},o)},r[i]._rdF1.transform.opacity=r[i]._rdF1.chars.opacity=r[i]._rdF1.words.opacity=r[i]._rdF1.lines.opacity=r[i]._rdF1.transform.scaleX=r[i]._rdF1.chars.scaleX=r[i]._rdF1.words.scaleX=r[i]._rdF1.lines.scaleX=r[i]._rdF1.transform.scaleY=r[i]._rdF1.chars.scaleY=r[i]._rdF1.words.scaleY=r[i]._rdF1.lines.scaleY=1}for(var a in void 0===e.frame_0&&(e.frame_0="x:0"),void 0===e.frame_1&&(e.frame_1="x:0"),e.dddNeeded=!1,e.ford)if(e.ford.hasOwnProperty(a)){var s=e.ford[a];if(e[s]){if(t[s]=k(e[s],i,!0),void 0!==t[s].bgcolor&&(e.bgcolinuse=!0),r[i].BUG_ie_clipPath&&void 0!==e.clipPath&&e.clipPath.use&&void 0!==t[s].transform.clip){var n="rectangle"===e.clipPath.type?100-parseInt(t[s].transform.clip):100-Math.min(100,2*parseInt(t[s].transform.clip));switch(e.clipPath.origin){case"clr":case"rb":case"rt":case"r":e[s+"_mask"]="u:t;x:"+n+"%;y:0px;",t[s].transform.x=r.revToResp("-"+n+"%",r[i].rle);break;case"crl":case"lb":case"lt":case"cv":case"l":e[s+"_mask"]="u:t;x:-"+n+"%;y:0px;",t[s].transform.x=r.revToResp(n+"%",r[i].rle);break;case"ch":case"t":e[s+"_mask"]="u:t;y:-"+n+"%;y:0px;",t[s].transform.y=r.revToResp(n+"%",r[i].rle);break;case"b":e[s+"_mask"]="u:t;y:"+n+"%;y:0px;",t[s].transform.y=r.revToResp("-"+n+"%",r[i].rle)}delete t[s].transform.clip,delete t[s].transform.clipB}e[s+"_mask"]&&(t[s].mask=k(e[s+"_mask"],i).transform),null!=t[s].mask&&t[s].mask.use?(t[s].mask.x=void 0===t[s].mask.x?0:t[s].mask.x,t[s].mask.y=void 0===t[s].mask.y?0:t[s].mask.y,delete t[s].mask.use,t[s].mask.overflow="hidden"):t[s].mask={ease:"default",overflow:"visible"},e[s+"_chars"]&&(t[s].chars=k(e[s+"_chars"],i,void 0,void 0,"split").transform),e[s+"_words"]&&(t[s].words=k(e[s+"_words"],i,void 0,void 0,"split").transform),e[s+"_lines"]&&(t[s].lines=k(e[s+"_lines"],i,void 0,void 0,"split").transform),(e[s+"_chars"]||e[s+"_words"]||e[s+"_lines"])&&(t[s].dosplit=!0),t.frame_0=void 0===t.frame_0?{transform:{}}:t.frame_0,t[s].transform.auto&&(t[s].transform=r.clone(t.frame_0.transform),t[s].transform.opacity=void 0===t[s].transform.opacity?0:t[s].transform.opacity,void 0!==t.frame_0.filter&&(t[s].filter=r.clone(t.frame_0.filter)),void 0!==t.frame_0.mask&&(t[s].mask=r.clone(t.frame_0.mask)),void 0!==t.frame_0.chars&&(t[s].chars=r.clone(t.frame_0.chars)),void 0!==t.frame_0.words&&(t[s].words=r.clone(t.frame_0.words)),void 0!==t.frame_0.lines&&(t[s].lines=r.clone(t.frame_0.lines)),void 0===t.frame_0.chars&&void 0===t.frame_0.words&&void 0===t.frame_0.lines||(t[s].dosplit=!0)),e[s+"_sfx"]&&(t[s].sfx=k(e[s+"_sfx"],i,!1,void 0,"sfx").transform),e[s+"_reverse"]&&(t[s].reverse=k(e[s+"_reverse"],i,!1,void 0,"reverse").transform)}}if(t.frame_0.dosplit&&(t.frame_1.dosplit=!0),void 0===e.frame_hover&&void 0===e.svgh||(t.frame_hover=k(void 0===e.frame_hover?"":e.frame_hover,i),!r.ISM||"true"!=t.frame_hover.transform.instantClick&&1!=t.frame_hover.transform.instantClick?(delete t.frame_hover.transform.instantClick,t.frame_hover.transform.color=t.frame_hover.color,void 0===t.frame_hover.transform.color&&delete t.frame_hover.transform.color,void 0!==t.frame_hover.bgcolor&&t.frame_hover.bgcolor.indexOf("gradient")>=0?t.frame_hover.transform.backgroundImage=t.frame_hover.bgcolor:void 0!==t.frame_hover.bgcolor&&(t.frame_hover.transform.backgroundColor=t.frame_hover.bgcolor),void 0!==t.frame_hover.bgcolor&&(e.bgcolinuse=!0),t.frame_hover.transform.opacity=void 0===t.frame_hover.transform.opacity?1:t.frame_hover.transform.opacity,t.frame_hover.mask=void 0!==t.frame_hover.transform.mask&&t.frame_hover.transform.mask,delete t.frame_hover.transform.mask,void 0!==t.frame_hover.transform&&((t.frame_hover.transform.borderWidth||t.frame_hover.transform.borderStyle)&&(t.frame_hover.transform.borderColor=void 0===t.frame_hover.transform.borderColor?"transparent":t.frame_hover.transform.borderColor),"none"!==t.frame_hover.transform.borderStyle&&void 0===t.frame_hover.transform.borderWidth&&(t.frame_hover.transform.borderWidth=r.revToResp(0,4,0).toString().replace(/,/g," ")),void 0===e.bordercolor&&void 0!==t.frame_hover.transform.borderColor&&(e.bordercolor="transparent"),void 0===e.borderwidth&&void 0!==t.frame_hover.transform.borderWidth&&(e.borderwidth=r.revToResp(t.frame_hover.transform.borderWidth,4,0)),void 0===e.borderstyle&&void 0!==t.frame_hover.transform.borderStyle&&(e.borderstyle=r.revToResp(t.frame_hover.transform.borderStyle,4,0)))):delete t.frame_hover),void 0!==e.tloop){e.layerLoop={from:"frame_1",to:"frame_999",repeat:-1,keep:!0,children:!0};var d=e.tloop.split(";");for(var a in d)if(d.hasOwnProperty(a)){var l=d[a].split(":");switch(l[0]){case"f":e.layerLoop.from=l[1];break;case"t":e.layerLoop.to=l[1];break;case"k":e.layerLoop.keep=l[1];break;case"r":e.layerLoop.repeat=parseInt(l[1],0);break;case"c":e.layerLoop.children=l[1]}}e.layerLoop.count=0}for(var a in(e.loop_0||e.loop_999)&&(t.loop=k(e.loop_999,i,!0,"frame_999","loop"),t.loop.frame_0=k(e.loop_0||"",i,!1,void 0,"loop").transform),t.frame_0.transform.opacity=void 0===t.frame_0.transform.opacity?0:t.frame_0.transform.opacity,t.frame_1.transform.opacity=void 0===t.frame_1.transform.opacity?1:t.frame_1.transform.opacity,t.frame_999.transform.opacity=void 0===t.frame_999.transform.opacity?"inherit":t.frame_999.transform.opacity,e.clipPath&&e.clipPath.use&&(t.frame_0.transform.clip=void 0===t.frame_0.transform.clip?100:parseInt(t.frame_0.transform.clip),t.frame_1.transform.clip=void 0===t.frame_1.transform.clip?100:parseInt(t.frame_1.transform.clip)),e.resetfilter=!1,e.useFilter={blur:!1,grayscale:!1,brightness:!1,b_blur:!1,b_grayscale:!1,b_brightness:!1,b_invert:!1,b_sepia:!1},t)void 0!==t[a].filter&&(e.resetfilter=!0,e.useFilter=O(e.useFilter,t[a].filter));if(!0!==e.resetFilter&&void 0!==t.frame_hover&&(e.useFilter=O(e.useFilter,t.frame_hover)),e.resetfilter)for(var a in t.frame_0.filter=r.clone(t.frame_0.filter),t.frame_0.filter=R(e.useFilter,r.clone(t.frame_0.filter)),t)void 0!==t[a].filter&&"frame_1"!==a&&"frame_0"!==a&&(t[a].filter=r.clone(t[a].filter),t[a].filter=R(e.useFilter,r.clone(t[a].filter)));return void 0!==t.frame_0.filter&&(t.frame_1.filter=r.clone(t.frame_1.filter),void 0!==t.frame_0.filter.blur&&0!==t.frame_1.filter.blur&&(t.frame_1.filter.blur=void 0===t.frame_1.filter.blur?0:t.frame_1.filter.blur),void 0!==t.frame_0.filter.brightness&&100!==t.frame_1.filter.brightness&&(t.frame_1.filter.brightness=void 0===t.frame_1.filter.brightness?100:t.frame_1.filter.brightness),void 0!==t.frame_0.filter.grayscale&&0!==t.frame_1.filter.grayscale&&(t.frame_1.filter.grayscale=void 0===t.frame_1.filter.grayscale?0:t.frame_1.filter.grayscale),void 0!==t.frame_0.filter.b_blur&&0!==t.frame_1.filter.b_blur&&(t.frame_1.filter.b_blur=void 0===t.frame_1.filter.b_blur?0:t.frame_1.filter.b_blur),void 0!==t.frame_0.filter.b_brightness&&100!==t.frame_1.filter.b_brightness&&(t.frame_1.filter.b_brightness=void 0===t.frame_1.filter.b_brightness?100:t.frame_1.filter.b_brightness),void 0!==t.frame_0.filter.b_grayscale&&0!==t.frame_1.filter.b_grayscale&&(t.frame_1.filter.b_grayscale=void 0===t.frame_1.filter.b_grayscale?0:t.frame_1.filter.b_grayscale),void 0!==t.frame_0.filter.b_invert&&0!==t.frame_1.filter.b_invert&&(t.frame_1.filter.b_invert=void 0===t.frame_1.filter.b_invert?0:t.frame_1.filter.b_invert),void 0!==t.frame_0.filter.b_sepia&&0!==t.frame_1.filter.b_sepia&&(t.frame_1.filter.b_sepia=void 0===t.frame_1.filter.b_sepia?0:t.frame_1.filter.b_sepia)),M(t,i,e)},R=function(e,i){return e.blur?i.blur=void 0===i.blur?0:i.blur:delete i.blur,e.brightness?i.brightness=void 0===i.brightness?100:i.brightness:delete i.brightness,e.grayscale?i.grayscale=void 0===i.grayscale?0:i.grayscale:delete i.grayscale,e.b_blur?i.b_blur=void 0===i.b_blur?0:i.b_blur:delete i.b_blur,e.b_brightness?i.b_brightness=void 0===i.b_brightness?100:i.b_brightness:delete i.b_brightness,e.b_grayscale?i.b_grayscale=void 0===i.b_grayscale?0:i.b_grayscale:delete i.b_grayscale,e.b_invert?i.b_invert=void 0===i.b_invert?0:i.b_invert:delete i.b_invert,e.b_sepia?i.b_sepia=void 0===i.b_sepia?0:i.b_sepia:delete i.b_sepia,i},O=function(e,i){return e.blur=!0===e.blur||void 0!==i.blur&&0!==i.blur&&"0px"!==i.blur,e.grayscale=!0===e.grayscale||void 0!==i.grayscale&&0!==i.grayscale&&"0%"!==i.grayscale,e.brightness=!0===e.brightness||void 0!==i.brightness&&100!==i.brightness&&"100%"!==i.brightness,e.b_blur=!0===e.b_blur||void 0!==i.b_blur&&0!==i.b_blur&&"0px"!==i.b_blur,e.b_grayscale=!0===e.b_grayscale||void 0!==i.b_grayscale&&0!==i.b_grayscale&&"0%"!==i.b_grayscale,e.b_brightness=!0===e.b_brightness||void 0!==i.b_brightness&&100!==i.b_brightness&&"100%"!==i.b_brightness,e.b_invert=!0===e.b_invert||void 0!==i.b_invert&&0!==i.b_invert&&"0%"!==i.b_invert,e.b_sepia=!0===e.b_sepia||void 0!==i.b_sepia&&0!==i.b_sepia&&"0%"!==i.b_sepia,e},I=function(e){return void 0!==e&&(void 0!==e.rotationY||void 0!==e.rotationX||void 0!==e.z)},M=function(e,i,t){var a,o={},s=["transform","words","chars","lines","mask"],n="global"==r[i].perspectiveType?r[i].perspective:0,d=!0,l=!1;for(var c in e)"loop"!==c&&"frame_hover"!==c&&(o=jQuery.extend(!0,o,e[c]));for(var c in e)if(e.hasOwnProperty(c)&&(void 0!==e[c].timeline&&(e[c].timeline.usePerspective=!1),"loop"!==c&&"frame_hover"!==c)){for(a in o.transform)o.transform.hasOwnProperty(a)&&(o.transform[a]=void 0===e[c].transform[a]?"frame_0"===c?r[i]._rdF0.transform[a]:"frame_1"===c?r[i]._rdF1.transform[a]:o.transform[a]:e[c].transform[a],e[c].transform[a]=void 0===e[c].transform[a]?o.transform[a]:e[c].transform[a]);for(var p=1;p<=4;p++)for(a in o[s[p]])o[s[p]].hasOwnProperty(a)&&(e[c][s[p]]=void 0===e[c][s[p]]?{}:e[c][s[p]],o[s[p]][a]=void 0===e[c][s[p]][a]?"frame_0"===c?r[i]._rdF0[s[p]][a]:"frame_1"===c?r[i]._rdF1[s[p]][a]:o[s[p]][a]:e[c][s[p]][a],e[c][s[p]][a]=void 0===e[c][s[p]][a]?o[s[p]][a]:e[c][s[p]][a]);void 0!==e[c].timeline&&!1===e[c].timeline.usePerspective&&void 0!==e[c].transform&&(void 0!==e[c].transform.rotationY||void 0!==e[c].transform.rotationX||void 0!==e[c].transform.z||I(e[c].chars)||I(e[c].words)||I(e[c].lines))&&(n="local"==r[i].perspectiveType?void 0===e[c].transform.transformPerspective?600:e[c].transform.transformPerspective:n,e[c].timeline.usePerspective=!0,(I(e[c].chars)||I(e[c].words)||I(e[c].lines))&&!r.isFirefox(i)&&(l=!0),d=!1)}if(l&&requestAnimationFrame(function(){tpGS.gsap.set(t.c,{transformStyle:"preserve-3d"})}),void 0!==e.frame_0.timeline&&e.frame_0.timeline.usePerspective&&(e.frame_0.transform.transformPerspective="local"===r[i].perspectiveType?void 0===e.frame_0.transform.transformPerspective?n:e.frame_0.transform.transformPerspective:"isometric"===r[i].perspectiveType?0:r[i].perspective),d)for(var c in e){if(!e.hasOwnProperty(c)||void 0===e[c].transform)continue;delete e[c].transform.transformPerspective}return e},T=function(e,i,t){if(0===e.length)return{};for(var a=e[0].getElementsByClassName(i),o={},r=0;r=0)return!1;r.sA(e[0],"stylerecorder",!0),void 0===e[0].id&&(e[0].id="rs-layer-sub-"+Math.round(1e6*Math.random())),r[s].computedStyle[e[0].id]=window.getComputedStyle(e[0],null);var n=void 0!==e[0].id&&void 0!==r[s]._L[e[0].id]?r[s]._L[e[0].id]:e.data(),d="rekursive"===i?jQuery(r.closestClass(e[0],"rs-layer")):void 0;void 0!==d&&(r[s].computedStyle[d[0].id]=void 0===r[s].computedStyle[d[0].id]?window.getComputedStyle(d[0],null):r[s].computedStyle[d[0].id]);var l=void 0!==d&&r[s].computedStyle[e[0].id].fontSize==r[s].computedStyle[d[0].id].fontSize&&C(r[s].computedStyle[e[0].id].fontWeight)==C(r[s].computedStyle[d[0].id].fontWeight)&&r[s].computedStyle[e[0].id].lineHeight==r[s].computedStyle[d[0].id].lineHeight,c=l?void 0!==d[0].id&&void 0!==r[s]._L[d[0].id]?r[s]._L[d[0].id]:d.data():void 0,p=0;for(n.basealign=void 0===n.basealign?"grid":n.basealign,n._isnotext||(n.fontSize=r.revToResp(l?void 0===c.fontsize?parseInt(r[s].computedStyle[d[0].id].fontSize,0)||20:c.fontsize:void 0===n.fontsize?"rekursive"!==i?20:"inherit":n.fontsize,r[s].rle),n.fontWeight=r.revToResp(l?void 0===c.fontweight?r[s].computedStyle[d[0].id].fontWeight||"inherit":c.fontweight:void 0===n.fontweight?r[s].computedStyle[e[0].id].fontWeight||"inherit":n.fontweight,r[s].rle),n.whiteSpace=r.revToResp(l?void 0===c.whitespace?"nowrap":c.whitespace:void 0===n.whitespace?"nowrap":n.whitespace,r[s].rle),n.textAlign=r.revToResp(l?void 0===c.textalign?"left":c.textalign:void 0===n.textalign?"left":n.textalign,r[s].rle),n.letterSpacing=r.revToResp(l?void 0===c.letterspacing?parseInt(r[s].computedStyle[d[0].id].letterSpacing,0)||"inherit":c.letterspacing:void 0===n.letterspacing?parseInt("normal"===r[s].computedStyle[e[0].id].letterSpacing?0:r[s].computedStyle[e[0].id].letterSpacing,0)||"inherit":n.letterspacing,r[s].rle),n.textDecoration=l?void 0===c.textDecoration?"none":c.textDecoration:void 0===n.textDecoration?"none":n.textDecoration,p=25,p=void 0===d||"I"!==e[0].tagName&&"STRONG"!==e[0].tagName?p:"inherit",void 0!==n.tshadow&&(n.tshadow.b=r.revToResp(n.tshadow.b,r[s].rle),n.tshadow.h=r.revToResp(n.tshadow.h,r[s].rle),n.tshadow.v=r.revToResp(n.tshadow.v,r[s].rle))),void 0!==n.bshadow&&(n.bshadow.b=r.revToResp(n.bshadow.b,r[s].rle),n.bshadow.h=r.revToResp(n.bshadow.h,r[s].rle),n.bshadow.v=r.revToResp(n.bshadow.v,r[s].rle),n.bshadow.s=r.revToResp(n.bshadow.s,r[s].rle)),void 0!==n.tstroke&&(n.tstroke.w=r.revToResp(n.tstroke.w,r[s].rle)),n.display=l?void 0===c.display?r[s].computedStyle[d[0].id].display:c.display:void 0===n.display?r[s].computedStyle[e[0].id].display:n.display,n.float=r.revToResp(l?void 0===c.float?r[s].computedStyle[d[0].id].float||"none":c.float:void 0===n.float?"none":n.float,r[s].rle),n.clear=r.revToResp(l?void 0===c.clear?r[s].computedStyle[d[0].id].clear||"none":c.clear:void 0===n.clear?"none":n.clear,r[s].rle),n.lineHeight=r.revToResp(e.is("img")||-1!=jQuery.inArray(n.layertype,["video","image","audio"])?p:l?void 0===c.lineheight?parseInt(r[s].computedStyle[d[0].id].lineHeight,0)||p:c.lineheight:void 0===n.lineheight?p:n.lineheight,r[s].rle),n.zIndex=l?void 0===c.zindex?parseInt(r[s].computedStyle[d[0].id].zIndex,0)||"inherit":c.zindex:void 0===n.zindex?parseInt(r[s].computedStyle[e[0].id].zIndex,0)||"inherit":n.zindex,g=0;g<4;g++)n["padding"+t[g]]=r.revToResp(void 0===n["padding"+o[g]]?parseInt(r[s].computedStyle[e[0].id]["padding"+t[g]],0)||0:n["padding"+o[g]],r[s].rle),n["margin"+t[g]]=r.revToResp(void 0===n["margin"+o[g]]?parseInt(r[s].computedStyle[e[0].id]["margin"+t[g]],0)||0:n["margin"+o[g]],r[s].rle),n["border"+t[g]+"Width"]=void 0===n.borderwidth?parseInt(r[s].computedStyle[e[0].id]["border"+t[g]+"Width"],0)||0:n.borderwidth[g],n["border"+t[g]+"Color"]=void 0===n.bordercolor?r[s].computedStyle[e[0].id]["border-"+o[g]+"-color"]:n.bordercolor,n["border"+a[g]+"Radius"]=r.revToResp(void 0===n.borderradius?r[s].computedStyle[e[0].id]["border"+a[g]+"Radius"]||0:n.borderradius[g],r[s].rle);if(n.borderStyle=r.revToResp(void 0===n.borderstyle?r[s].computedStyle[e[0].id].borderStyle||0:n.borderstyle,r[s].rle),"rekursive"!==i?(n.color=r.revToResp(void 0===n.color?"#ffffff":n.color,r[s].rle,void 0,"||"),n.minWidth=r.revToResp(void 0===n.minwidth?parseInt(r[s].computedStyle[e[0].id].minWidth,0)||0:n.minwidth,r[s].rle),n.minHeight=r.revToResp(void 0===n.minheight?parseInt(r[s].computedStyle[e[0].id].minHeight,0)||0:n.minheight,r[s].rle),n.width=r.revToResp(void 0===n.width?"auto":r.smartConvertDivs(n.width),r[s].rle),n.height=r.revToResp(void 0===n.height?"auto":r.smartConvertDivs(n.height),r[s].rle),n.maxWidth=r.revToResp(void 0===n.maxwidth?parseInt(r[s].computedStyle[e[0].id].maxWidth,0)||"none":n.maxwidth,r[s].rle),n.maxHeight=r.revToResp(-1!==jQuery.inArray(n.type,["column","row"])?"none":void 0!==n.maxheight?parseInt(r[s].computedStyle[e[0].id].maxHeight,0)||"none":n.maxheight,r[s].rle)):"html"===n.layertype&&(n.width=r.revToResp(e[0].width,r[s].rle),n.height=r.revToResp(e[0].height,r[s].rle)),n._incolumn)for(var g=0;g98&&(n.height[g]=n.height[g].replace("%","px"));for(n.styleProps={background:e[0].style.background,"background-color":e[0].style["background-color"],color:e[0].style.color,cursor:e[0].style.cursor,"font-style":e[0].style["font-style"]},null==n.bshadow&&(n.styleProps.boxShadow=e[0].style.boxShadow),""!==n.styleProps.background&&void 0!==n.styleProps.background&&n.styleProps.background!==n.styleProps["background-color"]||delete n.styleProps.background,""==n.styleProps.color&&(n.styleProps.color=r[s].computedStyle[e[0].id].color),g=0;g<4;g++)D(n["padding"+t[g]],0)&&delete n["padding"+t[g]],D(n["margin"+t[g]],0)&&delete n["margin"+t[g]],D(n["border"+a[g]+"Radius"],"0px")?delete n["border"+a[g]+"Radius"]:D(n["border"+a[g]+"Radius"],"0")&&delete n["border"+a[g]+"Radius"];if(D(n.borderStyle,"none"))for(delete n.borderStyle,g=0;g<4;g++)delete n["border"+t[g]+"Width"],delete n["border"+t[g]+"Color"]},D=function(e,i){return i===e[0]&&i===e[1]&&i===e[2]&&i===e[3]},P=function(e,i,t,a,o){var s=r.isNumeric(e)||void 0===e?"":e.indexOf("px")>=0?"px":e.indexOf("%")>=0?"%":"";return e=r.isNumeric(parseInt(e))?parseInt(e):e,e=null==(e="full"===(e=r.isNumeric(e)?e*i+s:e)?a:"auto"===e||"none"===e?t:e)?o:e},B=function(e){return null!=e&&0!==parseInt(e,0)},z=function(e){var i,s,n,d,l,c,p,g,u,h,m=e.a,v=e.b,f=e.c,w=e.d,y=e.e,b={},_={},S=r[v]._L[m[0].id],x=m[0].className;if(S=void 0===S?{}:S,"object"==typeof x&&(x=""),void 0!==m&&void 0!==m[0]&&(x.indexOf("rs_splitted")>=0||"BR"==m[0].nodeName||"br"==m[0].tagName||m[0].tagName.indexOf("FCR")>0||m[0].tagName.indexOf("BCR")>0))return!1;y="individual"===y?S.slideIndex:y;e=function(e,i,o){if(void 0!==e){if("BR"==e[0].nodeName||"br"==e[0].tagName)return!1;var s,n=r[i].level,d=void 0!==e[0]&&void 0!==e[0].id&&void 0!==r[i]._L[e[0].id]?r[i]._L[e[0].id]:e.data();void 0===(d=void 0===d.basealign?o.data():d)._isnotext&&(d._isnotext=void 0!==o&&void 0!==o[0]&&o[0].length>0?r.gA(o[0],"_isnotext"):d._isnotext);var l={basealign:void 0===d.basealign?"grid":d.basealign,lineHeight:void 0===d.basealign?"inherit":parseInt(d.lineHeight[n]),color:void 0===d.color?void 0:d.color[n],width:void 0===d.width?void 0:"a"===d.width[n]?"auto":d.width[n],height:void 0===d.height?void 0:"a"===d.height[n]?"auto":d.height[n],minWidth:void 0===d.minWidth?void 0:"n"===d.minWidth[n]?"none":d.minWidth[n],minHeight:void 0===d.minHeight?void 0:"n"==d.minHeight[n]?"none":d.minHeight[n],maxWidth:void 0===d.maxWidth?void 0:"n"==d.maxWidth[n]?"none":d.maxWidth[n],maxHeight:void 0===d.maxHeight?void 0:"n"==d.maxHeight[n]?"none":d.maxHeight[n],float:d.float[n],clear:d.clear[n]};for(d.borderStyle&&(l.borderStyle=d.borderStyle[n]),s=0;s<4;s++)d["padding"+t[s]]&&(l["padding"+t[s]]=d["padding"+t[s]][n]),d["margin"+t[s]]&&(l["margin"+t[s]]=parseInt(d["margin"+t[s]][n])),d["border"+a[s]+"Radius"]&&(l["border"+a[s]+"Radius"]=d["border"+a[s]+"Radius"][n]),d["border"+t[s]+"Color"]&&(l["border"+t[s]+"Color"]=d["border"+t[s]+"Color"]),d["border"+t[s]+"Width"]&&(l["border"+t[s]+"Width"]=parseInt(d["border"+t[s]+"Width"]));return d._isnotext||(l.textDecoration=d.textDecoration,l.fontSize=parseInt(d.fontSize[n]),l.fontWeight=parseInt(d.fontWeight[n]),l.letterSpacing=parseInt(d.letterSpacing[n])||0,l.textAlign=d.textAlign[n],l.whiteSpace=d.whiteSpace[n],l.whiteSpace="normal"===l.whiteSpace&&"auto"===l.width&&!0!==d._incolumn?"nowrap":l.whiteSpace,l.display=d.display,void 0!==d.tshadow&&(l.textShadow=parseInt(d.tshadow.h[n],0)+"px "+parseInt(d.tshadow.v[n],0)+"px "+d.tshadow.b[n]+" "+d.tshadow.c),void 0!==d.tstroke&&(l.textStroke=parseInt(d.tstroke.w[n],0)+"px "+d.tstroke.c)),void 0!==d.bshadow&&(l.boxShadow=parseInt(d.bshadow.h[n],0)+"px "+parseInt(d.bshadow.v[n],0)+"px "+parseInt(d.bshadow.b[n],0)+"px "+parseInt(d.bshadow.s[n],0)+"px "+d.bshadow.c),l}}(m,v,e.RSL);var k,L="off"===w?1:r[v].CM.w;if(void 0===S._isnotext&&(S._isnotext=void 0!==e.RSL&&void 0!==e.RSL[0]&&e.RSL[0].length>0?r.gA(e.RSL[0],"_isnotext"):S._isnotext),S._incolumn&&("shape"===S.type||"text"===S.type||"button"===S.type)&&(""+e.height).indexOf(!1)&&(e.height=e.height),S.OBJUPD=null==S.OBJUPD?{}:S.OBJUPD,S.caches=null==S.caches?{}:S.caches,"column"===S.type){for(s={},k={},i=0;i<4;i++)void 0!==e["margin"+t[i]]&&(s["padding"+t[i]]=Math.round(e["margin"+t[i]]*L)+"px",k["margin"+t[i]]=e["margin"+t[i]],delete e["margin"+t[i]]);jQuery.isEmptyObject(s)||tpGS.gsap.set(S._column,s)}var R=r.clone(S.OBJUPD.POBJ),O=r.clone(S.OBJUPD.LPOBJ);if(-1===x.indexOf("rs_splitted_")){for(s={overwrite:"auto"},i=0;i<4;i++)void 0!==e["border"+a[i]+"Radius"]&&(s["border"+a[i]+"Radius"]=e["border"+a[i]+"Radius"]),void 0!==e["padding"+t[i]]&&(s["padding"+t[i]]=Math.round(e["padding"+t[i]]*L)+"px"),void 0===e["margin"+t[i]]||S._incolumn||(s["margin"+t[i]]="row"===S.type?0:Math.round(e["margin"+t[i]]*L)+"px");if(void 0!==S.spike&&(s["clip-path"]=s["-webkit-clip-path"]=S.spike),e.boxShadow&&(s.boxShadow=e.boxShadow),"column"!==S.type&&(void 0!==e.borderStyle&&"none"!==e.borderStyle&&(0!==e.borderTopWidth||e.borderBottomWidth>0||e.borderLeftWidth>0||e.borderRightWidth>0)?(s.borderTopWidth=Math.round(e.borderTopWidth*L)+"px",s.borderBottomWidth=Math.round(e.borderBottomWidth*L)+"px",s.borderLeftWidth=Math.round(e.borderLeftWidth*L)+"px",s.borderRightWidth=Math.round(e.borderRightWidth*L)+"px",s.borderStyle=e.borderStyle,s.borderTopColor=e.borderTopColor,s.borderBottomColor=e.borderBottomColor,s.borderLeftColor=e.borderLeftColor,s.borderRightColor=e.borderRightColor):("none"===e.borderStyle&&(s.borderStyle="none"),s.borderTopColor=e.borderTopColor,s.borderBottomColor=e.borderBottomColor,s.borderLeftColor=e.borderLeftColor,s.borderRightColor=e.borderRightColor)),"shape"!==S.type&&"image"!==S.type||!(B(e.borderTopLeftRadius)||B(e.borderTopRightRadius)||B(e.borderBottomLeftRadius)||B(e.borderBottomRightRadius))||(s.overflow="hidden"),S._isnotext||("column"!==S.type&&(s.fontSize=Math.round(e.fontSize*L)+"px",s.fontWeight=e.fontWeight,s.letterSpacing=e.letterSpacing*L+"px",e.textShadow&&(s.textShadow=e.textShadow),e.textStroke&&(s["-webkit-text-stroke"]=e.textStroke)),s.lineHeight=Math.round(e.lineHeight*L)+"px",s.textAlign=e.textAlign),"column"===S.type&&(void 0===S.cbg_set&&(S.cbg_set=S.styleProps["background-color"],S.cbg_set=""==S.cbg_set||void 0===S.cbg_set||0==S.cbg_set.length?"transparent":S.cbg_set,S.cbg_img=m.css("backgroundImage"),""!==S.cbg_img&&void 0!==S.cbg_img&&"none"!==S.cbg_img&&(S.cbg_img_r=m.css("backgroundRepeat"),S.cbg_img_p=m.css("backgroundPosition"),S.cbg_img_s=m.css("backgroundSize")),S.cbg_o=S.bgopacity?1:S.bgopacity,b.backgroundColor="transparent",b.backgroundImage=""),s.backgroundColor="transparent",s.backgroundImage="none"),S._isstatic&&S.elementHovered&&(p=m.data("frames"))&&p.frame_hover&&p.frame_hover.transform)for(g in s)s.hasOwnProperty(g)&&p.frame_hover.transform.hasOwnProperty(g)&&delete s[g];if("IFRAME"==m[0].nodeName&&"html"===r.gA(m[0],"layertype")&&(u="slide"==e.basealign?r[v].module.width:r.iWA(v,y),h="slide"==e.basealign?r[v].module.height:r.iHE(v),s.width=!r.isNumeric(e.width)&&e.width.indexOf("%")>=0?!S._isstatic||S._incolumn||S._ingroup?e.width:u*parseInt(e.width,0)/100:P(e.width,L,"auto",u,"auto"),s.height=!r.isNumeric(e.height)&&e.height.indexOf("%")>=0?!S._isstatic||S._incolumn||S._ingroup?e.height:h*parseInt(e.height,0)/100:P(e.height,L,"auto",u,"auto")),b=jQuery.extend(!0,b,s),"rekursive"!=f){u="slide"==e.basealign?r[v].module.width:r.iWA(v,y),h="slide"==e.basealign?r[v].module.height:r.iHE(v);var I=!r.isNumeric(e.width)&&e.width.indexOf("%")>=0?!S._isstatic||S._incolumn||S._ingroup?e.width:u*parseInt(e.width,0)/100:P(e.width,L,"auto",u,"auto"),M=!r.isNumeric(e.height)&&e.height.indexOf("%")>=0?!S._isstatic||S._incolumn||S._ingroup?e.height:h*parseInt(e.height,0)/100:P(e.height,L,"auto",u,"auto"),T={maxWidth:P(e.maxWidth,L,"none",u,"none"),maxHeight:P(e.maxHeight,L,"none",h,"none"),minWidth:P(e.minWidth,L,"0px",u,0),minHeight:P(e.minHeight,L,"0px",h,0),height:M,width:I,overwrite:"auto"};1==S.heightSetByVideo&&(T.height=S.vidOBJ.height);var C=!1;if(S._incolumn){for(R=jQuery.extend(!0,R,{minWidth:I,maxWidth:I,float:e.float,clear:e.clear}),i=0;i<4;i++)void 0!==e["margin"+t[i]]&&(R["margin"+t[i]]=e["margin"+t[i]]*L+"px");O.width="100%",void 0!==e.display&&"inline-block"!==e.display||(_={width:"100%"}),T.width=!r.isNumeric(e.width)&&e.width.indexOf("%")>=0?"100%":I,"image"===S.type&&tpGS.gsap.set(S.img,{width:"100%"})}else!r.isNumeric(e.width)&&e.width.indexOf("%")>=0&&(R.minWidth="slide"===S.basealign||!0===S._ingroup?I:r.iWA(v,y)*r[v].CM.w*parseInt(I)/100+"px",O.width="100%",_.width="100%");if(!r.isNumeric(e.height)&&e.height.indexOf("%")>=0&&(R.minHeight="slide"===S.basealign||!0===S._ingroup?M:r.iHE(v)*(r[v].currentRowsHeight>r[v].gridheight[r[v].level]?1:r[v].CM.w)*parseInt(M)/100+"px",O.height="100%",_.height="100%",C=!0),S._isnotext||(T.whiteSpace=e.whiteSpace,T.textAlign=e.textAlign,T.textDecoration=e.textDecoration),"npc"!=e.color&&void 0!==e.color&&(T.color=e.color),S._ingroup&&(S._groupw=T.minWidth,S._grouph=T.minHeight),"row"===S.type&&(r.isNumeric(T.minHeight)||T.minHeight.indexOf("px")>=0)&&"0px"!==T.minHeight&&0!==T.minHeight&&"0"!==T.minHeight&&"none"!==T.minHeight?T.height=T.minHeight:"row"===S.type&&(T.height="auto"),S._isstatic&&S.elementHovered&&(p=m.data("frames"))&&p.frame_hover&&p.frame_hover.transform)for(g in T)T.hasOwnProperty(g)&&p.frame_hover.transform.hasOwnProperty(g)&&delete T[g];"group"!==S.type&&"row"!==S.type&&"column"!==S.type&&(!r.isNumeric(T.width)&&T.width.indexOf("%")>=0&&(T.width="100%"),!r.isNumeric(T.height)&&T.height.indexOf("%")>=0&&(T.height="100%")),S._isgroup&&(!r.isNumeric(T.width)&&T.width.indexOf("%")>=0&&(T.width="100%"),R.height=C?"100%":T.height),b=jQuery.extend(!0,b,T),null!=S.svg_src&&void 0!==S.svgI&&("string"==typeof S.svgI.fill&&(S.svgI.fill=[S.svgI.fill]),S.svgTemp=r.clone(S.svgI),delete S.svgTemp.svgAll,void 0!==S.svgTemp.fill&&(S.svgTemp.fill=S.svgTemp.fill[r[v].level],S.svg.length<=0&&(S.svg=m.find("svg")),S.svgPath.length<=0&&(S.svgPath=S.svg.find(S.svgI.svgAll?"path, circle, ellipse, line, polygon, polyline, rect":"path")),tpGS.gsap.set(S.svgPath,{fill:S.svgI.fill[r[v].level]})),tpGS.gsap.set(S.svg,S.svgTemp))}if("row"===S.type)for(i=0;i<4;i++)void 0!==e["margin"+t[i]]&&(R["padding"+t[i]]=e["margin"+t[i]]*L+"px");if("column"===S.type&&S.cbg&&S.cbg.length>0){for(void 0!==S.cbg_img_s&&(S.cbg[0].style.backgroundSize=S.cbg_img_s),s={},""!==S.styleProps.cursor&&(s.cursor=S.styleProps.cursor),""!==S.cbg_set&&"transparent"!==S.cbg_set&&(s.backgroundColor=S.cbg_set),""!==S.cbg_img&&"none"!==S.cbg_img&&(s.backgroundImage=S.cbg_img,""!==S.cbg_img_r&&(s.backgroundRepeat=S.cbg_img_r),""!==S.cbg_img_p&&(s.backgroundPosition=S.cbg_img_p)),""!==S.cbg_o&&void 0!==S.cbg_o&&(s.opacity=S.cbg_o),i=0;i<4;i++)void 0!==e.borderStyle&&"none"!==e.borderStyle&&(void 0!==e["border"+t[i]+"Width"]&&(s["border"+t[i]+"Width"]=Math.round(parseInt(e["border"+t[i]+"Width"])*L)+"px"),void 0!==e["border"+t[i]+"Color"]&&(s["border"+t[i]+"Color"]=e["border"+t[i]+"Color"])),e["border"+a[i]+"Radius"]&&(s["border"+a[i]+"Radius"]=e["border"+a[i]+"Radius"]);for(void 0!==e.borderStyle&&"none"!==e.borderStyle&&(s.borderStyle=e.borderStyle),(n=JSON.stringify(s))!==r[v].emptyObject&&n!==S.caches.cbgS&&tpGS.gsap.set(S.cbg,s),S.caches.cbgS=n,s={},i=0;i<4;i++)k["margin"+t[i]]&&(s[o[i]]=k["margin"+t[i]]*L+"px");(n=JSON.stringify(s))!==r[v].emptyObject&&n!==S.caches.cbgmaskS&&(tpGS.gsap.set(S.cbgmask,s),S.caches.cbgmaskS=n)}"auto"===R.maxWidth&&(R.maxWidth="inherit"),"auto"===R.maxHeight&&(R.maxHeight="inherit"),"auto"===_.maxWidth&&(_.maxWidth="inherit"),"auto"===_.maxHeight&&(_.maxHeight="inherit"),"auto"===O.maxWidth&&(O.maxWidth="inherit"),"auto"===O.maxHeight&&(O.maxHeight="inherit"),void 0!==S.vidOBJ&&(b.width=S.vidOBJ.width,b.height=S.vidOBJ.height),void 0!==S.OBJUPD.lppmOBJ&&(void 0!==S.OBJUPD.lppmOBJ.minWidth&&(O.minWidth=S.OBJUPD.lppmOBJ.minWidth,_.minWidth=S.OBJUPD.lppmOBJ.minWidth,R.minWidth=S.OBJUPD.lppmOBJ.minWidth),void 0!==S.OBJUPD.lppmOBJ.minHeight&&(O.minHeight=S.OBJUPD.lppmOBJ.minHeight,_.minHeight=S.OBJUPD.lppmOBJ.minHeight,R.minHeight=S.OBJUPD.lppmOBJ.minHeight)),n=JSON.stringify(b),d=JSON.stringify(O),l=JSON.stringify(_),c=JSON.stringify(R),void 0===S.imgOBJ||void 0!==S.caches.imgOBJ&&S.caches.imgOBJ.width===S.imgOBJ.width&&S.caches.imgOBJ.height===S.imgOBJ.height&&S.caches.imgOBJ.left===S.imgOBJ.left&&S.caches.imgOBJ.right===S.imgOBJ.right&&S.caches.imgOBJ.top===S.imgOBJ.top&&S.caches.imgOBJ.bottom===S.imgOBJ.bottom||(S.caches.imgOBJ=r.clone(S.imgOBJ),S.imgOBJ.position="relative",tpGS.gsap.set(S.img,S.imgOBJ)),void 0===S.mediaOBJ||void 0!==S.caches.mediaOBJ&&S.caches.mediaOBJ.width===S.mediaOBJ.width&&S.caches.mediaOBJ.height===S.mediaOBJ.height&&S.caches.mediaOBJ.display===S.mediaOBJ.display||(S.caches.mediaOBJ=r.clone(S.mediaOBJ),S.media.css(S.mediaOBJ)),n!=r[v].emptyObject&&n!=S.caches.LOBJ&&(tpGS.gsap.set(m,b),S.caches.LOBJ=n),d!=r[v].emptyObject&&d!=S.caches.LPOBJ&&(tpGS.gsap.set(S.lp,O),S.caches.LPOBJ=d),l!=r[v].emptyObject&&l!=S.caches.MOBJ&&(tpGS.gsap.set(S.m,_),S.caches.MOBJ=l),c!=r[v].emptyObject&&c!=S.caches.POBJ&&(tpGS.gsap.set(S.p,R),S.caches.POBJ=c,S.caches.POBJ_LEFT=R.left,S.caches.POBJ_TOP=R.top)}},G=function(e){var i={l:"none",lw:10,r:"none",rw:10};for(var t in e=e.split(";"))if(e.hasOwnProperty(t)){var a=e[t].split(":");switch(a[0]){case"l":i.l=a[1];break;case"r":i.r=a[1];break;case"lw":i.lw=a[1];break;case"rw":i.rw=a[1]}}return"polygon("+H(i.l,0,parseFloat(i.lw))+","+H(i.r,100,100-parseFloat(i.rw),!0)+")"},H=function(e,i,t,a){var o;switch(e){case"none":o=i+"% 100%,"+i+"% 0%";break;case"top":o=t+"% 100%,"+i+"% 0%";break;case"middle":o=t+"% 100%,"+i+"% 50%,"+t+"% 0%";break;case"bottom":o=i+"% 100%,"+t+"% 0%";break;case"two":o=t+"% 100%,"+i+"% 75%,"+t+"% 50%,"+i+"% 25%,"+t+"% 0%";break;case"three":o=i+"% 100%,"+t+"% 75%,"+i+"% 50%,"+t+"% 25%,"+i+"% 0%";break;case"four":o=i+"% 100%,"+t+"% 87.5%,"+i+"% 75%,"+t+"% 62.5%,"+i+"% 50%,"+t+"% 37.5%,"+i+"% 25%,"+t+"% 12.5%,"+i+"% 0%";break;case"five":o=i+"% 100%,"+t+"% 90%,"+i+"% 80%,"+t+"% 70%,"+i+"% 60%,"+t+"% 50%,"+i+"% 40%,"+t+"% 30%,"+i+"% 20%,"+t+"% 10%,"+i+"% 0%"}if(a){var r=o.split(",");for(var t in o="",r)r.hasOwnProperty(t)&&(o+=r[r.length-1-t]+(ti[e].module.width,i[e].navigation.thumbnails.cw=Math.max(Math.round(i[e].navigation.thumbnails.width*i[e].navigation.scaler),i[e].navigation.thumbnails.min_width),i[e].navigation.thumbnails.ch=Math.round(i[e].navigation.thumbnails.cw/i[e].navigation.thumbnails.width*i[e].navigation.thumbnails.height),i[e].navigation.thumbnails.isVisible&&"outer-left"===i[e].navigation.thumbnails.position?t.left=i[e].navigation.thumbnails.cw+2*i[e].navigation.thumbnails.wrapper_padding:i[e].navigation.thumbnails.isVisible&&"outer-right"===i[e].navigation.thumbnails.position?t.right=i[e].navigation.thumbnails.cw+2*i[e].navigation.thumbnails.wrapper_padding:i[e].navigation.thumbnails.isVisible&&"outer-top"===i[e].navigation.thumbnails.position?t.top=i[e].navigation.thumbnails.ch+2*i[e].navigation.thumbnails.wrapper_padding:i[e].navigation.thumbnails.isVisible&&"outer-bottom"===i[e].navigation.thumbnails.position&&(t.bottom=i[e].navigation.thumbnails.ch+2*i[e].navigation.thumbnails.wrapper_padding)),i[e].navigation.tabs&&i[e].navigation.tabs.enable&&(i[e].navigation.tabs.isVisible=i[e].navigation.tabs.hide_underi[e].module.width,i[e].navigation.tabs.cw=Math.max(Math.round(i[e].navigation.tabs.width*i[e].navigation.scaler),i[e].navigation.tabs.min_width),i[e].navigation.tabs.ch=Math.round(i[e].navigation.tabs.cw/i[e].navigation.tabs.width*i[e].navigation.tabs.height),i[e].navigation.tabs.isVisible&&"outer-left"===i[e].navigation.tabs.position?t.left+=i[e].navigation.tabs.cw+2*i[e].navigation.tabs.wrapper_padding:i[e].navigation.tabs.isVisible&&"outer-right"===i[e].navigation.tabs.position?t.right+=i[e].navigation.tabs.cw+2*i[e].navigation.tabs.wrapper_padding:i[e].navigation.tabs.isVisible&&"outer-top"===i[e].navigation.tabs.position?t.top+=i[e].navigation.tabs.ch+2*i[e].navigation.tabs.wrapper_padding:i[e].navigation.tabs.isVisible&&"outer-bottom"===i[e].navigation.tabs.position&&(t.bottom+=i[e].navigation.tabs.ch+2*i[e].navigation.tabs.wrapper_padding)),{left:t.left,right:t.right,horizontal:t.left+t.right,vertical:t.top+t.bottom,top:t.top,bottom:t.bottom}},resizeThumbsTabs:function(e,t){if(void 0!==i[e]&&i[e].navigation.use&&(i[e].navigation&&i[e].navigation.bullets.enable||i[e].navigation&&i[e].navigation.tabs.enable||i[e].navigation&&i[e].navigation.thumbnails.enable)){var a=tpGS.gsap.timeline(),r=i[e].navigation.tabs,s=i[e].navigation.thumbnails,n=i[e].navigation.bullets;if(a.pause(),c(r)&&(t||r.width>r.min_width)&&o(e,a,i[e].c,r,i[e].slideamount,"tab"),c(s)&&(t||s.width>s.min_width)&&o(e,a,i[e].c,s,i[e].slideamount,"thumb",e),c(n)&&t){var d=i[e].c.find(".tp-bullets");d.find(".tp-bullet").each(function(e){var i=jQuery(this),t=e+1,a=i.outerWidth()+parseInt(void 0===n.space?0:n.space,0),o=i.outerHeight()+parseInt(void 0===n.space?0:n.space,0);"vertical"===n.direction?(i.css({top:(t-1)*o+"px",left:"0px"}),d.css({height:(t-1)*o+i.outerHeight(),width:i.outerWidth()})):(i.css({left:(t-1)*a+"px",top:"0px"}),d.css({width:(t-1)*a+i.outerWidth(),height:i.outerHeight()}))})}a.play()}return!0},updateNavIndexes:function(e){var t=i[e].c;function a(e){t.find(e).lenght>0&&t.find(e).each(function(e){jQuery(this).data("liindex",e)})}a("rs-tab"),a("rs-bullet"),a("rs-thumb"),i.resizeThumbsTabs(e,!0),i.manageNavigation(e)},manageNavigation:function(e,t){i[e].navigation.use&&(c(i[e].navigation.bullets)&&("fullscreen"!=i[e].sliderLayout&&"fullwidth"!=i[e].sliderLayout&&(i[e].navigation.bullets.h_offset_old=void 0===i[e].navigation.bullets.h_offset_old?parseInt(i[e].navigation.bullets.h_offset,0):i[e].navigation.bullets.h_offset_old,i[e].navigation.bullets.h_offset="center"===i[e].navigation.bullets.h_align?i[e].navigation.bullets.h_offset_old+i[e].outNavDims.left/2-i[e].outNavDims.right/2:i[e].navigation.bullets.h_offset_old+i[e].outNavDims.left),y(i[e].navigation.bullets,e)),c(i[e].navigation.thumbnails)&&y(i[e].navigation.thumbnails,e),c(i[e].navigation.tabs)&&y(i[e].navigation.tabs,e),c(i[e].navigation.arrows)&&("fullscreen"!=i[e].sliderLayout&&"fullwidth"!=i[e].sliderLayout&&(i[e].navigation.arrows.left.h_offset_old=void 0===i[e].navigation.arrows.left.h_offset_old?parseInt(i[e].navigation.arrows.left.h_offset,0):i[e].navigation.arrows.left.h_offset_old,i[e].navigation.arrows.left.h_offset=(i[e].navigation.arrows.left.h_align,i[e].navigation.arrows.left.h_offset_old),i[e].navigation.arrows.right.h_offset_old=void 0===i[e].navigation.arrows.right.h_offset_old?parseInt(i[e].navigation.arrows.right.h_offset,0):i[e].navigation.arrows.right.h_offset_old,i[e].navigation.arrows.right.h_offset=(i[e].navigation.arrows.right.h_align,i[e].navigation.arrows.right.h_offset_old)),y(i[e].navigation.arrows.left,e),y(i[e].navigation.arrows.right,e)),!1!==t&&(c(i[e].navigation.thumbnails)&&a(i[e].navigation.thumbnails,e),c(i[e].navigation.tabs)&&a(i[e].navigation.tabs,e)))},showFirstTime:function(e){g(e),i.hideUnHideNav(e)},selectNavElement:function(e,t,a,o){for(var r=i[e].cpar[0].getElementsByClassName(a),s=0;s0?l-1:i[e].slideamount-1,u=l+1==i[e].slideamount?0:l+1;if(!0===t.enable&&t.pi!==g&&t.ni!==u){if(t.pi=g,t.ni=u,t.left.c[0].innerHTML=i.transferParams(t.tmp,i[e].thumbs[g]),u>i[e].slideamount)return;t.right.c[0].innerHTML=i.transferParams(t.tmp,i[e].thumbs[u]),t.right.iholder=t.right.c.find(".tp-arr-imgholder"),t.left.iholder=t.left.c.find(".tp-arr-imgholder"),t.rtl?(void 0!==t.left.iholder[0]&&tpGS.gsap.set(t.left.iholder,{backgroundImage:"url("+i[e].thumbs[u].src+")"}),void 0!==i[e].thumbs[g]&&void 0!==t.right.iholder[0]&&tpGS.gsap.set(t.right.iholder,{backgroundImage:"url("+i[e].thumbs[g].src+")"})):(void 0!==i[e].thumbs[g]&&void 0!==t.left.iholder[0]&&tpGS.gsap.set(t.left.iholder,{backgroundImage:"url("+i[e].thumbs[g].src+")"}),void 0!==t.right.iholder[0]&&tpGS.gsap.set(t.right.iholder,{backgroundImage:"url("+i[e].thumbs[u].src+")"}))}}},createNavigation:function(e){var a=i[e].navigation.arrows,o=i[e].navigation.bullets,n=i[e].navigation.thumbnails,u=i[e].navigation.tabs,m=c(a),f=c(o),w=c(n),S=c(u);for(var x in r(e),s(e),m&&(v(a,e),a.c=i[e].cpar.find(".tparrows")),i[e].slides)if(i[e].slides.hasOwnProperty(x)&&"true"!=i.gA(i[e].slides[x],"not_in_nav")){var k=jQuery(i[e].slides[i[e].slides.length-1-x]),L=jQuery(i[e].slides[x]);f&&(i[e].navigation.bullets.rtl?b(i[e].c,o,k,e):b(i[e].c,o,L,e)),w&&(i[e].navigation.thumbnails.rtl?_(i[e].c,n,k,"tp-thumb",e):_(i[e].c,n,L,"tp-thumb",e)),S&&(i[e].navigation.tabs.rtl?_(i[e].c,u,k,"tp-tab",e):_(i[e].c,u,L,"tp-tab",e))}f&&y(o,e),w&&y(n,e),S&&y(u,e),(w||S)&&i.updateDims(e),i[e].navigation.createNavigationDone=!0,w&&jQuery.extend(!0,n,t(e,"thumb")),S&&jQuery.extend(!0,u,t(e,"tab")),i[e].c.on("revolution.slide.onafterswap revolution.nextslide.waiting",function(){i.updateNavElementContent(e,a,o,n,u)}),l(a),l(o),l(n),l(u),i[e].cpar.on("mouseenter mousemove",function(t){void 0!==t.target&&void 0!==t.target.className&&"string"==typeof t.target.className&&t.target.className.indexOf("rs-waction")>=0||!0!==i[e].tpMouseOver&&i[e].firstSlideAvailable&&(i[e].tpMouseOver=!0,g(e),i.ISM&&!0!==i[e].someNavIsDragged&&(p(i[e].hideAllNavElementTimer),i[e].hideAllNavElementTimer=setTimeout(function(){i[e].tpMouseOver=!1,h(e)},150)))}),i[e].cpar.on("mouseleave ",function(){i[e].tpMouseOver=!1,h(e)}),(w||S||"carousel"===i[e].sliderType||i[e].navigation.touch.touchOnDesktop||i[e].navigation.touch.touchenabled&&i.ISM)&&d(e),i[e].navigation.initialised=!0,i.updateNavElementContent(e,a,o,n,u),i.showFirstTime(e)}});var a=function(e,t){if(void 0!==e&&null!=e.mask){var a="vertical"===e.direction?e.mask.find(e.single).first().outerHeight(!0)+e.space:e.mask.find(e.single).first().outerWidth(!0)+e.space,o="vertical"===e.direction?e.mask.height():e.mask.width(),r=e.mask.find(e.single+".selected").data("liindex");r=(r=void 0===(r=e.rtl?i[t].slideamount-r:r)?0:r)>0&&1===i[t].sdir&&e.visibleAmount>1?r-1:r;var s=o/a,n="vertical"===e.direction?e.mask.height():e.mask.width(),d=0-r*a,l="vertical"===e.direction?e.wrap.height():e.wrap.width(),c=d<0-(l-n)?0-(l-n):d,p=i.gA(e.wrap[0],"offset");p=void 0===p?0:p,s>2&&(c=d-(p+a)<=0?d-(p+a)<0-a?p:c+a:c,c=d-a+p+o=e.wrap.width()||"vertical"===e.direction&&e.mask.height()>=e.wrap.height()?0:c<0-(l-n)?0-(l-n):c>0?0:c,e.c.hasClass("dragged")||("vertical"===e.direction?e.wrap.data("tmmove",tpGS.gsap.to(e.wrap,.5,{top:c+"px",ease:"power3.inOut"})):e.wrap.data("tmmove",tpGS.gsap.to(e.wrap,.5,{left:c+"px",ease:"power3.inOut"})),e.wrap.data("offset",c))}},o=function(e,t,a,o,r,s){var n=a.parent().find(".tp-"+s+"s"),d=n.find(".tp-"+s+"s-inner-wrapper"),l=n.find(".tp-"+s+"-mask"),c="vertical"===o.direction?o.cw:o.cw*r+parseFloat(o.space)*(r-1),p="vertical"===o.direction?o.ch*r+parseInt(o.space)*(r-1):o.ch,g="vertical"===o.direction?{width:o.cw+"px"}:{height:o.ch+"px"};if(t.add(tpGS.gsap.set(n,g)),t.add(tpGS.gsap.set(d,{width:c+"px",height:p+"px"})),"horizontal"===o.direction){var u=Math.min(c,o.cw*o.visibleAmount+parseFloat(o.space)*(o.visibleAmount-1));t.add(tpGS.gsap.set(l,{width:u+"px",height:p+"px"}))}else{var h=Math.min(p,o.ch*o.visibleAmount+parseFloat(o.space)*(o.visibleAmount-1));t.add(tpGS.gsap.set(l,{width:c+"px",height:h+"px"}))}null!==d.outerWidth()&&(i[e].thumbResized=!0);var m=d.find(".tp-"+s);return m&&jQuery.each(m,function(e,i){"vertical"===o.direction?t.add(tpGS.gsap.set(i,{top:e*(o.ch+parseInt(void 0===o.space?0:o.space,0)),width:o.cw+"px",height:o.ch+"px"})):"horizontal"===o.direction&&t.add(tpGS.gsap.set(i,{left:e*(o.cw+parseInt(void 0===o.space?0:o.space,0)),width:o.cw+"px",height:o.ch+"px"}))}),t},r=function(e){!0===i[e].navigation.keyboardNavigation&&i.document.on("keydown",function(t){if("horizontal"==i[e].navigation.keyboard_direction&&39==t.keyCode||"vertical"==i[e].navigation.keyboard_direction&&40==t.keyCode){if(void 0!==i[e].keydown_time_stamp&&(new Date).getTime()-i[e].keydown_time_stamp<1e3)return;i[e].sc_indicator="arrow",i[e].sc_indicator_dir=0,"carousel"===i[e].sliderType&&(i[e].ctNavElement=!0),i.callingNewSlide(e,1,"carousel"===i[e].sliderType)}if("horizontal"==i[e].navigation.keyboard_direction&&37==t.keyCode||"vertical"==i[e].navigation.keyboard_direction&&38==t.keyCode){if(void 0!==i[e].keydown_time_stamp&&(new Date).getTime()-i[e].keydown_time_stamp<1e3)return;i[e].sc_indicator="arrow",i[e].sc_indicator_dir=1,"carousel"===i[e].sliderType&&(i[e].ctNavElement=!0),i.callingNewSlide(e,-1,"carousel"===i[e].sliderType)}i[e].keydown_time_stamp=(new Date).getTime()})},s=function(e){!0!==i[e].navigation.mouseScrollNavigation&&"on"!==i[e].navigation.mouseScrollNavigation&&"carousel"!==i[e].navigation.mouseScrollNavigation||i[e].c.on("wheel mousewheel DOMMouseScroll",function(t){var a=function(e){var i=0;return"deltaY"in e||"deltaX"in e?i=0!=e.deltaY&&-0!=e.deltaY||!(e.deltaX<0||e.deltaX>0)?e.deltaY:e.deltaX:("detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120)),((i=navigator.userAgent.match(/mozilla/i)?10*i:i)>300||i<-300)&&(i/=10),i}(t.originalEvent),o=!1,r=0==i[e].pr_active_key||0==i[e].pr_processing_key,s=i[e].pr_active_key==i[e].slideamount-1||i[e].pr_processing_key==i[e].slideamount-1,n=void 0!==i[e].topc?i[e].topc[0].getBoundingClientRect():0===i[e].canv.height?i[e].cpar[0].getBoundingClientRect():i[e].c[0].getBoundingClientRect(),d=n.top>=0&&n.bottom<=i.winH?1:n.top>=0&&n.bottom>=i.winH?(i.winH-Math.round(n.top))/n.height:n.top<=0&&n.bottom<=i.winH?Math.round(n.bottom)/n.height:1,l=a<0?-1:1,c=i[e].navigation.wheelViewPort;if(d=Math.round(100*d)/100,"reverse"==i[e].navigation.mouseScrollReverse){var p=s;s=r,r=p}if(!(c-d<=i[e].navigation.threshold/100)||d>=c||(n.top>=0&&-1===l||n.top<=0&&1===l)){if(d>=c)return"carousel"===i[e].sliderType&&!1===i[e].carousel.snap?i.swipeAnimate({id:e,to:i[e].carousel.slide_offset+5*a,direction:a<0?"left":"right",easing:"power2.out",phase:"move"}):(i[e].sc_indicator_dir="reverse"===i[e].navigation.mouseScrollReverse&&l<0||"reverse"!==i[e].navigation.mouseScrollReverse&&l>0?"reverse"!==i[e].navigation.mouseScrollReverse?0:1:"reverse"!==i[e].navigation.mouseScrollReverse?1:0,"carousel"==i[e].navigation.mouseScrollNavigation||0===i[e].sc_indicator_dir&&!s||1===i[e].sc_indicator_dir&&!r?void 0===i[e].pr_processing_key&&!0!==i[e].justmouseScrolled?(i[e].sc_indicator="arrow","carousel"===i[e].sliderType&&(i[e].ctNavElement=!0),i.callingNewSlide(e,0===i[e].sc_indicator_dir?"reverse"===i[e].navigation.mouseScrollReverse?-1:1:"reverse"===i[e].navigation.mouseScrollReverse?1:-1,"carousel"===i[e].sliderType),i[e].justmouseScrolled=!0,setTimeout(function(){i[e].justmouseScrolled=!1},i[e].navigation.wheelCallDelay)):delete i[e].sc_indicator_dir:!0!==i[e].justmouseScrolled&&(o=!0)),!!o||(t.preventDefault(t),!1)}else if(t.preventDefault(),!i[e].mScrollTween){var g="window"!==i[e].navigation.target&&i[e].navigation.target?i[e].navigation.target:window;i[e].mScrollTween=tpGS.gsap.to(g,{duration:jQuery.fn.revolution.isWebkit()?.1:.7,scrollTo:{y:i[e].topc},ease:"power2.out",onComplete:function(){i[e].mScrollTween.kill(),delete i[e].mScrollTween}})}})},n=function(e,t){var a=!1;for(var o in(void 0===t.path||i.ISM)&&(a=function(e,i){for(;e&&e!==document;e=e.parentNode)if(e.tagName===i)return e;return!1}(t.target,e)),t.path)t.path.hasOwnProperty(o)&&t.path[o].tagName===e&&(a=!0);return a},d=function(e){var t=i[e].carousel,a=i.is_android();jQuery(".bullet, .bullets, .tp-bullets, .tparrows").addClass("noSwipe"),i[e].navigation.touch=void 0===i[e].navigation.touch?{}:i[e].navigation.touch,i[e].navigation.touch.swipe_direction=void 0===i[e].navigation.touch.swipe_direction?"horizontal":i[e].navigation.touch.swipe_direction,i[e].cpar.find(".rs-nav-element").rsswipe({allowPageScroll:"vertical",triggerOnTouchLeave:!0,treshold:i[e].navigation.touch.swipe_treshold,fingers:i[e].navigation.touch.swipe_min_touches>5?1:i[e].navigation.touch.swipe_min_touches,excludedElements:"button, input, select, textarea, .noSwipe, .rs-waction",tap:function(e,i){if(void 0!==i)var t=jQuery(i).closest("rs-thumb");void 0!==t&&t.length>0?t.trigger("click"):(t=jQuery(i).closest("rs-tab")).length>0?t.trigger("click"):(t=jQuery(i).closest("rs-bullet")).length>0&&t.trigger("click")},swipeStatus:function(o,r,s,d,l,c,g){if("start"!==r&&"move"!==r&&"end"!==r&&"cancel"!=r)return!0;var h=n("RS-THUMB",o),m=n("RS-TAB",o);!1===h&&!1===m&&!0!==(h="RS-THUMBS-WRAP"===o.target.tagName||"RS-THUMBS"===o.target.tagName||o.target.className.indexOf("tp-thumb-mask")>=0)&&(m="RS-TABS-WRAP"===o.target.tagName||"RS-TABS"===o.target.tagName||o.target.className.indexOf("tp-tab-mask")>=0);var v="start"===r?0:a?g[0].end.x-g[0].start.x:o.pageX-t.screenX,f="start"===r?0:a?g[0].end.y-g[0].start.y:o.pageY-t.screenY,w=h?".tp-thumbs":".tp-tabs",y=h?".tp-thumb-mask":".tp-tab-mask",b=h?".tp-thumbs-inner-wrapper":".tp-tabs-inner-wrapper",_=h?".tp-thumb":".tp-tab",S=h?i[e].navigation.thumbnails:i[e].navigation.tabs,x=i[e].cpar.find(y),k=x.find(b),L=S.direction,R="vertical"===L?k.height():k.width(),O="vertical"===L?x.height():x.width(),I="vertical"===L?x.find(_).first().outerHeight(!0)+parseFloat(S.space):x.find(_).first().outerWidth(!0)+parseFloat(S.space),M=void 0===k.data("offset")?0:parseInt(k.data("offset"),0),T=0;switch(r){case"start":"vertical"===L&&o.preventDefault(),t.screenX=a?g[0].end.x:o.pageX,t.screenY=a?g[0].end.y:o.pageY,i[e].cpar.find(w).addClass("dragged"),M="vertical"===L?k.position().top:k.position().left,k.data("offset",M),k.data("tmmove")&&k.data("tmmove").pause(),i[e].someNavIsDragged=!0,u(e);break;case"move":if(R<=O)return!1;T=(T=M+("vertical"===L?f:v))>0?"horizontal"===L?T-k.width()*(T/k.width()*T/k.width()):T-k.height()*(T/k.height()*T/k.height()):T;var C="vertical"===L?0-(k.height()-x.height()):0-(k.width()-x.width());T=T0?0:T,T=Math.abs(d)>I/10?d<=0?Math.floor(T/I)*I:Math.ceil(T/I)*I:d<0?Math.ceil(T/I)*I:Math.floor(T/I)*I,T=(T="vertical"===L?T<0-(k.height()-x.height())?0-(k.height()-x.height()):T:T<0-(k.width()-x.width())?0-(k.width()-x.width()):T)>0?0:T,"vertical"===L?tpGS.gsap.to(k,.5,{top:T+"px",ease:"power3.out"}):tpGS.gsap.to(k,.5,{left:T+"px",ease:"power3.out"}),T=T||("vertical"===L?k.position().top:k.position().left),k.data("offset",T),k.data("distance",d),i[e].cpar.find(w).removeClass("dragged"),i[e].someNavIsDragged=!1,!0}}}),("carousel"!==i[e].sliderType&&(i.ISM&&i[e].navigation.touch.touchenabled||!0!==i.ISM&&i[e].navigation.touch.touchOnDesktop)||"carousel"===i[e].sliderType&&(i.ISM&&i[e].navigation.touch.mobileCarousel||!0!==i.ISM&&i[e].navigation.touch.desktopCarousel))&&(i[e].preventClicks=!1,i[e].c.on("click",function(t){i[e].preventClicks&&t.preventDefault()}),i[e].c.rsswipe({allowPageScroll:"vertical",triggerOnTouchLeave:!0,treshold:i[e].navigation.touch.swipe_treshold,fingers:i[e].navigation.touch.swipe_min_touches>5?1:i[e].navigation.touch.swipe_min_touches,excludedElements:"label, button, input, select, textarea, .noSwipe, .rs-nav-element",swipeStatus:function(o,r,s,n,d,l,c){i[e].preventClicks=!0;var p="start"===r?0:a?c[0].end.x-c[0].start.x:o.pageX-t.screenX,g="start"===r?0:a?c[0].end.x-c[0].start.y:o.pageY-t.screenY;if(!("carousel"===i[e].sliderType&&i[e].carousel.wrapwidth>i[e].carousel.maxwidth&&"center"!==i[e].carousel.horizontal_align)){if("carousel"!==i[e].sliderType){if("end"==r){if(i[e].sc_indicator="arrow","horizontal"==i[e].navigation.touch.swipe_direction&&"left"==s||"vertical"==i[e].navigation.touch.swipe_direction&&"up"==s)return i[e].sc_indicator_dir=0,i.callingNewSlide(e,1),!1;if("horizontal"==i[e].navigation.touch.swipe_direction&&"right"==s||"vertical"==i[e].navigation.touch.swipe_direction&&"down"==s)return i[e].sc_indicator_dir=1,i.callingNewSlide(e,-1),!1}return!0}switch((t.preventSwipe||i.ISM&&("left"===s||"right"===s))&&o.preventDefault(),void 0!==t.positionanim&&t.positionanim.pause(),t.carouselAutomatic=!1,r){case"start":clearTimeout(t.swipeMainTimer),t.beforeSwipeOffet=t.slide_offset,t.focusedBeforeSwipe=t.focused,t.beforeDragStatus=i[e].sliderstatus,i[e].c.trigger("stoptimer"),t.swipeStartPos=a?c[0].start.x:o.pageX,t.swipeStartTime=(new Date).getTime(),t.screenX=a?c[0].end.x:o.pageX,t.screenY=a?c[0].end.y:o.pageY,void 0!==t.positionanim&&(t.positionanim.pause(),t.carouselAutomatic=!1),t.overpull="none",t.wrap.addClass("dragged");break;case"move":if("left"!==s&&"right"!==s||(t.preventSwipe=!0),t.justDragged=!0,Math.abs(p)>=10||i[e].carousel.isDragged){if(i[e].carousel.isDragged=!0,i[e].c.find(".rs-waction").addClass("tp-temporarydisabled"),t.CACHE_slide_offset=t.beforeSwipeOffet+p,!t.infinity){var u="center"===t.horizontal_align?(t.wrapwidth/2-t.slide_width/2-t.CACHE_slide_offset)/t.slide_width:(0-t.CACHE_slide_offset)/t.slide_width;"none"!==t.overpull&&0!==t.overpull||!(u<0||u>i[e].slideamount-1)?u>=0&&u<=i[e].slideamount-1&&(u>=0&&p>t.overpull||u<=i[e].slideamount-1&&pi[e].slideamount-1?t.CACHE_slide_offset+(t.overpull-p)/1.5-Math.sqrt(Math.abs((t.overpull-p)/1.5)):t.CACHE_slide_offset}i.swipeAnimate({id:e,to:t.CACHE_slide_offset,direction:s,easing:"power2.out",phase:"move"})}break;case"end":case"cancel":if(clearTimeout(t.swipeMainTimer),t.swipeMainTimer=setTimeout(function(){t.preventSwipe=!1},500),i[e].carousel.isDragged=!1,t.wrap.removeClass("dragged"),t.swipeEndPos=a?c[0].end.x:o.pageX,t.swipeEndTime=(new Date).getTime(),t.swipeDuration=t.swipeEndTime-t.swipeStartTime,t.swipeDistance=i.ISM?t.swipeEndPos-t.swipeStartPos:(t.swipeEndPos-t.swipeStartPos)/1.5,t.swipePower=t.swipeDistance/t.swipeDuration,t.CACHE_slide_offset=t.slide_offset+t.swipeDistance*Math.abs(t.swipePower),Math.abs(p)<5&&Math.abs(g)<5)break;i.swipeAnimate({id:e,to:t.CACHE_slide_offset,direction:s,fix:!0,newSlide:!0,easing:"power2.out",phase:"end"}),"playing"===t.beforeDragStatus&&i[e].c.trigger("restarttimer"),setTimeout(function(){i[e].c.find(".rs-waction").removeClass("tp-temporarydisabled")},19)}}},tap:function(){i[e].preventClicks=!1}})),"carousel"===i[e].sliderType&&(i.ISM&&0==i[e].navigation.touch.mobileCarousel||!0!==i.ISM&&!1===i[e].navigation.touch.desktopCarousel)&&t.wrap.addClass("noswipe"),i[e].navigation.touch.drag_block_vertical&&i[e].c.addClass("disableVerticalScroll")},l=function(e){e.hide_delay=i.isNumeric(parseInt(e.hide_delay,0))?e.hide_delay:.2,e.hide_delay_mobile=i.isNumeric(parseInt(e.hide_delay_mobile,0))?e.hide_delay_mobile:.2},c=function(e){return e&&e.enable},p=function(e){clearTimeout(e)},g=function(e){var t=i[e].navigation.maintypes;for(var a in t)t.hasOwnProperty(a)&&c(i[e].navigation[t[a]])&&void 0!==i[e].navigation[t[a]].c&&(p(i[e].navigation[t[a]].showCall),i[e].navigation[t[a]].showCall=setTimeout(function(t){p(t.hideCall),t.hide_onleave&&!0!==i[e].tpMouseOver||(void 0===t.tween?t.tween=m(t):t.tween.play())},i[e].navigation[t[a]].hide_onleave&&!0!==i[e].tpMouseOver?0:parseInt(i[e].navigation[t[a]].animDelay),i[e].navigation[t[a]]))},u=function(e){var t=i[e].navigation.maintypes;for(var a in t)t.hasOwnProperty(a)&&void 0!==i[e].navigation[t[a]]&&i[e].navigation[t[a]].hide_onleave&&c(i[e].navigation[t[a]])&&p(i[e].navigation[t[a]].hideCall)},h=function(e,t){var a=i[e].navigation.maintypes;for(var o in a)a.hasOwnProperty(o)&&void 0!==i[e].navigation[a[o]]&&i[e].navigation[a[o]].hide_onleave&&c(i[e].navigation[a[o]])&&(p(i[e].navigation[a[o]].hideCall),i[e].navigation[a[o]].hideCall=setTimeout(function(e){p(e.showCall),e.tween&&e.tween.reverse()},i.ISM?parseInt(i[e].navigation[a[o]].hide_delay_mobile,0):parseInt(i[e].navigation[a[o]].hide_delay,0),i[e].navigation[a[o]]))},m=function(e){e.speed=void 0===e.animSpeed?.5:e.animSpeed,e.anims=[],void 0!==e.anim&&void 0===e.left&&e.anims.push(e.anim),void 0!==e.left&&e.anims.push(e.left.anim),void 0!==e.right&&e.anims.push(e.right.anim);var i=tpGS.gsap.timeline();for(var t in i.add(tpGS.gsap.to(e.c,e.speed,{delay:e.animDelay,opacity:1,ease:"power3.inOut"}),0),e.anims)if(e.anims.hasOwnProperty(t))switch(e.anims[t]){case"left":i.add(tpGS.gsap.fromTo(e.c[t],e.speed,{marginLeft:-50},{delay:e.animDelay,marginLeft:"0px",ease:"power3.inOut"}),0);break;case"right":i.add(tpGS.gsap.fromTo(e.c[t],e.speed,{marginLeft:50},{delay:e.animDelay,marginLeft:"0px",ease:"power3.inOut"}),0);break;case"top":i.add(tpGS.gsap.fromTo(e.c[t],e.speed,{marginTop:-50},{delay:e.animDelay,marginTop:"0px",ease:"power3.inOut"}),0);break;case"bottom":i.add(tpGS.gsap.fromTo(e.c[t],e.speed,{marginTop:50},{delay:e.animDelay,marginTop:"0px",ease:"power3.inOut"}),0);break;case"zoomin":i.add(tpGS.gsap.fromTo(e.c[t],e.speed,{scale:.5},{delay:e.animDelay,scale:1,ease:"power3.inOut"}),0);break;case"zoomout":i.add(tpGS.gsap.fromTo(e.c[t],e.speed,{scale:1.2},{delay:e.animDelay,scale:1,ease:"power3.inOut"}),0)}return i.play(),i},v=function(e,t){e.style=void 0===e.style?"":e.style,e.left.style=void 0===e.left.style?"":e.left.style,e.right.style=void 0===e.right.style?"":e.right.style,void 0===e.left.c&&(e.left.c=jQuery(''+e.tmp+""),i[t].c.append(e.left.c)),void 0===e.right.c&&(e.right.c=jQuery(''+e.tmp+""),i[t].c.append(e.right.c)),e[e.rtl?"left":"right"].c.on("click",function(){"carousel"===i[t].sliderType&&(i[t].ctNavElement=!0),i[t].sc_indicator="arrow",i[t].sc_indicator_dir=0,i[t].c.revnext()}),e[e.rtl?"right":"left"].c.on("click",function(){"carousel"===i[t].sliderType&&(i[t].ctNavElement=!0),i[t].sc_indicator="arrow",i[t].sc_indicator_dir=1,i[t].c.revprev()}),e.padding_top=parseInt(i[t].carousel.padding_top||0,0),e.padding_bottom=parseInt(i[t].carousel.padding_bottom||0,0),y(e.left,t),y(e.right,t),"outer-left"!=e.position&&"outer-right"!=e.position||(i[t].outernav=!0)},f=function(e,t,a,o){o=void 0===o?e.outerHeight(!0):o;var r=null==i[a]?0:0==i[a].canv.height?i[a].module.height:i[a].canv.height,s="layergrid"==t.container?"fullscreen"==i[a].sliderLayout?i[a].module.height/2-i[a].gridheight[i[a].level]*i[a].CM.h/2:i[a].autoHeight||null!=i[a].minHeight&&i[a].minHeight>0?r/2-i[a].gridheight[i[a].level]*i[a].CM.h/2:0:0,n="top"===t.v_align?{top:"0px",y:Math.round(t.v_offset+s)+"px"}:"center"===t.v_align?{top:"50%",y:Math.round(0-o/2+t.v_offset)+"px"}:{top:"100%",y:Math.round(0-(o+t.v_offset+s))+"px"};e.hasClass("outer-bottom")||tpGS.gsap.set(e,n)},w=function(e,t,a,o){o=void 0===o?e.outerWidth():o;var r="layergrid"===t.container?i[a].module.width/2-i[a].gridwidth[i[a].level]*i[a].CM.w/2:0,s="left"===t.h_align?{left:"0px",x:Math.round(t.h_offset+r)+"px"}:"center"===t.h_align?{left:"50%",x:Math.round(0-o/2+t.h_offset)+"px"}:{left:"100%",x:Math.round(0-(o+t.h_offset+r))+"px"};tpGS.gsap.set(e,s)},y=function(e,t){if(null!=e&&void 0!==e.c){var a="fullwidth"==i[t].sliderLayout||"fullscreen"==i[t].sliderLayout?i[t].module.width:i[t].canv.width,o=e.c.outerWidth(),r=e.c.outerHeight();if(!(o<=0||r<=0)&&(f(e.c,e,t,r),w(e.c,e,t,o),"outer-left"===e.position?tpGS.gsap.set(e.c,{left:0-o+"px",x:e.h_offset+"px"}):"outer-right"===e.position&&tpGS.gsap.set(e.c,{right:0-o+"px",x:e.h_offset+"px"}),"tp-thumb"===e.type||"tp-tab"===e.type)){var s=parseInt(e.padding_top||0,0),n=parseInt(e.padding_bottom||0,0),d={},l={};e.maxw>a&&"outer-left"!==e.position&&"outer-right"!==e.position?(d.left="0px",d.x=0,d.maxWidth=a-2*e.wpad+"px",l.maxWidth=a-2*e.wpad+"px"):(d.maxWidth=e.maxw,l.maxWidth=a+"px"),e.maxh+2*e.wpad>i[t].conh&&"outer-bottom"!==e.position&&"outer-top"!==e.position?(d.top="0px",d.y=0,d.maxHeight=s+n+(i[t].conh-2*e.wpad)+"px",l.maxHeight=s+n+(i[t].conh-2*e.wpad)+"px"):(d.maxHeight=e.maxh+"px",l.maxHeight=e.maxh+"px"),e.mask=void 0===e.mask?e.c.find("rs-navmask"):e.mask,(e.mhoff>0||e.mvoff>0)&&(l.padding=e.mvoff+"px "+e.mhoff+"px"),e.span?("layergrid"==e.container&&"outer-left"!==e.position&&"outer-right"!==e.position&&(s=n=0),"vertical"===e.direction?(d.maxHeight=s+n+(i[t].conh-2*e.wpad)+"px",d.height=s+n+(i[t].conh-2*e.wpad)+"px",d.top=0,d.y=0,l.maxHeight=s+n+Math.min(e.maxh,i[t].conh-2*e.wpad)+"px",tpGS.gsap.set(e.c,d),tpGS.gsap.set(e.mask,l),f(e.mask,e,t)):"horizontal"===e.direction&&(d.maxWidth="100%",d.width=a-2*e.wpad+"px",d.left=0,d.x=0,l.maxWidth=e.maxw>=a?"100%":Math.min(e.maxw,a)+"px",tpGS.gsap.set(e.c,d),tpGS.gsap.set(e.mask,l),w(e.mask,e,t))):(tpGS.gsap.set(e.c,d),tpGS.gsap.set(e.mask,l))}}},b=function(e,t,a,o){0===e.find(".tp-bullets").length&&(t.style=void 0===t.style?"":t.style,t.c=jQuery(''));var r=a.data("key"),s=t.tmp;void 0!==i[o].thumbs[a.index()]&&jQuery.each(i[o].thumbs[a.index()].params,function(e,i){s=s.replace(i.from,i.to)});var n=jQuery(''+s+"");void 0!==i[o].thumbs[a.index()]&&n.find(".tp-bullet-image").css({backgroundImage:"url("+i[o].thumbs[a.index()].src+")"}),t.c.append(n),e.append(t.c);var d=t.c.find(".tp-bullet").length,l=n.outerWidth(),c=n.outerHeight(),p=l+parseInt(void 0===t.space?0:t.space,0),g=c+parseInt(void 0===t.space?0:t.space,0);"vertical"===t.direction?(n.css({top:(d-1)*g+"px",left:"0px"}),t.c.css({height:(d-1)*g+c,width:l})):(n.css({left:(d-1)*p+"px",top:"0px"}),t.c.css({width:(d-1)*p+l,height:c})),n.on("click",function(){"carousel"===i[o].sliderType&&(i[o].ctNavElement=!0),i[o].sc_indicator="bullet",e.revcallslidewithid(r),e.find(".tp-bullet").removeClass("selected"),jQuery(this).addClass("selected")}),t.padding_top=parseInt(i[o].carousel.padding_top||0,0),t.padding_bottom=parseInt(i[o].carousel.padding_bottom||0,0),"outer-left"!=t.position&&"outer-right"!=t.position||(i[o].outernav=!0)},_=function(e,t,a,o,r){var s="tp-thumb"===o?".tp-thumbs":".tp-tabs",n="tp-thumb"===o?".tp-thumb-mask":".tp-tab-mask",d="tp-thumb"===o?".tp-thumbs-inner-wrapper":".tp-tabs-inner-wrapper",l="tp-thumb"===o?".tp-thumb":".tp-tab",c="tp-thumb"===o?".tp-thumb-image":".tp-tab-image",p="tp-thumb"===o?"rs-thumb":"rs-tab";t.type=o,t.visibleAmount=t.visibleAmount>i[r].slideamount?i[r].slideamount:t.visibleAmount,t.sliderLayout=i[r].sliderLayout,void 0===t.c&&(t.wpad=t.wrapper_padding,t.c=jQuery("<"+p+'s style="opacity:0" class="nav-dir-'+t.direction+" nav-pos-ver-"+t.v_align+" nav-pos-hor-"+t.h_align+" rs-nav-element "+o+"s "+(!0===t.span?"tp-span-wrapper":"")+" "+t.position+" "+(void 0===t.style?"":t.style)+'"><'+p+'s-wrap class="'+o+'s-inner-wrapper" style="position:relative;">"),t.c.css({overflow:"visible",position:"outer-top"===t.position||"outer-bottom"===t.position?"relative":"absolute",background:t.wrapper_color,padding:t.wpad+"px",boxSizing:"contet-box"}),"outer-top"===t.position?e.parent().prepend(t.c):"outer-bottom"===t.position?e.after(t.c):e.append(t.c),"outer-left"!==t.position&&"outer-right"!==t.position||tpGS.gsap.set(i[r].c,{overflow:"visible"}),t.padding_top=parseInt(i[r].carousel.padding_top||0,0),t.padding_bottom=parseInt(i[r].carousel.padding_bottom||0,0),"outer-left"!=t.position&&"outer-right"!=t.position||(i[r].outernav=!0));var g=a.data("key"),u=t.c.find(n),h=u.find(d),m=t.tmp;t.space=parseFloat(t.space)||0,t.maxw="horizontal"===t.direction?t.width*t.visibleAmount+t.space*(t.visibleAmount-1):t.width,t.maxh="horizontal"===t.direction?t.height:t.height*t.visibleAmount+t.space*(t.visibleAmount-1),t.maxw+=2*t.mhoff,t.maxh+=2*t.mvoff,void 0!==i[r].thumbs[a.index()]&&jQuery.each(i[r].thumbs[a.index()].params,function(e,i){m=m.replace(i.from,i.to)});var v=jQuery("<"+p+' data-liindex="'+a.index()+'" data-key="'+g+'" class="'+o+'" style="width:'+t.width+"px;height:"+t.height+'px;">'+m+"<"+p+">");void 0!==i[r].thumbs[a.index()]&&v.find(c).css({backgroundImage:"url("+i[r].thumbs[a.index()].src+")"}),h.append(v);var f=t.c.find(l).length,w=v.outerWidth(),y=v.outerHeight(),b=w+parseInt(void 0===t.space?0:t.space,0),_=y+parseInt(void 0===t.space?0:t.space,0);"vertical"===t.direction?(v.css({top:(f-1)*_+"px",left:"0px"}),h.css({height:(f-1)*_+y,width:w})):(v.css({left:(f-1)*b+"px",top:"0px"}),h.css({width:(f-1)*b+w,height:y})),u.css({maxWidth:t.maxw+"px",maxHeight:t.maxh+"px"}),t.c.css({maxWidth:t.maxw+"px",maxHeight:t.maxh+"px"}),v.on("click",function(){i[r].sc_indicator="bullet","carousel"===i[r].sliderType&&(i[r].ctNavElement=!0);var t=e.parent().find(d).data("distance");t=void 0===t?0:t,Math.abs(t)<10&&(e.revcallslidewithid(g),e.parent().find(s).removeClass("selected"),jQuery(this).addClass("selected"))})},S=function(e,t,a){return null==e||void 0===e.c?a:(e.hide_under>i[t].canv.width||i[t].canv.width>e.hide_over?(!0!==e.tpForceNotVisible&&(e.c.addClass("tp-forcenotvisible"),e.isVisible=!1,a=!0),e.tpForceNotVisible=!0):(!1!==e.tpForceNotVisible&&(e.c.removeClass("tp-forcenotvisible"),e.isVisible=!0,a=!0),e.tpForceNotVisible=!1),a)};window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.navigation={loaded:!0,version:"6.5.12"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(jQuery),function(e){"use strict";window._R_is_Editor?RVS._R=void 0===RVS._R?{}:RVS._R:window._R_is_Editor=!1,jQuery.fn.revolution=jQuery.fn.revolution||{};var i=_R_is_Editor?RVS._R:jQuery.fn.revolution;jQuery.extend(!0,i,{bgW:function(e,t){return _R_is_Editor?RVS.RMD.width:"carousel"===i[e].sliderType?i[e].justifyCarousel?i[e].carousel.slide_widths[void 0!==t?t:i[e].carousel.focused]:i[e].carousel.slide_width:i[e].module.width},bgH:function(e,t){return _R_is_Editor?RVS.RMD.height:"carousel"===i[e].sliderType?i[e].carousel.slide_height:i[e].module.height},getPZSides:function(e,i,t,a,o,r,s){var n=e*t,d=i*t,l=Math.abs(a-n),c=Math.abs(o-d),p=new Object;return p.l=(0-r)*l,p.r=p.l+n,p.t=(0-s)*c,p.b=p.t+d,p.h=r,p.v=s,p},getPZCorners:function(e,t,a,o){var r=e.bgposition.split(" ")||"center center",s="center"==r[0]?"50%":"left"==r[0]||"left"==r[1]?"0%":"right"==r[0]||"right"==r[1]?"100%":r[0],n="center"==r[1]?"50%":"top"==r[0]||"top"==r[1]?"0%":"bottom"==r[0]||"bottom"==r[1]?"100%":r[1];s=parseInt(s,0)/100||0,n=parseInt(n,0)/100||0;var d=new Object;return d.start=i.getPZSides(o.start.width,o.start.height,o.start.scale,t,a,s,n),d.end=i.getPZSides(o.start.width,o.start.height,o.end.scale,t,a,s,n),d},getPZValues:function(e){var i=e.panzoom.split(";"),t={duration:10,ease:"none",scalestart:1,scaleend:1,rotatestart:.01,rotateend:0,blurstart:0,blurend:0,offsetstart:"0/0",offsetend:"0/0"};for(var a in i)if(i.hasOwnProperty(a)){var o=i[a].split(":"),r=o[0],s=o[1];switch(r){case"d":t.duration=parseInt(s,0)/1e3;break;case"e":t.ease=s;break;case"ss":t.scalestart=parseInt(s,0)/100;break;case"se":t.scaleend=parseInt(s,0)/100;break;case"rs":t.rotatestart=parseInt(s,0);break;case"re":t.rotateend=parseInt(s,0);break;case"bs":t.blurstart=parseInt(s,0);break;case"be":t.blurend=parseInt(s,0);break;case"os":t.offsetstart=s;break;case"oe":t.offsetend=s}}return t.offsetstart=t.offsetstart.split("/")||[0,0],t.offsetend=t.offsetend.split("/")||[0,0],t.rotatestart=0===t.rotatestart?.01:t.rotatestart,e.panvalues=t,e.bgposition="center center"==e.bgposition?"50% 50%":e.bgposition,t},pzCalcL:function(e,t,a){var o,r,s,n,d,l,c=void 0===a.panvalues?jQuery.extend(!0,{},i.getPZValues(a)):jQuery.extend(!0,{},a.panvalues),p=c.offsetstart,g=c.offsetend,u={start:{width:e,height:_R_is_Editor?e/a.loadobj.width*a.loadobj.height:e/a.owidth*a.oheight,rotation:Math.PI/180*c.rotatestart,rotationV:c.rotatestart,scale:c.scalestart,transformOrigin:"0% 0%"},end:{rotation:Math.PI/180*c.rotateend,rotationV:c.rotateend,scale:c.scaleend}};c.scalestart,a.owidth,a.oheight,c.scaleend,a.owidth,a.oheight;return u.start.height0?0:r+p[0]0?0:n+g[0]0?0:s+p[1]0?0:d+g[1]');tpGS.gsap.set(r,{force3D:"auto",transformPerspective:1600,transformOrigin:"50% 50%",width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:0}),i[e].c.prepend(r)}for(var s in i[e].slides)i[e].slides.hasOwnProperty(s)&&t(jQuery(i[e].slides[s]),e);i[e].c.find("rs-static-layers").length>0&&(tpGS.gsap.set(i[e].c.find("rs-static-layers"),{top:0,left:0,width:"100%",height:"100%"}),t(i[e].c.find("rs-static-layers"),e))}o.pcontainers={},o.bgcontainers=[],o.bgcontainer_depths=[],o.speed=void 0===o.speed?0:parseInt(o.speed,0),o.speedbg=void 0===o.speedbg?0:parseInt(o.speedbg,0),o.speedls=void 0===o.speedls?0:parseInt(o.speedls,0),i[e].c.find("rs-slide rs-sbg-wrap, rs-slide rs-bgvideo").each(function(){var t=jQuery(this),a=t.data("parallax");window.isSafari11||(i[e].parZ=1),void 0!==(a="on"==a||!0===a?1:a)&&"off"!==a&&!1!==a&&(o.bgcontainers.push(t.closest("rs-sbg-px")),o.bgcontainer_depths.push(i[e].parallax.levels[parseInt(a,0)-1]/100))});for(s=1;s<=o.levels.length;s++){for(var n in i[e].slides)if(i[e].slides.hasOwnProperty(n)){var d=(c=i[e].slides[n]).dataset.key;void 0===o.pcontainers[d]&&(o.pcontainers[d]={}),a(s,o,c,o.pcontainers[d])}d="static";void 0===o.pcontainers[d]&&(o.pcontainers[d]={}),a(s,o,i[e].slayers[0],o.pcontainers[d]),JSON.stringify(o.pcontainers[d])==JSON.stringify({})&&delete o.pcontainers[d]}if("mouse"==o.type||"mousescroll"==o.type||"3D"==o.type||"3d"==o.type){var l="rs-slide .dddwrapper, .dddwrappershadow, rs-slide .dddwrapper-layer, rs-static-layers .dddwrapper-layer";for(var n in"carousel"===i[e].sliderType&&(l="rs-slide .dddwrapper, rs-slide .dddwrapper-layer, rs-static-layers .dddwrapper-layer"),o.sctors={},i[e].slides)if(i[e].slides.hasOwnProperty(n)){var c;d=(c=i[e].slides[n]).dataset.key;o.sctors[d]=c.querySelectorAll(l)}i[e].slayers[0]&&(o.sctors.static=i[e].slayers[0].querySelectorAll(l)),o.mouseEntered=!1,i[e].c.on("mouseenter",function(t){var a=i[e].c.offset().top,r=i[e].c.offset().left;o.mouseEnterX=t.pageX-r,o.mouseEnterY=t.pageY-a,o.mouseEntered=!0});var p=this.updateParallax.bind(this,e,o);i[e].c.on("mousemove.hoverdir, mouseleave.hoverdir, trigger3dpath",function(e){o.eventData=e,void 0!==o.frame&&"mouseleave"!==e.type||(o.frame=window.requestAnimationFrame(p))}),i.ISM&&window.addEventListener("deviceorientation",function(e){o.eventData=e,void 0===o.frame&&(o.frame=window.requestAnimationFrame(p))})}var g=i[e].scrolleffect;g.set&&(g.multiplicator_layers=parseFloat(g.multiplicator_layers),g.multiplicator=parseFloat(g.multiplicator)),void 0!==g._L&&0===g._L.length&&(g._L=!1),void 0!==g.bgs&&0===g.bgs.length&&(g.bgs=!1)}},getLayerParallaxOffset:function(e,t,a){return void 0!==i[e].parallax&&void 0!==i[e].parallax.pcontainers&&void 0!==i[e].parallax.pcontainers[i[e]._L[t].slidekey]&&void 0!==i[e].parallax.pcontainers[i[e]._L[t].slidekey][t]?Math.abs(i[e].parallax.pcontainers[i[e]._L[t].slidekey][t]["offs"+a]):0},updateParallax:function(e,t){t.frame&&(t.frame=window.cancelAnimationFrame(t.frame));var a,o,r=t.eventData,s=i[e].c.offset().left,n=i[e].c.offset().top,d=i[e].canv.width,l=i[e].canv.height,c=t.speed/1e3||3;if("enterpoint"==t.origo&&"deviceorientation"!==r.type?(!1===t.mouseEntered&&(t.mouseEnterX=r.pageX-s,t.mouseEnterY=r.pageY-n,t.mouseEntered=!0),a=t.mouseEnterX-(r.pageX-s),o=t.mouseEnterY-(r.pageY-n),c=t.speed/1e3||.4):"deviceorientation"!==r.type&&(a=d/2-(r.pageX-s),o=l/2-(r.pageY-n)),"deviceorientation"==r.type){var p,g,u;p=r.beta-60,g=r.gamma,u=p;var h=Math.abs(t.orientationX-g)>1||Math.abs(t.orientationY-u)>1;if(t.orientationX=g,t.orientationY=u,!h)return;if(i.winW>i.getWinH(e)){var m=g;g=u,u=m}a=360/d*(g*=1.5),o=180/l*(u*=1.5)}for(var v in r.type,"mouseout"===r.type&&(a=0,o=0,t.mouseEntered=!1),t.pcontainers)if(t.pcontainers.hasOwnProperty(v)&&(void 0===i[e].activeRSSlide||"static"===v||i[e].slides[i[e].activeRSSlide].dataset.key===v))for(var f in t.pcontainers[v])if(t.pcontainers[v].hasOwnProperty(f)){var w=t.pcontainers[v][f];w.pl="3D"==t.type||"3d"==t.type?w.depth/200:w.depth/100,w.offsh=a*w.pl,w.offsv=o*w.pl,"mousescroll"==t.type?tpGS.gsap.to(w.tpw,c,{force3D:"auto",x:w.offsh,ease:"power3.out",overwrite:"all"}):tpGS.gsap.to(w.tpw,c,{force3D:"auto",x:w.offsh,y:w.offsv,ease:"power3.out",overwrite:"all"})}if("3D"==t.type||"3d"==t.type)for(var v in t.sctors)if(t.sctors.hasOwnProperty(v)&&(void 0===i[e].activeRSSlide||"static"===v||i[e].slides[i[e].activeRSSlide].dataset.key===v||i.isFF))for(var f in t.sctors[v])if(t.sctors[v].hasOwnProperty(f)){n=jQuery(t.sctors[v][f]);var y=i.isFirefox()?Math.min(25,t.levels[t.levels.length-1])/200:t.levels[t.levels.length-1]/200,b=a*y,_=o*y,S=0==i[e].canv.width?0:Math.round(a/i[e].canv.width*y*100)||0,x=0==i[e].canv.height?0:Math.round(o/i[e].canv.height*y*100)||0,k=n.closest("rs-slide"),L=0,R=!1;"deviceorientation"===r.type&&(b=a*(y=t.levels[t.levels.length-1]/200),_=o*y*3,S=0==i[e].canv.width?0:Math.round(a/i[e].canv.width*y*500)||0,x=0==i[e].canv.height?0:Math.round(o/i[e].canv.height*y*700)||0),n.hasClass("dddwrapper-layer")&&(L=t.ddd_z_correction||65,R=!0),n.hasClass("dddwrapper-layer")&&(b=0,_=0),k.index()===i[e].pr_active_key||"carousel"!=i[e].sliderType?!t.ddd_bgfreeze||R?tpGS.gsap.to(n,c,{rotationX:x,rotationY:-S,x:b,z:L,y:_,ease:"power3.out",overwrite:"all"}):tpGS.gsap.to(n,.5,{force3D:"auto",rotationY:0,rotationX:0,z:0,ease:"power3.out",overwrite:"all"}):tpGS.gsap.to(n,.5,{force3D:"auto",rotationY:0,x:0,y:0,rotationX:0,z:0,ease:"power3.out",overwrite:"all"}),"mouseleave"!=r.type&&"mouseout"!==r.type||tpGS.gsap.to(this,3.8,{z:0,ease:"power3.out"})}},parallaxProcesses:function(e,t,a,o){var r=i[e].fixedOnTop?Math.min(1,Math.max(0,window.scrollY/i.lastwindowheight)):Math.min(1,Math.max(0,(0-(t.top-i.lastwindowheight))/(t.hheight+i.lastwindowheight))),s=(t.top>=0&&t.top<=i.lastwindowheight||t.top<=0&&t.bottom>=0||t.top<=0&&t.bottom,i[e].slides[void 0===i[e].pr_active_key?0:i[e].pr_active_key]);if(i[e].scrollProg=r,i[e].scrollProgBasics={top:t.top,height:t.hheight,bottom:t.bottom},i[e].sbtimeline.fixed?(!1===i[e].fixedScrollOnState||0!==i[e].drawUpdates.cpar.left||!i.stickySupported||0!=i[e].fullScreenOffsetResult&&null!=i[e].fullScreenOffsetResult?i.stickySupported=!1:(i[e].topc.addClass("rs-stickyscrollon"),i[e].fixedScrollOnState=!0),void 0===i[e].sbtimeline.rest&&i.updateFixedScrollTimes(e),t.top>=i[e].fullScreenOffsetResult&&t.top<=i.lastwindowheight?(r=i[e].sbtimeline.fixStart*(1-t.top/i.lastwindowheight)/1e3,!0!==i.stickySupported&&!1!==i[e].fixedScrollOnState&&(i[e].topc.removeClass("rs-fixedscrollon"),tpGS.gsap.set(i[e].cpar,{top:0,y:0}),i[e].fixedScrollOnState=!1)):t.top<=i[e].fullScreenOffsetResult&&t.bottom>=i[e].module.height?(!0!==i.stickySupported&&!0!==i[e].fixedScrollOnState&&(i[e].fixedScrollOnState=!0,i[e].topc.addClass("rs-fixedscrollon"),tpGS.gsap.set(i[e].cpar,{top:0,y:i[e].fullScreenOffsetResult})),r=(i[e].sbtimeline.fixStart+i[e].sbtimeline.time*(Math.abs(t.top)/(t.hheight-i[e].module.height)))/1e3):(!0!==i.stickySupported&&(tpGS.gsap.set(i[e].cpar,{top:i[e].scrollproc>=0?0:t.height-i[e].module.height}),!1!==i[e].fixedScrollOnState&&(i[e].topc.removeClass("rs-fixedscrollon"),i[e].fixedScrollOnState=!1)),r=t.top>i.lastwindowheight?0:(i[e].sbtimeline.fixEnd+i[e].sbtimeline.rest*(1-t.bottom/i[e].module.height))/1e3)):r=i[e].duration*r/1e3,void 0!==s&&void 0!==i.gA(s,"key")&&!0!==a){var n=0;for(var d in i[e].sbas[i.gA(s,"key")])if(void 0!==i[e]._L[d]&&null==i[e]._L[d].timeline&&n++,void 0!==i[e]._L[d]&&void 0!==i[e]._L[d].timeline&&(1==i[e]._L[d].animationonscroll||"true"==i[e]._L[d].animationonscroll)){n=-9999;var l=void 0!==i[e]._L[d].scrollBasedOffset?r+i[e]._L[d].scrollBasedOffset:r;l=l<=0?0:l<.1?.1:l,i[e]._L[d].animteToTime!==l&&(i[e]._L[d].animteToTime=l,tpGS.gsap.to(i[e]._L[d].timeline,i[e].sbtimeline.speed,{time:l,ease:i[e].sbtimeline.ease}))}n>0&&requestAnimationFrame(function(){i.parallaxProcesses(e,t,a,o)}),i[e].c.trigger("timeline_scroll_processed",{id:e,mproc:r,speed:i[e].sbtimeline.speed})}if(i.ISM&&i[e].parallax.disable_onmobile)return!1;var c,p=i[e].parallax;if(void 0!==i[e].slides[i[e].pr_processing_key]&&void 0!==i[e].slides[i[e].pr_processing_key].dataset&&(c=i[e].slides[i[e].pr_processing_key].dataset.key),"3d"!=p.type&&"3D"!=p.type){if("scroll"==p.type||"mousescroll"==p.type)for(var g in p.pcontainers)if(p.pcontainers.hasOwnProperty(g)&&(void 0===i[e].activeRSSlide||"static"===g||i[e].slides[i[e].activeRSSlide].dataset.key===g||c===g))for(var u in p.pcontainers[g])if(p.pcontainers[g].hasOwnProperty(u)){var h=p.pcontainers[g][u],m=void 0!==o?o:p.speedls/1e3||0;h.pl=h.depth/100,h.offsv=Math.round(i[e].scrollproc*(-h.pl*i[e].canv.height)*10)/10||0,tpGS.gsap.to(h.tpw,m,{overwrite:"auto",force3D:"auto",y:h.offsv})}if(p.bgcontainers)for(u=0;u50?.15:m,tpGS.gsap.to(v,m,{position:"absolute",top:"0px",left:"0px",backfaceVisibility:"hidden",force3D:"true",y:w+"px"}),i[e].parallax.lastBGY=w}}var y=i[e].scrolleffect;if(y.set&&(!i.ISM||!1===y.disable_onmobile)){var b=Math.abs(i[e].scrollproc)-y.tilt/100;if(b=b<0?0:b,!1!==y._L){var _=1-b*y.multiplicator_layers,S={force3D:"true"};if("top"==y.direction&&i[e].scrollproc>=0&&(_=1),"bottom"==y.direction&&i[e].scrollproc<=0&&(_=1),_=_>1?1:_<0?0:_,y.fade&&(S.opacity=_),y.scale){var x=_;S.scale=1-x+1}if(y.blur)R=(R=(1-_)*y.maxblur)<=.03?0:R,S["-webkit-filter"]="blur("+R+"px)",S.filter="blur("+R+"px)";if(y.grayscale){var k="grayscale("+100*(1-_)+"%)";S["-webkit-filter"]=void 0===S["-webkit-filter"]?k:S["-webkit-filter"]+" "+k,S.filter=void 0===S.filter?k:S.filter+" "+k}tpGS.gsap.set(y._L,S)}if(!1!==y.bgs){_=1-b*y.multiplicator,S={backfaceVisibility:"hidden",force3D:"true"};for(var L in"top"==y.direction&&i[e].scrollproc>=0&&(_=1),"bottom"==y.direction&&i[e].scrollproc<=0&&(_=1),_=_>1?1:_<0?0:_,y.bgs)if(y.bgs.hasOwnProperty(L)){if(y.bgs[L].fade&&(S.opacity=_),y.bgs[L].blur){var R=(1-_)*y.maxblur;S["-webkit-filter"]="blur("+R+"px)",S.filter="blur("+R+"px)"}if(y.bgs[L].grayscale){k="grayscale("+100*(1-_)+"%)";S["-webkit-filter"]=void 0===S["-webkit-filter"]?k:S["-webkit-filter"]+" "+k,S.filter=void 0===S.filter?k:S.filter+" "+k}tpGS.gsap.set(y.bgs[L].c,S)}}}}});var t=function(e,t){var a=i[t].parallax;e.find("rs-sbg-wrap").wrapAll('
');var o=e[0].querySelectorAll(".rs-parallax-wrap"),r=document.createElement("div");r.className="dddwrapper-layer",r.style.width="100%",r.style.height="100%",r.style.position="absolute",r.style.top="0px",r.style.left="0px",r.style.zIndex=5,r.style.overflow=a.ddd_layer_overflow;for(var s=0;s');var n=e.find(".dddwrapper"),d=e.find(".dddwrapper-layer");e.find(".dddwrapper-layertobggroup").appendTo(n),"carousel"==i[t].sliderType&&(a.ddd_shadow&&n.addClass("dddwrappershadow"),tpGS.gsap.set(n,{borderRadius:i[t].carousel.border_radius})),tpGS.gsap.set(e,{overflow:"visible",transformStyle:"preserve-3d",perspective:1600}),tpGS.gsap.set(n,{force3D:"auto",transformOrigin:"50% 50%",transformStyle:"preserve-3d",transformPerspective:1600}),tpGS.gsap.set(d,{force3D:"auto",transformOrigin:"50% 50%",zIndex:5,transformStyle:"flat",transformPerspective:1600}),tpGS.gsap.set(i[t].canvas,{transformStyle:"preserve-3d",transformPerspective:1600})};function a(t,a,o,r){e(o).find(".rs-pxl-"+t).each(function(){var e=this.className.indexOf("rs-pxmask")>=0,o=e?i.closestNode(this,"RS-PX-MASK"):i.closestClass(this,"rs-parallax-wrap");o&&(e&&!window.isSafari11&&(tpGS.gsap.set(o,{z:1}),tpGS.gsap.set(i.closestNode(o,"RS-BG-ELEM"),{z:1})),o.dataset.parallaxlevel=a.levels[t-1],o.classList.add("tp-parallax-container"),r[this.id]={tpw:o,depth:a.levels[t-1],offsv:0,offsh:0})})}window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.parallax={loaded:!0,version:"6.2.24"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(jQuery),function(e){"use strict";window._R_is_Editor?RVS._R=void 0===RVS._R?{}:RVS._R:window._R_is_Editor=!1;jQuery.fn.revolution=jQuery.fn.revolution||{};var i=_R_is_Editor?RVS._R:jQuery.fn.revolution;_R_is_Editor&&(RVS._R.isNumeric=RVS.F.isNumeric),jQuery.extend(!0,i,{getSlideAnimationObj:function(e,t,a){var o,r={};for(var s in void 0===t.anim&&null==t.in&&(t.in="o:0"),t)if(t.hasOwnProperty(s)&&void 0!==t[s]){var n=t[s].split(";");for(var d in n)n.hasOwnProperty(d)&&void 0!==(o=n[d].split(":"))[0]&&void 0!==o[1]&&(r[s]=void 0===r[s]?{}:r[s],r[s][o[0]]="d3"===s&&"c"===o[0]?o[1]:o[1].split(",")[0])}return r.in=void 0===r.in?{}:r.in,r.anim=void 0===r.anim?{e:"basic"}:r.anim,_R_is_Editor||void 0===r.in||void 0===r.in.prst||i.loadSlideAnimLibrary(e,{key:a,prst:r.in.prst}),i[e].sbgs[a].slideanimationRebuild=!1,r},loadSlideAnimLibrary:function(e,t){void 0===i.SLTR&&!0!==i.SLTR_loading?(i.SLTR_loading=!0,jQuery.ajax({type:"post",url:i[e].ajaxUrl,dataType:"json",data:{action:"revslider_ajax_call_front",client_action:"get_transitions"},success:function(a,o,r){1==a.success&&(i.SLTR=a.transitions,void 0!==t&&i.setRandomDefaults(e,t.key,t.prst))},error:function(e){console.log("Transition Table can not be loaded"),console.log(e)}})):void 0!==t&&void 0!==i.SLTR&&i.setRandomDefaults(e,t.key,t.prst)},convertSlideAnimVals:function(e){return{anim:{eng:e.eng,ms:parseInt(e.speed,0),o:e.o,e:e.e,f:e.f,p:e.p,d:parseInt(e.d,0),adpr:e.adpr},d3:{f:e.d3.f,d:e.d3.d,z:e.d3.z,t:e.d3.t,c:e.d3.c,e:e.d3.e,fdi:e.d3.fdi,fdo:e.d3.fdo,fz:e.d3.fz,su:e.d3.su,smi:e.d3.smi,sma:e.d3.sma,sc:e.d3.sc,sl:e.d3.sl},in:{eng:e.in.eng,o:_R_is_Editor&&void 0!==e.preset&&0===e.preset.indexOf("rnd")?0:i.valBeau(e.in.o),x:i.valBeau(e.in.x),y:i.valBeau(e.in.y),r:i.valBeau(e.in.r),sx:i.valBeau(e.in.sx),sy:i.valBeau(e.in.sy),m:e.in.m,e:e.in.e,row:e.in.row,col:e.in.col,mo:"false"!==e.in.mou&&!1!==e.in.mou?i.valBeau(e.in.mo):0,moo:"false"!==e.in.mou&&!1!==e.in.mou?i.valBeau(e.in.moo):"none",mou:e.in.mou},out:void 0===e.out.a||"true"==e.out.a||!0===e.out.a?void 0:{a:d(e.out.a),o:i.valBeau(e.out.o),x:i.valBeau(e.out.x),y:i.valBeau(e.out.y),r:i.valBeau(e.out.r),sx:i.valBeau(e.out.sx),sy:i.valBeau(e.out.sy),m:e.out.m,e:e.out.e,row:i.valBeau(e.out.row),col:i.valBeau(e.out.col)},filter:{u:e.filter.u,e:e.filter.e,b:e.filter.b,g:e.filter.g,h:e.filter.h,s:e.filter.s,c:e.filter.c,i:e.filter.i},addOns:e.addOns}},setRandomDefaults:function(e,t,a){i[e].sbgs[t].random=i.getAnimObjectByKey(a,i.SLTR)},getSlideAnim_AddonDefaults:function(){var e={};for(var t in i.enabledSlideAnimAddons)e=jQuery.extend(!0,e,i[i.enabledSlideAnimAddons[t]].defaults());return e},getSlideAnim_EmptyObject:function(){return{speed:1e3,o:"inout",e:"basic",f:"start",p:"none",d:15,eng:"animateCore",adpr:!1,d3:{f:"none",d:"horizontal",z:300,t:0,c:"#ccc",e:"power2.inOut",fdi:1.5,fdo:2,fz:0,su:!1,smi:0,sma:.5,sc:"#000",sl:1},filter:{u:!1,e:"default",b:0,g:0,h:100,s:0,c:100,i:0},in:{o:1,x:0,y:0,r:0,sx:1,sy:1,m:!1,e:"power2.inOut",row:1,col:1,mo:80,mou:!1},out:{a:"true",o:1,x:0,y:0,r:0,sx:1,sy:1,m:!1,e:"power2.inOut",row:1,col:1},addOns:i.getSlideAnim_AddonDefaults()}},getAnimObjectByKey:function(e,t){if(i.getAnimObjectCacheKey===e)return i.getAnimObjectCache;var a;for(var o in i.getAnimObjectCacheKey=e,t)if(t.hasOwnProperty(o)&&void 0===a)for(var r in t[o])if(t[o].hasOwnProperty(r)&&void 0===a)if(e===r&&0===e.indexOf("rnd"))(a=t[o][r]).main=o,a.group=r;else for(var s in t[o][r])t[o][r].hasOwnProperty(s)&&void 0===a&&s===e&&((a=t[o][r][s]).main=o,a.group=r);return i.getAnimObjectCache=jQuery.extend(!0,{},a),a},getRandomSlideTrans:function(e,t,a){if(void 0!==i.randomSlideAnimCache&&void 0!==i.randomSlideAnimCache[e]&&void 0!==i.randomSlideAnimCache[e][t])return i.randomSlideAnimCache[e][t][Math.floor(Math.random()*i.randomSlideAnimCache[e][t].length)];for(var o in i.randomSlideAnimCache=void 0===i.randomSlideAnimCache?{}:i.randomSlideAnimCache,i.randomSlideAnimCache[e]=void 0===i.randomSlideAnimCache[e]?{}:i.randomSlideAnimCache[e],i.randomSlideAnimCache[e][t]=void 0===i.randomSlideAnimCache[e][t]?[]:i.randomSlideAnimCache[e][t],a)if(a.hasOwnProperty(o)&&"random"!==o&&"custom"!==o&&("all"==e||o==e))for(var r in a[o])if(a[o].hasOwnProperty(r)&&"icon"!==r&&(""+t=="undefined"||t.indexOf(r)>=0))for(var s in a[o][r])a[o][r].hasOwnProperty(s)&&-1==jQuery.inArray(a[o][r][s].title,["*north*","*south*","*east*","*west*"])&&i.randomSlideAnimCache[e][t].push(s);return i.randomSlideAnimCache[e][t][Math.floor(Math.random()*i.randomSlideAnimCache[e][t].length)]},cbgW:function(e,t){return _R_is_Editor?RVS.RMD.width:"carousel"===i[e].sliderType?i[e].justifyCarousel?i[e].carousel.slide_widths[void 0!==t?t:i[e].carousel.focused]:i[e].carousel.slide_width:i[e].canv.width},cbgH:function(e,t){return _R_is_Editor?RVS.RMD.height:"carousel"===i[e].sliderType?!0===i[e].carousel.justify?i[e].carousel.slide_height:"fullscreen"===i[e].sliderLayout?i[e].module.height:Math.min(i[e].canv.height,i[e].gridheight[i[e].level]):void 0!==i[e].maxHeight&&i[e].maxHeight>0&&!i[e].fixedOnTop?Math.min(i[e].canv.height,i[e].maxHeight):i[e].canv.height},valBeau:function(e){return e=(""+(e=(""+(e=(""+(e=(""+(e=(""+e).split(",").join("|"))).replace("{","ran("))).replace("}",")"))).replace("[","cyc("))).replace("]",")")},animateSlide:function(e,i){return _R_is_Editor&&RVS.F.resetSlideTL(),void 0===tpGS.eases.late&&(tpGS.CustomEase.create("late","M0,0,C0,0,0.474,0.078,0.724,0.26,0.969,0.438,1,1,1,1"),tpGS.CustomEase.create("late2","M0,0 C0,0 0.738,-0.06 0.868,0.22 1,0.506 1,1 1,1 "),tpGS.CustomEase.create("late3","M0,0,C0,0,0.682,0.157,0.812,0.438,0.944,0.724,1,1,1,1")),r(e,i)},getBasic:function(e){return jQuery.extend(!0,{attr:null==e||void 0===e.attr?["o","r","sx","sy","x","y","m","e","row","col","mo","moo"]:e.attr,in:{f:"start",m:!1,o:1,r:0,sx:1,sy:1,x:0,y:0,row:1,col:1,e:"power2.inOut",ms:1e3,mo:0,moo:"none"},out:{f:"start",m:!1,o:1,r:0,sx:1,sy:1,x:0,y:0,row:1,col:1,e:"power2.inOut",ms:1e3}},e)},playBGVideo:function(e,t,a){if(_R_is_Editor)a=void 0===a?RVS.SBGS[RVS.S.slideId].n:a;else{if(void 0===a&&(void 0===i[e].pr_next_bg||0===i[e].pr_next_bg.length))return;a=void 0===a?i[e].sbgs[void 0===t?i[e].pr_next_bg[0].dataset.key:t]:a}void 0!==a.bgvid&&a.bgvid.length>0&&(c(e,{},a,"in"),i.resetVideo(a.bgvid,e),i.playVideo(a.bgvid,e,!0),tpGS.gsap.to(a.bgvid[0],.2,{zIndex:30,display:"block",autoAlpha:1,delay:.075,overwrite:"all"}))},stopBGVideo:function(e,t,a){if(_R_is_Editor)a=void 0===a?RVS.SBGS[RVS.S.slideId].n:a;else{if(void 0===a&&(void 0===i[e].pr_next_bg||0===i[e].pr_next_bg.length))return;a=void 0===a?i[e].sbgs[void 0===t?i[e].pr_next_bg[0].dataset.key:t]:a}void 0!==a.bgvid&&a.bgvid.length>0&&(a.drawVideoCanvasImagesRecall=!1,i.stopVideo(a.bgvid,e),tpGS.gsap.to(a.bgvid[0],.2,{autoAlpha:0,zIndex:0,display:"none"}))},SATools:{getOffset:function(e,t,a,o){var r=(""+e).indexOf("%")>=0;return 0==(e=i.SATools.getSpecialValue(e,o,a))||void 0===e?0:r?t*(parseInt(e)/100):parseInt(e)},getSpecialValue:function(e,t,a,o){if(i.isNumeric(parseFloat(e,0)))return parseFloat(e,0);var r=(""+e).split("ran(").length>1?"random":(""+e).split("cyc(").length>1?"wrap":(""+e).split("(").length>1?"dir":"unknown",s=("random"===r?e.slice(4,-1):"wrap"===r?e.slice(4,-1):e.slice(1,-1)).split("|");if("random"===r)return tpGS.gsap.utils.random(parseFloat(s[0]),parseFloat(s.length>1?s[1]:0-s[0]));if("wrap"===r){var n=tpGS.gsap.utils.wrap(s,t);return(""+n).split("(").length>1?parseFloat(n.slice(1,-1))*a+(o?"%":""):n}return"dir"===r?parseFloat(s[0])*a+(o?"%":""):void 0}},getmDim:function(e,t,a){var o=i.cbgW(e,t),r=i.cbgH(e,t);return a.DPR=_R_is_Editor?Math.min(window.devicePixelRatio,2):i[e].DPR,i.maxDimCheck(a,o,r)},maxDimCheck:function(e,t,a){var o,r;void 0!==e.video&&("img"===e.video.tagName||null==e.video.videoWidth||e.video.videoWidth);if("animating"!==e.currentState&&null==e.panzoom||"animating"===e.currentState&&null==e.panzoom&&(null==e.slideanimation||null==e.slideanimation.anim||"true"!==e.slideanimation.anim.adpr))if(e.DPR>1&&i.ISM&&a>1024)e.DPR=1,o=t,r=a;else{var s={w:null==e.video||e.isVidImg?e.loadobj.width:0==e.video.videoWidth?e.loadobj.width:e.video.videoWidth,h:null==e.video||e.isVidImg?e.loadobj.height:0==e.video.videoHeight?e.loadobj.height:e.video.videoHeight};void 0===s.w&&(s.w=e.loadobj.width),void 0===s.h&&(s.h=e.loadobj.height);var n=a/s.w,d=t/s.h,l=Math.max(n,d);if(l>e.DPR||n>=1&&d>=1?e.DPR=1:e.DPR>l&&(e.DPR=Math.min(e.DPR,e.DPR/l)),o=t*e.DPR,r=a*e.DPR,e.DPR>1){var c=t/a;s.w>s.h&&s.ws.w&&s.ht.fps){t.then=t.now-t.elapsed%t.fps;var o="img"===t.video.tagName||null==t.video.videoWidth||0==t.video.videoWidth;void 0!==t.video&&!t.video.BGrendered&&void 0!==t.loadobj&&void 0!==t.loadobj.img||i.ISM&&i.isFirefox(e)?(t.mDIM=i.getmDim(e,t.skeyindex,t),t.pDIMS=s(t.mDIM,t,{width:t.mDIM.width,height:t.mDIM.height,x:0,y:0,contw:t.loadobj.width,conth:t.loadobj.height}),t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),t.shadowCTX.drawImage(t.loadobj.img,t.pDIMS.x,t.pDIMS.y,t.pDIMS.width,t.pDIMS.height)):((a||void 0===t.sDIMS||o!==t.isVidImg||0===t.sDIMS.width||0===t.sDIMS.height)&&(t.isVidImg=o,t.mDIM=i.getmDim(e,t.skeyindex,t),t.sDIMS=s(t.mDIM,t,{width:t.mDIM.width,height:t.mDIM.height,x:0,y:0,contw:t.isVidImg?t.loadobj.width:t.video.videoWidth,conth:t.isVidImg?t.loadobj.height:t.video.videoHeight})),void 0!==t.sDIMS&&0!==t.sDIMS.width&&0!==t.sDIMS.height&&("animating"===t.currentState?(t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),t.shadowCTX.drawImage(t.video,t.sDIMS.x,t.sDIMS.y,t.sDIMS.width,t.sDIMS.height)):void 0===t.animateDirection&&(t.canvas.width!==t.mDIM.width&&(t.canvas.width=t.mDIM.width),t.canvas.height!==t.mDIM.height&&(t.canvas.height=t.mDIM.height),t.ctx.drawImage(t.video,t.sDIMS.x,t.sDIMS.y,t.sDIMS.width,t.sDIMS.height)),t.shadowCanvas_Drawn=!0))}(a||t.drawVideoCanvasImagesRecall&&"animating"===t.currentState||"animating"===t.currentState&&void 0===t.shadowCanvas_Drawn)&&window.requestAnimationFrame(function(){i.updateVideoFrames(e,t)})},createOverlay:function(e,t,a,o){if("none"===t)return"none";a=void 0===a?1:a;o=void 0===o?{0:"rgba(0, 0, 0, 0)",1:"rgba(0, 0, 0, 1)"}:o;var r={none:[[0]],1:[[1,0],[0,0]],2:[[1,0,0],[0,0,0],[0,0,0]],3:[[1,0,0,0],[0,0,0,0],[0,0,0,0]],4:[[1],[0]],5:[[1],[0],[0]],6:[[1],[0],[0],[0]],7:[[1,0]],8:[[1,0,0]],9:[[1,0,0,0]],10:[[1,0,0,0,0],[0,1,0,1,0],[0,0,0,0,0],[0,1,0,1,0],[0,0,0,0,1]],11:[[0,0,1,0,0],[0,1,0,1,0],[1,0,0,0,1],[0,1,0,1,0],[0,0,1,0,0]],12:[[1,0,0],[0,1,0],[0,0,1]],13:[[0,0,1],[0,1,0],[1,0,0]],14:[[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,0]],15:[[0,0,0,0,1],[0,0,0,1,0],[0,0,1,0,0],[0,1,0,0,0],[1,0,0,0,0]],16:[[1,0,0,0,1],[0,1,0,1,0],[0,0,1,0,0],[0,1,0,1,0],[1,0,0,0,1]]},s=void 0===r[t=void 0===t?1:t]?r[2]:r[t];_R_is_Editor&&(i[e]=void 0===i[e]?{}:i[e]),i[e].patternCanvas=document.createElement("canvas"),i[e].patternCtx=i[e].patternCanvas.getContext("2d"),i[e].patternCanvas.width=s[0].length*a,i[e].patternCanvas.height=s.length*a;for(var n=0;n=0)&&(void 0===t.loadobj||!0!==t.loadobj.useBGColor),_R_is_Editor&&void 0===t.panzoom&&delete t.shadowCanvas,void 0===t.shadowCanvas&&(t.shadowCanvas=document.createElement("canvas"),t.shadowCTX=t.shadowCanvas.getContext("2d"),t.shadowCanvas.style.background="transparent",t.shadowCanvas.style.opacity=1),!0===t.replaceShadowCanvas||!0===t.loadobj.bgColor||!0===t.usebgColor||void 0!==t.panzoom||null!=t.isHTML5&&1!=t.poster||t.usepattern?(o={width:t.mDIM.width,height:t.mDIM.height,x:0,y:0},t.usepattern&&void 0!==t.loadobj&&void 0!==t.loadobj.img?i.getCanvasPattern(e,t,{ratio:t.loadobj.height/t.loadobj.width}):(t.loadobj.bgColor||t.usebgColor)&&(t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),i.getCanvasGradients(e,t))):(o=s(t.mDIM,t,{width:t.mDIM.width,height:t.mDIM.height,x:0,y:0,contw:t.loadobj.width,conth:t.loadobj.height}),t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),void 0!==t.loadobj&&void 0!==t.loadobj.img&&t.shadowCTX.drawImage(t.loadobj.img,o.x,o.y,o.width,o.height),o={width:t.mDIM.width,height:t.mDIM.height,x:0,y:0}),o},getCanvasPattern:function(e,t,a){void 0===t.patternImageCanvas&&(t.patternImageCanvas=document.createElement("canvas"),t.patternImageCTX=t.patternImageCanvas.getContext("2d"));var o=t.bgfit.split(" ");1===o.length&&(o[1]=o[0]),a.width="auto"===o[0]?t.loadobj.width:t.loadobj.width*(parseInt(o[0],0)/100),a.height="auto"===o[1]?t.loadobj.height:a.width*a.ratio,t.DPR=_R_is_Editor?Math.min(window.devicePixelRatio,2):i[e].DPR;var r=a.width/a.height;a.width=a.width*t.DPR,a.height=a.height*t.DPR,i.isIOS&&a.width*a.height>15728640&&(t.mDIM.width>t.mDIM.height?(a.width=t.mDIM.width,a.height=Math.round(t.mDIM.width/r)):(a.height=t.mDIM.height,a.width=Math.round(t.mDIM.height*r))),t.patternImageCanvas.width=a.width,t.patternImageCanvas.height=a.height,t.patternImageCTX.drawImage(t.loadobj.img,0,0,a.width,a.height),t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),t.shadowCTX.clearRect(0,0,t.shadowCTX.canvas.width,t.shadowCTX.canvas.height),t.pattern=t.shadowCTX.createPattern(t.patternImageCanvas,t.bgrepeat),t.shadowCTX.fillStyle=t.pattern,t.shadowShifts={h:t.bgposition.split(" ")[0],v:t.bgposition.split(" ")[1]},t.shadowShifts.hperc=i.isNumeric(parseInt(t.shadowShifts.h))?parseInt(t.shadowShifts.h)/100*t.mDIM.width:0,t.shadowShifts.vperc=i.isNumeric(parseInt(t.shadowShifts.v))?parseInt(t.shadowShifts.v)/100*t.mDIM.height:0,t.shadowShifts.x="left"===t.shadowShifts.h?0:"center"===t.shadowShifts.h||"50%"==t.shadowShifts.h?"repeat"==t.bgrepeat||"repeat-x"==t.bgrepeat?t.mDIM.width/2-a.width/2-Math.ceil(t.mDIM.width/2/a.width)*a.width:t.mDIM.width/2-a.width/2:"right"===t.shadowShifts.h?"repeat"==t.bgrepeat||"repeat-x"==t.bgrepeat?-(a.width-t.mDIM.width%a.width):t.mDIM.width-a.width:"repeat"==t.bgrepeat||"repeat-x"==t.bgrepeat?-(a.width-t.shadowShifts.hperc%a.width):t.shadowShifts.hperc,t.shadowShifts.y="top"===t.shadowShifts.v?0:"center"===t.shadowShifts.v||"50%"==t.shadowShifts.v?"repeat"==t.bgrepeat||"repeat-y"==t.bgrepeat?t.mDIM.height/2-a.height/2-Math.ceil(t.mDIM.height/2/a.height)*a.height:t.mDIM.height/2-a.height/2:"bottom"===t.shadowShifts.v?"repeat"==t.bgrepeat||"repeat-y"==t.bgrepeat?-(a.height-t.mDIM.height%a.height):t.mDIM.height-a.height:"repeat"==t.bgrepeat||"repeat-y"==t.bgrepeat?-(a.height-t.shadowShifts.vperc%a.height):t.shadowShifts.vperc,t.shadowCTX.save(),t.shadowCTX.translate(t.shadowShifts.x,t.shadowShifts.y),t.shadowCTX.fillRect(0,0,t.mDIM.width-t.shadowShifts.x,t.mDIM.height-t.shadowShifts.y),t.shadowCTX.restore()},getCanvasGradients:function(e,t){if(t.bgcolor.indexOf("gradient")>=0){t.gradient=null==t.gradient||_R_is_Editor?i.getGradients(t.bgcolor):t.gradient,t.shadowGrd="radialGradient"===t.gradient.type?t.shadowCTX.createRadialGradient(t.mDIM.width/2,t.mDIM.height/2,0,t.mDIM.width/2,t.mDIM.height/2,Math.max(t.mDIM.width/2,t.mDIM.height/2)):i.calcLinearGradient(t.shadowCTX,t.shadowCanvas.width,t.shadowCanvas.height,t.gradient.deg);for(var a=0;a3?n[3]:1}}),d.appendChild(s);i.gradSVG.appendChild(d),e="url(#tp_svg_gradient_"+i.svgGradients.length+")",i.svgGradients.push({url:e,src:o,g:d})}return e},getGradients:function(e){return e.indexOf("radial-gradient")>=0?{stops:i.getGradientColorStopPoints(e.split("radial-gradient(ellipse at center, ")[1]),type:"radialGradient",deg:0}:-1!==e.indexOf("gradient")?i.getLinearGradientStops(e):e},getLinearGradientStops:function(e){var i=e.split("linear-gradient(")[1];_R_is_Editor&&(i=(i=i.split(", ").join(",")).split(",rgba").join(", rgba"));var t=i.split("deg, ");for(var a in i=(t.length>1?t[1]:t[0]).split(" "),t=t.length>1?t[0]:180,i)i.hasOwnProperty(a)&&i[a].indexOf("%")>=0&&(i[a]=""+Math.round(100*parseFloat(i[a].split("%,")[0].split("%)")[0]))/1e4);return{stops:i,deg:t,type:"linearGradient"}},getGradientColorStopPoints:function(e){var i=/rgb([\s\S]*?)%/g,t=[],a=[];do{(r=i.exec(e))&&t.push(r[0])}while(r);for(var o=0;op(d,l,v[1].x,v[1].y)?(o=v[0].x,r=v[0].y):(o=v[1].x,r=v[1].y),p(d,l,v[2].x,v[2].y)>p(d,l,v[3].x,v[3].y)?(s=v[2].x,n=v[2].y):(s=v[3].x,n=v[3].y),Math.round(100*Math.atan2(l-r,d-o))/100===Math.round(a%(2*Math.PI)*100)/100){var w=o,y=r;o=s,r=n,s=w,n=y}return e.createLinearGradient(Math.round(o),Math.round(r),Math.round(s),Math.round(n))},transitions:{filter:{update:function(e,i,t){if(void 0!==e&&void 0!==e.tl){var a=void 0!==t||void 0!==e.tl.blur?" blur("+(void 0!==t?t:0+e.tl.blur!==void 0?e.tl.blur:0)+"px)":"";i.canvas.style.filter=void 0===e.tl.filter?""+a:e.tl.filter+a}},extendTimeLine:function(e,i,t){if(null!=i){var a=void 0!==i.g&&"0%"!==i.g&&0!==i.g?(""===a?"":" ")+"grayscale(_g_%)":"";a+=void 0!==i.h&&"100%"!==i.h&&100!==i.h?(""===a?"":" ")+"brightness(_h_%)":"",a+=void 0!==i.s&&"0px"!==i.s&&0!==i.s?(""===a?"":" ")+"sepia(_s_%)":"",a+=void 0!==i.c&&100!==i.c?(""===a?"":" ")+"contrast(_c_%)":"",""!==(a+=void 0!==i.i&&0!==i.i?(""===a?"":" ")+"invert(_i_%)":"")&&(i.tl={filter:a.replace("_g_",parseFloat(i.g)).replace("_h_",parseFloat(i.h)).replace("_s_",parseFloat(i.s)).replace("_c_",parseFloat(i.c)).replace("_i_",parseFloat(i.i))}),void 0!==i.b&&"0px"!==i.b&&0!==i.b&&(void 0===i.tl?i.tl={blur:parseFloat(i.b)}:i.tl.blur=parseFloat(i.b)),void 0!==i.tl&&(e.add(tpGS.gsap.to(i.tl,i.ms/i.sec,void 0===i.tl.filter?{blur:0}:void 0===i.tl.blur?{filter:a.replace("_g_","0").replace("_h_","100").replace("_s_","0").replace("_c_",100).replace("_i_",0),ease:i.e}:{blur:0,filter:a.replace("_g_","0").replace("_h_","100").replace("_s_","0").replace("_c_",100).replace("_i_",0),ease:i.e}),0),t.canvasFilter=!0)}}},slidingoverlay:{getBasic:function(){return i.getBasic({attr:["x","y"],in:{m:!0,o:-1,_xy:20,_gxys:10,_gxye:-10,zIndex:20,e:"power1.inOut"},out:{m:!0,reversed:!1,_xy:-100,o:0,zIndex:10,e:"power1.inOut"}})},updateAnim:function(e,t,a){var o=void 0!==t.in.x&&0!==t.in.x&&"0%"!==t.in.x?"x":"y";t.in["g"+o+"s"]=i.SATools.getOffset(t.in[o],t.in._gxys,a,1)+"%",t.in["g"+o+"e"]=i.SATools.getOffset(t.in[o],t.in._gxye,a,1)+"%",t.out[o]=i.SATools.getOffset(t.in[o],t.out._xy,a,1)+"%",t.in[o]=i.SATools.getOffset(t.in[o],t.in._xy,a,1)+"%";var r=parseInt(t.in[o])>=0;return t.in.d="x"===o?r?"left":"right":r?"up":"down",t},beforeDraw:function(e,i,t,a){void 0!==t.d&&(t._dxs="right"===t.d?0+t.mw:"left"===t.d?0-t.mw:0,t._dys="down"===t.d?0+t.mh:"up"===t.d?0-t.mh:0,t._xs="left"===t.d?0-t.mw:0,t._ys="up"===t.d?0-t.mh:0,t._xe="right"===t.d?a.SLOT.OW+t.mw:"left"===t.d?a.SLOT.OW-t.mw:a.SLOT.OW,t._ye="down"===t.d?a.SLOT.OH+t.mh:"up"===t.d?a.SLOT.OH-t.mh:a.SLOT.OH,i.beginPath(),i.rect("left"===t.d?Math.max(0,t._xs):"right"===t.d?Math.min(0,t._xs):0,"up"===t.d?Math.max(0,t._ys):"down"===t.d?Math.min(0,t._ys):0,"left"===t.d?Math.max(a.SLOT.OW,t._xe):"right"===t.d?Math.min(a.SLOT.OW,t._xe):t._xe,"up"===t.d?Math.max(a.SLOT.OH,t._ye):"down"===t.d?Math.min(a.SLOT.OH,t._ye):t._ye),i.clip())},afterDraw:function(e,i,t,a,o){void 0!==t.d&&(i.save(),i.beginPath(),i.rect(Math.max(0,t._dxs),Math.max(0,t._dys),t._xe,t._ye),i.clip(),i.save(),i.transform(o.csx,o.ssx,o.ssy,o.csy,.5*a.SLOT.OW+t.x+t.sgx,.5*a.SLOT.OH+t.y+t.sgy),i.drawImage(void 0!==a.shadowCanvas?a.shadowCanvas:a.loadobj.img,0,0,a.SLOT.OW,a.SLOT.OH,t.sgx-a.SLOT.OW/2,t.sgy-a.SLOT.OH/2,a.SLOT.OW,a.SLOT.OH),i.restore(),i.fillStyle="rgba(0,0,0,0.6)",i.fillRect(t.gx,t.gy,a.SLOT.OW,a.SLOT.OH),i.restore())},extendTimeLine:function(e,t,a,o,r,s){"in"!==r.direction||void 0===o.gxe&&void 0===o.gye||(jQuery.extend(!0,a[0],{d:o.d,gx:void 0===o.gxs?0:2*i.SATools.getOffset(o.gxs,s.width,r.sdir,0),gy:void 0===o.gys?0:2*i.SATools.getOffset(o.gys,s.height,r.sdir,0),sgx:void 0===o.gxs?0:i.SATools.getOffset(o.gxs,s.width,r.sdir,0),sgy:void 0===o.gys?0:i.SATools.getOffset(o.gys,s.height,r.sdir,0),mw:0-s.width,mh:0-s.height}),t.add(tpGS.gsap.to(a,o.ms/o.sec,{gx:void 0===o.gxe?0:2*i.SATools.getOffset(o.gxe,s.width,r.sdir,0),gy:void 0===o.gye?0:2*i.SATools.getOffset(o.gye,s.height,r.sdir,0),sgx:void 0===o.gxe?0:2*i.SATools.getOffset(o.gxe,s.width,r.sdir,0),sgy:void 0===o.gye?0:2*i.SATools.getOffset(o.gye,s.height,r.sdir,0),mw:s.width,mh:s.height,ease:o.e}),0))}},motionFilter:{init:function(e,i){return void 0!==i&&parseFloat(i)>0?(i=parseFloat(i),e.fmExists=!0,e.fmShadow=void 0===e.fmShadow?document.createElement("canvas"):e.fmShadow,e.fmCtx=e.fmShadow.getContext("2d"),e.fmShadow.width=e.ctx.canvas.width,e.fmShadow.height=e.ctx.canvas.height,e.fmCtx.globalAlpha=tpGS.gsap.utils.mapRange(100,0,40,0,i)/100,e.fmCtx.clearRect(0,0,e.ctx.canvas.width,e.ctx.canvas.height)):e.fmExists=!1,i},render:function(e,i){"partial"===i&&(e.fmCtx.globalCompositeOperation="source-over"),e.fmCtx.drawImage(e.canvas,0,0,e.canvas.width,e.canvas.height),e.ctx.clearRect(0,0,e.canvas.width,e.canvas.height),e.ctx.drawImage(e.fmCtx.canvas,0,0,e.canvas.width,e.canvas.height),"partial"===i&&(e.fmCtx.globalCompositeOperation="source-atop"),"partial"!==i&&"full"!==i||(e.fmCtx.fillStyle="rgba(255, 255, 255, 0.1)",e.fmCtx.fillRect(0,0,e.canvas.width,e.canvas.height))},clearFull:function(e,i){e.fmExists&&void 0!==e.fmCtx&&(e.ctx.clearRect(0,0,e.canvas.width,e.canvas.height),e.fmCtx.clearRect(0,0,e.canvas.width,e.canvas.height),void 0!==i&&i.render(i.time(),!0,!0))},complete:function(e){e.fmShadow&&e.fmShadow.remove()}},d3:{ticker:function(e,i,t){if(void 0!==e.helper){var a=e.smi*("in"===t?e.helper.oo:e.helper.o),o=e.sma*("in"===t?e.helper.oo:e.helper.o);if(e.gradient="vertical"===e.d?"in"===t?i.ctx.createLinearGradient(0,0,0,i.canvas.height):i.ctx.createLinearGradient(0,i.canvas.height,0,0):"in"===t?i.ctx.createLinearGradient(0,0,i.canvas.width,0):i.ctx.createLinearGradient(i.canvas.width,0,0,0),e.gradient.addColorStop(0,"rgba("+e.sc+","+a+")"),e.gradient.addColorStop(e.sl,"rgba("+e.sc+","+o+")"),i.ctx.fillStyle=e.gradient,i.ctx.fillRect(0,0,i.canvas.width,i.canvas.height),void 0!==i.cube&&i.cube.ctx){var r=void 0!==e.roomhelper&&!1!==e.roomhelper&&(90-e.roomhelper.r)/90;a=!1!==r?r:e.smi*e.helper.o,o=!1!==r?r:e.sma*e.helper.o,i.cube.ctx.clearRect(0,0,i.cube.ctx.canvas.width,i.cube.ctx.canvas.height),e.gradientW=!1!==r?"vertical"===e.d?e.t<0&&1===e.sdir||e.t>0&&-1===e.sdir?i.ctx.createRadialGradient(0,i.cube.ctx.canvas.width/2,0,0,0,2*i.cube.ctx.canvas.width):i.ctx.createRadialGradient(i.cube.ctx.canvas.width,0,0,0,0,2*i.cube.ctx.canvas.width):e.t>0&&1===e.sdir||e.t<0&&-1===e.sdir?i.ctx.createRadialGradient(i.cube.ctx.canvas.width/2,i.cube.ctx.canvas.height,0,i.cube.ctx.canvas.width/2,i.cube.ctx.canvas.height,i.cube.ctx.canvas.width):i.ctx.createRadialGradient(i.cube.ctx.canvas.width/2,.2*i.cube.ctx.canvas.height,0,i.cube.ctx.canvas.width/2,.2*i.cube.ctx.canvas.height,i.cube.ctx.canvas.width):"vertical"===e.d?i.ctx.createLinearGradient(0,0,0,i.cube.ctx.canvas.height):i.ctx.createLinearGradient(0,0,i.cube.ctx.canvas.width,0),e.gradientW.addColorStop(0,"rgba("+e.sc+","+(!1!==r?"a"===e.DIR?o:0:"a"===e.DIR?0:o)+")"),e.gradientW.addColorStop(1,"rgba("+e.sc+","+(!1!==r?"a"===e.DIR?0:o:"a"===e.DIR?o:0)+")"),i.cube.ctx.fillStyle=e.gradientW,i.cube.ctx.fillRect(0,0,i.cube.ctx.canvas.width,i.cube.ctx.canvas.height)}}},setWall:function(e,i,t,a,o,r){return e.TL=tpGS.gsap.timeline(),e.TL.add(tpGS.gsap.to(e.c,.2,{display:"block"}),0),"rotationX"===t?(e.ctx.canvas.width=a.w,e.ctx.canvas.height=a.w,e.TL.add(tpGS.gsap.set(e.w,{backgroundColor:o,width:a.w,height:a.w,transformOrigin:"50% 50% -"+a.w/2+"px",x:0,y:i>0?-(a.w-a.h):0,rotationX:i>0?-90:90,rotationY:0}),0)):(e.ctx.canvas.width=r?a.w:a.h,e.ctx.canvas.height=a.h,e.TL.add(tpGS.gsap.set(e.w,{backgroundColor:o,width:r?a.w:a.h,height:a.h,transformOrigin:"50% 50% -"+(r?a.w:a.h)/2+"px",x:i<0?a.w-a.h:0,y:0,rotationX:0,rotationY:i>0?-90:90}),0)),e.TL},buildCube:function(e){e.cube={c:document.createElement("div"),w:document.createElement("canvas")},e.cube.ctx=e.cube.w.getContext("2d"),e.cube.c.className="rs_fake_cube",e.cube.w.className="rs_fake_cube_wall",tpGS.gsap.set(e.cube.c,{width:e.mDIM.w,height:e.mDIM.h}),tpGS.gsap.set(e.cube.w,{width:e.mDIM.w,height:e.mDIM.h,backgroundColor:"#ccc"}),e.cube.c.appendChild(e.cube.w),e.sbg.appendChild(e.cube.c)},cubeTL:function(e,t,a,o){if("none"!==t.f&&void 0!==t.f){a.sbg.style.transformStyle="preserve-3d";var r=tpGS.gsap.timeline(),s="incube"===t.f?1:-1,n="incube"===t.f||"cube"===t.f,d="fly"===t.f?-30:90,l="turn"!==t.f&&!1!==t.t&&(_R_is_Editor||!0===i[e].firstSlideAnimDone),c=-1*t.z,p={},g={z:l?0:c,ease:"power1.inOut"},u={ease:t.e},h=[a.canvas],m=n?"50% 50% ":"20% 20% ",v="rotationX",f="rotationY",w="y",y="height",b=t.fd;if("vertical"!==t.d?(v="rotationY",f="rotationX",w="x",y="width",t.DIR=1===t.sdir?"b":"a"):t.DIR=1===t.sdir?"a":"b",y="width"===y?"w":"height"===y?"h":y,"turn"===t.f?(d="vertical"===t.d?-120:120,m="vertical"===t.d?1===t.sdir?"in"===o?"0% 0% 0%":"0% 100% 0%":"in"===o?"0% 100% 0%":"0% 0% 0%":1===t.sdir?"in"===o?"0% 0% 0%":"100% 0% 0%":"in"===o?"100% 0% 0%":"0% 0% 0%",g.z=0,u.ease="out"===o?"power3.out":u.ease,b="out"===o?b/2:b):m+=s*a.mDIM[y]/2+"px",u[v]=0,u[w]=0,"in"===o?p[v]=d*t.sdir:u[v]=-d*t.sdir,"fly"===t.f){var _=void 0===t.fz?20*Math.random()-10:parseInt(t.fz);"in"===o?(p[w]=a.mDIM[y]*(void 0===t.fdi?1.5:parseFloat(t.fdi))*t.sdir,p.rotateZ=t.sdir*_,u.rotateZ=0):(u[w]=a.mDIM[y]*(void 0===t.fdo?2:parseFloat(t.fdo))*t.sdir*-1,u.rotateZ=t.sdir*_*-1)}if(a.sbg.style.perspective=l?"2500px":"1500px",l){var S={z:c*("fly"===t.f?1.5:3),ease:"power1.inOut"},x={z:0,ease:"power1.inOut"};S[f]=-1*t.t,x[f]=0,t.roomhelper={r:0},r.add(tpGS.gsap.set(_R_is_Editor?RVS.SBGS[RVS.S.slideId].wrap:a.wrap[0],{perspective:1200,transformStyle:"preserve-3d",transformOrigin:m}),0),r.add(tpGS.gsap.to(a.sbg,3*t.md,S),0),r.add(tpGS.gsap.to(a.sbg,3*t.md,x),b-t.md),r.add(tpGS.gsap.to(t.roomhelper,3*t.md,{r:Math.abs(t.t)}),0),r.add(tpGS.gsap.to(t.roomhelper,3*t.md,{r:0}),b-t.md),"in"===o&&1!==s&&n&&(void 0===a.cube&&i.transitions.d3.buildCube(a),r.add(i.transitions.d3.setWall(a.cube,S[f],f,a.mDIM,t.c),0),h.push(a.cube.c))}else t.roomhelper=!1,r.add(tpGS.gsap.set(_R_is_Editor?RVS.SBGS[RVS.S.slideId].wrap:a.wrap[0],{perspective:"none",transformStyle:"none",transformOrigin:"50% 50%"}),0),!_R_is_Editor&&!0!==i[e].firstSlideAnimDone&&n&&(void 0===a.cube&&i.transitions.d3.buildCube(a),r.add(i.transitions.d3.setWall(a.cube,p[v],v,a.mDIM,t.c,!0),0),r.add(tpGS.gsap.fromTo(a.cube.w,4*t.md,{opacity:0},{opacity:1}),0),h.push(a.cube.c));return t.helper={o:0,oo:1},r.add(tpGS.gsap.to(t.helper,b,{o:1,oo:0,ease:t.e}),t.md+0),r.add(tpGS.gsap.set(h,jQuery.extend(!0,{},p,{force3D:!0,transformOrigin:m})),0),"turn"!==t.f&&r.add(tpGS.gsap.to(h,3*t.md,g),0),r.add(tpGS.gsap.to(h,b,u),t.md+0),"turn"!==t.f&&r.add(tpGS.gsap.to(h,3*t.md,{z:0,ease:"power1.inOut"}),b-t.md),"out"===o&&1!==s&&r.add(tpGS.gsap.to(h,2*t.md,{opacity:0}),t.dur-2*t.md),r}}}},animatedCanvasUpdate:function(e,t){t.cDIMS=i.getBGCanvasDetails(e,t),t.canvas.style.backgroundColor="transparent",t.canvas.style.opacity=1,t.canvas.width!==t.mDIM.width&&(t.canvas.width=t.mDIM.width),t.canvas.height!==t.mDIM.height&&(t.canvas.height=t.mDIM.height),_R_is_Editor||!0!==i[e].clearModalBG||(t.ctx.clearRect(0,0,t.canvas.width,t.canvas.height),i[e].clearModalBG=!1,t.sbg.parentNode.style.opacity=1),t.col=t.col||1,t.row=t.row||1,t.SLOT=jQuery.extend(!0,{s:{},c:{}},a(e,t.col,t.row,t.mDIM,"OW","OH")),t.SLOT.DX=0-t.SLOT.OW/2,t.SLOT.DY=0-t.SLOT.OH/2,t.row=Math.ceil(t.mDIM.height/t.SLOT.OH)||1,void 0!==t.callFromAnimatedCanvasUpdate&&t.callFromAnimatedCanvasUpdate()},slideAnimFinished:function(e,t,a,o){void 0!==t&&(void 0!==t.bgvid&&t.bgvid.length>0&&"out"===a.direction&&(t.drawVideoCanvasImagesRecall=!1,i.stopVideo(t.bgvid,e),t.bgvid[0].style.display="none",t.bgvid[0].style.zIndex=0),t.panFake&&t.panFake.img&&("out"===a.direction?t.panFake.img.style.display="none":t.panFake.img.style.display="block"),"in"===a.direction&&(i.transitions.motionFilter.complete(t),t.ctx.canvas.style.filter="none",tpGS.gsap.set(a.slide,{zIndex:20}),delete t.animateDirection,t.bgvid.length>0&&(t.isHTML5?tpGS.gsap.set(t.bgvid[0],{zIndex:30,display:"block",opacity:1}):(i.resetVideo(t.bgvid,e),tpGS.gsap.delayedCall(.1,function(){i.playVideo(t.bgvid,e,!0),tpGS.gsap.set(t.bgvid[0],{zIndex:30,display:"block",opacity:1})})))),"out"===a.direction?(tpGS.gsap.set(a.slide,{zIndex:10}),tpGS.gsap.set(t.canvas,{rotationX:0,rotationY:0,rotationZ:0,x:0,y:0,z:0,opacity:1}),t.currentState=void 0):t.currentState="idle",void 0!==t.cube&&(t.cube.c.style.display="none"),"in"===a.direction&&(i.updateSlideBGs(e,t.skeyindex,t),void 0===t.panzoom||_R_is_Editor||i.startPanZoom(i[e].pr_next_bg,e,void 0!==i[e].panzoomTLs[t.skeyindex]?i[e].panzoomTLs[t.skeyindex].progress():0,t.skeyindex,"play",t.key),void 0!==a.BG&&!0!==o&&a.BG.ctx.clearRect(0,0,2*t.canvas.width,2*t.canvas.height)))},animateCore:function(e,t,a,o){var r,s,n,d,l=t.canvas,c=t.ctx,p=0;if(t.col=a.col,t.row=a.row,_R_is_Editor&&t.three){for(t.canvas.style.display="block";t.three.scene.children.length>0;)t.three.scene.remove(t.three.scene.children[0]);t.three.canvas.parentNode.removeChild(t.three.canvas),t.three=void 0}i.animatedCanvasUpdate(e,t),a.row=t.row,t.animateDirection=o.direction,o.delay=void 0===o.delay?0:o.delay,n=a.col*a.row,d=Array(n),void 0===t.help_canvas&&"out"===o.direction&&void 0!==o.bgColor&&(t.help_canvas=document.createElement("canvas"),t.help_ctx=t.help_canvas.getContext("2d")),"out"===o.direction&&void 0!==o.bgColor&&(t.help_canvas.width=t.mDIM.width,t.help_canvas.height=t.mDIM.height,t.help_ctx.fillStyle=o.bgColor,t.help_ctx.fillRect(0,0,t.mDIM.width,t.mDIM.height)),a.mo=i.transitions.motionFilter.init(t,a.mo),a.dur=a.ms/a.sec,void 0!==o.d3&&(o.d3.dur=a.dur,o.d3.fd=.7*a.dur,o.d3.md=.15*a.dur,o.d3.sdir=o.sdir),t.SLOT.c={ws:0,hs:0,wd:0,hd:0},a.mo>0&&_R_is_Editor&&c.clearRect(0,0,l.width,l.height);var g=tpGS.gsap.timeline({onUpdate:function(){if(p=0,a.mo>0?i.transitions.motionFilter.render(t,a.moo):c.clearRect(0,0,l.width,l.height),t.help_canvas&&"out"===o.direction&&c.drawImage(t.help_canvas,0,0),(o.filter&&o.filter.u||!_R_is_Editor)&&i.transitions.filter.update(o.filter,c,t.canvasFilterBlur),_R_is_Editor&&0!==a.zIndex&&void 0!==a.zIndex&&tpGS.gsap.set(o.slide,{zIndex:a.zIndex}),void 0!==t.shadowCanvas)for(r=0;r1&&t.SLOT.SH>1&&c.drawImage(t.shadowCanvas,t.SLOT.SX,t.SLOT.SY,t.SLOT.SW,t.SLOT.SH,t.SLOT.DX,t.SLOT.DY,t.SLOT.DW,t.SLOT.DH),c.restore(),i.transitions[o.effect]&&i.transitions[o.effect].afterDraw&&i.transitions[o.effect].afterDraw(e,c,d[p],t,{csx:g,csy:u,ssx:h,ssy:m}),p++}void 0!==o.d3&&o.d3.su&&i.transitions.d3.ticker(o.d3,t,o.direction),t.currentState="animating"},onComplete:function(){i.slideAnimFinished(e,t,o)}});if(a.col*a.row<2&&(a.f="start"),0!==a.zIndex&&void 0!==a.zIndex&&g.add(tpGS.gsap.set(o.slide,{zIndex:parseInt(a.zIndex,0)}),0),a.m="false"!=a.m&&!1!==a.m,"in"===o.direction){for(r=0;r0&&void 0!==i[e].pr_next_bg[0],l=!!_R_is_Editor||void 0!==i[e].pr_active_bg&&i[e].pr_active_bg.length>0&&void 0!==i[e].pr_active_bg[0],p=_R_is_Editor?RVS.SBGS[RVS.S.slideId].n:d?i[e].sbgs[i[e].pr_next_bg[0].dataset.key]:void 0,g=_R_is_Editor?RVS.SBGS[RVS.S.slideId].c:l?i[e].sbgs[i[e].pr_active_bg[0].dataset.key]:void 0;s=1===s?-1:1,r=jQuery.extend(!0,{},function(e,a,r){var s=void 0!==i.transitions[a.anim.e]&&void 0!==i.transitions[a.anim.e].getBasic?i.transitions[a.anim.e].getBasic():i.getBasic(),n="";s.out=null==s.out?{}:s.out,s.out.reversed=void 0===a.out&&(void 0===s.out.reversed||s.out.reversed);void 0!==a.iw&&parseInt(a.iw,0),void 0!==a.ow&&parseInt(a.ow,0);for(var d in s.attr)n=s.attr[d],s.in[n]=t(s.in[n],a.in[n]),s.out[n]=s.out.reversed?s.in[n]:void 0===a.out?s.out[n]:t(s.out[n],a.out[n]);return s.filter=void 0!==a.filter?jQuery.extend(!0,a.filter,a.filter):s.filter,i.transitions[a.anim.e]&&i.transitions[a.anim.e].updateAnim&&(s=i.transitions[a.anim.e].updateAnim(e,s,r)),s.e=a.anim.e,void 0!==s.in&&(s.in.col="random"===s.in.col?tpGS.gsap.utils.random(1,10,1):o(s.in.col),s.in.row="random"===s.in.row?tpGS.gsap.utils.random(1,10,1):o(s.in.row)),void 0!==s.out&&(s.out.col="random"===s.out.col?tpGS.gsap.utils.random(1,10,1):o(s.out.col),s.out.row="random"===s.out.row?tpGS.gsap.utils.random(1,10,1):o(s.out.row)),s}(e,a,s)),void 0!==p.random&&void 0!==i.SLTR&&void 0!==g&&(delete g.help_canvas,delete g.help_ctx),r.ms=t(void 0,void 0===a.anim.ms?1e3:a.anim.ms),r.f=t(void 0,a.anim.f),r.p=t(void 0,a.anim.p),r.d=t(void 0,a.anim.d),r.o=a.anim.o,void 0!==a.d3&&(a.d3.t=void 0!==a.d3.t&&0!==a.d3.t&&a.d3.t,a.d3.su="true"==a.d3.su||1==a.d3.su,a.d3.su&&(a.d3.smi=void 0===a.d3.smi?0:parseFloat(a.d3.smi),a.d3.sl=void 0===a.d3.sl?1:parseFloat(a.d3.sl),a.d3.sma=void 0===a.d3.sma?.5:parseFloat(a.d3.sma),a.d3.sc=void 0===a.d3.sc?"0,0,0":tpGS.gsap.utils.splitColor(a.d3.sc).join(",")),r.p="none",void 0!==r.in.row&&void 0!==r.in.col&&r.in.row*r.in.col>200&&(r.filter=void 0)),r.in.sec=void 0===r.in.sec?1e3:r.in.sec,r.in.stasec=void 0===r.in.stasec?void 0===r.d?1500:100*r.d:r.in.stasec,r.in.ms="default"===r.ms||"d"===r.ms?r.in.ms:"random"===r.ms?Math.round(1e3*Math.random()+300):null!=r.ms?parseInt(r.ms,0):r.in.ms,r.out.ms=r.in.ms,void 0!==r.filter&&(r.filter.ms=r.in.ms,r.filter.sec=r.in.sec,r.filter.e=void 0===r.filter.e||"default"===r.filter.e?r.in.e:r.filter.e),r.in.f=void 0===r.f||"default"===r.f||"d"===r.f?r.in.f:r.f,r.in.f="slidebased"===r.in.f?1==s?"start":"end":"oppslidebased"===r.in.f?1===s?"end":"start":r.in.f,r.out.f=r.in.f,r.out=jQuery.extend(!0,{},r.in,r.out),r.in.eng=r.out.eng=a.anim.eng,void 0!==r.out.eng&&null==i[r.out.eng]&&(r.out.o=0,r.in.o=0,r.in.ms=r.out.ms=1e3,r.in.eng=r.out.eng="animateCore"),void 0!==r.p&&"none"!==r.p&&(r.in.bg="dark"===r.p?"#000":"light"===r.p?"#fff":"transparent",r.out.delay="none"!==r.p?function(e,i){return e/2.5}:0,1===r.out.o&&0===r.out.x&&0===r.out.y&&(r.out.o=0)),"forceinout"===r.o?(r.in.zIndex=20,r.out.zIndex=10):"outin"!==r.o&&(1!==r.in.o||0!==r.in.x||0!==r.in.y||void 0===a.out||1===r.out.o&&0===r.out.x&&0===r.out.y)||(r.in.zIndex=10,r.out.zIndex=20),p.bgvid.length>0&&(r.in=c(e,r.in,p,"in")),l&&void 0!==g.bgvid&&g.bgvid.length>0&&(r.out=c(e,r.out,g,"out")),void 0!==r.out&&(r.out.simplify||r.in.simplify)&&(r.out=n(r.out)),r.in.simplify&&(r.in=n(r.in)),_R_is_Editor||requestAnimationFrame(function(){i.generalObserver(i.ISM,!0)}),r.in.eng=void 0===r.in.eng?"animateCore":r.in.eng,r.out.eng=void 0===r.out.eng?"animateCore":r.out.eng,l&&!0!==r.out.skip&&i[r.out.eng](e,g,r.out,{effect:r.e,slide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].c.sbg:i[e].pr_active_slide,direction:"out",delay:0,bgColor:r.in.bg,sdir:s,filter:void 0,d3:a.d3,addOns:_R_is_Editor?a.addOns:void 0}),!0!==r.in.skip&&i[r.in.eng](e,p,r.in,{effect:r.e,slide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].n.sbg:i[e].pr_next_slide,direction:"in",delay:l?"function"==typeof r.out.delay?r.out.delay(r.in.ms/1e3,r.out.row*r.out.col):r.out.delay:r.in.delay,BG:g,outslide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].c.sbg:i[e].pr_active_slide,sdir:s,filter:r.filter,d3:a.d3,addOns:_R_is_Editor?a.addOns:void 0})},s=function(e,t,a){var o=e.height/e.width;if(a.ratio=a.conth/a.contw,a.ratioo&&"cover"===t.bgfit)a.height=e.width*a.ratio;else if(a.ratio>o&&"contain"===t.bgfit||a.ratio=0?parseInt(a[0],0)/100*e.width-parseInt(a[0],0)/100*t.width:parseInt(a[0],0),y:"center"===a[1]||"50%"===a[1]?(e.height-t.height)/2:"top"===a[1]?0:"bottom"===a[1]?e.height-t.height:i.isNumeric(a[1])?0:a[1].indexOf("%")>=0?parseInt(a[1],0)/100*e.height-parseInt(a[1],0)/100*t.height:parseInt(a[1],0)}}(e,a,t.bgposition);return a.x=s.x,a.y=s.y,a},n=function(e){return e.o=0,e.r=0,e.row=1,e.col=1,e.x=0,e.y=0,e.sx=1,e.sy=1,e},d=function(e){return e="false"!==e&&!1!==e&&"off"!==e&&void 0!==e&&0!==e&&-1!==e},l=function(e){var i=e.toString(16);return 1==i.length?"0"+i:i},c=function(e,t,a,o){return t.skip=!1,"in"===o?a.isHTML5?(a.bgvid[0].style.display="none",i.resetVideo(a.bgvid,e),a.animateDirection="in",a.currentState="animating",a.drawVideoCanvasImagesRecall=!0,i.updateVideoFrames(e,a,!0),i.playVideo(a.bgvid,e)):(i[e].videos[a.bgvid[0].id].pauseCalled=!1,t.waitToSlideTrans=i[e].videos[a.bgvid[0].id].waitToSlideTrans,!0!==a.poster?(i.resetVideo(a.bgvid,e),i[e].videos[a.bgvid[0].id].prePlayForaWhile=!1,!0!==t.waitToSlideTrans&&i.playVideo(a.bgvid,e,!0),tpGS.gsap.fromTo(a.bgvid,t.ms/t.sec,{zIndex:30,display:"block",opacity:0},{opacity:1,zIndex:30,display:"block"}),a.loadobj.bgColor=!0,a.bgcolor="#000",t.simplify=!0):(i[e].videos[a.bgvid[0].id].prePlayForaWhile=!1,i.resetVideo(a.bgvid,e),i.playVideo(a.bgvid,e),a.bgvid[0].style.display="none",a.bgvid[0].style.zIndex=0,a.bgvid[0].style.opacity=0)):"out"===o&&(a.isHTML5?(a.currentState="animating",a.drawVideoCanvasImagesRecall=!0,i.updateVideoFrames(e,a,!0),window.requestAnimationFrame(function(){tpGS.gsap.to(a.bgvid,.1,{zIndex:0,display:"none"})})):(i.stopVideo(a.bgvid,e,!0),!0!==a.poster&&(a.loadobj.bgColor=!0,a.bgcolor="#000"))),t},p=function(e,i,t,a){return Math.sqrt(Math.pow(e-t,2)+Math.pow(i-a,2))},g=function(e,i){var t=i+Math.PI/2;return{x1:e.x,y1:e.y,x2:e.x+100*Math.cos(t),y2:e.y+100*Math.sin(t)}},u=function(e,i){var t=e.y2-e.y1,a=e.x1-e.x2,o=t*e.x1+a*e.y1,r=i.y2-i.y1,s=i.x1-i.x2,n=r*i.x1+s*i.y1,d=t*s-r*a;return 0!==d&&{x:Math.round((s*o-a*n)/d*100)/100,y:Math.round((t*n-r*o)/d*100)/100}};window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.slideanims={loaded:!0,version:"6.5.10"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(jQuery),function(e){"use strict";jQuery.fn.revolution=jQuery.fn.revolution||{};var i=jQuery.fn.revolution;function t(e){return null==e?-1:i.isNumeric(e)?e:e.split(":").length>1?60*parseInt(e.split(":")[0],0)+parseInt(e.split(":")[1],0):e}jQuery.extend(!0,i,{preLoadAudio:function(e,t){i[t].videos=void 0===i[t].videos?{}:i[t].videos,e.find(".rs-layer-audio").each(function(){var a=jQuery(this),o=i[t].videos[a[0].id]=void 0===i[t].videos[a[0].id]?f(a.data(),"audio",i.gA(e[0],"key")):i[t].videos[a[0].id],r={};0===a.find("audio").length&&(r.src=null!=o.mp4?o.mp4:"",r.pre=o.pload||"",this.id=void 0===this.id||""===this.id?a.attr("audio-layer-"+Math.round(199999*Math.random())):this.id,r.id=this.id,void 0===i[t].audioqueue&&(i[t].audioqueue=[]),i[t].audioqueue.push(r),i.manageVideoLayer(a,t,i.gA(e[0],"key"),!0))})},preLoadAudioDone:function(e,t,a){var o=i[t].videos[e[0].id];i[t].audioqueue&&i[t].audioqueue.length>0&&jQuery.each(i[t].audioqueue,function(e,i){o.mp4!==i.src||i.pre!==a&&"auto"!==i.pre||(i.status="loaded")})},checkfullscreenEnabled:function(e){if(void 0!==window.fullScreen)return window.fullScreen;if(void 0!==document.fullscreen)return document.fullscreen;if(void 0!==document.mozFullScreen)return document.mozFullScreen;if(void 0!==document.webkitIsFullScreen)return document.webkitIsFullScreen;var t=i.isWebkit()&&/Apple Computer/.test(navigator.vendor)?42:5;return screen.width==i.winW&&Math.abs(screen.height-i.getWinH(e))0)&&(o.vimeoplayer.setCurrentTime(-1==o.ssec?0:o.ssec),o.vimeoplayer.pause()),0!=o.jsposter.length||o.bgvideo||"preset"===a||i.showVideo(e.find("iframe"));break;case"html5":if(i.ISM&&o.notonmobile)return!1;o.bgvideo||i.showVideo(o.jvideo),o.rwd&&"playing"!==o.cSS&&!isNaN(o.video.duration)&&(o.justReseted=!0,o.video.currentTime=-1==o.ssec?0:o.ssec),("mute"==o.volume||i.lastToggleState(e.videomutetoggledby)||!0===i[t].globalmute)&&(o.video.muted=!0)}}},Mute:function(e,t,a){var o=!1,r=i[t].videos[e[0].id];switch(r.type){case"youtube":r.player&&(!0===a&&r.player.mute(),!1===a&&n(r,parseInt(r.volcache,0)),o=r.player.isMuted());break;case"vimeo":r.volcachecheck||(r.volcache=r.volcache>1?r.volcache/100:r.volcache,r.volcachecheck=!0),r.volume=!0===a?"mute":!1===a?r.volcache:r.volume,void 0!==a&&null!=r.vimeoplayer&&s(r,!0===a?0:r.volcache),o="mute"==r.volume||0===r.volume;break;case"html5":r.volcachecheck||(r.volcache=r.volcache>1?r.volcache/100:r.volcache,r.volcachecheck=!0),r.video.volume=r.volcache,void 0!==a&&r.video&&(r.video.muted=a),o=void 0!==r.video?r.video.muted:o}if(void 0===a)return o},stopVideo:function(e,t,a){if(void 0!==i[t]&&void 0!==i[t]){var o=i[t].videos[e[0].id];if(void 0!==o&&("stopVideo"!==o.cRS||"paused"!==o.cSS))switch(o.cRS="stopVideo",i[t].leaveViewPortBasedStop||(i[t].lastplayedvideos=[]),i[t].leaveViewPortBasedStop=!1,o.type){case"youtube":void 0!==o.player&&2!==o.player.getPlayerState()&&5!==o.player.getPlayerState()&&(o.player.pauseVideo(),void 0!==a&&p(t,o,"hide"));break;case"vimeo":void 0!==o.vimeoplayer&&(o.vimeoplayer.pause(),void 0!==a&&p(t,o,"hide"));break;case"html5":o.video&&(o.video.pause(),i.ISM&&b(o,1))}}},playVideo:function(e,t,o){var r=i[t].videos[e[0].id];if(clearTimeout(r.videoplaywait),"playVideo"!==r.cRS||"playing"!==r.cSS)switch(r.cRS="playVideo",r.type){case"youtube":if(0==e.find("iframe").length)e.append(r.videomarkup),u(e,t,!0);else if(void 0!==r.player&&null!=r.player.playVideo){var s=r.player.getCurrentTime();r.nseTriggered&&(s=-1,r.nseTriggered=!1),-1!=r.ssec&&r.ssec>s&&r.player.seekTo(r.ssec),c(r)}else r.videoplaywait=setTimeout(function(){i.playVideo(e,t)},50);break;case"vimeo":if(0==e.find("iframe").length)delete r.vimeoplayer,e.append(r.videomarkup),u(e,t,!0);else if(e.hasClass("rs-apiready"))if(r.vimeoplayer=null==r.vimeoplayer?new Vimeo.Player(e.find("iframe").attr("id")):r.vimeoplayer,r.vimeoplayer.getPaused()){s=void 0===r.currenttime?0:r.currenttime;r.nseTriggered&&(s=-1,r.nseTriggered=!1),-1!=r.ssec&&r.ssec>s&&r.vimeoplayer.setCurrentTime(r.ssec),("mute"==r.volume||0===r.volume||i.lastToggleState(e.data("videomutetoggledby"))||!0===i[t].globalmute)&&(r.volumetoken=!0,r.vimeoplayer.setMuted(!0)),l(r)}else r.videoplaywait=setTimeout(function(){i.playVideo(e,t)},50);else r.videoplaywait=setTimeout(function(){i.playVideo(e,t)},50);break;case"html5":if(r.metaloaded){if((""+r.video.duration=="NaN"||r.video.readyState<4)&&!o)return r.loadRequested||(r.video.load(),r.loadRequested=!0),void setTimeout(function(){i.playVideo(e,t)},50);s=r.video.currentTime;r.nseTriggered&&(s=-1,r.nseTriggered=!1),-1!=r.ssec&&r.ssec>s&&r.ssec1?r.ratio.split(":")[0]/r.ratio.split(":")[1]:1;var s,n=t/a,d=r.vd*n*100,l=r.vd/n*100;"Edge"===i.get_browser()||"IE"===i.get_browser()?s=n>r.vd?{minWidth:"100%",height:d+"%",x:"-50%",y:"-50%",top:"50%",left:"50%",position:"absolute"}:{minHeight:"100%",width:l+"%",x:"-50%",y:"-50%",top:"50%",left:"50%",position:"absolute"}:(r.bgvideo&&void 0!==r.vimeoid&&"carousel"==i[e].sliderType&&(d=100,l=100),s=n>r.vd?{height:(r.fitCover?100:d)+"%",width:"100%",top:r.fitCover?0:-(d-100)/2+"%",left:"0px",position:"absolute"}:{width:(r.fitCover?100:l)+"%",height:"100%",left:r.fitCover?0:-(l-100)/2+"%",top:"0px",position:"absolute"}),void 0===r.vimeoid&&void 0===r.ytid||(s.maxWidth="none",s.maxHeight="none"),tpGS.gsap.set(r.jvideo,s)}}else i[e].resizePrepareCoverVideolistener=setTimeout(function(){i.prepareCoveredVideo(e)},100)},checkVideoApis:function(e,t){location.protocol;if(!i[t].youtubeapineeded){var a=e.find("iframe");if((null!=e.data("ytid")||a.length>0&&a.attr("src")&&a.attr("src").toLowerCase().indexOf("youtube")>0)&&(i[t].youtubeapineeded=!0),i[t].youtubeapineeded&&!window.rs_addedyt){i[t].youtubestarttime=Date.now(),window.rs_addedyt=!0;var o=document.createElement("script"),r=i.getByTag(document,"script")[0],s=!0;o.src="https://www.youtube.com/iframe_api",jQuery("head").find("*").each(function(){"https://www.youtube.com/iframe_api"==jQuery(this).attr("src")&&(s=!1)}),s&&r.parentNode.insertBefore(o,r)}}if(!i[t].vimeoapineeded){var n=e.find("iframe");if((null!=e.data("vimeoid")||n.length>0&&n.attr("src")&&n.attr("src").toLowerCase().indexOf("vimeo")>0)&&(i[t].vimeoapineeded=!0),i[t].vimeoapineeded&&!window.rs_addedvim){i[t].vimeostarttime=Date.now(),window.rs_addedvim=!0;var d=document.createElement("script");r=i.getByTag(document,"script")[0],s=!0;d.src="https://player.vimeo.com/api/player.js",jQuery("head").find("*").each(function(){"https://player.vimeo.com/api/player.js"==jQuery(this).attr("src")&&(s=!1)}),s&&r.parentNode.insertBefore(d,r)}}},manageVideoLayer:function(e,t,o,r){if(i[t].videos=void 0===i[t].videos?{}:i[t].videos,void 0===i[t].videos[e[0].id]||!0===r){var s=i[t].videos[e[0].id]=void 0===i[t].videos[e[0].id]?f(e.data(),void 0,o):i[t].videos[e[0].id];if(s.audio=void 0!==s.audio&&s.audio,i.ISM&&s.opom)0==e.find("rs-poster").length&&e.append('');else{s.jsposter=e.find("rs-poster"),s.id=e[0].id,s.pload="auto"===s.pload||"canplay"===s.pload||"canplaythrough"===s.pload||"progress"===s.pload?"auto":s.pload,s.type=null!=s.mp4||null!=s.webm?"html5":null!=s.ytid&&String(s.ytid).length>1?"youtube":null!=s.vimeoid&&String(s.vimeoid).length>1?"vimeo":"none",s.newtype="html5"==s.type&&0==e.find(s.audio?"audio":"video").length?"html5":"youtube"==s.type&&0==e.find("iframe").length?"youtube":"vimeo"==s.type&&0==e.find("iframe").length?"vimeo":"none",s.extras="",s.posterMarkup=void 0===s.posterMarkup?"":s.posterMarkup,!s.audio&&"1sttime"==s.aplay&&s.pausetimer&&s.bgvideo&&i.sA(e.closest("rs-slide")[0],"rspausetimeronce",1),s.audio||!s.bgvideo||!s.pausetimer||1!=s.aplay&&"true"!=s.aplay&&"no1sttime"!=s.aplay||i.sA(e.closest("rs-slide")[0],"rspausetimeralways",1),s.noInt&&e.addClass("rs-nointeraction"),!(null!=s.poster&&s.poster.length>2)||i.ISM&&s.npom||0==s.jsposter.length&&(s.posterMarkup+='');var n=!0;switch(s.cSS="created",s.cRS="created",s.newtype){case"html5":1==window.isSafari11&&(i[t].slideHasIframe=!0),s.audio&&e.addClass("rs-audio"),s.tag=s.audio?"audio":"video";var d="video"===s.tag&&(i.is_mobile()||i.isSafari11())?s.aplay||"true"===s.aplay?"muted playsinline autoplay":s.inline?" playsinline":"":"",l='
';l+="<"+s.tag+" "+d+" "+(s.controls&&"none"!==s.controls?" controls":"")+(s.bgvideo&&-1==d.indexOf("autoplay")?" autoplay":"")+(s.bgvideo&&-1==d.indexOf("muted")?" muted":"")+' style="'+("Edge"!==i.get_browser()?(s.fitCover?"object-fit:cover;background-size:cover;":"")+"opacity:0;width:100%; height:100%":"")+'" class="" '+(s.loop?"loop":"")+' preload="'+s.pload+'">',"video"===s.tag&&null!=s.webm&&"firefox"==i.get_browser().toLowerCase()&&(l=l+''),null!=s.mp4&&(l=l+'0?"audio/x-m4a":"audio/mpeg")+'" />'),null!=s.ogv&&(l=l+''),l+="
",l+=s.posterMarkup,s.controls&&!s.audio&&void 0===s.poster||s.bgvideo||(l+='
 
'),s.videomarkup=l,n=!1,i.ISM&&s.notonmobile||i.isIE(8)||e.append(l),s.jvideo=e.find(s.tag),s.video=s.jvideo[0],s.html5vid=s.jvideo.parent(),a(s.video,"canplay",function(e){m(e,t),i.resetVideo(e,t)}(e));break;case"youtube":i[t].slideHasIframe=!0,s.controls&&"none"!==s.controls||(s.vatr=s.vatr.replace("controls=1","controls=0"),-1==s.vatr.toLowerCase().indexOf("controls")&&(s.vatr=s.vatr+"&controls=0")),(s.inline||"RS-BGVIDEO"===e[0].tagName)&&(s.vatr=s.vatr+"&playsinline=1"),-1!=s.ssec&&(s.vatr+="&start="+s.ssec),-1!=s.esec&&(s.vatr+="&end="+s.esec);var c=s.vatr.split("origin=https://");s.vatrnew=c.length>1?c[0]+"origin=https://"+(self.location.href.match(/www/gi)&&!c[1].match(/www/gi)?"www."+c[1]:c[1]):s.vatr,s.videomarkup='';break;case"vimeo":i[t].slideHasIframe=!0,s.controls&&"none"!==s.controls?(s.vatr=s.vatr.replace("background=0","background=1"),-1==s.vatr.toLowerCase().indexOf("background")&&(s.vatr=s.vatr+"&background=1")):(s.vatr=s.vatr.replace("background=1","background=0"),-1==s.vatr.toLowerCase().indexOf("background")&&(s.vatr=s.vatr+"&background=0")),s.vatr="autoplay="+(!0===s.aplay?1:0)+"&"+s.vatr,s.bgvideo&&(s.prePlayForaWhile=!0),i.ISM&&!0===s.aplay&&(s.vatr="muted=1&"+s.vatr),s.loop&&(s.vatr="loop=1&"+s.vatr),s.videomarkup=''}if(!(null!=s.poster&&s.poster.length>2)||i.ISM&&s.npom){if(i.ISM&&s.notonmobile)return!1;0!=e.find("iframe").length||"youtube"!=s.type&&"vimeo"!=s.type||(delete s.vimeoplayer,e.append(s.videomarkup),u(e,t,!("vimeo"!==s.newtype||!s.bgvideo),!0))}else n&&0==e.find("rs-poster").length&&e.append(s.posterMarkup),0==e.find("iframe").length&&(s.jsposter=e.find("rs-poster"),s.jsposter.on("click",function(){if(i.playVideo(e,t,!0),i.ISM){if(s.notonmobile)return!1;tpGS.gsap.to(s.jsposter,.3,{opacity:0,visibility:"hidden",force3D:"auto",ease:"power3.inOut"}),i.showVideo(e.find("iframe"))}}));if("none"!==s.doverlay&&void 0!==s.doverlay){var p=i.createOverlay(t,s.doverlay,s.doverlaysize,{0:s.doverlaycolora,1:s.doverlaycolorb});s.bgvideo&&1!=e.closest("rs-sbg-wrap").find("rs-dotted").length?e.closest("rs-sbg-wrap").append(''):s.bgvideo||1==e.find("rs-dotted").length||e.append('')}s.bgvideo&&(e[0].style.display="none",e[0].style.zIndex=0,tpGS.gsap.set(e.find("video, iframe"),{opacity:0}))}}}});var a=function(e,i,t){e.addEventListener?e.addEventListener(i,t,{capture:!1,passive:!0}):e.attachEvent(i,t,{capture:!1,passive:!0})},o=function(e,i,t){var a={};return a.video=e,a.type=i,a.settings=t,a},r=function(e,t){var a=i[e].videos[t[0].id];(a.bgvideo||t.hasClass("rs-fsv"))&&((void 0===a.ratio||a.ratio.split(":").length<=1)&&(a.ratio="16:9"),requestAnimationFrame(function(){i.prepareCoveredVideo(e)}))},s=function(e,t){var a=e.vimeoplayer;a.getPaused().then(function(o){e.volumetoken=!0;var r=!o,s=a.setVolume(t);void 0!==s&&s.then(function(i){a.getPaused().then(function(i){r===i&&(e.volume="mute",e.volumetoken=!0,a.setMuted(!0),a.play())}).catch(function(e){console.log("Get Paused Function Failed for Vimeo Volume Changes Inside the Promise")})}).catch(function(t){r&&(e.volume="mute",e.volumetoken=!0,a.setMuted(!0),a.play()),i.ISM&&b(e,0)})}).catch(function(){console.log("Get Paused Function Failed for Vimeo Volume Changes")})},n=function(e,i){var t=e.player.getPlayerState();"mute"===i?e.player.mute():(e.player.unMute(),e.player.setVolume(i)),setTimeout(function(){1===t&&1!==e.player.getPlayerState()&&(e.player.mute(),e.player.playVideo())},39)},d=function(e,t){if("playVideo"===e.cRS){var a=e.video.play();void 0!==a&&a.then(function(e){}).catch(function(i){e.video.pause(),!0!==t&&d(e,!0)}),i.ISM&&b(e,0)}},l=function(e){if("playVideo"===e.cRS){var i=e.vimeoplayer.play();void 0!==i&&i.then(function(e){}).catch(function(i){e.vimeoplayer.volumetoken=!0,e.vimeoplayer.setMuted(!0),e.vimeoplayer.play()})}},c=function(e){"playVideo"===e.cRS&&e.player.playVideo()},p=function(e,t,a,o){clearTimeout(t.repeatedPosterCalls),t.repeatedPosterCalls=setTimeout(function(){"show"===a||"playing"===t.cSS&&!0!==t.VideoIsVisible?(void 0!==t.showhideposter&&t.showhideposter.pause(),t.showhideposter=tpGS.gsap.timeline(),t.jsposter.length>0&&t.showhideposter.add(tpGS.gsap.to(t.jsposter,.3,{zIndex:5,autoAlpha:0,force3D:"auto",ease:"power3.inOut"}),0),t.jvideo.length>0&&t.showhideposter.add(tpGS.gsap.to(t.jvideo,void 0!==o?o:.001,{opacity:1,display:"block",ease:t.jsposter.length>0?"power3.inOut":"power3.out"}),0),t.VideoIsVisible=!0):("hide"===a||"paused"===t.cSS&&1!=i.checkfullscreenEnabled(e)&&t.jsposter.length>0&&!1!==t.VideoIsVisible&&!0!==t.seeking)&&(void 0!==t.showhideposter&&t.showhideposter.pause(),t.showhideposter=tpGS.gsap.timeline(),t.jsposter.length>0&&t.showhideposter.add(tpGS.gsap.to(t.jsposter,.3,{zIndex:5,autoAlpha:1,force3D:"auto",ease:"power3.inOut"}),0),t.jvideo.length>0&&t.showhideposter.add(tpGS.gsap.to(t.jvideo,void 0!==o?o:.001,{opacity:0,ease:t.jsposter.length>0?"power3.inOut":"power3.out"}),.3),t.bgvideo&&void 0!==t.nBG&&void 0!==t.nBG.loadobj&&(t.nBG.video=t.nBG.loadobj.img),t.VideoIsVisible=!1)},void 0!==a?0:100)},g=function(e,t,a){e.cSS="playing",e.vimeostarted=!0,e.nextslidecalled=!1,e.jsposter=void 0===e.jsposter||0===e.jsposter.length?t.find("rs-poster"):e.jsposter,e.jvideo=t.find("iframe"),i[a].c.trigger("revolution.slide.onvideoplay",o(e.vimeoplayer,"vimeo",e)),i[a].stopByVideo=e.pausetimer,w(t,a),"mute"==e.volume||0===e.volume||i.lastToggleState(t.data("videomutetoggledby"))||!0===i[a].globalmute?(e.volumetoken=!0,e.vimeoplayer.setMuted(!0)):s(e,parseInt(e.volcache,0)/100||.75),i.toggleState(e.videotoggledby)},u=function(e,t,a,s){var d=i[t].videos[e[0].id],l="iframe"+Math.round(1e5*Math.random()+1);if(d.jvideo=e.find("iframe"),r(t,e),d.jvideo.attr("id",l),d.startvideonow=a,d.videolistenerexist){if(a)switch(d.type){case"youtube":i.playVideo(e,t),-1!=d.ssec&&d.player.seekTo(d.ssec);break;case"vimeo":i.playVideo(e,t),-1!=d.ssec&&d.vimeoplayer.seekTo(d.ssec)}}else switch(d.type){case"youtube":if("undefined"==typeof YT||void 0===YT.Player)return i.checkVideoApis(e,t),void setTimeout(function(){u(e,t,a,s)},50);d.player=new YT.Player(l,{events:{onStateChange:function(a){a.data==YT.PlayerState.PLAYING?(d.cSS="playing",i[t].onceVideoPlayed=!0,"mute"==d.volume||0===d.volume||i.lastToggleState(e.data("videomutetoggledby"))||!0===i[t].globalmute?d.player.mute():n(d,parseInt(d.volcache,0)||75),i[t].stopByVideo=!0,w(e,t),d.pausetimer?i[t].c.trigger("stoptimer"):i[t].stopByVideo=!1,i[t].c.trigger("revolution.slide.onvideoplay",o(d.player,"youtube",d)),i.toggleState(d.videotoggledby)):(d.cSS="paused",0==a.data&&d.loop&&(-1!=d.ssec&&d.player.seekTo(d.ssec),i.playVideo(e,t),i.toggleState(d.videotoggledby)),-1!=a.data&&3!=a.data&&(i[t].stopByVideo=!1,i[t].tonpause=!1,y(e,t),i[t].c.trigger("starttimer"),i[t].c.trigger("revolution.slide.onvideostop",o(d.player,"youtube",d)),null!=i[t].videoIsPlaying&&i[t].videoIsPlaying.attr("id")!=e.attr("id")||i.unToggleState(d.videotoggledby)),0==a.data&&d.nse?(h(),d.nseTriggered=!0,i[t].c.revnext(),y(e,t)):(y(e,t),i[t].stopByVideo=!1,3!==a.data&&(-1!=d.lasteventdata&&3!=d.lasteventdata&&void 0!==d.lasteventdata||-1!=a.data&&3!=a.data)&&i[t].c.trigger("starttimer"),i[t].c.trigger("revolution.slide.onvideostop",o(d.player,"youtube",d)),null!=i[t].videoIsPlaying&&i[t].videoIsPlaying.attr("id")!=e.attr("id")||i.unToggleState(d.videotoggledby))),clearTimeout(d.postOrVideoTimer),3!==a.data&&(d.postOrVideoTimer=setTimeout(function(){p(t,d)},1===d.lasteventdata&&2===a.data||2===d.lasteventdata&&3!==a.data?1e3:0),d.lasteventdata=a.data)},onReady:function(a){var o,r=i.is_mobile(),n=e.hasClass("rs-layer-video");d.ready=!0,!r&&(!i.isSafari11()||r&&n)||"RS-BGVIDEO"!==e[0].tagName&&(!n||!0!==d.aplay&&"true"!==d.aplay)||(o=!0,d.player.setVolume(0),d.volume="mute",d.player.mute(),clearTimeout(e.data("mobilevideotimr")),2!==d.player.getPlayerState()&&-1!==d.player.getPlayerState()||e.data("mobilevideotimr",setTimeout(function(){i.playVideo(e,t)},500))),o||"mute"!=d.volume||(d.player.setVolume(0),d.player.mute()),e.addClass("rs-apiready"),null==d.speed&&1===d.speed||a.target.setPlaybackRate(parseFloat(d.speed)),d.jsposter.off("click"),d.jsposter.on("click",function(){i.playVideo(e,t,!0)}),d.startvideonow?(i.playVideo(e,t),-1!=d.ssec&&d.player.seekTo(d.ssec)):s&&p(t,d,"show",.2),d.videolistenerexist=!0}}});break;case"vimeo":if("undefined"==typeof Vimeo||void 0===Vimeo.Player)return i.checkVideoApis(e,t),void setTimeout(function(){u(e,t,a,s)},50);for(var c,m=d.jvideo.attr("src"),v={},f=m,b=/([^&=]+)=([^&]*)/g;c=b.exec(f);)v[decodeURIComponent(c[1])]=decodeURIComponent(c[2]);m=(m=null!=v.player_id?m.replace(v.player_id,l):m+"&player_id="+l).replace(/&api=0|&api=1/g,"");var _,S=i.is_mobile()||i.isSafari11(),x="RS-BGVIDEO"===e[0].tagName;if(S&&x&&(m+="&background=1"),d.jvideo.attr("src",m),d.vimeoplayer=void 0===d.vimeoplayer||!1===d.vimeoplayer?new Vimeo.Player(l):d.vimeoplayer,S)x?_=!0:(d.aplay||"true"===d.aplay)&&(_=!0),_&&(d.volumetoken=!0,d.vimeoplayer.setMuted(!0),d.volume="mute");d.vimeoplayer.on("play",function(a){i[t].onceVideoPlayed=!0,d.cSS="playing",d.vimeostarted||g(d,e,t)}),d.vimeoplayer.on("loaded",function(a){var o={};d.vimeoplayer.getVideoWidth().then(function(i){o.width=i,void 0!==o.width&&void 0!==o.height&&(d.ratio=o.width+":"+o.height,d.vimeoplayerloaded=!0,r(t,e))}),d.vimeoplayer.getVideoHeight().then(function(i){o.height=i,void 0!==o.width&&void 0!==o.height&&(d.ratio=o.width+":"+o.height,d.vimeoplayerloaded=!0,r(t,e))}),d.startvideonow?("mute"===d.volume&&(d.volumetoken=!0,d.vimeoplayer.setMuted(!0)),i.playVideo(e,t),-1!=d.ssec&&d.vimeoplayer.setCurrentTime(d.ssec)):s&&p(t,d,"show",.2)}),e.addClass("rs-apiready"),d.vimeoplayer.on("volumechange",function(e){d.volumetoken&&(d.volume=e.volume),d.volumetoken=!1}),d.vimeoplayer.on("timeupdate",function(a){p(t,d),d.vimeostarted||0===a.percent||void 0!==i[t].activeRSSlide&&d.slideid!==i.gA(i[t].slides[i[t].activeRSSlide],"key")||g(d,e,t),d.pausetimer&&"playing"==i[t].sliderstatus&&(i[t].stopByVideo=!0,i[t].c.trigger("stoptimer")),d.currenttime=a.seconds,0!=d.esec&&-1!==d.esec&&d.esec ');var n="video, rs-poster, .tp-video-play-button";void 0!==s.poster&&s.controls&&(n=".tp-video-play-button"),e.find(n).on("click",function(){!1===s.loop&&s.esec>0&&s.esec<=s.video.currentTime||(e.hasClass("videoisplaying")?i.stopVideo(e,t):i.playVideo(e,t,!0))})}(e.hasClass("rs-fsv")||s.bgvideo)&&(s.bgvideo||e.hasClass("rs-fsv")?(s.html5vid.addClass("fullcoveredvideo"),void 0!==s.ratio&&1!=s.ratio.split(":").length||(s.ratio="16:9"),i.prepareCoveredVideo(t)):s.html5vid.addClass("rs-fsv")),a(s.video,"canplaythrough",function(){i.preLoadAudioDone(e,t,"canplaythrough")}),a(s.video,"canplay",function(){i.preLoadAudioDone(e,t,"canplay")}),a(s.video,"progress",function(){i.preLoadAudioDone(e,t,"progress")}),a(s.video,"pause",function(){i.ISM&&b(s,1)}),a(s.video,"timeupdate",function(e){this.BGrendered=!0,p(t,s),-1===s.esec&&s.loop&&1==window.isSafari11&&(s.esec=s.video.duration-.075),void 0!==s.lastCurrentTime?s.fps=s.video.currentTime-s.lastCurrentTime:s.fps=.1,s.lastCurrentTime=s.video.currentTime,0!=s.esec&&-1!=s.esec&&s.esec1?s.volcache/100:s.volcache,"mute"==s.volume?s.video.muted=!0:null!=s.volcache&&(s.video.volume=s.volcache)),e.addClass("videoisplaying"),w(e,t),clearTimeout(s.showCoverSoon),!0!==s.pausetimer||"audio"==s.tag?(i[t].stopByVideo=!1,i[t].c.trigger("revolution.slide.onvideostop",o(s.video,"html5",s))):(i[t].stopByVideo=!0,i[t].c.trigger("revolution.slide.onvideoplay",o(s.video,"html5",s))),s.pausetimer&&"playing"==i[t].sliderstatus&&(i[t].stopByVideo=!0,i[t].c.trigger("stoptimer")),i.toggleState(s.videotoggledby)}),a(s.video,"seeked",function(){s.seeking=!1}),a(s.video,"seeking",function(){s.seeking=!0}),a(s.video,"pause",function(a){s.cSS="paused",p(t,s),e.removeClass("videoisplaying"),s.bgvideo&&(s.nBG.drawVideoCanvasImagesRecall=!1,s.nBG.videoisplaying=!1),i[t].stopByVideo=!1,y(e,t),"audio"!=s.tag&&i[t].c.trigger("starttimer"),i[t].c.trigger("revolution.slide.onvideostop",o(s.video,"html5",s)),null!=i[t].videoIsPlaying&&i[t].videoIsPlaying.attr("id")!=e.attr("id")||i.unToggleState(s.videotoggledby)}),a(s.video,"ended",function(){s.cSS="paused",h(),p(t,s),y(e,t),i[t].stopByVideo=!1,y(e,t),"audio"!=s.tag&&i[t].c.trigger("starttimer"),i[t].c.trigger("revolution.slide.onvideostop",o(s.video,"html5",e.data())),s.nse&&s.video.currentTime>0&&(1==!i[t].jcnah&&(s.nseTriggered=!0,i[t].c.revnext(),i[t].jcnah=!0),setTimeout(function(){i[t].jcnah=!1},1500)),e.removeClass("videoisplaying"),s.bgvideo&&(s.nBG.drawVideoCanvasImagesRecall=!1,s.nBG.videoisplaying=!1),!0!==i[t].inviewport&&void 0!==i[t].inviewport||(i[t].lastplayedvideos=[])})},v=function(e){return"t"===e||!0===e||"true"===e||"f"!==e&&!1!==e&&"false"!==e&&e},f=function(e,i,a){e.audio="audio"===i;var o=void 0===e.video?[]:e.video.split(";"),r={volume:e.audio?1:"mute",pload:"auto",ratio:"16:9",loop:!0,aplay:"true",fitCover:!0,afs:!0,controls:!1,nse:!0,npom:!1,opom:!1,inline:!0,notonmobile:!1,start:-1,end:-1,doverlay:"none",doverlaysize:1,doverlaycolora:"transparent",doverlaycolorb:"#000000",scop:!1,rwd:!0,speed:1,ploadwait:5,stopAV:1!==e.bgvideo,noInt:!1,volcache:75};for(var s in o)if(o.hasOwnProperty(s)){var n=o[s].split(":");switch(n[0]){case"v":r.volume=n[1];break;case"vd":r.volcache=n[1];break;case"p":r.pload=n[1];break;case"ar":r.ratio=n[1]+(void 0!==n[2]?":"+n[2]:"");break;case"ap":r.aplay=v(n[1]);break;case"vfc":r.fitCover=v(n[1]);break;case"afs":r.afs=v(n[1]);break;case"vc":r.controls=n[1];break;case"nse":r.nse=v(n[1]);break;case"npom":r.npom=v(n[1]);break;case"opom":r.opom=v(n[1]);break;case"t":r.vtype=n[1];break;case"inl":r.inline=v(n[1]);break;case"nomo":r.notonmobile=v(n[1]);break;case"sta":r.start=n[1]+(void 0!==n[2]?":"+n[2]:"");break;case"end":r.end=n[1]+(void 0!==n[2]?":"+n[2]:"");break;case"do":r.doverlay=n[1];break;case"dos":r.doverlaysize=n[1];break;case"doca":r.doverlaycolora=n[1];break;case"docb":r.doverlaycolorb=n[1];break;case"scop":r.scop=v(n[1]);break;case"rwd":r.rwd=v(n[1]);break;case"sp":r.speed=n[1];break;case"vw":r.ploadwait=parseInt(n[1],0)||5;break;case"sav":r.stopAV=v(n[1]);break;case"noint":r.noInt=v(n[1]);break;case"l":r.loopcache=n[1],r.loop="loop"===n[1]||"loopandnoslidestop"===n[1]||"none"!==n[1]&&v(n[1]);break;case"ptimer":r.pausetimer=v(n[1]);break;case"sat":r.waitToSlideTrans=v(n[1])}}return null==e.mp4&&null==e.webm&&(r.fitCover=!1),void 0!==e.bgvideo&&(r.bgvideo=e.bgvideo),r.noInt&&(r.controls=!1),void 0!==e.mp4&&(r.mp4=e.mp4),void 0!==e.videomp4&&(r.mp4=e.videomp4),void 0!==e.ytid&&(r.ytid=e.ytid),void 0!==e.ogv&&(r.ogv=e.ogv),void 0!==e.webm&&(r.webm=e.webm),void 0!==e.vimeoid&&(r.vimeoid=e.vimeoid),void 0!==e.vatr&&(r.vatr=e.vatr),void 0!==e.videoattributes&&(r.vatr=e.videoattributes),void 0!==e.poster&&(r.poster=e.poster),r.slideid=a,r.aplay="true"===r.aplay||r.aplay,1===r.bgvideo&&(r.volume="mute"),r.ssec=t(r.start),r.esec=t(r.end),r.pausetimer=void 0===r.pausetimer?"loopandnoslidestop"!==r.loopcache:r.pausetimer,r.inColumn=e._incolumn,r.audio=e.audio,!0!==r.loop&&"true"!==r.loop||!0!==r.nse&&"true"!==r.nse||(r.loop=!1),r},w=function(e,t){if(i[t].playingvideos=void 0===i[t].playingvideos?new Array:i[t].playingvideos,i[t].videos[e[0].id].stopAV&&void 0!==i[t].playingvideos&&i[t].playingvideos.length>0)for(var a in i[t].lastplayedvideos=jQuery.extend(!0,[],i[t].playingvideos),i[t].playingvideos)i[t].playingvideos.hasOwnProperty(a)&&i.stopVideo(i[t].playingvideos[a],t);i[t].playingvideos.push(e),i[t].videoIsPlaying=e},y=function(e,t){void 0!==i[t]&&void 0!==i[t]&&null!=i[t].playingvideos&&jQuery.inArray(e,i[t].playingvideos)>=0&&i[t].playingvideos.splice(jQuery.inArray(e,i[t].playingvideos),1)},b=function(e,t){if(void 0!==e&&(void 0===t&&(t=0),i.ISM&&!e.bgvideo)){e.playPauseBtnTween&&e.playPauseBtnTween.kill&&e.playPauseBtnTween.kill();var a=i.closestNode(e.video,"RS-LAYER"),o=e.controls?1:0,r=e.controls?0:.3;e.controls&&e.poster&&0===t&&(r=0,o=0),a&&(e.playPauseBtnTween=tpGS.gsap.to(a.querySelector(".tp-video-play-button"),{duration:r,delay:o,opacity:t}))}};window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.video={loaded:!0,version:"6.5.6"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(jQuery); !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,r){return void 0===r&&(r="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(r),r}:e(jQuery)}(function(e){"use strict";function t(t){var r=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).closest("form").ajaxSubmit(r))}function r(t){var r=t.target,a=e(r);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;r=n[0]}var i=r.form;if(i.clk=r,"image"===r.type)if(void 0!==t.offsetX)i.clk_x=t.offsetX,i.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=a.offset();i.clk_x=t.pageX-o.left,i.clk_y=t.pageY-o.top}else i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function a(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var n=/\r?\n/g,i={};i.fileapi=void 0!==e('').get(0).files,i.formdata=void 0!==window.FormData;var o=!!e.fn.prop;e.fn.attr2=function(){if(!o)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t,r,n,s){function u(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;a',k).val(f.extraData[c].value).appendTo(w)[0]):u.push(e('',k).val(f.extraData[c]).appendTo(w)[0]));f.iframeTarget||h.appendTo(D),v.attachEvent?v.attachEvent("onload",s):v.addEventListener("load",s,!1),setTimeout(t,15);try{w.submit()}catch(e){document.createElement("form").submit.apply(w)}}finally{w.setAttribute("action",i),w.setAttribute("enctype",o),r?w.setAttribute("target",r):p.removeAttr("target"),e(u).remove()}}function s(t){if(!x.aborted&&!X){if((O=n(v))||(a("cannot access response document"),t=L),t===A&&x)return x.abort("timeout"),void S.reject(x,"timeout");if(t===L&&x)return x.abort("server abort"),void S.reject(x,"error","server abort");if(O&&O.location.href!==f.iframeSrc||T){v.detachEvent?v.detachEvent("onload",s):v.removeEventListener("load",s,!1);var r,i="success";try{if(T)throw"timeout";var o="xml"===f.dataType||O.XMLDocument||e.isXMLDoc(O);if(a("isXml="+o),!o&&window.opera&&(null===O.body||!O.body.innerHTML)&&--C)return a("requeing onLoad callback, DOM not available"),void setTimeout(s,250);var u=O.body?O.body:O.documentElement;x.responseText=u?u.innerHTML:null,x.responseXML=O.XMLDocument?O.XMLDocument:O,o&&(f.dataType="xml"),x.getResponseHeader=function(e){return{"content-type":f.dataType}[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var c=(f.dataType||"").toLowerCase(),l=/(json|script|text)/.test(c);if(l||f.textarea){var p=O.getElementsByTagName("textarea")[0];if(p)x.responseText=p.value,x.status=Number(p.getAttribute("status"))||x.status,x.statusText=p.getAttribute("statusText")||x.statusText;else if(l){var m=O.getElementsByTagName("pre")[0],g=O.getElementsByTagName("body")[0];m?x.responseText=m.textContent?m.textContent:m.innerText:g&&(x.responseText=g.textContent?g.textContent:g.innerText)}}else"xml"===c&&!x.responseXML&&x.responseText&&(x.responseXML=q(x.responseText));try{M=N(x,c,f)}catch(e){i="parsererror",x.error=r=e||i}}catch(e){a("error caught: ",e),i="error",x.error=r=e||i}x.aborted&&(a("upload aborted"),i=null),x.status&&(i=x.status>=200&&x.status<300||304===x.status?"success":"error"),"success"===i?(f.success&&f.success.call(f.context,M,"success",x),S.resolve(x.responseText,"success",x),d&&e.event.trigger("ajaxSuccess",[x,f])):i&&(void 0===r&&(r=x.statusText),f.error&&f.error.call(f.context,x,i,r),S.reject(x,"error",r),d&&e.event.trigger("ajaxError",[x,f,r])),d&&e.event.trigger("ajaxComplete",[x,f]),d&&!--e.active&&e.event.trigger("ajaxStop"),f.complete&&f.complete.call(f.context,x,i),X=!0,f.timeout&&clearTimeout(j),setTimeout(function(){f.iframeTarget?h.attr("src",f.iframeSrc):h.remove(),x.responseXML=null},100)}}}var u,c,f,d,m,h,v,x,y,b,T,j,w=p[0],S=e.Deferred();if(S.abort=function(e){x.abort(e)},r)for(c=0;c',k)).css({position:"absolute",top:"-1000px",left:"-1000px"}),v=h[0],x={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var r="timeout"===t?"timeout":"aborted";a("aborting upload... "+r),this.aborted=1;try{v.contentWindow.document.execCommand&&v.contentWindow.document.execCommand ("Stop")}catch(e){}h.attr("src",f.iframeSrc),x.error=r,f.error&&f.error.call(f.context,x,r,t),d&&e.event.trigger("ajaxError",[x,f,r]),f.complete&&f.complete.call(f.context,x,r)}},(d=f.global)&&0==e.active++&&e.event.trigger("ajaxStart"),d&&e.event.trigger("ajaxSend",[x,f]),f.beforeSend&&!1===f.beforeSend.call(f.context,x,f))return f.global&&e.active--,S.reject(),S;if(x.aborted)return S.reject(),S;(y=w.clk)&&(b=y.name)&&!y.disabled&&(f.extraData=f.extraData||{},f.extraData[b]=y.value,"image"===y.type&&(f.extraData[b+".x"]=w.clk_x,f.extraData[b+".y"]=w.clk_y));var A=1,L=2,F=e("meta[name=csrf-token]").attr("content"),E=e("meta[name=csrf-param]").attr("content");E&&F&&(f.extraData=f.extraData||{},f.extraData[E]=F),f.forceSync?i():setTimeout(i,10);var M,O,X,C=50,q=e.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!==t.documentElement.nodeName?t:null},_=e.parseJSON||function(e){return window.eval("("+e+")")},N=function(t,r,a){var n=t.getResponseHeader("content-type")||"",i=("xml"===r||!r)&&n.indexOf("xml")>=0,o=i?t.responseXML:t.responseText;return i&&"parsererror"===o.documentElement.nodeName&&e.error&&e.error("parsererror"),a&&a.dataFilter&&(o=a.dataFilter(o,r)),"string"==typeof o&&(("json"===r||!r)&&n.indexOf("json")>=0?o=_(o):("script"===r||!r)&&n.indexOf("javascript")>=0&&e.globalEval(o)),o};return S}if(!this.length)return a("ajaxSubmit: skipping submit process - no element selected"),this;var l,f,d,p=this;"function"==typeof t?t={success:t}:"string"==typeof t||!1===t&&arguments.length>0?(t={url:t,data:r,dataType:n},"function"==typeof s&&(t.success=s)):void 0===t&&(t={}),l=t.method||t.type||this.attr2("method"),(d=(d="string"==typeof(f=t.url||this.attr2("action"))?e.trim(f):"")||window.location.href||"")&&(d=(d.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:d,success:e.ajaxSettings.success,type:l||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var m={};if(this.trigger("form-pre-serialize",[this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&!1===t.beforeSerialize(this,t))return a("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var h=t.traditional;void 0===h&&(h=e.ajaxSettings.traditional);var v,g=[],x=this.formToArray(t.semantic,g,t.filtering);if(t.data){var y=e.isFunction(t.data)?t.data(x):t.data;t.extraData=y,v=e.param(y,h)}if(t.beforeSubmit&&!1===t.beforeSubmit(x,this,t))return a("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[x,this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var b=e.param(x,h);v&&(b=b?b+"&"+v:v),"GET"===t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+b,t.data=null):t.data=b;var T=[];if(t.resetForm&&T.push(function(){p.resetForm()}),t.clearForm&&T.push(function(){p.clearForm(t.includeHidden)}),!t.dataType&&t.target){var j=t.success||function(){};T.push(function(r,a,n){var i=arguments,o=t.replaceTarget?"replaceWith":"html";e(t.target)[o](r).each(function(){j.apply(this,i)})})}else t.success&&(e.isArray(t.success)?e.merge(T,t.success):T.push(t.success));if(t.success=function(e,r,a){for(var n=t.context||this,i=0,o=T.length;i0,D="multipart/form-data",A=p.attr("enctype")===D||p.attr("encoding")===D,L=i.fileapi&&i.formdata;a("fileAPI :"+L);var F,E=(k||A)&&!L;!1!==t.iframe&&(t.iframe||E)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){F=c(x)}):F=c(x):F=(k||A)&&L?function(r){for(var a=new FormData,n=0;n0)&&(n={url:n,data:i,dataType:o},"function"==typeof s&&(n.success=s)),n=n||{},n.delegation=n.delegation&&e.isFunction(e.fn.on),!n.delegation&&0===this.length){var u={s:this.selector,c:this.context};return!e.isReady&&u.s?(a("DOM not ready, queuing ajaxForm"),e(function(){e(u.s,u.c).ajaxForm(n)}),this):(a("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)")),this)}return n.delegation?(e(document).off("submit.form-plugin",this.selector,t).off("click.form-plugin",this.selector,r).on("submit.form-plugin",this.selector,n,t).on("click.form-plugin",this.selector,n,r),this):this.ajaxFormUnbind().on("submit.form-plugin",n,t).on("click.form-plugin",n,r)},e.fn.ajaxFormUnbind=function(){return this.off("submit.form-plugin click.form-plugin")},e.fn.formToArray=function(t,r,a){var n=[];if(0===this.length)return n;var o,s=this[0],u=this.attr("id"),c=t||void 0===s.elements?s.getElementsByTagName("*"):s.elements;if(c&&(c=e.makeArray(c)),u&&(t||/(Edge|Trident)\//.test(navigator.userAgent))&&(o=e(':input[form="'+u+'"]').get()).length&&(c=(c||[]).concat(o)),!c||!c.length)return n;e.isFunction(a)&&(c=e.map(c,a));var l,f,d,p,m,h,v;for(l=0,h=c.length;l=f[g]?0:Math.min(f[g],n));!a&&10?setTimeout(d.proxy(a,this),b):void a.call(this)}function m(a){this.tooltip.hasClass(aa)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=l.call(this,function(){this.toggle(D,a)},this.options.show.delay))}function n(a){if(!this.tooltip.hasClass(aa)&&!this.destroyed){var b=d(a.relatedTarget),c=b.closest(W)[0]===this.tooltip[0],e=b[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==b[0]&&"mouse"===this.options.position.target&&c||this.options.hide.fixed&&/mouse(out|leave|move)/.test(a.type)&&(c||e))try{a.preventDefault(),a.stopImmediatePropagation()}catch(f){}else this.timers.hide=l.call(this,function(){this.toggle(E,a)},this.options.hide.delay,this)}}function o(a){!this.tooltip.hasClass(aa)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=l.call(this,function(){this.hide(a)},this.options.hide.inactive))}function p(a){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(a)}function q(a,c,e){d(b.body).delegate(a,(c.split?c:c.join("."+S+" "))+"."+S,function(){var a=y.api[d.attr(this,U)];a&&!a.disabled&&e.apply(a,arguments)})}function r(a,c,f){var g,i,j,k,l,m=d(b.body),n=a[0]===b?m:a,o=a.metadata?a.metadata(f.metadata):F,p="html5"===f.metadata.type&&o?o[f.metadata.name]:F,q=a.data(f.metadata.name||"qtipopts");try{q="string"==typeof q?d.parseJSON(q):q}catch(r){}if(k=d.extend(D,{},y.defaults,f,"object"==typeof q?h(q):F,h(p||o)),i=k.position,k.id=c,"boolean"==typeof k.content.text){if(j=a.attr(k.content.attr),k.content.attr===E||!j)return E;k.content.text=j}if(i.container.length||(i.container=m),i.target===E&&(i.target=n),k.show.target===E&&(k.show.target=n),k.show.solo===D&&(k.show.solo=i.container.closest("body")),k.hide.target===E&&(k.hide.target=n),k.position.viewport===D&&(k.position.viewport=i.container),i.container=i.container.eq(0),i.at=new A(i.at,D),i.my=new A(i.my),a.data(S))if(k.overwrite)a.qtip("destroy",!0);else if(k.overwrite===E)return E;return a.attr(T,c),k.suppress&&(l=a.attr("title"))&&a.removeAttr("title").attr(ca,l).attr("title",""),g=new e(a,k,c,!!j),a.data(S,g),g}function s(a){return a.charAt(0).toUpperCase()+a.slice(1)}function t(a,b){var d,e,f=b.charAt(0).toUpperCase()+b.slice(1),g=(b+" "+va.join(f+" ")+f).split(" "),h=0;if(ua[b])return a.css(ua[b]);for(;d=g[h++];)if((e=a.css(d))!==c)return ua[b]=d,e}function u(a,b){return Math.ceil(parseFloat(t(a,b)))}function v(a,b){this._ns="tip",this.options=b,this.offset=b.offset,this.size=[b.width,b.height],this.qtip=a,this.init(a)}function w(a,b){this.options=b,this._ns="-modal",this.qtip=a,this.init(a)}function x(a){this._ns="ie6",this.qtip=a,this.init(a)}var y,z,A,B,C,D=!0,E=!1,F=null,G="x",H="y",I="width",J="height",K="top",L="left",M="bottom",N="right",O="center",P="flipinvert",Q="shift",R={},S="qtip",T="data-hasqtip",U="data-qtip-id",V=["ui-widget","ui-tooltip"],W="."+S,X="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),Y=S+"-fixed",Z=S+"-default",$=S+"-focus",_=S+"-hover",aa=S+"-disabled",ba="_replacedByqTip",ca="oldtitle",da={ie:function(){var a,c;for(a=4,c=b.createElement("div");(c.innerHTML="")&&c.getElementsByTagName("i")[0];a+=1);return a>4?a:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||E};z=e.prototype,z._when=function(a){return d.when.apply(d,a)},z.render=function(a){if(this.rendered||this.destroyed)return this;var b=this,c=this.options,e=this.cache,f=this.elements,g=c.content.text,h=c.content.title,i=c.content.button,j=c.position,k=[];return d.attr(this.target[0],"aria-describedby",this._id),e.posClass=this._createPosClass((this.position={my:j.my,at:j.at}).my),this.tooltip=f.tooltip=d("
",{id:this._id,"class":[S,Z,c.style.classes,e.posClass].join(" "),width:c.style.width||"",height:c.style.height||"",tracking:"mouse"===j.target&&j.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":E,"aria-describedby":this._id+"-content","aria-hidden":D}).toggleClass(aa,this.disabled).attr(U,this.id).data(S,this).appendTo(j.container).append(f.content=d("
",{"class":S+"-content",id:this._id+"-content","aria-atomic":D})),this.rendered=-1,this.positioning=D,h&&(this._createTitle(),d.isFunction(h)||k.push(this._updateTitle(h,E))),i&&this._createButton(),d.isFunction(g)||k.push(this._updateContent(g,E)),this.rendered=D,this._setWidget(),d.each(R,function(a){var c;"render"===this.initialize&&(c=this(b))&&(b.plugins[a]=c)}),this._unassignEvents(),this._assignEvents(),this._when(k).then(function(){b._trigger("render"),b.positioning=E,b.hiddenDuringWait||!c.show.ready&&!a||b.toggle(D,e.event,E),b.hiddenDuringWait=E}),y.api[this.id]=this,this},z.destroy=function(a){function b(){if(!this.destroyed){this.destroyed=D;var a,b=this.target,c=b.attr(ca);this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),d.each(this.plugins,function(){this.destroy&&this.destroy()});for(a in this.timers)this.timers.hasOwnProperty(a)&&clearTimeout(this.timers[a]);b.removeData(S).removeAttr(U).removeAttr(T).removeAttr("aria-describedby"),this.options.suppress&&c&&b.attr("title",c).removeAttr(ca),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=F,delete y.api[this.id]}}return this.destroyed?this.target:(a===D&&"hide"!==this.triggering||!this.rendered?b.call(this):(this.tooltip.one("tooltiphidden",d.proxy(b,this)),!this.triggering&&this.hide()),this.target)},B=z.checks={builtin:{"^id$":function(a,b,c,e){var f=c===D?y.nextid:c,g=S+"-"+f;f!==E&&f.length>0&&!d("#"+g).length?(this._id=g,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):a[b]=e},"^prerender":function(a,b,c){c&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(a,b,c){this._updateContent(c)},"^content.attr$":function(a,b,c,d){this.options.content.text===this.target.attr(d)&&this._updateContent(this.target.attr(c))},"^content.title$":function(a,b,c){return c?(c&&!this.elements.title&&this._createTitle(),void this._updateTitle(c)):this._removeTitle()},"^content.button$":function(a,b,c){this._updateButton(c)},"^content.title.(text|button)$":function(a,b,c){this.set("content."+b,c)},"^position.(my|at)$":function(a,b,c){"string"==typeof c&&(this.position[b]=a[b]=new A(c,"at"===b))},"^position.container$":function(a,b,c){this.rendered&&this.tooltip.appendTo(c)},"^show.ready$":function(a,b,c){c&&(!this.rendered&&this.render(D)||this.toggle(D))},"^style.classes$":function(a,b,c,d){this.rendered&&this.tooltip.removeClass(d).addClass(c)},"^style.(width|height)":function(a,b,c){this.rendered&&this.tooltip.css(b,c)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(a,b,c){this.rendered&&this.tooltip.toggleClass(Z,!!c)},"^events.(render|show|move|hide|focus|blur)$":function(a,b,c){this.rendered&&this.tooltip[(d.isFunction(c)?"":"un")+"bind"]("tooltip"+b,c)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var a=this.options.position;this.tooltip.attr("tracking","mouse"===a.target&&a.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},z.get=function(a){if(this.destroyed)return this;var b=i(this.options,a.toLowerCase()),c=b[0][b[1]];return c.precedance?c.string():c};var ea=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,fa=/^prerender|show\.ready/i;z.set=function(a,b){if(this.destroyed)return this;var c,e=this.rendered,f=E,g=this.options;return"string"==typeof a?(c=a,a={},a[c]=b):a=d.extend({},a),d.each(a,function(b,c){if(e&&fa.test(b))return void delete a[b];var h,j=i(g,b.toLowerCase());h=j[0][j[1]],j[0][j[1]]=c&&c.nodeType?d(c):c,f=ea.test(b)||f,a[b]=[j[0],j[1],c,h]}),h(g),this.positioning=D,d.each(a,d.proxy(j,this)),this.positioning=E,this.rendered&&this.tooltip[0].offsetWidth>0&&f&&this.reposition("mouse"===g.position.target?F:this.cache.event),this},z._update=function(a,b){var c=this,e=this.cache;return this.rendered&&a?(d.isFunction(a)&&(a=a.call(this.elements.target,e.event,this)||""),d.isFunction(a.then)?(e.waiting=D,a.then(function(a){return e.waiting=E,c._update(a,b)},F,function(a){return c._update(a,b)})):a===E||!a&&""!==a?E:(a.jquery&&a.length>0?b.empty().append(a.css({display:"block",visibility:"visible"})):b.html(a),this._waitForContent(b).then(function(a){c.rendered&&c.tooltip[0].offsetWidth>0&&c.reposition(e.event,!a.length)}))):E},z._waitForContent=function(a){var b=this.cache;return b.waiting=D,(d.fn.imagesLoaded?a.imagesLoaded():(new d.Deferred).resolve([])).done(function(){b.waiting=E}).promise()},z._updateContent=function(a,b){this._update(a,this.elements.content,b)},z._updateTitle=function(a,b){this._update(a,this.elements.title,b)===E&&this._removeTitle(E)},z._createTitle=function(){var a=this.elements,b=this._id+"-title";a.titlebar&&this._removeTitle(),a.titlebar=d("
",{"class":S+"-titlebar "+(this.options.style.widget?k("header"):"")}).append(a.title=d("
",{id:b,"class":S+"-title","aria-atomic":D})).insertBefore(a.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(a){d(this).toggleClass("ui-state-active ui-state-focus","down"===a.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(a){d(this).toggleClass("ui-state-hover","mouseover"===a.type)}),this.options.content.button&&this._createButton()},z._removeTitle=function(a){var b=this.elements;b.title&&(b.titlebar.remove(),b.titlebar=b.title=b.button=F,a!==E&&this.reposition())},z._createPosClass=function(a){return S+"-pos-"+(a||this.options.position.my).abbrev()},z.reposition=function(c,e){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=D;var f,g,h,i,j=this.cache,k=this.tooltip,l=this.options.position,m=l.target,n=l.my,o=l.at,p=l.viewport,q=l.container,r=l.adjust,s=r.method.split(" "),t=k.outerWidth(E),u=k.outerHeight(E),v=0,w=0,x=k.css("position"),y={left:0,top:0},z=k[0].offsetWidth>0,A=c&&"scroll"===c.type,B=d(a),C=q[0].ownerDocument,F=this.mouse;if(d.isArray(m)&&2===m.length)o={x:L,y:K},y={left:m[0],top:m[1]};else if("mouse"===m)o={x:L,y:K},(!r.mouse||this.options.hide.distance)&&j.origin&&j.origin.pageX?c=j.origin:!c||c&&("resize"===c.type||"scroll"===c.type)?c=j.event:F&&F.pageX&&(c=F),"static"!==x&&(y=q.offset()),C.body.offsetWidth!==(a.innerWidth||C.documentElement.clientWidth)&&(g=d(b.body).offset()),y={left:c.pageX-y.left+(g&&g.left||0),top:c.pageY-y.top+(g&&g.top||0)},r.mouse&&A&&F&&(y.left-=(F.scrollX||0)-B.scrollLeft(),y.top-=(F.scrollY||0)-B.scrollTop());else{if("event"===m?c&&c.target&&"scroll"!==c.type&&"resize"!==c.type?j.target=d(c.target):c.target||(j.target=this.elements.target):"event"!==m&&(j.target=d(m.jquery?m:this.elements.target)),m=j.target,m=d(m).eq(0),0===m.length)return this;m[0]===b||m[0]===a?(v=da.iOS?a.innerWidth:m.width(),w=da.iOS?a.innerHeight:m.height(),m[0]===a&&(y={top:(p||m).scrollTop(),left:(p||m).scrollLeft()})):R.imagemap&&m.is("area")?f=R.imagemap(this,m,o,R.viewport?s:E):R.svg&&m&&m[0].ownerSVGElement?f=R.svg(this,m,o,R.viewport?s:E):(v=m.outerWidth(E),w=m.outerHeight(E),y=m.offset()),f&&(v=f.width,w=f.height,g=f.offset,y=f.position),y=this.reposition.offset(m,y,q),(da.iOS>3.1&&da.iOS<4.1||da.iOS>=4.3&&da.iOS<4.33||!da.iOS&&"fixed"===x)&&(y.left-=B.scrollLeft(),y.top-=B.scrollTop()),(!f||f&&f.adjustable!==E)&&(y.left+=o.x===N?v:o.x===O?v/2:0,y.top+=o.y===M?w:o.y===O?w/2:0)}return y.left+=r.x+(n.x===N?-t:n.x===O?-t/2:0),y.top+=r.y+(n.y===M?-u:n.y===O?-u/2:0),R.viewport?(h=y.adjusted=R.viewport(this,y,l,v,w,t,u),g&&h.left&&(y.left+=g.left),g&&h.top&&(y.top+=g.top),h.my&&(this.position.my=h.my)):y.adjusted={left:0,top:0},j.posClass!==(i=this._createPosClass(this.position.my))&&(j.posClass=i,k.removeClass(j.posClass).addClass(i)),this._trigger("move",[y,p.elem||p],c)?(delete y.adjusted,e===E||!z||isNaN(y.left)||isNaN(y.top)||"mouse"===m||!d.isFunction(l.effect)?k.css(y):d.isFunction(l.effect)&&(l.effect.call(k,this,d.extend({},y)),k.queue(function(a){d(this).css({opacity:"",height:""}),da.ie&&this.style.removeAttribute("filter"),a()})),this.positioning=E,this):this},z.reposition.offset=function(a,c,e){function f(a,b){c.left+=b*a.scrollLeft(),c.top+=b*a.scrollTop()}if(!e[0])return c;var g,h,i,j,k=d(a[0].ownerDocument),l=!!da.ie&&"CSS1Compat"!==b.compatMode,m=e[0];do"static"!==(h=d.css(m,"position"))&&("fixed"===h?(i=m.getBoundingClientRect(),f(k,-1)):(i=d(m).position(),i.left+=parseFloat(d.css(m,"borderLeftWidth"))||0,i.top+=parseFloat(d.css(m,"borderTopWidth"))||0),c.left-=i.left+(parseFloat(d.css(m,"marginLeft"))||0),c.top-=i.top+(parseFloat(d.css(m,"marginTop"))||0),g||"hidden"===(j=d.css(m,"overflow"))||"visible"===j||(g=d(m)));while(m=m.offsetParent);return g&&(g[0]!==k[0]||l)&&f(g,1),c};var ga=(A=z.reposition.Corner=function(a,b){a=(""+a).replace(/([A-Z])/," $1").replace(/middle/gi,O).toLowerCase(),this.x=(a.match(/left|right/i)||a.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(a.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!b;var c=a.charAt(0);this.precedance="t"===c||"b"===c?H:G}).prototype;ga.invert=function(a,b){this[a]=this[a]===L?N:this[a]===N?L:b||this[a]},ga.string=function(a){var b=this.x,c=this.y,d=b!==c?"center"===b||"center"!==c&&(this.precedance===H||this.forceY)?[c,b]:[b,c]:[b];return a!==!1?d.join(" "):d},ga.abbrev=function(){var a=this.string(!1);return a[0].charAt(0)+(a[1]&&a[1].charAt(0)||"")},ga.clone=function(){return new A(this.string(),this.forceY)},z.toggle=function(a,c){var e=this.cache,f=this.options,g=this.tooltip;if(c){if(/over|enter/.test(c.type)&&e.event&&/out|leave/.test(e.event.type)&&f.show.target.add(c.target).length===f.show.target.length&&g.has(c.relatedTarget).length)return this;e.event=d.event.fix(c)}if(this.waiting&&!a&&(this.hiddenDuringWait=D),!this.rendered)return a?this.render(1):this;if(this.destroyed||this.disabled)return this;var h,i,j,k=a?"show":"hide",l=this.options[k],m=this.options.position,n=this.options.content,o=this.tooltip.css("width"),p=this.tooltip.is(":visible"),q=a||1===l.target.length,r=!c||l.target.length<2||e.target[0]===c.target;return(typeof a).search("boolean|number")&&(a=!p),h=!g.is(":animated")&&p===a&&r,i=h?F:!!this._trigger(k,[90]),this.destroyed?this:(i!==E&&a&&this.focus(c),!i||h?this:(d.attr(g[0],"aria-hidden",!a),a?(this.mouse&&(e.origin=d.event.fix(this.mouse)),d.isFunction(n.text)&&this._updateContent(n.text,E),d.isFunction(n.title)&&this._updateTitle(n.title,E),!C&&"mouse"===m.target&&m.adjust.mouse&&(d(b).bind("mousemove."+S,this._storeMouse),C=D),o||g.css("width",g.outerWidth(E)),this.reposition(c,arguments[2]),o||g.css("width",""),l.solo&&("string"==typeof l.solo?d(l.solo):d(W,l.solo)).not(g).not(l.target).qtip("hide",new d.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete e.origin,C&&!d(W+'[tracking="true"]:visible',l.solo).not(g).length&&(d(b).unbind("mousemove."+S),C=E),this.blur(c)),j=d.proxy(function(){a?(da.ie&&g[0].style.removeAttribute("filter"),g.css("overflow",""),"string"==typeof l.autofocus&&d(this.options.show.autofocus,g).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):g.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(a?"visible":"hidden")},this),l.effect===E||q===E?(g[k](),j()):d.isFunction(l.effect)?(g.stop(1,1),l.effect.call(g,this),g.queue("fx",function(a){j(),a()})):g.fadeTo(90,a?1:0,j),a&&l.target.trigger("qtip-"+this.id+"-inactive"),this))},z.show=function(a){return this.toggle(D,a)},z.hide=function(a){return this.toggle(E,a)},z.focus=function(a){if(!this.rendered||this.destroyed)return this;var b=d(W),c=this.tooltip,e=parseInt(c[0].style.zIndex,10),f=y.zindex+b.length;return c.hasClass($)||this._trigger("focus",[f],a)&&(e!==f&&(b.each(function(){this.style.zIndex>e&&(this.style.zIndex=this.style.zIndex-1)}),b.filter("."+$).qtip("blur",a)),c.addClass($)[0].style.zIndex=f),this},z.blur=function(a){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass($),this._trigger("blur",[this.tooltip.css("zIndex")],a),this)},z.disable=function(a){return this.destroyed?this:("toggle"===a?a=!(this.rendered?this.tooltip.hasClass(aa):this.disabled):"boolean"!=typeof a&&(a=D),this.rendered&&this.tooltip.toggleClass(aa,a).attr("aria-disabled",a),this.disabled=!!a,this)},z.enable=function(){return this.disable(E)},z._createButton=function(){var a=this,b=this.elements,c=b.tooltip,e=this.options.content.button,f="string"==typeof e,g=f?e:"Close tooltip";b.button&&b.button.remove(),e.jquery?b.button=e:b.button=d("",{"class":"qtip-close "+(this.options.style.widget?"":S+"-icon"),title:g,"aria-label":g}).prepend(d("",{"class":"ui-icon ui-icon-close",html:"×"})),b.button.appendTo(b.titlebar||c).attr("role","button").click(function(b){return c.hasClass(aa)||a.hide(b),E})},z._updateButton=function(a){if(!this.rendered)return E;var b=this.elements.button;a?this._createButton():b.remove()},z._setWidget=function(){var a=this.options.style.widget,b=this.elements,c=b.tooltip,d=c.hasClass(aa);c.removeClass(aa),aa=a?"ui-state-disabled":"qtip-disabled",c.toggleClass(aa,d),c.toggleClass("ui-helper-reset "+k(),a).toggleClass(Z,this.options.style.def&&!a),b.content&&b.content.toggleClass(k("content"),a),b.titlebar&&b.titlebar.toggleClass(k("header"),a),b.button&&b.button.toggleClass(S+"-icon",!a)},z._storeMouse=function(a){return(this.mouse=d.event.fix(a)).type="mousemove",this},z._bind=function(a,b,c,e,f){if(a&&c&&b.length){var g="."+this._id+(e?"-"+e:"");return d(a).bind((b.split?b:b.join(g+" "))+g,d.proxy(c,f||this)),this}},z._unbind=function(a,b){return a&&d(a).unbind("."+this._id+(b?"-"+b:"")),this},z._trigger=function(a,b,c){var e=new d.Event("tooltip"+a);return e.originalEvent=c&&d.extend({},c)||this.cache.event||F,this.triggering=a,this.tooltip.trigger(e,[this].concat(b||[])),this.triggering=E,!e.isDefaultPrevented()},z._bindEvents=function(a,b,c,e,f,g){var h=c.filter(e).add(e.filter(c)),i=[];h.length&&(d.each(b,function(b,c){var e=d.inArray(c,a);e>-1&&i.push(a.splice(e,1)[0])}),i.length&&(this._bind(h,i,function(a){var b=this.rendered?this.tooltip[0].offsetWidth>0:!1;(b?g:f).call(this,a)}),c=c.not(h),e=e.not(h))),this._bind(c,a,f),this._bind(e,b,g)},z._assignInitialEvents=function(a){function b(a){return this.disabled||this.destroyed?E:(this.cache.event=a&&d.event.fix(a),this.cache.target=a&&d(a.target),clearTimeout(this.timers.show),void(this.timers.show=l.call(this,function(){this.render("object"==typeof a||c.show.ready)},c.prerender?0:c.show.delay)))}var c=this.options,e=c.show.target,f=c.hide.target,g=c.show.event?d.trim(""+c.show.event).split(" "):[],h=c.hide.event?d.trim(""+c.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(c.show.event)&&!/mouse(out|leave)/i.test(c.hide.event)&&h.push("mouseleave"),this._bind(e,"mousemove",function(a){this._storeMouse(a),this.cache.onTarget=D}),this._bindEvents(g,h,e,f,b,function(){return this.timers?void clearTimeout(this.timers.show):E}),(c.show.ready||c.prerender)&&b.call(this,a)},z._assignEvents=function(){var c=this,e=this.options,f=e.position,g=this.tooltip,h=e.show.target,i=e.hide.target,j=f.container,k=f.viewport,l=d(b),q=d(a),r=e.show.event?d.trim(""+e.show.event).split(" "):[],s=e.hide.event?d.trim(""+e.hide.event).split(" "):[];d.each(e.events,function(a,b){c._bind(g,"toggle"===a?["tooltipshow","tooltiphide"]:["tooltip"+a],b,null,g)}),/mouse(out|leave)/i.test(e.hide.event)&&"window"===e.hide.leave&&this._bind(l,["mouseout","blur"],function(a){/select|option/.test(a.target.nodeName)||a.relatedTarget||this.hide(a)}),e.hide.fixed?i=i.add(g.addClass(Y)):/mouse(over|enter)/i.test(e.show.event)&&this._bind(i,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+e.hide.event).indexOf("unfocus")>-1&&this._bind(j.closest("html"),["mousedown","touchstart"],function(a){var b=d(a.target),c=this.rendered&&!this.tooltip.hasClass(aa)&&this.tooltip[0].offsetWidth>0,e=b.parents(W).filter(this.tooltip[0]).length>0;b[0]===this.target[0]||b[0]===this.tooltip[0]||e||this.target.has(b[0]).length||!c||this.hide(a)}),"number"==typeof e.hide.inactive&&(this._bind(h,"qtip-"+this.id+"-inactive",o,"inactive"),this._bind(i.add(g),y.inactiveEvents,o)),this._bindEvents(r,s,h,i,m,n),this._bind(h.add(g),"mousemove",function(a){if("number"==typeof e.hide.distance){var b=this.cache.origin||{},c=this.options.hide.distance,d=Math.abs;(d(a.pageX-b.pageX)>=c||d(a.pageY-b.pageY)>=c)&&this.hide(a)}this._storeMouse(a)}),"mouse"===f.target&&f.adjust.mouse&&(e.hide.event&&this._bind(h,["mouseenter","mouseleave"],function(a){return this.cache?void(this.cache.onTarget="mouseenter"===a.type):E}),this._bind(l,"mousemove",function(a){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(aa)&&this.tooltip[0].offsetWidth>0&&this.reposition(a)})),(f.adjust.resize||k.length)&&this._bind(d.event.special.resize?k:q,"resize",p),f.adjust.scroll&&this._bind(q.add(f.container),"scroll",p)},z._unassignEvents=function(){var c=this.options,e=c.show.target,f=c.hide.target,g=d.grep([this.elements.target[0],this.rendered&&this.tooltip[0],c.position.container[0],c.position.viewport[0],c.position.container.closest("html")[0],a,b],function(a){return"object"==typeof a});e&&e.toArray&&(g=g.concat(e.toArray())),f&&f.toArray&&(g=g.concat(f.toArray())),this._unbind(g)._unbind(g,"destroy")._unbind(g,"inactive")},d(function(){q(W,["mouseenter","mouseleave"],function(a){var b="mouseenter"===a.type,c=d(a.currentTarget),e=d(a.relatedTarget||a.target),f=this.options;b?(this.focus(a),c.hasClass(Y)&&!c.hasClass(aa)&&clearTimeout(this.timers.hide)):"mouse"===f.position.target&&f.position.adjust.mouse&&f.hide.event&&f.show.target&&!e.closest(f.show.target[0]).length&&this.hide(a),c.toggleClass(_,b)}),q("["+U+"]",X,o)}),y=d.fn.qtip=function(a,b,e){var f=(""+a).toLowerCase(),g=F,i=d.makeArray(arguments).slice(1),j=i[i.length-1],k=this[0]?d.data(this[0],S):F;return!arguments.length&&k||"api"===f?k:"string"==typeof a?(this.each(function(){var a=d.data(this,S);if(!a)return D;if(j&&j.timeStamp&&(a.cache.event=j),!b||"option"!==f&&"options"!==f)a[f]&&a[f].apply(a,i);else{if(e===c&&!d.isPlainObject(b))return g=a.get(b),E;a.set(b,e)}}),g!==F?g:this):"object"!=typeof a&&arguments.length?void 0:(k=h(d.extend(D,{},a)),this.each(function(a){var b,c;return c=d.isArray(k.id)?k.id[a]:k.id,c=!c||c===E||c.length<1||y.api[c]?y.nextid++:c,b=r(d(this),c,k),b===E?D:(y.api[c]=b,d.each(R,function(){"initialize"===this.initialize&&this(b)}),void b._assignInitialEvents(j))}))},d.qtip=e,y.api={},d.each({attr:function(a,b){if(this.length){var c=this[0],e="title",f=d.data(c,"qtip");if(a===e&&f&&f.options&&"object"==typeof f&&"object"==typeof f.options&&f.options.suppress)return arguments.length<2?d.attr(c,ca):(f&&f.options.content.attr===e&&f.cache.attr&&f.set("content.text",b),this.attr(ca,b))}return d.fn["attr"+ba].apply(this,arguments)},clone:function(a){var b=d.fn["clone"+ba].apply(this,arguments);return a||b.filter("["+ca+"]").attr("title",function(){return d.attr(this,ca)}).removeAttr(ca),b}},function(a,b){if(!b||d.fn[a+ba])return D;var c=d.fn[a+ba]=d.fn[a];d.fn[a]=function(){return b.apply(this,arguments)||c.apply(this,arguments)}}),d.ui||(d["cleanData"+ba]=d.cleanData,d.cleanData=function(a){for(var b,c=0;(b=d(a[c])).length;c++)if(b.attr(T))try{b.triggerHandler("removeqtip")}catch(e){}d["cleanData"+ba].apply(this,arguments)}),y.version="3.0.3",y.nextid=0,y.inactiveEvents=X,y.zindex=15e3,y.defaults={prerender:E,id:E,overwrite:D,suppress:D,content:{text:D,attr:"title",title:E,button:E},position:{my:"top left",at:"bottom right",target:E,container:E,viewport:E,adjust:{x:0,y:0,mouse:D,scroll:D,resize:D,method:"flipinvert flipinvert"},effect:function(a,b){d(this).animate(b,{duration:200,queue:E})}},show:{target:E,event:"mouseenter",effect:D,delay:90,solo:E,ready:E,autofocus:E},hide:{target:E,event:"mouseleave",effect:D,delay:0,fixed:E,inactive:E,leave:"window",distance:E},style:{classes:"",widget:E,width:E,height:E,def:D},events:{render:F,move:F,show:F,hide:F,toggle:F,visible:F,hidden:F,focus:F,blur:F}};var ha,ia,ja,ka,la,ma="margin",na="border",oa="color",pa="background-color",qa="transparent",ra=" !important",sa=!!b.createElement("canvas").getContext,ta=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,ua={},va=["Webkit","O","Moz","ms"];sa?(ka=a.devicePixelRatio||1,la=function(){var a=b.createElement("canvas").getContext("2d");return a.backingStorePixelRatio||a.webkitBackingStorePixelRatio||a.mozBackingStorePixelRatio||a.msBackingStorePixelRatio||a.oBackingStorePixelRatio||1}(),ja=ka/la):ia=function(a,b,c){return"'},d.extend(v.prototype,{init:function(a){var b,c;c=this.element=a.elements.tip=d("
",{"class":S+"-tip"}).prependTo(a.tooltip),sa?(b=d("").appendTo(this.element)[0].getContext("2d"),b.lineJoin="miter",b.miterLimit=1e5,b.save()):(b=ia("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(b+b),a._bind(d("*",c).add(c),["click","mousedown"],function(a){a.stopPropagation()},this._ns)),a._bind(a.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(a){var b=this.qtip.elements.titlebar;return b&&(a.y===K||a.y===O&&this.element.position().top+this.size[1]/2+this.options.offsetl&&!ta.test(e[1])&&(e[0]=e[1]),this.border=l=p.border!==D?p.border:l):this.border=l=0,k=this.size=this._calculateSize(b),n.css({width:k[0],height:k[1],lineHeight:k[1]+"px"}),j=b.precedance===H?[s(r.x===L?l:r.x===N?k[0]-q[0]-l:(k[0]-q[0])/2),s(r.y===K?k[1]-q[1]:0)]:[s(r.x===L?k[0]-q[0]:0),s(r.y===K?l:r.y===M?k[1]-q[1]-l:(k[1]-q[1])/2)],sa?(g=o[0].getContext("2d"),g.restore(),g.save(),g.clearRect(0,0,6e3,6e3),h=this._calculateTip(r,q,ja),i=this._calculateTip(r,this.size,ja),o.attr(I,k[0]*ja).attr(J,k[1]*ja),o.css(I,k[0]).css(J,k[1]),this._drawCoords(g,i),g.fillStyle=e[1],g.fill(),g.translate(j[0]*ja,j[1]*ja),this._drawCoords(g,h),g.fillStyle=e[0],g.fill()):(h=this._calculateTip(r),h="m"+h[0]+","+h[1]+" l"+h[2]+","+h[3]+" "+h[4]+","+h[5]+" xe",j[2]=l&&/^(r|b)/i.test(b.string())?8===da.ie?2:1:0,o.css({coordsize:k[0]+l+" "+k[1]+l,antialias:""+(r.string().indexOf(O)>-1),left:j[0]-j[2]*Number(f===G),top:j[1]-j[2]*Number(f===H),width:k[0]+l,height:k[1]+l}).each(function(a){var b=d(this);b[b.prop?"prop":"attr"]({coordsize:k[0]+l+" "+k[1]+l,path:h,fillcolor:e[0],filled:!!a,stroked:!a}).toggle(!(!l&&!a)),!a&&b.html(ia("stroke",'weight="'+2*l+'px" color="'+e[1]+'" miterlimit="1000" joinstyle="miter"'))})),a.opera&&setTimeout(function(){m.tip.css({display:"inline-block",visibility:"visible"})},1),c!==E&&this.calculate(b,k)},calculate:function(a,b){if(!this.enabled)return E;var c,e,f=this,g=this.qtip.elements,h=this.element,i=this.options.offset,j={}; return a=a||this.corner,c=a.precedance,b=b||this._calculateSize(a),e=[a.x,a.y],c===G&&e.reverse(),d.each(e,function(d,e){var h,k,l;e===O?(h=c===H?L:K,j[h]="50%",j[ma+"-"+h]=-Math.round(b[c===H?0:1]/2)+i):(h=f._parseWidth(a,e,g.tooltip),k=f._parseWidth(a,e,g.content),l=f._parseRadius(a),j[e]=Math.max(-f.border,d?k:i+(l>h?l:-h)))}),j[a[c]]-=b[c===G?0:1],h.css({margin:"",top:"",bottom:"",left:"",right:""}).css(j),j},reposition:function(a,b,d){function e(a,b,c,d,e){a===Q&&j.precedance===b&&k[d]&&j[c]!==O?j.precedance=j.precedance===G?H:G:a!==Q&&k[d]&&(j[b]=j[b]===O?k[d]>0?d:e:j[b]===d?e:d)}function f(a,b,e){j[a]===O?p[ma+"-"+b]=o[a]=g[ma+"-"+b]-k[b]:(h=g[e]!==c?[k[b],-g[b]]:[-k[b],g[b]],(o[a]=Math.max(h[0],h[1]))>h[0]&&(d[b]-=k[b],o[b]=E),p[g[e]!==c?e:b]=o[a])}if(this.enabled){var g,h,i=b.cache,j=this.corner.clone(),k=d.adjusted,l=b.options.position.adjust.method.split(" "),m=l[0],n=l[1]||l[0],o={left:E,top:E,x:0,y:0},p={};this.corner.fixed!==D&&(e(m,G,H,L,N),e(n,H,G,K,M),j.string()===i.corner.string()&&i.cornerTop===k.top&&i.cornerLeft===k.left||this.update(j,E)),g=this.calculate(j),g.right!==c&&(g.left=-g.right),g.bottom!==c&&(g.top=-g.bottom),g.user=this.offset,o.left=m===Q&&!!k.left,o.left&&f(G,L,N),o.top=n===Q&&!!k.top,o.top&&f(H,K,M),this.element.css(p).toggle(!(o.x&&o.y||j.x===O&&o.y||j.y===O&&o.x)),d.left-=g.left.charAt?g.user:m!==Q||o.top||!o.left&&!o.top?g.left+this.border:0,d.top-=g.top.charAt?g.user:n!==Q||o.left||!o.left&&!o.top?g.top+this.border:0,i.cornerLeft=k.left,i.cornerTop=k.top,i.corner=j.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),ha=R.tip=function(a){return new v(a,a.options.style.tip)},ha.initialize="render",ha.sanitize=function(a){if(a.style&&"tip"in a.style){var b=a.style.tip;"object"!=typeof b&&(b=a.style.tip={corner:b}),/string|boolean/i.test(typeof b.corner)||(b.corner=D)}},B.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(a){this.size=[a.width,a.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},d.extend(D,y.defaults,{style:{tip:{corner:D,mimic:E,width:6,height:6,border:D,offset:0}}});var wa,xa,ya="qtip-modal",za="."+ya;xa=function(){function a(a){if(d.expr[":"].focusable)return d.expr[":"].focusable;var b,c,e,f=!isNaN(d.attr(a,"tabindex")),g=a.nodeName&&a.nodeName.toLowerCase();return"area"===g?(b=a.parentNode,c=b.name,a.href&&c&&"map"===b.nodeName.toLowerCase()?(e=d("img[usemap=#"+c+"]")[0],!!e&&e.is(":visible")):!1):/input|select|textarea|button|object/.test(g)?!a.disabled:"a"===g?a.href||f:f}function c(a){j.length<1&&a.length?a.not("body").blur():j.first().focus()}function e(a){if(h.is(":visible")){var b,e=d(a.target),g=f.tooltip,i=e.closest(W);b=i.length<1?E:parseInt(i[0].style.zIndex,10)>parseInt(g[0].style.zIndex,10),b||e.closest(W)[0]===g[0]||c(e)}}var f,g,h,i=this,j={};d.extend(i,{init:function(){return h=i.elem=d("
",{id:"qtip-overlay",html:"
",mousedown:function(){return E}}).hide(),d(b.body).bind("focusin"+za,e),d(b).bind("keydown"+za,function(a){f&&f.options.show.modal.escape&&27===a.keyCode&&f.hide(a)}),h.bind("click"+za,function(a){f&&f.options.show.modal.blur&&f.hide(a)}),i},update:function(b){f=b,j=b.options.show.modal.stealfocus!==E?b.tooltip.find("*").filter(function(){return a(this)}):[]},toggle:function(a,e,j){var k=a.tooltip,l=a.options.show.modal,m=l.effect,n=e?"show":"hide",o=h.is(":visible"),p=d(za).filter(":visible:not(:animated)").not(k);return i.update(a),e&&l.stealfocus!==E&&c(d(":focus")),h.toggleClass("blurs",l.blur),e&&h.appendTo(b.body),h.is(":animated")&&o===e&&g!==E||!e&&p.length?i:(h.stop(D,E),d.isFunction(m)?m.call(h,e):m===E?h[n]():h.fadeTo(parseInt(j,10)||90,e?1:0,function(){e||h.hide()}),e||h.queue(function(a){h.css({left:"",top:""}),d(za).length||h.detach(),a()}),g=e,f.destroyed&&(f=F),i)}}),i.init()},xa=new xa,d.extend(w.prototype,{init:function(a){var b=a.tooltip;return this.options.on?(a.elements.overlay=xa.elem,b.addClass(ya).css("z-index",y.modal_zindex+d(za).length),a._bind(b,["tooltipshow","tooltiphide"],function(a,c,e){var f=a.originalEvent;if(a.target===b[0])if(f&&"tooltiphide"===a.type&&/mouse(leave|enter)/.test(f.type)&&d(f.relatedTarget).closest(xa.elem[0]).length)try{a.preventDefault()}catch(g){}else(!f||f&&"tooltipsolo"!==f.type)&&this.toggle(a,"tooltipshow"===a.type,e)},this._ns,this),a._bind(b,"tooltipfocus",function(a,c){if(!a.isDefaultPrevented()&&a.target===b[0]){var e=d(za),f=y.modal_zindex+e.length,g=parseInt(b[0].style.zIndex,10);xa.elem[0].style.zIndex=f-1,e.each(function(){this.style.zIndex>g&&(this.style.zIndex-=1)}),e.filter("."+$).qtip("blur",a.originalEvent),b.addClass($)[0].style.zIndex=f,xa.update(c);try{a.preventDefault()}catch(h){}}},this._ns,this),void a._bind(b,"tooltiphide",function(a){a.target===b[0]&&d(za).filter(":visible").not(b).last().qtip("focus",a)},this._ns,this)):this},toggle:function(a,b,c){return a&&a.isDefaultPrevented()?this:void xa.toggle(this.qtip,!!b,c)},destroy:function(){this.qtip.tooltip.removeClass(ya),this.qtip._unbind(this.qtip.tooltip,this._ns),xa.toggle(this.qtip,E),delete this.qtip.elements.overlay}}),wa=R.modal=function(a){return new w(a,a.options.show.modal)},wa.sanitize=function(a){a.show&&("object"!=typeof a.show.modal?a.show.modal={on:!!a.show.modal}:"undefined"==typeof a.show.modal.on&&(a.show.modal.on=D))},y.modal_zindex=y.zindex-200,wa.initialize="render",B.modal={"^show.modal.(on|blur)$":function(){this.destroy(),this.init(),this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}},d.extend(D,y.defaults,{show:{modal:{on:E,effect:D,blur:D,stealfocus:D,escape:D}}}),R.viewport=function(c,d,e,f,g,h,i){function j(a,b,c,e,f,g,h,i,j){var k=d[f],s=u[a],t=v[a],w=c===Q,x=s===f?j:s===g?-j:-j/2,y=t===f?i:t===g?-i:-i/2,z=q[f]+r[f]-(n?0:m[f]),A=z-k,B=k+j-(h===I?o:p)-z,C=x-(u.precedance===a||s===u[b]?y:0)-(t===O?i/2:0);return w?(C=(s===f?1:-1)*x,d[f]+=A>0?A:B>0?-B:0,d[f]=Math.max(-m[f]+r[f],k-C,Math.min(Math.max(-m[f]+r[f]+(h===I?o:p),k+C),d[f],"center"===s?k-x:1e9))):(e*=c===P?2:0,A>0&&(s!==f||B>0)?(d[f]-=C+e,l.invert(a,f)):B>0&&(s!==g||A>0)&&(d[f]-=(s===O?-C:C)+e,l.invert(a,g)),d[f]B&&(d[f]=k,l=u.clone())),d[f]-k}var k,l,m,n,o,p,q,r,s=e.target,t=c.elements.tooltip,u=e.my,v=e.at,w=e.adjust,x=w.method.split(" "),y=x[0],z=x[1]||x[0],A=e.viewport,B=e.container,C={left:0,top:0};return A.jquery&&s[0]!==a&&s[0]!==b.body&&"none"!==w.method?(m=B.offset()||C,n="static"===B.css("position"),k="fixed"===t.css("position"),o=A[0]===a?A.width():A.outerWidth(E),p=A[0]===a?A.height():A.outerHeight(E),q={left:k?0:A.scrollLeft(),top:k?0:A.scrollTop()},r=A.offset()||C,"shift"===y&&"shift"===z||(l=u.clone()),C={left:"none"!==y?j(G,H,y,w.x,L,N,I,f,h):0,top:"none"!==z?j(H,G,z,w.y,K,M,J,g,i):0,my:l}):C},R.polys={polygon:function(a,b){var c,d,e,f={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:E},g=0,h=[],i=1,j=1,k=0,l=0;for(g=a.length;g--;)c=[parseInt(a[--g],10),parseInt(a[g+1],10)],c[0]>f.position.right&&(f.position.right=c[0]),c[0]f.position.bottom&&(f.position.bottom=c[1]),c[1]0&&e>0&&i>0&&j>0;)for(d=Math.floor(d/2),e=Math.floor(e/2),b.x===L?i=d:b.x===N?i=f.width-d:i+=Math.floor(d/2),b.y===K?j=e:b.y===M?j=f.height-e:j+=Math.floor(e/2),g=h.length;g--&&!(h.length<2);)k=h[g][0]-f.position.left,l=h[g][1]-f.position.top,(b.x===L&&k>=i||b.x===N&&i>=k||b.x===O&&(i>k||k>f.width-i)||b.y===K&&l>=j||b.y===M&&j>=l||b.y===O&&(j>l||l>f.height-j))&&h.splice(g,1);f.position={left:h[0][0],top:h[0][1]}}return f},rect:function(a,b,c,d){return{width:Math.abs(c-a),height:Math.abs(d-b),position:{left:Math.min(a,c),top:Math.min(b,d)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:.25,bl:.75,rc:2,lc:1,c:0},ellipse:function(a,b,c,d,e){var f=R.polys._angles[e.abbrev()],g=0===f?0:c*Math.cos(f*Math.PI),h=d*Math.sin(f*Math.PI);return{width:2*c-Math.abs(g),height:2*d-Math.abs(h),position:{left:a+g,top:b+h},adjustable:E}},circle:function(a,b,c,d){return R.polys.ellipse(a,b,c,c,d)}},R.svg=function(a,c,e){for(var f,g,h,i,j,k,l,m,n,o=c[0],p=d(o.ownerSVGElement),q=o.ownerDocument,r=(parseInt(c.css("stroke-width"),10)||0)/2;!o.getBBox;)o=o.parentNode;if(!o.getBBox||!o.parentNode)return E;switch(o.nodeName){case"ellipse":case"circle":m=R.polys.ellipse(o.cx.baseVal.value,o.cy.baseVal.value,(o.rx||o.r).baseVal.value+r,(o.ry||o.r).baseVal.value+r,e);break;case"line":case"polygon":case"polyline":for(l=o.points||[{x:o.x1.baseVal.value,y:o.y1.baseVal.value},{x:o.x2.baseVal.value,y:o.y2.baseVal.value}],m=[],k=-1,i=l.numberOfItems||l.length;++k';d.extend(x.prototype,{_scroll:function(){var b=this.qtip.elements.overlay;b&&(b[0].style.top=d(a).scrollTop()+"px")},init:function(c){var e=c.tooltip;d("select, object").length<1&&(this.bgiframe=c.elements.bgiframe=d(Ba).appendTo(e),c._bind(e,"tooltipmove",this.adjustBGIFrame,this._ns,this)),this.redrawContainer=d("
",{id:S+"-rcontainer"}).appendTo(b.body),c.elements.overlay&&c.elements.overlay.addClass("qtipmodal-ie6fix")&&(c._bind(a,["scroll","resize"],this._scroll,this._ns,this),c._bind(e,["tooltipshow"],this._scroll,this._ns,this)),this.redraw()},adjustBGIFrame:function(){var a,b,c=this.qtip.tooltip,d={height:c.outerHeight(E),width:c.outerWidth(E)},e=this.qtip.plugins.tip,f=this.qtip.elements.tip;b=parseInt(c.css("borderLeftWidth"),10)||0,b={left:-b,top:-b},e&&f&&(a="x"===e.corner.precedance?[I,L]:[J,K],b[a[1]]-=f[a[0]]()),this.bgiframe.css(b).css(d)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var a,b,c,d,e=this.qtip.tooltip,f=this.qtip.options.style,g=this.qtip.options.position.container;return this.qtip.drawing=1,f.height&&e.css(J,f.height),f.width?e.css(I,f.width):(e.css(I,"").appendTo(this.redrawContainer),b=e.width(),1>b%2&&(b+=1),c=e.css("maxWidth")||"",d=e.css("minWidth")||"",a=(c+d).indexOf("%")>-1?g.width()/100:0,c=(c.indexOf("%")>-1?a:1*parseInt(c,10))||b,d=(d.indexOf("%")>-1?a:1*parseInt(d,10))||0,b=c+d?Math.min(Math.max(b,d),c):b,e.css(I,Math.round(b)).appendTo(g)),this.drawing=0,this},destroy:function(){this.bgiframe&&this.bgiframe.remove(),this.qtip._unbind([a,this.qtip.tooltip],this._ns)}}),Aa=R.ie6=function(a){return 6===da.ie?new x(a):E},Aa.initialize="render",B.ie6={"^content|style$":function(){this.redraw()}}})}(window,document); (function(e){e.InFieldLabels=function(n,i,t){var a=this;a.$label=e(n),a.label=n,a.$field=e(i),a.field=i,a.$label.data("InFieldLabels",a),a.showing=!0,a.init=function(){var n;a.options=e.extend({},e.InFieldLabels.defaultOptions,t),a.options.className&&a.$label.addClass(a.options.className),setTimeout(function(){""!==a.$field.val()?(a.$label.hide(),a.showing=!1):(a.$label.show(),a.showing=!0)},200),a.$field.focus(function(){a.fadeOnFocus()}).blur(function(){a.checkForEmpty(!0)}).bind("keydown.infieldlabel",function(e){a.hideOnChange(e)}).bind("paste",function(){a.setOpacity(0)}).change(function(){a.checkForEmpty()}).bind("onPropertyChange",function(){a.checkForEmpty()}).bind("keyup.infieldlabel",function(){a.checkForEmpty()}),a.options.pollDuration>0&&(n=setInterval(function(){""!==a.$field.val()&&(a.$label.hide(),a.showing=!1,clearInterval(n))},a.options.pollDuration))},a.fadeOnFocus=function(){a.showing&&a.setOpacity(a.options.fadeOpacity)},a.setOpacity=function(e){a.$label.stop().animate({opacity:e},a.options.fadeDuration,function(){0===e&&a.$label.hide()}),a.showing=e>0},a.checkForEmpty=function(e){""===a.$field.val()?(a.prepForShow(),a.setOpacity(e?1:a.options.fadeOpacity)):a.setOpacity(0)},a.prepForShow=function(){a.showing||(a.$label.css({opacity:0}).show(),a.$field.bind("keydown.infieldlabel",function(e){a.hideOnChange(e)}))},a.hideOnChange=function(e){16!==e.keyCode&&9!==e.keyCode&&(a.showing&&(a.$label.hide(),a.showing=!1),a.$field.unbind("keydown.infieldlabel"))},a.init()},e.InFieldLabels.defaultOptions={fadeOpacity:.5,fadeDuration:300,pollDuration:0,enabledInputTypes:["text","search","tel","url","email","password","number","textarea"],className:!1},e.fn.inFieldLabels=function(n){var i=n&&n.enabledInputTypes||e.InFieldLabels.defaultOptions.enabledInputTypes;return this.each(function(){var t,a,o=e(this).attr("for");o&&(t=document.getElementById(o),t&&(a=e.inArray(t.type,i),(-1!==a||"TEXTAREA"===t.nodeName)&&new e.InFieldLabels(this,t,n)))})}})(jQuery); !function(h){"use strict";var e;e=function(){function d(e,t){if(this.$form=h(e),this.submitted=!1,this.nextUploadId=1,this.removedUploadUids=[],this.captchaRefreshQueue=[],this.uploadQueue=[],this.uploadElements=[],this.logicCache={},!this.$form.length)throw new Error("Form not found.");if(this.$form.data("quform"))throw new Error("Quform already attached.");this.$form.data("quform",this),this.options=h.extend({},d.defaults,t),h.isFunction(h.scrollTo)&&h.isFunction(h.fn.scrollTo)||(this.options.scrolling=!1),this.$wrapper=this.$form.closest(".quform"),this.$elements=h(".quform-elements",this.$form),this.$loading=h(".quform-loading",this.$form),this.currentPageId=this.options.currentPageId,this.submitStartTime=0,this.submitEndTime=0,this.successTimeout=null,this.errorShowFunction=this.$wrapper.hasClass("quform-errors-absolute")?"fadeIn":"quformShowSlide",this.init()}return d.defaults={errorsIcon:"",scrolling:!0,scrollSpeed:800,scrollDelay:0,scrollOffset:-50,hasPages:!1,pages:[],logic:{logic:[],dependents:[],elementIds:[],dependentElementIds:[],animate:!0}},d.prototype.init=function(){var s=this;this.setupInsideLabels(),this.setupEnhancedSelects(),this.setupEnhancedUploaders(),this.setupDatepickers(),this.setupTimepickers(),this.applyAllLogic(!0),this.setupTooltips(),this.setupCaptchaImages(),this.$wrapper.hasClass("quform-prevent-fouc")&&this.$wrapper.removeClass("quform-prevent-fouc"),this.options.ajax&&(s.$form.on("submit",function(e){if(e.preventDefault(),window.grecaptcha){var t=s.$form.find(".quform-recaptcha");if(t.length)if("invisible"==t.data("config").size)return void window.grecaptcha.execute(t.data("recaptcha-id"))}s.submit()}),h(".quform-back",s.$form).on("click",function(e){e.preventDefault(),s.submit("back")})),h(".quform-field-select.quform-submit-on-choice",s.$form).change(function(){s.$form.submit()}),h(".quform-field-radio.quform-submit-on-choice",s.$form).click(function(){s.$form.submit()}),h(".quform-button-submit > button",s.$form).each(function(){var e,t,o=h(this),i=o.closest(".quform-button-submit"),r=i.data("animation"),n=1e3,a=s.options.scrollDelay;r&&(e="quform-button-animation-"+r,"two"==r&&(n=3200),o.click(function(){s.options.scrollDelay=n,i.removeClass(e),"number"==typeof t&&(clearTimeout(t),t=null),setTimeout(function(){i.addClass(e),t=setTimeout(function(){i.removeClass(e),s.options.scrollDelay=a},n)},4)}))})},d.prototype.setupInsideLabels=function(){h.InFieldLabels?h(".quform-labels-inside > .quform-spacer > .quform-label",this.$form).each(function(){var e=h(this),t=e.parent().find(".quform-input"),o=t.find(".quform-field");e.addClass("quform-label-inside").css({top:parseInt(o.css("padding-top"),10)+parseInt(o.css("border-top-width"),10),left:parseInt(o.css("padding-left"),10)+parseInt(o.css("border-left-width"),10)}).prependTo(t),new h.InFieldLabels(e[0],o[0])}):h(".quform-labels-inside > .quform-spacer > .quform-label",this.$form).show()},d.prototype.setupEnhancedSelects=function(){if("function"==typeof h.fn.select2){var r=this;h(".quform-field-select-enhanced",r.$form).each(function(){var e=h(this),t=e.data("options"),o={theme:"quform",language:{noResults:function(){return t.noResultsFound}}};t.search||(o.minimumResultsForSearch=Infinity),t.rtl&&(o.dir="rtl"),e.select2(o);var i="quform-"+r.options.id+"-select2";d.isNonEmptyString(r.options.theme)&&(i+=" quform-theme-"+r.options.theme),e.on("select2:opening",function(){e.data("select2").$dropdown.addClass(i)})}),h(".quform-field-multiselect-enhanced",r.$form).each(function(){var e=h(this),t=e.data("options"),o={theme:"quform",language:{noResults:function(){return t.noResultsFound}}};d.isNonEmptyString(t.placeholder)&&(o.placeholder=t.placeholder),t.rtl&&(o.dir="rtl"),e.select2(o);var i="quform-"+r.options.id+"-select2";d.isNonEmptyString(r.options.theme)&&(i+=" quform-theme-"+r.options.theme),e.on("select2:opening",function(){e.data("select2").$dropdown.addClass(i)})})}},d.prototype.setupEnhancedUploaders=function(){if(h.isFunction(h.fn.fileupload)&&h.support.xhrFileUpload&&h.support.xhrFormDataFileUpload){var a=this;h(".quform-field-file-enhanced",a.$form).each(function(){var e,t=h(this),o=t.closest(".quform-input-file"),i=t.data("config"),r=h('
').insertAfter(o).hide();i.queued=0,a.uploadElements.push(i),e="dropzone"==i.buttonType?a.createUploadButton("quform-upload-dropzone",i):a.createUploadButton("quform-upload-button",i),o.append(e.append(t));var n=t.closest(".quform-element").addClass("quform-enhanced-upload");t.fileupload({dataType:"json",paramName:i.name+"[]",dropZone:e,change:function(){n.find(".quform-error").empty().remove()},add:function(e,t){a.uploadAdd(t,i,r)},start:function(){h(".quform-upload-progress-wrap",a.$form).show()},progress:function(e,t){var o=Math.min(100,t.loaded/t.total*100);h(".quform-upload-progress-bar",a.$form).css("width",o+"%"),h(".quform-upload-filename",a.$form).text(t.files[0].name)}})})}},d.prototype.createUploadButton=function(e,t){var o=h('
');if(o.append(h('').text(t.buttonText)),d.isNonEmptyString(t.buttonIcon)){var i=h('').append(h(''));o.addClass(e+"-icon-"+t.buttonIconPosition),"right"==t.buttonIconPosition?o.append(i):o.prepend(i)}return o},d.prototype.setupDatepickers=function(){if(h.isFunction(h.fn.kendoDatePicker)){var m=this;h(".quform-field-date",m.$form).each(function(){var o=h(this).addClass("quform-field-date-enhanced"),e=o.closest(".quform-input-date"),t=e.find("> .quform-field-icon"),i=o.data("options"),r=h("",{type:"hidden",name:o.attr("name"),value:o.val()}).data("default",o.val()).addClass("quform-field-date-hidden").insertAfter(o);o.attr("name",""),i.placeholder?o.attr("placeholder",i.placeholder):o.removeAttr("placeholder");var n={start:i.start||"month",depth:i.depth||"month",culture:i.locale||"en-US"};if(i.format?n.format=i.format:n.format=kendo.getCulture(i.locale).calendars.standard.patterns.d,i.showFooter||(n.footer=!1),i.min){var a=kendo.parseDate(i.min,"yyyy-MM-dd");null!==a&&(n.min=a)}if(i.max){var s=kendo.parseDate(i.max,"yyyy-MM-dd");null!==s&&(n.max=s)}o.kendoDatePicker(n),o.removeClass("k-input").closest(".k-datepicker").removeClass().addClass("k-widget k-datepicker k-header");var u=o.data("kendoDatePicker"),c="quform-datepicker quform-"+m.options.id+"-datepicker";d.isNonEmptyString(m.options.theme)&&(c+=" quform-theme-"+m.options.theme),u.dateView.popup.element.addClass(c),e.find(".k-select").hide(),i.autoOpen&&o.on("click focus",function(){u.open()}).blur(function(){u.close()}),t.click(function(){u.open()});var l=function(){var e=o.val();if(d.isNonEmptyString(e)){var t=kendo.parseDate(e,n.format,n.culture);null===t?r.val("9999-99-99"):r.val(kendo.toString(t,"yyyy-MM-dd"))}else r.val("")};u.bind("change",l),o.on("blur.quformDatePicker keyup.quformDatePicker",l);var f=o.val();if(d.isNonEmptyString(f)){var p=kendo.parseDate(f,"yyyy-MM-dd");null!==p&&(u.value(p),l())}})}},d.prototype.setupTimepickers=function(){if(h.isFunction(h.fn.kendoTimePicker)){var m=this;h(".quform-field-time",m.$form).each(function(){var o=h(this).addClass("quform-field-time-enhanced"),e=o.closest(".quform-input-time"),t=e.find("> .quform-field-icon"),i=o.data("options"),r=h("",{type:"hidden",name:o.attr("name"),value:o.val()}).data("default",o.val()).addClass("quform-field-time-hidden").insertAfter(o);o.attr("name",""),i.placeholder?o.attr("placeholder",i.placeholder):o.removeAttr("placeholder");var n={interval:i.interval&&h.isNumeric(i.interval)?parseInt(i.interval,10):30,culture:i.locale||"en-US"};if(i.format?n.format=i.format:n.format=kendo.getCulture(i.locale).calendars.standard.patterns.t,i.min){var a=kendo.parseDate(i.min,"HH:mm");null!==a&&(n.min=a)}if(i.max){var s=kendo.parseDate(i.max,"HH:mm");null!==s&&(n.max=s)}o.kendoTimePicker(n),o.removeClass("k-input").closest(".k-timepicker").removeClass().addClass("k-widget k-timepicker k-header");var u=o.data("kendoTimePicker"),c="quform-timepicker quform-"+m.options.id+"-timepicker";d.isNonEmptyString(m.options.theme)&&(c+=" quform-theme-"+m.options.theme),u.timeView.popup.element.addClass(c),e.find(".k-select").hide(),i.autoOpen&&o.on("click focus",function(){u.open()}).blur(function(){u.close()}),t.click(function(){u.open()});var l=function(){var e=o.val();if(d.isNonEmptyString(e)){var t=kendo.parseDate(e,n.format,n.culture);null===t?r.val("99:99"):r.val(kendo.toString(t,"HH:mm"))}else r.val("")};u.bind("change",l),o.on("blur.quformTimePicker keyup.quformTimePicker",l);var f=o.val();if(d.isNonEmptyString(f)){var p=kendo.parseDate(f,"HH:mm");null!==p&&(u.value(p),l())}})}},d.prototype.setupTooltips=function(){if(h.isFunction(h.fn.qtip)&&this.options.tooltipsEnabled){var e={style:{classes:this.options.tooltipClasses},position:{my:this.options.tooltipMy,at:this.options.tooltipAt,viewport:!0,adjust:{method:"shift shift"}}};h(".quform-tooltip-hover",this.$form).qtip(h.extend({},e,{content:{text:function(){return h(this).closest(".quform-input").find("> .quform-tooltip-content").html()}}})),h(".quform-tooltip-click",this.$form).qtip(h.extend({},e,{show:{event:"focus"},hide:{event:"unfocus"},content:{text:function(){return h(this).closest(".quform-input").find("> .quform-tooltip-content").html()}}})),h(".quform-tooltip-icon-hover",this.$form).qtip(h.extend({},e,{content:{text:function(){return h(this).find(".quform-tooltip-icon-content").html()}}})),h(".quform-tooltip-icon-click",this.$form).qtip(h.extend({},e,{show:{event:"click"},hide:{event:"unfocus"},content:{text:function(){return h(this).find(".quform-tooltip-icon-content").html()}}})),h(".quform-labels-inside > .quform-spacer > .quform-inner > .quform-input > .quform-label",this.$form).hover(function(){h(this).siblings(".quform-tooltip-hover").qtip("show")},function(){h(this).siblings(".quform-tooltip-hover").qtip("hide")})}},d.prototype.setupCaptchaImages=function(){var e=this;h(".quform-captcha-image img",this.$form).hover(function(){h(this).stop().fadeTo(400,"0.3")},function(){h(this).stop().fadeTo(400,"1.0")}).click(function(){e.captchaRefreshQueue.push(h(this)),e.processCaptchaRefreshQueue()})},d.prototype.processCaptchaRefreshQueue=function(t){var o=this;if(o.captchaRefreshQueue.length){var i=o.captchaRefreshQueue.shift();h.ajax({type:"GET",url:quformL10n.ajaxUrl,dataType:"json",data:{action:"quform_regenerate_captcha",quform_form_id:o.options.id,quform_unique_id:o.options.uniqueId,quform_element_id:i.data("element-id")}}).done(function(e){"success"===(e=d.sanitizeResponse(e)).type&&i.attr("src",e.image).animate({opacity:1}),o.captchaRefreshQueue.length?o.processCaptchaRefreshQueue(t):"function"==typeof t&&t.call(o)})}else"function"==typeof t&&t.call(o)},d.prototype.applyAllLogic=function(e){this.logicCache={},this.options.logic.elementIds.length&&(this.applyLogic(this.options.logic.elementIds,e),e&&this.applyDependentLogic(this.options.logic.dependentElementIds))},d.prototype.applyLogic=function(e,t){for(var o=0,i=e.length;oparseFloat(t.value);case"lt":return"date"==o?-1===d.compareDates(e,t.value):"time"==o?-1===d.compareTimes(e,t.value):h.isNumeric(e)&&h.isNumeric(t.value)&&parseFloat(e)i.size)this.addElementError(i.identifier,i.tooBigWithFilename.replace("%filename%",t.name))[this.errorShowFunction]();else{var o=this.nextUploadId++;e.formData={quform_ajax_uploading:1,quform_form_id:this.options.id,quform_form_uid:this.options.uniqueId,quform_element_id:i.id,quform_element_identifier:i.identifier,quform_upload_id:o},this.uploadQueue.push(e),i.queued++;var a=e.context=h('
').data("quform-upload-id",o);h('').text(t.name).appendTo(a),h('').attr("title",quformL10n.removeFile).click(function(){for(var e=h(this).closest(".quform-upload-file"),t=e.data("quform-upload-id"),o=n.uploadQueue.length;o--;)n.uploadQueue[o].formData.quform_upload_id==t&&n.uploadQueue.splice(o,1);e.data("quform-upload-uid")&&n.removedUploadUids.push(e.data("quform-upload-uid")),e.remove(),0===r.children().length&&r.hide(),i.queued--}).appendTo(a),r.append(a).show()}else this.addElementError(i.identifier,i.notAllowedTypeWithFilename.replace("%filename%",t.name))[this.errorShowFunction]()},d.prototype.processUploadQueue=function(){var t=this,o=t.uploadQueue.shift();o.submit().done(function(e){"success"==(e=d.sanitizeResponse(e)).type?(o.context.addClass("quform-uploaded").prepend(h('')).data("quform-upload-uid",e.uid),t.uploadQueue.length?t.processUploadQueue():(h(".quform-upload-progress-wrap",t.$form).hide(),t.submitted=!1,t.submit())):t.uploadError(o,e.message)}).fail(function(){t.uploadError(o,quformL10n.ajaxError)})},d.prototype.uploadError=function(e,t){h(".quform-upload-progress-wrap",this.$form).hide(),this.uploadQueue.unshift(e),this.allowResubmission(),this.addElementError(e.formData.quform_element_identifier,t)[this.errorShowFunction](),this.scrollTo(h(".quform-element-"+e.formData.quform_element_identifier,this.$form))},d.prototype.submit=function(e){var t=this;if(!t.submitted)if(t.submitStartTime=d.timeNow(),t.submitted=!0,e="back"==e?"back":"submit",t.$form.trigger("quform:submit",[t,e]),t.$loading.fadeIn().addClass("quform-loading-triggered"),"submit"==e&&this.uploadQueue.length)t.processUploadQueue();else{var o={quform_ajax:1,quform_submit:e,quform_removed_upload_uids:t.removedUploadUids.join(",")};t.$form.ajaxSubmit({type:"POST",data:o,dataType:"json",iframe:!0,url:"",success:function(e){switch(t.submitEndTime=d.timeNow(),(e=d.sanitizeResponse(e)).type){case"success":t.responseSuccess(e.confirmation);break;case"error":t.responseError(e);break;case"page":t.allowResubmission(),t.goToPage(e.page);break;case"invalid":t.responseInvalid(e)}},error:function(){t.submitEndTime=d.timeNow(),t.responseInvalid({message:quformL10n.ajaxError})}})}},d.prototype.responseSuccess=function(e){var t=this;t.$form.trigger("quform:successStart",[t,e]),t.$loading.addClass("quform-loading-success");var o=function(){switch(e.type){case"message":t.reset(e.resetForm),t.showSuccessMessage(e);break;case"message-redirect-page":case"message-redirect-url":t.showSuccessMessage(e),setTimeout(function(){window.location=e.redirectUrl},1e3*parseFloat(e.redirectDelay));break;case"redirect-page":case"redirect-url":window.location=e.redirectUrl;break;case"reload":window.location.reload()}};e.hideForm?t.$elements.quformHideSlide(function(){o()}):o()},d.prototype.showSuccessMessage=function(e){var t=this,o=h('
').hide(),i=h('
').appendTo(o);d.isNonEmptyString(e.messageIcon)&&i.addClass("quform-success-message-has-icon").append('
'),i.append(h('
').html(e.message)),o["below"==e.messagePosition?"insertAfter":"insertBefore"](t.$elements).quformShowSlide(),setTimeout(function(){t.scrollTo(o)},t.getScrollDelay());var r=1e3*parseFloat(e.messageTimeout);0 .quform-page-progress-number",this.$form).text(o+1):h(".quform-page-progress-text > .quform-page-progress-percentage",this.$form).text(i)):"tabs"==this.options.pageProgressType&&(h(".quform-page-progress-tab.quform-current-tab",this.$form).removeClass("quform-current-tab"),h(".quform-page-progress-tab",this.$form).filter(function(){return h(this).data("id")==e}).addClass("quform-current-tab"))}}},d.prototype.allowResubmission=function(){var e=this;e.$loading.removeClass("quform-loading-triggered").fadeOut(function(){e.$loading.removeClass("quform-loading-success")}),h(".quform-error-message, .quform-error, .quform-success-message-animate",e.$form).remove(),h(".quform-has-error",e.$form).removeClass("quform-has-error"),"number"==typeof e.successTimeout&&(clearTimeout(e.successTimeout),e.successTimeout=null),window.grecaptcha&&h(".quform-recaptcha",e.$form).each(function(){try{window.grecaptcha.reset(h(this).data("recaptcha-id"))}catch(e){}}),e.submitted=!1},d.prototype.reset=function(e){var t=this;switch(t.allowResubmission(),e){default:case"":t.$form.resetForm(),h("input.quform-field-date-enhanced",t.$form).each(function(){var e=h(this),t=e.closest(".quform-input").find(".quform-field-date-hidden").data("default"),o=e.data("kendoDatePicker");t=d.isNonEmptyString(t)?kendo.parseDate(t,"yyyy-MM-dd"):null,o.value(t),o.trigger("change"),o.dateView.calendar&&o.dateView.calendar.navigate(null===t?new Date:t)}),h("input.quform-field-time-enhanced",t.$form).each(function(){var e=h(this),t=e.closest(".quform-input").find(".quform-field-time-hidden").data("default"),o=e.data("kendoTimePicker");t=d.isNonEmptyString(t)?kendo.parseDate(t,"HH:mm"):null,o.value(t),o.trigger("change")}),h(".quform-field-hidden",t.$form).each(function(){var e=h(this);e.val(e.data("default")).change()});break;case"clear":t.$form.clearForm(),h("select",t.$form).each(function(){h(this).prop("selectedIndex",0)}),h("input.quform-field-date-enhanced",t.$form).each(function(){var e=h(this).data("kendoDatePicker");e.value(null),e.trigger("change"),e.dateView.calendar&&e.dateView.calendar.navigate(new Date)}),h("input.quform-field-time-enhanced",t.$form).each(function(){var e=h(this).data("kendoTimePicker");e.value(null),e.trigger("change")}),h(".quform-field-hidden",t.$form).val("").change();break;case"keep":}h(".quform-captcha-image img",t.$form).each(function(){t.captchaRefreshQueue.push(h(this))}),t.processCaptchaRefreshQueue(),h('input[type="text"], input[type="email"], textarea',t.$form).blur(),t.applyAllLogic(),h(".quform-field-select-enhanced, .quform-field-multiselect-enhanced",t.$form).trigger("change"),t.removedUploadUids=[],h(".quform-upload-files",t.$form).empty().hide();for(var o=0,i=t.uploadElements.length;o').hide(),r=h('
');"string"==typeof t&&t.length&&r.append(h('
').html(t)),r.append(h('
').html(e)).appendTo(i),o.$elements.prepend(i),i.quformShowSlide(),setTimeout(function(){o.scrollTo(i)},o.getScrollDelay())},d.prototype.addElementError=function(e,t){var o=h('
'),i=h('
').appendTo(o);if(d.isNonEmptyString(this.options.errorsIcon)&&i.append(h('').append('')),i.append(h('').html(t)),this.$wrapper.hasClass("quform-errors-absolute")){var r=h('').append('');r.click(function(){h(this).closest(".quform-error").fadeOut()}),i.append(r)}return h(".quform-element-"+e,this.$form).addClass("quform-has-error"),h(".quform-input-"+e,this.$form).after(o),o},d.prototype.scrollTo=function(e){if(this.options.scrolling&&e&&e.length){var t=this.getScrollElement();t?t.scrollTo(e,this.options.scrollSpeed,{axis:"y",offset:this.options.scrollOffset}):d.isScrolledIntoView(e)||h.scrollTo(e,this.options.scrollSpeed,{axis:"y",offset:this.options.scrollOffset})}},d.prototype.getScrollDelay=function(){return 0 div")):this.$form.closest(".mfp-wrap").length&&(this.$form.closest(".quform").hasClass("quform-max-height")?e=this.$form.closest(".quform"):h.magnificPopup&&h.magnificPopup.instance&&h.magnificPopup.instance.fixedContentPos&&(e=this.$form.closest(".mfp-wrap"))),e},d.prototype.updateFancybox=function(){var e;this.options.updateFancybox&&h.isFunction(h.fn.fancybox)&&h.fancybox&&(h.fancybox.version?(e=h(".fancybox-wrap")).length&&e.is(":visible")&&h.fancybox.reposition():(e=h("#fancybox-wrap")).length&&e.is(":visible")&&h.fancybox.center())},d.isScrolledIntoView=function(e){var t=h(window).scrollTop(),o=t+h(window).height(),i=e.offset().top,r=i+e.height();return t<=r&&i<=o&&r<=o&&t<=i},d.formatFileSize=function(e){return 1073741824<=e?e=Math.round(e/1073741824*10)/10+" GB":1048576<=e?e=Math.round(e/1048576*10)/10+" MB":1024<=e?e=Math.round(e/1024*10)/10+" KB":e+=" bytes",e},(d.preLoadImages=function(e,t){for(var o=0;o',a,""].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return y("@media "+b+" { #"+h+" { position: absolute; }}",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},A=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=F(e[d],"function"),F(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),B={}.hasOwnProperty,C;!F(B,"undefined")&&!F(B.call,"undefined")?C=function(a,b){return B.call(a,b)}:C=function(a,b){return b in a&&F(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return J("flexWrap")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!F(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!J("indexedDB",a)},s.hashchange=function(){return A("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return D("background-color:rgba(150,255,150,.5)"),G(j.backgroundColor,"rgba")},s.hsla=function(){return D("background-color:hsla(120,40%,100%,.5)"),G(j.backgroundColor,"rgba")||G(j.backgroundColor,"hsla")},s.multiplebgs=function(){return D("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return J("backgroundSize")},s.borderimage=function(){return J("borderImage")},s.borderradius=function(){return J("borderRadius")},s.boxshadow=function(){return J("boxShadow")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.opacity=function(){return E("opacity:.55"),/^0.55$/.test(j.opacity)},s.cssanimations=function(){return J("animationName")},s.csscolumns=function(){return J("columnCount")},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return D((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),G(j.backgroundImage,"gradient")},s.cssreflections=function(){return J("boxReflect")},s.csstransforms=function(){return!!J("transform")},s.csstransforms3d=function(){var a=!!J("perspective");return a&&"webkitPerspective"in g.style&&y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},s.csstransitions=function(){return J("transition")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}),a},s.generatedcontent=function(){var a;return y(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},s.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c},s.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(d){}return c},s.localstorage=function(){try{return localStorage.setItem(h,h),localStorage.removeItem(h),!0}catch(a){return!1}},s.sessionstorage=function(){try{return sessionStorage.setItem(h,h),sessionStorage.removeItem(h),!0}catch(a){return!1}},s.webworkers=function(){return!!a.Worker},s.applicationcache=function(){return!!a.applicationCache},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="",(a.firstChild&&a.firstChild.namespaceURI)==r.svg},s.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(m.call(b.createElementNS(r.svg,"animate")))},s.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))};for(var L in s)C(s,L)&&(x=L.toLowerCase(),e[x]=s[L](),v.push((e[x]?"":"no-")+x));return e.input||K(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)C(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},D(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.mq=z,e.hasEvent=A,e.testProp=function(a){return H([a])},e.testAllProps=J,e.testStyles=y,e.prefixed=function(a,b,c){return b?J(a,b,c):J(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f=b&&y<=b+wh+ay&&x+tw+ax>=a&&x<=a+ww+ax){if(!t.appeared)t.trigger('appear',settings.data)}else{t.appeared=false}};var modifiedFn=function(){t.appeared=true;if(settings.one){w.unbind('scroll',check);var i=$.inArray(check,$.fn.appear.checks);if(i>=0)$.fn.appear.checks.splice(i,1)}fn.apply(this,arguments)};if(settings.one)t.one('appear',settings.data,modifiedFn);else t.bind('appear',settings.data,modifiedFn);w.scroll(check);$.fn.appear.checks.push(check);(check)()})};$.extend($.fn.appear,{checks:[],timeout:null,checkAll:function(){var length=$.fn.appear.checks.length;if(length>0)while(length--)($.fn.appear.checks[length])()},run:function(){if($.fn.appear.timeout)clearTimeout($.fn.appear.timeout);$.fn.appear.timeout=setTimeout($.fn.appear.checkAll,20)}});$.each(['append','prepend','after','before','attr','removeAttr','addClass','removeClass','toggleClass','remove','css','show','hide'],function(i,n){var old=$.fn[n];if(old){$.fn[n]=function(){var r=old.apply(this,arguments);$.fn.appear.run();return r}}})})(jQuery); (function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))=0)&&focusable(element,!isTabIndexNaN)}});if(!$("").outerWidth(1).jquery){$.each(["Width","Height"],function(i,name){var side=name==="Width"?["Left","Right"]:["Top","Bottom"],type=name.toLowerCase(),orig={innerWidth:$.fn.innerWidth,innerHeight:$.fn.innerHeight,outerWidth:$.fn.outerWidth,outerHeight:$.fn.outerHeight};function reduce(elem,size,border,margin){$.each(side,function(){size-=parseFloat($.css(elem,"padding"+this))||0;if(border){size-=parseFloat($.css(elem,"border"+this+"Width"))||0}if(margin){size-=parseFloat($.css(elem,"margin"+this))||0}});return size}$.fn["inner"+name]=function(size){if(size===undefined){return orig["inner"+name].call(this)}return this.each(function(){$(this).css(type,reduce(this,size)+"px")})};$.fn["outer"+name]=function(size,margin){if(typeof size!=="number"){return orig["outer"+name].call(this,size)}return this.each(function(){$(this).css(type,reduce(this,size,true,margin)+"px")})}})}if(!$.fn.addBack){$.fn.addBack=function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector))}}if($("").data("a-b","a").removeData("a-b").data("a-b")){$.fn.removeData=(function(removeData){return function(key){if(arguments.length){return removeData.call(this,$.camelCase(key))}else{return removeData.call(this)}}})($.fn.removeData)}$.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());$.support.selectstart="onselectstart"in document.createElement("div");$.fn.extend({disableSelection:function(){return this.bind(($.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(event){event.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});$.extend($.ui,{plugin:{add:function(module,option,set){var i,proto=$.ui[module].prototype;for(i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]])}},call:function(instance,name,args){var i,set=instance.plugins[name];if(!set||!instance.element[0].parentNode||instance.element[0].parentNode.nodeType===11){return}for(i=0;i0){return true}el[scroll]=1;has=(el[scroll]>0);el[scroll]=0;return has}})})(jQuery);(function($,undefined){var uuid=0,slice=Array.prototype.slice,_cleanData=$.cleanData;$.cleanData=function(elems){for(var i=0,elem;(elem=elems[i])!=null;i++){try{$(elem).triggerHandler("remove")}catch(e){}}_cleanData(elems)};$.widget=function(name,base,prototype){var fullName,existingConstructor,constructor,basePrototype,proxiedPrototype={},namespace=name.split(".")[0];name=name.split(".")[1];fullName=namespace+"-"+name;if(!prototype){prototype=base;base=$.Widget}$.expr[":"][fullName.toLowerCase()]=function(elem){return!!$.data(elem,fullName)};$[namespace]=$[namespace]||{};existingConstructor=$[namespace][name];constructor=$[namespace][name]=function(options,element){if(!this._createWidget){return new constructor(options,element)}if(arguments.length){this._createWidget(options,element)}};$.extend(constructor,existingConstructor,{version:prototype.version,_proto:$.extend({},prototype),_childConstructors:[]});basePrototype=new base();basePrototype.options=$.widget.extend({},basePrototype.options);$.each(prototype,function(prop,value){if(!$.isFunction(value)){proxiedPrototype[prop]=value;return}proxiedPrototype[prop]=(function(){var _super=function(){return base.prototype[prop].apply(this,arguments)},_superApply=function(args){return base.prototype[prop].apply(this,args)};return function(){var __super=this._super,__superApply=this._superApply,returnValue;this._super=_super;this._superApply=_superApply;returnValue=value.apply(this,arguments);this._super=__super;this._superApply=__superApply;return returnValue}})()});constructor.prototype=$.widget.extend(basePrototype,{widgetEventPrefix:existingConstructor?basePrototype.widgetEventPrefix:name},proxiedPrototype,{constructor:constructor,namespace:namespace,widgetName:name,widgetFullName:fullName});if(existingConstructor){$.each(existingConstructor._childConstructors,function(i,child){var childPrototype=child.prototype;$.widget(childPrototype.namespace+"."+childPrototype.widgetName,constructor,child._proto)});delete existingConstructor._childConstructors}else{base._childConstructors.push(constructor)}$.widget.bridge(name,constructor)};$.widget.extend=function(target){var input=slice.call(arguments,1),inputIndex=0,inputLength=input.length,key,value;for(;inputIndex",options:{disabled:false,create:null},_createWidget:function(options,element){element=$(element||this.defaultElement||this)[0];this.element=$(element);this.uuid=uuid++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=$.widget.extend({},this.options,this._getCreateOptions(),options);this.bindings=$();this.hoverable=$();this.focusable=$();if(element!==this){$.data(element,this.widgetFullName,this);this._on(true,this.element,{remove:function(event){if(event.target===element){this.destroy()}}});this.document=$(element.style?element.ownerDocument:element.document||element);this.window=$(this.document[0].defaultView||this.document[0].parentWindow)}this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:$.noop,_getCreateEventData:$.noop,_create:$.noop,_init:$.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData($.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:$.noop,widget:function(){return this.element},option:function(key,value){var options=key,parts,curOption,i;if(arguments.length===0){return $.widget.extend({},this.options)}if(typeof key==="string"){options={};parts=key.split(".");key=parts.shift();if(parts.length){curOption=options[key]=$.widget.extend({},this.options[key]);for(i=0;i=this.options.distance)},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);(function($,undefined){$.widget("ui.draggable",$.ui.mouse,{version:"1.10.2",widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false,drag:null,start:null,stop:null},_create:function(){if(this.options.helper==="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}if(this.options.addClasses){this.element.addClass("ui-draggable")}if(this.options.disabled){this.element.addClass("ui-draggable-disabled")}this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(event){var o=this.options;if(this.helper||o.disabled||$(event.target).closest(".ui-resizable-handle").length>0){return false}this.handle=this._getHandle(event);if(!this.handle){return false}$(o.iframeFix===true?"iframe":o.iframeFix).each(function(){$("
").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css($(this).offset()).appendTo("body")});return true},_mouseStart:function(event){var o=this.options;this.helper=this._createHelper(event);this.helper.addClass("ui-draggable-dragging");this._cacheHelperProportions();if($.ui.ddmanager){$.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};$.extend(this.offset,{click:{left:event.pageX-this.offset.left,top:event.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(event);this.originalPageX=event.pageX;this.originalPageY=event.pageY;(o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt));if(o.containment){this._setContainment()}if(this._trigger("start",event)===false){this._clear();return false}this._cacheHelperProportions();if($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event)}this._mouseDrag(event,true);if($.ui.ddmanager){$.ui.ddmanager.dragStart(this,event)}return true},_mouseDrag:function(event,noPropagation){this.position=this._generatePosition(event);this.positionAbs=this._convertPositionTo("absolute");if(!noPropagation){var ui=this._uiHash();if(this._trigger("drag",event,ui)===false){this._mouseUp({});return false}this.position=ui.position}if(!this.options.axis||this.options.axis!=="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!=="x"){this.helper[0].style.top=this.position.top+"px"}if($.ui.ddmanager){$.ui.ddmanager.drag(this,event)}return false},_mouseStop:function(event){var element,that=this,elementInDom=false,dropped=false;if($.ui.ddmanager&&!this.options.dropBehaviour){dropped=$.ui.ddmanager.drop(this,event)}if(this.dropped){dropped=this.dropped;this.dropped=false}element=this.element[0];while(element&&(element=element.parentNode)){if(element===document){elementInDom=true}}if(!elementInDom&&this.options.helper==="original"){return false}if((this.options.revert==="invalid"&&!dropped)||(this.options.revert==="valid"&&dropped)||this.options.revert===true||($.isFunction(this.options.revert)&&this.options.revert.call(this.element,dropped))){$(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(that._trigger("stop",event)!==false){that._clear()}})}else{if(this._trigger("stop",event)!==false){this._clear()}}return false},_mouseUp:function(event){$("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});if($.ui.ddmanager){$.ui.ddmanager.dragStop(this,event)}return $.ui.mouse.prototype._mouseUp.call(this,event)},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({})}else{this._clear()}return this},_getHandle:function(event){return this.options.handle?!!$(event.target).closest(this.element.find(this.options.handle)).length:true},_createHelper:function(event){var o=this.options,helper=$.isFunction(o.helper)?$(o.helper.apply(this.element[0],[event])):(o.helper==="clone"?this.element.clone().removeAttr("id"):this.element);if(!helper.parents("body").length){helper.appendTo((o.appendTo==="parent"?this.element[0].parentNode:o.appendTo))}if(helper[0]!==this.element[0]&&!(/(fixed|absolute)/).test(helper.css("position"))){helper.css("position","absolute")}return helper},_adjustOffsetFromHelper:function(obj){if(typeof obj==="string"){obj=obj.split(" ")}if($.isArray(obj)){obj={left:+obj[0],top:+obj[1]||0}}if("left"in obj){this.offset.click.left=obj.left+this.margins.left}if("right"in obj){this.offset.click.left=this.helperProportions.width-obj.right+this.margins.left}if("top"in obj){this.offset.click.top=obj.top+this.margins.top}if("bottom"in obj){this.offset.click.top=this.helperProportions.height-obj.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var po=this.offsetParent.offset();if(this.cssPosition==="absolute"&&this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0])){po.left+=this.scrollParent.scrollLeft();po.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]===document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&$.ui.ie)){po={top:0,left:0}}return{top:po.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:po.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var p=this.element.position();return{top:p.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:p.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0),right:(parseInt(this.element.css("marginRight"),10)||0),bottom:(parseInt(this.element.css("marginBottom"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var over,c,ce,o=this.options;if(o.containment==="parent"){o.containment=this.helper[0].parentNode}if(o.containment==="document"||o.containment==="window"){this.containment=[o.containment==="document"?0:$(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,o.containment==="document"?0:$(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(o.containment==="document"?0:$(window).scrollLeft())+$(o.containment==="document"?document:window).width()-this.helperProportions.width-this.margins.left,(o.containment==="document"?0:$(window).scrollTop())+($(o.containment==="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(o.containment)&&o.containment.constructor!==Array){c=$(o.containment);ce=c[0];if(!ce){return}over=($(ce).css("overflow")!=="hidden");this.containment=[(parseInt($(ce).css("borderLeftWidth"),10)||0)+(parseInt($(ce).css("paddingLeft"),10)||0),(parseInt($(ce).css("borderTopWidth"),10)||0)+(parseInt($(ce).css("paddingTop"),10)||0),(over?Math.max(ce.scrollWidth,ce.offsetWidth):ce.offsetWidth)-(parseInt($(ce).css("borderRightWidth"),10)||0)-(parseInt($(ce).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(over?Math.max(ce.scrollHeight,ce.offsetHeight):ce.offsetHeight)-(parseInt($(ce).css("borderBottomWidth"),10)||0)-(parseInt($(ce).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=c}else if(o.containment.constructor===Array){this.containment=o.containment}},_convertPositionTo:function(d,pos){if(!pos){pos=this.position}var mod=d==="absolute"?1:-1,scroll=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,scrollIsRootNode=(/(html|body)/i).test(scroll[0].tagName);return{top:(pos.top+this.offset.relative.top*mod+this.offset.parent.top*mod-((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop()))*mod)),left:(pos.left+this.offset.relative.left*mod+this.offset.parent.left*mod-((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())*mod))}},_generatePosition:function(event){var containment,co,top,left,o=this.options,scroll=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,scrollIsRootNode=(/(html|body)/i).test(scroll[0].tagName),pageX=event.pageX,pageY=event.pageY;if(this.originalPosition){if(this.containment){if(this.relative_container){co=this.relative_container.offset();containment=[this.containment[0]+co.left,this.containment[1]+co.top,this.containment[2]+co.left,this.containment[3]+co.top]}else{containment=this.containment}if(event.pageX-this.offset.click.leftcontainment[2]){pageX=containment[2]+this.offset.click.left}if(event.pageY-this.offset.click.top>containment[3]){pageY=containment[3]+this.offset.click.top}}if(o.grid){top=o.grid[1]?this.originalPageY+Math.round((pageY-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY;pageY=containment?((top-this.offset.click.top>=containment[1]||top-this.offset.click.top>containment[3])?top:((top-this.offset.click.top>=containment[1])?top-o.grid[1]:top+o.grid[1])):top;left=o.grid[0]?this.originalPageX+Math.round((pageX-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX;pageX=containment?((left-this.offset.click.left>=containment[0]||left-this.offset.click.left>containment[2])?left:((left-this.offset.click.left>=containment[0])?left-o.grid[0]:left+o.grid[0])):left}}return{top:(pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop())))),left:(pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(type,event,ui){ui=ui||this._uiHash();$.ui.plugin.call(this,type,[event,ui]);if(type==="drag"){this.positionAbs=this._convertPositionTo("absolute")}return $.Widget.prototype._trigger.call(this,type,event,ui)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});$.ui.plugin.add("draggable","connectToSortable",{start:function(event,ui){var inst=$(this).data("ui-draggable"),o=inst.options,uiSortable=$.extend({},ui,{item:inst.element});inst.sortables=[];$(o.connectToSortable).each(function(){var sortable=$.data(this,"ui-sortable");if(sortable&&!sortable.options.disabled){inst.sortables.push({instance:sortable,shouldRevert:sortable.options.revert});sortable.refreshPositions();sortable._trigger("activate",event,uiSortable)}})},stop:function(event,ui){var inst=$(this).data("ui-draggable"),uiSortable=$.extend({},ui,{item:inst.element});$.each(inst.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;inst.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=this.shouldRevert}this.instance._mouseStop(event);this.instance.options.helper=this.instance.options._helper;if(inst.options.helper==="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",event,uiSortable)}})},drag:function(event,ui){var inst=$(this).data("ui-draggable"),that=this;$.each(inst.sortables,function(){var innermostIntersecting=false,thisSortable=this;this.instance.positionAbs=inst.positionAbs;this.instance.helperProportions=inst.helperProportions;this.instance.offset.click=inst.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){innermostIntersecting=true;$.each(inst.sortables,function(){this.instance.positionAbs=inst.positionAbs;this.instance.helperProportions=inst.helperProportions;this.instance.offset.click=inst.offset.click;if(this!==thisSortable&&this.instance._intersectsWith(this.instance.containerCache)&&$.contains(thisSortable.instance.element[0],this.instance.element[0])){innermostIntersecting=false}return innermostIntersecting})}if(innermostIntersecting){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=$(that).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return ui.helper[0]};event.target=this.instance.currentItem[0];this.instance._mouseCapture(event,true);this.instance._mouseStart(event,true,true);this.instance.offset.click.top=inst.offset.click.top;this.instance.offset.click.left=inst.offset.click.left;this.instance.offset.parent.left-=inst.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=inst.offset.parent.top-this.instance.offset.parent.top;inst._trigger("toSortable",event);inst.dropped=this.instance.element;inst.currentItem=inst.element;this.instance.fromOutside=inst}if(this.instance.currentItem){this.instance._mouseDrag(event)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",event,this.instance._uiHash(this.instance));this.instance._mouseStop(event,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}inst._trigger("fromSortable",event);inst.dropped=false}}})}});$.ui.plugin.add("draggable","cursor",{start:function(){var t=$("body"),o=$(this).data("ui-draggable").options;if(t.css("cursor")){o._cursor=t.css("cursor")}t.css("cursor",o.cursor)},stop:function(){var o=$(this).data("ui-draggable").options;if(o._cursor){$("body").css("cursor",o._cursor)}}});$.ui.plugin.add("draggable","opacity",{start:function(event,ui){var t=$(ui.helper),o=$(this).data("ui-draggable").options;if(t.css("opacity")){o._opacity=t.css("opacity")}t.css("opacity",o.opacity)},stop:function(event,ui){var o=$(this).data("ui-draggable").options;if(o._opacity){$(ui.helper).css("opacity",o._opacity)}}});$.ui.plugin.add("draggable","scroll",{start:function(){var i=$(this).data("ui-draggable");if(i.scrollParent[0]!==document&&i.scrollParent[0].tagName!=="HTML"){i.overflowOffset=i.scrollParent.offset()}},drag:function(event){var i=$(this).data("ui-draggable"),o=i.options,scrolled=false;if(i.scrollParent[0]!==document&&i.scrollParent[0].tagName!=="HTML"){if(!o.axis||o.axis!=="x"){if((i.overflowOffset.top+i.scrollParent[0].offsetHeight)-event.pageY=0;i--){l=inst.snapElements[i].left;r=l+inst.snapElements[i].width;t=inst.snapElements[i].top;b=t+inst.snapElements[i].height;if(!((l-dreference)&&(x<(reference+size))}$.widget("ui.droppable",{version:"1.10.2",widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var o=this.options,accept=o.accept;this.isover=false;this.isout=true;this.accept=$.isFunction(accept)?accept:function(d){return d.is(accept)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};$.ui.ddmanager.droppables[o.scope]=$.ui.ddmanager.droppables[o.scope]||[];$.ui.ddmanager.droppables[o.scope].push(this);(o.addClasses&&this.element.addClass("ui-droppable"))},_destroy:function(){var i=0,drop=$.ui.ddmanager.droppables[this.options.scope];for(;i=t&&y1<=b)||(y2>=t&&y2<=b)||(y1b))&&((x1>=l&&x1<=r)||(x2>=l&&x2<=r)||(x1r));default:return false}};$.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,event){var i,j,m=$.ui.ddmanager.droppables[t.options.scope]||[],type=event?event.type:null,list=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();droppablesLoop:for(i=0;i
").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=o.handles||(!$(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor===String){if(this.handles==="all"){this.handles="n,e,s,w,se,sw,ne,nw"}n=this.handles.split(",");this.handles={};for(i=0;i
");axis.css({zIndex:o.zIndex});if("se"===handle){axis.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[handle]=".ui-resizable-"+handle;this.element.append(axis)}}this._renderAxis=function(target){var i,axis,padPos,padWrapper;target=target||this.element;for(i in this.handles){if(this.handles[i].constructor===String){this.handles[i]=$(this.handles[i],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){axis=$(this.handles[i],this.element);padWrapper=/sw|ne|nw|se|n|s/.test(i)?axis.outerHeight():axis.outerWidth();padPos=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");target.css(padPos,padWrapper);this._proportionallyResize()}if(!$(this.handles[i]).length){continue}}};this._renderAxis(this.element);this._handles=$(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!that.resizing){if(this.className){axis=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}that.axis=axis&&axis[1]?axis[1]:"se"}});if(o.autoHide){this._handles.hide();$(this.element).addClass("ui-resizable-autohide").mouseenter(function(){if(o.disabled){return}$(this).removeClass("ui-resizable-autohide");that._handles.show()}).mouseleave(function(){if(o.disabled){return}if(!that.resizing){$(this).addClass("ui-resizable-autohide");that._handles.hide()}})}this._mouseInit()},_destroy:function(){this._mouseDestroy();var wrapper,_destroy=function(exp){$(exp).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){_destroy(this.element);wrapper=this.element;this.originalElement.css({position:wrapper.css("position"),width:wrapper.outerWidth(),height:wrapper.outerHeight(),top:wrapper.css("top"),left:wrapper.css("left")}).insertAfter(wrapper);wrapper.remove()}this.originalElement.css("resize",this.originalResizeStyle);_destroy(this.originalElement);return this},_mouseCapture:function(event){var i,handle,capture=false;for(i in this.handles){handle=$(this.handles[i])[0];if(handle===event.target||$.contains(handle,event.target)){capture=true}}return!this.options.disabled&&capture},_mouseStart:function(event){var curleft,curtop,cursor,o=this.options,iniPos=this.element.position(),el=this.element;this.resizing=true;if((/absolute/).test(el.css("position"))){el.css({position:"absolute",top:el.css("top"),left:el.css("left")})}else if(el.is(".ui-draggable")){el.css({position:"absolute",top:iniPos.top,left:iniPos.left})}this._renderProxy();curleft=num(this.helper.css("left"));curtop=num(this.helper.css("top"));if(o.containment){curleft+=$(o.containment).scrollLeft()||0;curtop+=$(o.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:curleft,top:curtop};this.size=this._helper?{width:el.outerWidth(),height:el.outerHeight()}:{width:el.width(),height:el.height()};this.originalSize=this._helper?{width:el.outerWidth(),height:el.outerHeight()}:{width:el.width(),height:el.height()};this.originalPosition={left:curleft,top:curtop};this.sizeDiff={width:el.outerWidth()-el.width(),height:el.outerHeight()-el.height()};this.originalMousePosition={left:event.pageX,top:event.pageY};this.aspectRatio=(typeof o.aspectRatio==="number")?o.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);cursor=$(".ui-resizable-"+this.axis).css("cursor");$("body").css("cursor",cursor==="auto"?this.axis+"-resize":cursor);el.addClass("ui-resizable-resizing");this._propagate("start",event);return true},_mouseDrag:function(event){var data,el=this.helper,props={},smp=this.originalMousePosition,a=this.axis,prevTop=this.position.top,prevLeft=this.position.left,prevWidth=this.size.width,prevHeight=this.size.height,dx=(event.pageX-smp.left)||0,dy=(event.pageY-smp.top)||0,trigger=this._change[a];if(!trigger){return false}data=trigger.apply(this,[event,dx,dy]);this._updateVirtualBoundaries(event.shiftKey);if(this._aspectRatio||event.shiftKey){data=this._updateRatio(data,event)}data=this._respectSize(data,event);this._updateCache(data);this._propagate("resize",event);if(this.position.top!==prevTop){props.top=this.position.top+"px"}if(this.position.left!==prevLeft){props.left=this.position.left+"px"}if(this.size.width!==prevWidth){props.width=this.size.width+"px"}if(this.size.height!==prevHeight){props.height=this.size.height+"px"}el.css(props);if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}if(!$.isEmptyObject(props)){this._trigger("resize",event,this.ui())}return false},_mouseStop:function(event){this.resizing=false;var pr,ista,soffseth,soffsetw,s,left,top,o=this.options,that=this;if(this._helper){pr=this._proportionallyResizeElements;ista=pr.length&&(/textarea/i).test(pr[0].nodeName);soffseth=ista&&$.ui.hasScroll(pr[0],"left")?0:that.sizeDiff.height;soffsetw=ista?0:that.sizeDiff.width;s={width:(that.helper.width()-soffsetw),height:(that.helper.height()-soffseth)};left=(parseInt(that.element.css("left"),10)+(that.position.left-that.originalPosition.left))||null;top=(parseInt(that.element.css("top"),10)+(that.position.top-that.originalPosition.top))||null;if(!o.animate){this.element.css($.extend(s,{top:top,left:left}))}that.helper.height(that.size.height);that.helper.width(that.size.width);if(this._helper&&!o.animate){this._proportionallyResize()}}$("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",event);if(this._helper){this.helper.remove()}return false},_updateVirtualBoundaries:function(forceAspectRatio){var pMinWidth,pMaxWidth,pMinHeight,pMaxHeight,b,o=this.options;b={minWidth:isNumber(o.minWidth)?o.minWidth:0,maxWidth:isNumber(o.maxWidth)?o.maxWidth:Infinity,minHeight:isNumber(o.minHeight)?o.minHeight:0,maxHeight:isNumber(o.maxHeight)?o.maxHeight:Infinity};if(this._aspectRatio||forceAspectRatio){pMinWidth=b.minHeight*this.aspectRatio;pMinHeight=b.minWidth/this.aspectRatio;pMaxWidth=b.maxHeight*this.aspectRatio;pMaxHeight=b.maxWidth/this.aspectRatio;if(pMinWidth>b.minWidth){b.minWidth=pMinWidth}if(pMinHeight>b.minHeight){b.minHeight=pMinHeight}if(pMaxWidthdata.width),isminh=isNumber(data.height)&&o.minHeight&&(o.minHeight>data.height),dw=this.originalPosition.left+this.originalSize.width,dh=this.position.top+this.size.height,cw=/sw|nw|w/.test(a),ch=/nw|ne|n/.test(a);if(isminw){data.width=o.minWidth}if(isminh){data.height=o.minHeight}if(ismaxw){data.width=o.maxWidth}if(ismaxh){data.height=o.maxHeight}if(isminw&&cw){data.left=dw-o.minWidth}if(ismaxw&&cw){data.left=dw-o.maxWidth}if(isminh&&ch){data.top=dh-o.minHeight}if(ismaxh&&ch){data.top=dh-o.maxHeight}if(!data.width&&!data.height&&!data.left&&data.top){data.top=null}else if(!data.width&&!data.height&&!data.top&&data.left){data.left=null}return data},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length){return}var i,j,borders,paddings,prel,element=this.helper||this.element;for(i=0;i
");this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++o.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(event,dx){return{width:this.originalSize.width+dx}},w:function(event,dx){var cs=this.originalSize,sp=this.originalPosition;return{left:sp.left+dx,width:cs.width-dx}},n:function(event,dx,dy){var cs=this.originalSize,sp=this.originalPosition;return{top:sp.top+dy,height:cs.height-dy}},s:function(event,dx,dy){return{height:this.originalSize.height+dy}},se:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]))},sw:function(event,dx,dy){return $.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]))},ne:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[event,dx,dy]))},nw:function(event,dx,dy){return $.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[event,dx,dy]))}},_propagate:function(n,event){$.ui.plugin.call(this,n,[event,this.ui()]);(n!=="resize"&&this._trigger(n,event,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});$.ui.plugin.add("resizable","animate",{stop:function(event){var that=$(this).data("ui-resizable"),o=that.options,pr=that._proportionallyResizeElements,ista=pr.length&&(/textarea/i).test(pr[0].nodeName),soffseth=ista&&$.ui.hasScroll(pr[0],"left")?0:that.sizeDiff.height,soffsetw=ista?0:that.sizeDiff.width,style={width:(that.size.width-soffsetw),height:(that.size.height-soffseth)},left=(parseInt(that.element.css("left"),10)+(that.position.left-that.originalPosition.left))||null,top=(parseInt(that.element.css("top"),10)+(that.position.top-that.originalPosition.top))||null;that.element.animate($.extend(style,top&&left?{top:top,left:left}:{}),{duration:o.animateDuration,easing:o.animateEasing,step:function(){var data={width:parseInt(that.element.css("width"),10),height:parseInt(that.element.css("height"),10),top:parseInt(that.element.css("top"),10),left:parseInt(that.element.css("left"),10)};if(pr&&pr.length){$(pr[0]).css({width:data.width,height:data.height})}that._updateCache(data);that._propagate("resize",event)}})}});$.ui.plugin.add("resizable","containment",{start:function(){var element,p,co,ch,cw,width,height,that=$(this).data("ui-resizable"),o=that.options,el=that.element,oc=o.containment,ce=(oc instanceof $)?oc.get(0):(/parent/.test(oc))?el.parent().get(0):oc;if(!ce){return}that.containerElement=$(ce);if(/document/.test(oc)||oc===document){that.containerOffset={left:0,top:0};that.containerPosition={left:0,top:0};that.parentData={element:$(document),left:0,top:0,width:$(document).width(),height:$(document).height()||document.body.parentNode.scrollHeight}}else{element=$(ce);p=[];$(["Top","Right","Left","Bottom"]).each(function(i,name){p[i]=num(element.css("padding"+name))});that.containerOffset=element.offset();that.containerPosition=element.position();that.containerSize={height:(element.innerHeight()-p[3]),width:(element.innerWidth()-p[1])};co=that.containerOffset;ch=that.containerSize.height;cw=that.containerSize.width;width=($.ui.hasScroll(ce,"left")?ce.scrollWidth:cw);height=($.ui.hasScroll(ce)?ce.scrollHeight:ch);that.parentData={element:ce,left:co.left,top:co.top,width:width,height:height}}},resize:function(event){var woset,hoset,isParent,isOffsetRelative,that=$(this).data("ui-resizable"),o=that.options,co=that.containerOffset,cp=that.position,pRatio=that._aspectRatio||event.shiftKey,cop={top:0,left:0},ce=that.containerElement;if(ce[0]!==document&&(/static/).test(ce.css("position"))){cop=co}if(cp.left<(that._helper?co.left:0)){that.size.width=that.size.width+(that._helper?(that.position.left-co.left):(that.position.left-cop.left));if(pRatio){that.size.height=that.size.width/that.aspectRatio}that.position.left=o.helper?co.left:0}if(cp.top<(that._helper?co.top:0)){that.size.height=that.size.height+(that._helper?(that.position.top-co.top):that.position.top);if(pRatio){that.size.width=that.size.height*that.aspectRatio}that.position.top=that._helper?co.top:0}that.offset.left=that.parentData.left+that.position.left;that.offset.top=that.parentData.top+that.position.top;woset=Math.abs((that._helper?that.offset.left-cop.left:(that.offset.left-cop.left))+that.sizeDiff.width);hoset=Math.abs((that._helper?that.offset.top-cop.top:(that.offset.top-co.top))+that.sizeDiff.height);isParent=that.containerElement.get(0)===that.element.parent().get(0);isOffsetRelative=/relative|absolute/.test(that.containerElement.css("position"));if(isParent&&isOffsetRelative){woset-=that.parentData.left}if(woset+that.size.width>=that.parentData.width){that.size.width=that.parentData.width-woset;if(pRatio){that.size.height=that.size.width/that.aspectRatio}}if(hoset+that.size.height>=that.parentData.height){that.size.height=that.parentData.height-hoset;if(pRatio){that.size.width=that.size.height*that.aspectRatio}}},stop:function(){var that=$(this).data("ui-resizable"),o=that.options,co=that.containerOffset,cop=that.containerPosition,ce=that.containerElement,helper=$(that.helper),ho=helper.offset(),w=helper.outerWidth()-that.sizeDiff.width,h=helper.outerHeight()-that.sizeDiff.height;if(that._helper&&!o.animate&&(/relative/).test(ce.css("position"))){$(this).css({left:ho.left-cop.left-co.left,width:w,height:h})}if(that._helper&&!o.animate&&(/static/).test(ce.css("position"))){$(this).css({left:ho.left-cop.left-co.left,width:w,height:h})}}});$.ui.plugin.add("resizable","alsoResize",{start:function(){var that=$(this).data("ui-resizable"),o=that.options,_store=function(exp){$(exp).each(function(){var el=$(this);el.data("ui-resizable-alsoresize",{width:parseInt(el.width(),10),height:parseInt(el.height(),10),left:parseInt(el.css("left"),10),top:parseInt(el.css("top"),10)})})};if(typeof(o.alsoResize)==="object"&&!o.alsoResize.parentNode){if(o.alsoResize.length){o.alsoResize=o.alsoResize[0];_store(o.alsoResize)}else{$.each(o.alsoResize,function(exp){_store(exp)})}}else{_store(o.alsoResize)}},resize:function(event,ui){var that=$(this).data("ui-resizable"),o=that.options,os=that.originalSize,op=that.originalPosition,delta={height:(that.size.height-os.height)||0,width:(that.size.width-os.width)||0,top:(that.position.top-op.top)||0,left:(that.position.left-op.left)||0},_alsoResize=function(exp,c){$(exp).each(function(){var el=$(this),start=$(this).data("ui-resizable-alsoresize"),style={},css=c&&c.length?c:el.parents(ui.originalElement[0]).length?["width","height"]:["width","height","top","left"];$.each(css,function(i,prop){var sum=(start[prop]||0)+(delta[prop]||0);if(sum&&sum>=0){style[prop]=sum||null}});el.css(style)})};if(typeof(o.alsoResize)==="object"&&!o.alsoResize.nodeType){$.each(o.alsoResize,function(exp,c){_alsoResize(exp,c)})}else{_alsoResize(o.alsoResize)}},stop:function(){$(this).removeData("resizable-alsoresize")}});$.ui.plugin.add("resizable","ghost",{start:function(){var that=$(this).data("ui-resizable"),o=that.options,cs=that.size;that.ghost=that.originalElement.clone();that.ghost.css({opacity:0.25,display:"block",position:"relative",height:cs.height,width:cs.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof o.ghost==="string"?o.ghost:"");that.ghost.appendTo(that.helper)},resize:function(){var that=$(this).data("ui-resizable");if(that.ghost){that.ghost.css({position:"relative",height:that.size.height,width:that.size.width})}},stop:function(){var that=$(this).data("ui-resizable");if(that.ghost&&that.helper){that.helper.get(0).removeChild(that.ghost.get(0))}}});$.ui.plugin.add("resizable","grid",{resize:function(){var that=$(this).data("ui-resizable"),o=that.options,cs=that.size,os=that.originalSize,op=that.originalPosition,a=that.axis,grid=typeof o.grid==="number"?[o.grid,o.grid]:o.grid,gridX=(grid[0]||1),gridY=(grid[1]||1),ox=Math.round((cs.width-os.width)/gridX)*gridX,oy=Math.round((cs.height-os.height)/gridY)*gridY,newWidth=os.width+ox,newHeight=os.height+oy,isMaxWidth=o.maxWidth&&(o.maxWidthnewWidth),isMinHeight=o.minHeight&&(o.minHeight>newHeight);o.grid=grid;if(isMinWidth){newWidth=newWidth+gridX}if(isMinHeight){newHeight=newHeight+gridY}if(isMaxWidth){newWidth=newWidth-gridX}if(isMaxHeight){newHeight=newHeight-gridY}if(/^(se|s|e)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight}else if(/^(ne)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;that.position.top=op.top-oy}else if(/^(sw)$/.test(a)){that.size.width=newWidth;that.size.height=newHeight;that.position.left=op.left-ox}else{that.size.width=newWidth;that.size.height=newHeight;that.position.top=op.top-oy;that.position.left=op.left-ox}}})})(jQuery);(function($,undefined){$.widget("ui.selectable",$.ui.mouse,{version:"1.10.2",options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var selectees,that=this;this.element.addClass("ui-selectable");this.dragged=false;this.refresh=function(){selectees=$(that.options.filter,that.element[0]);selectees.addClass("ui-selectee");selectees.each(function(){var $this=$(this),pos=$this.offset();$.data(this,"selectable-item",{element:this,$element:$this,left:pos.left,top:pos.top,right:pos.left+$this.outerWidth(),bottom:pos.top+$this.outerHeight(),startselected:false,selected:$this.hasClass("ui-selected"),selecting:$this.hasClass("ui-selecting"),unselecting:$this.hasClass("ui-unselecting")})})};this.refresh();this.selectees=selectees.addClass("ui-selectee");this._mouseInit();this.helper=$("
")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled");this._mouseDestroy()},_mouseStart:function(event){var that=this,options=this.options;this.opos=[event.pageX,event.pageY];if(this.options.disabled){return}this.selectees=$(options.filter,this.element[0]);this._trigger("start",event);$(options.appendTo).append(this.helper);this.helper.css({"left":event.pageX,"top":event.pageY,"width":0,"height":0});if(options.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var selectee=$.data(this,"selectable-item");selectee.startselected=true;if(!event.metaKey&&!event.ctrlKey){selectee.$element.removeClass("ui-selected");selectee.selected=false;selectee.$element.addClass("ui-unselecting");selectee.unselecting=true;that._trigger("unselecting",event,{unselecting:selectee.element})}});$(event.target).parents().addBack().each(function(){var doSelect,selectee=$.data(this,"selectable-item");if(selectee){doSelect=(!event.metaKey&&!event.ctrlKey)||!selectee.$element.hasClass("ui-selected");selectee.$element.removeClass(doSelect?"ui-unselecting":"ui-selected").addClass(doSelect?"ui-selecting":"ui-unselecting");selectee.unselecting=!doSelect;selectee.selecting=doSelect;selectee.selected=doSelect;if(doSelect){that._trigger("selecting",event,{selecting:selectee.element})}else{that._trigger("unselecting",event,{unselecting:selectee.element})}return false}})},_mouseDrag:function(event){this.dragged=true;if(this.options.disabled){return}var tmp,that=this,options=this.options,x1=this.opos[0],y1=this.opos[1],x2=event.pageX,y2=event.pageY;if(x1>x2){tmp=x2;x2=x1;x1=tmp}if(y1>y2){tmp=y2;y2=y1;y1=tmp}this.helper.css({left:x1,top:y1,width:x2-x1,height:y2-y1});this.selectees.each(function(){var selectee=$.data(this,"selectable-item"),hit=false;if(!selectee||selectee.element===that.element[0]){return}if(options.tolerance==="touch"){hit=(!(selectee.left>x2||selectee.righty2||selectee.bottomx1&&selectee.righty1&&selectee.bottomreference)&&(x<(reference+size))}function isFloating(item){return(/left|right/).test(item.css("float"))||(/inline|table-cell/).test(item.css("display"))}$.widget("ui.sortable",$.ui.mouse,{version:"1.10.2",widgetEventPrefix:"sort",ready:false,options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var o=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?o.axis==="x"||isFloating(this.items[0].item):false;this.offset=this.element.offset();this._mouseInit();this.ready=true},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled");this._mouseDestroy();for(var i=this.items.length-1;i>=0;i--){this.items[i].item.removeData(this.widgetName+"-item")}return this},_setOption:function(key,value){if(key==="disabled"){this.options[key]=value;this.widget().toggleClass("ui-sortable-disabled",!!value)}else{$.Widget.prototype._setOption.apply(this,arguments)}},_mouseCapture:function(event,overrideHandle){var currentItem=null,validHandle=false,that=this;if(this.reverting){return false}if(this.options.disabled||this.options.type==="static"){return false}this._refreshItems(event);$(event.target).parents().each(function(){if($.data(this,that.widgetName+"-item")===that){currentItem=$(this);return false}});if($.data(event.target,that.widgetName+"-item")===that){currentItem=$(event.target)}if(!currentItem){return false}if(this.options.handle&&!overrideHandle){$(this.options.handle,currentItem).find("*").addBack().each(function(){if(this===event.target){validHandle=true}});if(!validHandle){return false}}this.currentItem=currentItem;this._removeCurrentsFromItems();return true},_mouseStart:function(event,overrideHandle,noActivation){var i,body,o=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(event);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};$.extend(this.offset,{click:{left:event.pageX-this.offset.left,top:event.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");this.originalPosition=this._generatePosition(event);this.originalPageX=event.pageX;this.originalPageY=event.pageY;(o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt));this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!==this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(o.containment){this._setContainment()}if(o.cursor&&o.cursor!=="auto"){body=this.document.find("body");this.storedCursor=body.css("cursor");body.css("cursor",o.cursor);this.storedStylesheet=$("").appendTo(body)}if(o.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",o.opacity)}if(o.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",o.zIndex)}if(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",event,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!noActivation){for(i=this.containers.length-1;i>=0;i--){this.containers[i]._trigger("activate",event,this._uiHash(this))}}if($.ui.ddmanager){$.ui.ddmanager.current=this}if($.ui.ddmanager&&!o.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,event)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(event);return true},_mouseDrag:function(event){var i,item,itemElement,intersection,o=this.options,scrolled=false;this.position=this._generatePosition(event);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){if(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-event.pageY=0;i--){item=this.items[i];itemElement=item.item[0];intersection=this._intersectsWithPointer(item);if(!intersection){continue}if(item.instance!==this.currentContainer){continue}if(itemElement!==this.currentItem[0]&&this.placeholder[intersection===1?"next":"prev"]()[0]!==itemElement&&!$.contains(this.placeholder[0],itemElement)&&(this.options.type==="semi-dynamic"?!$.contains(this.element[0],itemElement):true)){this.direction=intersection===1?"down":"up";if(this.options.tolerance==="pointer"||this._intersectsWithSides(item)){this._rearrange(event,item)}else{break}this._trigger("change",event,this._uiHash());break}}this._contactContainers(event);if($.ui.ddmanager){$.ui.ddmanager.drag(this,event)}this._trigger("sort",event,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(event,noPropagation){if(!event){return}if($.ui.ddmanager&&!this.options.dropBehaviour){$.ui.ddmanager.drop(this,event)}if(this.options.revert){var that=this,cur=this.placeholder.offset(),axis=this.options.axis,animation={};if(!axis||axis==="x"){animation.left=cur.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)}if(!axis||axis==="y"){animation.top=cur.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)}this.reverting=true;$(this.helper).animate(animation,parseInt(this.options.revert,10)||500,function(){that._clear(event)})}else{this._clear(event,noPropagation)}return false},cancel:function(){if(this.dragging){this._mouseUp({target:null});if(this.options.helper==="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var i=this.containers.length-1;i>=0;i--){this.containers[i]._trigger("deactivate",null,this._uiHash(this));if(this.containers[i].containerCache.over){this.containers[i]._trigger("out",null,this._uiHash(this));this.containers[i].containerCache.over=0}}}if(this.placeholder){if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}$.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){$(this.domPosition.prev).after(this.currentItem)}else{$(this.domPosition.parent).prepend(this.currentItem)}}return this},serialize:function(o){var items=this._getItemsAsjQuery(o&&o.connected),str=[];o=o||{};$(items).each(function(){var res=($(o.item||this).attr(o.attribute||"id")||"").match(o.expression||(/(.+)[\-=_](.+)/));if(res){str.push((o.key||res[1]+"[]")+"="+(o.key&&o.expression?res[1]:res[2]))}});if(!str.length&&o.key){str.push(o.key+"=")}return str.join("&")},toArray:function(o){var items=this._getItemsAsjQuery(o&&o.connected),ret=[];o=o||{};items.each(function(){ret.push($(o.item||this).attr(o.attribute||"id")||"")});return ret},_intersectsWith:function(item){var x1=this.positionAbs.left,x2=x1+this.helperProportions.width,y1=this.positionAbs.top,y2=y1+this.helperProportions.height,l=item.left,r=l+item.width,t=item.top,b=t+item.height,dyClick=this.offset.click.top,dxClick=this.offset.click.left,isOverElement=(y1+dyClick)>t&&(y1+dyClick)l&&(x1+dxClick)item[this.floating?"width":"height"])){return isOverElement}else{return(l0?"down":"up")},_getDragHorizontalDirection:function(){var delta=this.positionAbs.left-this.lastPositionAbs.left;return delta!==0&&(delta>0?"right":"left")},refresh:function(event){this._refreshItems(event);this.refreshPositions();return this},_connectWith:function(){var options=this.options;return options.connectWith.constructor===String?[options.connectWith]:options.connectWith},_getItemsAsjQuery:function(connected){var i,j,cur,inst,items=[],queries=[],connectWith=this._connectWith();if(connectWith&&connected){for(i=connectWith.length-1;i>=0;i--){cur=$(connectWith[i]);for(j=cur.length-1;j>=0;j--){inst=$.data(cur[j],this.widgetFullName);if(inst&&inst!==this&&!inst.options.disabled){queries.push([$.isFunction(inst.options.items)?inst.options.items.call(inst.element):$(inst.options.items,inst.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),inst])}}}}queries.push([$.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):$(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(i=queries.length-1;i>=0;i--){queries[i][0].each(function(){items.push(this)})}return $(items)},_removeCurrentsFromItems:function(){var list=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=$.grep(this.items,function(item){for(var j=0;j=0;i--){cur=$(connectWith[i]);for(j=cur.length-1;j>=0;j--){inst=$.data(cur[j],this.widgetFullName);if(inst&&inst!==this&&!inst.options.disabled){queries.push([$.isFunction(inst.options.items)?inst.options.items.call(inst.element[0],event,{item:this.currentItem}):$(inst.options.items,inst.element),inst]);this.containers.push(inst)}}}}for(i=queries.length-1;i>=0;i--){targetData=queries[i][1];_queries=queries[i][0];for(j=0,queriesLength=_queries.length;j=0;i--){item=this.items[i];if(item.instance!==this.currentContainer&&this.currentContainer&&item.item[0]!==this.currentItem[0]){continue}t=this.options.toleranceElement?$(this.options.toleranceElement,item.item):item.item;if(!fast){item.width=t.outerWidth();item.height=t.outerHeight()}p=t.offset();item.left=p.left;item.top=p.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(i=this.containers.length-1;i>=0;i--){p=this.containers[i].element.offset();this.containers[i].containerCache.left=p.left;this.containers[i].containerCache.top=p.top;this.containers[i].containerCache.width=this.containers[i].element.outerWidth();this.containers[i].containerCache.height=this.containers[i].element.outerHeight()}}return this},_createPlaceholder:function(that){that=that||this;var className,o=that.options;if(!o.placeholder||o.placeholder.constructor===String){className=o.placeholder;o.placeholder={element:function(){var nodeName=that.currentItem[0].nodeName.toLowerCase(),element=$(that.document[0].createElement(nodeName)).addClass(className||that.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");if(nodeName==="tr"){element.append(" ")}else if(nodeName==="img"){element.attr("src",that.currentItem.attr("src"))}if(!className){element.css("visibility","hidden")}return element},update:function(container,p){if(className&&!o.forcePlaceholderSize){return}if(!p.height()){p.height(that.currentItem.innerHeight()-parseInt(that.currentItem.css("paddingTop")||0,10)-parseInt(that.currentItem.css("paddingBottom")||0,10))}if(!p.width()){p.width(that.currentItem.innerWidth()-parseInt(that.currentItem.css("paddingLeft")||0,10)-parseInt(that.currentItem.css("paddingRight")||0,10))}}}}that.placeholder=$(o.placeholder.element.call(that.element,that.currentItem));that.currentItem.after(that.placeholder);o.placeholder.update(that,that.placeholder)},_contactContainers:function(event){var i,j,dist,itemWithLeastDistance,posProperty,sizeProperty,base,cur,nearBottom,floating,innermostContainer=null,innermostIndex=null;for(i=this.containers.length-1;i>=0;i--){if($.contains(this.currentItem[0],this.containers[i].element[0])){continue}if(this._intersectsWith(this.containers[i].containerCache)){if(innermostContainer&&$.contains(this.containers[i].element[0],innermostContainer.element[0])){continue}innermostContainer=this.containers[i];innermostIndex=i}else{if(this.containers[i].containerCache.over){this.containers[i]._trigger("out",event,this._uiHash(this));this.containers[i].containerCache.over=0}}}if(!innermostContainer){return}if(this.containers.length===1){if(!this.containers[innermostIndex].containerCache.over){this.containers[innermostIndex]._trigger("over",event,this._uiHash(this));this.containers[innermostIndex].containerCache.over=1}}else{dist=10000;itemWithLeastDistance=null;floating=innermostContainer.floating||isFloating(this.currentItem);posProperty=floating?"left":"top";sizeProperty=floating?"width":"height";base=this.positionAbs[posProperty]+this.offset.click[posProperty];for(j=this.items.length-1;j>=0;j--){if(!$.contains(this.containers[innermostIndex].element[0],this.items[j].item[0])){continue}if(this.items[j].item[0]===this.currentItem[0]){continue}if(floating&&!isOverAxis(this.positionAbs.top+this.offset.click.top,this.items[j].top,this.items[j].height)){continue}cur=this.items[j].item.offset()[posProperty];nearBottom=false;if(Math.abs(cur-base)>Math.abs(cur+this.items[j][sizeProperty]-base)){nearBottom=true;cur+=this.items[j][sizeProperty]}if(Math.abs(cur-base)this.containment[2]){pageX=this.containment[2]+this.offset.click.left}if(event.pageY-this.offset.click.top>this.containment[3]){pageY=this.containment[3]+this.offset.click.top}}if(o.grid){top=this.originalPageY+Math.round((pageY-this.originalPageY)/o.grid[1])*o.grid[1];pageY=this.containment?((top-this.offset.click.top>=this.containment[1]&&top-this.offset.click.top<=this.containment[3])?top:((top-this.offset.click.top>=this.containment[1])?top-o.grid[1]:top+o.grid[1])):top;left=this.originalPageX+Math.round((pageX-this.originalPageX)/o.grid[0])*o.grid[0];pageX=this.containment?((left-this.offset.click.left>=this.containment[0]&&left-this.offset.click.left<=this.containment[2])?left:((left-this.offset.click.left>=this.containment[0])?left-o.grid[0]:left+o.grid[0])):left}}return{top:(pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():(scrollIsRootNode?0:scroll.scrollTop())))),left:(pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():scrollIsRootNode?0:scroll.scrollLeft())))}},_rearrange:function(event,i,a,hardRefresh){a?a[0].appendChild(this.placeholder[0]):i.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction==="down"?i.item[0]:i.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var counter=this.counter;this._delay(function(){if(counter===this.counter){this.refreshPositions(!hardRefresh)}})},_clear:function(event,noPropagation){this.reverting=false;var i,delayedTriggers=[];if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(i in this._storedCSS){if(this._storedCSS[i]==="auto"||this._storedCSS[i]==="static"){this._storedCSS[i]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!noPropagation){delayedTriggers.push(function(event){this._trigger("receive",event,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!noPropagation){delayedTriggers.push(function(event){this._trigger("update",event,this._uiHash())})}if(this!==this.currentContainer){if(!noPropagation){delayedTriggers.push(function(event){this._trigger("remove",event,this._uiHash())});delayedTriggers.push((function(c){return function(event){c._trigger("receive",event,this._uiHash(this))}}).call(this,this.currentContainer));delayedTriggers.push((function(c){return function(event){c._trigger("update",event,this._uiHash(this))}}).call(this,this.currentContainer))}}for(i=this.containers.length-1;i>=0;i--){if(!noPropagation){delayedTriggers.push((function(c){return function(event){c._trigger("deactivate",event,this._uiHash(this))}}).call(this,this.containers[i]))}if(this.containers[i].containerCache.over){delayedTriggers.push((function(c){return function(event){c._trigger("out",event,this._uiHash(this))}}).call(this,this.containers[i]));this.containers[i].containerCache.over=0}}if(this.storedCursor){this.document.find("body").css("cursor",this.storedCursor);this.storedStylesheet.remove()}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!noPropagation){this._trigger("beforeStop",event,this._uiHash());for(i=0;i")[0],colors,each=jQuery.each;supportElem.style.cssText="background-color:rgba(1,1,1,.5)";support.rgba=supportElem.style.backgroundColor.indexOf("rgba")>-1;each(spaces,function(spaceName,space){space.cache="_"+spaceName;space.props.alpha={idx:3,type:"percent",def:1}});function clamp(value,prop,allowEmpty){var type=propTypes[prop.type]||{};if(value==null){return(allowEmpty||!prop.def)?null:prop.def}value=type.floor?~~value:parseFloat(value);if(isNaN(value)){return prop.def}if(type.mod){return(value+type.mod)%type.mod}return 0>value?0:type.maxtype.mod/2){startValue+=type.mod}else if(startValue-endValue>type.mod/2){startValue-=type.mod}}result[index]=clamp((endValue-startValue)*distance+startValue,prop)}});return this[spaceName](result)},blend:function(opaque){if(this._rgba[3]===1){return this}var rgb=this._rgba.slice(),a=rgb.pop(),blend=color(opaque)._rgba;return color(jQuery.map(rgb,function(v,i){return(1-a)*blend[i]+a*v}))},toRgbaString:function(){var prefix="rgba(",rgba=jQuery.map(this._rgba,function(v,i){return v==null?(i>2?1:0):v});if(rgba[3]===1){rgba.pop();prefix="rgb("}return prefix+rgba.join()+")"},toHslaString:function(){var prefix="hsla(",hsla=jQuery.map(this.hsla(),function(v,i){if(v==null){v=i>2?1:0}if(i&&i<3){v=Math.round(v*100)+"%"}return v});if(hsla[3]===1){hsla.pop();prefix="hsl("}return prefix+hsla.join()+")"},toHexString:function(includeAlpha){var rgba=this._rgba.slice(),alpha=rgba.pop();if(includeAlpha){rgba.push(~~(alpha*255))}return"#"+jQuery.map(rgba,function(v){v=(v||0).toString(16);return v.length===1?"0"+v:v}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});color.fn.parse.prototype=color.fn;function hue2rgb(p,q,h){h=(h+1)%1;if(h*6<1){return p+(q-p)*h*6}if(h*2<1){return q}if(h*3<2){return p+(q-p)*((2/3)-h)*6}return p}spaces.hsla.to=function(rgba){if(rgba[0]==null||rgba[1]==null||rgba[2]==null){return[null,null,null,rgba[3]]}var r=rgba[0]/255,g=rgba[1]/255,b=rgba[2]/255,a=rgba[3],max=Math.max(r,g,b),min=Math.min(r,g,b),diff=max-min,add=max+min,l=add*0.5,h,s;if(min===max){h=0}else if(r===max){h=(60*(g-b)/diff)+360}else if(g===max){h=(60*(b-r)/diff)+120}else{h=(60*(r-g)/diff)+240}if(diff===0){s=0}else if(l<=0.5){s=diff/add}else{s=diff/(2-add)}return[Math.round(h)%360,s,l,a==null?1:a]};spaces.hsla.from=function(hsla){if(hsla[0]==null||hsla[1]==null||hsla[2]==null){return[null,null,null,hsla[3]]}var h=hsla[0]/360,s=hsla[1],l=hsla[2],a=hsla[3],q=l<=0.5?l*(1+s):l+s-l*s,p=2*l-q;return[Math.round(hue2rgb(p,q,h+(1/3))*255),Math.round(hue2rgb(p,q,h)*255),Math.round(hue2rgb(p,q,h-(1/3))*255),a]};each(spaces,function(spaceName,space){var props=space.props,cache=space.cache,to=space.to,from=space.from;color.fn[spaceName]=function(value){if(to&&!this[cache]){this[cache]=to(this._rgba)}if(value===undefined){return this[cache].slice()}var ret,type=jQuery.type(value),arr=(type==="array"||type==="object")?value:arguments,local=this[cache].slice();each(props,function(key,prop){var val=arr[type==="object"?key:prop.idx];if(val==null){val=local[prop.idx]}local[prop.idx]=clamp(val,prop)});if(from){ret=color(from(local));ret[cache]=local;return ret}else{return color(local)}};each(props,function(key,prop){if(color.fn[key]){return}color.fn[key]=function(value){var vtype=jQuery.type(value),fn=(key==="alpha"?(this._hsla?"hsla":"rgba"):spaceName),local=this[fn](),cur=local[prop.idx],match;if(vtype==="undefined"){return cur}if(vtype==="function"){value=value.call(this,cur);vtype=jQuery.type(value)}if(value==null&&prop.empty){return this}if(vtype==="string"){match=rplusequals.exec(value);if(match){value=cur+parseFloat(match[2])*(match[1]==="+"?1:-1)}}local[prop.idx]=value;return this[fn](local)}})});color.hook=function(hook){var hooks=hook.split(" ");each(hooks,function(i,hook){jQuery.cssHooks[hook]={set:function(elem,value){var parsed,curElem,backgroundColor="";if(value!=="transparent"&&(jQuery.type(value)!=="string"||(parsed=stringParse(value)))){value=color(parsed||value);if(!support.rgba&&value._rgba[3]!==1){curElem=hook==="backgroundColor"?elem.parentNode:elem;while((backgroundColor===""||backgroundColor==="transparent")&&curElem&&curElem.style){try{backgroundColor=jQuery.css(curElem,"backgroundColor");curElem=curElem.parentNode}catch(e){}}value=value.blend(backgroundColor&&backgroundColor!=="transparent"?backgroundColor:"_default")}value=value.toRgbaString()}try{elem.style[hook]=value}catch(e){}}};jQuery.fx.step[hook]=function(fx){if(!fx.colorInit){fx.start=color(fx.elem,hook);fx.end=color(fx.end);fx.colorInit=true}jQuery.cssHooks[hook].set(fx.elem,fx.start.transition(fx.end,fx.pos))}})};color.hook(stepHooks);jQuery.cssHooks.borderColor={expand:function(value){var expanded={};each(["Top","Right","Bottom","Left"],function(i,part){expanded["border"+part+"Color"]=value});return expanded}};colors=jQuery.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(jQuery);(function(){var classAnimationActions=["add","remove","toggle"],shorthandStyles={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};$.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(_,prop){$.fx.step[prop]=function(fx){if(fx.end!=="none"&&!fx.setAttr||fx.pos===1&&!fx.setAttr){jQuery.style(fx.elem,prop,fx.end);fx.setAttr=true}}});function getElementStyles(elem){var key,len,style=elem.ownerDocument.defaultView?elem.ownerDocument.defaultView.getComputedStyle(elem,null):elem.currentStyle,styles={};if(style&&style.length&&style[0]&&style[style[0]]){len=style.length;while(len--){key=style[len];if(typeof style[key]==="string"){styles[$.camelCase(key)]=style[key]}}}else{for(key in style){if(typeof style[key]==="string"){styles[key]=style[key]}}}return styles}function styleDifference(oldStyle,newStyle){var diff={},name,value;for(name in newStyle){value=newStyle[name];if(oldStyle[name]!==value){if(!shorthandStyles[name]){if($.fx.step[name]||!isNaN(parseFloat(value))){diff[name]=value}}}}return diff}if(!$.fn.addBack){$.fn.addBack=function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector))}}$.effects.animateClass=function(value,duration,easing,callback){var o=$.speed(duration,easing,callback);return this.queue(function(){var animated=$(this),baseClass=animated.attr("class")||"",applyClassChange,allAnimations=o.children?animated.find("*").addBack():animated;allAnimations=allAnimations.map(function(){var el=$(this);return{el:el,start:getElementStyles(this)}});applyClassChange=function(){$.each(classAnimationActions,function(i,action){if(value[action]){animated[action+"Class"](value[action])}})};applyClassChange();allAnimations=allAnimations.map(function(){this.end=getElementStyles(this.el[0]);this.diff=styleDifference(this.start,this.end);return this});animated.attr("class",baseClass);allAnimations=allAnimations.map(function(){var styleInfo=this,dfd=$.Deferred(),opts=$.extend({},o,{queue:false,complete:function(){dfd.resolve(styleInfo)}});this.el.animate(this.diff,opts);return dfd.promise()});$.when.apply($,allAnimations.get()).done(function(){applyClassChange();$.each(arguments,function(){var el=this.el;$.each(this.diff,function(key){el.css(key,"")})});o.complete.call(animated[0])})})};$.fn.extend({addClass:(function(orig){return function(classNames,speed,easing,callback){return speed?$.effects.animateClass.call(this,{add:classNames},speed,easing,callback):orig.apply(this,arguments)}})($.fn.addClass),removeClass:(function(orig){return function(classNames,speed,easing,callback){return arguments.length>1?$.effects.animateClass.call(this,{remove:classNames},speed,easing,callback):orig.apply(this,arguments)}})($.fn.removeClass),toggleClass:(function(orig){return function(classNames,force,speed,easing,callback){if(typeof force==="boolean"||force===undefined){if(!speed){return orig.apply(this,arguments)}else{return $.effects.animateClass.call(this,(force?{add:classNames}:{remove:classNames}),speed,easing,callback)}}else{return $.effects.animateClass.call(this,{toggle:classNames},force,speed,easing)}}})($.fn.toggleClass),switchClass:function(remove,add,speed,easing,callback){return $.effects.animateClass.call(this,{add:add,remove:remove},speed,easing,callback)}})})();(function(){$.extend($.effects,{version:"1.10.2",save:function(element,set){for(var i=0;i
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),size={width:element.width(),height:element.height()},active=document.activeElement;try{active.id}catch(e){active=document.body}element.wrap(wrapper);if(element[0]===active||$.contains(element[0],active)){$(active).focus()}wrapper=element.parent();if(element.css("position")==="static"){wrapper.css({position:"relative"});element.css({position:"relative"})}else{$.extend(props,{position:element.css("position"),zIndex:element.css("z-index")});$.each(["top","left","bottom","right"],function(i,pos){props[pos]=element.css(pos);if(isNaN(parseInt(props[pos],10))){props[pos]="auto"}});element.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}element.css(size);return wrapper.css(props).show()},removeWrapper:function(element){var active=document.activeElement;if(element.parent().is(".ui-effects-wrapper")){element.parent().replaceWith(element);if(element[0]===active||$.contains(element[0],active)){$(active).focus()}}return element},setTransition:function(element,list,factor,value){value=value||{};$.each(list,function(i,x){var unit=element.cssUnit(x);if(unit[0]>0){value[x]=unit[0]*factor+unit[1]}});return value}});function _normalizeArguments(effect,options,speed,callback){if($.isPlainObject(effect)){options=effect;effect=effect.effect}effect={effect:effect};if(options==null){options={}}if($.isFunction(options)){callback=options;speed=null;options={}}if(typeof options==="number"||$.fx.speeds[options]){callback=speed;speed=options;options={}}if($.isFunction(speed)){callback=speed;speed=null}if(options){$.extend(effect,options)}speed=speed||options.duration;effect.duration=$.fx.off?0:typeof speed==="number"?speed:speed in $.fx.speeds?$.fx.speeds[speed]:$.fx.speeds._default;effect.complete=callback||options.complete;return effect}function standardAnimationOption(option){if(!option||typeof option==="number"||$.fx.speeds[option]){return true}if(typeof option==="string"&&!$.effects.effect[option]){return true}if($.isFunction(option)){return true}if(typeof option==="object"&&!option.effect){return true}return false}$.fn.extend({effect:function(){var args=_normalizeArguments.apply(this,arguments),mode=args.mode,queue=args.queue,effectMethod=$.effects.effect[args.effect];if($.fx.off||!effectMethod){if(mode){return this[mode](args.duration,args.complete)}else{return this.each(function(){if(args.complete){args.complete.call(this)}})}}function run(next){var elem=$(this),complete=args.complete,mode=args.mode;function done(){if($.isFunction(complete)){complete.call(elem[0])}if($.isFunction(next)){next()}}if(elem.is(":hidden")?mode==="hide":mode==="show"){elem[mode]();done()}else{effectMethod.call(elem[0],args,done)}}return queue===false?this.each(run):this.queue(queue||"fx",run)},show:(function(orig){return function(option){if(standardAnimationOption(option)){return orig.apply(this,arguments)}else{var args=_normalizeArguments.apply(this,arguments);args.mode="show";return this.effect.call(this,args)}}})($.fn.show),hide:(function(orig){return function(option){if(standardAnimationOption(option)){return orig.apply(this,arguments)}else{var args=_normalizeArguments.apply(this,arguments);args.mode="hide";return this.effect.call(this,args)}}})($.fn.hide),toggle:(function(orig){return function(option){if(standardAnimationOption(option)||typeof option==="boolean"){return orig.apply(this,arguments)}else{var args=_normalizeArguments.apply(this,arguments);args.mode="toggle";return this.effect.call(this,args)}}})($.fn.toggle),cssUnit:function(key){var style=this.css(key),val=[];$.each(["em","px","%","pt"],function(i,unit){if(style.indexOf(unit)>0){val=[parseFloat(style),unit]}});return val}})})();(function(){var baseEasings={};$.each(["Quad","Cubic","Quart","Quint","Expo"],function(i,name){baseEasings[name]=function(p){return Math.pow(p,i+2)}});$.extend(baseEasings,{Sine:function(p){return 1-Math.cos(p*Math.PI/2)},Circ:function(p){return 1-Math.sqrt(1-p*p)},Elastic:function(p){return p===0||p===1?p:-Math.pow(2,8*(p-1))*Math.sin(((p-1)*80-7.5)*Math.PI/15)},Back:function(p){return p*p*(3*p-2)},Bounce:function(p){var pow2,bounce=4;while(p<((pow2=Math.pow(2,--bounce))-1)/11){}return 1/Math.pow(4,3-bounce)-7.5625*Math.pow((pow2*3-2)/22-p,2)}});$.each(baseEasings,function(name,easeIn){$.easing["easeIn"+name]=easeIn;$.easing["easeOut"+name]=function(p){return 1-easeIn(1-p)};$.easing["easeInOut"+name]=function(p){return p<0.5?easeIn(p*2)/2:1-easeIn(p*-2+2)/2}})})()})(jQuery);(function($,undefined){var uid=0,hideProps={},showProps={};hideProps.height=hideProps.paddingTop=hideProps.paddingBottom=hideProps.borderTopWidth=hideProps.borderBottomWidth="hide";showProps.height=showProps.paddingTop=showProps.paddingBottom=showProps.borderTopWidth=showProps.borderBottomWidth="show";$.widget("ui.accordion",{version:"1.10.2",options:{active:0,animate:{},collapsible:false,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var options=this.options;this.prevShow=this.prevHide=$();this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist");if(!options.collapsible&&(options.active===false||options.active==null)){options.active=0}this._processPanels();if(options.active<0){options.active+=this.headers.length}this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:!this.active.length?$():this.active.next(),content:!this.active.length?$():this.active.next()}},_createIcons:function(){var icons=this.options.icons;if(icons){$("").addClass("ui-accordion-header-icon ui-icon "+icons.header).prependTo(this.headers);this.active.children(".ui-accordion-header-icon").removeClass(icons.header).addClass(icons.activeHeader);this.headers.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var contents;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){if(/^ui-accordion/.test(this.id)){this.removeAttribute("id")}});this._destroyIcons();contents=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){if(/^ui-accordion/.test(this.id)){this.removeAttribute("id")}});if(this.options.heightStyle!=="content"){contents.css("height","")}},_setOption:function(key,value){if(key==="active"){this._activate(value);return}if(key==="event"){if(this.options.event){this._off(this.headers,this.options.event)}this._setupEvents(value)}this._super(key,value);if(key==="collapsible"&&!value&&this.options.active===false){this._activate(0)}if(key==="icons"){this._destroyIcons();if(value){this._createIcons()}}if(key==="disabled"){this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!value)}},_keydown:function(event){if(event.altKey||event.ctrlKey){return}var keyCode=$.ui.keyCode,length=this.headers.length,currentIndex=this.headers.index(event.target),toFocus=false;switch(event.keyCode){case keyCode.RIGHT:case keyCode.DOWN:toFocus=this.headers[(currentIndex+1)%length];break;case keyCode.LEFT:case keyCode.UP:toFocus=this.headers[(currentIndex-1+length)%length];break;case keyCode.SPACE:case keyCode.ENTER:this._eventHandler(event);break;case keyCode.HOME:toFocus=this.headers[0];break;case keyCode.END:toFocus=this.headers[length-1];break}if(toFocus){$(event.target).attr("tabIndex",-1);$(toFocus).attr("tabIndex",0);toFocus.focus();event.preventDefault()}},_panelKeyDown:function(event){if(event.keyCode===$.ui.keyCode.UP&&event.ctrlKey){$(event.currentTarget).prev().focus()}},refresh:function(){var options=this.options;this._processPanels();if((options.active===false&&options.collapsible===true)||!this.headers.length){options.active=false;this.active=$()}if(options.active===false){this._activate(0)}else if(this.active.length&&!$.contains(this.element[0],this.active[0])){if(this.headers.length===this.headers.find(".ui-state-disabled").length){options.active=false;this.active=$()}else{this._activate(Math.max(0,options.active-1))}}else{options.active=this.headers.index(this.active)}this._destroyIcons();this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all");this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var maxHeight,options=this.options,heightStyle=options.heightStyle,parent=this.element.parent(),accordionId=this.accordionId="ui-accordion-"+(this.element.attr("id")||++uid);this.active=this._findActive(options.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all");this.active.next().addClass("ui-accordion-content-active").show();this.headers.attr("role","tab").each(function(i){var header=$(this),headerId=header.attr("id"),panel=header.next(),panelId=panel.attr("id");if(!headerId){headerId=accordionId+"-header-"+i;header.attr("id",headerId)}if(!panelId){panelId=accordionId+"-panel-"+i;panel.attr("id",panelId)}header.attr("aria-controls",panelId);panel.attr("aria-labelledby",headerId)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex",0)}else{this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"})}this._createIcons();this._setupEvents(options.event);if(heightStyle==="fill"){maxHeight=parent.height();this.element.siblings(":visible").each(function(){var elem=$(this),position=elem.css("position");if(position==="absolute"||position==="fixed"){return}maxHeight-=elem.outerHeight(true)});this.headers.each(function(){maxHeight-=$(this).outerHeight(true)});this.headers.next().each(function(){$(this).height(Math.max(0,maxHeight-$(this).innerHeight()+$(this).height()))}).css("overflow","auto")}else if(heightStyle==="auto"){maxHeight=0;this.headers.next().each(function(){maxHeight=Math.max(maxHeight,$(this).css("height","").height())}).height(maxHeight)}},_activate:function(index){var active=this._findActive(index)[0];if(active===this.active[0]){return}active=active||this.active[0];this._eventHandler({target:active,currentTarget:active,preventDefault:$.noop})},_findActive:function(selector){return typeof selector==="number"?this.headers.eq(selector):$()},_setupEvents:function(event){var events={keydown:"_keydown"};if(event){$.each(event.split(" "),function(index,eventName){events[eventName]="_eventHandler"})}this._off(this.headers.add(this.headers.next()));this._on(this.headers,events);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(event){var options=this.options,active=this.active,clicked=$(event.currentTarget),clickedIsActive=clicked[0]===active[0],collapsing=clickedIsActive&&options.collapsible,toShow=collapsing?$():clicked.next(),toHide=active.next(),eventData={oldHeader:active,oldPanel:toHide,newHeader:collapsing?$():clicked,newPanel:toShow};event.preventDefault();if((clickedIsActive&&!options.collapsible)||(this._trigger("beforeActivate",event,eventData)===false)){return}options.active=collapsing?false:this.headers.index(clicked);this.active=clickedIsActive?$():clicked;this._toggle(eventData);active.removeClass("ui-accordion-header-active ui-state-active");if(options.icons){active.children(".ui-accordion-header-icon").removeClass(options.icons.activeHeader).addClass(options.icons.header)}if(!clickedIsActive){clicked.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top");if(options.icons){clicked.children(".ui-accordion-header-icon").removeClass(options.icons.header).addClass(options.icons.activeHeader)}clicked.next().addClass("ui-accordion-content-active")}},_toggle:function(data){var toShow=data.newPanel,toHide=this.prevShow.length?this.prevShow:data.oldPanel;this.prevShow.add(this.prevHide).stop(true,true);this.prevShow=toShow;this.prevHide=toHide;if(this.options.animate){this._animate(toShow,toHide,data)}else{toHide.hide();toShow.show();this._toggleComplete(data)}toHide.attr({"aria-expanded":"false","aria-hidden":"true"});toHide.prev().attr("aria-selected","false");if(toShow.length&&toHide.length){toHide.prev().attr("tabIndex",-1)}else if(toShow.length){this.headers.filter(function(){return $(this).attr("tabIndex")===0}).attr("tabIndex",-1)}toShow.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(toShow,toHide,data){var total,easing,duration,that=this,adjust=0,down=toShow.length&&(!toHide.length||(toShow.index()",options:{appendTo:null,autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var suppressKeyPress,suppressKeyPressRepeat,suppressInput,nodeName=this.element[0].nodeName.toLowerCase(),isTextarea=nodeName==="textarea",isInput=nodeName==="input";this.isMultiLine=isTextarea?true:isInput?false:this.element.prop("isContentEditable");this.valueMethod=this.element[isTextarea||isInput?"val":"text"];this.isNewMenu=true;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off");this._on(this.element,{keydown:function(event){if(this.element.prop("readOnly")){suppressKeyPress=true;suppressInput=true;suppressKeyPressRepeat=true;return}suppressKeyPress=false;suppressInput=false;suppressKeyPressRepeat=false;var keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.PAGE_UP:suppressKeyPress=true;this._move("previousPage",event);break;case keyCode.PAGE_DOWN:suppressKeyPress=true;this._move("nextPage",event);break;case keyCode.UP:suppressKeyPress=true;this._keyEvent("previous",event);break;case keyCode.DOWN:suppressKeyPress=true;this._keyEvent("next",event);break;case keyCode.ENTER:case keyCode.NUMPAD_ENTER:if(this.menu.active){suppressKeyPress=true;event.preventDefault();this.menu.select(event)}break;case keyCode.TAB:if(this.menu.active){this.menu.select(event)}break;case keyCode.ESCAPE:if(this.menu.element.is(":visible")){this._value(this.term);this.close(event);event.preventDefault()}break;default:suppressKeyPressRepeat=true;this._searchTimeout(event);break}},keypress:function(event){if(suppressKeyPress){suppressKeyPress=false;event.preventDefault();return}if(suppressKeyPressRepeat){return}var keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.PAGE_UP:this._move("previousPage",event);break;case keyCode.PAGE_DOWN:this._move("nextPage",event);break;case keyCode.UP:this._keyEvent("previous",event);break;case keyCode.DOWN:this._keyEvent("next",event);break}},input:function(event){if(suppressInput){suppressInput=false;event.preventDefault();return}this._searchTimeout(event)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(event){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching);this.close(event);this._change(event)}});this._initSource();this.menu=$("
"+((numMonths[0]>0&&col===numMonths[1]-1)?"
":""):"");group+=calender}html+=group}html+=buttonPanel;inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,secondary,monthNames,monthNamesShort){var inMinYear,inMaxYear,month,years,thisYear,determineYear,year,endYear,changeMonth=this._get(inst,"changeMonth"),changeYear=this._get(inst,"changeYear"),showMonthAfterYear=this._get(inst,"showMonthAfterYear"),html="
",monthHtml="";if(secondary||!changeMonth){monthHtml+=""+monthNames[drawMonth]+""}else{inMinYear=(minDate&&minDate.getFullYear()===drawYear);inMaxYear=(maxDate&&maxDate.getFullYear()===drawYear);monthHtml+=""}if(!showMonthAfterYear){html+=monthHtml+(secondary||!(changeMonth&&changeYear)?" ":"")}if(!inst.yearshtml){inst.yearshtml="";if(secondary||!changeYear){html+=""+drawYear+""}else{years=this._get(inst,"yearRange").split(":");thisYear=new Date().getFullYear();determineYear=function(value){var year=(value.match(/c[+\-].*/)?drawYear+parseInt(value.substring(1),10):(value.match(/[+\-].*/)?thisYear+parseInt(value,10):parseInt(value,10)));return(isNaN(year)?thisYear:year)};year=determineYear(years[0]);endYear=Math.max(year,determineYear(years[1]||""));year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);inst.yearshtml+="";html+=inst.yearshtml;inst.yearshtml=null}}html+=this._get(inst,"yearSuffix");if(showMonthAfterYear){html+=(secondary||!(changeMonth&&changeYear)?" ":"")+monthHtml}html+="
";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period==="Y"?offset:0),month=inst.drawMonth+(period==="M"?offset:0),day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period==="D"?offset:0),date=this._restrictMinMax(inst,this._daylightSavingAdjust(new Date(year,month,day)));inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period==="M"||period==="Y"){this._notifyChange(inst)}},_restrictMinMax:function(inst,date){var minDate=this._getMinMaxDate(inst,"min"),maxDate=this._getMinMaxDate(inst,"max"),newDate=(minDate&&datemaxDate?maxDate:newDate)},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths==="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax){return this._determineDate(inst,this._get(inst,minMax+"Date"),null)},_getDaysInMonth:function(year,month){return 32-this._daylightSavingAdjust(new Date(year,month,32)).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst),date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[0]*numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var yearSplit,currentYear,minDate=this._getMinMaxDate(inst,"min"),maxDate=this._getMinMaxDate(inst,"max"),minYear=null,maxYear=null,years=this._get(inst,"yearRange");if(years){yearSplit=years.split(":");currentYear=new Date().getFullYear();minYear=parseInt(yearSplit[0],10);maxYear=parseInt(yearSplit[1],10);if(yearSplit[0].match(/[+\-].*/)){minYear+=currentYear}if(yearSplit[1].match(/[+\-].*/)){maxYear+=currentYear}}return((!minDate||date.getTime()>=minDate.getTime())&&(!maxDate||date.getTime()<=maxDate.getTime())&&(!minYear||date.getFullYear()>=minYear)&&(!maxYear||date.getFullYear()<=maxYear))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!=="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day==="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function bindHover(dpDiv){var selector="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return dpDiv.delegate(selector,"mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){$(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){$(this).removeClass("ui-datepicker-next-hover")}}).delegate(selector,"mouseover",function(){if(!$.datepicker._isDisabledDatepicker(instActive.inline?dpDiv.parent()[0]:instActive.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){$(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){$(this).addClass("ui-datepicker-next-hover")}}})}function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null){target[name]=props[name]}}return target}$.fn.datepicker=function(options){if(!this.length){return this}if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick);$.datepicker.initialized=true}if($("#"+$.datepicker._mainDivId).length===0){$("body").append($.datepicker.dpDiv)}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options==="string"&&(options==="isDisabled"||options==="getDate"||options==="widget")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options==="option"&&arguments.length===2&&typeof arguments[1]==="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options==="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.10.2";window["DP_jQuery_"+dpuuid]=$})(jQuery);(function($,undefined){var sizeRelatedOptions={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},resizableRelatedOptions={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};$.widget("ui.dialog",{version:"1.10.2",options:{appendTo:"body",autoOpen:true,buttons:[],closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(pos){var topOffset=$(this).css(pos).offset().top;if(topOffset<0){$(this).css("top",pos.top-topOffset)}}},resizable:true,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr("title");this.options.title=this.options.title||this.originalTitle;this._createWrapper();this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog);this._createTitlebar();this._createButtonPane();if(this.options.draggable&&$.fn.draggable){this._makeDraggable()}if(this.options.resizable&&$.fn.resizable){this._makeResizable()}this._isOpen=false},_init:function(){if(this.options.autoOpen){this.open()}},_appendTo:function(){var element=this.options.appendTo;if(element&&(element.jquery||element.nodeType)){return $(element)}return this.document.find(element||"body").eq(0)},_destroy:function(){var next,originalPosition=this.originalPosition;this._destroyOverlay();this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach();this.uiDialog.stop(true,true).remove();if(this.originalTitle){this.element.attr("title",this.originalTitle)}next=originalPosition.parent.children().eq(originalPosition.index);if(next.length&&next[0]!==this.element[0]){next.before(this.element)}else{originalPosition.parent.append(this.element)}},widget:function(){return this.uiDialog},disable:$.noop,enable:$.noop,close:function(event){var that=this;if(!this._isOpen||this._trigger("beforeClose",event)===false){return}this._isOpen=false;this._destroyOverlay();if(!this.opener.filter(":focusable").focus().length){$(this.document[0].activeElement).blur()}this._hide(this.uiDialog,this.options.hide,function(){that._trigger("close",event)})},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(event,silent){var moved=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;if(moved&&!silent){this._trigger("focus",event)}return moved},open:function(){var that=this;if(this._isOpen){if(this._moveToTop()){this._focusTabbable()}return}this._isOpen=true;this.opener=$(this.document[0].activeElement);this._size();this._position();this._createOverlay();this._moveToTop(null,true);this._show(this.uiDialog,this.options.show,function(){that._focusTabbable();that._trigger("focus")});this._trigger("open")},_focusTabbable:function(){var hasFocus=this.element.find("[autofocus]");if(!hasFocus.length){hasFocus=this.element.find(":tabbable")}if(!hasFocus.length){hasFocus=this.uiDialogButtonPane.find(":tabbable")}if(!hasFocus.length){hasFocus=this.uiDialogTitlebarClose.filter(":tabbable")}if(!hasFocus.length){hasFocus=this.uiDialog}hasFocus.eq(0).focus()},_keepFocus:function(event){function checkFocus(){var activeElement=this.document[0].activeElement,isActive=this.uiDialog[0]===activeElement||$.contains(this.uiDialog[0],activeElement);if(!isActive){this._focusTabbable()}}event.preventDefault();checkFocus.call(this);this._delay(checkFocus)},_createWrapper:function(){this.uiDialog=$("
").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo());this._on(this.uiDialog,{keydown:function(event){if(this.options.closeOnEscape&&!event.isDefaultPrevented()&&event.keyCode&&event.keyCode===$.ui.keyCode.ESCAPE){event.preventDefault();this.close(event);return}if(event.keyCode!==$.ui.keyCode.TAB){return}var tabbables=this.uiDialog.find(":tabbable"),first=tabbables.filter(":first"),last=tabbables.filter(":last");if((event.target===last[0]||event.target===this.uiDialog[0])&&!event.shiftKey){first.focus(1);event.preventDefault()}else if((event.target===first[0]||event.target===this.uiDialog[0])&&event.shiftKey){last.focus(1);event.preventDefault()}},mousedown:function(event){if(this._moveToTop(event)){this._focusTabbable()}}});if(!this.element.find("[aria-describedby]").length){this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})}},_createTitlebar:function(){var uiDialogTitle;this.uiDialogTitlebar=$("
").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog);this._on(this.uiDialogTitlebar,{mousedown:function(event){if(!$(event.target).closest(".ui-dialog-titlebar-close")){this.uiDialog.focus()}}});this.uiDialogTitlebarClose=$("").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:false}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar);this._on(this.uiDialogTitlebarClose,{click:function(event){event.preventDefault();this.close(event)}});uiDialogTitle=$("").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar);this._title(uiDialogTitle);this.uiDialog.attr({"aria-labelledby":uiDialogTitle.attr("id")})},_title:function(title){if(!this.options.title){title.html(" ")}title.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=$("
").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiButtonSet=$("
").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane);this._createButtons()},_createButtons:function(){var that=this,buttons=this.options.buttons;this.uiDialogButtonPane.remove();this.uiButtonSet.empty();if($.isEmptyObject(buttons)||($.isArray(buttons)&&!buttons.length)){this.uiDialog.removeClass("ui-dialog-buttons");return}$.each(buttons,function(name,props){var click,buttonOptions;props=$.isFunction(props)?{click:props,text:name}:props;props=$.extend({type:"button"},props);click=props.click;props.click=function(){click.apply(that.element[0],arguments)};buttonOptions={icons:props.icons,text:props.showText};delete props.icons;delete props.showText;$("",props).button(buttonOptions).appendTo(that.uiButtonSet)});this.uiDialog.addClass("ui-dialog-buttons");this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){var that=this,options=this.options;function filteredUi(ui){return{position:ui.position,offset:ui.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(event,ui){$(this).addClass("ui-dialog-dragging");that._blockFrames();that._trigger("dragStart",event,filteredUi(ui))},drag:function(event,ui){that._trigger("drag",event,filteredUi(ui))},stop:function(event,ui){options.position=[ui.position.left-that.document.scrollLeft(),ui.position.top-that.document.scrollTop()];$(this).removeClass("ui-dialog-dragging");that._unblockFrames();that._trigger("dragStop",event,filteredUi(ui))}})},_makeResizable:function(){var that=this,options=this.options,handles=options.resizable,position=this.uiDialog.css("position"),resizeHandles=typeof handles==="string"?handles:"n,e,s,w,se,sw,ne,nw";function filteredUi(ui){return{originalPosition:ui.originalPosition,originalSize:ui.originalSize,position:ui.position,size:ui.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:options.maxWidth,maxHeight:options.maxHeight,minWidth:options.minWidth,minHeight:this._minHeight(),handles:resizeHandles,start:function(event,ui){$(this).addClass("ui-dialog-resizing");that._blockFrames();that._trigger("resizeStart",event,filteredUi(ui))},resize:function(event,ui){that._trigger("resize",event,filteredUi(ui))},stop:function(event,ui){options.height=$(this).height();options.width=$(this).width();$(this).removeClass("ui-dialog-resizing");that._unblockFrames();that._trigger("resizeStop",event,filteredUi(ui))}}).css("position",position)},_minHeight:function(){var options=this.options;return options.height==="auto"?options.minHeight:Math.min(options.minHeight,options.height)},_position:function(){var isVisible=this.uiDialog.is(":visible");if(!isVisible){this.uiDialog.show()}this.uiDialog.position(this.options.position);if(!isVisible){this.uiDialog.hide()}},_setOptions:function(options){var that=this,resize=false,resizableOptions={};$.each(options,function(key,value){that._setOption(key,value);if(key in sizeRelatedOptions){resize=true}if(key in resizableRelatedOptions){resizableOptions[key]=value}});if(resize){this._size();this._position()}if(this.uiDialog.is(":data(ui-resizable)")){this.uiDialog.resizable("option",resizableOptions)}},_setOption:function(key,value){var isDraggable,isResizable,uiDialog=this.uiDialog;if(key==="dialogClass"){uiDialog.removeClass(this.options.dialogClass).addClass(value)}if(key==="disabled"){return}this._super(key,value);if(key==="appendTo"){this.uiDialog.appendTo(this._appendTo())}if(key==="buttons"){this._createButtons()}if(key==="closeText"){this.uiDialogTitlebarClose.button({label:""+value})}if(key==="draggable"){isDraggable=uiDialog.is(":data(ui-draggable)");if(isDraggable&&!value){uiDialog.draggable("destroy")}if(!isDraggable&&value){this._makeDraggable()}}if(key==="position"){this._position()}if(key==="resizable"){isResizable=uiDialog.is(":data(ui-resizable)");if(isResizable&&!value){uiDialog.resizable("destroy")}if(isResizable&&typeof value==="string"){uiDialog.resizable("option","handles",value)}if(!isResizable&&value!==false){this._makeResizable()}}if(key==="title"){this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))}},_size:function(){var nonContentHeight,minContentHeight,maxContentHeight,options=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});if(options.minWidth>options.width){options.width=options.minWidth}nonContentHeight=this.uiDialog.css({height:"auto",width:options.width}).outerHeight();minContentHeight=Math.max(0,options.minHeight-nonContentHeight);maxContentHeight=typeof options.maxHeight==="number"?Math.max(0,options.maxHeight-nonContentHeight):"none";if(options.height==="auto"){this.element.css({minHeight:minContentHeight,maxHeight:maxContentHeight,height:"auto"})}else{this.element.height(Math.max(0,options.height-nonContentHeight))}if(this.uiDialog.is(":data(ui-resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight())}},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var iframe=$(this);return $("
").css({position:"absolute",width:iframe.outerWidth(),height:iframe.outerHeight()}).appendTo(iframe.parent()).offset(iframe.offset())[0]})},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks}},_allowInteraction:function(event){if($(event.target).closest(".ui-dialog").length){return true}return!!$(event.target).closest(".ui-datepicker").length},_createOverlay:function(){if(!this.options.modal){return}var that=this,widgetFullName=this.widgetFullName;if(!$.ui.dialog.overlayInstances){this._delay(function(){if($.ui.dialog.overlayInstances){this.document.bind("focusin.dialog",function(event){if(!that._allowInteraction(event)){event.preventDefault();$(".ui-dialog:visible:last .ui-dialog-content").data(widgetFullName)._focusTabbable()}})}})}this.overlay=$("
").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo());this._on(this.overlay,{mousedown:"_keepFocus"});$.ui.dialog.overlayInstances++},_destroyOverlay:function(){if(!this.options.modal){return}if(this.overlay){$.ui.dialog.overlayInstances--;if(!$.ui.dialog.overlayInstances){this.document.unbind("focusin.dialog")}this.overlay.remove();this.overlay=null}}});$.ui.dialog.overlayInstances=0;if($.uiBackCompat!==false){$.widget("ui.dialog",$.ui.dialog,{_position:function(){var position=this.options.position,myAt=[],offset=[0,0],isVisible;if(position){if(typeof position==="string"||(typeof position==="object"&&"0"in position)){myAt=position.split?position.split(" "):[position[0],position[1]];if(myAt.length===1){myAt[1]=myAt[0]}$.each(["left","top"],function(i,offsetPosition){if(+myAt[i]===myAt[i]){offset[i]=myAt[i];myAt[i]=offsetPosition}});position={my:myAt[0]+(offset[0]<0?offset[0]:"+"+offset[0])+" "+myAt[1]+(offset[1]<0?offset[1]:"+"+offset[1]),at:myAt.join(" ")}}position=$.extend({},$.ui.dialog.prototype.options.position,position)}else{position=$.ui.dialog.prototype.options.position}isVisible=this.uiDialog.is(":visible");if(!isVisible){this.uiDialog.show()}this.uiDialog.position(position);if(!isVisible){this.uiDialog.hide()}}})}}(jQuery));(function($,undefined){var rvertical=/up|down|vertical/,rpositivemotion=/up|left|vertical|horizontal/;$.effects.effect.blind=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"hide"),direction=o.direction||"up",vertical=rvertical.test(direction),ref=vertical?"height":"width",ref2=vertical?"top":"left",motion=rpositivemotion.test(direction),animation={},show=mode==="show",wrapper,distance,margin;if(el.parent().is(".ui-effects-wrapper")){$.effects.save(el.parent(),props)}else{$.effects.save(el,props)}el.show();wrapper=$.effects.createWrapper(el).css({overflow:"hidden"});distance=wrapper[ref]();margin=parseFloat(wrapper.css(ref2))||0;animation[ref]=show?distance:0;if(!motion){el.css(vertical?"bottom":"right",0).css(vertical?"top":"left","auto").css({position:"absolute"});animation[ref2]=show?margin:distance+margin}if(show){wrapper.css(ref,0);if(!motion){wrapper.css(ref2,margin+distance)}}wrapper.animate(animation,{duration:o.duration,easing:o.easing,queue:false,complete:function(){if(mode==="hide"){el.hide()}$.effects.restore(el,props);$.effects.removeWrapper(el);done()}})}})(jQuery);(function($,undefined){$.effects.effect.bounce=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"effect"),hide=mode==="hide",show=mode==="show",direction=o.direction||"up",distance=o.distance,times=o.times||5,anims=times*2+(show||hide?1:0),speed=o.duration/anims,easing=o.easing,ref=(direction==="up"||direction==="down")?"top":"left",motion=(direction==="up"||direction==="left"),i,upAnim,downAnim,queue=el.queue(),queuelen=queue.length;if(show||hide){props.push("opacity")}$.effects.save(el,props);el.show();$.effects.createWrapper(el);if(!distance){distance=el[ref==="top"?"outerHeight":"outerWidth"]()/3}if(show){downAnim={opacity:1};downAnim[ref]=0;el.css("opacity",0).css(ref,motion?-distance*2:distance*2).animate(downAnim,speed,easing)}if(hide){distance=distance/Math.pow(2,times-1)}downAnim={};downAnim[ref]=0;for(i=0;i1){queue.splice.apply(queue,[1,0].concat(queue.splice(queuelen,anims+1)))}el.dequeue()}})(jQuery);(function($,undefined){$.effects.effect.clip=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"hide"),show=mode==="show",direction=o.direction||"vertical",vert=direction==="vertical",size=vert?"height":"width",position=vert?"top":"left",animation={},wrapper,animate,distance;$.effects.save(el,props);el.show();wrapper=$.effects.createWrapper(el).css({overflow:"hidden"});animate=(el[0].tagName==="IMG")?wrapper:el;distance=animate[size]();if(show){animate.css(size,0);animate.css(position,distance/2)}animation[size]=show?distance:0;animation[position]=show?0:distance/2;animate.animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(!show){el.hide()}$.effects.restore(el,props);$.effects.removeWrapper(el);done()}})}})(jQuery);(function($,undefined){$.effects.effect.drop=function(o,done){var el=$(this),props=["position","top","bottom","left","right","opacity","height","width"],mode=$.effects.setMode(el,o.mode||"hide"),show=mode==="show",direction=o.direction||"left",ref=(direction==="up"||direction==="down")?"top":"left",motion=(direction==="up"||direction==="left")?"pos":"neg",animation={opacity:show?1:0},distance;$.effects.save(el,props);el.show();$.effects.createWrapper(el);distance=o.distance||el[ref==="top"?"outerHeight":"outerWidth"](true)/2;if(show){el.css("opacity",0).css(ref,motion==="pos"?-distance:distance)}animation[ref]=(show?(motion==="pos"?"+=":"-="):(motion==="pos"?"-=":"+="))+distance;el.animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(mode==="hide"){el.hide()}$.effects.restore(el,props);$.effects.removeWrapper(el);done()}})}})(jQuery);(function($,undefined){$.effects.effect.explode=function(o,done){var rows=o.pieces?Math.round(Math.sqrt(o.pieces)):3,cells=rows,el=$(this),mode=$.effects.setMode(el,o.mode||"hide"),show=mode==="show",offset=el.show().css("visibility","hidden").offset(),width=Math.ceil(el.outerWidth()/cells),height=Math.ceil(el.outerHeight()/rows),pieces=[],i,j,left,top,mx,my;function childComplete(){pieces.push(this);if(pieces.length===rows*cells){animComplete()}}for(i=0;i
").css({position:"absolute",visibility:"visible",left:-j*width,top:-i*height}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:width,height:height,left:left+(show?mx*width:0),top:top+(show?my*height:0),opacity:show?0:1}).animate({left:left+(show?0:mx*width),top:top+(show?0:my*height),opacity:show?1:0},o.duration||500,o.easing,childComplete)}}function animComplete(){el.css({visibility:"visible"});$(pieces).remove();if(!show){el.hide()}done()}}})(jQuery);(function($,undefined){$.effects.effect.fade=function(o,done){var el=$(this),mode=$.effects.setMode(el,o.mode||"toggle");el.animate({opacity:mode},{queue:false,duration:o.duration,easing:o.easing,complete:done})}})(jQuery);(function($,undefined){$.effects.effect.fold=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"hide"),show=mode==="show",hide=mode==="hide",size=o.size||15,percent=/([0-9]+)%/.exec(size),horizFirst=!!o.horizFirst,widthFirst=show!==horizFirst,ref=widthFirst?["width","height"]:["height","width"],duration=o.duration/2,wrapper,distance,animation1={},animation2={};$.effects.save(el,props);el.show();wrapper=$.effects.createWrapper(el).css({overflow:"hidden"});distance=widthFirst?[wrapper.width(),wrapper.height()]:[wrapper.height(),wrapper.width()];if(percent){size=parseInt(percent[1],10)/100*distance[hide?0:1]}if(show){wrapper.css(horizFirst?{height:0,width:size}:{height:size,width:0})}animation1[ref[0]]=show?distance[0]:size;animation2[ref[1]]=show?distance[1]:0;wrapper.animate(animation1,duration,o.easing).animate(animation2,duration,o.easing,function(){if(hide){el.hide()}$.effects.restore(el,props);$.effects.removeWrapper(el);done()})}})(jQuery);(function($,undefined){$.effects.effect.highlight=function(o,done){var elem=$(this),props=["backgroundImage","backgroundColor","opacity"],mode=$.effects.setMode(elem,o.mode||"show"),animation={backgroundColor:elem.css("backgroundColor")};if(mode==="hide"){animation.opacity=0}$.effects.save(elem,props);elem.show().css({backgroundImage:"none",backgroundColor:o.color||"#ffff99"}).animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(mode==="hide"){elem.hide()}$.effects.restore(elem,props);done()}})}})(jQuery);(function($,undefined){$.effects.effect.pulsate=function(o,done){var elem=$(this),mode=$.effects.setMode(elem,o.mode||"show"),show=mode==="show",hide=mode==="hide",showhide=(show||mode==="hide"),anims=((o.times||5)*2)+(showhide?1:0),duration=o.duration/anims,animateTo=0,queue=elem.queue(),queuelen=queue.length,i;if(show||!elem.is(":visible")){elem.css("opacity",0).show();animateTo=1}for(i=1;i1){queue.splice.apply(queue,[1,0].concat(queue.splice(queuelen,anims+1)))}elem.dequeue()}})(jQuery);(function($,undefined){$.effects.effect.puff=function(o,done){var elem=$(this),mode=$.effects.setMode(elem,o.mode||"hide"),hide=mode==="hide",percent=parseInt(o.percent,10)||150,factor=percent/100,original={height:elem.height(),width:elem.width(),outerHeight:elem.outerHeight(),outerWidth:elem.outerWidth()};$.extend(o,{effect:"scale",queue:false,fade:true,mode:mode,complete:done,percent:hide?percent:100,from:hide?original:{height:original.height*factor,width:original.width*factor,outerHeight:original.outerHeight*factor,outerWidth:original.outerWidth*factor}});elem.effect(o)};$.effects.effect.scale=function(o,done){var el=$(this),options=$.extend(true,{},o),mode=$.effects.setMode(el,o.mode||"effect"),percent=parseInt(o.percent,10)||(parseInt(o.percent,10)===0?0:(mode==="hide"?0:100)),direction=o.direction||"both",origin=o.origin,original={height:el.height(),width:el.width(),outerHeight:el.outerHeight(),outerWidth:el.outerWidth()},factor={y:direction!=="horizontal"?(percent/100):1,x:direction!=="vertical"?(percent/100):1};options.effect="size";options.queue=false;options.complete=done;if(mode!=="effect"){options.origin=origin||["middle","center"];options.restore=true}options.from=o.from||(mode==="show"?{height:0,width:0,outerHeight:0,outerWidth:0}:original);options.to={height:original.height*factor.y,width:original.width*factor.x,outerHeight:original.outerHeight*factor.y,outerWidth:original.outerWidth*factor.x};if(options.fade){if(mode==="show"){options.from.opacity=0;options.to.opacity=1}if(mode==="hide"){options.from.opacity=1;options.to.opacity=0}}el.effect(options)};$.effects.effect.size=function(o,done){var original,baseline,factor,el=$(this),props0=["position","top","bottom","left","right","width","height","overflow","opacity"],props1=["position","top","bottom","left","right","overflow","opacity"],props2=["width","height","overflow"],cProps=["fontSize"],vProps=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],hProps=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],mode=$.effects.setMode(el,o.mode||"effect"),restore=o.restore||mode!=="effect",scale=o.scale||"both",origin=o.origin||["middle","center"],position=el.css("position"),props=restore?props0:props1,zero={height:0,width:0,outerHeight:0,outerWidth:0};if(mode==="show"){el.show()}original={height:el.height(),width:el.width(),outerHeight:el.outerHeight(),outerWidth:el.outerWidth()};if(o.mode==="toggle"&&mode==="show"){el.from=o.to||zero;el.to=o.from||original}else{el.from=o.from||(mode==="show"?zero:original);el.to=o.to||(mode==="hide"?zero:original)}factor={from:{y:el.from.height/original.height,x:el.from.width/original.width},to:{y:el.to.height/original.height,x:el.to.width/original.width}};if(scale==="box"||scale==="both"){if(factor.from.y!==factor.to.y){props=props.concat(vProps);el.from=$.effects.setTransition(el,vProps,factor.from.y,el.from);el.to=$.effects.setTransition(el,vProps,factor.to.y,el.to)}if(factor.from.x!==factor.to.x){props=props.concat(hProps);el.from=$.effects.setTransition(el,hProps,factor.from.x,el.from);el.to=$.effects.setTransition(el,hProps,factor.to.x,el.to)}}if(scale==="content"||scale==="both"){if(factor.from.y!==factor.to.y){props=props.concat(cProps).concat(props2);el.from=$.effects.setTransition(el,cProps,factor.from.y,el.from);el.to=$.effects.setTransition(el,cProps,factor.to.y,el.to)}}$.effects.save(el,props);el.show();$.effects.createWrapper(el);el.css("overflow","hidden").css(el.from);if(origin){baseline=$.effects.getBaseline(origin,original);el.from.top=(original.outerHeight-el.outerHeight())*baseline.y;el.from.left=(original.outerWidth-el.outerWidth())*baseline.x;el.to.top=(original.outerHeight-el.to.outerHeight)*baseline.y;el.to.left=(original.outerWidth-el.to.outerWidth)*baseline.x}el.css(el.from);if(scale==="content"||scale==="both"){vProps=vProps.concat(["marginTop","marginBottom"]).concat(cProps);hProps=hProps.concat(["marginLeft","marginRight"]);props2=props0.concat(vProps).concat(hProps);el.find("*[width]").each(function(){var child=$(this),c_original={height:child.height(),width:child.width(),outerHeight:child.outerHeight(),outerWidth:child.outerWidth()};if(restore){$.effects.save(child,props2)}child.from={height:c_original.height*factor.from.y,width:c_original.width*factor.from.x,outerHeight:c_original.outerHeight*factor.from.y,outerWidth:c_original.outerWidth*factor.from.x};child.to={height:c_original.height*factor.to.y,width:c_original.width*factor.to.x,outerHeight:c_original.height*factor.to.y,outerWidth:c_original.width*factor.to.x};if(factor.from.y!==factor.to.y){child.from=$.effects.setTransition(child,vProps,factor.from.y,child.from);child.to=$.effects.setTransition(child,vProps,factor.to.y,child.to)}if(factor.from.x!==factor.to.x){child.from=$.effects.setTransition(child,hProps,factor.from.x,child.from);child.to=$.effects.setTransition(child,hProps,factor.to.x,child.to)}child.css(child.from);child.animate(child.to,o.duration,o.easing,function(){if(restore){$.effects.restore(child,props2)}})})}el.animate(el.to,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(el.to.opacity===0){el.css("opacity",el.from.opacity)}if(mode==="hide"){el.hide()}$.effects.restore(el,props);if(!restore){if(position==="static"){el.css({position:"relative",top:el.to.top,left:el.to.left})}else{$.each(["top","left"],function(idx,pos){el.css(pos,function(_,str){var val=parseInt(str,10),toRef=idx?el.to.left:el.to.top;if(str==="auto"){return toRef+"px"}return val+toRef+"px"})})}}$.effects.removeWrapper(el);done()}})}})(jQuery);(function($,undefined){$.effects.effect.shake=function(o,done){var el=$(this),props=["position","top","bottom","left","right","height","width"],mode=$.effects.setMode(el,o.mode||"effect"),direction=o.direction||"left",distance=o.distance||20,times=o.times||3,anims=times*2+1,speed=Math.round(o.duration/anims),ref=(direction==="up"||direction==="down")?"top":"left",positiveMotion=(direction==="up"||direction==="left"),animation={},animation1={},animation2={},i,queue=el.queue(),queuelen=queue.length;$.effects.save(el,props);el.show();$.effects.createWrapper(el);animation[ref]=(positiveMotion?"-=":"+=")+distance;animation1[ref]=(positiveMotion?"+=":"-=")+distance*2;animation2[ref]=(positiveMotion?"-=":"+=")+distance*2;el.animate(animation,speed,o.easing);for(i=1;i1){queue.splice.apply(queue,[1,0].concat(queue.splice(queuelen,anims+1)))}el.dequeue()}})(jQuery);(function($,undefined){$.effects.effect.slide=function(o,done){var el=$(this),props=["position","top","bottom","left","right","width","height"],mode=$.effects.setMode(el,o.mode||"show"),show=mode==="show",direction=o.direction||"left",ref=(direction==="up"||direction==="down")?"top":"left",positiveMotion=(direction==="up"||direction==="left"),distance,animation={};$.effects.save(el,props);el.show();distance=o.distance||el[ref==="top"?"outerHeight":"outerWidth"](true);$.effects.createWrapper(el).css({overflow:"hidden"});if(show){el.css(ref,positiveMotion?(isNaN(distance)?"-"+distance:-distance):distance)}animation[ref]=(show?(positiveMotion?"+=":"-="):(positiveMotion?"-=":"+="))+distance;el.animate(animation,{queue:false,duration:o.duration,easing:o.easing,complete:function(){if(mode==="hide"){el.hide()}$.effects.restore(el,props);$.effects.removeWrapper(el);done()}})}})(jQuery);(function($,undefined){$.effects.effect.transfer=function(o,done){var elem=$(this),target=$(o.to),targetFixed=target.css("position")==="fixed",body=$("body"),fixTop=targetFixed?body.scrollTop():0,fixLeft=targetFixed?body.scrollLeft():0,endPosition=target.offset(),animation={top:endPosition.top-fixTop,left:endPosition.left-fixLeft,height:target.innerHeight(),width:target.innerWidth()},startPosition=elem.offset(),transfer=$("
").appendTo(document.body).addClass(o.className).css({top:startPosition.top-fixTop,left:startPosition.left-fixLeft,height:elem.innerHeight(),width:elem.innerWidth(),position:targetFixed?"fixed":"absolute"}).animate(animation,o.duration,o.easing,function(){transfer.remove();done()})}})(jQuery);(function($,undefined){$.widget("ui.menu",{version:"1.10.2",defaultElement:"
    ",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=false;this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,$.proxy(function(event){if(this.options.disabled){event.preventDefault()}},this));if(this.options.disabled){this.element.addClass("ui-state-disabled").attr("aria-disabled","true")}this._on({"mousedown .ui-menu-item > a":function(event){event.preventDefault()},"click .ui-state-disabled > a":function(event){event.preventDefault()},"click .ui-menu-item:has(a)":function(event){var target=$(event.target).closest(".ui-menu-item");if(!this.mouseHandled&&target.not(".ui-state-disabled").length){this.mouseHandled=true;this.select(event);if(target.has(".ui-menu").length){this.expand (event)}else if(!this.element.is(":focus")){this.element.trigger("focus",[true]);if(this.active&&this.active.parents(".ui-menu").length===1){clearTimeout(this.timer)}}}},"mouseenter .ui-menu-item":function(event){var target=$(event.currentTarget);target.siblings().children(".ui-state-active").removeClass("ui-state-active");this.focus(event,target)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(event,keepActiveItem){var item=this.active||this.element.children(".ui-menu-item").eq(0);if(!keepActiveItem){this.focus(event,item)}},blur:function(event){this._delay(function(){if(!$.contains(this.element[0],this.document[0].activeElement)){this.collapseAll(event)}})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(event){if(!$(event.target).closest(".ui-menu").length){this.collapseAll(event)}this.mouseHandled=false}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var elem=$(this);if(elem.data("ui-menu-submenu-carat")){elem.remove()}});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(event){var match,prev,character,skip,regex,preventDefault=true;function escape(value){return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}switch(event.keyCode){case $.ui.keyCode.PAGE_UP:this.previousPage(event);break;case $.ui.keyCode.PAGE_DOWN:this.nextPage(event);break;case $.ui.keyCode.HOME:this._move("first","first",event);break;case $.ui.keyCode.END:this._move("last","last",event);break;case $.ui.keyCode.UP:this.previous(event);break;case $.ui.keyCode.DOWN:this.next(event);break;case $.ui.keyCode.LEFT:this.collapse(event);break;case $.ui.keyCode.RIGHT:if(this.active&&!this.active.is(".ui-state-disabled")){this.expand (event)}break;case $.ui.keyCode.ENTER:case $.ui.keyCode.SPACE:this._activate(event);break;case $.ui.keyCode.ESCAPE:this.collapse(event);break;default:preventDefault=false;prev=this.previousFilter||"";character=String.fromCharCode(event.keyCode);skip=false;clearTimeout(this.filterTimer);if(character===prev){skip=true}else{character=prev+character}regex=new RegExp("^"+escape(character),"i");match=this.activeMenu.children(".ui-menu-item").filter(function(){return regex.test($(this).children("a").text())});match=skip&&match.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):match;if(!match.length){character=String.fromCharCode(event.keyCode);regex=new RegExp("^"+escape(character),"i");match=this.activeMenu.children(".ui-menu-item").filter(function(){return regex.test($(this).children("a").text())})}if(match.length){this.focus(event,match);if(match.length>1){this.previousFilter=character;this.filterTimer=this._delay(function(){delete this.previousFilter},1000)}else{delete this.previousFilter}}else{delete this.previousFilter}}if(preventDefault){event.preventDefault()}},_activate:function(event){if(!this.active.is(".ui-state-disabled")){if(this.active.children("a[aria-haspopup='true']").length){this.expand (event)}else{this.select(event)}}},refresh:function(){var menus,icon=this.options.icons.submenu,submenus=this.element.find(this.options.menus);submenus.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var menu=$(this),item=menu.prev("a"),submenuCarat=$("").addClass("ui-menu-icon ui-icon "+icon).data("ui-menu-submenu-carat",true);item.attr("aria-haspopup","true").prepend(submenuCarat);menu.attr("aria-labelledby",item.attr("id"))});menus=submenus.add(this.element);menus.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()});menus.children(":not(.ui-menu-item)").each(function(){var item=$(this);if(!/[^\-\u2014\u2013\s]/.test(item.text())){item.addClass("ui-widget-content ui-menu-divider")}});menus.children(".ui-state-disabled").attr("aria-disabled","true");if(this.active&&!$.contains(this.element[0],this.active[0])){this.blur()}},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(key,value){if(key==="icons"){this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(value.submenu)}this._super(key,value)},focus:function(event,item){var nested,focused;this.blur(event,event&&event.type==="focus");this._scrollIntoView(item);this.active=item.first();focused=this.active.children("a").addClass("ui-state-focus");if(this.options.role){this.element.attr("aria-activedescendant",focused.attr("id"))}this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active");if(event&&event.type==="keydown"){this._close()}else{this.timer=this._delay(function(){this._close()},this.delay)}nested=item.children(".ui-menu");if(nested.length&&(/^mouse/.test(event.type))){this._startOpening(nested)}this.activeMenu=item.parent();this._trigger("focus",event,{item:item})},_scrollIntoView:function(item){var borderTop,paddingTop,offset,scroll,elementHeight,itemHeight;if(this._hasScroll()){borderTop=parseFloat($.css(this.activeMenu[0],"borderTopWidth"))||0;paddingTop=parseFloat($.css(this.activeMenu[0],"paddingTop"))||0;offset=item.offset().top-this.activeMenu.offset().top-borderTop-paddingTop;scroll=this.activeMenu.scrollTop();elementHeight=this.activeMenu.height();itemHeight=item.height();if(offset<0){this.activeMenu.scrollTop(scroll+offset)}else if(offset+itemHeight>elementHeight){this.activeMenu.scrollTop(scroll+offset-elementHeight+itemHeight)}}},blur:function(event,fromFocus){if(!fromFocus){clearTimeout(this.timer)}if(!this.active){return}this.active.children("a").removeClass("ui-state-focus");this.active=null;this._trigger("blur",event,{item:this.active})},_startOpening:function(submenu){clearTimeout(this.timer);if(submenu.attr("aria-hidden")!=="true"){return}this.timer=this._delay(function(){this._close();this._open(submenu)},this.delay)},_open:function(submenu){var position=$.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(submenu.parents(".ui-menu")).hide().attr("aria-hidden","true");submenu.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(position)},collapseAll:function(event,all){clearTimeout(this.timer);this.timer=this._delay(function(){var currentMenu=all?this.element:$(event&&event.target).closest(this.element.find(".ui-menu"));if(!currentMenu.length){currentMenu=this.element}this._close(currentMenu);this.blur(event);this.activeMenu=currentMenu},this.delay)},_close:function(startMenu){if(!startMenu){startMenu=this.active?this.active.parent():this.element}startMenu.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(event){var newItem=this.active&&this.active.parent().closest(".ui-menu-item",this.element);if(newItem&&newItem.length){this._close();this.focus(event,newItem)}},expand:function(event){var newItem=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();if(newItem&&newItem.length){this._open(newItem.parent());this._delay(function(){this.focus(event,newItem)})}},next:function(event){this._move("next","first",event)},previous:function(event){this._move("prev","last",event)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(direction,filter,event){var next;if(this.active){if(direction==="first"||direction==="last"){next=this.active[direction==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1)}else{next=this.active[direction+"All"](".ui-menu-item").eq(0)}}if(!next||!next.length||!this.active){next=this.activeMenu.children(".ui-menu-item")[filter]()}this.focus(event,next)},nextPage:function(event){var item,base,height;if(!this.active){this.next(event);return}if(this.isLastItem()){return}if(this._hasScroll()){base=this.active.offset().top;height=this.element.height();this.active.nextAll(".ui-menu-item").each(function(){item=$(this);return item.offset().top-base-height<0});this.focus(event,item)}else{this.focus(event,this.activeMenu.children(".ui-menu-item")[!this.active?"first":"last"]())}},previousPage:function(event){var item,base,height;if(!this.active){this.next(event);return}if(this.isFirstItem()){return}if(this._hasScroll()){base=this.active.offset().top;height=this.element.height();this.active.prevAll(".ui-menu-item").each(function(){item=$(this);return item.offset().top-base+height>0});this.focus(event,item)}else{this.focus(event,this.activeMenu.children(".ui-menu-item").first())}},_hasScroll:function(){return this.element.outerHeight()
"),innerDiv=div.children()[0];$("body").append(div);w1=innerDiv.offsetWidth;div.css("overflow","scroll");w2=innerDiv.offsetWidth;if(w1===w2){w2=div[0].clientWidth}div.remove();return(cachedScrollbarWidth=w1-w2)},getScrollInfo:function(within){var overflowX=within.isWindow?"":within.element.css("overflow-x"),overflowY=within.isWindow?"":within.element.css("overflow-y"),hasOverflowX=overflowX==="scroll"||(overflowX==="auto"&&within.width0?"right":"center",vertical:bottom<0?"top":top>0?"bottom":"middle"};if(targetWidthmax(abs(top),abs(bottom))){feedback.important="horizontal"}else{feedback.important="vertical"}options.using.call(this,props,feedback)}}elem.offset($.extend(position,{using:using}))})};$.ui.position={fit:{left:function(position,data){var within=data.within,withinOffset=within.isWindow?within.scrollLeft:within.offset.left,outerWidth=within.width,collisionPosLeft=position.left-data.collisionPosition.marginLeft,overLeft=withinOffset-collisionPosLeft,overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset,newOverRight;if(data.collisionWidth>outerWidth){if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight}else if(overRight>0&&overLeft<=0){position.left=withinOffset}else{if(overLeft>overRight){position.left=withinOffset+outerWidth-data.collisionWidth}else{position.left=withinOffset}}}else if(overLeft>0){position.left+=overLeft}else if(overRight>0){position.left-=overRight}else{position.left=max(position.left-collisionPosLeft,position.left)}},top:function(position,data){var within=data.within,withinOffset=within.isWindow?within.scrollTop:within.offset.top,outerHeight=data.within.height,collisionPosTop=position.top-data.collisionPosition.marginTop,overTop=withinOffset-collisionPosTop,overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset,newOverBottom;if(data.collisionHeight>outerHeight){if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom}else if(overBottom>0&&overTop<=0){position.top=withinOffset}else{if(overTop>overBottom){position.top=withinOffset+outerHeight-data.collisionHeight}else{position.top=withinOffset}}}else if(overTop>0){position.top+=overTop}else if(overBottom>0){position.top-=overBottom}else{position.top=max(position.top-collisionPosTop,position.top)}}},flip:{left:function(position,data){var within=data.within,withinOffset=within.offset.left+within.scrollLeft,outerWidth=within.width,offsetLeft=within.isWindow?within.scrollLeft:within.offset.left,collisionPosLeft=position.left-data.collisionPosition.marginLeft,overLeft=collisionPosLeft-offsetLeft,overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft,myOffset=data.my[0]==="left"?-data.elemWidth:data.my[0]==="right"?data.elemWidth:0,atOffset=data.at[0]==="left"?data.targetWidth:data.at[0]==="right"?-data.targetWidth:0,offset=-2*data.offset[0],newOverRight,newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)overTop&&(newOverBottom<0||newOverBottom0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if((position.top+myOffset+atOffset+offset)>overBottom&&(newOverTop>0||abs(newOverTop)10&&offsetLeft<11;testElement.innerHTML="";testElementParent.removeChild(testElement)})()}(jQuery));(function($,undefined){$.widget("ui.progressbar",{version:"1.10.2",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min});this.valueDiv=$("
").appendTo(this.element);this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove()},value:function(newValue){if(newValue===undefined){return this.options.value}this.options.value=this._constrainedValue(newValue);this._refreshValue()},_constrainedValue:function(newValue){if(newValue===undefined){newValue=this.options.value}this.indeterminate=newValue===false;if(typeof newValue!=="number"){newValue=0}return this.indeterminate?false:Math.min(this.options.max,Math.max(this.min,newValue))},_setOptions:function(options){var value=options.value;delete options.value;this._super(options);this.options.value=this._constrainedValue(value);this._refreshValue()},_setOption:function(key,value){if(key==="max"){value=Math.max(this.min,value)}this._super(key,value)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var value=this.options.value,percentage=this._percentage();this.valueDiv.toggle(this.indeterminate||value>this.min).toggleClass("ui-corner-right",value===this.options.max).width(percentage.toFixed(0)+"%");this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate);if(this.indeterminate){this.element.removeAttr("aria-valuenow");if(!this.overlayDiv){this.overlayDiv=$("
").appendTo(this.valueDiv)}}else{this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":value});if(this.overlayDiv){this.overlayDiv.remove();this.overlayDiv=null}}if(this.oldValue!==value){this.oldValue=value;this._trigger("change")}if(value===this.options.max){this._trigger("complete")}}})})(jQuery);(function($,undefined){var numPages=5;$.widget("ui.slider",$.ui.mouse,{version:"1.10.2",widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider"+" ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all");this._refresh();this._setOption("disabled",this.options.disabled);this._animateOff=false},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var i,handleCount,options=this.options,existingHandles=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),handle="",handles=[];handleCount=(options.values&&options.values.length)||1;if(existingHandles.length>handleCount){existingHandles.slice(handleCount).remove();existingHandles=existingHandles.slice(0,handleCount)}for(i=existingHandles.length;i
").appendTo(this.element);classes="ui-slider-range"+" ui-widget-header ui-corner-all"}else{this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({"left":"","bottom":""})}this.range.addClass(classes+((options.range==="min"||options.range==="max")?" ui-slider-range-"+options.range:""))}else{this.range=$([])}},_setupEvents:function(){var elements=this.handles.add(this.range).filter("a");this._off(elements);this._on(elements,this._handleEvents);this._hoverable(elements);this._focusable(elements)},_destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider"+" ui-slider-horizontal"+" ui-slider-vertical"+" ui-widget"+" ui-widget-content"+" ui-corner-all");this._mouseDestroy()},_mouseCapture:function(event){var position,normValue,distance,closestHandle,index,allowed,offset,mouseOverHandle,that=this,o=this.options;if(o.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();position={x:event.pageX,y:event.pageY};normValue=this._normValueFromMouse(position);distance=this._valueMax()-this._valueMin()+1;this.handles.each(function(i){var thisDistance=Math.abs(normValue-that.values(i));if((distance>thisDistance)||(distance===thisDistance&&(i===that._lastChangedValue||that.values(i)===o.min))){distance=thisDistance;closestHandle=$(this);index=i}});allowed=this._start(event,index);if(allowed===false){return false}this._mouseSliding=true;this._handleIndex=index;closestHandle.addClass("ui-state-active").focus();offset=closestHandle.offset();mouseOverHandle=!$(event.target).parents().addBack().is(".ui-slider-handle");this._clickOffset=mouseOverHandle?{left:0,top:0}:{left:event.pageX-offset.left-(closestHandle.width()/2),top:event.pageY-offset.top-(closestHandle.height()/2)-(parseInt(closestHandle.css("borderTopWidth"),10)||0)-(parseInt(closestHandle.css("borderBottomWidth"),10)||0)+(parseInt(closestHandle.css("marginTop"),10)||0)};if(!this.handles.hasClass("ui-state-hover")){this._slide(event,index,normValue)}this._animateOff=true;return true},_mouseStart:function(){return true},_mouseDrag:function(event){var position={x:event.pageX,y:event.pageY},normValue=this._normValueFromMouse(position);this._slide(event,this._handleIndex,normValue);return false},_mouseStop:function(event){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(event,this._handleIndex);this._change(event,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false},_detectOrientation:function(){this.orientation=(this.options.orientation==="vertical")?"vertical":"horizontal"},_normValueFromMouse:function(position){var pixelTotal,pixelMouse,percentMouse,valueTotal,valueMouse;if(this.orientation==="horizontal"){pixelTotal=this.elementSize.width;pixelMouse=position.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{pixelTotal=this.elementSize.height;pixelMouse=position.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}percentMouse=(pixelMouse/pixelTotal);if(percentMouse>1){percentMouse=1}if(percentMouse<0){percentMouse=0}if(this.orientation==="vertical"){percentMouse=1-percentMouse}valueTotal=this._valueMax()-this._valueMin();valueMouse=this._valueMin()+percentMouse*valueTotal;return this._trimAlignValue(valueMouse)},_start:function(event,index){var uiHash={handle:this.handles[index],value:this.value()};if(this.options.values&&this.options.values.length){uiHash.value=this.values(index);uiHash.values=this.values()}return this._trigger("start",event,uiHash)},_slide:function(event,index,newVal){var otherVal,newValues,allowed;if(this.options.values&&this.options.values.length){otherVal=this.values(index?0:1);if((this.options.values.length===2&&this.options.range===true)&&((index===0&&newVal>otherVal)||(index===1&&newVal1){this.options.values[index]=this._trimAlignValue(newValue);this._refreshValue();this._change(null,index);return}if(arguments.length){if($.isArray(arguments[0])){vals=this.options.values;newValues=arguments[0];for(i=0;i=this._valueMax()){return this._valueMax()}var step=(this.options.step>0)?this.options.step:1,valModStep=(val-this._valueMin())%step,alignValue=val-valModStep;if(Math.abs(valModStep)*2>=step){alignValue+=(valModStep>0)?step:(-step)}return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var lastValPercent,valPercent,value,valueMin,valueMax,oRange=this.options.range,o=this.options,that=this,animate=(!this._animateOff)?o.animate:false,_set={};if(this.options.values&&this.options.values.length){this.handles.each(function(i){valPercent=(that.values(i)-that._valueMin())/(that._valueMax()-that._valueMin())*100;_set[that.orientation==="horizontal"?"left":"bottom"]=valPercent+"%";$(this).stop(1,1)[animate?"animate":"css"](_set,o.animate);if(that.options.range===true){if(that.orientation==="horizontal"){if(i===0){that.range.stop(1,1)[animate?"animate":"css"]({left:valPercent+"%"},o.animate)}if(i===1){that.range[animate?"animate":"css"]({width:(valPercent-lastValPercent)+"%"},{queue:false,duration:o.animate})}}else{if(i===0){that.range.stop(1,1)[animate?"animate":"css"]({bottom:(valPercent)+"%"},o.animate)}if(i===1){that.range[animate?"animate":"css"]({height:(valPercent-lastValPercent)+"%"},{queue:false,duration:o.animate})}}}lastValPercent=valPercent})}else{value=this.value();valueMin=this._valueMin();valueMax=this._valueMax();valPercent=(valueMax!==valueMin)?(value-valueMin)/(valueMax-valueMin)*100:0;_set[this.orientation==="horizontal"?"left":"bottom"]=valPercent+"%";this.handle.stop(1,1)[animate?"animate":"css"](_set,o.animate);if(oRange==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[animate?"animate":"css"]({width:valPercent+"%"},o.animate)}if(oRange==="max"&&this.orientation==="horizontal"){this.range[animate?"animate":"css"]({width:(100-valPercent)+"%"},{queue:false,duration:o.animate})}if(oRange==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[animate?"animate":"css"]({height:valPercent+"%"},o.animate)}if(oRange==="max"&&this.orientation==="vertical"){this.range[animate?"animate":"css"]({height:(100-valPercent)+"%"},{queue:false,duration:o.animate})}}},_handleEvents:{keydown:function(event){var allowed,curVal,newVal,step,index=$(event.target).data("ui-slider-handle-index");switch(event.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.PAGE_UP:case $.ui.keyCode.PAGE_DOWN:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:event.preventDefault();if(!this._keySliding){this._keySliding=true;$(event.target).addClass("ui-state-active");allowed=this._start(event,index);if(allowed===false){return}}break}step=this.options.step;if(this.options.values&&this.options.values.length){curVal=newVal=this.values(index)}else{curVal=newVal=this.value()}switch(event.keyCode){case $.ui.keyCode.HOME:newVal=this._valueMin();break;case $.ui.keyCode.END:newVal=this._valueMax();break;case $.ui.keyCode.PAGE_UP:newVal=this._trimAlignValue(curVal+((this._valueMax()-this._valueMin())/numPages));break;case $.ui.keyCode.PAGE_DOWN:newVal=this._trimAlignValue(curVal-((this._valueMax()-this._valueMin())/numPages));break;case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:if(curVal===this._valueMax()){return}newVal=this._trimAlignValue(curVal+step);break;case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:if(curVal===this._valueMin()){return}newVal=this._trimAlignValue(curVal-step);break}this._slide(event,index,newVal)},click:function(event){event.preventDefault()},keyup:function(event){var index=$(event.target).data("ui-slider-handle-index");if(this._keySliding){this._keySliding=false;this._stop(event,index);this._change(event,index);$(event.target).removeClass("ui-state-active")}}}})}(jQuery));(function($){function modifier(fn){return function(){var previous=this.element.val();fn.apply(this,arguments);this._refresh();if(previous!==this.element.val()){this._trigger("change")}}}$.widget("ui.spinner",{version:"1.10.2",defaultElement:"",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:true,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);this._setOption("min",this.options.min);this._setOption("step",this.options.step);this._value(this.element.val(),true);this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var options={},element=this.element;$.each(["min","max","step"],function(i,option){var value=element.attr(option);if(value!==undefined&&value.length){options[option]=value}});return options},_events:{keydown:function(event){if(this._start(event)&&this._keydown(event)){event.preventDefault()}},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(event){if(this.cancelBlur){delete this.cancelBlur;return}this._stop();this._refresh();if(this.previous!==this.element.val()){this._trigger("change",event)}},mousewheel:function(event,delta){if(!delta){return}if(!this.spinning&&!this._start(event)){return false}this._spin((delta>0?1:-1)*this.options.step,event);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){if(this.spinning){this._stop(event)}},100);event.preventDefault()},"mousedown .ui-spinner-button":function(event){var previous;previous=this.element[0]===this.document[0].activeElement?this.previous:this.element.val();function checkFocus(){var isActive=this.element[0]===this.document[0].activeElement;if(!isActive){this.element.focus();this.previous=previous;this._delay(function(){this.previous=previous})}}event.preventDefault();checkFocus.call(this);this.cancelBlur=true;this._delay(function(){delete this.cancelBlur;checkFocus.call(this)});if(this._start(event)===false){return}this._repeat(null,$(event.currentTarget).hasClass("ui-spinner-up")?1:-1,event)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(event){if(!$(event.currentTarget).hasClass("ui-state-active")){return}if(this._start(event)===false){return false}this._repeat(null,$(event.currentTarget).hasClass("ui-spinner-up")?1:-1,event)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var uiSpinner=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton");this.buttons=uiSpinner.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all");if(this.buttons.height()>Math.ceil(uiSpinner.height()*0.5)&&uiSpinner.height()>0){uiSpinner.height(uiSpinner.height())}if(this.options.disabled){this.disable()}},_keydown:function(event){var options=this.options,keyCode=$.ui.keyCode;switch(event.keyCode){case keyCode.UP:this._repeat(null,1,event);return true;case keyCode.DOWN:this._repeat(null,-1,event);return true;case keyCode.PAGE_UP:this._repeat(null,options.page,event);return true;case keyCode.PAGE_DOWN:this._repeat(null,-options.page,event);return true}return false},_uiSpinnerHtml:function(){return""},_buttonHtml:function(){return""+""+""+""+""+""+""},_start:function(event){if(!this.spinning&&this._trigger("start",event)===false){return false}if(!this.counter){this.counter=1}this.spinning=true;return true},_repeat:function(i,steps,event){i=i||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,steps,event)},i);this._spin(steps*this.options.step,event)},_spin:function(step,event){var value=this.value()||0;if(!this.counter){this.counter=1}value=this._adjustValue(value+step*this._increment(this.counter));if(!this.spinning||this._trigger("spin",event,{value:value})!==false){this._value(value);this.counter++}},_increment:function(i){var incremental=this.options.incremental;if(incremental){return $.isFunction(incremental)?incremental(i):Math.floor(i*i*i/50000-i*i/500+17*i/200+1)}return 1},_precision:function(){var precision=this._precisionOf(this.options.step);if(this.options.min!==null){precision=Math.max(precision,this._precisionOf(this.options.min))}return precision},_precisionOf:function(num){var str=num.toString(),decimal=str.indexOf(".");return decimal===-1?0:str.length-decimal-1},_adjustValue:function(value){var base,aboveMin,options=this.options;base=options.min!==null?options.min:0;aboveMin=value-base;aboveMin=Math.round(aboveMin/options.step)*options.step;value=base+aboveMin;value=parseFloat(value.toFixed(this._precision()));if(options.max!==null&&value>options.max){return options.max}if(options.min!==null&&value1&&decodeURIComponent(anchor.href.replace(rhash,""))===decodeURIComponent(location.href.replace(rhash,""))}$.widget("ui.tabs",{version:"1.10.2",delay:300,options:{active:null,collapsible:false,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var that=this,options=this.options;this.running=false;this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",options.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(event){if($(this).is(".ui-state-disabled")){event.preventDefault()}}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){if($(this).closest("li").is(".ui-state-disabled")){this.blur()}});this._processTabs();options.active=this._initialActive();if($.isArray(options.disabled)){options.disabled=$.unique(options.disabled.concat($.map(this.tabs.filter(".ui-state-disabled"),function(li){return that.tabs.index(li)}))).sort()}if(this.options.active!==false&&this.anchors.length){this.active=this._findActive(options.active)}else{this.active=$()}this._refresh();if(this.active.length){this.load(options.active)}},_initialActive:function(){var active=this.options.active,collapsible=this.options.collapsible,locationHash=location.hash.substring(1);if(active===null){if(locationHash){this.tabs.each(function(i,tab){if($(tab).attr("aria-controls")===locationHash){active=i;return false}})}if(active===null){active=this.tabs.index(this.tabs.filter(".ui-tabs-active"))}if(active===null||active===-1){active=this.tabs.length?0:false}}if(active!==false){active=this.tabs.index(this.tabs.eq(active));if(active===-1){active=collapsible?false:0}}if(!collapsible&&active===false&&this.anchors.length){active=0}return active},_getCreateEventData:function(){return{tab:this.active,panel:!this.active.length?$():this._getPanelForTab(this.active)}},_tabKeydown:function(event){var focusedTab=$(this.document[0].activeElement).closest("li"),selectedIndex=this.tabs.index(focusedTab),goingForward=true;if(this._handlePageNav(event)){return}switch(event.keyCode){case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:selectedIndex++;break;case $.ui.keyCode.UP:case $.ui.keyCode.LEFT:goingForward=false;selectedIndex--;break;case $.ui.keyCode.END:selectedIndex=this.anchors.length-1;break;case $.ui.keyCode.HOME:selectedIndex=0;break;case $.ui.keyCode.SPACE:event.preventDefault();clearTimeout(this.activating);this._activate(selectedIndex);return;case $.ui.keyCode.ENTER:event.preventDefault();clearTimeout(this.activating);this._activate(selectedIndex===this.options.active?false:selectedIndex);return;default:return}event.preventDefault();clearTimeout(this.activating);selectedIndex=this._focusNextTab(selectedIndex,goingForward);if(!event.ctrlKey){focusedTab.attr("aria-selected","false");this.tabs.eq(selectedIndex).attr("aria-selected","true");this.activating=this._delay(function(){this.option("active",selectedIndex)},this.delay)}},_panelKeydown:function(event){if(this._handlePageNav(event)){return}if(event.ctrlKey&&event.keyCode===$.ui.keyCode.UP){event.preventDefault();this.active.focus()}},_handlePageNav:function(event){if(event.altKey&&event.keyCode===$.ui.keyCode.PAGE_UP){this._activate(this._focusNextTab(this.options.active-1,false));return true}if(event.altKey&&event.keyCode===$.ui.keyCode.PAGE_DOWN){this._activate(this._focusNextTab(this.options.active+1,true));return true}},_findNextTab:function(index,goingForward){var lastTabIndex=this.tabs.length-1;function constrain(){if(index>lastTabIndex){index=0}if(index<0){index=lastTabIndex}return index}while($.inArray(constrain(),this.options.disabled)!==-1){index=goingForward?index+1:index-1}return index},_focusNextTab:function(index,goingForward){index=this._findNextTab(index,goingForward);this.tabs.eq(index).focus();return index},_setOption:function(key,value){if(key==="active"){this._activate(value);return}if(key==="disabled"){this._setupDisabled(value);return}this._super(key,value);if(key==="collapsible"){this.element.toggleClass("ui-tabs-collapsible",value);if(!value&&this.options.active===false){this._activate(0)}}if(key==="event"){this._setupEvents(value)}if(key==="heightStyle"){this._setupHeightStyle(value)}},_tabId:function(tab){return tab.attr("aria-controls")||"ui-tabs-"+getNextTabId()},_sanitizeSelector:function(hash){return hash?hash.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var options=this.options,lis=this.tablist.children(":has(a[href])");options.disabled=$.map(lis.filter(".ui-state-disabled"),function(tab){return lis.index(tab)});this._processTabs();if(options.active===false||!this.anchors.length){options.active=false;this.active=$()}else if(this.active.length&&!$.contains(this.tablist[0],this.active[0])){if(this.tabs.length===options.disabled.length){options.active=false;this.active=$()}else{this._activate(this._findNextTab(Math.max(0,options.active-1),false))}}else{options.active=this.tabs.index(this.active)}this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"});if(!this.active.length){this.tabs.eq(0).attr("tabIndex",0)}else{this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0});this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})}},_processTabs:function(){var that=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist");this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1});this.anchors=this.tabs.map(function(){return $("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1});this.panels=$();this.anchors.each(function(i,anchor){var selector,panel,panelId,anchorId=$(anchor).uniqueId().attr("id"),tab=$(anchor).closest("li"),originalAriaControls=tab.attr("aria-controls");if(isLocal(anchor)){selector=anchor.hash;panel=that.element.find(that._sanitizeSelector(selector))}else{panelId=that._tabId(tab);selector="#"+panelId;panel=that.element.find(selector);if(!panel.length){panel=that._createPanel(panelId);panel.insertAfter(that.panels[i-1]||that.tablist)}panel.attr("aria-live","polite")}if(panel.length){that.panels=that.panels.add(panel)}if(originalAriaControls){tab.data("ui-tabs-aria-controls",originalAriaControls)}tab.attr({"aria-controls":selector.substring(1),"aria-labelledby":anchorId});panel.attr("aria-labelledby",anchorId)});this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(id){return $("
").attr("id",id).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",true)},_setupDisabled:function(disabled){if($.isArray(disabled)){if(!disabled.length){disabled=false}else if(disabled.length===this.anchors.length){disabled=true}}for(var i=0,li;(li=this.tabs[i]);i++){if(disabled===true||$.inArray(i,disabled)!==-1){$(li).addClass("ui-state-disabled").attr("aria-disabled","true")}else{$(li).removeClass("ui-state-disabled").removeAttr("aria-disabled")}}this.options.disabled=disabled},_setupEvents:function(event){var events={click:function(event){event.preventDefault()}};if(event){$.each(event.split(" "),function(index,eventName){events[eventName]="_eventHandler"})}this._off(this.anchors.add(this.tabs).add(this.panels));this._on(this.anchors,events);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(heightStyle){var maxHeight,parent=this.element.parent();if(heightStyle==="fill"){maxHeight=parent.height();maxHeight-=this.element.outerHeight()-this.element.height();this.element.siblings(":visible").each(function(){var elem=$(this),position=elem.css("position");if(position==="absolute"||position==="fixed"){return}maxHeight-=elem.outerHeight(true)});this.element.children().not(this.panels).each(function(){maxHeight-=$(this).outerHeight(true)});this.panels.each(function(){$(this).height(Math.max(0,maxHeight-$(this).innerHeight()+$(this).height()))}).css("overflow","auto")}else if(heightStyle==="auto"){maxHeight=0;this.panels.each(function(){maxHeight=Math.max(maxHeight,$(this).height("").height())}).height(maxHeight)}},_eventHandler:function(event){var options=this.options,active=this.active,anchor=$(event.currentTarget),tab=anchor.closest("li"),clickedIsActive=tab[0]===active[0],collapsing=clickedIsActive&&options.collapsible,toShow=collapsing?$():this._getPanelForTab(tab),toHide=!active.length?$():this._getPanelForTab(active),eventData={oldTab:active,oldPanel:toHide,newTab:collapsing?$():tab,newPanel:toShow};event.preventDefault();if(tab.hasClass("ui-state-disabled")||tab.hasClass("ui-tabs-loading")||this.running||(clickedIsActive&&!options.collapsible)||(this._trigger("beforeActivate",event,eventData)===false)){return}options.active=collapsing?false:this.tabs.index(tab);this.active=clickedIsActive?$():tab;if(this.xhr){this.xhr.abort()}if(!toHide.length&&!toShow.length){$.error("jQuery UI Tabs: Mismatching fragment identifier.")}if(toShow.length){this.load(this.tabs.index(tab),event)}this._toggle(event,eventData)},_toggle:function(event,eventData){var that=this,toShow=eventData.newPanel,toHide=eventData.oldPanel;this.running=true;function complete(){that.running=false;that._trigger("activate",event,eventData)}function show(){eventData.newTab.closest("li").addClass("ui-tabs-active ui-state-active");if(toShow.length&&that.options.show){that._show(toShow,that.options.show,complete)}else{toShow.show();complete()}}if(toHide.length&&this.options.hide){this._hide(toHide,this.options.hide,function(){eventData.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");show()})}else{eventData.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");toHide.hide();show()}toHide.attr({"aria-expanded":"false","aria-hidden":"true"});eventData.oldTab.attr("aria-selected","false");if(toShow.length&&toHide.length){eventData.oldTab.attr("tabIndex",-1)}else if(toShow.length){this.tabs.filter(function(){return $(this).attr("tabIndex")===0}).attr("tabIndex",-1)}toShow.attr({"aria-expanded":"true","aria-hidden":"false"});eventData.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(index){var anchor,active=this._findActive(index);if(active[0]===this.active[0]){return}if(!active.length){active=this.active}anchor=active.find(".ui-tabs-anchor")[0];this._eventHandler({target:anchor,currentTarget:anchor,preventDefault:$.noop})},_findActive:function(index){return index===false?$():this.tabs.eq(index)},_getIndex:function(index){if(typeof index==="string"){index=this.anchors.index(this.anchors.filter("[href$='"+index+"']"))}return index},_destroy:function(){if(this.xhr){this.xhr.abort()}this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible");this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role");this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId();this.tabs.add(this.panels).each(function(){if($.data(this,"ui-tabs-destroy")){$(this).remove()}else{$(this).removeClass("ui-state-default ui-state-active ui-state-disabled "+"ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}});this.tabs.each(function(){var li=$(this),prev=li.data("ui-tabs-aria-controls");if(prev){li.attr("aria-controls",prev).removeData("ui-tabs-aria-controls")}else{li.removeAttr("aria-controls")}});this.panels.show();if(this.options.heightStyle!=="content"){this.panels.css("height","")}},enable:function(index){var disabled=this.options.disabled;if(disabled===false){return}if(index===undefined){disabled=false}else{index=this._getIndex(index);if($.isArray(disabled)){disabled=$.map(disabled,function(num){return num!==index?num:null})}else{disabled=$.map(this.tabs,function(li,num){return num!==index?num:null})}}this._setupDisabled(disabled)},disable:function(index){var disabled=this.options.disabled;if(disabled===true){return}if(index===undefined){disabled=true}else{index=this._getIndex(index);if($.inArray(index,disabled)!==-1){return}if($.isArray(disabled)){disabled=$.merge([index],disabled).sort()}else{disabled=[index]}}this._setupDisabled(disabled)},load:function(index,event){index=this._getIndex(index);var that=this,tab=this.tabs.eq(index),anchor=tab.find(".ui-tabs-anchor"),panel=this._getPanelForTab(tab),eventData={tab:tab,panel:panel};if(isLocal(anchor[0])){return}this.xhr=$.ajax(this._ajaxSettings(anchor,event,eventData));if(this.xhr&&this.xhr.statusText!=="canceled"){tab.addClass("ui-tabs-loading");panel.attr("aria-busy","true");this.xhr.success(function(response){setTimeout(function(){panel.html(response);that._trigger("load",event,eventData)},1)}).complete(function(jqXHR,status){setTimeout(function(){if(status==="abort"){that.panels.stop(false,true)}tab.removeClass("ui-tabs-loading");panel.removeAttr("aria-busy");if(jqXHR===that.xhr){delete that.xhr}},1)})}},_ajaxSettings:function(anchor,event,eventData){var that=this;return{url:anchor.attr("href"),beforeSend:function(jqXHR,settings){return that._trigger("beforeLoad",event,$.extend({jqXHR:jqXHR,ajaxSettings:settings},eventData))}}},_getPanelForTab:function(tab){var id=$(tab).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+id))}})})(jQuery);(function($){var increments=0;function addDescribedBy(elem,id){var describedby=(elem.attr("aria-describedby")||"").split(/\s+/);describedby.push(id);elem.data("ui-tooltip-id",id).attr("aria-describedby",$.trim(describedby.join(" ")))}function removeDescribedBy(elem){var id=elem.data("ui-tooltip-id"),describedby=(elem.attr("aria-describedby")||"").split(/\s+/),index=$.inArray(id,describedby);if(index!==-1){describedby.splice(index,1)}elem.removeData("ui-tooltip-id");describedby=$.trim(describedby.join(" "));if(describedby){elem.attr("aria-describedby",describedby)}else{elem.removeAttr("aria-describedby")}}$.widget("ui.tooltip",{version:"1.10.2",options:{content:function(){var title=$(this).attr("title")||"";return $("").text(title).html()},hide:true,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:true,tooltipClass:null,track:false,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};if(this.options.disabled){this._disable()}},_setOption:function(key,value){var that=this;if(key==="disabled"){this[value?"_disable":"_enable"]();this.options[key]=value;return}this._super(key,value);if(key==="content"){$.each(this.tooltips,function(id,element){that._updateContent(element)})}},_disable:function(){var that=this;$.each(this.tooltips,function(id,element){var event=$.Event("blur");event.target=event.currentTarget=element[0];that.close(event,true)});this.element.find(this.options.items).addBack().each(function(){var element=$(this);if(element.is("[title]")){element.data("ui-tooltip-title",element.attr("title")).attr("title","")}})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var element=$(this);if(element.data("ui-tooltip-title")){element.attr("title",element.data("ui-tooltip-title"))}})},open:function(event){var that=this,target=$(event?event.target:this.element).closest(this.options.items);if(!target.length||target.data("ui-tooltip-id")){return}if(target.attr("title")){target.data("ui-tooltip-title",target.attr("title"))}target.data("ui-tooltip-open",true);if(event&&event.type==="mouseover"){target.parents().each(function(){var parent=$(this),blurEvent;if(parent.data("ui-tooltip-open")){blurEvent=$.Event("blur");blurEvent.target=blurEvent.currentTarget=this;that.close(blurEvent,true)}if(parent.attr("title")){parent.uniqueId();that.parents[this.id]={element:this,title:parent.attr("title")};parent.attr("title","")}})}this._updateContent(target,event)},_updateContent:function(target,event){var content,contentOption=this.options.content,that=this,eventType=event?event.type:null;if(typeof contentOption==="string"){return this._open(event,target,contentOption)}content=contentOption.call(target[0],function(response){if(!target.data("ui-tooltip-open")){return}that._delay(function(){if(event){event.type=eventType}this._open(event,target,response)})});if(content){this._open(event,target,content)}},_open:function(event,target,content){var tooltip,events,delayedShow,positionOption=$.extend({},this.options.position);if(!content){return}tooltip=this._find(target);if(tooltip.length){tooltip.find(".ui-tooltip-content").html(content);return}if(target.is("[title]")){if(event&&event.type==="mouseover"){target.attr("title","")}else{target.removeAttr("title")}}tooltip=this._tooltip(target);addDescribedBy(target,tooltip.attr("id"));tooltip.find(".ui-tooltip-content").html(content);function position(event){positionOption.of=event;if(tooltip.is(":hidden")){return}tooltip.position(positionOption)}if(this.options.track&&event&&/^mouse/.test(event.type)){this._on(this.document,{mousemove:position});position(event)}else{tooltip.position($.extend({of:target},this.options.position))}tooltip.hide();this._show(tooltip,this.options.show);if(this.options.show&&this.options.show.delay){delayedShow=this.delayedShow=setInterval(function(){if(tooltip.is(":visible")){position(positionOption.of);clearInterval(delayedShow)}},$.fx.interval)}this._trigger("open",event,{tooltip:tooltip});events={keyup:function(event){if(event.keyCode===$.ui.keyCode.ESCAPE){var fakeEvent=$.Event(event);fakeEvent.currentTarget=target[0];this.close(fakeEvent,true)}},remove:function(){this._removeTooltip(tooltip)}};if(!event||event.type==="mouseover"){events.mouseleave="close"}if(!event||event.type==="focusin"){events.focusout="close"}this._on(true,target,events)},close:function(event){var that=this,target=$(event?event.currentTarget:this.element),tooltip=this._find(target);if(this.closing){return}clearInterval(this.delayedShow);if(target.data("ui-tooltip-title")){target.attr("title",target.data("ui-tooltip-title"))}removeDescribedBy(target);tooltip.stop(true);this._hide(tooltip,this.options.hide,function(){that._removeTooltip($(this))});target.removeData("ui-tooltip-open");this._off(target,"mouseleave focusout keyup");if(target[0]!==this.element[0]){this._off(target,"remove")}this._off(this.document,"mousemove");if(event&&event.type==="mouseleave"){$.each(this.parents,function(id,parent){$(parent.element).attr("title",parent.title);delete that.parents[id]})}this.closing=true;this._trigger("close",event,{tooltip:tooltip});this.closing=false},_tooltip:function(element){var id="ui-tooltip-"+increments++,tooltip=$("
").attr({id:id,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));$("
").addClass("ui-tooltip-content").appendTo(tooltip);tooltip.appendTo(this.document[0].body);this.tooltips[id]=element;return tooltip},_find:function(target){var id=target.data("ui-tooltip-id");return id?$("#"+id):$()},_removeTooltip:function(tooltip){tooltip.remove();delete this.tooltips[tooltip.attr("id")]},_destroy:function(){var that=this;$.each(this.tooltips,function(id,element){var event=$.Event("blur");event.target=event.currentTarget=element[0];that.close(event,true);$("#"+id).remove();if(element.data("ui-tooltip-title")){element.attr("title",element.data("ui-tooltip-title"));element.removeData("ui-tooltip-title")}})}})}(jQuery)); (function(a){"use strict";a.fn.absoluteCounter=function(b){b=a.extend({},a.fn.absoluteCounter.defaults,b||{});return a(this).each(function(){var d=this,g=b.speed,f=b.setStyles,e=b.delayedStart,c=b.fadeInDelay;if(f){a(d).css({display:"block",position:"relative",overflow:"hidden"}).addClass('animated')}a(d).css("opacity","0");a(d).animate({opacity:0},e,function(){var l=a(d).text();a(d).text("");for(var k=0;k=0){m='';for(var h=0;h<=parseInt(n,10);h++){m+=''+(h%10)+""}m+=""}else{m=''+n+""}a(d).append(m)}a(d).animate({opacity:1},c);a("span.onedigit",d).each(function(i,o){if(f){a(o).css({"float":"left",position:"relative"});a("span",a(o)).css({display:"block"})}var p=a("span",a(o)).length,j=a(d).height();a(o).css({height:(p*j)+"px",top:"0"});a("span",a(o)).css({height:j+"px"});a(o).animate({top:-1*((p-1)*j)+"px"},g,function(){if(typeof(b.onComplete)==="function"){b.onComplete.call(d)}})})})})};a.fn.absoluteCounter.defaults={speed:2000,setStyles:true,onComplete:null,delayedStart:0,fadeInDelay:0}}(jQuery)); (function(){(function($){$.easyPieChart=function(el,options){var addScaleLine,animateLine,drawLine,easeInOutQuad,renderBackground,renderScale,renderTrack,_this=this;this.el=el;this.$el=$(el);this.$el.data("easyPieChart",this);this.init=function(){var percent;_this.options=$.extend({},$.easyPieChart.defaultOptions,options);percent=parseInt(_this.$el.data('percent'),10);_this.percentage=0;_this.canvas=$("").get(0);_this.$el.append(_this.canvas);if(typeof G_vmlCanvasManager!=="undefined"&&G_vmlCanvasManager!==null){G_vmlCanvasManager.initElement(_this.canvas)}_this.ctx=_this.canvas.getContext('2d');if(window.devicePixelRatio>1.5){$(_this.canvas).css({width:_this.options.size,height:_this.options.size});_this.canvas.width*=2;_this.canvas.height*=2;_this.ctx.scale(2,2)}_this.ctx.translate(_this.options.size/2,_this.options.size/2);_this.$el.addClass('easyPieChart');_this.$el.css({width:_this.options.size,height:_this.options.size,lineHeight:""+_this.options.size+"px"});_this.update(percent);return _this};this.update=function(percent){if(_this.options.animate===false){return drawLine(percent)}else{return animateLine(_this.percentage,percent)}};renderScale=function(){var i,_i,_results;_this.ctx.fillStyle=_this.options.scaleColor;_this.ctx.lineWidth=1;_results=[];for(i=_i=0;_i<=24;i=++_i){_results.push(addScaleLine(i))}return _results};addScaleLine=function(i){var offset;offset=i%6===0?0:_this.options.size*0.017;_this.ctx.save();_this.ctx.rotate(i*Math.PI/12);_this.ctx.fillRect(_this.options.size/2-offset,0,-_this.options.size*0.05+offset,1);return _this.ctx.restore()};renderTrack=function(){var offset;offset=_this.options.size/2-_this.options.lineWidth/2;if(_this.options.scaleColor!==false){offset-=_this.options.size*0.08}_this.ctx.beginPath();_this.ctx.arc(0,0,offset,0,Math.PI*2,true);_this.ctx.closePath();_this.ctx.strokeStyle=_this.options.trackColor;_this.ctx.lineWidth=_this.options.lineWidth;return _this.ctx.stroke()};renderBackground=function(){if(_this.options.scaleColor!==false){renderScale()}if(_this.options.trackColor!==false){return renderTrack()}};drawLine=function(percent){var offset;renderBackground();_this.ctx.strokeStyle=$.isFunction(_this.options.barColor)?_this.options.barColor(percent):_this.options.barColor;_this.ctx.lineCap=_this.options.lineCap;_this.ctx.lineWidth=_this.options.lineWidth;offset=_this.options.size/2-_this.options.lineWidth/2;if(_this.options.scaleColor!==false){offset-=_this.options.size*0.08}_this.ctx.save();_this.ctx.rotate(-Math.PI/2);_this.ctx.beginPath();_this.ctx.arc(0,0,offset,0,Math.PI*2*percent/100,false);_this.ctx.stroke();return _this.ctx.restore()};animateLine=function(from,to){var currentStep,fps,steps;fps=30;steps=fps*_this.options.animate/1000;currentStep=0;_this.options.onStart.call(_this);_this.percentage=to;if(_this.animation){clearInterval(_this.animation);_this.animation=false}return _this.animation=setInterval(function(){_this.ctx.clearRect(-_this.options.size/2,-_this.options.size/2,_this.options.size,_this.options.size);renderBackground.call(_this);drawLine.call(_this,[easeInOutQuad(currentStep,from,to-from,steps)]);currentStep++;if((currentStep/steps)>1){clearInterval(_this.animation);_this.animation=false;return _this.options.onStop.call(_this)}},1000/fps)};easeInOutQuad=function(t,b,c,d){var easeIn,easing;easeIn=function(t){return Math.pow(t,2)};easing=function(t){if(t<1){return easeIn(t)}else{return 2-easeIn((t/2)*-2+2)}};t/=d/2;return c/2*easing(t)+b};return this.init()};$.easyPieChart.defaultOptions={barColor:'#ef1e25',trackColor:'#f2f2f2',scaleColor:'#dfe0e0',lineCap:'round',size:110,lineWidth:3,animate:false,onStart:$.noop,onStop:$.noop};$.fn.easyPieChart=function(options){return $.each(this,function(i,el){var $el;$el=$(el);if(!$el.data('easyPieChart')){return $el.data('easyPieChart',new $.easyPieChart(el,options))}})};return void 0})(jQuery)}).call(this); (function(e){function q(c,b,g,d,a){function k(){l.unbind("webkitTransitionEnd transitionend otransitionend oTransitionEnd");b&&w(b,g,d,a);a.startOrder=[];a.newOrder=[];a.origSort=[];a.checkSort=[];r.removeStyle(a.prefix+"filter, filter, "+a.prefix+"transform, transform, opacity, display").css(a.clean).removeAttr("data-checksum");window.atob||r.css({display:"none",opacity:"0"});l.removeStyle(a.prefix+"transition, transition, "+a.prefix+"perspective, perspective, "+a.prefix+"perspective-origin, perspective-origin, "+ (a.resizeContainer?"height":""));"list"==a.layoutMode?(n.css({display:a.targetDisplayList,opacity:"1"}),a.origDisplay=a.targetDisplayList):(n.css({display:a.targetDisplayGrid,opacity:"1"}),a.origDisplay=a.targetDisplayGrid);a.origLayout=a.layoutMode;setTimeout(function(){r.removeStyle(a.prefix+"transition, transition");a.mixing=!1;if("function"==typeof a.onMixEnd){var b=a.onMixEnd.call(this,a);a=b?b:a}})}clearInterval(a.failsafe);a.mixing=!0;a.filter=c;if("function"==typeof a.onMixStart){var f=a.onMixStart.call(this, a);a=f?f:a}for(var h=a.transitionSpeed,f=0;2>f;f++){var j=0==f?j=a.prefix:"";a.transition[j+"transition"]="all "+h+"ms linear";a.transition[j+"transform"]=j+"translate3d(0,0,0)";a.perspective[j+"perspective"]=a.perspectiveDistance+"px";a.perspective[j+"perspective-origin"]=a.perspectiveOrigin}var s=a.targetSelector,r=d.find(s);r.each(function(){this.data={}});var l=r.parent();l.css(a.perspective);a.easingFallback="ease-in-out";"smooth"==a.easing&&(a.easing="cubic-bezier(0.25, 0.46, 0.45, 0.94)"); "snap"==a.easing&&(a.easing="cubic-bezier(0.77, 0, 0.175, 1)");"windback"==a.easing&&(a.easing="cubic-bezier(0.175, 0.885, 0.320, 1.275)",a.easingFallback="cubic-bezier(0.175, 0.885, 0.320, 1)");"windup"==a.easing&&(a.easing="cubic-bezier(0.6, -0.28, 0.735, 0.045)",a.easingFallback="cubic-bezier(0.6, 0.28, 0.735, 0.045)");f="list"==a.layoutMode&&null!=a.listEffects?a.listEffects:a.effects;Array.prototype.indexOf&&(a.fade=-1u.length?t=t.add(d.find(s+":visible")):r.each(function(){var a=e(this);if(q){var b=0;e.each(u,function(){this.length? a.is("."+this.join(", ."))&&b++:0f;f++)j=0==f?j=a.prefix:"",c[j+"transform"]=a.scale+" "+a.rotateX+" "+a.rotateY+" "+a.rotateZ,c[j+"filter"]=a.blur+" "+a.grayscale;p.css(c);m.each(function(){var b=this.data,c=e(this);c.hasClass("mix_tohide")?(b.preTX=b.origPos.left-b.hideInterPos.left,b.preTY=b.origPos.top- b.hideInterPos.top):(b.preTX=b.origPos.left-b.preInterPos.left,b.preTY=b.origPos.top-b.preInterPos.top);for(var d={},f=0;2>f;f++){var j=0==f?j=a.prefix:"";d[j+"transform"]="translate("+b.preTX+"px,"+b.preTY+"px)"}c.css(d)});"list"==a.layoutMode?(d.addClass(a.listClass),d.removeClass(a.gridClass)):(d.addClass(a.gridClass),d.removeClass(a.listClass));setTimeout(function(){if(a.resizeContainer){for(var b={},c=0;2>c;c++){var d=0==c?d=a.prefix:"";b[d+"transition"]="all "+h+"ms ease-in-out";b.height=a.newHeight+ "px"}l.css(b)}v.css("opacity",a.fade);p.css("opacity",1);p.each(function(){var b=this.data;b.tX=b.finalPos.left-b.showInterPos.left;b.tY=b.finalPos.top-b.showInterPos.top;for(var c={},d=0;2>d;d++){var f=0==d?f=a.prefix:"";c[f+"transition-property"]=f+"transform, "+f+"filter, opacity";c[f+"transition-timing-function"]=a.easing+", linear, linear";c[f+"transition-duration"]=h+"ms";c[f+"transition-delay"]="0";c[f+"transform"]="translate("+b.tX+"px,"+b.tY+"px)";c[f+"filter"]="none"}e(this).css("-webkit-transition", "all "+h+"ms "+a.easingFallback).css(c)});m.each(function(){var b=this.data;b.tX=0!=b.finalPrePos.left?b.finalPrePos.left-b.preInterPos.left:0;b.tY=0!=b.finalPrePos.left?b.finalPrePos.top-b.preInterPos.top:0;for(var c={},d=0;2>d;d++){var f=0==d?f=a.prefix:"";c[f+"transition"]="all "+h+"ms "+a.easing;c[f+"transform"]="translate("+b.tX+"px,"+b.tY+"px)"}e(this).css("-webkit-transition","all "+h+"ms "+a.easingFallback).css(c)});b={};for(c=0;2>c;c++)d=0==c?d=a.prefix:"",b[d+"transition"]="all "+h+"ms "+ a.easing+", "+d+"filter "+h+"ms linear, opacity "+h+"ms linear",b[d+"transform"]=a.scale+" "+a.rotateX+" "+a.rotateY+" "+a.rotateZ,b[d+"filter"]=a.blur+" "+a.grayscale,b.opacity=a.fade;v.css(b);l.bind("webkitTransitionEnd transitionend otransitionend oTransitionEnd",function(b){if(-1c;c++){var e=0==c?e=a.prefix:"";b[e+"transition"]="height "+h+"ms ease-in-out";b.height=a.minHeight+"px"}l.css(b)}r.css(a.transition);if(t.length){b={};for(c=0;2>c;c++)e=0==c?e=a.prefix:"",b[e+"transform"]=a.scale+" "+a.rotateX+" "+a.rotateY+" "+a.rotateZ,b[e+"filter"]=a.blur+" "+a.grayscale,b.opacity=a.fade;v.css(b); l.bind("webkitTransitionEnd transitionend otransitionend oTransitionEnd",function(b){if(-1e?1:0}function k(a){"asc"==b?f.prepend(a).prepend(" "):f.append(a).append(" ")}g.find(d.targetSelector).wrapAll('
'); var f=g.find(".mix_sorter");d.origSort.length||f.find(d.targetSelector+":visible").each(function(){e(this).wrap("");d.origSort.push(e(this).parent().html().replace(/\s+/g,""));e(this).unwrap()});f.empty();if("reset"==c)e.each(d.startOrder,function(){f.append(this).append(" ")});else if("default"==c)e.each(d.origOrder,function(){k(this)});else if("random"==c){if(!d.newOrder.length){for(var h=d.startOrder.slice(),j=h.length,s=j;s--;){var r=parseInt(Math.random()*j),l=h[s];h[s]=h[r];h[r]=l}d.newOrder= h}e.each(d.newOrder,function(){f.append(this).append(" ")})}else if("custom"==c)e.each(b,function(){k(this)});else{if("undefined"===typeof d.origOrder[0].attr(c))return console.log("No such attribute found. Terminating"),!1;d.newOrder.length||(e.each(d.origOrder,function(){d.newOrder.push(e(this))}),d.newOrder.sort(a));e.each(d.newOrder,function(){k(this)})}d.checkSort=[];f.find(d.targetSelector+":visible").each(function(b){var a=e(this);0==b&&a.attr("data-checksum","1");a.wrap("");d.checkSort.push(a.parent().html().replace(/\s+/g, ""));a.unwrap()});g.find(d.targetSelector).unwrap()}function y(c){c=c.replace(/\s{2,}/g," ");var b=c.split(" ");e.each(b,function(c){"all"==this&&(b[c]="mix_all")});""==b[0]&&b.shift();return b}var x={init:function(c){return this.each(function(){var b={targetSelector:".mix",filterSelector:".filter",sortSelector:".sort",buttonEvent:"click",effects:["fade","scale"],listEffects:null,easing:"smooth",layoutMode:"grid",targetDisplayGrid:"inline-block",targetDisplayList:"block",listClass:"",gridClass:"", transitionSpeed:600,showOnLoad:"all",sortOnLoad:!1,multiFilter:!1,filterLogic:"or",resizeContainer:!0,minHeight:0,failClass:"fail",perspectiveDistance:"3000",perspectiveOrigin:"50% 50%",animateGridList:!0,onMixLoad:null,onMixStart:null,onMixEnd:null,container:null,origOrder:[],startOrder:[],newOrder:[],origSort:[],checkSort:[],filter:"",mixing:!1,origDisplay:"",origLayout:"",origHeight:0,newHeight:0,isTouch:!1,resetDelay:0,failsafe:null,prefix:"",easingFallback:"ease-in-out",transition:{},perspective:{}, clean:{},fade:"1",scale:"",rotateX:"",rotateY:"",rotateZ:"",blur:"",grayscale:""};c&&e.extend(b,c);this.config=b;e.support.touch="ontouchend"in document;e.support.touch&&(b.isTouch=!0,b.resetDelay=350);b.container=e(this);var g=b.container,d;a:{d=g[0];for(var a=["Webkit","Moz","O","ms"],k=0;kf;f++)d=0==f?d=b.prefix:"",b.transition[d+"transition"]="all "+b.transitionSpeed+"ms ease-in-out",b.perspective[d+"perspective"]=b.perspectiveDistance+"px",b.perspective[d+"perspective-origin"]= b.perspectiveOrigin;for(f=0;2>f;f++)d=0==f?d=b.prefix:"",b.clean[d+"transition"]="none";"list"==b.layoutMode?(g.addClass(b.listClass),b.origDisplay=b.targetDisplayList):(g.addClass(b.gridClass),b.origDisplay=b.targetDisplayGrid);b.origLayout=b.layoutMode;f=b.showOnLoad.split(" ");e.each(f,function(){e(b.filterSelector+'[data-filter="'+this+'"]').addClass("active")});g.find(b.targetSelector).addClass("mix_all");"all"==f[0]&&(f[0]="mix_all",b.showOnLoad="mix_all");var h=e();e.each(f,function(){h=h.add(e("."+ this))});h.each(function(){var a=e(this);"list"==b.layoutMode?a.css("display",b.targetDisplayList):a.css("display",b.targetDisplayGrid);a.css(b.transition)});setTimeout(function(){b.mixing=!0;h.css("opacity","1");setTimeout(function(){"list"==b.layoutMode?h.removeStyle(b.prefix+"transition, transition").css({display:b.targetDisplayList,opacity:1}):h.removeStyle(b.prefix+"transition, transition").css({display:b.targetDisplayGrid,opacity:1});b.mixing=!1;if("function"==typeof b.onMixLoad){var a=b.onMixLoad.call(this, b);b=a?a:b}},b.transitionSpeed)},10);b.filter=b.showOnLoad;e(b.sortSelector).bind(b.buttonEvent,function(){if(!b.mixing){var a=e(this),c=a.attr("data-sort"),d=a.attr("data-order");if(a.hasClass("active")){if("random"!=c)return!1}else e(b.sortSelector).removeClass("active"),a.addClass("active");g.find(b.targetSelector).each(function(){b.startOrder.push(e(this))});q(b.filter,c,d,g,b)}});e(b.filterSelector).bind(b.buttonEvent,function(){if(!b.mixing){var a=e(this);if(!1==b.multiFilter)e(b.filterSelector).removeClass("active"), a.addClass("active"),b.filter=a.attr("data-filter"),e(b.filterSelector+'[data-filter="'+b.filter+'"]').addClass("active");else{var c=a.attr("data-filter");a.hasClass("active")?(a.removeClass("active"),b.filter=b.filter.replace(RegExp("(\\s|^)"+c),"")):(a.addClass("active"),b.filter=b.filter+" "+c)}q(b.filter,null,null,g,b)}})})},toGrid:function(){return this.each(function(){var c=this.config;"grid"!=c.layoutMode&&(c.layoutMode="grid",q(c.filter,null,null,e(this),c))})},toList:function(){return this.each(function(){var c= this.config;"list"!=c.layoutMode&&(c.layoutMode="list",q(c.filter,null,null,e(this),c))})},filter:function(c){return this.each(function(){var b=this.config;b.mixing||(e(b.filterSelector).removeClass("active"),e(b.filterSelector+'[data-filter="'+c+'"]').addClass("active"),q(c,null,null,e(this),b))})},sort:function(c){return this.each(function(){var b=this.config,g=e(this);if(!b.mixing){e(b.sortSelector).removeClass("active");if(e.isArray(c)){var d=c[0],a=c[1];e(b.sortSelector+'[data-sort="'+c[0]+'"][data-order="'+ c[1]+'"]').addClass("active")}else e(b.sortSelector+'[data-sort="'+c+'"]').addClass("active"),d=c,a="desc";g.find(b.targetSelector).each(function(){b.startOrder.push(e(this))});q(b.filter,d,a,g,b)}})},multimix:function(c){return this.each(function(){var b=this.config,g=e(this);multiOut={filter:b.filter,sort:null,order:"desc",layoutMode:b.layoutMode};e.extend(multiOut,c);b.mixing||(e(b.filterSelector).add(b.sortSelector).removeClass("active"),e(b.filterSelector+'[data-filter="'+multiOut.filter+'"]').addClass("active"), "undefined"!==typeof multiOut.sort&&(e(b.sortSelector+'[data-sort="'+multiOut.sort+'"][data-order="'+multiOut.order+'"]').addClass("active"),g.find(b.targetSelector).each(function(){b.startOrder.push(e(this))})),b.layoutMode=multiOut.layoutMode,q(multiOut.filter,multiOut.sort,multiOut.order,g,b))})},remix:function(c){return this.each(function(){var b=this.config,g=e(this);b.origOrder=[];g.find(b.targetSelector).each(function(){var c=e(this);c.addClass("mix_all");b.origOrder.push(c)});!b.mixing&&"undefined"!==typeof c&&(e(b.filterSelector).removeClass("active"),e(b.filterSelector+'[data-filter="'+c+'"]').addClass("active"),q(c,null,null,g,b))})}};e.fn.mixitup=function(c,b){if(x[c])return x[c].apply(this,Array.prototype.slice.call(arguments,1));if("object"===typeof c||!c)return x.init.apply(this,arguments)};e.fn.removeStyle=function(c){return this.each(function(){var b=e(this);c=c.replace(/\s+/g,"");var g=c.split(",");e.each(g,function(){var c=RegExp(this.toString()+"[^;]+;?","g");b.attr("style",function(a, b){if(b)return b.replace(c,"")})})})}})(jQuery); (function(e){var y=!1,D=!1,J=5E3,K=2E3,x=0,L=function(){var e=document.getElementsByTagName("script"),e=e[e.length-1].src.split("?")[0];return 0f){if(b.getScrollTop()>=b.page.maxh)return!0}else if(0>=b.getScrollTop())return!0;b.scrollmom&&b.scrollmom.stop(); b.lastdeltay+=f;b.debounced("mousewheely",function(){var d=b.lastdeltay;b.lastdeltay=0;b.rail.drag||b.doScrollBy(d)},120)}d.stopImmediatePropagation();return d.preventDefault()}var b=this;this.version="3.4.0";this.name="nicescroll";this.me=c;this.opt={doc:e("body"),win:!1};e.extend(this.opt,F);this.opt.snapbackspeed=80;if(k)for(var q in b.opt)"undefined"!=typeof k[q]&&(b.opt[q]=k[q]);this.iddoc=(this.doc=b.opt.doc)&&this.doc[0]?this.doc[0].id||"":"";this.ispage=/BODY|HTML/.test(b.opt.win?b.opt.win[0].nodeName: this.doc[0].nodeName);this.haswrapper=!1!==b.opt.win;this.win=b.opt.win||(this.ispage?e(window):this.doc);this.docscroll=this.ispage&&!this.haswrapper?e(window):this.win;this.body=e("body");this.iframe=this.isfixed=this.viewport=!1;this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName;this.istextarea="TEXTAREA"==this.win[0].nodeName;this.forcescreen=!1;this.canshowonmouseevent="scroll"!=b.opt.autohidemode;this.page=this.view=this.onzoomout=this.onzoomin=this.onscrollcancel= this.onscrollend=this.onscrollstart=this.onclick=this.ongesturezoom=this.onkeypress=this.onmousewheel=this.onmousemove=this.onmouseup=this.onmousedown=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.observerremover=this.observer=this.scrollmom=this.scrollrunning=this.checkrtlmode=!1;do this.id="ascrail"+K++;while(document.getElementById(this.id));this.hasmousefocus=this.hasfocus=this.zoomactive=this.zoom=this.selectiondrag=this.cursorfreezed=this.cursor= this.rail=!1;this.visibility=!0;this.hidden=this.locked=!1;this.cursoractive=!0;this.overflowx=b.opt.overflowx;this.overflowy=b.opt.overflowy;this.nativescrollingarea=!1;this.checkarea=0;this.events=[];this.saved={};this.delaylist={};this.synclist={};this.lastdeltay=this.lastdeltax=0;this.detected=M();var f=e.extend({},this.detected);this.ishwscroll=(this.canhwscroll=f.hastransform&&b.opt.hwacceleration)&&b.haswrapper;this.istouchcapable=!1;f.cantouch&&(f.ischrome&&!f.isios&&!f.isandroid)&&(this.istouchcapable= !0,f.cantouch=!1);f.cantouch&&(f.ismozilla&&!f.isios)&&(this.istouchcapable=!0,f.cantouch=!1);b.opt.enablemouselockapi||(f.hasmousecapture=!1,f.haspointerlock=!1);this.delayed=function(d,c,g,e){var f=b.delaylist[d],h=(new Date).getTime();if(!e&&f&&f.tt)return!1;f&&f.tt&&clearTimeout(f.tt);if(f&&f.last+g>h&&!f.tt)b.delaylist[d]={last:h+g,tt:setTimeout(function(){b.delaylist[d].tt=0;c.call()},g)};else if(!f||!f.tt)b.delaylist[d]={last:h,tt:0},setTimeout(function(){c.call()},0)};this.debounced=function(d, c,g){var f=b.delaylist[d];(new Date).getTime();b.delaylist[d]=c;f||setTimeout(function(){var c=b.delaylist[d];b.delaylist[d]=!1;c.call()},g)};this.synched=function(d,c){b.synclist[d]=c;(function(){b.onsync||(v(function(){b.onsync=!1;for(d in b.synclist){var c=b.synclist[d];c&&c.call(b);b.synclist[d]=!1}}),b.onsync=!0)})();return d};this.unsynched=function(d){b.synclist[d]&&(b.synclist[d]=!1)};this.css=function(d,c){for(var g in c)b.saved.css.push([d,g,d.css(g)]),d.css(g,c[g])};this.scrollTop=function(d){return"undefined"==typeof d?b.getScrollTop():b.setScrollTop(d)};this.scrollLeft=function(d){return"undefined"==typeof d?b.getScrollLeft():b.setScrollLeft(d)};BezierClass=function(b,c,g,f,e,h,l){this.st=b;this.ed=c;this.spd=g;this.p1=f||0;this.p2=e||1;this.p3=h||0;this.p4=l||1;this.ts=(new Date).getTime();this.df=this.ed-this.st};BezierClass.prototype={B2:function(b){return 3*b*b*(1-b)},B3:function(b){return 3*b*(1-b)*(1-b)},B4:function(b){return(1-b)*(1-b)*(1-b)},getNow:function(){var b=1-((new Date).getTime()-this.ts)/ this.spd,c=this.B2(b)+this.B3(b)+this.B4(b);return 0>b?this.ed:this.st+Math.round(this.df*c)},update:function(b,c){this.st=this.getNow();this.ed=b;this.spd=c;this.ts=(new Date).getTime();this.df=this.ed-this.st;return this}};if(this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"};f.hastranslate3d&&f.isios&&this.doc.css("-webkit-backface-visibility","hidden");var r=function(){var d=b.doc.css(f.trstyle);return d&&"matrix"==d.substr(0,6)?d.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/): !1};this.getScrollTop=function(d){if(!d){if(d=r())return 16==d.length?-d[13]:-d[5];if(b.timerscroll&&b.timerscroll.bz)return b.timerscroll.bz.getNow()}return b.doc.translate.y};this.getScrollLeft=function(d){if(!d){if(d=r())return 16==d.length?-d[12]:-d[4];if(b.timerscroll&&b.timerscroll.bh)return b.timerscroll.bh.getNow()}return b.doc.translate.x};this.notifyScrollEvent=document.createEvent?function(b){var c=document.createEvent("UIEvents");c.initUIEvent("scroll",!1,!0,window,1);b.dispatchEvent(c)}: document.fireEvent?function(b){var c=document.createEventObject();b.fireEvent("onscroll");c.cancelBubble=!0}:function(b,c){};f.hastranslate3d&&b.opt.enabletranslate3d?(this.setScrollTop=function(d,c){b.doc.translate.y=d;b.doc.translate.ty=-1*d+"px";b.doc.css(f.trstyle,"translate3d("+b.doc.translate.tx+","+b.doc.translate.ty+",0px)");c||b.notifyScrollEvent(b.win[0])},this.setScrollLeft=function(d,c){b.doc.translate.x=d;b.doc.translate.tx=-1*d+"px";b.doc.css(f.trstyle,"translate3d("+b.doc.translate.tx+ ","+b.doc.translate.ty+",0px)");c||b.notifyScrollEvent(b.win[0])}):(this.setScrollTop=function(d,c){b.doc.translate.y=d;b.doc.translate.ty=-1*d+"px";b.doc.css(f.trstyle,"translate("+b.doc.translate.tx+","+b.doc.translate.ty+")");c||b.notifyScrollEvent(b.win[0])},this.setScrollLeft=function(d,c){b.doc.translate.x=d;b.doc.translate.tx=-1*d+"px";b.doc.css(f.trstyle,"translate("+b.doc.translate.tx+","+b.doc.translate.ty+")");c||b.notifyScrollEvent(b.win[0])})}else this.getScrollTop=function(){return b.docscroll.scrollTop()}, this.setScrollTop=function(d){return b.docscroll.scrollTop(d)},this.getScrollLeft=function(){return b.docscroll.scrollLeft()},this.setScrollLeft=function(d){return b.docscroll.scrollLeft(d)};this.getTarget=function(b){return!b?!1:b.target?b.target:b.srcElement?b.srcElement:!1};this.hasParent=function(b,c){if(!b)return!1;for(var g=b.target||b.srcElement||b||!1;g&&g.id!=c;)g=g.parentNode||!1;return!1!==g};var u={thin:1,medium:3,thick:5};this.getOffset=function(){if(b.isfixed)return{top:parseFloat(b.win.css("top")), left:parseFloat(b.win.css("left"))};if(!b.viewport)return b.win.offset();var d=b.win.offset(),c=b.viewport.offset();return{top:d.top-c.top+b.viewport.scrollTop(),left:d.left-c.left+b.viewport.scrollLeft()}};this.updateScrollBar=function(d){if(b.ishwscroll)b.rail.css({height:b.win.innerHeight()}),b.railh&&b.railh.css({width:b.win.innerWidth()});else{var c=b.getOffset(),g=c.top,f=c.left,g=g+l(b.win,"border-top-width",!0);b.win.outerWidth();b.win.innerWidth();var f=f+(b.rail.align?b.win.outerWidth()- l(b.win,"border-right-width")-b.rail.width:l(b.win,"border-left-width")),e=b.opt.railoffset;e&&(e.top&&(g+=e.top),b.rail.align&&e.left&&(f+=e.left));b.locked||b.rail.css({top:g,left:f,height:d?d.h:b.win.innerHeight()});b.zoom&&b.zoom.css({top:g+1,left:1==b.rail.align?f-20:f+b.rail.width+4});b.railh&&!b.locked&&(g=c.top,f=c.left,d=b.railh.align?g+l(b.win,"border-top-width",!0)+b.win.innerHeight()-b.railh.height:g+l(b.win,"border-top-width",!0),f+=l(b.win,"border-left-width"),b.railh.css({top:d,left:f, width:b.railh.width}))}};this.doRailClick=function(d,c,g){var f;b.locked||(b.cancelEvent(d),c?(c=g?b.doScrollLeft:b.doScrollTop,f=g?(d.pageX-b.railh.offset().left-b.cursorwidth/2)*b.scrollratio.x:(d.pageY-b.rail.offset().top-b.cursorheight/2)*b.scrollratio.y,c(f)):(c=g?b.doScrollLeftBy:b.doScrollBy,f=g?b.scroll.x:b.scroll.y,d=g?d.pageX-b.railh.offset().left:d.pageY-b.rail.offset().top,g=g?b.view.w:b.view.h,f>=d?c(g):c(-g)))};b.hasanimationframe=v;b.hascancelanimationframe=w;b.hasanimationframe?b.hascancelanimationframe|| (w=function(){b.cancelAnimationFrame=!0}):(v=function(b){return setTimeout(b,15-Math.floor(+new Date/1E3)%16)},w=clearInterval);this.init=function(){b.saved.css=[];if(f.isie7mobile)return!0;f.hasmstouch&&b.css(b.ispage?e("html"):b.win,{"-ms-touch-action":"none"});b.zindex="auto";b.zindex=!b.ispage&&"auto"==b.opt.zindex?h()||"auto":b.opt.zindex;!b.ispage&&"auto"!=b.zindex&&b.zindex>x&&(x=b.zindex);b.isie&&(0==b.zindex&&"auto"==b.opt.zindex)&&(b.zindex="auto");if(!b.ispage||!f.cantouch&&!f.isieold&& !f.isie9mobile){var d=b.docscroll;b.ispage&&(d=b.haswrapper?b.win:b.doc);f.isie9mobile||b.css(d,{"overflow-y":"hidden"});b.ispage&&f.isie7&&("BODY"==b.doc[0].nodeName?b.css(e("html"),{"overflow-y":"hidden"}):"HTML"==b.doc[0].nodeName&&b.css(e("body"),{"overflow-y":"hidden"}));f.isios&&(!b.ispage&&!b.haswrapper)&&b.css(e("body"),{"-webkit-overflow-scrolling":"touch"});var c=e(document.createElement("div"));c.css({position:"relative",top:0,"float":"right",width:b.opt.cursorwidth,height:"0px","background-color":b.opt.cursorcolor, border:b.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":b.opt.cursorborderradius,"-moz-border-radius":b.opt.cursorborderradius,"border-radius":b.opt.cursorborderradius});c.hborder=parseFloat(c.outerHeight()-c.innerHeight());b.cursor=c;var g=e(document.createElement("div"));g.attr("id",b.id);g.addClass("nicescroll-rails");var l,k,n=["left","right"],G;for(G in n)k=n[G],(l=b.opt.railpadding[k])?g.css("padding-"+k,l+"px"):b.opt.railpadding[k]=0;g.append(c);g.width=Math.max(parseFloat(b.opt.cursorwidth), c.outerWidth())+b.opt.railpadding.left+b.opt.railpadding.right;g.css({width:g.width+"px",zIndex:b.zindex,background:b.opt.background,cursor:"default"});g.visibility=!0;g.scrollable=!0;g.align="left"==b.opt.railalign?0:1;b.rail=g;c=b.rail.drag=!1;b.opt.boxzoom&&(!b.ispage&&!f.isieold)&&(c=document.createElement("div"),b.bind(c,"click",b.doZoom),b.zoom=e(c),b.zoom.css({cursor:"pointer","z-index":b.zindex,backgroundImage:"url("+L+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),b.opt.dblclickzoom&& b.bind(b.win,"dblclick",b.doZoom),f.cantouch&&b.opt.gesturezoom&&(b.ongesturezoom=function(d){1.5d.scale&&b.doZoomOut(d);return b.cancelEvent(d)},b.bind(b.win,"gestureend",b.ongesturezoom)));b.railh=!1;if(b.opt.horizrailenabled){b.css(d,{"overflow-x":"hidden"});c=e(document.createElement("div"));c.css({position:"relative",top:0,height:b.opt.cursorwidth,width:"0px","background-color":b.opt.cursorcolor,border:b.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":b.opt.cursorborderradius, "-moz-border-radius":b.opt.cursorborderradius,"border-radius":b.opt.cursorborderradius});c.wborder=parseFloat(c.outerWidth()-c.innerWidth());b.cursorh=c;var m=e(document.createElement("div"));m.attr("id",b.id+"-hr");m.addClass("nicescroll-rails");m.height=Math.max(parseFloat(b.opt.cursorwidth),c.outerHeight());m.css({height:m.height+"px",zIndex:b.zindex,background:b.opt.background});m.append(c);m.visibility=!0;m.scrollable=!0;m.align="top"==b.opt.railvalign?0:1;b.railh=m;b.railh.drag=!1}b.ispage? (g.css({position:"fixed",top:"0px",height:"100%"}),g.align?g.css({right:"0px"}):g.css({left:"0px"}),b.body.append(g),b.railh&&(m.css({position:"fixed",left:"0px",width:"100%"}),m.align?m.css({bottom:"0px"}):m.css({top:"0px"}),b.body.append(m))):(b.ishwscroll?("static"==b.win.css("position")&&b.css(b.win,{position:"relative"}),d="HTML"==b.win[0].nodeName?b.body:b.win,b.zoom&&(b.zoom.css({position:"absolute",top:1,right:0,"margin-right":g.width+4}),d.append(b.zoom)),g.css({position:"absolute",top:0}), g.align?g.css({right:0}):g.css({left:0}),d.append(g),m&&(m.css({position:"absolute",left:0,bottom:0}),m.align?m.css({bottom:0}):m.css({top:0}),d.append(m))):(b.isfixed="fixed"==b.win.css("position"),d=b.isfixed?"fixed":"absolute",b.isfixed||(b.viewport=b.getViewport(b.win[0])),b.viewport&&(b.body=b.viewport,!1==/relative|absolute/.test(b.viewport.css("position"))&&b.css(b.viewport,{position:"relative"})),g.css({position:d}),b.zoom&&b.zoom.css({position:d}),b.updateScrollBar(),b.body.append(g),b.zoom&& b.body.append(b.zoom),b.railh&&(m.css({position:d}),b.body.append(m))),f.isios&&b.css(b.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),f.isie&&b.opt.disableoutline&&b.win.attr("hideFocus","true"),f.iswebkit&&b.opt.disableoutline&&b.win.css({outline:"none"}));!1===b.opt.autohidemode?(b.autohidedom=!1,b.rail.css({opacity:b.opt.cursoropacitymax}),b.railh&&b.railh.css({opacity:b.opt.cursoropacitymax})):!0===b.opt.autohidemode?(b.autohidedom=e().add(b.rail),f.isie8&& (b.autohidedom=b.autohidedom.add(b.cursor)),b.railh&&(b.autohidedom=b.autohidedom.add(b.railh)),b.railh&&f.isie8&&(b.autohidedom=b.autohidedom.add(b.cursorh))):"scroll"==b.opt.autohidemode?(b.autohidedom=e().add(b.rail),b.railh&&(b.autohidedom=b.autohidedom.add(b.railh))):"cursor"==b.opt.autohidemode?(b.autohidedom=e().add(b.cursor),b.railh&&(b.autohidedom=b.autohidedom.add(b.cursorh))):"hidden"==b.opt.autohidemode&&(b.autohidedom=!1,b.hide(),b.locked=!1);if(f.isie9mobile)b.scrollmom=new H(b),b.onmangotouch= function(d){d=b.getScrollTop();var c=b.getScrollLeft();if(d==b.scrollmom.lastscrolly&&c==b.scrollmom.lastscrollx)return!0;var g=d-b.mangotouch.sy,f=c-b.mangotouch.sx;if(0!=Math.round(Math.sqrt(Math.pow(f,2)+Math.pow(g,2)))){var p=0>g?-1:1,e=0>f?-1:1,h=+new Date;b.mangotouch.lazy&&clearTimeout(b.mangotouch.lazy);80s?s=Math.round(s/2):s>b.page.maxh&&(s=b.page.maxh+Math.round((s-b.page.maxh)/2)):(0>s&&(h=s=0),s>b.page.maxh&&(s=b.page.maxh,h=0));if(b.railh&&b.railh.scrollable){var m=b.rail.drag.sl-k;b.ishwscroll&&b.opt.bouncescroll?0>m?m=Math.round(m/2):m>b.page.maxw&&(m=b.page.maxw+ Math.round((m-b.page.maxw)/2)):(0>m&&(l=m=0),m>b.page.maxw&&(m=b.page.maxw,l=0))}g=!1;if(b.rail.drag.dl)g=!0,"v"==b.rail.drag.dl?m=b.rail.drag.sl:"h"==b.rail.drag.dl&&(s=b.rail.drag.st);else{var p=Math.abs(p),k=Math.abs(k),n=b.opt.directionlockdeadzone;if("v"==b.rail.drag.ck){if(p>n&&k<=0.3*p)return b.rail.drag=!1,!0;k>n&&(b.rail.drag.dl="f",e("body").scrollTop(e("body").scrollTop()))}else if("h"==b.rail.drag.ck){if(k>n&&p<=0.3*az)return b.rail.drag=!1,!0;p>n&&(b.rail.drag.dl="f",e("body").scrollLeft(e("body").scrollLeft()))}}b.synched("touchmove", function(){b.rail.drag&&2==b.rail.drag.pt&&(b.prepareTransition&&b.prepareTransition(0),b.rail.scrollable&&b.setScrollTop(s),b.scrollmom.update(l,h),b.railh&&b.railh.scrollable?(b.setScrollLeft(m),b.showCursor(s,m)):b.showCursor(s),f.isie10&&document.selection.clear())});f.ischrome&&b.istouchcapable&&(g=!1);if(g)return b.cancelEvent(d)}}}b.onmousedown=function(d,c){if(!(b.rail.drag&&1!=b.rail.drag.pt)){if(b.locked)return b.cancelEvent(d);b.cancelScroll();b.rail.drag={x:d.clientX,y:d.clientY,sx:b.scroll.x, sy:b.scroll.y,pt:1,hr:!!c};var g=b.getTarget(d);!b.ispage&&f.hasmousecapture&&g.setCapture();b.isiframe&&!f.hasmousecapture&&(b.saved.csspointerevents=b.doc.css("pointer-events"),b.css(b.doc,{"pointer-events":"none"}));return b.cancelEvent(d)}};b.onmouseup=function(d){if(b.rail.drag&&(f.hasmousecapture&&document.releaseCapture(),b.isiframe&&!f.hasmousecapture&&b.doc.css("pointer-events",b.saved.csspointerevents),1==b.rail.drag.pt))return b.rail.drag=!1,b.cancelEvent(d)};b.onmousemove=function(d){if(b.rail.drag&& 1==b.rail.drag.pt){if(f.ischrome&&0==d.which)return b.onmouseup(d);b.cursorfreezed=!0;if(b.rail.drag.hr){b.scroll.x=b.rail.drag.sx+(d.clientX-b.rail.drag.x);0>b.scroll.x&&(b.scroll.x=0);var c=b.scrollvaluemaxw;b.scroll.x>c&&(b.scroll.x=c)}else b.scroll.y=b.rail.drag.sy+(d.clientY-b.rail.drag.y),0>b.scroll.y&&(b.scroll.y=0),c=b.scrollvaluemax,b.scroll.y>c&&(b.scroll.y=c);b.synched("mousemove",function(){b.rail.drag&&1==b.rail.drag.pt&&(b.showCursor(),b.rail.drag.hr?b.doScrollLeft(Math.round(b.scroll.x* b.scrollratio.x),b.opt.cursordragspeed):b.doScrollTop(Math.round(b.scroll.y*b.scrollratio.y),b.opt.cursordragspeed))});return b.cancelEvent(d)}};if(f.cantouch||b.opt.touchbehavior)b.onpreventclick=function(d){if(b.preventclick)return b.preventclick.tg.onclick=b.preventclick.click,b.preventclick=!1,b.cancelEvent(d)},b.bind(b.win,"mousedown",b.ontouchstart),b.onclick=f.isios?!1:function(d){return b.lastmouseup?(b.lastmouseup=!1,b.cancelEvent(d)):!0},b.opt.grabcursorenabled&&f.cursorgrabvalue&&(b.css(b.ispage? b.doc:b.win,{cursor:f.cursorgrabvalue}),b.css(b.rail,{cursor:f.cursorgrabvalue}));else{var r=function(d){if(b.selectiondrag){if(d){var c=b.win.outerHeight();d=d.pageY-b.selectiondrag.top;0=c&&(d-=c);b.selectiondrag.df=d}0!=b.selectiondrag.df&&(b.doScrollBy(2*-Math.floor(b.selectiondrag.df/6)),b.debounced("doselectionscroll",function(){r()},50))}};b.hasTextSelected="getSelection"in document?function(){return 0b.page.maxh?b.doScrollTop(b.page.maxh):(b.scroll.y=Math.round(b.getScrollTop()*(1/b.scrollratio.y)), b.scroll.x=Math.round(b.getScrollLeft()*(1/b.scrollratio.x)),b.cursoractive&&b.noticeCursor());b.scroll.y&&0==b.getScrollTop()&&b.doScrollTo(Math.floor(b.scroll.y*b.scrollratio.y));return b};this.resize=b.onResize;this.lazyResize=function(d){d=isNaN(d)?30:d;b.delayed("resize",b.resize,d);return b};this._bind=function(d,c,g,f){b.events.push({e:d,n:c,f:g,b:f,q:!1});d.addEventListener?d.addEventListener(c,g,f||!1):d.attachEvent?d.attachEvent("on"+c,g):d["on"+c]=g};this.jqbind=function(d,c,g){b.events.push({e:d, n:c,f:g,q:!0});e(d).bind(c,g)};this.bind=function(d,c,g,e){var h="jquery"in d?d[0]:d;"mousewheel"==c?"onwheel"in b.win?b._bind(h,"wheel",g,e||!1):(d="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll",n(h,d,g,e||!1),"DOMMouseScroll"==d&&n(h,"MozMousePixelScroll",g,e||!1)):h.addEventListener?(f.cantouch&&/mouseup|mousedown|mousemove/.test(c)&&b._bind(h,"mousedown"==c?"touchstart":"mouseup"==c?"touchend":"touchmove",function(b){if(b.touches){if(2>b.touches.length){var d=b.touches.length? b.touches[0]:b;d.original=b;g.call(this,d)}}else b.changedTouches&&(d=b.changedTouches[0],d.original=b,g.call(this,d))},e||!1),b._bind(h,c,g,e||!1),f.cantouch&&"mouseup"==c&&b._bind(h,"touchcancel",g,e||!1)):b._bind(h,c,function(d){if((d=d||window.event||!1)&&d.srcElement)d.target=d.srcElement;"pageY"in d||(d.pageX=d.clientX+document.documentElement.scrollLeft,d.pageY=d.clientY+document.documentElement.scrollTop);return!1===g.call(h,d)||!1===e?b.cancelEvent(d):!0})};this._unbind=function(b,c,g,f){b.removeEventListener? b.removeEventListener(c,g,f):b.detachEvent?b.detachEvent("on"+c,g):b["on"+c]=!1};this.unbindAll=function(){for(var d=0;d (b.newscrolly-h)*(e-h)||0>(b.newscrollx-l)*(c-l))&&b.cancelScroll();!1==b.opt.bouncescroll&&(0>e?e=0:e>b.page.maxh&&(e=b.page.maxh),0>c?c=0:c>b.page.maxw&&(c=b.page.maxw));if(b.scrollrunning&&c==b.newscrollx&&e==b.newscrolly)return!1;b.newscrolly=e;b.newscrollx=c;b.newscrollspeed=g||!1;if(b.timer)return!1;b.timer=setTimeout(function(){var g=b.getScrollTop(),h=b.getScrollLeft(),l,k;l=c-h;k=e-g;l=Math.round(Math.sqrt(Math.pow(l,2)+Math.pow(k,2)));l=b.newscrollspeed&&1=b.newscrollspeed&&(l*=b.newscrollspeed);b.prepareTransition(l,!0);b.timerscroll&&b.timerscroll.tm&&clearInterval(b.timerscroll.tm);0c?c=0:c>b.page.maxh&&(c=b.page.maxh);0>e?e=0:e>b.page.maxw&&(e=b.page.maxw);if(c!=b.newscrolly||e!=b.newscrollx)return b.doScrollPos(e,c,b.opt.snapbackspeed);b.onscrollend&&b.scrollrunning&&b.onscrollend.call(b,{type:"scrollend",current:{x:e,y:c},end:{x:b.newscrollx,y:b.newscrolly}});b.scrollrunning= !1}):(this.doScrollLeft=function(c,f){var g=b.scrollrunning?b.newscrolly:b.getScrollTop();b.doScrollPos(c,g,f)},this.doScrollTop=function(c,f){var g=b.scrollrunning?b.newscrollx:b.getScrollLeft();b.doScrollPos(g,c,f)},this.doScrollPos=function(c,f,g){function e(){if(b.cancelAnimationFrame)return!0;b.scrollrunning=!0;if(r=1-r)return b.timer=v(e)||1;var c=0,d=sy=b.getScrollTop();if(b.dst.ay){var d=b.bzscroll?b.dst.py+b.bzscroll.getNow()*b.dst.ay:b.newscrolly,g=d-sy;if(0>g&&db.newscrolly)d= b.newscrolly;b.setScrollTop(d);d==b.newscrolly&&(c=1)}else c=1;var f=sx=b.getScrollLeft();if(b.dst.ax){f=b.bzscroll?b.dst.px+b.bzscroll.getNow()*b.dst.ax:b.newscrollx;g=f-sx;if(0>g&&fb.newscrollx)f=b.newscrollx;b.setScrollLeft(f);f==b.newscrollx&&(c+=1)}else c+=1;2==c?(b.timer=0,b.cursorfreezed=!1,b.bzscroll=!1,b.scrollrunning=!1,0>d?d=0:d>b.page.maxh&&(d=b.page.maxh),0>f?f=0:f>b.page.maxw&&(f=b.page.maxw),f!=b.newscrollx||d!=b.newscrolly?b.doScrollPos(f,d):b.onscrollend&&b.onscrollend.call(b, {type:"scrollend",current:{x:sx,y:sy},end:{x:b.newscrollx,y:b.newscrolly}})):b.timer=v(e)||1}f="undefined"==typeof f||!1===f?b.getScrollTop(!0):f;if(b.timer&&b.newscrolly==f&&b.newscrollx==c)return!0;b.timer&&w(b.timer);b.timer=0;var h=b.getScrollTop(),l=b.getScrollLeft();(0>(b.newscrolly-h)*(f-h)||0>(b.newscrollx-l)*(c-l))&&b.cancelScroll();b.newscrolly=f;b.newscrollx=c;if(!b.bouncescroll||!b.rail.visibility)0>b.newscrolly?b.newscrolly=0:b.newscrolly>b.page.maxh&&(b.newscrolly=b.page.maxh);if(!b.bouncescroll|| !b.railh.visibility)0>b.newscrollx?b.newscrollx=0:b.newscrollx>b.page.maxw&&(b.newscrollx=b.page.maxw);b.dst={};b.dst.x=c-l;b.dst.y=f-h;b.dst.px=l;b.dst.py=h;var k=Math.round(Math.sqrt(Math.pow(b.dst.x,2)+Math.pow(b.dst.y,2)));b.dst.ax=b.dst.x/k;b.dst.ay=b.dst.y/k;var n=0,q=k;0==b.dst.x?(n=h,q=f,b.dst.ay=1,b.dst.py=0):0==b.dst.y&&(n=l,q=c,b.dst.ax=1,b.dst.px=0);k=b.getTransitionSpeed(k);g&&1>=g&&(k*=g);b.bzscroll=0=b.page.maxh||l==b.page.maxw&&c>=b.page.maxw)&&b.checkContentSize();var r=1;b.cancelAnimationFrame=!1;b.timer=1;b.onscrollstart&&!b.scrollrunning&&b.onscrollstart.call(b,{type:"scrollstart",current:{x:l,y:h},request:{x:c,y:f},end:{x:b.newscrollx,y:b.newscrolly},speed:k});e();(h==b.page.maxh&&f>=h||l==b.page.maxw&&c>=l)&&b.checkContentSize();b.noticeCursor()}},this.cancelScroll=function(){b.timer&&w(b.timer);b.timer=0;b.bzscroll=!1;b.scrollrunning=!1;return b}):(this.doScrollLeft=function(c, f){var g=b.getScrollTop();b.doScrollPos(c,g,f)},this.doScrollTop=function(c,f){var g=b.getScrollLeft();b.doScrollPos(g,c,f)},this.doScrollPos=function(c,f,g){var e=c>b.page.maxw?b.page.maxw:c;0>e&&(e=0);var h=f>b.page.maxh?b.page.maxh:f;0>h&&(h=0);b.synched("scroll",function(){b.setScrollTop(h);b.setScrollLeft(e)})},this.cancelScroll=function(){});this.doScrollBy=function(c,f){var g=0,g=f?Math.floor((b.scroll.y-c)*b.scrollratio.y):(b.timer?b.newscrolly:b.getScrollTop(!0))-c;if(b.bouncescroll){var e= Math.round(b.view.h/2);g<-e?g=-e:g>b.page.maxh+e&&(g=b.page.maxh+e)}b.cursorfreezed=!1;py=b.getScrollTop(!0);if(0>g&&0>=py)return b.noticeCursor();if(g>b.page.maxh&&py>=b.page.maxh)return b.checkContentSize(),b.noticeCursor();b.doScrollTop(g)};this.doScrollLeftBy=function(c,f){var g=0,g=f?Math.floor((b.scroll.x-c)*b.scrollratio.x):(b.timer?b.newscrollx:b.getScrollLeft(!0))-c;if(b.bouncescroll){var e=Math.round(b.view.w/2);g<-e?g=-e:g>b.page.maxw+e&&(g=b.page.maxw+e)}b.cursorfreezed=!1;px=b.getScrollLeft(!0); if(0>g&&0>=px||g>b.page.maxw&&px>=b.page.maxw)return b.noticeCursor();b.doScrollLeft(g)};this.doScrollTo=function(c,f){f&&Math.round(c*b.scrollratio.y);b.cursorfreezed=!1;b.doScrollTop(c)};this.checkContentSize=function(){var c=b.getContentSize();(c.h!=b.page.h||c.w!=b.page.w)&&b.resize(!1,c)};b.onscroll=function(c){b.rail.drag||b.cursorfreezed||b.synched("scroll",function(){b.scroll.y=Math.round(b.getScrollTop()*(1/b.scrollratio.y));b.railh&&(b.scroll.x=Math.round(b.getScrollLeft()*(1/b.scrollratio.x))); b.noticeCursor()})};b.bind(b.docscroll,"scroll",b.onscroll);this.doZoomIn=function(c){if(!b.zoomactive){b.zoomactive=!0;b.zoomrestore={style:{}};var h="position top left zIndex backgroundColor marginTop marginBottom marginLeft marginRight".split(" "),g=b.win[0].style,l;for(l in h){var k=h[l];b.zoomrestore.style[k]="undefined"!=typeof g[k]?g[k]:""}b.zoomrestore.style.width=b.win.css("width");b.zoomrestore.style.height=b.win.css("height");b.zoomrestore.padding={w:b.win.outerWidth()-b.win.width(),h:b.win.outerHeight()- b.win.height()};f.isios4&&(b.zoomrestore.scrollTop=e(window).scrollTop(),e(window).scrollTop(0));b.win.css({position:f.isios4?"absolute":"fixed",top:0,left:0,"z-index":x+100,margin:"0px"});h=b.win.css("backgroundColor");(""==h||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(h))&&b.win.css("backgroundColor","#fff");b.rail.css({"z-index":x+101});b.zoom.css({"z-index":x+102});b.zoom.css("backgroundPosition","0px -18px");b.resizeZoom();b.onzoomin&&b.onzoomin.call(b);return b.cancelEvent(c)}};this.doZoomOut= function(c){if(b.zoomactive)return b.zoomactive=!1,b.win.css("margin",""),b.win.css(b.zoomrestore.style),f.isios4&&e(window).scrollTop(b.zoomrestore.scrollTop),b.rail.css({"z-index":b.zindex}),b.zoom.css({"z-index":b.zindex}),b.zoomrestore=!1,b.zoom.css("backgroundPosition","0px 0px"),b.onResize(),b.onzoomout&&b.onzoomout.call(b),b.cancelEvent(c)};this.doZoom=function(c){return b.zoomactive?b.doZoomOut(c):b.doZoomIn(c)};this.resizeZoom=function(){if(b.zoomactive){var c=b.getScrollTop();b.win.css({width:e(window).width()- b.zoomrestore.padding.w+"px",height:e(window).height()-b.zoomrestore.padding.h+"px"});b.onResize();b.setScrollTop(Math.min(b.page.maxh,c))}};this.init();e.nicescroll.push(this)},H=function(e){var c=this;this.nc=e;this.steptime=this.lasttime=this.speedy=this.speedx=this.lasty=this.lastx=0;this.snapy=this.snapx=!1;this.demuly=this.demulx=0;this.lastscrolly=this.lastscrollx=-1;this.timer=this.chky=this.chkx=0;this.time=function(){return+new Date};this.reset=function(e,l){c.stop();var k=c.time();c.steptime= 0;c.lasttime=k;c.speedx=0;c.speedy=0;c.lastx=e;c.lasty=l;c.lastscrollx=-1;c.lastscrolly=-1};this.update=function(e,l){var k=c.time();c.steptime=k-c.lasttime;c.lasttime=k;var k=l-c.lasty,t=e-c.lastx,b=c.nc.getScrollTop(),q=c.nc.getScrollLeft(),b=b+k,q=q+t;c.snapx=0>q||q>c.nc.page.maxw;c.snapy=0>b||b>c.nc.page.maxh;c.speedx=t;c.speedy=k;c.lastx=e;c.lasty=l};this.stop=function(){c.nc.unsynched("domomentum2d");c.timer&&clearTimeout(c.timer);c.timer=0;c.lastscrollx=-1;c.lastscrolly=-1};this.doSnapy=function(e, l){var k=!1;0>l?(l=0,k=!0):l>c.nc.page.maxh&&(l=c.nc.page.maxh,k=!0);0>e?(e=0,k=!0):e>c.nc.page.maxw&&(e=c.nc.page.maxw,k=!0);k&&c.nc.doScrollPos(e,l,c.nc.opt.snapbackspeed)};this.doMomentum=function(e){var l=c.time(),k=e?l+e:c.lasttime;e=c.nc.getScrollLeft();var t=c.nc.getScrollTop(),b=c.nc.page.maxh,q=c.nc.page.maxw;c.speedx=0=l-k;if(0>t||t>b||0>e||e>q)k=!1;e=c.speedx&&k?c.speedx:!1;if(c.speedy&&k&&c.speedy||e){var f=Math.max(16, c.steptime);50r||r>q))e=0.1;if(c.speedy&&(u=Math.floor(c.lastscrolly-c.speedy*(1-c.demulxy)),c.lastscrolly=u,0>u||u>b))e=0.1;c.demulxy=Math.min(1,c.demulxy+e);c.nc.synched("domomentum2d", function(){c.speedx&&(c.nc.getScrollLeft()!=c.chkx&&c.stop(),c.chkx=r,c.nc.setScrollLeft(r));c.speedy&&(c.nc.getScrollTop()!=c.chky&&c.stop(),c.chky=u,c.nc.setScrollTop(u));c.timer||(c.nc.hideCursor(),c.doSnapy(r,u))});1>c.demulxy?c.timer=setTimeout(d,f):(c.stop(),c.nc.hideCursor(),c.doSnapy(r,u))};d()}else c.doSnapy(c.nc.getScrollLeft(),c.nc.getScrollTop())}},A=e.fn.scrollTop;e.cssHooks.pageYOffset={get:function(k,c,h){return(c=e.data(k,"__nicescroll")||!1)&&c.ishwscroll?c.getScrollTop():A.call(k)}, set:function(k,c){var h=e.data(k,"__nicescroll")||!1;h&&h.ishwscroll?h.setScrollTop(parseInt(c)):A.call(k,c);return this}};e.fn.scrollTop=function(k){if("undefined"==typeof k){var c=this[0]?e.data(this[0],"__nicescroll")||!1:!1;return c&&c.ishwscroll?c.getScrollTop():A.call(this)}return this.each(function(){var c=e.data(this,"__nicescroll")||!1;c&&c.ishwscroll?c.setScrollTop(parseInt(k)):A.call(e(this),k)})};var B=e.fn.scrollLeft;e.cssHooks.pageXOffset={get:function(k,c,h){return(c=e.data(k,"__nicescroll")|| !1)&&c.ishwscroll?c.getScrollLeft():B.call(k)},set:function(k,c){var h=e.data(k,"__nicescroll")||!1;h&&h.ishwscroll?h.setScrollLeft(parseInt(c)):B.call(k,c);return this}};e.fn.scrollLeft=function(k){if("undefined"==typeof k){var c=this[0]?e.data(this[0],"__nicescroll")||!1:!1;return c&&c.ishwscroll?c.getScrollLeft():B.call(this)}return this.each(function(){var c=e.data(this,"__nicescroll")||!1;c&&c.ishwscroll?c.setScrollLeft(parseInt(k)):B.call(e(this),k)})};var C=function(k){var c=this;this.length= 0;this.name="nicescrollarray";this.each=function(e){for(var h=0;h/g,"")),hashtag}function i(){"undefined"!=typeof theRel&&(location.hash=theRel+"/"+rel_index+"/")}function p(){-1!==location.href.indexOf("#prettyPhoto")&&(location.hash="prettyPhoto")}function o(e,t){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i="[\\?&]"+e+"=([^&#]*)",p=new RegExp(i),o=p.exec(t);return null==o?"":o[1]}e.prettyPhoto={version:"3.1.6"},e.fn.prettyPhoto=function(a){function s(){e(".pp_loaderIcon").hide(),projectedTop=scroll_pos.scrollTop+(I/2-f.containerHeight/2),projectedTop<0&&(projectedTop=0),$ppt.fadeTo(settings.animation_speed,1),$pp_pic_holder.find(".pp_content").animate({height:f.contentHeight,width:f.contentWidth},settings.animation_speed),$pp_pic_holder.animate({top:projectedTop,left:j/2-f.containerWidth/2<0?0:j/2-f.containerWidth/2,width:f.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(f.height).width(f.width),$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed),isSet&&"image"==h(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide(),settings.allow_expand&&(f.resized?e("a.pp_expand,a.pp_contract").show():e("a.pp_expand").hide()),!settings.autoplay_slideshow||P||v||e.prettyPhoto.startSlideshow(),settings.changepicturecallback(),v=!0}),m(),a.ajaxcallback()}function n(t){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden"),$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){e(".pp_loaderIcon").show(),t()})}function r(t){t>1?e(".pp_nav").show():e(".pp_nav").hide()}function l(e,t){if(resized=!1,d(e,t),imageWidth=e,imageHeight=t,(k>j||b>I)&&doresize&&settings.allow_resize&&!$){for(resized=!0,fitting=!1;!fitting;)k>j?(imageWidth=j-200,imageHeight=t/e*imageWidth):b>I?(imageHeight=I-200,imageWidth=e/t*imageHeight):fitting=!0,b=imageHeight,k=imageWidth;(k>j||b>I)&&l(k,b),d(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(b),containerWidth:Math.floor(k)+2*settings.horizontal_padding,contentHeight:Math.floor(y),contentWidth:Math.floor(w),resized:resized}}function d(t,i){t=parseFloat(t),i=parseFloat(i),$pp_details=$pp_pic_holder.find(".pp_details"),$pp_details.width(t),detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom")),$pp_details=$pp_details.clone().addClass(settings.theme).width(t).appendTo(e("body")).css({position:"absolute",top:-1e4}),detailsHeight+=$pp_details.height(),detailsHeight=detailsHeight<=34?36:detailsHeight,$pp_details.remove(),$pp_title=$pp_pic_holder.find(".ppt"),$pp_title.width(t),titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")),$pp_title=$pp_title.clone().appendTo(e("body")).css({position:"absolute",top:-1e4}),titleHeight+=$pp_title.height(),$pp_title.remove(),y=i+detailsHeight,w=t,b=y+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height(),k=t}function h(e){return e.match(/youtube\.com\/watch/i)||e.match(/youtu\.be/i)?"youtube":e.match(/vimeo\.com/i)?"vimeo":e.match(/\b.mov\b/i)?"quicktime":e.match(/\b.swf\b/i)?"flash":e.match(/\biframe=true\b/i)?"iframe":e.match(/\bajax=true\b/i)?"ajax":e.match(/\bcustom=true\b/i)?"custom":"#"==e.substr(0,1)?"inline":"image"}function c(){if(doresize&&"undefined"!=typeof $pp_pic_holder){if(scroll_pos=_(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=I/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>I)return;$pp_pic_holder.css({top:projectedTop,left:j/2+scroll_pos.scrollLeft-contentwidth/2})}}function _(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function g(){I=e(window).height(),j=e(window).width(),"undefined"!=typeof $pp_overlay&&$pp_overlay.height(e(document).height()).width(j)}function m(){isSet&&settings.overlay_gallery&&"image"==h(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=Math.floor((f.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject),$pp_pic_holder.find("#pp_full_res").after(toInject),$pp_gallery=e(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li"),$pp_gallery.find(".pp_arrow_next").click(function(){return e.prettyPhoto.changeGalleryPage("next"),e.prettyPhoto.stopSlideshow(),!1}),$pp_gallery.find(".pp_arrow_previous").click(function(){return e.prettyPhoto.changeGalleryPage("previous"),e.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()}),itemWidth=57,$pp_gallery_li.each(function(t){e(this).find("a").click(function(){return e.prettyPhoto.changePage(t),e.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('Play'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return e.prettyPhoto.startSlideshow(),!1})),$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme),$pp_overlay.css({opacity:0,height:e(document).height(),width:e(window).width()}).bind("click",function(){settings.modal||e.prettyPhoto.close()}),e("a.pp_close").bind("click",function(){return e.prettyPhoto.close(),!1}),settings.allow_expand&&e("a.pp_expand").bind("click",function(){return e(this).hasClass("pp_expand")?(e(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(e(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),n(function(){e.prettyPhoto.open()}),!1}),$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return e.prettyPhoto.changePage("previous"),e.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return e.prettyPhoto.changePage("next"),e.prettyPhoto.stopSlideshow(),!1}),c()}a=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'
 
',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
{content}
',custom_markup:"",social_tools:''},a);var f,v,y,w,b,k,P,x=this,$=!1,I=e(window).height(),j=e(window).width();return doresize=!0,scroll_pos=_(),e(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){c(),g()}),a.keyboard_shortcuts&&e(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(t){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(t.keyCode){case 37:e.prettyPhoto.changePage("previous"),t.preventDefault();break;case 39:e.prettyPhoto.changePage("next"),t.preventDefault();break;case 27:settings.modal||e.prettyPhoto.close(),t.preventDefault()}}),e.prettyPhoto.initialize=function(){return settings=a,"pp_default"==settings.theme&&(settings.horizontal_padding=16),theRel=e(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=galleryRegExp.exec(theRel)?!0:!1,pp_images=isSet?jQuery.map(x,function(t){return-1!=e(t).attr(settings.hook).indexOf(theRel)?e(t).attr("href"):void 0}):e.makeArray(e(this).attr("href")),pp_titles=isSet?jQuery.map(x,function(t){return-1!=e(t).attr(settings.hook).indexOf(theRel)?e(t).find("img").attr("alt")?e(t).find("img").attr("alt"):"":void 0}):e.makeArray(e(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(x,function(t){return-1!=e(t).attr(settings.hook).indexOf(theRel)?e(t).attr("title")?e(t).attr("title"):"":void 0}):e.makeArray(e(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(e(this).attr("href"),pp_images),rel_index=isSet?set_position:e("a["+settings.hook+"^='"+theRel+"']").index(e(this)),u(this),settings.allow_resize&&e(window).bind("scroll.prettyphoto",function(){c()}),e.prettyPhoto.open(),!1},e.prettyPhoto.open=function(t){return"undefined"==typeof settings&&(settings=a,pp_images=e.makeArray(arguments[0]),pp_titles=e.makeArray(arguments[1]?arguments[1]:""),pp_descriptions=e.makeArray(arguments[2]?arguments[2]:""),isSet=pp_images.length>1?!0:!1,set_position=arguments[3]?arguments[3]:0,u(t.target)),settings.hideflash&&e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),r(e(pp_images).size()),e(".pp_loaderIcon").show(),settings.deeplinking&&i(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+e(pp_images).size()),"undefined"!=typeof pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(o("width",pp_images[set_position]))?o("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(o("height",pp_images[set_position]))?o("height",pp_images[set_position]):settings.default_height.toString(),$=!1,-1!=movie_height.indexOf("%")&&(movie_height=parseFloat(e(window).height()*parseFloat(movie_height)/100-150),$=!0),-1!=movie_width.indexOf("%")&&(movie_width=parseFloat(e(window).width()*parseFloat(movie_width)/100-150),$=!0),$pp_pic_holder.fadeIn(function(){switch($ppt.html(settings.show_title&&""!=pp_titles[set_position]&&"undefined"!=typeof pp_titles[set_position]?unescape(pp_titles[set_position]):" "),imgPreloader="",skipInjection=!1,h(pp_images[set_position])){case"image":imgPreloader=new Image,nextImage=new Image,isSet&&set_position0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&")))),movie="http://www.youtube.com/embed/"+movie_id,movie+=o("rel",pp_images[set_position])?"?rel="+o("rel",pp_images[set_position]):"?rel=1",settings.autoplay&&(movie+="&autoplay=1"),toInject=settings.iframe_markup.replace(/{width}/g,f.width).replace(/{height}/g,f.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":f=l(movie_width,movie_height),movie_id=pp_images[set_position];var t=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/,i=movie_id.match(t);movie="http://player.vimeo.com/video/"+i[3]+"?title=0&byline=0&portrait=0",settings.autoplay&&(movie+="&autoplay=1;"),vimeo_width=f.width+"/embed/?moog_width="+f.width,toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,f.height).replace(/{path}/g,movie);break;case"quicktime":f=l(movie_width,movie_height),f.height+=15,f.contentHeight+=15,f.containerHeight+=15,toInject=settings.quicktime_markup.replace(/{width}/g,f.width).replace(/{height}/g,f.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":f=l(movie_width,movie_height),flash_vars=pp_images[set_position],flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length),filename=pp_images[set_position],filename=filename.substring(0,filename.indexOf("?")),toInject=settings.flash_markup.replace(/{width}/g,f.width).replace(/{height}/g,f.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":f=l(movie_width,movie_height),frame_url=pp_images[set_position],frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1),toInject=settings.iframe_markup.replace(/{width}/g,f.width).replace(/{height}/g,f.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1,f=l(movie_width,movie_height),doresize=!0,skipInjection=!0,e.get(pp_images[set_position],function(e){toInject=settings.inline_markup.replace(/{content}/g,e),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,s()});break;case"custom":f=l(movie_width,movie_height),toInject=settings.custom_markup;break;case"inline":myClone=e(pp_images[set_position]).clone().append('
').css({width:settings.default_width}).wrapInner('
').appendTo(e("body")).show(),doresize=!1,f=l(e(myClone).width(),e(myClone).height()),doresize=!0,e(myClone).remove(),toInject=settings.inline_markup.replace(/{content}/g,e(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,s())}),!1},e.prettyPhoto.changePage=function(t){currentGalleryPage=0,"previous"==t?(set_position--,set_position<0&&(set_position=e(pp_images).size()-1)):"next"==t?(set_position++,set_position>e(pp_images).size()-1&&(set_position=0)):set_position=t,rel_index=set_position,doresize||(doresize=!0),settings.allow_expand&&e(".pp_contract").removeClass("pp_contract").addClass("pp_expand"),n(function(){e.prettyPhoto.open()})},e.prettyPhoto.changeGalleryPage=function(e){"next"==e?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):"previous"==e?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=e,slide_speed="next"==e||"previous"==e?settings.animation_speed:0,slide_to=currentGalleryPage*itemsPerPage*itemWidth,$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},e.prettyPhoto.startSlideshow=function(){"undefined"==typeof P?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return e.prettyPhoto.stopSlideshow(),!1}),P=setInterval(e.prettyPhoto.startSlideshow,settings.slideshow)):e.prettyPhoto.changePage("next")},e.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return e.prettyPhoto.startSlideshow(),!1}),clearInterval(P),P=void 0},e.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(e.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){e(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible"),e(this).remove(),e(window).unbind("scroll.prettyphoto"),p(),settings.callback(),doresize=!0,v=!1,delete settings}))},!pp_alreadyInitialized&&t()&&(pp_alreadyInitialized=!0,hashIndex=t(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){e("a["+a.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",e.prettyPhoto.initialize)}}(jQuery);var pp_alreadyInitialized=!1; (function($){"use strict";$.fn.fitVids=function(options){var settings={customSelector:null};if(!document.getElementById('fit-vids-style')){var div=document.createElement('div'),ref=document.getElementsByTagName('base')[0]||document.getElementsByTagName('script')[0];div.className='fit-vids-style';div.id='fit-vids-style';div.style.display='none';div.innerHTML='­';ref.parentNode.insertBefore(div,ref)}if(options){$.extend(settings,options)}return this.each(function(){var selectors=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];if(settings.customSelector){selectors.push(settings.customSelector)}var $allVideos=$(this).find(selectors.join(','));$allVideos=$allVideos.not("object object");$allVideos.each(function(){var $this=$(this);if(this.tagName.toLowerCase()==='embed'&&$this.parent('object').length||$this.parent('.fluid-width-video-wrapper').length){return}if($this.closest('.flexslider').length>0){if($this.closest('ul').find('li > img').length>0){var height=$this.closest('ul').height()}else if($this.closest('ul').find('video-wrap').length>0){var height=$this.closest('ul').find('video-wrap').height()}else{var height=500}var width=!isNaN(parseInt($this.closest('li').attr('width'),10))?parseInt($this.closest('li').attr('width'),10):$this.closest('li').width();var aspectRatio=height/width}else if($this.closest('.portfolio_images').length>0){var width=$j('.portfolio_images').width();if($this.next('img').length>0){var height=$this.next('img').height()}else{var height=500}var aspectRatio=height/width}else if($this.closest('.post_image').length){var height=(this.tagName.toLowerCase()==='object'||($this.attr('height')&&!isNaN(parseInt($this.attr('height'),10))))?parseInt($this.attr('height'),10):$this.height(),width=!isNaN(parseInt($this.attr('width'),10))?parseInt($this.attr('width'),10):$this.width(),aspectRatio=height/width}else if($this.closest('.mkd_masonry_blog_post_image').length){var height=(this.tagName.toLowerCase()==='object'||($this.attr('height')&&!isNaN(parseInt($this.attr('height'),10))))?parseInt($this.attr('height'),10):$this.height(),width=!isNaN(parseInt($this.attr('width'),10))?parseInt($this.attr('width'),10):$this.width(),aspectRatio=height/width}else{var height=(this.tagName.toLowerCase()==='object'||($this.attr('height')&&!isNaN(parseInt($this.attr('height'),10))))?parseInt($this.attr('height'),10):$this.height(),width=!isNaN(parseInt($this.attr('width'),10))?parseInt($this.attr('width'),10):$this.parent().width(),aspectRatio=height/width}if(!$this.attr('id')){var videoID='fitvid'+Math.floor(Math.random()*999999);$this.attr('id',videoID)}$this.wrap('
');$('.fluid-width-video-wrapper').css('padding-top',(aspectRatio*100)+"%")})})}})(jQuery); (function(e){e.flexslider=function(t,n){var r=e(t);r.vars=e.extend({},e.flexslider.defaults,n);var i=r.vars.namespace,s=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,o=("ontouchstart"in window||s||window.DocumentTouch&&document instanceof DocumentTouch)&&r.vars.touch,u="click touchend MSPointerUp",a="",f,l=r.vars.direction==="vertical",c=r.vars.reverse,h=r.vars.itemWidth>0,p=r.vars.animation==="fade",d=r.vars.asNavFor!=="",v={},m=!0;e.data(t,"flexslider",r);v={init:function(){r.animating=!1;r.currentSlide=parseInt(r.vars.startAt?r.vars.startAt:0);isNaN(r.currentSlide)&&(r.currentSlide=0);r.animatingTo=r.currentSlide;r.atEnd=r.currentSlide===0||r.currentSlide===r.last;r.containerSelector=r.vars.selector.substr(0,r.vars.selector.search(" "));r.slides=e(r.vars.selector,r);r.container=e(r.containerSelector,r);r.count=r.slides.length;r.syncExists=e(r.vars.sync).length>0;r.vars.animation==="slide"&&(r.vars.animation="swing");r.prop=l?"top":"marginLeft";r.args={};r.manualPause=!1;r.stopped=!1;r.started=!1;r.startTimeout=null;r.transitions=!r.vars.video&&!p&&r.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in t)if(e.style[t[n]]!==undefined){r.pfx=t[n].replace("Perspective","").toLowerCase();r.prop="-"+r.pfx+"-transform";return!0}return!1}();r.vars.controlsContainer!==""&&(r.controlsContainer=e(r.vars.controlsContainer).length>0&&e(r.vars.controlsContainer));r.vars.manualControls!==""&&(r.manualControls=e(r.vars.manualControls).length>0&&e(r.vars.manualControls));if(r.vars.randomize){r.slides.sort(function(){return Math.round(Math.random())-.5});r.container.empty().append(r.slides)}r.doMath();r.setup("init");r.vars.controlNav&&v.controlNav.setup();r.vars.directionNav&&v.directionNav.setup();r.vars.keyboard&&(e(r.containerSelector).length===1||r.vars.multipleKeyboard)&&e(document).bind("keyup",function(e){var t=e.keyCode;if(!r.animating&&(t===39||t===37)){var n=t===39?r.getTarget("next"):t===37?r.getTarget("prev"):!1;r.flexAnimate(n,r.vars.pauseOnAction)}});r.vars.mousewheel&&r.bind("mousewheel",function(e,t,n,i){e.preventDefault();var s=t<0?r.getTarget("next"):r.getTarget("prev");r.flexAnimate(s,r.vars.pauseOnAction)});r.vars.pausePlay&&v.pausePlay.setup();r.vars.slideshow&&r.vars.pauseInvisible&&v.pauseInvisible.init();if(r.vars.slideshow){r.vars.pauseOnHover&&r.hover(function(){!r.manualPlay&&!r.manualPause&&r.pause()},function(){!r.manualPause&&!r.manualPlay&&!r.stopped&&r.play()});if(!r.vars.pauseInvisible||!v.pauseInvisible.isHidden())r.vars.initDelay>0?r.startTimeout=setTimeout(r.play,r.vars.initDelay):r.play()}d&&v.asNav.setup();o&&r.vars.touch&&v.touch();(!p||p&&r.vars.smoothHeight)&&e(window).bind("resize orientationchange focus",v.resize);r.find("img").attr("draggable","false");setTimeout(function(){r.vars.start(r)},200)},asNav:{setup:function(){r.asNav=!0;r.animatingTo=Math.floor(r.currentSlide/r.move);r.currentItem=r.currentSlide;r.slides.removeClass(i+"active-slide").eq(r.currentItem).addClass(i+"active-slide");if(!s)r.slides.click(function(t){t.preventDefault();var n=e(this),s=n.index(),o=n.offset().left-e(r).scrollLeft();if(o<=0&&n.hasClass(i+"active-slide"))r.flexAnimate(r.getTarget("prev"),!0);else if(!e(r.vars.asNavFor).data("flexslider").animating&&!n.hasClass(i+"active-slide")){r.direction=r.currentItem');if(r.pagingCount>1)for(var f=0;f':""+n+"";if("thumbnails"===r.vars.controlNav&&!0===r.vars.thumbCaptions){var l=o.attr("data-thumbcaption");""!=l&&undefined!=l&&(s+=''+l+"")}r.controlNavScaffold.append("
  • "+s+"
  • ");n++}r.controlsContainer?e(r.controlsContainer).append(r.controlNavScaffold):r.append(r.controlNavScaffold);v.controlNav.set();v.controlNav.active();r.controlNavScaffold.delegate("a, img",u,function(t){t.preventDefault();if(a===""||a===t.type){var n=e(this),s=r.controlNav.index(n);if(!n.hasClass(i+"active")){r.direction=s>r.currentSlide?"next":"prev";r.flexAnimate(s,r.vars.pauseOnAction)}}a===""&&(a=t.type);v.setToClearWatchedEvent()})},setupManual:function(){r.controlNav=r.manualControls;v.controlNav.active();r.controlNav.bind(u,function(t){t.preventDefault();if(a===""||a===t.type){var n=e(this),s=r.controlNav.index(n);if(!n.hasClass(i+"active")){s>r.currentSlide?r.direction="next":r.direction="prev";r.flexAnimate(s,r.vars.pauseOnAction)}}a===""&&(a=t.type);v.setToClearWatchedEvent()})},set:function(){var t=r.vars.controlNav==="thumbnails"?"img":"a";r.controlNav=e("."+i+"control-nav li "+t,r.controlsContainer?r.controlsContainer:r)},active:function(){r.controlNav.removeClass(i+"active").eq(r.animatingTo).addClass(i+"active")},update:function(t,n){r.pagingCount>1&&t==="add"?r.controlNavScaffold.append(e("
  • "+r.count+"
  • ")):r.pagingCount===1?r.controlNavScaffold.find("li").remove():r.controlNav.eq(n).closest("li").remove();v.controlNav.set();r.pagingCount>1&&r.pagingCount!==r.controlNav.length?r.update(n,t):v.controlNav.active()}},directionNav:{setup:function(){var t=e('");if(r.controlsContainer){e(r.controlsContainer).append(t);r.directionNav=e("."+i+"direction-nav li a",r.controlsContainer)}else{r.append(t);r.directionNav=e("."+i+"direction-nav li a",r)}v.directionNav.update();r.directionNav.bind(u,function(t){t.preventDefault();var n;if(a===""||a===t.type){n=e(this).hasClass(i+"next")?r.getTarget("next"):r.getTarget("prev");r.flexAnimate(n,r.vars.pauseOnAction)}a===""&&(a=t.type);v.setToClearWatchedEvent()})},update:function(){var e=i+"disabled";r.pagingCount===1?r.directionNav.addClass(e).attr("tabindex","-1"):r.vars.animationLoop?r.directionNav.removeClass(e).removeAttr("tabindex"):r.animatingTo===0?r.directionNav.removeClass(e).filter("."+i+"prev").addClass(e).attr("tabindex","-1"):r.animatingTo===r.last?r.directionNav.removeClass(e).filter("."+i+"next").addClass(e).attr("tabindex","-1"):r.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var t=e('
    ');if(r.controlsContainer){r.controlsContainer.append(t);r.pausePlay=e("."+i+"pauseplay a",r.controlsContainer)}else{r.append(t);r.pausePlay=e("."+i+"pauseplay a",r)}v.pausePlay.update(r.vars.slideshow?i+"pause":i+"play");r.pausePlay.bind(u,function(t){t.preventDefault();if(a===""||a===t.type)if(e(this).hasClass(i+"pause")){r.manualPause=!0;r.manualPlay=!1;r.pause()}else{r.manualPause=!1;r.manualPlay=!0;r.play()}a===""&&(a=t.type);v.setToClearWatchedEvent()})},update:function(e){e==="play"?r.pausePlay.removeClass(i+"pause").addClass(i+"play").html(r.vars.playText):r.pausePlay.removeClass(i+"play").addClass(i+"pause").html(r.vars.pauseText)}},touch:function(){var e,n,i,o,u,a,f=!1,d=0,v=0,m=0;if(!s){t.addEventListener("touchstart",g,!1);function g(s){if(r.animating)s.preventDefault();else if(window.navigator.msPointerEnabled||s.touches.length===1){r.pause();o=l?r.h:r.w;a=Number(new Date);d=s.touches[0].pageX;v=s.touches[0].pageY;i=h&&c&&r.animatingTo===r.last?0:h&&c?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:h&&r.currentSlide===r.last?r.limit:h?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:c?(r.last-r.currentSlide+r.cloneOffset)*o:(r.currentSlide+r.cloneOffset)*o;e=l?v:d;n=l?d:v;t.addEventListener("touchmove",y,!1);t.addEventListener("touchend",b,!1)}}function y(t){d=t.touches[0].pageX;v=t.touches[0].pageY;u=l?e-v:e-d;f=l?Math.abs(u)s){t.preventDefault();if(!p&&r.transitions){r.vars.animationLoop||(u/=r.currentSlide===0&&u<0||r.currentSlide===r.last&&u>0?Math.abs(u)/o+2:1);r.setProps(i+u,"setTouch")}}}function b(s){t.removeEventListener("touchmove",y,!1);if(r.animatingTo===r.currentSlide&&!f&&u!==null){var l=c?-u:u,h=l>0?r.getTarget("next"):r.getTarget("prev");r.canAdvance(h)&&(Number(new Date)-a<550&&Math.abs(l)>50||Math.abs(l)>o/2)?r.flexAnimate(h,r.vars.pauseOnAction):p||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)}t.removeEventListener("touchend",b,!1);e=null;n=null;u=null;i=null}}else{t.style.msTouchAction="none";t._gesture=new MSGesture;t._gesture.target=t;t.addEventListener("MSPointerDown",w,!1);t._slider=r;t.addEventListener("MSGestureChange",E,!1);t.addEventListener("MSGestureEnd",S,!1);function w(e){e.stopPropagation();if(r.animating)e.preventDefault();else{r.pause();t._gesture.addPointer(e.pointerId);m=0;o=l?r.h:r.w;a=Number(new Date);i=h&&c&&r.animatingTo===r.last?0:h&&c?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:h&&r.currentSlide===r.last?r.limit:h?(r.itemW+r.vars.itemMargin)*r.move*r.currentSlide:c?(r.last-r.currentSlide+r.cloneOffset)*o:(r.currentSlide+r.cloneOffset)*o}}function E(e){e.stopPropagation();var n=e.target._slider;if(!n)return;var r=-e.translationX,s=-e.translationY;m+=l?s:r;u=m;f=l?Math.abs(m)500){e.preventDefault();if(!p&&n.transitions){n.vars.animationLoop||(u=m/(n.currentSlide===0&&m<0||n.currentSlide===n.last&&m>0?Math.abs(m)/o+2:1));n.setProps(i+u,"setTouch")}}}function S(t){t.stopPropagation();var r=t.target._slider;if(!r)return;if(r.animatingTo===r.currentSlide&&!f&&u!==null){var s=c?-u:u,l=s>0?r.getTarget("next"):r.getTarget("prev");r.canAdvance(l)&&(Number(new Date)-a<550&&Math.abs(s)>50||Math.abs(s)>o/2)?r.flexAnimate(l,r.vars.pauseOnAction):p||r.flexAnimate(r.currentSlide,r.vars.pauseOnAction,!0)}e=null;n=null;u=null;i=null;m=0}}},resize:function(){if(!r.animating&&r.is(":visible")){h||r.doMath();if(p)v.smoothHeight();else if(h){r.slides.width(r.computedW);r.update(r.pagingCount);r.setProps()}else if(l){r.viewport.height(r.h);r.setProps(r.h,"setTotal")}else{r.vars.smoothHeight&&v.smoothHeight();r.newSlides.width(r.computedW);r.setProps(r.computedW,"setTotal")}}},smoothHeight:function(e){if(!l||p){var t=p?r:r.viewport;e?t.animate({height:r.slides.eq(r.animatingTo).height()},e):t.height(r.slides.eq(r.animatingTo).height())}},sync:function(t){var n=e(r.vars.sync).data("flexslider"),i=r.animatingTo;switch(t){case"animate":n.flexAnimate(i,r.vars.pauseOnAction,!1,!0);break;case"play":!n.playing&&!n.asNav&&n.play();break;case"pause":n.pause()}},pauseInvisible:{visProp:null,init:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t0?setTimeout(r.play,r.vars.initDelay):r.play()})}},isHidden:function(){return document[v.pauseInvisible.visProp]||!1}},setToClearWatchedEvent:function(){clearTimeout(f);f=setTimeout(function(){a=""},3e3)}};r.flexAnimate=function(t,n,s,u,a){!r.vars.animationLoop&&t!==r.currentSlide&&(r.direction=t>r.currentSlide?"next":"prev");d&&r.pagingCount===1&&(r.direction=r.currentItemr.limit&&r.visible!==1?r.limit:b}else r.currentSlide===0&&t===r.count-1&&r.vars.animationLoop&&r.direction!=="next"?y=c?(r.count+r.cloneOffset)*m:0:r.currentSlide===r.last&&t===0&&r.vars.animationLoop&&r.direction!=="prev"?y=c?0:(r.count+1)*m:y=c?(r.count-1-t+r.cloneOffset)*m:(t+r.cloneOffset)*m;r.setProps(y,"",r.vars.animationSpeed);if(r.transitions){if(!r.vars.animationLoop||!r.atEnd){r.animating=!1;r.currentSlide=r.animatingTo}r.container.unbind("webkitTransitionEnd transitionend");r.container.bind("webkitTransitionEnd transitionend",function(){r.wrapup(m)})}else r.container.animate(r.args,r.vars.animationSpeed,r.vars.easing,function(){r.wrapup(m)})}else if(!o){r.slides.eq(r.currentSlide).css({zIndex:1}).animate({opacity:0},r.vars.animationSpeed,r.vars.easing);r.slides.eq(t).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing,r.wrapup)}else{r.slides.eq(r.currentSlide).css({opacity:0,zIndex:1});r.slides.eq(t).css({opacity:1,zIndex:2});r.wrapup(m)}r.vars.smoothHeight&&v.smoothHeight(r.vars.animationSpeed)}};r.wrapup=function(e){!p&&!h&&(r.currentSlide===0&&r.animatingTo===r.last&&r.vars.animationLoop?r.setProps(e,"jumpEnd"):r.currentSlide===r.last&&r.animatingTo===0&&r.vars.animationLoop&&r.setProps(e,"jumpStart"));r.animating=!1;r.currentSlide=r.animatingTo;r.vars.after(r)};r.animateSlides=function(){!r.animating&&m&&r.flexAnimate(r.getTarget("next"))};r.pause=function(){clearInterval(r.animatedSlides);r.animatedSlides=null;r.playing=!1;r.vars.pausePlay&&v.pausePlay.update("play");r.syncExists&&v.sync("pause")};r.play=function(){r.playing&&clearInterval(r.animatedSlides);r.animatedSlides=r.animatedSlides||setInterval(r.animateSlides,r.vars.slideshowSpeed);r.started=r.playing=!0;r.vars.pausePlay&&v.pausePlay.update("pause");r.syncExists&&v.sync("play")};r.stop=function(){r.pause();r.stopped=!0};r.canAdvance=function(e,t){var n=d?r.pagingCount-1:r.last;return t?!0:d&&r.currentItem===r.count-1&&e===0&&r.direction==="prev"?!0:d&&r.currentItem===0&&e===r.pagingCount-1&&r.direction!=="next"?!1:e===r.currentSlide&&!d?!1:r.vars.animationLoop?!0:r.atEnd&&r.currentSlide===0&&e===n&&r.direction!=="next"?!1:r.atEnd&&r.currentSlide===n&&e===0&&r.direction==="next"?!1:!0};r.getTarget=function(e){r.direction=e;return e==="next"?r.currentSlide===r.last?0:r.currentSlide+1:r.currentSlide===0?r.last:r.currentSlide-1};r.setProps=function(e,t,n){var i=function(){var n=e?e:(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo,i=function(){if(h)return t==="setTouch"?e:c&&r.animatingTo===r.last?0:c?r.limit-(r.itemW+r.vars.itemMargin)*r.move*r.animatingTo:r.animatingTo===r.last?r.limit:n;switch(t){case"setTotal":return c?(r.count-1-r.currentSlide+r.cloneOffset)*e:(r.currentSlide+r.cloneOffset)*e;case"setTouch":return c?e:e;case"jumpEnd":return c?e:r.count*e;case"jumpStart":return c?r.count*e:e;default:return e}}();return i*-1+"px"}();if(r.transitions){i=l?"translate3d(0,"+i+",0)":"translate3d("+i+",0,0)";n=n!==undefined?n/1e3+"s":"0s";r.container.css("-"+r.pfx+"-transition-duration",n)}r.args[r.prop]=i;(r.transitions||n===undefined)&&r.container.css(r.args)};r.setup=function(t){if(!p){var n,s;if(t==="init"){r.viewport=e('
    ').css({overflow:"hidden",position:"relative"}).appendTo(r).append(r.container);r.cloneCount=0;r.cloneOffset=0;if(c){s=e.makeArray(r.slides).reverse();r.slides=e(s);r.container.empty().append(r.slides)}}if(r.vars.animationLoop&&!h){r.cloneCount=2;r.cloneOffset=1;t!=="init"&&r.container.find(".clone").remove();r.container.append(r.slides.first().clone().addClass("clone").attr("aria-hidden","true")).prepend(r.slides.last().clone().addClass("clone").attr("aria-hidden","true"))}r.newSlides=e(r.vars.selector,r);n=c?r.count-1-r.currentSlide+r.cloneOffset:r.currentSlide+r.cloneOffset;if(l&&!h){r.container.height((r.count+r.cloneCount)*200+"%").css("position","absolute").width("100%");setTimeout(function(){r.newSlides.css({display:"block"});r.doMath();r.viewport.height(r.h);r.setProps(n*r.h,"init")},t==="init"?100:0)}else{r.container.width((r.count+r.cloneCount)*200+"%");r.setProps(n*r.computedW,"init");setTimeout(function(){r.doMath();r.newSlides.css({width:r.computedW,"float":"left",display:"block"});r.vars.smoothHeight&&v.smoothHeight()},t==="init"?100:0)}}else{r.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"});t==="init"&&(o?r.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+r.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(r.currentSlide).css({opacity:1,zIndex:2}):r.slides.css({opacity:0,display:"block",zIndex:1}).eq(r.currentSlide).css({zIndex:2}).animate({opacity:1},r.vars.animationSpeed,r.vars.easing));r.vars.smoothHeight&&v.smoothHeight()}h||r.slides.removeClass(i+"active-slide").eq(r.currentSlide).addClass(i+"active-slide")};r.doMath=function(){var e=r.slides.first(),t=r.vars.itemMargin,n=r.vars.minItems,i=r.vars.maxItems;r.w=r.viewport===undefined?r.width():r.viewport.width();r.h=e.height();r.boxPadding=e.outerWidth()-e.width();if(h){r.itemT=r.vars.itemWidth+t;r.minW=n?n*r.itemT:r.w;r.maxW=i?i*r.itemT-t:r.w;r.itemW=r.minW>r.w?(r.w-t*(n-1))/n:r.maxWr.w?r.w:r.vars.itemWidth;r.visible=Math.floor(r.w/r.itemW);r.move=r.vars.move>0&&r.vars.mover.w?r.itemW*(r.count-1)+t*(r.count-1):(r.itemW+t)*r.count-r.w-t}else{r.itemW=r.w;r.pagingCount=r.count;r.last=r.count-1}r.computedW=r.itemW-r.boxPadding};r.update=function(e,t){r.doMath();if(!h){er.controlNav.length)v.controlNav.update("add");else if(t==="remove"&&!h||r.pagingCountr.last){r.currentSlide-=1;r.animatingTo-=1}v.controlNav.update("remove",r.last)}r.vars.directionNav&&v.directionNav.update()};r.addSlide=function(t,n){var i=e(t);r.count+=1;r.last=r.count-1;l&&c?n!==undefined?r.slides.eq(r.count-n).after(i):r.container.prepend(i):n!==undefined?r.slides.eq(n).before(i):r.container.append(i);r.update(n,"add");r.slides=e(r.vars.selector+":not(.clone)",r);r.setup();r.vars.added(r)};r.removeSlide=function(t){var n=isNaN(t)?r.slides.index(e(t)):t;r.count-=1;r.last=r.count-1;isNaN(t)?e(t,r.slides).remove():l&&c?r.slides.eq(r.last).remove():r.slides.eq(t).remove();r.doMath();r.update(n,"remove");r.slides=e(r.vars.selector+":not(.clone)",r);r.setup();r.vars.removed(r)};v.init()};e(window).blur(function(e){focused=!1}).focus(function(e){focused=!0});e.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){}};e.fn.flexslider=function(t){t===undefined&&(t={});if(typeof t=="object")return this.each(function(){var n=e(this),r=t.selector?t.selector:".slides > li",i=n.find(r);if(i.length===1&&t.allowOneSlide===!0||i.length===0){i.fadeIn(400);t.start&&t.start(n)}else n.data("flexslider")===undefined&&new e.flexslider(this,t)});var n=e(this).data("flexslider");switch(t){case"play":n.play();break;case"pause":n.pause();break;case"stop":n.stop();break;case"next":n.flexAnimate(n.getTarget("next"),!0);break;case"prev":case"previous":n.flexAnimate(n.getTarget("prev"),!0);break;default:typeof t=="number"&&n.flexAnimate(t,!0)}}})(jQuery); var mejs=mejs||{};mejs.version="2.13.0";mejs.meIndex=0; mejs.plugins={silverlight:[{version:[3,0],types:["video/mp4","video/m4v","video/mov","video/wmv","audio/wma","audio/m4a","audio/mp3","audio/wav","audio/mpeg"]}],flash:[{version:[9,0,124],types:["video/mp4","video/m4v","video/mov","video/flv","video/rtmp","video/x-flv","audio/flv","audio/x-flv","audio/mp3","audio/m4a","audio/mpeg","video/youtube","video/x-youtube"]}],youtube:[{version:null,types:["video/youtube","video/x-youtube","audio/youtube","audio/x-youtube"]}],vimeo:[{version:null,types:["video/vimeo", "video/x-vimeo"]}]}; mejs.Utility={encodeUrl:function(a){return encodeURIComponent(a)},escapeHTML:function(a){return a.toString().split("&").join("&").split("<").join("<").split('"').join(""")},absolutizeUrl:function(a){var b=document.createElement("div");b.innerHTML='x';return b.firstChild.href},getScriptPath:function(a){for(var b=0,c,d="",e="",f,g,h=document.getElementsByTagName("script"),l=h.length,j=a.length;b-1){g=f.substring(c+ 1);f=f.substring(0,c+1)}else{g=f;f=""}for(c=0;c-1){d=f;break}}if(d!=="")break}return d},secondsToTimeCode:function(a,b,c,d){if(typeof c=="undefined")c=false;else if(typeof d=="undefined")d=25;var e=Math.floor(a/3600)%24,f=Math.floor(a/60)%60,g=Math.floor(a%60);a=Math.floor((a%1*d).toFixed(3));return(b||e>0?(e<10?"0"+e:e)+":":"")+(f<10?"0"+f:f)+":"+(g<10?"0"+g:g)+(c?":"+(a<10?"0"+a:a):"")},timeCodeToSeconds:function(a,b,c,d){if(typeof c=="undefined")c=false;else if(typeof d=="undefined")d=25;a=a.split(":");b=parseInt(a[0],10);var e=parseInt(a[1],10),f=parseInt(a[2],10),g=0,h=0;if(c)g=parseInt(a[3])/d;return h=b*3600+e*60+f+g},convertSMPTEtoSeconds:function(a){if(typeof a!="string")return false;a=a.replace(",",".");var b=0,c=a.indexOf(".")!=-1?a.split(".")[1].length:0,d=1;a=a.split(":").reverse();for(var e=0;e0)d=Math.pow(60,e);b+=Number(a[e])*d}return Number(b.toFixed(c))},removeSwf:function(a){var b=document.getElementById(a);if(b&&/object|embed/i.test(b.nodeName))if(mejs.MediaFeatures.isIE){b.style.display= "none";(function(){b.readyState==4?mejs.Utility.removeObjectInIE(a):setTimeout(arguments.callee,10)})()}else b.parentNode.removeChild(b)},removeObjectInIE:function(a){if(a=document.getElementById(a)){for(var b in a)if(typeof a[b]=="function")a[b]=null;a.parentNode.removeChild(a)}}}; mejs.PluginDetector={hasPluginVersion:function(a,b){var c=this.plugins[a];b[1]=b[1]||0;b[2]=b[2]||0;return c[0]>b[0]||c[0]==b[0]&&c[1]>b[1]||c[0]==b[0]&&c[1]==b[1]&&c[2]>=b[2]?true:false},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(a,b,c,d,e){this.plugins[a]=this.detectPlugin(b,c,d,e)},detectPlugin:function(a,b,c,d){var e=[0,0,0],f;if(typeof this.nav.plugins!="undefined"&&typeof this.nav.plugins[a]=="object"){if((c=this.nav.plugins[a].description)&& !(typeof this.nav.mimeTypes!="undefined"&&this.nav.mimeTypes[b]&&!this.nav.mimeTypes[b].enabledPlugin)){e=c.replace(a,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".");for(a=0;a0;)this.removeChild(b[0]);if(typeof a=="string")this.src=a;else{var c;for(b=0;b0&&f[0].url!==null&&this.getTypeFromFile(f[0].url).indexOf("audio")>-1)j.isVideo=false;if(mejs.MediaFeatures.isBustedAndroid)a.canPlayType=function(m){return m.match(/video\/(mp4|m4v)/gi)!==null?"maybe":""};if(c&&(b.mode==="auto"||b.mode==="auto_plugin"||b.mode==="native")&&!(mejs.MediaFeatures.isBustedNativeHTTPS&& b.httpsBasicAuthSite===true)){if(!d){g=document.createElement(j.isVideo?"video":"audio");a.parentNode.insertBefore(g,a);a.style.display="none";j.htmlMediaElement=a=g}for(g=0;g0)j.url=f[0].url;return j},formatType:function(a,b){return a&&!b?this.getTypeFromFile(a):b&&~b.indexOf(";")?b.substr(0,b.indexOf(";")):b}, getTypeFromFile:function(a){a=a.split("?")[0];a=a.substring(a.lastIndexOf(".")+1).toLowerCase();return(/(mp4|m4v|ogg|ogv|webm|webmv|flv|wmv|mpeg|mov)/gi.test(a)?"video":"audio")+"/"+this.getTypeFromExtension(a)},getTypeFromExtension:function(a){switch(a){case "mp4":case "m4v":return"mp4";case "webm":case "webma":case "webmv":return"webm";case "ogg":case "oga":case "ogv":return"ogg";default:return a}},createErrorMessage:function(a,b,c){var d=a.htmlMediaElement,e=document.createElement("div");e.className= "me-cannotplay";try{e.style.width=d.width+"px";e.style.height=d.height+"px"}catch(f){}e.innerHTML=b.customError?b.customError:c!==""?'':''+mejs.i18n.t("Download File")+"";d.parentNode.insertBefore(e,d);d.style.display="none";b.error(d)},createPlugin:function(a,b,c,d,e,f){c=a.htmlMediaElement;var g=1,h=1,l="me_"+a.method+"_"+mejs.meIndex++,j=new mejs.PluginMediaElement(l,a.method,a.url),k=document.createElement("div"), m;j.tagName=c.tagName;for(m=0;m0?b.pluginWidth:b.videoWidth>0?b.videoWidth:c.getAttribute("width")!==null?c.getAttribute("width"):b.defaultVideoWidth;h=b.pluginHeight>0?b.pluginHeight:b.videoHeight> 0?b.videoHeight:c.getAttribute("height")!==null?c.getAttribute("height"):b.defaultVideoHeight;g=mejs.Utility.encodeUrl(g);h=mejs.Utility.encodeUrl(h)}else if(b.enablePluginDebug){g=320;h=240}j.success=b.success;mejs.MediaPluginBridge.registerPluginElement(l,j,c);k.className="me-plugin";k.id=l+"_container";a.isVideo?c.parentNode.insertBefore(k,c):document.body.insertBefore(k,document.body.childNodes[0]);d=["id="+l,"isvideo="+(a.isVideo?"true":"false"),"autoplay="+(d?"true":"false"),"preload="+e,"width="+ g,"startvolume="+b.startVolume,"timerrate="+b.timerRate,"flashstreamer="+b.flashStreamer,"height="+h,"pseudostreamstart="+b.pseudoStreamingStartQueryParam];if(a.url!==null)a.method=="flash"?d.push("file="+mejs.Utility.encodeUrl(a.url)):d.push("file="+a.url);b.enablePluginDebug&&d.push("debug=true");b.enablePluginSmoothing&&d.push("smoothing=true");b.enablePseudoStreaming&&d.push("pseudostreaming=true");f&&d.push("controls=true");if(b.pluginVars)d=d.concat(b.pluginVars);switch(a.method){case "silverlight":k.innerHTML= '';break;case "flash":if(mejs.MediaFeatures.isIE){a= document.createElement("div");k.appendChild(a);a.outerHTML=''}else k.innerHTML= '';break;case "youtube":b=a.url.substr(a.url.lastIndexOf("=")+1);youtubeSettings={container:k,containerId:k.id,pluginMediaElement:j,pluginId:l, videoId:b,height:h,width:g};mejs.PluginDetector.hasPluginVersion("flash",[10,0,0])?mejs.YouTubeApi.createFlash(youtubeSettings):mejs.YouTubeApi.enqueueIframe(youtubeSettings);break;case "vimeo":j.vimeoid=a.url.substr(a.url.lastIndexOf("/")+1);k.innerHTML=''}c.style.display="none";c.removeAttribute("autoplay");return j},updateNative:function(a, b){var c=a.htmlMediaElement,d;for(d in mejs.HtmlMediaElement)c[d]=mejs.HtmlMediaElement[d];b.success(c,c);return c}}; mejs.YouTubeApi={isIframeStarted:false,isIframeLoaded:false,loadIframeApi:function(){if(!this.isIframeStarted){var a=document.createElement("script");a.src="//www.youtube.com/player_api";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);this.isIframeStarted=true}},iframeQueue:[],enqueueIframe:function(a){if(this.isLoaded)this.createIframe(a);else{this.loadIframeApi();this.iframeQueue.push(a)}},createIframe:function(a){var b=a.pluginMediaElement,c=new YT.Player(a.containerId, {height:a.height,width:a.width,videoId:a.videoId,playerVars:{controls:0},events:{onReady:function(){a.pluginMediaElement.pluginApi=c;mejs.MediaPluginBridge.initPlugin(a.pluginId);setInterval(function(){mejs.YouTubeApi.createEvent(c,b,"timeupdate")},250)},onStateChange:function(d){mejs.YouTubeApi.handleStateChange(d.data,c,b)}}})},createEvent:function(a,b,c){c={type:c,target:b};if(a&&a.getDuration){b.currentTime=c.currentTime=a.getCurrentTime();b.duration=c.duration=a.getDuration();c.paused=b.paused; c.ended=b.ended;c.muted=a.isMuted();c.volume=a.getVolume()/100;c.bytesTotal=a.getVideoBytesTotal();c.bufferedBytes=a.getVideoBytesLoaded();var d=c.bufferedBytes/c.bytesTotal*c.duration;c.target.buffered=c.buffered={start:function(){return 0},end:function(){return d},length:1}}b.dispatchEvent(c.type,c)},iFrameReady:function(){for(this.isIframeLoaded=this.isLoaded=true;this.iframeQueue.length>0;)this.createIframe(this.iframeQueue.pop())},flashPlayers:{},createFlash:function(a){this.flashPlayers[a.pluginId]= a;var b,c="//www.youtube.com/apiplayer?enablejsapi=1&playerapiid="+a.pluginId+"&version=3&autoplay=0&controls=0&modestbranding=1&loop=0";if(mejs.MediaFeatures.isIE){b=document.createElement("div");a.container.appendChild(b);b.outerHTML=''}else a.container.innerHTML=''},flashReady:function(a){var b=this.flashPlayers[a],c= document.getElementById(a),d=b.pluginMediaElement;d.pluginApi=d.pluginElement=c;mejs.MediaPluginBridge.initPlugin(a);c.cueVideoById(b.videoId);a=b.containerId+"_callback";window[a]=function(e){mejs.YouTubeApi.handleStateChange(e,c,d)};c.addEventListener("onStateChange",a);setInterval(function(){mejs.YouTubeApi.createEvent(c,d,"timeupdate")},250)},handleStateChange:function(a,b,c){switch(a){case -1:c.paused=true;c.ended=true;mejs.YouTubeApi.createEvent(b,c,"loadedmetadata");break;case 0:c.paused=false; c.ended=true;mejs.YouTubeApi.createEvent(b,c,"ended");break;case 1:c.paused=false;c.ended=false;mejs.YouTubeApi.createEvent(b,c,"play");mejs.YouTubeApi.createEvent(b,c,"playing");break;case 2:c.paused=true;c.ended=false;mejs.YouTubeApi.createEvent(b,c,"pause");break;case 3:mejs.YouTubeApi.createEvent(b,c,"progress")}}};function onYouTubePlayerAPIReady(){mejs.YouTubeApi.iFrameReady()}function onYouTubePlayerReady(a){mejs.YouTubeApi.flashReady(a)}window.mejs=mejs;window.MediaElement=mejs.MediaElement; (function(a,b){var c={locale:{language:"",strings:{}},methods:{}};c.locale.getLanguage=function(){return c.locale.language||navigator.language};if(typeof mejsL10n!="undefined")c.locale.language=mejsL10n.language;c.locale.INIT_LANGUAGE=c.locale.getLanguage();c.methods.checkPlain=function(d){var e,f,g={"&":"&",'"':""","<":"<",">":">"};d=String(d);for(e in g)if(g.hasOwnProperty(e)){f=RegExp(e,"g");d=d.replace(f,g[e])}return d};c.methods.formatString=function(d,e){for(var f in e){switch(f.charAt(0)){case "@":e[f]= c.methods.checkPlain(e[f]);break;case "!":break;default:e[f]=''+c.methods.checkPlain(e[f])+""}d=d.replace(f,e[f])}return d};c.methods.t=function(d,e,f){if(c.locale.strings&&c.locale.strings[f.context]&&c.locale.strings[f.context][d])d=c.locale.strings[f.context][d];if(e)d=c.methods.formatString(d,e);return d};c.t=function(d,e,f){if(typeof d==="string"&&d.length>0){var g=c.locale.getLanguage();f=f||{context:g};return c.methods.t(d,e,f)}else throw{name:"InvalidArgumentException", message:"First argument is either not a string or empty."};};b.i18n=c})(document,mejs);(function(a){if(typeof mejsL10n!="undefined")a[mejsL10n.language]=mejsL10n.strings})(mejs.i18n.locale.strings);(function(a){a.de={Fullscreen:"Vollbild","Go Fullscreen":"Vollbild an","Turn off Fullscreen":"Vollbild aus",Close:"Schlie\u00dfen"}})(mejs.i18n.locale.strings); (function(a){a.zh={Fullscreen:"\u5168\u87a2\u5e55","Go Fullscreen":"\u5168\u5c4f\u6a21\u5f0f","Turn off Fullscreen":"\u9000\u51fa\u5168\u5c4f\u6a21\u5f0f",Close:"\u95dc\u9589"}})(mejs.i18n.locale.strings); if(typeof jQuery!="undefined")mejs.$=jQuery;else if(typeof ender!="undefined")mejs.$=ender; (function(f){mejs.MepDefaults={poster:"",showPosterWhenEnded:false,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(a){return a.duration*0.05},defaultSeekForwardInterval:function(a){return a.duration*0.05},audioWidth:-1,audioHeight:-1,startVolume:0.8,loop:false,autoRewind:true,enableAutosize:true,alwaysShowHours:false,showTimecodeFrameCount:false,framesPerSecond:25,autosizeProgress:true,alwaysShowControls:false, hideVideoControlsOnLoad:false,clickToPlayPause:true,iPadUseNativeControls:false,iPhoneUseNativeControls:false,AndroidUseNativeControls:false,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],isVideo:true,enableKeyboard:true,pauseOtherPlayers:true,keyActions:[{keys:[32,179],action:function(a,b){b.paused||b.ended?b.play():b.pause()}},{keys:[38],action:function(a,b){b.setVolume(Math.min(b.volume+0.1,1))}},{keys:[40],action:function(a,b){b.setVolume(Math.max(b.volume- 0.1,0))}},{keys:[37,227],action:function(a,b){if(!isNaN(b.duration)&&b.duration>0){if(a.isVideo){a.showControls();a.startControlsTimer()}var c=Math.max(b.currentTime-a.options.defaultSeekBackwardInterval(b),0);b.setCurrentTime(c)}}},{keys:[39,228],action:function(a,b){if(!isNaN(b.duration)&&b.duration>0){if(a.isVideo){a.showControls();a.startControlsTimer()}var c=Math.min(b.currentTime+a.options.defaultSeekForwardInterval(b),b.duration);b.setCurrentTime(c)}}},{keys:[70],action:function(a){if(typeof a.enterFullScreen!="undefined")a.isFullScreen?a.exitFullScreen():a.enterFullScreen()}}]};mejs.mepIndex=0;mejs.players={};mejs.MediaElementPlayer=function(a,b){if(!(this instanceof mejs.MediaElementPlayer))return new mejs.MediaElementPlayer(a,b);this.$media=this.$node=f(a);this.node=this.media=this.$media[0];if(typeof this.node.player!="undefined")return this.node.player;else this.node.player=this;if(typeof b=="undefined")b=this.$node.data("mejsoptions");this.options=f.extend({},mejs.MepDefaults,b);this.id="mep_"+mejs.mepIndex++; mejs.players[this.id]=this;this.init();return this};mejs.MediaElementPlayer.prototype={hasFocus:false,controlsAreVisible:true,init:function(){var a=this,b=mejs.MediaFeatures,c=f.extend(true,{},a.options,{success:function(d,g){a.meReady(d,g)},error:function(d){a.handleError(d)}}),e=a.media.tagName.toLowerCase();a.isDynamic=e!=="audio"&&e!=="video";a.isVideo=a.isDynamic?a.options.isVideo:e!=="audio"&&a.options.isVideo;if(b.isiPad&&a.options.iPadUseNativeControls||b.isiPhone&&a.options.iPhoneUseNativeControls){a.$media.attr("controls", "controls");if(b.isiPad&&a.media.getAttribute("autoplay")!==null){a.media.load();a.media.play()}}else if(!(b.isAndroid&&a.options.AndroidUseNativeControls)){a.$media.removeAttr("controls");a.container=f('
    ').addClass(a.$media[0].className).insertBefore(a.$media); a.container.addClass((b.isAndroid?"mejs-android ":"")+(b.isiOS?"mejs-ios ":"")+(b.isiPad?"mejs-ipad ":"")+(b.isiPhone?"mejs-iphone ":"")+(a.isVideo?"mejs-video ":"mejs-audio "));if(b.isiOS){b=a.$media.clone();a.container.find(".mejs-mediaelement").append(b);a.$media.remove();a.$node=a.$media=b;a.node=a.media=b[0]}else a.container.find(".mejs-mediaelement").append(a.$media);a.controls=a.container.find(".mejs-controls");a.layers=a.container.find(".mejs-layers");b=a.isVideo?"video":"audio";e=b.substring(0, 1).toUpperCase()+b.substring(1);a.width=a.options[b+"Width"]>0||a.options[b+"Width"].toString().indexOf("%")>-1?a.options[b+"Width"]:a.media.style.width!==""&&a.media.style.width!==null?a.media.style.width:a.media.getAttribute("width")!==null?a.$media.attr("width"):a.options["default"+e+"Width"];a.height=a.options[b+"Height"]>0||a.options[b+"Height"].toString().indexOf("%")>-1?a.options[b+"Height"]:a.media.style.height!==""&&a.media.style.height!==null?a.media.style.height:a.$media[0].getAttribute("height")!==null?a.$media.attr("height"):a.options["default"+e+"Height"];a.setPlayerSize(a.width,a.height);c.pluginWidth=a.width;c.pluginHeight=a.height}mejs.MediaElement(a.$media[0],c);typeof a.container!="undefined"&&a.controlsAreVisible&&a.container.trigger("controlsshown")},showControls:function(a){var b=this;a=typeof a=="undefined"||a;if(!b.controlsAreVisible){if(a){b.controls.css("visibility","visible").stop(true,true).fadeIn(200,function(){b.controlsAreVisible=true;b.container.trigger("controlsshown")}); b.container.find(".mejs-control").css("visibility","visible").stop(true,true).fadeIn(200,function(){b.controlsAreVisible=true})}else{b.controls.css("visibility","visible").css("display","block");b.container.find(".mejs-control").css("visibility","visible").css("display","block");b.controlsAreVisible=true;b.container.trigger("controlsshown")}b.setControlsSize()}},hideControls:function(a){var b=this;a=typeof a=="undefined"||a;if(!(!b.controlsAreVisible||b.options.alwaysShowControls))if(a){b.controls.stop(true, true).fadeOut(200,function(){f(this).css("visibility","hidden").css("display","block");b.controlsAreVisible=false;b.container.trigger("controlshidden")});b.container.find(".mejs-control").stop(true,true).fadeOut(200,function(){f(this).css("visibility","hidden").css("display","block")})}else{b.controls.css("visibility","hidden").css("display","block");b.container.find(".mejs-control").css("visibility","hidden").css("display","block");b.controlsAreVisible=false;b.container.trigger("controlshidden")}}, controlsTimer:null,startControlsTimer:function(a){var b=this;a=typeof a!="undefined"?a:1500;b.killControlsTimer("start");b.controlsTimer=setTimeout(function(){b.hideControls();b.killControlsTimer("hide")},a)},killControlsTimer:function(){if(this.controlsTimer!==null){clearTimeout(this.controlsTimer);delete this.controlsTimer;this.controlsTimer=null}},controlsEnabled:true,disableControls:function(){this.killControlsTimer();this.hideControls(false);this.controlsEnabled=false},enableControls:function(){this.showControls(false); this.controlsEnabled=true},meReady:function(a,b){var c=this,e=mejs.MediaFeatures,d=b.getAttribute("autoplay");d=!(typeof d=="undefined"||d===null||d==="false");var g;if(!c.created){c.created=true;c.media=a;c.domNode=b;if(!(e.isAndroid&&c.options.AndroidUseNativeControls)&&!(e.isiPad&&c.options.iPadUseNativeControls)&&!(e.isiPhone&&c.options.iPhoneUseNativeControls)){c.buildposter(c,c.controls,c.layers,c.media);c.buildkeyboard(c,c.controls,c.layers,c.media);c.buildoverlays(c,c.controls,c.layers,c.media); c.findTracks();for(g in c.options.features){e=c.options.features[g];if(c["build"+e])try{c["build"+e](c,c.controls,c.layers,c.media)}catch(k){}}c.container.trigger("controlsready");c.setPlayerSize(c.width,c.height);c.setControlsSize();if(c.isVideo){if(mejs.MediaFeatures.hasTouch)c.$media.bind("touchstart",function(){if(c.controlsAreVisible)c.hideControls(false);else c.controlsEnabled&&c.showControls(false)});else{mejs.MediaElementPlayer.prototype.clickToPlayPauseCallback=function(){if(c.options.clickToPlayPause)c.media.paused? c.media.play():c.media.pause()};c.media.addEventListener("click",c.clickToPlayPauseCallback,false);c.container.bind("mouseenter mouseover",function(){if(c.controlsEnabled)if(!c.options.alwaysShowControls){c.killControlsTimer("enter");c.showControls();c.startControlsTimer(2500)}}).bind("mousemove",function(){if(c.controlsEnabled){c.controlsAreVisible||c.showControls();c.options.alwaysShowControls||c.startControlsTimer(2500)}}).bind("mouseleave",function(){c.controlsEnabled&&!c.media.paused&&!c.options.alwaysShowControls&& c.startControlsTimer(1E3)})}c.options.hideVideoControlsOnLoad&&c.hideControls(false);d&&!c.options.alwaysShowControls&&c.hideControls();c.options.enableAutosize&&c.media.addEventListener("loadedmetadata",function(j){if(c.options.videoHeight<=0&&c.domNode.getAttribute("height")===null&&!isNaN(j.target.videoHeight)){c.setPlayerSize(j.target.videoWidth,j.target.videoHeight);c.setControlsSize();c.media.setVideoSize(j.target.videoWidth,j.target.videoHeight)}},false)}a.addEventListener("play",function(){for(var j in mejs.players){var m= mejs.players[j];m.id!=c.id&&c.options.pauseOtherPlayers&&!m.paused&&!m.ended&&m.pause();m.hasFocus=false}c.hasFocus=true},false);c.media.addEventListener("ended",function(){if(c.options.autoRewind)try{c.media.setCurrentTime(0)}catch(j){}c.media.pause();c.setProgressRail&&c.setProgressRail();c.setCurrentRail&&c.setCurrentRail();if(c.options.loop)c.media.play();else!c.options.alwaysShowControls&&c.controlsEnabled&&c.showControls()},false);c.media.addEventListener("loadedmetadata",function(){c.updateDuration&& c.updateDuration();c.updateCurrent&&c.updateCurrent();if(!c.isFullScreen){c.setPlayerSize(c.width,c.height);c.setControlsSize()}},false);setTimeout(function(){c.setPlayerSize(c.width,c.height);c.setControlsSize()},50);c.globalBind("resize",function(){c.isFullScreen||mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen||c.setPlayerSize(c.width,c.height);c.setControlsSize()});c.media.pluginType=="youtube"&&c.container.find(".mejs-overlay-play").hide()}if(d&&a.pluginType=="native"){a.load(); a.play()}if(c.options.success)typeof c.options.success=="string"?window[c.options.success](c.media,c.domNode,c):c.options.success(c.media,c.domNode,c)}},handleError:function(a){this.controls.hide();this.options.error&&this.options.error(a)},setPlayerSize:function(a,b){if(typeof a!="undefined")this.width=a;if(typeof b!="undefined")this.height=b;if(this.height.toString().indexOf("%")>0||this.$node.css("max-width")==="100%"||parseInt(this.$node.css("max-width").replace(/px/,""),10)/this.$node.offsetParent().width()===1||this.$node[0].currentStyle&&this.$node[0].currentStyle.maxWidth==="100%"){var c=this.isVideo?this.media.videoWidth&&this.media.videoWidth>0?this.media.videoWidth:this.options.defaultVideoWidth:this.options.defaultAudioWidth,e=this.isVideo?this.media.videoHeight&&this.media.videoHeight>0?this.media.videoHeight:this.options.defaultVideoHeight:this.options.defaultAudioHeight,d=this.container.parent().closest(":visible").width();c=this.isVideo||!this.options.autosizeProgress?parseInt(d*e/c,10):e;if(this.container.parent()[0].tagName.toLowerCase()==="body"){d=f(window).width();c=f(window).height()}if(c!=0&&d!=0){this.container.width(d).height(c);this.$media.add(this.container.find(".mejs-shim")).width("100%").height("100%");this.isVideo&&this.media.setVideoSize&&this.media.setVideoSize(d,c);this.layers.children(".mejs-layer").width("100%").height("100%")}}else{this.container.width(this.width).height(this.height);this.layers.children(".mejs-layer").width(this.width).height(this.height)}d=this.layers.find(".mejs-overlay-play");c=d.find(".mejs-overlay-button"); d.height(this.container.height()-this.controls.height());c.css("margin-top","-"+(c.height()/2-this.controls.height()/2).toString()+"px")},setControlsSize:function(){var a=0,b=0,c=this.controls.find(".mejs-time-rail"),e=this.controls.find(".mejs-time-total");this.controls.find(".mejs-time-current");this.controls.find(".mejs-time-loaded");var d=c.siblings();if(this.options&&!this.options.autosizeProgress)b=parseInt(c.css("width"));if(b===0||!b){d.each(function(){var g=f(this);if(g.css("position")!="absolute"&&g.is(":visible"))a+=f(this).outerWidth(true)});b=this.controls.width()-a-(c.outerWidth(true)-c.width())-1}c.width(b);e.width(b-(e.outerWidth(true)-e.width()));this.setProgressRail&&this.setProgressRail();this.setCurrentRail&&this.setCurrentRail()},buildposter:function(a,b,c,e){var d=f('
    ').appendTo(c);b=a.$media.attr("poster");if(a.options.poster!=="")b=a.options.poster;b!==""&&b!=null?this.setPoster(b):d.hide();e.addEventListener("play",function(){d.hide()}, false);a.options.showPosterWhenEnded&&a.options.autoRewind&&e.addEventListener("ended",function(){d.show()},false)},setPoster:function(a){var b=this.container.find(".mejs-poster"),c=b.find("img");if(c.length==0)c=f('').appendTo(b);c.attr("src",a);b.css({"background-image":"url("+a+")"})},buildoverlays:function(a,b,c,e){var d=this;if(a.isVideo){var g=f('
    ').hide().appendTo(c), k=f('
    ').hide().appendTo(c),j=f('
    ').appendTo(c).click(function(){if(d.options.clickToPlayPause)e.paused?e.play():e.pause()});e.addEventListener("play",function(){j.hide();g.hide();b.find(".mejs-time-buffering").hide();k.hide()},false);e.addEventListener("playing",function(){j.hide();g.hide();b.find(".mejs-time-buffering").hide(); k.hide()},false);e.addEventListener("seeking",function(){g.show();b.find(".mejs-time-buffering").show()},false);e.addEventListener("seeked",function(){g.hide();b.find(".mejs-time-buffering").hide()},false);e.addEventListener("pause",function(){mejs.MediaFeatures.isiPhone||j.show()},false);e.addEventListener("waiting",function(){g.show();b.find(".mejs-time-buffering").show()},false);e.addEventListener("loadeddata",function(){g.show();b.find(".mejs-time-buffering").show()},false);e.addEventListener("canplay", function(){g.hide();b.find(".mejs-time-buffering").hide()},false);e.addEventListener("error",function(){g.hide();b.find(".mejs-time-buffering").hide();k.show();k.find("mejs-overlay-error").html("Error loading this resource")},false)}},buildkeyboard:function(a,b,c,e){this.globalBind("keydown",function(d){if(a.hasFocus&&a.options.enableKeyboard)for(var g=0,k=a.options.keyActions.length;g
    ').appendTo(b).click(function(g){g.preventDefault();e.paused?e.play():e.pause();return false});e.addEventListener("play",function(){d.removeClass("mejs-play").addClass("mejs-pause")}, false);e.addEventListener("playing",function(){d.removeClass("mejs-play").addClass("mejs-pause")},false);e.addEventListener("pause",function(){d.removeClass("mejs-pause").addClass("mejs-play")},false);e.addEventListener("paused",function(){d.removeClass("mejs-pause").addClass("mejs-play")},false)}})})(mejs.$); (function(f){f.extend(mejs.MepDefaults,{stopText:"Stop"});f.extend(MediaElementPlayer.prototype,{buildstop:function(a,b,c,e){f('
    ').appendTo(b).click(function(){e.paused||e.pause();if(e.currentTime>0){e.setCurrentTime(0);e.pause();b.find(".mejs-time-current").width("0px");b.find(".mejs-time-handle").css("left", "0px");b.find(".mejs-time-float-current").html(mejs.Utility.secondsToTimeCode(0));b.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0));c.find(".mejs-poster").show()}})}})})(mejs.$); (function(f){f.extend(MediaElementPlayer.prototype,{buildprogress:function(a,b,c,e){f('
    00:00
    ').appendTo(b);b.find(".mejs-time-buffering").hide();var d= this,g=b.find(".mejs-time-total");c=b.find(".mejs-time-loaded");var k=b.find(".mejs-time-current"),j=b.find(".mejs-time-handle"),m=b.find(".mejs-time-float"),q=b.find(".mejs-time-float-current"),p=function(h){h=h.pageX;var l=g.offset(),r=g.outerWidth(true),n=0,o=n=0;if(e.duration){if(hr+l.left)h=r+l.left;o=h-l.left;n=o/r;n=n<=0.02?0:n*e.duration;t&&n!==e.currentTime&&e.setCurrentTime(n);if(!mejs.MediaFeatures.hasTouch){m.css("left",o);q.html(mejs.Utility.secondsToTimeCode(n)); m.show()}}},t=false;g.bind("mousedown",function(h){if(h.which===1){t=true;p(h);d.globalBind("mousemove.dur",function(l){p(l)});d.globalBind("mouseup.dur",function(){t=false;m.hide();d.globalUnbind(".dur")});return false}}).bind("mouseenter",function(){d.globalBind("mousemove.dur",function(h){p(h)});mejs.MediaFeatures.hasTouch||m.show()}).bind("mouseleave",function(){if(!t){d.globalUnbind(".dur");m.hide()}});e.addEventListener("progress",function(h){a.setProgressRail(h);a.setCurrentRail(h)},false); e.addEventListener("timeupdate",function(h){a.setProgressRail(h);a.setCurrentRail(h)},false);d.loaded=c;d.total=g;d.current=k;d.handle=j},setProgressRail:function(a){var b=a!=undefined?a.target:this.media,c=null;if(b&&b.buffered&&b.buffered.length>0&&b.buffered.end&&b.duration)c=b.buffered.end(0)/b.duration;else if(b&&b.bytesTotal!=undefined&&b.bytesTotal>0&&b.bufferedBytes!=undefined)c=b.bufferedBytes/b.bytesTotal;else if(a&&a.lengthComputable&&a.total!=0)c=a.loaded/a.total;if(c!==null){c=Math.min(1, Math.max(0,c));this.loaded&&this.total&&this.loaded.width(this.total.width()*c)}},setCurrentRail:function(){if(this.media.currentTime!=undefined&&this.media.duration)if(this.total&&this.handle){var a=Math.round(this.total.width()*this.media.currentTime/this.media.duration),b=a-Math.round(this.handle.outerWidth(true)/2);this.current.width(a);this.handle.css("left",b)}}})})(mejs.$); (function(f){f.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:" | "});f.extend(MediaElementPlayer.prototype,{buildcurrent:function(a,b,c,e){f('
    '+(a.options.alwaysShowHours?"00:":"")+(a.options.showTimecodeFrameCount?"00:00:00":"00:00")+"
    ").appendTo(b);this.currenttime=this.controls.find(".mejs-currenttime");e.addEventListener("timeupdate",function(){a.updateCurrent()},false)},buildduration:function(a,b, c,e){if(b.children().last().find(".mejs-currenttime").length>0)f(this.options.timeAndDurationSeparator+''+(this.options.duration>0?mejs.Utility.secondsToTimeCode(this.options.duration,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25):(a.options.alwaysShowHours?"00:":"")+(a.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"").appendTo(b.find(".mejs-time"));else{b.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container"); f('
    '+(this.options.duration>0?mejs.Utility.secondsToTimeCode(this.options.duration,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25):(a.options.alwaysShowHours?"00:":"")+(a.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"
    ").appendTo(b)}this.durationD=this.controls.find(".mejs-duration");e.addEventListener("timeupdate",function(){a.updateDuration()}, false)},updateCurrent:function(){if(this.currenttime)this.currenttime.html(mejs.Utility.secondsToTimeCode(this.media.currentTime,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25))},updateDuration:function(){this.container.toggleClass("mejs-long-video",this.media.duration>3600);if(this.durationD&&(this.options.duration>0||this.media.duration))this.durationD.html(mejs.Utility.secondsToTimeCode(this.options.duration>0?this.options.duration: this.media.duration,this.options.alwaysShowHours,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25))}})})(mejs.$); (function(f){f.extend(mejs.MepDefaults,{muteText:mejs.i18n.t("Mute Toggle"),hideVolumeOnTouchDevices:true,audioVolume:"horizontal",videoVolume:"vertical"});f.extend(MediaElementPlayer.prototype,{buildvolume:function(a,b,c,e){if(!(mejs.MediaFeatures.hasTouch&&this.options.hideVolumeOnTouchDevices)){var d=this,g=d.isVideo?d.options.videoVolume:d.options.audioVolume,k=g=="horizontal"?f('
    ').appendTo(b):f('
    ').appendTo(b), j=d.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),m=d.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),q=d.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"),p=d.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),t=function(n,o){if(!j.is(":visible")&&typeof o=="undefined"){j.show();t(n,true);j.hide()}else{n=Math.max(0,n);n=Math.min(n,1);n==0?k.removeClass("mejs-mute").addClass("mejs-unmute"):k.removeClass("mejs-unmute").addClass("mejs-mute"); if(g=="vertical"){var s=m.height(),u=m.position(),v=s-s*n;p.css("top",Math.round(u.top+v-p.height()/2));q.height(s-v);q.css("top",u.top+v)}else{s=m.width();u=m.position();s=s*n;p.css("left",Math.round(u.left+s-p.width()/2));q.width(Math.round(s))}}},h=function(n){var o=null,s=m.offset();if(g=="vertical"){o=m.height();parseInt(m.css("top").replace(/px/,""),10);o=(o-(n.pageY-s.top))/o;if(s.top==0||s.left==0)return}else{o=m.width();o=(n.pageX-s.left)/o}o=Math.max(0,o);o=Math.min(o,1);t(o);o==0?e.setMuted(true): e.setMuted(false);e.setVolume(o)},l=false,r=false;k.hover(function(){j.show();r=true},function(){r=false;!l&&g=="vertical"&&j.hide()});j.bind("mouseover",function(){r=true}).bind("mousedown",function(n){h(n);d.globalBind("mousemove.vol",function(o){h(o)});d.globalBind("mouseup.vol",function(){l=false;d.globalUnbind(".vol");!r&&g=="vertical"&&j.hide()});l=true;return false});k.find("button").click(function(){e.setMuted(!e.muted)});e.addEventListener("volumechange",function(){if(!l)if(e.muted){t(0); k.removeClass("mejs-mute").addClass("mejs-unmute")}else{t(e.volume);k.removeClass("mejs-unmute").addClass("mejs-mute")}},false);if(d.container.is(":visible")){t(a.options.startVolume);a.options.startVolume===0&&e.setMuted(true);e.pluginType==="native"&&e.setVolume(a.options.startVolume)}}}})})(mejs.$); (function(f){f.extend(mejs.MepDefaults,{usePluginFullScreen:true,newWindowCallback:function(){return""},fullscreenText:mejs.i18n.t("Fullscreen")});f.extend(MediaElementPlayer.prototype,{isFullScreen:false,isNativeFullScreen:false,isInIframe:false,buildfullscreen:function(a,b,c,e){if(a.isVideo){a.isInIframe=window.location!=window.parent.location;if(mejs.MediaFeatures.hasTrueNativeFullScreen){c=function(){if(a.isFullScreen)if(mejs.MediaFeatures.isFullScreen()){a.isNativeFullScreen=true;a.setControlsSize()}else{a.isNativeFullScreen= false;a.exitFullScreen()}};mejs.MediaFeatures.hasMozNativeFullScreen?a.globalBind(mejs.MediaFeatures.fullScreenEventName,c):a.container.bind(mejs.MediaFeatures.fullScreenEventName,c)}var d=this,g=f('
    ').appendTo(b);if(d.media.pluginType==="native"||!d.options.usePluginFullScreen&&!mejs.MediaFeatures.isFirefox)g.click(function(){mejs.MediaFeatures.hasTrueNativeFullScreen&& mejs.MediaFeatures.isFullScreen()||a.isFullScreen?a.exitFullScreen():a.enterFullScreen()});else{var k=null;if(function(){var h=document.createElement("x"),l=document.documentElement,r=window.getComputedStyle;if(!("pointerEvents"in h.style))return false;h.style.pointerEvents="auto";h.style.pointerEvents="x";l.appendChild(h);r=r&&r(h,"").pointerEvents==="auto";l.removeChild(h);return!!r}()&&!mejs.MediaFeatures.isOpera){var j=false,m=function(){if(j){for(var h in q)q[h].hide();g.css("pointer-events", "");d.controls.css("pointer-events","");d.media.removeEventListener("click",d.clickToPlayPauseCallback);j=false}},q={};b=["top","left","right","bottom"];var p,t=function(){var h=g.offset().left-d.container.offset().left,l=g.offset().top-d.container.offset().top,r=g.outerWidth(true),n=g.outerHeight(true),o=d.container.width(),s=d.container.height();for(p in q)q[p].css({position:"absolute",top:0,left:0});q.top.width(o).height(l);q.left.width(h).height(n).css({top:l});q.right.width(o-h-r).height(n).css({top:l, left:h+r});q.bottom.width(o).height(s-n-l).css({top:l+n})};d.globalBind("resize",function(){t()});p=0;for(c=b.length;p').appendTo(d.container).mouseover(m).hide();g.on("mouseover",function(){if(!d.isFullScreen){var h=g.offset(),l=a.container.offset();e.positionFullscreenButton(h.left-l.left,h.top-l.top,false);g.css("pointer-events","none");d.controls.css("pointer-events","none");d.media.addEventListener("click",d.clickToPlayPauseCallback);for(p in q)q[p].show(); t();j=true}});e.addEventListener("fullscreenchange",function(){d.isFullScreen=!d.isFullScreen;d.isFullScreen?d.media.removeEventListener("click",d.clickToPlayPauseCallback):d.media.addEventListener("click",d.clickToPlayPauseCallback);m()});d.globalBind("mousemove",function(h){if(j){var l=g.offset();if(h.pageYl.top+g.outerHeight(true)||h.pageXl.left+g.outerWidth(true)){g.css("pointer-events","");d.controls.css("pointer-events","");j=false}}})}else g.on("mouseover", function(){if(k!==null){clearTimeout(k);delete k}var h=g.offset(),l=a.container.offset();e.positionFullscreenButton(h.left-l.left,h.top-l.top,true)}).on("mouseout",function(){if(k!==null){clearTimeout(k);delete k}k=setTimeout(function(){e.hideFullscreenButton()},1500)})}a.fullscreenBtn=g;d.globalBind("keydown",function(h){if((mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||d.isFullScreen)&&h.keyCode==27)a.exitFullScreen()})}},cleanfullscreen:function(a){a.exitFullScreen()}, containerSizeTimeout:null,enterFullScreen:function(){var a=this;if(!(a.media.pluginType!=="native"&&(mejs.MediaFeatures.isFirefox||a.options.usePluginFullScreen))){f(document.documentElement).addClass("mejs-fullscreen");normalHeight=a.container.height();normalWidth=a.container.width();if(a.media.pluginType==="native")if(mejs.MediaFeatures.hasTrueNativeFullScreen){mejs.MediaFeatures.requestFullScreen(a.container[0]);a.isInIframe&&setTimeout(function c(){if(a.isNativeFullScreen)f(window).width()!==screen.width?a.exitFullScreen():setTimeout(c,500)},500)}else if(mejs.MediaFeatures.hasSemiNativeFullScreen){a.media.webkitEnterFullscreen();return}if(a.isInIframe){var b=a.options.newWindowCallback(this);if(b!=="")if(mejs.MediaFeatures.hasTrueNativeFullScreen)setTimeout(function(){if(!a.isNativeFullScreen){a.pause();window.open(b,a.id,"top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no")}},250);else{a.pause();window.open(b,a.id, "top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no");return}}a.container.addClass("mejs-container-fullscreen").width("100%").height("100%");a.containerSizeTimeout=setTimeout(function(){a.container.css({width:"100%",height:"100%"});a.setControlsSize()},500);if(a.media.pluginType==="native")a.$media.width("100%").height("100%");else{a.container.find(".mejs-shim").width("100%").height("100%");a.media.setVideoSize(f(window).width(), f(window).height())}a.layers.children("div").width("100%").height("100%");a.fullscreenBtn&&a.fullscreenBtn.removeClass("mejs-fullscreen").addClass("mejs-unfullscreen");a.setControlsSize();a.isFullScreen=true}},exitFullScreen:function(){clearTimeout(this.containerSizeTimeout);if(this.media.pluginType!=="native"&&mejs.MediaFeatures.isFirefox)this.media.setFullscreen(false);else{if(mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||this.isFullScreen))mejs.MediaFeatures.cancelFullScreen(); f(document.documentElement).removeClass("mejs-fullscreen");this.container.removeClass("mejs-container-fullscreen").width(normalWidth).height(normalHeight);if(this.media.pluginType==="native")this.$media.width(normalWidth).height(normalHeight);else{this.container.find(".mejs-shim").width(normalWidth).height(normalHeight);this.media.setVideoSize(normalWidth,normalHeight)}this.layers.children("div").width(normalWidth).height(normalHeight);this.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen"); this.setControlsSize();this.isFullScreen=false}}})})(mejs.$); (function(f){f.extend(mejs.MepDefaults,{startLanguage:"",tracksText:mejs.i18n.t("Captions/Subtitles"),hideCaptionsButtonWhenEmpty:true,toggleCaptionsButtonWhenOnlyOne:false,slidesSelector:""});f.extend(MediaElementPlayer.prototype,{hasChapters:false,buildtracks:function(a,b,c,e){if(a.tracks.length!=0){var d;if(this.domNode.textTracks)for(d=this.domNode.textTracks.length-1;d>=0;d--)this.domNode.textTracks[d].mode="hidden";a.chapters=f('
    ').prependTo(c).hide();a.captions= f('
    ').prependTo(c).hide();a.captionsText=a.captions.find(".mejs-captions-text");a.captionsButton=f('
    ").appendTo(b);for(d=b=0;d0&&b.displayChapters(c)},false);c.kind=="slides"&&b.setupSlides(c)},error:function(){b.loadNextTrack()}})},enableTrackButton:function(a,b){if(b==="")b=mejs.language.codes[a]||a;this.captionsButton.find("input[value="+a+"]").prop("disabled",false).siblings("label").html(b); this.options.startLanguage==a&&f("#"+this.id+"_captions_"+a).click();this.adjustLanguageBox()},addTrackButton:function(a,b){if(b==="")b=mejs.language.codes[a]||a;this.captionsButton.find("ul").append(f('
  • "));this.adjustLanguageBox();this.container.find(".mejs-captions-translations option[value="+a+"]").remove()}, adjustLanguageBox:function(){this.captionsButton.find(".mejs-captions-selector").height(this.captionsButton.find(".mejs-captions-selector ul").outerHeight(true)+this.captionsButton.find(".mejs-captions-translations").outerHeight(true))},checkForTracks:function(){var a=false;if(this.options.hideCaptionsButtonWhenEmpty){for(i=0;i=b.entries.times[a].start&&this.media.currentTime<=b.entries.times[a].stop){this.captionsText.html(b.entries.text[a]);this.captions.show().height(0);return}this.captions.hide()}},setupSlides:function(a){this.slides=a;this.slides.entries.imgs=[this.slides.entries.text.length];this.showSlide(0)},showSlide:function(a){if(!(typeof this.tracks=="undefined"||typeof this.slidesContainer=="undefined")){var b=this,c=b.slides.entries.text[a],e=b.slides.entries.imgs[a];if(typeof e=="undefined"||typeof e.fadeIn=="undefined")b.slides.entries.imgs[a]=e=f('').on("load",function(){e.appendTo(b.slidesContainer).hide().fadeIn().siblings(":visible").fadeOut()});else!e.is(":visible")&&!e.is(":animated")&&e.fadeIn().siblings(":visible").fadeOut()}},displaySlides:function(){if(typeof this.slides!="undefined"){var a=this.slides,b;for(b=0;b= a.entries.times[b].start&&this.media.currentTime<=a.entries.times[b].stop){this.showSlide(b);break}}},displayChapters:function(){var a;for(a=0;a100||c==a.entries.times.length- 1&&e+d<100)e=100-d;b.chapters.append(f('
    '+a.entries.text[c]+''+mejs.Utility.secondsToTimeCode(a.entries.times[c].start)+"–"+mejs.Utility.secondsToTimeCode(a.entries.times[c].stop)+"
    "));d+=e}b.chapters.find("div.mejs-chapter").click(function(){b.media.setCurrentTime(parseFloat(f(this).attr("rel"))); b.media.paused&&b.media.play()});b.chapters.show()}});mejs.language={codes:{af:"Afrikaans",sq:"Albanian",ar:"Arabic",be:"Belarusian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",tl:"Filipino",fi:"Finnish",fr:"French",gl:"Galician",de:"German",el:"Greek",ht:"Haitian Creole",iw:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese", ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",mt:"Maltese",no:"Norwegian",fa:"Persian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sr:"Serbian",sk:"Slovak",sl:"Slovenian",es:"Spanish",sw:"Swahili",sv:"Swedish",tl:"Tagalog",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",cy:"Welsh",yi:"Yiddish"}};mejs.TrackFormatParser={webvvt:{pattern_identifier:/^([a-zA-z]+-)?[0-9]+$/,pattern_timecode:/^([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/, parse:function(a){var b=0;a=mejs.TrackFormatParser.split2(a,/\r?\n/);for(var c={text:[],times:[]},e,d;b$1");c.text.push(d);c.times.push({start:mejs.Utility.convertSMPTEtoSeconds(e[1])==0?0.2:mejs.Utility.convertSMPTEtoSeconds(e[1]), stop:mejs.Utility.convertSMPTEtoSeconds(e[3]),settings:e[5]})}}return c}},dfxp:{parse:function(a){a=f(a).filter("tt");var b=0;b=a.children("div").eq(0);var c=b.find("p");b=a.find("#"+b.attr("style"));var e,d;a={text:[],times:[]};if(b.length){d=b.removeAttr("id").get(0).attributes;if(d.length){e={};for(b=0;b$1");a.text.push(d);if(a.times.start==0)a.times.start=2}return a}},split2:function(a,b){return a.split(b)}};if("x\n\ny".split(/\n/gi).length!=3)mejs.TrackFormatParser.split2=function(a,b){var c=[],e="",d;for(d=0;d
    ').appendTo(f("body")).hide();a.container.bind("contextmenu",function(b){if(a.isContextMenuEnabled){b.preventDefault();a.renderContextMenu(b.clientX-1,b.clientY-1);return false}});a.container.bind("click",function(){a.contextMenu.hide()});a.contextMenu.bind("mouseleave",function(){a.startContextMenuTimer()})},cleancontextmenu:function(a){a.contextMenu.remove()}, isContextMenuEnabled:true,enableContextMenu:function(){this.isContextMenuEnabled=true},disableContextMenu:function(){this.isContextMenuEnabled=false},contextMenuTimeout:null,startContextMenuTimer:function(){var a=this;a.killContextMenuTimer();a.contextMenuTimer=setTimeout(function(){a.hideContextMenu();a.killContextMenuTimer()},750)},killContextMenuTimer:function(){var a=this.contextMenuTimer;if(a!=null){clearTimeout(a);delete a}},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(a, b){for(var c=this,e="",d=c.options.contextMenuItems,g=0,k=d.length;g
    ';else{var j=d[g].render(c);if(j!=null)e+='
    '+j+"
    "}c.contextMenu.empty().append(f(e)).css({top:b,left:a}).show();c.contextMenu.find(".mejs-contextmenu-item").each(function(){var m=f(this),q=parseInt(m.data("itemindex"),10),p=c.options.contextMenuItems[q];typeof p.show!="undefined"&&p.show(m,c);m.click(function(){typeof p.click!="undefined"&&p.click(c);c.contextMenu.hide()})});setTimeout(function(){c.killControlsTimer("rev3")},100)}})})(mejs.$); (function(f){f.extend(mejs.MepDefaults,{postrollCloseText:mejs.i18n.t("Close")});f.extend(MediaElementPlayer.prototype,{buildpostroll:function(a,b,c){var e=this.container.find('link[rel="postroll"]').attr("href");if(typeof e!=="undefined"){a.postroll=f('').prependTo(c).hide();this.media.addEventListener("ended", function(){f.ajax({dataType:"html",url:e,success:function(d){c.find(".mejs-postroll-layer-content").html(d)}});a.postroll.show()},false)}}})})(mejs.$); (function(window,$,undefined){$.infinitescroll=function infscr(options,callback,element){this.element=$(element);this._create(options,callback);};$.infinitescroll.defaults={loading:{finished:undefined,finishedMsg:"Congratulations, you've reached the end of the internet.",img:"http://www.infinite-scroll.com/loading.gif",msg:null,msgText:"Loading the next set of posts...",selector:null,speed:'fast',start:undefined},state:{isDuringAjax:false,isInvalidPage:false,isDestroyed:false,isDone:false,isPaused:false,currPage:1},callback:undefined,debug:false,behavior:undefined,binder:$(window),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:false,pathParse:undefined,dataType:'html',appendCallback:true,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:undefined,path:undefined};$.infinitescroll.prototype={_binding:function infscr_binding(binding){var instance=this,opts=instance.options;if(!!opts.behavior&&this['_binding_'+opts.behavior]!==undefined){this['_binding_'+opts.behavior].call(this);return;} if(binding!=='bind'&&binding!=='unbind'){this._debug('Binding value '+binding+' not valid') return false;} if(binding=='unbind'){(this.options.binder).unbind('smartscroll.infscr.'+instance.options.infid);}else{(this.options.binder)[binding]('smartscroll.infscr.'+instance.options.infid,function(){instance.scroll();});};this._debug('Binding',binding);},_create:function infscr_create(options,callback){if(!this._validate(options)){return false;} var opts=this.options=$.extend(true,{},$.infinitescroll.defaults,options),relurl=/(.*?\/\/).*?(\/.*)/,path=$(opts.nextSelector).attr('href');opts.contentSelector=opts.contentSelector||this.element;opts.loading.selector=opts.loading.selector||opts.contentSelector;if(!path){this._debug('Navigation selector not found');return;} opts.path=this._determinepath(path);opts.loading.msg=$('
    '+opts.loading.msgText+'
    ');opts.pixelsFromNavToBottom=$(document).height()-$(opts.navSelector).offset().top;opts.loading.start=opts.loading.start||function(){$(opts.navSelector).hide();opts.loading.msg.appendTo(opts.loading.selector).show(opts.loading.speed,function(){beginAjax(opts);});};opts.loading.finished=opts.loading.finished||function(){opts.loading.msg.fadeOut('normal');};opts.callback=function(instance,data){if(!!opts.behavior&&instance['_callback_'+opts.behavior]!==undefined){instance['_callback_'+opts.behavior].call($(opts.contentSelector)[0],data);} if(callback){callback.call($(opts.contentSelector)[0],data);}};this._setup();},_debug:function infscr_debug(){if(this.options.debug){return window.console&&console.log.call(console,arguments);}},_determinepath:function infscr_determinepath(path){var opts=this.options;if(!!opts.behavior&&this['_determinepath_'+opts.behavior]!==undefined){this['_determinepath_'+opts.behavior].call(this,path);return;} if(!!opts.pathParse){this._debug('pathParse manual');return opts.pathParse;}else if(path.match(/^(.*?)\b2\b(.*?$)/)){path=path.match(/^(.*?)\b2\b(.*?$)/).slice(1);}else if(path.match(/^(.*?)2(.*?$)/)){if(path.match(/^(.*?page=)2(\/.*|$)/)){path=path.match(/^(.*?page=)2(\/.*|$)/).slice(1);return path;} path=path.match(/^(.*?)2(.*?$)/).slice(1);}else{if(path.match(/^(.*?page=)1(\/.*|$)/)){path=path.match(/^(.*?page=)1(\/.*|$)/).slice(1);return path;}else{this._debug('Sorry, we couldn\'t parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com.');opts.state.isInvalidPage=true;}} this._debug('determinePath',path);return path;},_error:function infscr_error(xhr){var opts=this.options;if(!!opts.behavior&&this['_error_'+opts.behavior]!==undefined){this['_error_'+opts.behavior].call(this,xhr);return;} if(xhr!=='destroy'&&xhr!=='end'){xhr='unknown';} this._debug('Error',xhr);if(xhr=='end'){this._showdonemsg();} opts.state.isDone=true;opts.state.currPage=1;opts.state.isPaused=false;this._binding('unbind');},_loadcallback:function infscr_loadcallback(box,data){var opts=this.options,callback=this.options.callback,result=(opts.state.isDone)?'done':(!opts.appendCallback)?'no-append':'append',frag;if(!!opts.behavior&&this['_loadcallback_'+opts.behavior]!==undefined){this['_loadcallback_'+opts.behavior].call(this,box,data);return;} switch(result){case'done':this._showdonemsg();return false;break;case'no-append':if(opts.dataType=='html'){data='
    '+data+'
    ';data=$(data).find(opts.itemSelector);};break;case'append':var children=box.children();if(children.length==0){return this._error('end');} frag=document.createDocumentFragment();while(box[0].firstChild){frag.appendChild(box[0].firstChild);} this._debug('contentSelector',$(opts.contentSelector)[0]) $(opts.contentSelector)[0].appendChild(frag);data=children.get();break;} opts.loading.finished.call($(opts.contentSelector)[0],opts) if(opts.animate){var scrollTo=$(window).scrollTop()+$('#infscr-loading').height()+opts.extraScrollPx+'px';$('html,body').animate({scrollTop:scrollTo},800,function(){opts.state.isDuringAjax=false;});} if(!opts.animate)opts.state.isDuringAjax=false;callback(this,data);},_nearbottom:function infscr_nearbottom(){var opts=this.options,pixelsFromWindowBottomToBottom=0+$(document).height()-(opts.binder.scrollTop())-$(window).height();if(!!opts.behavior&&this['_nearbottom_'+opts.behavior]!==undefined){this['_nearbottom_'+opts.behavior].call(this);return;} this._debug('math:',pixelsFromWindowBottomToBottom,opts.pixelsFromNavToBottom);return(pixelsFromWindowBottomToBottom-opts.bufferPx-1&&$(opts[key]).length===0){this._debug('Your '+key+' found no elements.');return false;} return true;}},bind:function infscr_bind(){this._binding('bind');},destroy:function infscr_destroy(){this.options.state.isDestroyed=true;return this._error('destroy');},pause:function infscr_pause(){this._pausing('pause');},resume:function infscr_resume(){this._pausing('resume');},retrieve:function infscr_retrieve(pageNum){var instance=this,opts=instance.options,path=opts.path,box,frag,desturl,method,condition,pageNum=pageNum||null,getPage=(!!pageNum)?pageNum:opts.state.currPage;beginAjax=function infscr_ajax(opts){opts.state.currPage++;instance._debug('heading into ajax',path);box=$(opts.contentSelector).is('table')?$(''):$('
    ');desturl=path.join(opts.state.currPage);method=(opts.dataType=='html'||opts.dataType=='json')?opts.dataType:'html+callback';if(opts.appendCallback&&opts.dataType=='html')method+='+callback' switch(method){case'html+callback':instance._debug('Using HTML via .load() method');box.load(desturl+' '+opts.itemSelector,null,function infscr_ajax_callback(responseText){instance._loadcallback(box,responseText);});break;case'html':case'json':instance._debug('Using '+(method.toUpperCase())+' via $.ajax() method');$.ajax({url:desturl,dataType:opts.dataType,complete:function infscr_ajax_callback(jqXHR,textStatus){condition=(typeof(jqXHR.isResolved)!=='undefined')?(jqXHR.isResolved()):(textStatus==="success"||textStatus==="notmodified");(condition)?instance._loadcallback(box,jqXHR.responseText):instance._error('end');}});break;}};if(!!opts.behavior&&this['retrieve_'+opts.behavior]!==undefined){this['retrieve_'+opts.behavior].call(this,pageNum);return;} if(opts.state.isDestroyed){this._debug('Instance is destroyed');return false;};opts.state.isDuringAjax=true;opts.loading.start.call($(opts.contentSelector)[0],opts);},scroll:function infscr_scroll(){var opts=this.options,state=opts.state;if(!!opts.behavior&&this['scroll_'+opts.behavior]!==undefined){this['scroll_'+opts.behavior].call(this);return;} if(state.isDuringAjax||state.isInvalidPage||state.isDone||state.isDestroyed||state.isPaused)return;if(!this._nearbottom())return;this.retrieve();},toggle:function infscr_toggle(){this._pausing();},unbind:function infscr_unbind(){this._binding('unbind');},update:function infscr_options(key){if($.isPlainObject(key)){this.options=$.extend(true,this.options,key);}}} $.fn.infinitescroll=function infscr_init(options,callback){var thisCall=typeof options;switch(thisCall){case'string':var args=Array.prototype.slice.call(arguments,1);this.each(function(){var instance=$.data(this,'infinitescroll');if(!instance){return false;} if(!$.isFunction(instance[options])||options.charAt(0)==="_"){return false;} instance[options].apply(instance,args);});break;case'object':this.each(function(){var instance=$.data(this,'infinitescroll');if(instance){instance.update(options);}else{$.data(this,'infinitescroll',new $.infinitescroll(options,callback,this));}});break;} return this;};var event=$.event,scrollTimeout;event.special.smartscroll={setup:function(){$(this).bind("scroll",event.special.smartscroll.handler);},teardown:function(){$(this).unbind("scroll",event.special.smartscroll.handler);},handler:function(event,execAsap){var context=this,args=arguments;event.type="smartscroll";if(scrollTimeout){clearTimeout(scrollTimeout);} scrollTimeout=setTimeout(function(){$.event.handle.apply(context,args);},execAsap==="execAsap"?0:100);}};$.fn.smartscroll=function(fn){return fn?this.bind("smartscroll",fn):this.trigger("smartscroll",["execAsap"]);};})(window,jQuery); (function($){var eventNamespace='waitForImages';$.waitForImages={hasImageProperties:['backgroundImage','listStyleImage','borderImage','borderCornerImage']};$.expr[':'].uncached=function(obj){if(!$(obj).is('img[src!=""]')){return false}var img=new Image();img.src=obj.src;return!img.complete};$.fn.waitForImages=function(finishedCallback,eachCallback,waitForAll){var allImgsLength=0;var allImgsLoaded=0;if($.isPlainObject(arguments[0])){waitForAll=arguments[0].waitForAll;eachCallback=arguments[0].each;finishedCallback=arguments[0].finished}finishedCallback=finishedCallback||$.noop;eachCallback=eachCallback||$.noop;waitForAll=!!waitForAll;if(!$.isFunction(finishedCallback)||!$.isFunction(eachCallback)){throw new TypeError('An invalid callback was supplied.');}return this.each(function(){var obj=$(this);var allImgs=[];var hasImgProperties=$.waitForImages.hasImageProperties||[];var matchUrl=/url\(\s*(['"]?)(.*?)\1\s*\)/g;if(waitForAll){obj.find('*').andSelf().each(function(){var element=$(this);if(element.is('img:uncached')){allImgs.push({src:element.attr('src'),element:element[0]})}$.each(hasImgProperties,function(i,property){var propertyValue=element.css(property);var match;if(!propertyValue){return true}while(match=matchUrl.exec(propertyValue)){allImgs.push({src:match[2],element:element[0]})}})})}else{obj.find('img:uncached').each(function(){allImgs.push({src:this.src,element:this})})}allImgsLength=allImgs.length;allImgsLoaded=0;if(allImgsLength===0){finishedCallback.call(obj[0])}$.each(allImgs,function(i,img){var image=new Image();$(image).bind('load.'+eventNamespace+' error.'+eventNamespace,function(event){allImgsLoaded++;eachCallback.call(img.element,allImgsLoaded,allImgsLength,event.type=='load');if(allImgsLoaded==allImgsLength){finishedCallback.call(obj[0]);return false}});image.src=img.src})})}}(jQuery)); ;(function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("undefined"!=typeof jQuery?jQuery:window.Zepto)})(function(e){"use strict";function t(t){var r=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(r))}function r(t){var r=t.target,a=e(r);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;r=n[0]}var i=this;if(i.clk=r,"image"==r.type)if(void 0!==t.offsetX)i.clk_x=t.offsetX,i.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=a.offset();i.clk_x=t.pageX-o.left,i.clk_y=t.pageY-o.top}else i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function a(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var n={};n.fileapi=void 0!==e("").get(0).files,n.formdata=void 0!==window.FormData;var i=!!e.fn.prop;e.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function r(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;o>a;a++)i[a]=i[a].replace(/\+/g," "),n=i[a].split("="),s.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return s}function o(a){for(var n=new FormData,i=0;a.length>i;i++)n.append(a[i].name,a[i].value);if(t.extraData){var o=r(t.extraData);for(i=0;o.length>i;i++)o[i]&&n.append(o[i][0],o[i][1])}t.data=null;var s=e.extend(!0,{},e.ajaxSettings,t,{contentType:!1,processData:!1,cache:!1,type:u||"POST"});t.uploadProgress&&(s.xhr=function(){var r=e.ajaxSettings.xhr();return r.upload&&r.upload.addEventListener("progress",function(e){var r=0,a=e.loaded||e.position,n=e.total;e.lengthComputable&&(r=Math.ceil(100*(a/n))),t.uploadProgress(e,a,n,r)},!1),r}),s.data=null;var c=s.beforeSend;return s.beforeSend=function(e,r){r.data=t.formData?t.formData:n,c&&c.call(this,e,r)},e.ajax(s)}function s(r){function n(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(r){a("cannot get iframe.contentWindow document: "+r)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(r){a("cannot get iframe.contentDocument: "+r),t=e.document}return t}function o(){function t(){try{var e=n(g).readyState;a("state="+e),e&&"uninitialized"==e.toLowerCase()&&setTimeout(t,50)}catch(r){a("Server abort: ",r," (",r.name,")"),s(k),j&&clearTimeout(j),j=void 0}}var r=f.attr2("target"),i=f.attr2("action");w.setAttribute("target",p),(!u||/post/i.test(u))&&w.setAttribute("method","POST"),i!=m.url&&w.setAttribute("action",m.url),m.skipEncodingOverride||u&&!/post/i.test(u)||f.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),m.timeout&&(j=setTimeout(function(){T=!0,s(D)},m.timeout));var o=[];try{if(m.extraData)for(var c in m.extraData)m.extraData.hasOwnProperty(c)&&(e.isPlainObject(m.extraData[c])&&m.extraData[c].hasOwnProperty("name")&&m.extraData[c].hasOwnProperty("value")?o.push(e('').val(m.extraData[c].value).appendTo(w)[0]):o.push(e('').val(m.extraData[c]).appendTo(w)[0]));m.iframeTarget||v.appendTo("body"),g.attachEvent?g.attachEvent("onload",s):g.addEventListener("load",s,!1),setTimeout(t,15);try{w.submit()}catch(l){var d=document.createElement("form").submit;d.apply(w)}}finally{w.setAttribute("action",i),r?w.setAttribute("target",r):f.removeAttr("target"),e(o).remove()}}function s(t){if(!x.aborted&&!F){if(M=n(g),M||(a("cannot access response document"),t=k),t===D&&x)return x.abort("timeout"),S.reject(x,"timeout"),void 0;if(t==k&&x)return x.abort("server abort"),S.reject(x,"error","server abort"),void 0;if(M&&M.location.href!=m.iframeSrc||T){g.detachEvent?g.detachEvent("onload",s):g.removeEventListener("load",s,!1);var r,i="success";try{if(T)throw"timeout";var o="xml"==m.dataType||M.XMLDocument||e.isXMLDoc(M);if(a("isXml="+o),!o&&window.opera&&(null===M.body||!M.body.innerHTML)&&--O)return a("requeing onLoad callback, DOM not available"),setTimeout(s,250),void 0;var u=M.body?M.body:M.documentElement;x.responseText=u?u.innerHTML:null,x.responseXML=M.XMLDocument?M.XMLDocument:M,o&&(m.dataType="xml"),x.getResponseHeader=function(e){var t={"content-type":m.dataType};return t[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var c=(m.dataType||"").toLowerCase(),l=/(json|script|text)/.test(c);if(l||m.textarea){var f=M.getElementsByTagName("textarea")[0];if(f)x.responseText=f.value,x.status=Number(f.getAttribute("status"))||x.status,x.statusText=f.getAttribute("statusText")||x.statusText;else if(l){var p=M.getElementsByTagName("pre")[0],h=M.getElementsByTagName("body")[0];p?x.responseText=p.textContent?p.textContent:p.innerText:h&&(x.responseText=h.textContent?h.textContent:h.innerText)}}else"xml"==c&&!x.responseXML&&x.responseText&&(x.responseXML=X(x.responseText));try{E=_(x,c,m)}catch(b){i="parsererror",x.error=r=b||i}}catch(b){a("error caught: ",b),i="error",x.error=r=b||i}x.aborted&&(a("upload aborted"),i=null),x.status&&(i=x.status>=200&&300>x.status||304===x.status?"success":"error"),"success"===i?(m.success&&m.success.call(m.context,E,"success",x),S.resolve(x.responseText,"success",x),d&&e.event.trigger("ajaxSuccess",[x,m])):i&&(void 0===r&&(r=x.statusText),m.error&&m.error.call(m.context,x,i,r),S.reject(x,"error",r),d&&e.event.trigger("ajaxError",[x,m,r])),d&&e.event.trigger("ajaxComplete",[x,m]),d&&!--e.active&&e.event.trigger("ajaxStop"),m.complete&&m.complete.call(m.context,x,i),F=!0,m.timeout&&clearTimeout(j),setTimeout(function(){m.iframeTarget?v.attr("src",m.iframeSrc):v.remove(),x.responseXML=null},100)}}}var c,l,m,d,p,v,g,x,b,y,T,j,w=f[0],S=e.Deferred();if(S.abort=function(e){x.abort(e)},r)for(l=0;h.length>l;l++)c=e(h[l]),i?c.prop("disabled",!1):c.removeAttr("disabled");if(m=e.extend(!0,{},e.ajaxSettings,t),m.context=m.context||m,p="jqFormIO"+(new Date).getTime(),m.iframeTarget?(v=e(m.iframeTarget),y=v.attr2("name"),y?p=y:v.attr2("name",p)):(v=e('