");return t.inlineElement=s,s}return h.updateStatus("ready"),h._parseMarkup(i,{},t),i}}});var M="ajax",L,j=function(){L&&e(document.body).removeClass(L)},_=function(){j(),h.req&&h.req.abort()};e.magnificPopup.registerModule(M,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'
The content could not be loaded.'},proto:{initAjax:function(){h.types.push(M),L=h.st.ajax.cursor,T(t+"."+M,_),T("BeforeChange."+M,_)},getAjax:function(t){L&&e(document.body).addClass(L),h.updateStatus("loading");var i=e.extend({url:t.src,success:function(i,o,s){var n={data:i,xhr:s};C("ParseAjax",n),h.appendContent(e(n.data),M),t.finished=!0,j(),h._setFocus(),setTimeout(function(){h.wrap.addClass(c)},16),h.updateStatus("ready"),C("AjaxContentAdded")},error:function(){j(),t.finished=t.loadError=!0,h.updateStatus("error",h.st.ajax.tError.replace("%url%",t.src))}},h.st.ajax.settings);return h.req=e.ajax(i),""}}});var W,N=function(t){if(t.data&&void 0!==t.data.title)return t.data.title;var i=h.st.image.titleSrc;if(i){if(e.isFunction(i))return i.call(h,t);if(t.el)return t.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'
The image could not be loaded.'},proto:{initImage:function(){var i=h.st.image,o=".image";h.types.push("image"),T(r+o,function(){"image"===h.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)}),T(t+o,function(){i.cursor&&e(document.body).removeClass(i.cursor),g.off("resize"+d)}),T("Resize"+o,h.resizeImage),h.isLowIE&&T("AfterChange",h.resizeImage)},resizeImage:function(){var e=h.currItem;if(e&&e.img&&h.st.image.verticalFit){var t=0;h.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",h.wH-t)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,W&&clearInterval(W),e.isCheckingImgSize=!1,C("ImageHasSize",e),e.imgHidden&&(h.content&&h.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var t=0,i=e.img[0],o=function(s){W&&clearInterval(W),W=setInterval(function(){if(i.naturalWidth>0)return void h._onImageHasSize(e);t>200&&clearInterval(W),t++,3===t?o(10):40===t?o(50):100===t&&o(500)},s)};o(1)},getImage:function(t,i){var o=0,s=function(){t&&(t.img[0].complete?(t.img.off(".mfploader"),t===h.currItem&&(h._onImageHasSize(t),h.updateStatus("ready")),t.hasSize=!0,t.loaded=!0,C("ImageLoadComplete")):(o++,o<200?setTimeout(s,100):n()))},n=function(){t&&(t.img.off(".mfploader"),t===h.currItem&&(h._onImageHasSize(t),h.updateStatus("error",r.tError.replace("%url%",t.src))),t.hasSize=!0,t.loaded=!0,t.loadError=!0)},r=h.st.image,a=i.find(".mfp-img");if(a.length){var l=document.createElement("img");l.className="mfp-img",t.el&&t.el.find("img").length&&(l.alt=t.el.find("img").attr("alt")),t.img=e(l).on("load.mfploader",s).on("error.mfploader",n),l.src=t.src,a.is("img")&&(t.img=t.img.clone()),l=t.img[0],l.naturalWidth>0?t.hasSize=!0:l.width||(t.hasSize=!1)}return h._parseMarkup(i,{title:N(t),img_replaceWith:t.img},t),h.resizeImage(),t.hasSize?(W&&clearInterval(W),t.loadError?(i.addClass("mfp-loading"),h.updateStatus("error",r.tError.replace("%url%",t.src))):(i.removeClass("mfp-loading"),h.updateStatus("ready")),i):(h.updateStatus("loading"),t.loading=!0,t.hasSize||(t.imgHidden=!0,i.addClass("mfp-loading"),h.findImageSize(t)),i)}}});var F,D=function(){return void 0===F&&(F=void 0!==document.createElement("p").style.MozTransform),F};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e=h.st.zoom,o=".zoom",s;if(e.enabled&&h.supportsTransition){var n=e.duration,r=function(t){var i=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+e.duration/1e3+"s "+e.easing,s={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},n="transition";return s["-webkit-"+n]=s["-moz-"+n]=s["-o-"+n]=s[n]=o,i.css(s),i},a=function(){h.content.css("visibility","visible")},l,d;T("BuildControls"+o,function(){if(h._allowZoom()){if(clearTimeout(l),h.content.css("visibility","hidden"),s=h._getItemToZoom(),!s)return void a();d=r(s),d.css(h._getOffset()),h.wrap.append(d),l=setTimeout(function(){d.css(h._getOffset(!0)),l=setTimeout(function(){a(),setTimeout(function(){d.remove(),s=d=null,C("ZoomAnimationEnded")},16)},n)},16)}}),T(i+o,function(){if(h._allowZoom()){if(clearTimeout(l),h.st.removalDelay=n,!s){if(!(s=h._getItemToZoom()))return;d=r(s)}d.css(h._getOffset(!0)),h.wrap.append(d),h.content.css("visibility","hidden"),setTimeout(function(){d.css(h._getOffset())},16)}}),T(t+o,function(){h._allowZoom()&&(a(),d&&d.remove(),s=null)})}},_allowZoom:function(){return"image"===h.currItem.type},_getItemToZoom:function(){return!!h.currItem.hasSize&&h.currItem.img},_getOffset:function(t){var i;i=t?h.currItem.img:h.st.zoom.opener(h.currItem.el||h.currItem);var o=i.offset(),s=parseInt(i.css("padding-top"),10),n=parseInt(i.css("padding-bottom"),10);o.top-=e(window).scrollTop()-s;var r={width:i.width(),height:(m?i.innerHeight():i[0].offsetHeight)-n-s};return D()?r["-moz-transform"]=r.transform="translate("+o.left+"px,"+o.top+"px)":(r.left=o.left,r.top=o.top),r}}});var B="iframe",q="//about:blank",U=function(e){if(h.currTemplate[B]){var t=h.currTemplate[B].find("iframe");t.length&&(e||(t[0].src="//about:blank"),h.isIE8&&t.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(B,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){h.types.push(B),T("BeforeChange",function(e,t,i){t!==i&&(t===B?U():i===B&&U(!0))}),T(t+"."+B,function(){U()})},getIframe:function(t,i){var o=t.src,s=h.st.iframe;e.each(s.patterns,function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1});var n={};return s.srcAction&&(n[s.srcAction]=o),h._parseMarkup(i,n,t),h.updateStatus("ready"),i}}});var R=function(e){var t=h.items.length;return e>t-1?e-t:e<0?t+e:e},Y=function(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'
',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=h.st.gallery,o=".mfp-gallery";if(h.direction=!0,!i||!i.enabled)return!1;k+=" mfp-gallery",T(r+o,function(){i.navigateByImgClick&&h.wrap.on("click"+o,".mfp-img",function(){if(h.items.length>1)return h.next(),!1}),y.on("keydown"+o,function(e){37===e.keyCode?h.prev():39===e.keyCode&&h.next()})}),T("UpdateStatus"+o,function(e,t){t.text&&(t.text=Y(t.text,h.currItem.index,h.items.length))}),T(n+o,function(e,t,o,s){var n=h.items.length;o.counter=n>1?Y(i.tCounter,s.index,n):""}),T("BuildControls"+o,function(){if(h.items.length>1&&i.arrows&&!h.arrowLeft){var t=i.arrowMarkup,o=h.arrowLeft=e(t.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(u),s=h.arrowRight=e(t.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(u);o.click(function(){h.prev()}),s.click(function(){h.next()}),h.container.append(o.add(s))}}),T(a+o,function(){h._preloadTimeout&&clearTimeout(h._preloadTimeout),h._preloadTimeout=setTimeout(function(){h.preloadNearbyImages(),h._preloadTimeout=null},16)}),T(t+o,function(){y.off(o),h.wrap.off("click"+o),h.arrowRight=h.arrowLeft=null})},next:function(){h.direction=!0,h.index=R(h.index+1),h.updateItemHTML()},prev:function(){h.direction=!1,h.index=R(h.index-1),h.updateItemHTML()},goTo:function(e){h.direction=e>=h.index,h.index=e,h.updateItemHTML()},preloadNearbyImages:function(){var e=h.st.gallery.preload,t=Math.min(e[0],h.items.length),i=Math.min(e[1],h.items.length),o;for(o=1;o<=(h.direction?i:t);o++)h._preloadItem(h.index+o);for(o=1;o<=(h.direction?t:i);o++)h._preloadItem(h.index-o)},_preloadItem:function(t){if(t=R(t),!h.items[t].preloaded){var i=h.items[t];i.parsed||(i=h.parseEl(t)),C("LazyLoad",i),"image"===i.type&&(i.img=e('
').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,C("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var X="retina";e.magnificPopup.registerModule(X,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=h.st.retina,t=e.ratio;(t=isNaN(t)?t():t)>1&&(T("ImageHasSize."+X,function(e,i){i.img.css({"max-width":i.img[0].naturalWidth/t,width:"100%"})}),T("ElementParse."+X,function(i,o){o.src=e.replaceSrc(o,t)}))}}}}),I()}),function($,e){"use strict";var t=function(){var e={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},t=function(){var e=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return e&&$("html").css("cursor","pointer").on("click",$.noop),e}(),i=function(){var e=document.documentElement.style;return"behavior"in e&&"fill"in e&&/iemobile/i.test(navigator.userAgent)}(),o=function(t,i,o){var s=e.menuClass,n;i.cssArrows&&(s+=" "+e.menuArrowClass),n=o?"addClass":"removeClass",t[n](s)},s=function(t,i){return t.find("li."+i.pathClass).slice(0,i.pathLevels).addClass(i.hoverClass+" "+e.bcClass).filter(function(){return $(this).children(i.popUpSelector).hide().show().length}).removeClass(i.pathClass)},n=function(t,i){var o=i?"addClass":"removeClass";t.children("a")[o](e.anchorClass)},r=function(e){var t=e.css("ms-touch-action"),i=e.css("touch-action");i=i||t,i="pan-y"===i?"auto":"pan-y",e.css({"ms-touch-action":i,"touch-action":i})},a=function(t){return t.closest("."+e.menuClass)},l=function(e){return a(e).data("sfOptions")},d=function(){var e=$(this),t=l(e);clearTimeout(t.sfTimer),e.siblings().ktsuperfish("hide").end().ktsuperfish("show")},c=function(e){e.retainPath=$.inArray(this[0],e.$path)>-1,this.ktsuperfish("hide"),this.parents("."+e.hoverClass).length||(e.onIdle.call(a(this)),e.$path.length&&$.proxy(d,e.$path)())},p=function(){var e=$(this),i=l(e);t?$.proxy(c,e,i)():(clearTimeout(i.sfTimer),i.sfTimer=setTimeout($.proxy(c,e,i),i.delay))},u=function(e){var t=$(this),i=l(t),o=t.siblings(e.data.popUpSelector);return i.onHandleTouch.call(o)===!1?this:void(o.length>0&&o.is(":hidden")&&(t.one("click.ktsuperfish",!1),"MSPointerDown"===e.type||"pointerdown"===e.type?t.trigger("focus"):$.proxy(d,t.parent("li"))()))},h=function(e,o){var s="li:has("+o.popUpSelector+")";$.fn.hoverIntent&&!o.disableHI?e.hoverIntent(d,p,s):e.on("mouseenter.ktsuperfish",s,d).on("mouseleave.ktsuperfish",s,p);var n="MSPointerDown.ktsuperfish";t||(n+=" touchend.ktsuperfish"),i&&(n+=" mousedown.ktsuperfish"),e.on("focusin.ktsuperfish","li",d).on("focusout.ktsuperfish","li",p).on(n,"a",o,u)};return{hide:function(e){if(this.length){var t=this,i=l(t);if(!i)return this;var o=i.retainPath===!0?i.$path:"",s=t.find("li."+i.hoverClass).add(this).not(o).removeClass(i.hoverClass).children(i.popUpSelector),n=i.speedOut;if(e&&(s.show(),n=0),i.retainPath=!1,i.onBeforeHide.call(s)===!1)return this
;s.stop(!0,!0).animate(i.animationOut,n,function(){var e=$(this);i.onHide.call(e)})}return this},show:function(){var e=l(this);if(!e)return this;var t=this.addClass(e.hoverClass),i=t.children(e.popUpSelector);return e.onBeforeShow.call(i)===!1?this:(i.stop(!0,!0).animate(e.animation,e.speed,function(){e.onShow.call(i)}),this)},destroy:function(){return this.each(function(){var t=$(this),i=t.data("sfOptions"),s;return!!i&&(s=t.find(i.popUpSelector).parent("li"),clearTimeout(i.sfTimer),o(t,i),n(s),r(t),t.off(".ktsuperfish").off(".hoverIntent"),s.children(i.popUpSelector).attr("style",function(e,t){return t.replace(/display[^;]+;?/g,"")}),i.$path.removeClass(i.hoverClass+" "+e.bcClass).addClass(i.pathClass),t.find("."+i.hoverClass).removeClass(i.hoverClass),i.onDestroy.call(t),void t.removeData("sfOptions"))})},init:function(t){return this.each(function(){var i=$(this);if(i.data("sfOptions"))return!1;var a=$.extend({},$.fn.ktsuperfish.defaults,t),l=i.find(a.popUpSelector).parent("li");a.$path=s(i,a),i.data("sfOptions",a),o(i,a,!0),n(l,!0),r(i),h(i,a),l.not("."+e.bcClass).ktsuperfish("hide",!0),a.onInit.call(this)})}}}();$.fn.ktsuperfish=function(e,i){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?$.error("Method "+e+" does not exist on jQuery.fn.ktsuperfish"):t.init.apply(this,arguments)},$.fn.ktsuperfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:$.noop,onBeforeShow:$.noop,onShow:$.noop,onBeforeHide:$.noop,onHide:$.noop,onIdle:$.noop,onDestroy:$.noop,onHandleTouch:$.noop}}(jQuery,window),function(e){"use strict";e.fn.fitVids=function(t){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var o=document.head||document.getElementsByTagName("head")[0],s=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",n=document.createElement("div");n.innerHTML='
x
',o.appendChild(n.childNodes[1])}return t&&e.extend(i,t),this.each(function(){var t=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&t.push(i.customSelector);var o=".fitvidsignore";i.ignore&&(o=o+", "+i.ignore);var s=e(this).find(t.join(","));s=s.not("object object"),s=s.not(o),s.each(function(){var t=e(this);if(!(t.parents(o).length>0||"embed"===this.tagName.toLowerCase()&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length)){t.css("height")||t.css("width")||!isNaN(t.attr("height"))&&!isNaN(t.attr("width"))||(t.attr("height",9),t.attr("width",16));var i="object"===this.tagName.toLowerCase()||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height(),s=isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10),n=i/s;if(!t.attr("name")){var r="fitvid"+e.fn.fitVids._count;t.attr("name",r),e.fn.fitVids._count++}t.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*n+"%"),t.removeAttr("height").removeAttr("width")}})})},e.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){var t="waitForImages";e.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},e.expr[":"]["has-src"]=function(t){return e(t).is('img[src][src!=""]')},e.expr[":"].uncached=function(t){return!!e(t).is(":has-src")&&!t.complete},e.fn.waitForImages=function(){var i,o,s,n=0,r=0,a=e.Deferred();if(e.isPlainObject(arguments[0])?(s=arguments[0].waitForAll,o=arguments[0].each,i=arguments[0].finished):1===arguments.length&&"boolean"===e.type(arguments[0])?s=arguments[0]:(i=arguments[0],o=arguments[1],s=arguments[2]),i=i||e.noop,o=o||e.noop,s=!!s,!e.isFunction(i)||!e.isFunction(o))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var l=e(this),d=[],c=e.waitForImages.hasImageProperties||[],p=e.waitForImages.hasImageAttributes||[],u=/url\(\s*(['"]?)(.*?)\1\s*\)/g;s?l.find("*").addBack().each(function(){var t=e(this);t.is("img:has-src")&&!t.is("[srcset]")&&d.push({src:t.attr("src"),element:t[0]}),e.each(c,function(e,i){var o,s=t.css(i);if(!s)return!0;for(;o=u.exec(s);)d.push({src:o[2],element:t[0]})}),e.each(p,function(e,i){return!t.attr(i)||void d.push({src:t.attr("src"),srcset:t.attr("srcset"),element:t[0]})})}):l.find("img:has-src").each(function(){d.push({src:this.src,element:this})}),n=d.length,r=0,0===n&&(i.call(l[0]),a.resolveWith(l[0])),e.each(d,function(s,d){var c=new Image,p="load."+t+" error."+t;e(c).one(p,function t(s){var c=[r,n,"load"==s.type];if(r++,o.apply(d.element,c),a.notifyWith(d.element,c),e(this).off(p,t),r==n)return i.call(l[0]),a.resolveWith(l[0]),!1}),d.srcset&&(c.srcset=d.srcset),c.src=d.src})}),a.promise()}}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function($){var e=-1,t=-1,i=function(e){return parseFloat(e)||0},o=function(e){var t=1,o=$(e),s=null,n=[];return o.each(function(){var e=$(this),t=e.offset().top-i(e.css("margin-top")),o=n.length>0?n[n.length-1]:null;null===o?n.push(e):Math.floor(Math.abs(s-t))<=1?n[n.length-1]=o.add(e):n.push(e),s=t}),n},s=function(e){var t={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?$.extend(t,e):("boolean"==typeof e?t.byRow=e:"remove"===e&&(t.remove=!0),t)},n=$.fn.matchHeight=function(e){var t=s(e);if(t.remove){var i=this;return this.css(t.property,""),$.each(n._groups,function(e,t){t.elements=t.elements.not(i)}),this}return this.length<=1&&!t.target?this:(n._groups.push({elements:this,options:t}),n._apply(this,t),this)};n.version="master",n._groups=[],n._throttle=80,n._maintainScroll=!1,n._beforeUpdate=null,n._afterUpdate=null,n._rows=o,n._parse=i,n._parseOptions=s,n._apply=function(e,t){var r=s(t),a=$(e),l=[a],d=$(window).scrollTop(),c=$("html").outerHeight(!0),p=a.parents().filter(":hidden");return p.each(function(){var e=$(this);e.data("style-cache",e.attr("style"))}),p.css("display","block"),r.byRow&&!r.target&&(a.each(function(){var e=$(this),t=e.css("display");"inline-block"!==t&&"flex"!==t&&"inline-flex"!==t&&(t="block"),e.data("style-cache",e.attr("style")),e.css({display:t,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),l=o(a),a.each(function(){var e=$(this);e.attr("style",e.data("style-cache")||"")})),$.each(l,function(e,t){var o=$(t),s=0;if(r.target)s=r.target.outerHeight(!1);else{if(r.byRow&&o.length<=1)return void o.css(r.property,"");o.each(function(){var e=$(this),t=e.attr("style"),i=e.css("display");"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block");var o={display:i};o[r.property]="",e.css(o),e.outerHeight(!1)>s&&(s=e.outerHeight(!1)),t?e.attr("style",t):e.css("display","")})}o.each(function(){var e=$(this),t=0;r.target&&e.is(r.target)||("border-box"!==e.css("box-sizing")&&(t+=i(e.css("border-top-width"))+i(e.css("border-bottom-width")),t+=i(e.css("padding-top"))+i(e.css("padding-bottom"))),e.css(r.property,s-t+"px"))})}),p.each(function(){var e=$(this);e.attr("style",e.data("style-cache")||null)}),n._maintainScroll&&$(window).scrollTop(d/c*$("html").outerHeight(!0)),this},n._applyDataApi=function(){var e={};$("[data-match-height], [data-mh]").each(function(){var t=$(this),i=t.attr("data-mh")||t.attr("data-match-height");e[i]=i in e?e[i].add(t):t}),$.each(e,function(){this.matchHeight(!0)})};var r=function(e){n._beforeUpdate&&n._beforeUpdate(e,n._groups),$.each(n._groups,function(){n._apply(this.elements,this.options)}),n._afterUpdate&&n._afterUpdate(e,n._groups)};n._update=function(i,o){if(o&&"resize"===o.type){var s=$(window).width();if(s===e)return;e=s}i?-1===t&&(t=setTimeout(function(){r(o),t=-1},n._throttle)):r(o)},$(n._applyDataApi),$(window).bind("load",function(e){n._update(!1,e)}),$(window).bind("resize orientationchange",function(e){n._update(!0,e)})}),function($){"use strict";var e=function(e,t){this.el=$(e),this.options=$.extend({},$.fn.typed.defaults,t),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=!this.isInput&&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 e=this;e.timeout=setTimeout(function(){for(var t=0;t
'+this.cursorChar+""),this.el.after(this.cursor)),this.stringsElement){e.strings=[],this.stringsElement.hide();var t=this.stringsElement.find("p");$.each(t,function(t,i){e.strings.push($(i).html())})}this.init()},typewrite:function(e,t){if(this.stop!==!0){var i=Math.round(70*Math.random())+this.typeSpeed,o=this;o.timeout=setTimeout(function(){var i=0,s=e.substr(t);if("^"===s.charAt(0)){var n=1;/^\^\d+/.test(s)&&(s=/\d+/.exec(s)[0],n+=s.length,i=parseInt(s)),e=e.substring(0,t)+e.substring(t+n)}if("html"===o.contentType){var r=e.substr(t).charAt(0);if("<"===r||"&"===r){var a="",l="";for(l="<"===r?">":";";e.substr(t).charAt(0)!==l;)a+=e.substr(t).charAt(0),t++;t++,a+=l}}o.timeout=setTimeout(function(){if(t===e.length){if(o.options.onStringTyped(o.arrayPos),o.arrayPos===o.strings.length-1&&(o.options.callback(),o.curLoop++,o.loop===!1||o.curLoop===o.loopCount))return;o.timeout=setTimeout(function(){o.backspace(e,t)},o.backDelay)}else{0===t&&o.options.preStringTyped(o.arrayPos);var i=e.substr(0,t+1);o.attr?o.el.attr(o.attr,i):o.isInput?o.el.val(i):"html"===o.contentType?o.el.html(i):o.el.text(i),t++,o.typewrite(e,t)}},i)},i)}},backspace:function(e,t){if(this.stop!==!0){var i=Math.round(70*Math.random())+this.backSpeed,o=this;o.timeout=setTimeout(function(){if("html"===o.contentType&&">"===e.substr(t).charAt(0)){for(var i="";"<"!==e.substr(t).charAt(0);)i-=e.substr(t).charAt(0),t--;t--,i+="<"}var s=e.substr(0,t);o.attr?o.el.attr(o.attr,s):o.isInput?o.el.val(s):"html"===o.contentType?o.el.html(s):o.el.text(s),t>o.stopNum?(t--,o.backspace(e,t)):t<=o.stopNum&&(o.arrayPos++,o.arrayPos===o.strings.length?(o.arrayPos=0,o.shuffle&&(o.sequence=o.shuffleArray(o.sequence)),o.init()):o.typewrite(o.strings[o.sequence[o.arrayPos]],t))},i)}},shuffleArray:function(e){var t,i,o=e.length;if(o)for(;--o;)i=Math.floor(Math.random()*(o+1)),t=e[i],e[i]=e[o],e[o]=t;return e},reset:function(){var e=this;clearInterval(e.timeout);var t=this.el.attr("id");this.el.after(' '),this.el.remove(),void 0!==this.cursor&&this.cursor.remove(),e.options.resetCallback()}},$.fn.typed=function(t){return this.each(function(){var i=$(this),o=i.data("typed"),s="object"==typeof t&&t;o||i.data("typed",o=new e(this,s)),"string"==typeof t&&o[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($){$.fn.appear=function(e,t){var i=$.extend({data:void 0,one:!0,accX:0,accY:0},t);return this.each(function(){var t=$(this);if(t.appeared=!1,!e)return void t.trigger("appear",i.data);var o=$(window),s=function(){if(!t.is(":visible"))return void(t.appeared=!1);var e=o.scrollLeft(),s=o.scrollTop(),n=t.offset(),r=n.left,a=n.top,l=i.accX,d=i.accY,c=t.height(),p=o.height(),u=t.width(),h=o.width();a+c+d>=s&&a<=s+p+d&&r+u+l>=e&&r<=e+h+l?t.appeared||t.trigger("appear",i.data):t.appeared=!1},n=function(){if(t.appeared=!0,i.one){o.unbind("scroll",s);var n=$.inArray(s,$.fn.appear.checks);n>=0&&$.fn.appear.checks.splice(n,1)}e.apply(this,arguments)};i.one?t.one("appear",i.data,n):t.bind("appear",i.data,n),o.scroll(s),$.fn.appear.checks.push(s),s()})},$.extend($.fn.appear,{checks:[],timeout:null,checkAll:function(){var e=$.fn.appear.checks.length;if(e>0)for(;e--;)$.fn.appear.checks[e]()},run:function(){$.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(e,t){var i=$.fn[t];i&&($.fn[t]=function(){var e=i.apply(this,arguments);return $.fn.appear.run(),e})})}(jQuery),function(e){var t,i,o=e.event;t=o.special.debouncedresize={setup:function(){e(this).on("resize",t.handler)},teardown:function(){e(this).off("resize",t.handler)},handler:function(e,s){var n=this,r=arguments,a=function(){e.type="debouncedresize",o.dispatch.apply(n,r)};i&&clearTimeout(i),s?a():i=setTimeout(a,t.threshold)},threshold:150}}(jQuery),function($){$.fn.kt_fitText=function(e,t){var i=e||1,o=$.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY,minWidth:Number.NEGATIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY},t);return this.each(function(){var e=$(this),t=function(){var t=e.width();o.maxWidth>t&&o.minWidtht?e.css("font-size",o.minFontSize):e.css("font-size",o.maxFontSize)};t(),$(window).on("resize.fittext orientationchange.fittext",t)})}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function($){var e=Array.prototype.slice,t=Array.prototype.splice,i={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"auto"},o=$(window),s=$(document),n=[],r=o.height(),a=function(){for(var e=o.scrollTop(),t=s.height(),i=t-r,a=e>i?i-e:0,l=0,d=n.length;lp||null===c.currentTop&&p=h.offset().top+h.outerHeight()&&c.stickyElement.offset().top<=c.topSpacing?c.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):c.stickyElement.css("position","fixed").css("top",p).css("bottom","").css("z-index",c.zIndex)}}},l=function(){r=o.height();for(var e=0,t=n.length;e ").attr("id",r).addClass(t.wrapperClassName);o.wrapAll(function(){if(0==$(this).parent("#"+r).length)return a});var l=o.parent();t.center&&l.css({width:o.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===o.css("float")&&o.css({float:"none"}).parent().css({float:"right"}),t.stickyElement=o,t.stickyWrapper=l,t.currentTop=null,n.push(t),d.setWrapperHeight(this),d.setupChangeListeners(this)})},setWrapperHeight:function(e){var t=$(e),i=t.parent();i&&i.css("height",t.outerHeight())},setupChangeListeners:function(e){window.MutationObserver?new window.MutationObserver(function(t){(t[0].addedNodes.length||t[0].removedNodes.length)&&d.setWrapperHeight(e)}).observe(e,{subtree:!0,childList:!0}):window.addEventListener?(e.addEventListener("DOMNodeInserted",function(){d.setWrapperHeight(e)},!1),e.addEventListener("DOMNodeRemoved",function(){d.setWrapperHeight(e)},!1)):window.attachEvent&&(e.attachEvent("onDOMNodeInserted",function(){d.setWrapperHeight(e)}),e.attachEvent("onDOMNodeRemoved",function(){d.setWrapperHeight(e)}))},update:a,unstick:function(e){return this.each(function(){for(var e=this,i=$(e),o=-1,s=n.length;s-- >0;)n[s].stickyElement.get(0)===e&&(t.call(n,s,1),o=s);o!==-1&&(i.unwrap(),i.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",a,!1),window.addEventListener("resize",l,!1)):window.attachEvent&&(window.attachEvent("onscroll",a),window.attachEvent("onresize",l)),$.fn.sticky=function(t){return d[t]?d[t].apply(this,e.call(arguments,1)):"object"!=typeof t&&t?void $.error("Method "+t+" does not exist on jQuery.sticky"):d.init.apply(this,arguments)},$.fn.unstick=function(t){return d[t]?d[t].apply(this,e.call(arguments,1)):"object"!=typeof t&&t?void $.error("Method "+t+" does not exist on jQuery.sticky"):d.unstick.apply(this,arguments)},$(function(){setTimeout(a,0)})});