var App=function(){function n(){jQuery(window).scroll(function(){jQuery(window).scrollTop()>100?jQuery(".header-fixed .header-sticky").addClass("header-fixed-shrink"):jQuery(".header-fixed .header-sticky").removeClass("header-fixed-shrink")})}function t(){jQuery(document).on("click",".mega-menu .dropdown-menu",function(n){n.stopPropagation()})}function i(){jQuery(".search").on("click",function(){jQuery(".search-btn").hasClass("fa-search")?(jQuery(".search-open").fadeIn(500),jQuery(".search-btn").removeClass("fa-search"),jQuery(".search-btn").addClass("fa-times")):(jQuery(".search-open").fadeOut(500),jQuery(".search-btn").addClass("fa-search"),jQuery(".search-btn").removeClass("fa-times"))})}function r(){jQuery(".header-v5 .search-button").click(function(){jQuery(".header-v5 .search-open").slideDown()});jQuery(".header-v5 .search-close").click(function(){jQuery(".header-v5 .search-open").slideUp()});jQuery(window).scroll(function(){jQuery(this).scrollTop()>1&&jQuery(".header-v5 .search-open").fadeOut("fast")})}function u(){$(".blog-topbar .search-btn").on("click",function(){jQuery(".topbar-search-block").hasClass("topbar-search-visible")?(jQuery(".topbar-search-block").slideUp(),jQuery(".topbar-search-block").removeClass("topbar-search-visible")):(jQuery(".topbar-search-block").slideDown(),jQuery(".topbar-search-block").addClass("topbar-search-visible"))});$(".blog-topbar .search-close").on("click",function(){jQuery(".topbar-search-block").slideUp();jQuery(".topbar-search-block").removeClass("topbar-search-visible")});jQuery(window).scroll(function(){jQuery(".topbar-search-block").slideUp();jQuery(".topbar-search-block").removeClass("topbar-search-visible")})}function f(){$(".topbar-toggler").on("click",function(){jQuery(".topbar-toggler").hasClass("topbar-list-visible")?(jQuery(".topbar-menu").slideUp(),jQuery(this).removeClass("topbar-list-visible")):(jQuery(".topbar-menu").slideDown(),jQuery(this).addClass("topbar-list-visible"))})}function e(){$(".topbar-list > li").on("click",function(){jQuery(this).children("ul").hasClass("topbar-dropdown")&&(jQuery(this).children("ul").hasClass("topbar-dropdown-visible")?(jQuery(this).children(".topbar-dropdown").slideUp(),jQuery(this).children(".topbar-dropdown").removeClass("topbar-dropdown-visible")):(jQuery(this).children(".topbar-dropdown").slideDown(),jQuery(this).children(".topbar-dropdown").addClass("topbar-dropdown-visible")))})}function o(){jQuery(".list-toggle").on("click",function(){jQuery(this).toggleClass("active")})}function s(){var n=function(){$(".equal-height-columns").each(function(){heights=[];$(".equal-height-column",this).each(function(){$(this).removeAttr("style");heights.push($(this).height())});$(".equal-height-column",this).height(Math.max.apply(Math,heights))})};n();$(window).resize(function(){n()});$(window).load(function(){n()})}function h(){var n=function(){$(".equal-height-columns-v2").each(function(){var n=[];$(".equal-height-column-v2",this).each(function(){$(this).removeAttr("style");n.push($(this).height())});$(".equal-height-column-v2",this).height(Math.max.apply(Math,n));$(".equal-height-column-v2",this).each(function(){$(this).hasAttr("data-image-src")&&$(this).css("background","url("+$(this).attr("data-image-src")+") no-repeat scroll 50% 0 / cover")})})};$(".equal-height-columns-v2").ready(function(){n()});$(window).resize(function(){n()})}function a(){$(".hoverSelector").on("click",function(){jQuery(this).children("ul").hasClass("languages")&&(jQuery(this).children("ul").hasClass("languages-visible")?(jQuery(this).children(".languages").slideUp(),jQuery(this).children(".languages").removeClass("languages-visible")):(jQuery(this).children(".languages").slideDown(),jQuery(this).children(".languages").addClass("languages-visible")))})}function v(){jQuery(".carousel").carousel({interval:15e3,pause:"hover"});jQuery(".tooltips").tooltip();jQuery(".tooltips-show").tooltip("show");jQuery(".tooltips-hide").tooltip("hide");jQuery(".tooltips-toggle").tooltip("toggle");jQuery(".tooltips-destroy").tooltip("destroy");jQuery(".popovers").popover();jQuery(".popovers-show").popover("show");jQuery(".popovers-hide").popover("hide");jQuery(".popovers-toggle").popover("toggle");jQuery(".popovers-destroy").popover("destroy")}$.fn.hasAttr=function(n){return this.attr(n)!==undefined};var c=function(){var t=$(window).height(),n=0;n=$(document.body).hasClass("promo-padding-top")?$(".header").height():0;$(".fullheight").css("height",t-n);$(window).resize(function(){var t=$(window).height();$(".fullheight").css("height",t-n)})},l=function(){$(".valign__middle").each(function(){$(this).css("padding-top",$(this).parent().height()/2-$(this).height()/2)});$(window).resize(function(){$(".valign__middle").each(function(){$(this).css("padding-top",$(this).parent().height()/2-$(this).height()/2)})})};return{init:function(){v();i();r();u();f();e();o();n();t();a();c();l();s();h()},initCounter:function(){jQuery(".counter").counterUp({delay:10,time:1e3})},initParallaxBg:function(){jQuery(window).load(function(){jQuery(".parallaxBg").parallax("50%",.2);jQuery(".parallaxBg1").parallax("50%",.4)})},initScrollBar:function(){jQuery(".mCustomScrollbar").mCustomScrollbar({theme:"minimal",scrollInertia:200,scrollEasing:"linear"})},initSidebarMenuDropdown:function(){function n(){jQuery(".header-v7 .dropdown-toggle").on("click",function(){jQuery(".header-v7 .dropdown-menu").stop(!0,!1).slideUp();jQuery(".header-v7 .dropdown").removeClass("open");jQuery(this).siblings(".dropdown-menu").is(":hidden")==!0&&(jQuery(this).siblings(".dropdown-menu").stop(!0,!1).slideDown(),jQuery(this).parents(".dropdown").addClass("open"))})}n()},initAnimateDropdown:function(){function n(){jQuery(".dropdown").on("show.bs.dropdown",function(){jQuery(this).find(".dropdown-menu").first().stop(!0,!0).slideDown()});jQuery(".dropdown").on("hide.bs.dropdown",function(){jQuery(this).find(".dropdown-menu").first().stop(!0,!0).slideUp()})}jQuery(window).resize(function(){jQuery(window).width()>768&&n()});jQuery(window).width()>768&&n()}}}(),scrolltotop={setting:{startline:100,scrollto:0,scrollduration:1e3,fadeduration:[500,100]},controlHTML:"",controlattrs:{offsetx:5,offsety:5},anchorkeyword:"#top",state:{isvisible:!1,shouldvisible:!1},scrollup:function(){this.cssfixedsupport||this.$control.css({opacity:0});var n=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);n=typeof n=="string"&&jQuery("#"+n).length==1?jQuery("#"+n).offset().top:0;this.$body.animate({scrollTop:n},this.setting.scrollduration)},keepfixed:function(){var n=jQuery(window),t=n.scrollLeft()+n.width()-this.$control.width()-this.controlattrs.offsetx,i=n.scrollTop()+n.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:t+"px",top:i+"px"})},togglecontrol:function(){var n=jQuery(window).scrollTop();this.cssfixedsupport||this.keepfixed();this.state.shouldvisible=n>=this.setting.startline?!0:!1;this.state.shouldvisible&&!this.state.isvisible?(this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]),this.state.isvisible=!0):this.state.shouldvisible==!1&&this.state.isvisible&&(this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]),this.state.isvisible=!1)},init:function(){jQuery(document).ready(function(n){var t=scrolltotop,i=document.all;t.cssfixedsupport=!i||i&&document.compatMode=="CSS1Compat"&&window.XMLHttpRequest;t.$body=window.opera?document.compatMode=="CSS1Compat"?n("html"):n("body"):n("html,body");t.$control=n('<div id="topcontrol">'+t.controlHTML+"<\/div>").css({position:t.cssfixedsupport?"fixed":"absolute",bottom:t.controlattrs.offsety,right:t.controlattrs.offsetx,opacity:0,cursor:"pointer"}).attr({title:"Scroll Back to Top"}).click(function(){return t.scrollup(),!1}).appendTo("body");document.all&&!window.XMLHttpRequest&&t.$control.text()!=""&&t.$control.css({width:t.$control.width()});t.togglecontrol();n('a[href="'+t.anchorkeyword+'"]').click(function(){return t.scrollup(),!1});n(window).bind("scroll resize",function(){t.togglecontrol()})})}};scrolltotop.init(),function(){function et(){var t=!1;t&&ht("keydown",tt);n.keyboardSupport&&!t&&s("keydown",tt)}function g(){var u,s,f;if(document.body){var t=document.body,i=document.documentElement,r=window.innerHeight,h=t.scrollHeight;e=document.compatMode.indexOf("CSS")>=0?i:t;o=t;et();d=!0;top!=self?k=!0:h>r&&(t.offsetHeight<=r||i.offsetHeight<=r)&&(u=!1,s=function(){u||i.scrollHeight==document.height||(u=!0,setTimeout(function(){i.style.height=document.height+"px";u=!1},500))},i.style.height="auto",setTimeout(s,10),e.offsetHeight<=r&&(f=document.createElement("div"),f.style.clear="both",t.appendChild(f)));n.fixedBackground||ft||(t.style.backgroundAttachment="scroll",i.style.backgroundAttachment="scroll")}}function nt(t,r,u,f){var l,o,e,a,s;(f||(f=1e3),ct(r,u),n.accelerationMax!=1&&(l=+new Date,o=l-c,o<n.accelerationDelta&&(e=(1+30/o)/2,e>1&&(e=Math.min(e,n.accelerationMax),r*=e,u*=e)),c=+new Date),i.push({x:r,y:u,lastX:r<0?.99:-.99,lastY:u<0?.99:-.99,start:+new Date}),h)||(a=t===document.body,s=function(){for(var y,p,d=+new Date,c=0,l=0,o=0;o<i.length;o++){var e=i[o],b=d-e.start,k=b>=n.animationTime,v=k?1:b/n.animationTime;n.pulseAlgorithm&&(v=vt(v));y=e.x*v-e.lastX>>0;p=e.y*v-e.lastY>>0;c+=y;l+=p;e.lastX+=y;e.lastY+=p;k&&(i.splice(o,1),o--)}a?window.scrollBy(c,l):(c&&(t.scrollLeft+=c),l&&(t.scrollTop+=l));r||u||(i=[]);i.length?w(s,t,f/n.frameRate+1):h=!1},w(s,t,0),h=!0)}function ot(t){var u,f,r,i;if((d||g(),u=t.target,f=it(u),!f||t.defaultPrevented||y(o,"embed")||y(u,"embed")&&/\.pdf/i.test(u.src))||(r=t.wheelDeltaX||0,i=t.wheelDeltaY||0,r||i||(i=t.wheelDelta||0),!n.touchpadSupport&&at(i)))return!0;Math.abs(r)>1.2&&(r*=n.stepSize/120);Math.abs(i)>1.2&&(i*=n.stepSize/120);nt(f,-r,-i);t.preventDefault()}function tt(i){var e=i.target,l=i.ctrlKey||i.altKey||i.metaKey||i.shiftKey&&i.keyCode!==t.spacebar,h;if(/input|textarea|select|embed/i.test(e.nodeName)||e.isContentEditable||i.defaultPrevented||l||y(e,"button")&&i.keyCode===t.spacebar)return!0;var c,s=0,r=0,u=it(o),f=u.clientHeight;u==document.body&&(f=window.innerHeight);switch(i.keyCode){case t.up:r=-n.arrowScroll;break;case t.down:r=n.arrowScroll;break;case t.spacebar:c=i.shiftKey?1:-1;r=-c*f*.9;break;case t.pageup:r=-f*.9;break;case t.pagedown:r=f*.9;break;case t.home:r=-u.scrollTop;break;case t.end:h=u.scrollHeight-u.scrollTop-f;r=h>0?h+10:0;break;case t.left:s=-n.arrowScroll;break;case t.right:s=n.arrowScroll;break;default:return!0}nt(u,s,r);i.preventDefault()}function st(n){o=n.target}function v(n,t){for(var i=n.length;i--;)l[a(n[i])]=t;return t}function it(n){var t=[],r=e.scrollHeight,i;do{if(i=l[a(n)],i)return v(t,i);if(t.push(n),r===n.scrollHeight){if(!k||e.clientHeight+10<r)return v(t,document.body)}else if(n.clientHeight+10<n.scrollHeight&&(overflow=getComputedStyle(n,"").getPropertyValue("overflow-y"),overflow==="scroll"||overflow==="auto"))return v(t,n)}while(n=n.parentNode)}function s(n,t,i){window.addEventListener(n,t,i||!1)}function ht(n,t,i){window.removeEventListener(n,t,i||!1)}function y(n,t){return(n.nodeName||"").toLowerCase()===t.toLowerCase()}function ct(n,t){n=n>0?1:-1;t=t>0?1:-1;(f.x!==n||f.y!==t)&&(f.x=n,f.y=t,i=[],c=0)}function at(n){if(n){n=Math.abs(n);r.push(n);r.shift();clearTimeout(lt);var t=p(r[0],120)&&p(r[1],120)&&p(r[2],120);return!t}}function p(n,t){return Math.floor(n/t)==n/t}function rt(t){var i,r,u;return t=t*n.pulseScale,t<1?i=t-(1-Math.exp(-t)):(r=Math.exp(-1),t-=1,u=1-Math.exp(-t),i=r+u*(1-r)),i*n.pulseNormalize}function vt(t){return t>=1?1:t<=0?0:(n.pulseNormalize==1&&(n.pulseNormalize/=rt(1)),rt(t))}var b={frameRate:150,animationTime:400,stepSize:120,pulseAlgorithm:!0,pulseScale:8,pulseNormalize:1,accelerationDelta:20,accelerationMax:1,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackground:!0,excluded:""},n=b,ft=!1,k=!1,f={x:0,y:0},d=!1,e=document.documentElement,o,r=[120,120,120],t={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},n=b,i=[],h=!1,c=+new Date,l={},a,lt,w,ut,u;setInterval(function(){l={}},1e4);a=function(){var n=0;return function(t){return t.uniqueID||(t.uniqueID=n++)}}();w=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(n,t,i){window.setTimeout(n,i||1e3/60)}}();ut=/chrome/i.test(window.navigator.userAgent);u=null;"onwheel"in document.createElement("div")?u="wheel":"onmousewheel"in document.createElement("div")&&(u="mousewheel");u&&ut&&(s(u,ot),s("mousedown",st),s("load",g))}(),function(n){var t=n(window),i=t.height();t.resize(function(){i=t.height()});n.fn.parallax=function(r,u,f){function o(){var f=t.scrollTop();e.each(function(){var t=n(this),o=t.offset().top,c=s(t);o+c<f||o>f+i||e.css("backgroundPosition",r+" "+Math.round((h-f)*u)+"px")})}var e=n(this),s,h;e.each(function(){h=e.offset().top});s=f?function(n){return n.outerHeight(!0)}:function(n){return n.height()};(arguments.length<1||r===null)&&(r="50%");(arguments.length<2||u===null)&&(u=.1);(arguments.length<3||f===null)&&(f=!0);t.bind("scroll",o).resize(o);o()}}(jQuery)