summaryrefslogtreecommitdiff
path: root/bak/oldluxpages/house-demo/cs-body.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'bak/oldluxpages/house-demo/cs-body.min.js')
-rw-r--r--bak/oldluxpages/house-demo/cs-body.min.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/bak/oldluxpages/house-demo/cs-body.min.js b/bak/oldluxpages/house-demo/cs-body.min.js
deleted file mode 100644
index 93ec3c7..0000000
--- a/bak/oldluxpages/house-demo/cs-body.min.js
+++ /dev/null
@@ -1,3 +0,0 @@
-window.csModernizr=window.csModernizr||{},function(t){t.fn.csFitText=function(e,n){var i=e||1,a=t.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},n);return this.each(function(){var e=t(this),n=function(){e.css("font-size",Math.max(Math.min(e.width()/(10*i),parseFloat(a.maxFontSize)),parseFloat(a.minFontSize)))};n(),t(window).on("resize.fittext orientationchange.fittext",n),t(window).on("fittextReset",function(){t(window).off("resize.fittext orientationchange.fittext",n),e.css("font-size","")})})}}(jQuery),function(t,e,n){"use strict";t.fn.backstretch=function(i,o){return(i===n||0===i.length)&&t.error("No images were supplied for Backstretch"),0===t(e).scrollTop()&&e.scrollTo(0,0),this.each(function(){var e=t(this),n=e.data("backstretch");if(n){if("string"==typeof i&&"function"==typeof n[i])return void n[i](o);o=t.extend(n.options,o),n.destroy(!0)}n=new a(this,i,o),e.data("backstretch",n)})},t.backstretch=function(e,n){return t("body").backstretch(e,n).data("backstretch")},t.expr[":"].backstretch=function(e){return t(e).data("backstretch")!==n},t.fn.backstretch.defaults={centeredX:!0,centeredY:!0,duration:5e3,fade:0};var i={wrap:{left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},img:{position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"auto",height:"auto",maxHeight:"none",maxWidth:"none",zIndex:-999999}},a=function(n,a,s){this.options=t.extend({},t.fn.backstretch.defaults,s||{}),this.images=t.isArray(a)?a:[a],t.each(this.images,function(){t("<img />")[0].src=this}),this.isBody=n===document.body,this.$container=t(n),this.$root=this.isBody?t(o?e:document):this.$container;var r=this.$container.children(".backstretch").first();if(this.$wrap=r.length?r:t('<div class="backstretch"></div>').css(i.wrap).appendTo(this.$container),!this.isBody){var l=this.$container.css("position"),c=this.$container.css("zIndex");this.$container.css({position:"static"===l?"relative":l,zIndex:"auto"===c?0:c,background:"none"}),this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody&&o?"fixed":"absolute"}),this.index=0,this.show(this.index),t(e).on("resize.backstretch",t.proxy(this.resize,this)).on("orientationchange.backstretch",t.proxy(function(){this.isBody&&0===e.pageYOffset&&(e.scrollTo(0,1),this.resize())},this))};a.prototype={resize:function(){try{var t,n={left:0,top:0},i=this.isBody?this.$root.width():this.$root.innerWidth(),a=i,o=this.isBody?e.innerHeight?e.innerHeight:this.$root.height():this.$root.innerHeight(),s=a/this.$img.data("ratio");s>=o?(t=(s-o)/2,this.options.centeredY&&(n.top="-"+t+"px")):(s=o,a=s*this.$img.data("ratio"),t=(a-i)/2,this.options.centeredX&&(n.left="-"+t+"px")),this.$wrap.css({width:i,height:o}).find("img:not(.deleteable)").css({width:a,height:s}).css(n)}catch(r){}return this},show:function(e){if(!(Math.abs(e)>this.images.length-1)){var n=this,a=n.$wrap.find("img").addClass("deleteable"),o={relatedTarget:n.$container[0]};return n.$container.trigger(t.Event("backstretch.before",o),[n,e]),this.index=e,clearInterval(n.interval),n.$img=t("<img />").css(i.img).bind("load",function(i){var s=this.width||t(i.target).width(),r=this.height||t(i.target).height();t(this).data("ratio",s/r),t(this).fadeIn(n.options.speed||n.options.fade,function(){a.remove(),n.paused||n.cycle(),t(["after","show"]).each(function(){n.$container.trigger(t.Event("backstretch."+this,o),[n,e])})}),n.resize()}).appendTo(n.$wrap),n.$img.attr("src",n.images[e]),n}},next:function(){return this.show(this.index<this.images.length-1?this.index+1:0)},prev:function(){return this.show(0===this.index?this.images.length-1:this.index-1)},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this.next(),this},cycle:function(){return this.images.length>1&&(clearInterval(this.interval),this.interval=setInterval(t.proxy(function(){this.paused||this.next()},this),this.options.duration)),this},destroy:function(n){t(e).off("resize.backstretch orientationchange.backstretch"),clearInterval(this.interval),n||this.$wrap.remove(),this.$container.removeData("backstretch")}};var o=function(){var t=navigator.userAgent,n=navigator.platform,i=t.match(/AppleWebKit\/([0-9]+)/),a=!!i&&i[1],o=t.match(/Fennec\/([0-9]+)/),s=!!o&&o[1],r=t.match(/Opera Mobi\/([0-9]+)/),l=!!r&&r[1],c=t.match(/MSIE ([0-9]+)/),u=!!c&&c[1];return!((n.indexOf("iPhone")>-1||n.indexOf("iPad")>-1||n.indexOf("iPod")>-1)&&a&&534>a||e.operamini&&"[object OperaMini]"==={}.toString.call(e.operamini)||r&&7458>l||t.indexOf("Android")>-1&&a&&533>a||s&&6>s||"palmGetResource"in e&&a&&534>a||t.indexOf("MeeGo")>-1&&t.indexOf("NokiaBrowser/8.5.0")>-1||u&&6>=u)}()}(jQuery,window),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,n,i,a){return jQuery.easing[jQuery.easing.def](t,e,n,i,a)},easeInQuad:function(t,e,n,i,a){return i*(e/=a)*e+n},easeOutQuad:function(t,e,n,i,a){return-i*(e/=a)*(e-2)+n},easeInOutQuad:function(t,e,n,i,a){return(e/=a/2)<1?i/2*e*e+n:-i/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,i,a){return i*(e/=a)*e*e+n},easeOutCubic:function(t,e,n,i,a){return i*((e=e/a-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,i,a){return(e/=a/2)<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,i,a){return i*(e/=a)*e*e*e+n},easeOutQuart:function(t,e,n,i,a){return-i*((e=e/a-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,i,a){return(e/=a/2)<1?i/2*e*e*e*e+n:-i/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,i,a){return i*(e/=a)*e*e*e*e+n},easeOutQuint:function(t,e,n,i,a){return i*((e=e/a-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,i,a){return(e/=a/2)<1?i/2*e*e*e*e*e+n:i/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,i,a){return-i*Math.cos(e/a*(Math.PI/2))+i+n},easeOutSine:function(t,e,n,i,a){return i*Math.sin(e/a*(Math.PI/2))+n},easeInOutSine:function(t,e,n,i,a){return-i/2*(Math.cos(Math.PI*e/a)-1)+n},easeInExpo:function(t,e,n,i,a){return 0==e?n:i*Math.pow(2,10*(e/a-1))+n},easeOutExpo:function(t,e,n,i,a){return e==a?n+i:i*(-Math.pow(2,-10*e/a)+1)+n},easeInOutExpo:function(t,e,n,i,a){return 0==e?n:e==a?n+i:(e/=a/2)<1?i/2*Math.pow(2,10*(e-1))+n:i/2*(-Math.pow(2,-10*--e)+2)+n},easeInCirc:function(t,e,n,i,a){return-i*(Math.sqrt(1-(e/=a)*e)-1)+n},easeOutCirc:function(t,e,n,i,a){return i*Math.sqrt(1-(e=e/a-1)*e)+n},easeInOutCirc:function(t,e,n,i,a){return(e/=a/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+n:i/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(t,e,n,i,a){var o=1.70158,s=0,r=i;if(0==e)return n;if(1==(e/=a))return n+i;if(s||(s=.3*a),r<Math.abs(i)){r=i;var o=s/4}else var o=s/(2*Math.PI)*Math.asin(i/r);return-(r*Math.pow(2,10*(e-=1))*Math.sin((e*a-o)*(2*Math.PI)/s))+n},easeOutElastic:function(t,e,n,i,a){var o=1.70158,s=0,r=i;if(0==e)return n;if(1==(e/=a))return n+i;if(s||(s=.3*a),r<Math.abs(i)){r=i;var o=s/4}else var o=s/(2*Math.PI)*Math.asin(i/r);return r*Math.pow(2,-10*e)*Math.sin((e*a-o)*(2*Math.PI)/s)+i+n},easeInOutElastic:function(t,e,n,i,a){var o=1.70158,s=0,r=i;if(0==e)return n;if(2==(e/=a/2))return n+i;if(s||(s=a*(.3*1.5)),r<Math.abs(i)){r=i;var o=s/4}else var o=s/(2*Math.PI)*Math.asin(i/r);return 1>e?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e*a-o)*(2*Math.PI)/s))+n:r*Math.pow(2,-10*(e-=1))*Math.sin((e*a-o)*(2*Math.PI)/s)*.5+i+n},easeInBack:function(t,e,n,i,a,o){return void 0==o&&(o=1.70158),i*(e/=a)*e*((o+1)*e-o)+n},easeOutBack:function(t,e,n,i,a,o){return void 0==o&&(o=1.70158),i*((e=e/a-1)*e*((o+1)*e+o)+1)+n},easeInOutBack:function(t,e,n,i,a,o){return void 0==o&&(o=1.70158),(e/=a/2)<1?i/2*(e*e*(((o*=1.525)+1)*e-o))+n:i/2*((e-=2)*e*(((o*=1.525)+1)*e+o)+2)+n},easeInBounce:function(t,e,n,i,a){return i-jQuery.easing.easeOutBounce(t,a-e,0,i,a)+n},easeOutBounce:function(t,e,n,i,a){return(e/=a)<1/2.75?i*(7.5625*e*e)+n:2/2.75>e?i*(7.5625*(e-=1.5/2.75)*e+.75)+n:2.5/2.75>e?i*(7.5625*(e-=2.25/2.75)*e+.9375)+n:i*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(t,e,n,i,a){return a/2>e?.5*jQuery.easing.easeInBounce(t,2*e,0,i,a)+n:.5*jQuery.easing.easeOutBounce(t,2*e-a,0,i,a)+.5*i+n}}),function(t){t.flexslider=function(e,n){var i=t(e);i.vars=t.extend({},t.flexslider.defaults,n);var a,o=i.vars.namespace,s=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,r=("ontouchstart"in window||s||window.DocumentTouch&&document instanceof DocumentTouch)&&i.vars.touch,l="click touchend MSPointerUp",c="",u="vertical"===i.vars.direction,d=i.vars.reverse,p=i.vars.itemWidth>0,h="fade"===i.vars.animation,f=""!==i.vars.asNavFor,v={},m=!0;t.data(e,"flexslider",i),v={init:function(){i.animating=!1,i.currentSlide=parseInt(i.vars.startAt?i.vars.startAt:0,10),isNaN(i.currentSlide)&&(i.currentSlide=0),i.animatingTo=i.currentSlide,i.atEnd=0===i.currentSlide||i.currentSlide===i.last,i.containerSelector=i.vars.selector.substr(0,i.vars.selector.search(" ")),i.slides=t(i.vars.selector,i),i.container=t(i.containerSelector,i),i.count=i.slides.length,i.syncExists=t(i.vars.sync).length>0,"slide"===i.vars.animation&&(i.vars.animation="swing"),i.prop=u?"top":"marginLeft",i.args={},i.manualPause=!1,i.stopped=!1,i.started=!1,i.startTimeout=null,i.transitions=!i.vars.video&&!h&&i.vars.useCSS&&function(){var t=document.createElement("div"),e=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in e)if(void 0!==t.style[e[n]])return i.pfx=e[n].replace("Perspective","").toLowerCase(),i.prop="-"+i.pfx+"-transform",!0;return!1}(),i.ensureAnimationEnd="",""!==i.vars.controlsContainer&&(i.controlsContainer=t(i.vars.controlsContainer).length>0&&t(i.vars.controlsContainer)),""!==i.vars.manualControls&&(i.manualControls=t(i.vars.manualControls).length>0&&t(i.vars.manualControls)),i.vars.randomize&&(i.slides.sort(function(){return Math.round(Math.random())-.5}),i.container.empty().append(i.slides)),i.doMath(),i.setup("init"),i.vars.controlNav&&v.controlNav.setup(),i.vars.directionNav&&v.directionNav.setup(),i.vars.keyboard&&(1===t(i.containerSelector).length||i.vars.multipleKeyboard)&&t(document).bind("keyup",function(t){var e=t.keyCode;if(!i.animating&&(39===e||37===e)){var n=39===e?i.getTarget("next"):37===e?i.getTarget("prev"):!1;i.flexAnimate(n,i.vars.pauseOnAction)}}),i.vars.mousewheel&&i.bind("mousewheel",function(t,e,n,a){t.preventDefault();var o=0>e?i.getTarget("next"):i.getTarget("prev");i.flexAnimate(o,i.vars.pauseOnAction)}),i.vars.pausePlay&&v.pausePlay.setup(),i.vars.slideshow&&i.vars.pauseInvisible&&v.pauseInvisible.init(),i.vars.slideshow&&(i.vars.pauseOnHover&&i.hover(function(){i.manualPlay||i.manualPause||i.pause()},function(){i.manualPause||i.manualPlay||i.stopped||i.play()}),i.vars.pauseInvisible&&v.pauseInvisible.isHidden()||(i.vars.initDelay>0?i.startTimeout=setTimeout(i.play,i.vars.initDelay):i.play())),f&&v.asNav.setup(),r&&i.vars.touch&&v.touch(),(!h||h&&i.vars.smoothHeight)&&t(window).bind("resize orientationchange focus",v.resize),i.find("img").attr("draggable","false"),setTimeout(function(){i.vars.start(i)},200)},asNav:{setup:function(){i.asNav=!0,i.animatingTo=Math.floor(i.currentSlide/i.move),i.currentItem=i.currentSlide,i.slides.removeClass(o+"active-slide").eq(i.currentItem).addClass(o+"active-slide"),s?(e._slider=i,i.slides.each(function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",function(t){t.preventDefault(),t.currentTarget._gesture&&t.currentTarget._gesture.addPointer(t.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var n=t(this),a=n.index();t(i.vars.asNavFor).data("flexslider").animating||n.hasClass("active")||(i.direction=i.currentItem<a?"next":"prev",i.flexAnimate(a,i.vars.pauseOnAction,!1,!0,!0))})})):i.slides.on(l,function(e){e.preventDefault();var n=t(this),a=n.index(),s=n.offset().left-t(i).scrollLeft();0>=s&&n.hasClass(o+"active-slide")?i.flexAnimate(i.getTarget("prev"),!0):t(i.vars.asNavFor).data("flexslider").animating||n.hasClass(o+"active-slide")||(i.direction=i.currentItem<a?"next":"prev",i.flexAnimate(a,i.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){i.manualControls?v.controlNav.setupManual():v.controlNav.setupPaging()},setupPaging:function(){var e,n,a="thumbnails"===i.vars.controlNav?"control-thumbs":"control-paging",s=1;if(i.controlNavScaffold=t('<ol class="'+o+"control-nav "+o+a+'"></ol>'),i.pagingCount>1)for(var r=0;r<i.pagingCount;r++){if(n=i.slides.eq(r),e="thumbnails"===i.vars.controlNav?'<img src="'+n.attr("data-thumb")+'"/>':"<a>"+s+"</a>","thumbnails"===i.vars.controlNav&&!0===i.vars.thumbCaptions){var u=n.attr("data-thumbcaption");""!=u&&void 0!=u&&(e+='<span class="'+o+'caption">'+u+"</span>")}i.controlNavScaffold.append("<li>"+e+"</li>"),s++}i.controlsContainer?t(i.controlsContainer).append(i.controlNavScaffold):i.append(i.controlNavScaffold),v.controlNav.set(),v.controlNav.active(),i.controlNavScaffold.delegate("a, img",l,function(e){if(e.preventDefault(),""===c||c===e.type){var n=t(this),a=i.controlNav.index(n);n.hasClass(o+"active")||(i.direction=a>i.currentSlide?"next":"prev",i.flexAnimate(a,i.vars.pauseOnAction))}""===c&&(c=e.type),v.setToClearWatchedEvent()})},setupManual:function(){i.controlNav=i.manualControls,v.controlNav.active(),i.controlNav.bind(l,function(e){if(e.preventDefault(),""===c||c===e.type){var n=t(this),a=i.controlNav.index(n);n.hasClass(o+"active")||(a>i.currentSlide?i.direction="next":i.direction="prev",i.flexAnimate(a,i.vars.pauseOnAction))}""===c&&(c=e.type),v.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===i.vars.controlNav?"img":"a";i.controlNav=t("."+o+"control-nav li "+e,i.controlsContainer?i.controlsContainer:i)},active:function(){i.controlNav.removeClass(o+"active").eq(i.animatingTo).addClass(o+"active")},update:function(e,n){i.pagingCount>1&&"add"===e?i.controlNavScaffold.append(t("<li><a>"+i.count+"</a></li>")):1===i.pagingCount?i.controlNavScaffold.find("li").remove():i.controlNav.eq(n).closest("li").remove(),v.controlNav.set(),i.pagingCount>1&&i.pagingCount!==i.controlNav.length?i.update(n,e):v.controlNav.active()}},directionNav:{setup:function(){var e=t('<ul class="'+o+'direction-nav"><li><a class="'+o+'prev" href="#">'+i.vars.prevText+'</a></li><li><a class="'+o+'next" href="#">'+i.vars.nextText+"</a></li></ul>");i.controlsContainer?(t(i.controlsContainer).append(e),i.directionNav=t("."+o+"direction-nav li a",i.controlsContainer)):(i.append(e),i.directionNav=t("."+o+"direction-nav li a",i)),v.directionNav.update(),i.directionNav.bind(l,function(e){e.preventDefault();var n;(""===c||c===e.type)&&(n=t(this).hasClass(o+"next")?i.getTarget("next"):i.getTarget("prev"),i.flexAnimate(n,i.vars.pauseOnAction)),""===c&&(c=e.type),v.setToClearWatchedEvent()})},update:function(){var t=o+"disabled";1===i.pagingCount?i.directionNav.addClass(t).attr("tabindex","-1"):i.vars.animationLoop?i.directionNav.removeClass(t).removeAttr("tabindex"):0===i.animatingTo?i.directionNav.removeClass(t).filter("."+o+"prev").addClass(t).attr("tabindex","-1"):i.animatingTo===i.last?i.directionNav.removeClass(t).filter("."+o+"next").addClass(t).attr("tabindex","-1"):i.directionNav.removeClass(t).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=t('<div class="'+o+'pauseplay"><a></a></div>');i.controlsContainer?(i.controlsContainer.append(e),i.pausePlay=t("."+o+"pauseplay a",i.controlsContainer)):(i.append(e),i.pausePlay=t("."+o+"pauseplay a",i)),v.pausePlay.update(i.vars.slideshow?o+"pause":o+"play"),i.pausePlay.bind(l,function(e){e.preventDefault(),(""===c||c===e.type)&&(t(this).hasClass(o+"pause")?(i.manualPause=!0,i.manualPlay=!1,i.pause()):(i.manualPause=!1,i.manualPlay=!0,i.play())),""===c&&(c=e.type),v.setToClearWatchedEvent()})},update:function(t){"play"===t?i.pausePlay.removeClass(o+"pause").addClass(o+"play").html(i.vars.playText):i.pausePlay.removeClass(o+"play").addClass(o+"pause").html(i.vars.pauseText)}},touch:function(){function t(t){i.animating?t.preventDefault():(window.navigator.msPointerEnabled||1===t.touches.length)&&(i.pause(),m=u?i.h:i.w,y=Number(new Date),w=t.touches[0].pageX,x=t.touches[0].pageY,v=p&&d&&i.animatingTo===i.last?0:p&&d?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:p&&i.currentSlide===i.last?i.limit:p?(i.itemW+i.vars.itemMargin)*i.move*i.currentSlide:d?(i.last-i.currentSlide+i.cloneOffset)*m:(i.currentSlide+i.cloneOffset)*m,c=u?x:w,f=u?w:x,e.addEventListener("touchmove",n,!1),e.addEventListener("touchend",a,!1))}function n(t){w=t.touches[0].pageX,x=t.touches[0].pageY,g=u?c-x:c-w,b=u?Math.abs(g)<Math.abs(w-f):Math.abs(g)<Math.abs(x-f);var e=500;(!b||Number(new Date)-y>e)&&(t.preventDefault(),!h&&i.transitions&&(i.vars.animationLoop||(g/=0===i.currentSlide&&0>g||i.currentSlide===i.last&&g>0?Math.abs(g)/m+2:1),i.setProps(v+g,"setTouch")))}function a(t){if(e.removeEventListener("touchmove",n,!1),i.animatingTo===i.currentSlide&&!b&&null!==g){var o=d?-g:g,s=o>0?i.getTarget("next"):i.getTarget("prev");i.canAdvance(s)&&(Number(new Date)-y<550&&Math.abs(o)>50||Math.abs(o)>m/2)?i.flexAnimate(s,i.vars.pauseOnAction):h||i.flexAnimate(i.currentSlide,i.vars.pauseOnAction,!0)}e.removeEventListener("touchend",a,!1),c=null,f=null,g=null,v=null}function o(t){t.stopPropagation(),i.animating?t.preventDefault():(i.pause(),e._gesture.addPointer(t.pointerId),S=0,m=u?i.h:i.w,y=Number(new Date),v=p&&d&&i.animatingTo===i.last?0:p&&d?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:p&&i.currentSlide===i.last?i.limit:p?(i.itemW+i.vars.itemMargin)*i.move*i.currentSlide:d?(i.last-i.currentSlide+i.cloneOffset)*m:(i.currentSlide+i.cloneOffset)*m)}function r(t){t.stopPropagation();var n=t.target._slider;if(n){var i=-t.translationX,a=-t.translationY;return S+=u?a:i,g=S,b=u?Math.abs(S)<Math.abs(-i):Math.abs(S)<Math.abs(-a),t.detail===t.MSGESTURE_FLAG_INERTIA?void setImmediate(function(){e._gesture.stop()}):void((!b||Number(new Date)-y>500)&&(t.preventDefault(),!h&&n.transitions&&(n.vars.animationLoop||(g=S/(0===n.currentSlide&&0>S||n.currentSlide===n.last&&S>0?Math.abs(S)/m+2:1)),n.setProps(v+g,"setTouch"))))}}function l(t){t.stopPropagation();var e=t.target._slider;if(e){if(e.animatingTo===e.currentSlide&&!b&&null!==g){var n=d?-g:g,i=n>0?e.getTarget("next"):e.getTarget("prev");e.canAdvance(i)&&(Number(new Date)-y<550&&Math.abs(n)>50||Math.abs(n)>m/2)?e.flexAnimate(i,e.vars.pauseOnAction):h||e.flexAnimate(e.currentSlide,e.vars.pauseOnAction,!0)}c=null,f=null,g=null,v=null,S=0}}var c,f,v,m,g,y,b=!1,w=0,x=0,S=0;s?(e.style.msTouchAction="none",e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",o,!1),e._slider=i,e.addEventListener("MSGestureChange",r,!1),e.addEventListener("MSGestureEnd",l,!1)):e.addEventListener("touchstart",t,!1)},resize:function(){!i.animating&&i.is(":visible")&&(p||i.doMath(),h?v.smoothHeight():p?(i.slides.width(i.computedW),i.update(i.pagingCount),i.setProps()):u?(i.viewport.height(i.h),i.setProps(i.h,"setTotal")):(i.vars.smoothHeight&&v.smoothHeight(),i.newSlides.width(i.computedW),i.setProps(i.computedW,"setTotal")))},smoothHeight:function(t){if(!u||h){var e=h?i:i.viewport;t?e.animate({height:i.slides.eq(i.animatingTo).height()},t):e.height(i.slides.eq(i.animatingTo).height())}},sync:function(e){var n=t(i.vars.sync).data("flexslider"),a=i.animatingTo;switch(e){case"animate":n.flexAnimate(a,i.vars.pauseOnAction,!1,!0);break;case"play":n.playing||n.asNav||n.play();break;case"pause":n.pause()}},uniqueID:function(e){return e.find("[id]").each(function(){var e=t(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;e<t.length;e++)t[e]+"Hidden"in document&&(v.pauseInvisible.visProp=t[e]+"Hidden");if(v.pauseInvisible.visProp){var n=v.pauseInvisible.visProp.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(n,function(){v.pauseInvisible.isHidden()?i.startTimeout?clearTimeout(i.startTimeout):i.pause():i.started?i.play():i.vars.initDelay>0?setTimeout(i.play,i.vars.initDelay):i.play()})}},isHidden:function(){return document[v.pauseInvisible.visProp]||!1}},setToClearWatchedEvent:function(){clearTimeout(a),a=setTimeout(function(){c=""},3e3)}},i.flexAnimate=function(e,n,a,s,l){if(i.vars.animationLoop||e===i.currentSlide||(i.direction=e>i.currentSlide?"next":"prev"),f&&1===i.pagingCount&&(i.direction=i.currentItem<e?"next":"prev"),!i.animating&&(i.canAdvance(e,l)||a)&&i.is(":visible")){if(f&&s){var c=t(i.vars.asNavFor).data("flexslider");if(i.atEnd=0===e||e===i.count-1,c.flexAnimate(e,!0,!1,!0,l),i.direction=i.currentItem<e?"next":"prev",c.direction=i.direction,Math.ceil((e+1)/i.visible)-1===i.currentSlide||0===e)return i.currentItem=e,i.slides.removeClass(o+"active-slide").eq(e).addClass(o+"active-slide"),!1;i.currentItem=e,i.slides.removeClass(o+"active-slide").eq(e).addClass(o+"active-slide"),e=Math.floor(e/i.visible)}if(i.animating=!0,i.animatingTo=e,n&&i.pause(),i.vars.before(i),i.syncExists&&!l&&v.sync("animate"),i.vars.controlNav&&v.controlNav.active(),p||i.slides.removeClass(o+"active-slide").eq(e).addClass(o+"active-slide"),i.atEnd=0===e||e===i.last,i.vars.directionNav&&v.directionNav.update(),e===i.last&&(i.vars.end(i),i.vars.animationLoop||i.pause()),h)r?(i.slides.eq(i.currentSlide).css({opacity:0,zIndex:1}),i.slides.eq(e).css({opacity:1,zIndex:2}),i.wrapup(b)):(i.slides.eq(i.currentSlide).css({zIndex:1}).animate({opacity:0},i.vars.animationSpeed,i.vars.easing),i.slides.eq(e).css({zIndex:2}).animate({opacity:1},i.vars.animationSpeed,i.vars.easing,i.wrapup));else{var m,g,y,b=u?i.slides.filter(":first").height():i.computedW;p?(m=i.vars.itemMargin,y=(i.itemW+m)*i.move*i.animatingTo,g=y>i.limit&&1!==i.visible?i.limit:y):g=0===i.currentSlide&&e===i.count-1&&i.vars.animationLoop&&"next"!==i.direction?d?(i.count+i.cloneOffset)*b:0:i.currentSlide===i.last&&0===e&&i.vars.animationLoop&&"prev"!==i.direction?d?0:(i.count+1)*b:d?(i.count-1-e+i.cloneOffset)*b:(e+i.cloneOffset)*b,i.setProps(g,"",i.vars.animationSpeed),i.transitions?(i.vars.animationLoop&&i.atEnd||(i.animating=!1,i.currentSlide=i.animatingTo),i.container.unbind("webkitTransitionEnd transitionend"),i.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(i.ensureAnimationEnd),i.wrapup(b)}),clearTimeout(i.ensureAnimationEnd),i.ensureAnimationEnd=setTimeout(function(){i.wrapup(b)},i.vars.animationSpeed+100)):i.container.animate(i.args,i.vars.animationSpeed,i.vars.easing,function(){i.wrapup(b)})}i.vars.smoothHeight&&v.smoothHeight(i.vars.animationSpeed)}},i.wrapup=function(t){h||p||(0===i.currentSlide&&i.animatingTo===i.last&&i.vars.animationLoop?i.setProps(t,"jumpEnd"):i.currentSlide===i.last&&0===i.animatingTo&&i.vars.animationLoop&&i.setProps(t,"jumpStart")),i.animating=!1,i.currentSlide=i.animatingTo,i.vars.after(i)},i.animateSlides=function(){!i.animating&&m&&i.flexAnimate(i.getTarget("next"))},i.pause=function(){clearInterval(i.animatedSlides),i.animatedSlides=null,i.playing=!1,i.vars.pausePlay&&v.pausePlay.update("play"),i.syncExists&&v.sync("pause")},i.play=function(){i.playing&&clearInterval(i.animatedSlides),i.animatedSlides=i.animatedSlides||setInterval(i.animateSlides,i.vars.slideshowSpeed),i.started=i.playing=!0,i.vars.pausePlay&&v.pausePlay.update("pause"),i.syncExists&&v.sync("play")},i.stop=function(){i.pause(),i.stopped=!0},i.canAdvance=function(t,e){var n=f?i.pagingCount-1:i.last;return e?!0:f&&i.currentItem===i.count-1&&0===t&&"prev"===i.direction?!0:f&&0===i.currentItem&&t===i.pagingCount-1&&"next"!==i.direction?!1:t!==i.currentSlide||f?i.vars.animationLoop?!0:i.atEnd&&0===i.currentSlide&&t===n&&"next"!==i.direction?!1:i.atEnd&&i.currentSlide===n&&0===t&&"next"===i.direction?!1:!0:!1},i.getTarget=function(t){return i.direction=t,"next"===t?i.currentSlide===i.last?0:i.currentSlide+1:0===i.currentSlide?i.last:i.currentSlide-1},i.setProps=function(t,e,n){var a=function(){var n=t?t:(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo,a=function(){if(p)return"setTouch"===e?t:d&&i.animatingTo===i.last?0:d?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:i.animatingTo===i.last?i.limit:n;switch(e){case"setTotal":return d?(i.count-1-i.currentSlide+i.cloneOffset)*t:(i.currentSlide+i.cloneOffset)*t;case"setTouch":return d?t:t;case"jumpEnd":return d?t:i.count*t;case"jumpStart":return d?i.count*t:t;default:return t}}();return-1*a+"px"}();i.transitions&&(a=u?"translate3d(0,"+a+",0)":"translate3d("+a+",0,0)",n=void 0!==n?n/1e3+"s":"0s",i.container.css("-"+i.pfx+"-transition-duration",n),i.container.css("transition-duration",n)),i.args[i.prop]=a,(i.transitions||void 0===n)&&i.container.css(i.args),i.container.css("transform",a)},i.setup=function(e){if(h)i.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===e&&(r?i.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+i.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(i.currentSlide).css({opacity:1,zIndex:2}):i.slides.css({opacity:0,display:"block",zIndex:1}).eq(i.currentSlide).css({zIndex:2}).animate({opacity:1},i.vars.animationSpeed,i.vars.easing)),i.vars.smoothHeight&&v.smoothHeight();else{var n,a;"init"===e&&(i.viewport=t('<div class="'+o+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(i).append(i.container),i.cloneCount=0,i.cloneOffset=0,d&&(a=t.makeArray(i.slides).reverse(),i.slides=t(a),i.container.empty().append(i.slides))),i.vars.animationLoop&&!p&&(i.cloneCount=2,i.cloneOffset=1,"init"!==e&&i.container.find(".clone").remove(),v.uniqueID(i.slides.first().clone().addClass("clone").attr("aria-hidden","true")).appendTo(i.container),v.uniqueID(i.slides.last().clone().addClass("clone").attr("aria-hidden","true")).prependTo(i.container)),i.newSlides=t(i.vars.selector,i),n=d?i.count-1-i.currentSlide+i.cloneOffset:i.currentSlide+i.cloneOffset,u&&!p?(i.container.height(200*(i.count+i.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){i.newSlides.css({display:"block"}),i.doMath(),i.viewport.height(i.h),i.setProps(n*i.h,"init")},"init"===e?100:0)):(i.container.width(200*(i.count+i.cloneCount)+"%"),i.setProps(n*i.computedW,"init"),setTimeout(function(){i.doMath(),i.newSlides.css({width:i.computedW,"float":"left",display:"block"}),i.vars.smoothHeight&&v.smoothHeight()},"init"===e?100:0))}p||i.slides.removeClass(o+"active-slide").eq(i.currentSlide).addClass(o+"active-slide"),i.vars.init(i)},i.doMath=function(){var t=i.slides.first(),e=i.vars.itemMargin,n=i.vars.minItems,a=i.vars.maxItems;i.w=void 0===i.viewport?i.width():i.viewport.width(),i.h=t.height(),i.boxPadding=t.outerWidth()-t.width(),p?(i.itemT=i.vars.itemWidth+e,i.minW=n?n*i.itemT:i.w,i.maxW=a?a*i.itemT-e:i.w,i.itemW=i.minW>i.w?(i.w-e*(n-1))/n:i.maxW<i.w?(i.w-e*(a-1))/a:i.vars.itemWidth>i.w?i.w:i.vars.itemWidth,i.visible=Math.floor(i.w/i.itemW),i.move=i.vars.move>0&&i.vars.move<i.visible?i.vars.move:i.visible,i.pagingCount=Math.ceil((i.count-i.visible)/i.move+1),i.last=i.pagingCount-1,i.limit=1===i.pagingCount?0:i.vars.itemWidth>i.w?i.itemW*(i.count-1)+e*(i.count-1):(i.itemW+e)*i.count-i.w-e):(i.itemW=i.w,i.pagingCount=i.count,i.last=i.count-1),i.computedW=i.itemW-i.boxPadding},i.update=function(t,e){i.doMath(),p||(t<i.currentSlide?i.currentSlide+=1:t<=i.currentSlide&&0!==t&&(i.currentSlide-=1),i.animatingTo=i.currentSlide),i.vars.controlNav&&!i.manualControls&&("add"===e&&!p||i.pagingCount>i.controlNav.length?v.controlNav.update("add"):("remove"===e&&!p||i.pagingCount<i.controlNav.length)&&(p&&i.currentSlide>i.last&&(i.currentSlide-=1,i.animatingTo-=1),v.controlNav.update("remove",i.last))),i.vars.directionNav&&v.directionNav.update()},i.addSlide=function(e,n){var a=t(e);i.count+=1,i.last=i.count-1,u&&d?void 0!==n?i.slides.eq(i.count-n).after(a):i.container.prepend(a):void 0!==n?i.slides.eq(n).before(a):i.container.append(a),i.update(n,"add"),i.slides=t(i.vars.selector+":not(.clone)",i),i.setup(),i.vars.added(i)},i.removeSlide=function(e){var n=isNaN(e)?i.slides.index(t(e)):e;i.count-=1,i.last=i.count-1,isNaN(e)?t(e,i.slides).remove():u&&d?i.slides.eq(i.last).remove():i.slides.eq(e).remove(),i.doMath(),i.update(n,"remove"),i.slides=t(i.vars.selector+":not(.clone)",i),i.setup(),i.vars.removed(i)},v.init()},t(window).blur(function(t){focused=!1}).focus(function(t){focused=!0}),t.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(){},init:function(){}},t.fn.flexslider=function(e){if(void 0===e&&(e={}),"object"==typeof e)return this.each(function(){var n=t(this),i=e.selector?e.selector:".slides > li",a=n.find(i);1===a.length&&e.allowOneSlide===!0||0===a.length?(a.fadeIn(400),e.start&&e.start(n)):void 0===n.data("flexslider")&&new t.flexslider(this,e)});var n=t(this).data("flexslider");switch(e){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:"number"==typeof e&&n.flexAnimate(e,!0)}}}(jQuery),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},e=[].slice;!function(t,e){return"function"==typeof define&&define.amd?define("waypoints",["jquery"],function(n){return e(n,t)}):e(t.jQuery,t)}(this,function(n,i){var a,o,s,r,l,c,u,d,p,h,f,v,m,g,y,b;return a=n(i),d=t.call(i,"ontouchstart")>=0,r={horizontal:{},vertical:{}},l=1,u={},c="waypoints-context-id",f="resize.waypoints",v="scroll.waypoints",m=1,g="waypoints-waypoint-ids",y="waypoint",b="waypoints",o=function(){function t(t){var e=this;this.$element=t,this.element=t[0],this.didResize=!1,this.didScroll=!1,this.id="context"+l++,this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()},this.waypoints={horizontal:{},vertical:{}},this.element[c]=this.id,u[this.id]=this,t.bind(v,function(){var t;return e.didScroll||d?void 0:(e.didScroll=!0,t=function(){return e.doScroll(),e.didScroll=!1},i.setTimeout(t,n[b].settings.scrollThrottle))}),t.bind(f,function(){var t;return e.didResize?void 0:(e.didResize=!0,t=function(){return n[b]("refresh"),e.didResize=!1},i.setTimeout(t,n[b].settings.resizeThrottle))})}return t.prototype.doScroll=function(){var t,e=this;return t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!d||t.vertical.oldScroll&&t.vertical.newScroll||n[b]("refresh"),n.each(t,function(t,i){var a,o,s;return s=[],o=i.newScroll>i.oldScroll,a=o?i.forward:i.backward,n.each(e.waypoints[t],function(t,e){var n,a;return i.oldScroll<(n=e.offset)&&n<=i.newScroll?s.push(e):i.newScroll<(a=e.offset)&&a<=i.oldScroll?s.push(e):void 0}),s.sort(function(t,e){return t.offset-e.offset}),o||s.reverse(),n.each(s,function(t,e){return e.options.continuous||t===s.length-1?e.trigger([a]):void 0})}),this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},t.prototype.refresh=function(){var t,e,i,a=this;return i=n.isWindow(this.element),e=this.$element.offset(),this.doScroll(),t={horizontal:{contextOffset:i?0:e.left,contextScroll:i?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:i?0:e.top,contextScroll:i?0:this.oldScroll.y,contextDimension:i?n[b]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,
-forward:"down",backward:"up",offsetProp:"top"}},n.each(t,function(t,e){return n.each(a.waypoints[t],function(t,i){var a,o,s,r,l;return a=i.options.offset,s=i.offset,o=n.isWindow(i.element)?0:i.$element.offset()[e.offsetProp],n.isFunction(a)?a=a.apply(i.element):"string"==typeof a&&(a=parseFloat(a),i.options.offset.indexOf("%")>-1&&(a=Math.ceil(e.contextDimension*a/100))),i.offset=o-e.contextOffset+e.contextScroll-a,i.options.onlyOnScroll&&null!=s||!i.enabled?void 0:null!==s&&s<(r=e.oldScroll)&&r<=i.offset?i.trigger([e.backward]):null!==s&&s>(l=e.oldScroll)&&l>=i.offset?i.trigger([e.forward]):null===s&&e.oldScroll>=i.offset?i.trigger([e.forward]):void 0})})},t.prototype.checkEmpty=function(){return n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)?(this.$element.unbind([f,v].join(" ")),delete u[this.id]):void 0},t}(),s=function(){function t(t,e,i){var a,o;i=n.extend({},n.fn[y].defaults,i),"bottom-in-view"===i.offset&&(i.offset=function(){var t;return t=n[b]("viewportHeight"),n.isWindow(e.element)||(t=e.$element.height()),t-n(this).outerHeight()}),this.$element=t,this.element=t[0],this.axis=i.horizontal?"horizontal":"vertical",this.callback=i.handler,this.context=e,this.enabled=i.enabled,this.id="waypoints"+m++,this.offset=null,this.options=i,e.waypoints[this.axis][this.id]=this,r[this.axis][this.id]=this,a=null!=(o=this.element[g])?o:[],a.push(this.id),this.element[g]=a}return t.prototype.trigger=function(t){return this.enabled?(null!=this.callback&&this.callback.apply(this.element,t),this.options.triggerOnce?this.destroy():void 0):void 0},t.prototype.disable=function(){return this.enabled=!1},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},t.prototype.destroy=function(){return delete r[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},t.getWaypointsByElement=function(t){var e,i;return(i=t[g])?(e=n.extend({},r.horizontal,r.vertical),n.map(i,function(t){return e[t]})):[]},t}(),h={init:function(t,e){var i;return null==e&&(e={}),null==(i=e.handler)&&(e.handler=t),this.each(function(){var t,i,a,r;return t=n(this),a=null!=(r=e.context)?r:n.fn[y].defaults.context,n.isWindow(a)||(a=t.closest(a)),a=n(a),i=u[a[0][c]],i||(i=new o(a)),new s(t,i,e)}),n[b]("refresh"),this},disable:function(){return h._invoke.call(this,"disable")},enable:function(){return h._invoke.call(this,"enable")},destroy:function(){return h._invoke.call(this,"destroy")},prev:function(t,e){return h._traverse.call(this,t,e,function(t,e,n){return e>0?t.push(n[e-1]):void 0})},next:function(t,e){return h._traverse.call(this,t,e,function(t,e,n){return e<n.length-1?t.push(n[e+1]):void 0})},_traverse:function(t,e,a){var o,s;return null==t&&(t="vertical"),null==e&&(e=i),s=p.aggregate(e),o=[],this.each(function(){var e;return e=n.inArray(this,s[t]),a(o,e,s[t])}),this.pushStack(o)},_invoke:function(t){return this.each(function(){var e;return e=s.getWaypointsByElement(this),n.each(e,function(e,n){return n[t](),!0})}),this}},n.fn[y]=function(){var t,i;return i=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],h[i]?h[i].apply(this,t):n.isFunction(i)?h.init.apply(this,arguments):n.isPlainObject(i)?h.init.apply(this,[null,i]):i?n.error("The "+i+" method does not exist in jQuery Waypoints."):n.error("jQuery Waypoints needs a callback function or handler option.")},n.fn[y].defaults={context:i,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1},p={refresh:function(){return n.each(u,function(t,e){return e.refresh()})},viewportHeight:function(){var t;return null!=(t=i.innerHeight)?t:a.height()},aggregate:function(t){var e,i,a;return e=r,t&&(e=null!=(a=u[n(t)[0][c]])?a.waypoints:void 0),e?(i={horizontal:[],vertical:[]},n.each(i,function(t,a){return n.each(e[t],function(t,e){return a.push(e)}),a.sort(function(t,e){return t.offset-e.offset}),i[t]=n.map(a,function(t){return t.element}),i[t]=n.unique(i[t])}),i):[]},above:function(t){return null==t&&(t=i),p._filter(t,"vertical",function(t,e){return e.offset<=t.oldScroll.y})},below:function(t){return null==t&&(t=i),p._filter(t,"vertical",function(t,e){return e.offset>t.oldScroll.y})},left:function(t){return null==t&&(t=i),p._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){return null==t&&(t=i),p._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return p._invoke("enable")},disable:function(){return p._invoke("disable")},destroy:function(){return p._invoke("destroy")},extendFn:function(t,e){return h[t]=e},_invoke:function(t){var e;return e=n.extend({},r.vertical,r.horizontal),n.each(e,function(e,n){return n[t](),!0})},_filter:function(t,e,i){var a,o;return(a=u[n(t)[0][c]])?(o=[],n.each(a.waypoints[e],function(t,e){return i(a,e)?o.push(e):void 0}),o.sort(function(t,e){return t.offset-e.offset}),n.map(o,function(t){return t.element})):[]}},n[b]=function(){var t,n;return n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],p[n]?p[n].apply(null,t):p.aggregate.call(null,n)},n[b].settings={resizeThrottle:100,scrollThrottle:30},a.load(function(){return n[b]("refresh")})})}.call(this),function(t){var e=function(t){return t.split("").reverse().join("")},n={numberStep:function(e,n){var i=Math.floor(e),a=t(n.elem);a.text(i)}},i=function(t){var e=t.elem;if(e.nodeType&&e.parentNode){var i=e._animateNumberSetter;i||(i=n.numberStep),i(t.now,t)}};t.Tween&&t.Tween.propHooks?t.Tween.propHooks.number={set:i}:t.fx.step.number=i;var a=function(t,e){for(var n,i,a,o=t.split("").reverse(),s=[],r=0,l=Math.ceil(t.length/e);l>r;r++){for(n="",a=0;e>a&&(i=r*e+a,i!==t.length);a++)n+=o[i];s.push(n)}return s},o=function(t){var n=t.length-1,i=e(t[n]);return t[n]=e(parseInt(i,10).toString()),t};t.animateNumber={numberStepFactories:{append:function(e){return function(n,i){var a=Math.floor(n),o=t(i.elem);o.prop("number",n).text(a+e)}},separator:function(n,i){return n=n||" ",i=i||3,function(s,r){var l=Math.floor(s),c=l.toString(),u=t(r.elem);if(c.length>i){var d=a(c,i);c=o(d).join(n),c=e(c)}u.prop("number",s).text(c)}}}},t.fn.animateNumber=function(){for(var e=arguments[0],i=t.extend({},n,e),a=t(this),o=[i],s=1,r=arguments.length;r>s;s++)o.push(arguments[s]);if(e.numberStep){var l=this.each(function(){this._animateNumberSetter=e.numberStep}),c=i.complete;i.complete=function(){l.each(function(){delete this._animateNumberSetter}),c&&c.apply(this,arguments)}}return a.animate.apply(a,o)}}(jQuery),!function(t){"use strict";var e=function(e,n){this.el=t(e),this.options=t.extend({},t.fn.typed.defaults,n),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=this.isInput?!1:this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()};e.prototype={constructor:e,init:function(){var t=this;t.timeout=setTimeout(function(){for(var e=0;e<t.strings.length;++e)t.sequence[e]=e;t.shuffle&&(t.sequence=t.shuffleArray(t.sequence)),t.typewrite(t.strings[t.sequence[t.arrayPos]],t.strPos)},t.startDelay)},build:function(){var e=this;if(this.showCursor===!0&&(this.cursor=t('<span class="typed-cursor">'+this.cursorChar+"</span>"),this.el.after(this.cursor)),this.stringsElement){e.strings=[],this.stringsElement.hide();var n=this.stringsElement.find("p");t.each(n,function(n,i){e.strings.push(t(i).html())})}this.init()},typewrite:function(t,e){if(this.stop!==!0){var n=Math.round(70*Math.random())+this.typeSpeed,i=this;i.timeout=setTimeout(function(){var n=0,a=t.substr(e);if("^"===a.charAt(0)){var o=1;/^\^\d+/.test(a)&&(a=/\d+/.exec(a)[0],o+=a.length,n=parseInt(a)),t=t.substring(0,e)+t.substring(e+o)}if("html"===i.contentType){var s=t.substr(e).charAt(0);if("<"===s||"&"===s){var r="",l="";for(l="<"===s?">":";";t.substr(e).charAt(0)!==l;)r+=t.substr(e).charAt(0),e++;e++,r+=l}}i.timeout=setTimeout(function(){if(e===t.length){if(i.options.onStringTyped(i.arrayPos),i.arrayPos===i.strings.length-1&&(i.options.callback(),i.curLoop++,i.loop===!1||i.curLoop===i.loopCount))return;i.timeout=setTimeout(function(){i.backspace(t,e)},i.backDelay)}else{0===e&&i.options.preStringTyped(i.arrayPos);var n=t.substr(0,e+1);i.attr?i.el.attr(i.attr,n):i.isInput?i.el.val(n):"html"===i.contentType?i.el.html(n):i.el.text(n),e++,i.typewrite(t,e)}},n)},n)}},backspace:function(t,e){if(this.stop!==!0){var n=Math.round(70*Math.random())+this.backSpeed,i=this;i.timeout=setTimeout(function(){if("html"===i.contentType&&">"===t.substr(e).charAt(0)){for(var n="";"<"!==t.substr(e).charAt(0);)n-=t.substr(e).charAt(0),e--;e--,n+="<"}var a=t.substr(0,e);i.attr?i.el.attr(i.attr,a):i.isInput?i.el.val(a):"html"===i.contentType?i.el.html(a):i.el.text(a),e>i.stopNum?(e--,i.backspace(t,e)):e<=i.stopNum&&(i.arrayPos++,i.arrayPos===i.strings.length?(i.arrayPos=0,i.shuffle&&(i.sequence=i.shuffleArray(i.sequence)),i.init()):i.typewrite(i.strings[i.sequence[i.arrayPos]],e))},n)}},shuffleArray:function(t){var e,n,i=t.length;if(i)for(;--i;)n=Math.floor(Math.random()*(i+1)),e=t[n],t[n]=t[i],t[i]=e;return t},reset:function(){var t=this;clearInterval(t.timeout);var e=this.el.attr("id");this.el.after('<span id="'+e+'"/>'),this.el.remove(),"undefined"!=typeof this.cursor&&this.cursor.remove(),t.options.resetCallback()}},t.fn.typed=function(n){return this.each(function(){var i=t(this),a=i.data("typed"),o="object"==typeof n&&n;a||i.data("typed",a=new e(this,o)),"string"==typeof n&&a[n]()})},t.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),a=n.data("bs.alert");a||n.data("bs.alert",a=new i(this)),"string"==typeof e&&a[e].call(n)})}var n='[data-dismiss="alert"]',i=function(e){t(e).on("click",n,this.close)};i.VERSION="3.2.0",i.prototype.close=function(e){function n(){o.detach().trigger("closed.bs.alert").remove()}var i=t(this),a=i.attr("data-target");a||(a=i.attr("href"),a=a&&a.replace(/.*(?=#[^\s]*$)/,""));var o=t(a);e&&e.preventDefault(),o.length||(o=i.hasClass("alert")?i:i.parent()),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(150):n())};var a=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=a,this},t(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),a=i.data("bs.collapse"),o=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);!a&&o.toggle&&"show"==e&&(e=!e),a||i.data("bs.collapse",a=new n(this,o)),"string"==typeof e&&a[e]()})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};n.VERSION="3.2.0",n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n=t.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var i=this.$parent&&this.$parent.find("> .x-accordion-group > .in");if(i&&i.length){var a=i.data("bs.collapse");if(a&&a.transitioning)return;e.call(i,"hide"),a||i.data("bs.collapse",null)}var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var r=t.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(350)[o](this.$element[0][r])}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(i,this)).emulateTransitionEnd(350):i.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var i=t.fn.collapse;t.fn.collapse=e,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var i,a=t(this),o=a.attr("data-target")||n.preventDefault()||(i=a.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),s=t(o),r=s.data("bs.collapse"),l=r?"toggle":a.data(),c=a.attr("data-parent"),u=c&&t(c);r&&r.transitioning||(u&&u.find('[data-toggle="collapse"][data-parent="'+c+'"]').not(a).addClass("collapsed"),a[s.hasClass("in")?"addClass":"removeClass"]("collapsed")),e.call(s,l)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),a=i.data("bs.tab");a||i.data("bs.tab",a=new n(this)),"string"==typeof e&&a[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.2.0",n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=e.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var a=n.find(".active:last a")[0],o=t.Event("show.bs.tab",{relatedTarget:a});if(e.trigger(o),!o.isDefaultPrevented()){var s=t(i);this.activate(e.closest("li"),n),this.activate(s,s.parent(),function(){e.trigger({type:"shown.bs.tab",relatedTarget:a})})}}},n.prototype.activate=function(e,n,i){function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),i&&i()}var o=n.find("> .active"),s=i&&t.support.transition&&o.hasClass("fade");s?o.one("bsTransitionEnd",a).emulateTransitionEnd(150):a(),o.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(n){n.preventDefault(),e.call(t(this),"show")})}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});var a=function(){n||t(i).trigger(t.support.transition.end)};return setTimeout(a,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),a=i.data("bs.tooltip"),o="object"==typeof e&&e;(a||"destroy"!=e)&&(a||i.data("bs.tooltip",a=new n(this,o)),"string"==typeof e&&a[e]())})}var n=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};n.VERSION="3.2.0",n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(e,n,i){this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var a=this.options.trigger.split(" "),o=a.length;o--;){var s=a[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var r="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show()},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(document.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var i=this,a=this.tip(),o=this.getUID(this.type);this.setContent(),a.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&a.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,r=/\s?auto?\s?/i,l=r.test(s);l&&(s=s.replace(r,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?a.appendTo(this.options.container):a.insertAfter(this.$element);var c=this.getPosition(),u=a[0].offsetWidth,d=a[0].offsetHeight;if(l){var p=s,h=this.$element.parent(),f=this.getPosition(h);s="bottom"==s&&c.top+c.height+d-f.scroll>f.height?"top":"top"==s&&c.top-f.scroll-d<0?"bottom":"right"==s&&c.right+u>f.width?"left":"left"==s&&c.left-u<f.left?"right":s,a.removeClass(p).addClass(s)}var v=this.getCalculatedOffset(s,c,u,d);this.applyPlacement(v,s);var m=function(){i.$element.trigger("shown.bs."+i.type),i.hoverState=null};t.support.transition&&this.$tip.hasClass("fade")?a.one("bsTransitionEnd",m).emulateTransitionEnd(150):m()}},n.prototype.applyPlacement=function(e,n){var i=this.tip(),a=i[0].offsetWidth,o=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),r=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(r)&&(r=0),e.top=e.top+s,e.left=e.left+r,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,c=i[0].offsetHeight;"top"==n&&c!=o&&(e.top=e.top+o-c);var u=this.getViewportAdjustedDelta(n,e,l,c);u.left?e.left+=u.left:e.top+=u.top;var d=u.left?2*u.left-a+l:2*u.top-o+c,p=u.left?"left":"top",h=u.left?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(d,i[0][h],p)},n.prototype.replaceArrow=function(t,e,n){this.arrow().css(n,t?50*(1-t/e)+"%":"")},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},n.prototype.hide=function(){function e(){"in"!=n.hoverState&&i.detach(),n.$element.trigger("hidden.bs."+n.type)}var n=this,i=this.tip(),a=t.Event("hide.bs."+this.type);return this.$element.removeAttr("aria-describedby"),this.$element.trigger(a),a.isDefaultPrevented()?void 0:(i.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",e).emulateTransitionEnd(150):e(),this.hoverState=null,this)},n.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(e){e=e||this.$element;var n=e[0],i="BODY"==n.tagName;return t.extend({},"function"==typeof n.getBoundingClientRect?n.getBoundingClientRect():null,{scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop(),width:i?t(window).width():e.outerWidth(),height:i?t(window).height():e.outerHeight()},i?{top:0,left:0}:e.offset())},n.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},n.prototype.getViewportAdjustedDelta=function(t,e,n,i){var a={top:0,left:0};if(!this.$viewport)return a;var o=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var r=e.top-o-s.scroll,l=e.top+o-s.scroll+i;r<s.top?a.top=s.top-r:l>s.top+s.height&&(a.top=s.top+s.height-l)}else{var c=e.left-o,u=e.left+o+n;c<s.left?a.left=s.left-c:u>s.width&&(a.left=s.left+s.width-u)}return a},n.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},n.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},n.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data("bs."+this.type),n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var i=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),a=i.data("bs.popover"),o="object"==typeof e&&e;(a||"destroy"!=e)&&(a||i.data("bs.popover",a=new n(this,o)),"string"==typeof e&&a[e]())})}var n=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.2.0",n.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").empty()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},n.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var i=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),jQuery(function(t){function e(t,e){function n(t){t.removeClass("collapse").addClass("collapsing").height(0),t.one("csTransitionEnd",function(){t.removeClass("collapsing").addClass("collapse in").height("")}).height(t[0].scrollHeight).csEmulateTransitionEnd(350)}function i(t){t.height(t.height())[0].offsetHeight,t.addClass("collapsing").removeClass("collapse").removeClass("in"),t.height(0).one("csTransitionEnd",function(){t.removeClass("collapsing").addClass("collapse")}).csEmulateTransitionEnd(350)}var a=t.closest("[data-cs-collapse-group]").find("[data-cs-collapse-content]");if(a.length&&!a.hasClass("collapsing")){var o=a.hasClass("collapse in");"undefined"==typeof e&&(e=!o),t.toggleClass("collapsed",!e),e&&!o&&n(a),!e&&o&&i(a)}}t(document).on("click","[data-cs-collapse-toggle]",function(n){var i=t(this);e(i);var a=i.closest("[data-cs-collapse-linked]").find("[data-cs-collapse-toggle]").not(this);if(!a.length){var o=i.data("cs-collapse-parent");o&&(a=i.closest(o).find("[data-cs-collapse-toggle]").not(this))}a.each(function(){e(t(this),!1)})})}),jQuery(document).ready(function(t){var e=t(window),n=e.height();t(this);e.resize(function(){n=e.height()}),t.fn.parallaxContentBand=function(i,a){function o(){var t=e.scrollTop();r.each(function(){var e=r.offset().top,o=r.outerHeight();t>e+o||e>t+n||r.css("background-position",i+" "+Math.floor((s-t)*a)+"px")})}var s,r=t(this);r.each(function(){s=r.offset().top}),e.resize(function(){r.each(function(){s=r.offset().top})}),e.bind("scroll",o).resize(o),o()}}),window.xData=window.xData||{},function(t,e){var n,i;i={map:function(t,e){n.mappedFunctions[t]=e},process:function(){e(n).trigger("ready")}},n={mappedFunctions:[],init:function(){e(this).on("ready",this.processElements)},processElements:function(t,i){var a=i?i:e("body");a.find("[data-x-element]").each(function(t,i){if(!e(i).data("x-initialized")){var a=e(i).data("x-params")||{};callback=n.lookupCallback(e(i).data("x-element")),callback&&callback.call(i,a),e(i).data("x-initialized",!0)}})},lookupCallback:function(t){return this.mappedFunctions[t]||function(){console.log("Cornerstone element not found.")}}},n.init(),e(function(t){i.process()}),t.base=n,t.api=i,t.fn={}}(xData,jQuery),jQuery(window).load(function(){jQuery(".x-flexslider-featured-gallery").flexslider({controlNav:!1,selector:".x-slides > li",prevText:'<i class="x-icon-chevron-left" data-x-icon="&#xf053;"></i>',nextText:'<i class="x-icon-chevron-right" data-x-icon="&#xf054;"></i>',animation:"fade",easing:"easeInOutExpo",smoothHeight:!0,slideshow:!1})}),function(t){function e(){var t=document.createElement("div"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.csEmulateTransitionEnd=function(e){var n=!1,i=this;return t(this).one("csTransitionEnd",function(){n=!0}),setTimeout(function(){n||t(i).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.csTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(t){function e(t,e,n,i){n="undefined"==typeof n?0:n,i="undefined"==typeof i?0:i;var a=n*i,o="webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend";t.delay(a).queue(function(){t.removeClass("animated-hide").addClass(e).one(o,function(){t.removeClass(e)}).dequeue()})}function n(e){var n=t(this),i=function(){n.hasClass("parallax")&&(csModernizr.touchevents?n.css("background-attachment","scroll"):(n.hasClass("bg-image")&&(speed=.1),n.hasClass("bg-pattern")&&(speed=.3),speed&&n.parallaxContentBand("50%",speed)))};"complete"===document.readyState?i():jQuery(window).load(i)}xData.api.map("card",function(e){function n(t){o.toggleClass("flipped")}function i(t){o.addClass("flipped")}function a(t){o.removeClass("flipped")}var o=t(this);csModernizr.preserve3d&&o.addClass("flip-3d"),o.on("click",n),o.on("mouseenter",i),o.on("mouseleave",a),o.on("touchstart",function(t){o.off("touchend",n),o.on("touchend",n)}),o.on("touchmove",function(){o.off("touchend",n)}),o.one("touchstart",function(t){o.off("click",n),o.off("mouseenter",i),o.off("mouseleave",a)}),o.on("click touchend","a",function(t){console.log("click link"),t.stopPropagation()}),o.on("cs:setcardheight",function(){var e=t(this),n=e.find(".x-face-outer.front"),i=n.find(".x-face-content").outerHeight(),a=parseInt(n.css("border-top-width"),10),o=parseInt(n.css("border-bottom-width"),10),s=i+a+o,r=e.find(".x-face-outer.back"),l=r.find(".x-face-content").outerHeight(),c=parseInt(r.css("border-top-width"),10),u=parseInt(r.css("border-bottom-width"),10),d=l+c+u,p=Math.max(s,d);e.find(".x-card-inner").css({height:p})}),o.trigger("cs:setcardheight"),t(window).on("load resize",function(){o.trigger("cs:setcardheight")})}),xData.api.map("column",function(e){if(e.fade){var n=t(this),i=n.parent();i.waypoint(function(){n.css({opacity:"1",transform:"translate(0, 0)"})},{offset:"65%",triggerOnce:!0})}}),xData.api.map("counter",function(e){t(this).waypoint(function(){var n=t(this).find(".number");e.numStart&&e.numStart>0&&n.prop("number",e.numStart),n.animateNumber({number:e.numEnd},e.numSpeed)},{offset:"85%",triggerOnce:!0})}),xData.api.map("creative_cta",function(e){var n=t(this);n.children(".graphic").css("transform","translate(-50%, -50%) scale(0)"),n.on("mouseenter",function(){t(this).css({"background-color":e.bg_color_hover}).children(".graphic").css("transform","translate(-50%, -50%) scale(1)")}),n.on("mouseleave",function(){t(this).css({"background-color":e.bg_color}).children(".graphic").css("transform","translate(-50%, -50%) scale(0)")})}),xData.api.map("extra",function(e){if("tooltip"===e.type){var n={animation:!0,html:!1,placement:e.placement,trigger:e.trigger,delay:{show:0,hide:0}};e.title&&""!==e.title?n.title=e.title:e.content&&""!==e.content&&(n.title=e.content),t(this).tooltip(n)}if("popover"===e.type){var i={animation:!0,html:!1,placement:e.placement,trigger:e.trigger,content:e.content,delay:{show:0,hide:0}};e.title&&""!==e.title&&(i.title=e.title),t(this).popover(i)}}),jQuery(document).ready(function(t){t('[data-toggle="tooltip"]').tooltip({animation:!0,html:!1,delay:{show:0,hide:0}}),t('[data-toggle="popover"]').popover({animation:!0,html:!1,delay:{show:0,hide:0}})}),
-xData.api.map("feature_box",function(n){var i=this;n.child!==!0&&"none"!==n.graphicAnimation&&t(i).waypoint(function(){setTimeout(function(){var a=t(i).find(".x-feature-box-graphic-outer"),o="animated "+n.graphicAnimation;e(a,o)},n.graphicAnimationDelay)},{offset:n.graphicAnimationOffset+"%",triggerOnce:!0})}),xData.api.map("feature_list",function(n){var i=this,a=t(i).children().first().data("x-params"),o=0;("none"!==a.graphicAnimation||"none"!==a.connectorAnimation)&&t(i).waypoint(function(){setTimeout(function(){t(i).children("li").each(function(){var i=t(this);if("none"!==a.graphicAnimation){var s=i.find(".x-feature-box-graphic-outer"),r="animated "+a.graphicAnimation;e(s,r,o++,n.animationDelayBetween)}if("none"!==a.connectorAnimation){var l="animated "+a.connectorAnimation;if("middle"===a.alignV){var c=i.children(".lower"),u=i.next().children(".upper");e(c,l,o,n.animationDelayBetween),e(u,l,o++,n.animationDelayBetween)}else{var d=i.children(".full");e(d,l,o++,n.animationDelayBetween)}}})},n.animationDelayInitial)},{offset:n.animationOffset+"%",triggerOnce:!0})}),xData.fn.setMarkers=function(e){var n=[],i=[];t(this).find(".x-google-map-marker").each(function(a,o){var s=t(o).data("x-params"),r=new google.maps.Marker({map:e,position:new google.maps.LatLng(s.lat,s.lng),infoWindowIndex:a,icon:s.image});if(n[a]=r,""!==s.markerInfo){var l=new google.maps.InfoWindow({content:s.markerInfo,maxWidth:200});i[a]=l,s.startOpen&&l.open(e,r),google.maps.event.addListener(n[a],"click",function(){l.open(e,this)})}})},xData.api.map("google_map",function(e){var n=t(this).find(".x-google-map-inner"),i=e.lat,a=e.lng,o=new google.maps.LatLng(i,a),s=e.drag,r=parseInt(e.zoom),l=e.zoomControl,c=e.hue,u=[{featureType:"all",elementType:"all",stylers:[{hue:c?c:null}]},{featureType:"water",elementType:"all",stylers:[{hue:c?c:null},{saturation:0},{lightness:50}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]}],d={scrollwheel:!1,draggable:s===!0,zoomControl:l===!0,disableDoubleClickZoom:!1,disableDefaultUI:!0,zoom:r,center:o,mapTypeId:google.maps.MapTypeId.ROADMAP},p=new google.maps.StyledMapType(u,{name:"Styled Map"}),h=new google.maps.Map(n[0],d);h.mapTypes.set("map_style",p),h.setMapTypeId("map_style"),xData.fn.setMarkers&&xData.fn.setMarkers.call(this,h)}),xData.api.map("google_map_marker",function(t){}),t(".x-widgetbar").on("shown.bs.collapse",function(){"undefined"!=typeof google&&google.hasOwnProperty("maps")&&google.maps.event.trigger(window,"resize",{})}),xData.api.map("lightbox",function(t){if(!t.disable&&!xData.isPreview){var e={skin:"light",overlay:{opacity:t.opacity,blur:!0},styles:{prevScale:t.prevScale,prevOpacity:t.prevOpacity,nextScale:t.nextScale,nextOpacity:t.nextOpacity},path:t.orientation,controls:{thumbnail:t.thumbnails}};t.deeplink&&(e.linkId="gallery-image"),jQuery(t.selector).iLightBox(e)}}),xData.api.map("x_mejs",function(e){function n(e){e.mediaelementplayer({pluginPath:_wpmejsSettings.pluginPath,startVolume:1,features:a,audioWidth:"100%",audioHeight:"32",audioVolume:"vertical",videoWidth:"100%",videoHeight:"100%",videoVolume:"vertical",pauseOtherPlayers:!1,alwaysShowControls:!0,setDimensions:!1,backgroundPlayer:s,success:function(e,n,i){function a(){var n=t("#"+e.id+"_container"),i=n.outerWidth(),a=n.outerHeight();e.setVideoSize(i,a)}var s=!0,r=!0,l=i.controls.find(".mejs-volume-button");if(e.addEventListener("canplay",function(){e.attributes.hasOwnProperty("autoplay")&&s&&(e.play(),s=!1),e.attributes.hasOwnProperty("muted")&&r&&(e.setMuted(!0),r=!1)}),e.attributes.hasOwnProperty("muted")&&l.hasClass("mejs-mute")&&l.removeClass("mejs-mute").addClass("mejs-unmute"),e.addEventListener("ended",function(){e.attributes.hasOwnProperty("loop")&&e.play()}),e.addEventListener("play",function(){var t;for(t in mejs.players){var e=mejs.players[t];e.id==i.id||e.options.backgroundPlayer||e.media.paused||e.media.ended||e.pause(),e.hasFocus=!1}}),i.isVideo===!0&&!i.options.backgroundPlayer){var c=function(){i.controls.stop().animate({opacity:1},150)},u=function(){i.controls.stop().animate({opacity:0},150)};e.addEventListener("playing",function(){i.container.hover(c,u)}),e.addEventListener("pause",function(){i.container.off("mouseenter mouseleave"),c()})}i.isVideo===!0&&i.options.backgroundPlayer&&e.addEventListener("playing",function(){e.setMuted(!0),t(o).trigger("xmejs:bgvideoready")}),t(i.container).on("exitedfullscreen",function(){t(e).removeAttr("style")}),i.isVideo===!0&&("flash"===e.pluginType||"silverlight"==e.pluginType)&&(a(),t(o).on("xmejs:bgvideosize",a),t(window).on("resize",a))},error:function(){console.warn("MEJS media error.")}})}function i(){var e=t(this),n=mejs.players[e.find(".mejs-container").attr("id")],i=e.hasClass("vimeo")||e.hasClass("youtube"),a=i?".me-plugin":"video",o=n.media.videoWidth,s=n.media.videoHeight,r=i||0===o?1280:o,l=i||0===s?720:s,c=e.outerWidth(),u=e.outerHeight(),d=c/r,p=u/l,h=d>p?d:p,f=Math.ceil(h*r+20),v=Math.ceil(h*l+20),m=Math.ceil((f-c)/2),g=Math.ceil((v-u)/2),y=m+20>c?c-20:m,b=g+20>u?u-20:g;e.find(a).width(f),e.find(a).height(v),e.find(".mejs-mediaelement").scrollLeft(y),e.find(".mejs-mediaelement").scrollTop(b),e.hasClass("transparent")&&n.media.addEventListener("timeupdate",function w(){e.trigger("xmejs:bgvideosize").removeClass("transparent"),n.media.removeEventListener("timeupdate",w)})}var a,o=this,s=t(o).hasClass("bg"),r=t(o).find(".x-mejs").hasClass("advanced-controls");if(t.each(["video/x-ms-wmv","audio/x-ms-wma"],function(e,n){t.inArray(n,mejs.plugins.silverlight[0].types)||mejs.plugins.silverlight[0].types.push(n)}),s){if(a=[],csModernizr.touchevents)t(o).addClass("poster").css({"background-image":"url("+e.poster+")"}),setTimeout(function(){t(o).removeClass("transparent")},500);else{var l=t(o).find('script[type="text/template"]');l.after(l.html()).remove()}t(o).on("xmejs:bgvideoready",i),t(window).on("resize",function(){o&&i.call(o)})}else a=r?["playpause","current","progress","duration","tracks","volume","fullscreen"]:["playpause","progress"];t(o).find(".x-mejs").each(function(e){var i=t(this);setTimeout(function(){n(i)},e)})}),xData.api.map("recent_posts",function(e){var n=this;e.fade&&t(n).waypoint(function(){t(this).find("a").each(function(e,n){t(n).delay(90*e).animate({opacity:"1"},750,"easeOutExpo")}),setTimeout(function(){t(this).addClass("complete")},90*t(this).find("a").length+400)},{offset:"75%",triggerOnce:!0})}),xData.api.map("responsive_text",function(e){var n={};""!==e.minFontSize&&(n.minFontSize=e.minFontSize),""!==e.maxFontSize&&(n.maxFontSize=e.maxFontSize),t(e.selector).csFitText(e.compression,n)}),xData.api.map("section",n),xData.api.map("content_band",n),xData.api.map("skill_bar",function(e){t(this).waypoint(function(){t(this).find(".bar").animate({width:e.percent},750,"easeInOutExpo")},{offset:"95%",triggerOnce:!0})}),xData.api.map("slider",function(t){var e=jQuery(this),n=function(){e.flexslider({selector:".x-slides > li",prevText:'<i class="x-icon-chevron-left" data-x-icon="&#xf053;"></i>',nextText:'<i class="x-icon-chevron-right" data-x-icon="&#xf054;"></i>',animation:t.animation,controlNav:t.controlNav,directionNav:t.prevNextNav,slideshowSpeed:parseInt(t.slideTime),animationSpeed:parseInt(t.slideSpeed),slideshow:t.slideshow,randomize:t.random,touch:t.touch,pauseOnHover:t.pauseOnHover,useCSS:!0,video:!0,smoothHeight:!0,easing:"easeInOutExpo"})};"complete"===document.readyState?n():jQuery(window).load(n)}),xData.api.map("tab_nav",function(e){function n(t,e){i.find("li.x-nav-tabs-item").removeClass("active"),o.removeClass("active"),a.find('.x-tab-pane[data-cs-tab-index="'+t+'"]').addClass("active"),e||(e=i.find('li.x-nav-tabs-item a[data-cs-tab-toggle="'+t+'"]')),e.parent().addClass("active")}var i=t(this),a=i.next(".x-tab-content"),o=a.find(".x-tab-pane"),s=a.find(".x-tab-pane.active").first();s.length||(s=a.find(".x-tab-pane").first()),n(s.data("cs-tab-index")),"vertical"===e.orientation&&a.css({minHeight:i.outerHeight()}),i.on("click","a[data-cs-tab-toggle]",function(e){e.preventDefault();var i=t(this);n(i.data("cs-tab-toggle"),i)})}),xData.api.map("text_type",function(e){t(this).find(".text").typed({strings:e.strings,typeSpeed:e.type_speed,startDelay:e.start_delay,backSpeed:e.back_speed,backDelay:e.back_delay,loop:e.loop,showCursor:e.show_cursor,cursorChar:e.cursor})})}(jQuery); \ No newline at end of file