1!function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var s=document.head||document.getElementsByTagName("head")[0],n=".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%;}",o=document.createElement("div");o.innerHTML='<p>x</p><style id="fit-vids-style">'+n+"</style>",s.appendChild(o.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=['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&&e.push(i.customSelector);var s=".fitvidsignore";i.ignore&&(s=s+", "+i.ignore);var n=t(this).find(e.join(","));n=n.not("object object"),n=n.not(s),n.each(function(e){var i=t(this);if(!(i.parents(s).length>0||"embed"===this.tagName.toLowerCase()&&i.parent("object").length||i.parent(".fluid-width-video-wrapper").length)){i.css("height")||i.css("width")||!isNaN(i.attr("height"))&&!isNaN(i.attr("width"))||(i.attr("height",9),i.attr("width",16));var n="object"===this.tagName.toLowerCase()||i.attr("height")&&!isNaN(parseInt(i.attr("height"),10))?parseInt(i.attr("height"),10):i.height(),o=isNaN(parseInt(i.attr("width"),10))?i.width():parseInt(i.attr("width"),10),r=n/o;if(!i.attr("id")){var a="fitvid"+e;i.attr("id",a)}i.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*r+"%"),i.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(t){var e,i,s,n,o,r,a="Close",l="BeforeClose",h="AfterClose",d="BeforeAppend",c="MarkupParse",u="Open",p="Change",f="mfp",m="."+f,g="mfp-ready",v="mfp-removing",w="mfp-prevent-close",y=function(){},_=!!window.jQuery,b=t(window),C=function(t,i){e.ev.on(f+t+m,i)},x=function(e,i,s,n){var o=document.createElement("div");return o.className="mfp-"+e,s&&(o.innerHTML=s),n?i&&i.appendChild(o):(o=t(o),i&&o.appendTo(i)),o},k=function(i,s){e.ev.triggerHandler(f+i,s),e.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),e.st.callbacks[i]&&e.st.callbacks[i].apply(e,t.isArray(s)?s:[s]))},T=function(i){return i===r&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),r=i),e.currTemplate.closeBtn},E=function(){t.magnificPopup.instance||(e=new y,e.init(),t.magnificPopup.instance=e)},S=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1};y.prototype={constructor:y,init:function(){var i=navigator.appVersion;e.isIE7=i.indexOf("MSIE 7.")!==-1,e.isIE8=i.indexOf("MSIE 8.")!==-1,e.isLowIE=e.isIE7||e.isIE8,e.isAndroid=/android/gi.test(i),e.isIOS=/iphone|ipad|ipod/gi.test(i),e.supportsTransition=S(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),s=t(document),e.popupsCache={}},open:function(i){var n;if(i.isObj===!1){e.items=i.items.toArray(),e.index=0;var r,a=i.items;for(n=0;n<a.length;n++)if(r=a[n],r.parsed&&(r=r.el[0]),r===i.el[0]){e.index=n;break}}else e.items=t.isArray(i.items)?i.items:[i.items],e.index=i.index||0;if(e.isOpen)return void e.updateItemHTML();e.types=[],o="",i.mainEl&&i.mainEl.length?e.ev=i.mainEl.eq(0):e.ev=s,i.key?(e.popupsCache[i.key]||(e.popupsCache[i.key]={}),e.currTemplate=e.popupsCache[i.key]):e.currTemplate={},e.st=t.extend(!0,{},t.magnificPopup.defaults,i),e.fixedContentPos="auto"===e.st.fixedContentPos?!e.probablyMobile:e.st.fixedContentPos,e.st.modal&&(e.st.closeOnContentClick=!1,e.st.closeOnBgClick=!1,e.st.showCloseBtn=!1,e.st.enableEscapeKey=!1),e.bgOverlay||(e.bgOverlay=x("bg").on("click"+m,function(){e.close()}),e.wrap=x("wrap").attr("tabindex",-1).on("click"+m,function(t){e._checkIfClose(t.target)&&e.close()}),e.container=x("container",e.wrap)),e.contentContainer=x("content"),e.st.preloader&&(e.preloader=x("preloader",e.container,e.st.tLoading));var l=t.magnificPopup.modules;for(n=0;n<l.length;n++){var h=l[n];h=h.charAt(0).toUpperCase()+h.slice(1),e["init"+h].call(e)}k("BeforeOpen"),e.st.showCloseBtn&&(e.st.closeBtnInside?(C(c,function(t,e,
1i,s){i.close_replaceWith=T(s.type)}),o+=" mfp-close-btn-in"):e.wrap.append(T())),e.st.alignTop&&(o+=" mfp-align-top"),e.fixedContentPos?e.wrap.css({overflow:e.st.overflowY,overflowX:"hidden",overflowY:e.st.overflowY}):e.wrap.css({top:b.scrollTop(),position:"absolute"}),(e.st.fixedBgPos===!1||"auto"===e.st.fixedBgPos&&!e.fixedContentPos)&&e.bgOverlay.css({height:s.height(),position:"absolute"}),e.st.enableEscapeKey&&s.on("keyup"+m,function(t){27===t.keyCode&&e.close()}),b.on("resize"+m,function(){e.updateSize()}),e.st.closeOnContentClick||(o+=" mfp-auto-cursor"),o&&e.wrap.addClass(o);var d=e.wH=b.height(),p={};if(e.fixedContentPos&&e._hasScrollBar(d)){var f=e._getScrollbarSize();f&&(p.marginRight=f)}e.fixedContentPos&&(e.isIE7?t("body, html").css("overflow","hidden"):p.overflow="hidden");var v=e.st.mainClass;return e.isIE7&&(v+=" mfp-ie7"),v&&e._addClassToMFP(v),e.updateItemHTML(),k("BuildControls"),t("html").css(p),e.bgOverlay.add(e.wrap).prependTo(e.st.prependTo||t(document.body)),e._lastFocusedEl=document.activeElement,setTimeout(function(){e.content?(e._addClassToMFP(g),e._setFocus()):e.bgOverlay.addClass(g),s.on("focusin"+m,e._onFocusIn)},16),e.isOpen=!0,e.updateSize(d),k(u),i},close:function(){e.isOpen&&(k(l),e.isOpen=!1,e.st.removalDelay&&!e.isLowIE&&e.supportsTransition?(e._addClassToMFP(v),setTimeout(function(){e._close()},e.st.removalDelay)):e._close())},_close:function(){k(a);var i=v+" "+g+" ";if(e.bgOverlay.detach(),e.wrap.detach(),e.container.empty(),e.st.mainClass&&(i+=e.st.mainClass+" "),e._removeClassFromMFP(i),e.fixedContentPos){var n={marginRight:""};e.isIE7?t("body, html").css("overflow",""):n.overflow="",t("html").css(n)}s.off("keyup"+m+" focusin"+m),e.ev.off(m),e.wrap.attr("class","mfp-wrap").removeAttr("style"),e.bgOverlay.attr("class","mfp-bg"),e.container.attr("class","mfp-container"),!e.st.showCloseBtn||e.st.closeBtnInside&&e.currTemplate[e.currItem.type]!==!0||e.currTemplate.closeBtn&&e.currTemplate.closeBtn.detach(),e._lastFocusedEl&&t(e._lastFocusedEl).focus(),e.currItem=null,e.content=null,e.currTemplate=null,e.prevHeight=0,k(h)},updateSize:function(t){if(e.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,s=window.innerHeight*i;e.wrap.css("height",s),e.wH=s}else e.wH=t||b.height();e.fixedContentPos||e.wrap.css("height",e.wH),k("Resize")},updateItemHTML:function(){var i=e.items[e.index];e.contentContainer.detach(),e.content&&e.content.detach(),i.parsed||(i=e.parseEl(e.index));var s=i.type;if(k("BeforeChange",[e.currItem?e.currItem.type:"",s]),e.currItem=i,!e.currTemplate[s]){var o=!!e.st[s]&&e.st[s].markup;k("FirstMarkupParse",o),o?e.currTemplate[s]=t(o):e.currTemplate[s]=!0}n&&n!==i.type&&e.container.removeClass("mfp-"+n+"-holder");var r=e["get"+s.charAt(0).toUpperCase()+s.slice(1)](i,e.currTemplate[s]);e.appendContent(r,s),i.preloaded=!0,k(p,i),n=i.type,e.container.prepend(e.contentContainer),k("AfterChange")},appendContent:function(t,i){e.content=t,t?e.st.showCloseBtn&&e.st.closeBtnInside&&e.currTemplate[i]===!0?e.content.find(".mfp-close").length||e.content.append(T()):e.content=t:e.content="",k(d),e.container.addClass("mfp-"+i+"-holder"),e.contentContainer.append(e.content)},parseEl:function(i){var s,n=e.items[i];if(n.tagName?n={el:t(n)}:(s=n.type,n={data:n,src:n.src}),n.el){for(var o=e.types,r=0;r<o.length;r++)if(n.el.hasClass("mfp-"+o[r])){s=o[r];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=s||e.st.type||"inline",n.index=i,n.parsed=!0,e.items[i]=n,k("ElementParse",n),e.items[i]},addGroup:function(t,i){var s=function(s){s.mfpEl=this,e._openClick(s,t,i)};i||(i={});var n="click.magnificPopup";i.mainEl=t,i.items?(i.isObj=!0,t.off(n).on(n,s)):(i.isObj=!1,i.delegate?t.off(n).on(n,i.delegate,s):(i.items=t,t.off(n).on(n,s)))},_openClick:function(i,s,n){var o=void 0!==n.midClick?n.midClick:t.magnificPopup.defaults.midClick;if(o||2!==i.which&&!i.ctrlKey&&!i.metaKey){var r=void 0!==n.disableOn?n.disableOn:t.magnificPopup.defaults.disableOn;if(r)if(t.isFunction(r)){if(!r.call(e))return!0}else if(b.width()<r)return!0;i.type&&(i.preventDefault(),e.isOpen&&i.stopPropagation()),n.el=t(i.mfpEl),n.delegate&&(n.items=s.find(n.delegate)),e.o
1pen(n)}},updateStatus:function(t,s){if(e.preloader){i!==t&&e.container.removeClass("mfp-s-"+i),s||"loading"!==t||(s=e.st.tLoading);var n={status:t,text:s};k("UpdateStatus",n),t=n.status,s=n.text,e.preloader.html(s),e.preloader.find("a").on("click",function(t){t.stopImmediatePropagation()}),e.container.addClass("mfp-s-"+t),i=t}},_checkIfClose:function(i){if(!t(i).hasClass(w)){var s=e.st.closeOnContentClick,n=e.st.closeOnBgClick;if(s&&n)return!0;if(!e.content||t(i).hasClass("mfp-close")||e.preloader&&i===e.preloader[0])return!0;if(i===e.content[0]||t.contains(e.content[0],i)){if(s)return!0}else if(n&&t.contains(document,i))return!0;return!1}},_addClassToMFP:function(t){e.bgOverlay.addClass(t),e.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),e.wrap.removeClass(t)},_hasScrollBar:function(t){return(e.isIE7?s.height():document.body.scrollHeight)>(t||b.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(i){if(i.target!==e.wrap[0]&&!t.contains(e.wrap[0],i.target))return e._setFocus(),!1},_parseMarkup:function(e,i,s){var n;s.data&&(i=t.extend(s.data,i)),k(c,[e,i,s]),t.each(i,function(t,i){if(void 0===i||i===!1)return!0;if(n=t.split("_"),n.length>1){var s=e.find(m+"-"+n[0]);if(s.length>0){var o=n[1];"replaceWith"===o?s[0]!==i[0]&&s.replaceWith(i):"img"===o?s.is("img")?s.attr("src",i):s.replaceWith('<img src="'+i+'" class="'+s.attr("class")+'" />'):s.attr(n[1],i)}}else e.find(m+"-"+t).html(i)})},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:y.prototype,modules:[],open:function(e,i){return E(),e=e?t.extend(!0,{},e):{},e.isObj=!0,e.index=i||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,i){i.options&&(t.magnificPopup.defaults[e]=i.options),t.extend(this.proto,i.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},t.fn.magnificPopup=function(i){E();var s=t(this);if("string"==typeof i)if("open"===i){var n,o=_?s.data("magnificPopup"):s[0].magnificPopup,r=parseInt(arguments[1],10)||0;o.items?n=o.items[r]:(n=s,o.delegate&&(n=n.find(o.delegate)),n=n.eq(r)),e._openClick({mfpEl:n},s,o)}else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else i=t.extend(!0,{},i),_?s.data("magnificPopup",i):s[0].magnificPopup=i,e.addGroup(s,i);return s};var I,P,$,z="inline",M=function(){$&&(P.after($.addClass(I)).detach(),$=null)};t.magnificPopup.registerModule(z,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push(z),C(a+"."+z,function(){M()})},getInline:function(i,s){if(M(),i.src){var n=e.st.inline,o=t(i.src);if(o.length){var r=o[0].parentNode;r&&r.tagName&&(P||(I=n.hiddenClass,P=x(I),I="mfp-"+I),$=o.after(P).detach().removeClass(I)),e.updateStatus("ready")}else e.updateStatus("error",n.tNotFound),o=t("<div>");return i.inlineElement=o,o}return e.updateStatus("ready"),e._parseMarkup(s,{},i),s}}});var D,O="ajax",j=function(){D&&t(document.body).removeClass(D)},L=function(){j(),e.req&&e.req.abort()};t.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){e.types.push(O),D=e.st.ajax.cursor,C(a+"."+O,L),C("BeforeChange."+O,L)},getAjax:function(i){D&&t(document.body).addClass(D),e.updateStatus("loading");var s=t.extend({url:i.src,success:function(s,n,o){var r={data:s,xhr:o};k("ParseAjax",r),e.appendContent(t(r.data),O),i.finished=!0,j(),e._setFocus(),setTimeout(function(){e.wrap.addClass(g)},16),e.updateStatus("ready"),k("AjaxContentAdded")},error:function(){j(),i.finished=i.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",i.src))}},e.st.ajax.settings);return e.req=t.ajax(s),""}}});var A,B=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;
1var s=e.st.image.titleSrc;if(s){if(t.isFunction(s))return s.call(e,i);if(i.el)return i.el.attr(s)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var i=e.st.image,s=".image";e.types.push("image"),C(u+s,function(){"image"===e.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)}),C(a+s,function(){i.cursor&&t(document.body).removeClass(i.cursor),b.off("resize"+m)}),C("Resize"+s,e.resizeImage),e.isLowIE&&C("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var i=0;e.isLowIE&&(i=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-i)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,A&&clearInterval(A),t.isCheckingImgSize=!1,k("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,s=t.img[0],n=function(o){A&&clearInterval(A),A=setInterval(function(){return s.naturalWidth>0?void e._onImageHasSize(t):(i>200&&clearInterval(A),i++,void(3===i?n(10):40===i?n(50):100===i&&n(500)))},o)};n(1)},getImage:function(i,s){var n=0,o=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,k("ImageLoadComplete")):(n++,n<200?setTimeout(o,100):r()))},r=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",a.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},a=e.st.image,l=s.find(".mfp-img");if(l.length){var h=document.createElement("img");h.className="mfp-img",i.el&&i.el.find("img").length&&(h.alt=i.el.find("img").attr("alt")),i.img=t(h).on("load.mfploader",o).on("error.mfploader",r),h.src=i.src,l.is("img")&&(i.img=i.img.clone()),h=i.img[0],h.naturalWidth>0?i.hasSize=!0:h.width||(i.hasSize=!1)}return e._parseMarkup(s,{title:B(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(A&&clearInterval(A),i.loadError?(s.addClass("mfp-loading"),e.updateStatus("error",a.tError.replace("%url%",i.src))):(s.removeClass("mfp-loading"),e.updateStatus("ready")),s):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,s.addClass("mfp-loading"),e.findImageSize(i)),s)}}});var H,F=function(){return void 0===H&&(H=void 0!==document.createElement("p").style.MozTransform),H};t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,i=e.st.zoom,s=".zoom";if(i.enabled&&e.supportsTransition){var n,o,r=i.duration,h=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),s="all "+i.duration/1e3+"s "+i.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return n["-webkit-"+o]=n["-moz-"+o]=n["-o-"+o]=n[o]=s,e.css(n),e},d=function(){e.content.css("visibility","visible")};C("BuildControls"+s,function(){if(e._allowZoom()){if(clearTimeout(n),e.content.css("visibility","hidden"),t=e._getItemToZoom(),!t)return void d();o=h(t),o.css(e._getOffset()),e.wrap.append(o),n=setTimeout(function(){o.css(e._getOffset(!0)),n=setTimeout(function(){d(),setTimeout(function(){o.remove(),t=o=null,k("ZoomAnimationEnded")},16)},r)},16)}}),C(l+s,function(){if(e._allowZoom()){if(clearTimeout(n),e.st.removalDelay=r,!t){if(t=e._getItemToZoom(),!t)return;o=h(t)}o.css(e._getOffset(!0)),e.wrap.append(o),e.content.css("visibility","hidden"),setTimeout(function(){o.css(e._getOffset())},16)}}),C(a+s,function(){e._allowZoom()&&(d(),o&&o.remove(),t=null)})}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(i){var s;s=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem);var n=s.offset(),o=parseInt(s.css("padding-top"),10),r=parseInt(s.css("padding-bottom"),10);n.top-=t(window).scrollTop()-o;var a={width:s.width(),height:(_?s.innerHeight():s[0].offsetHeight)-r-o};return F()?a["-moz-transform"]=a.transform="translate("+n.left+"px,"+n.top+"px)":(a.left=n.left,a.top=n.top),a}}});var N="iframe",W="//about:blank",X=function(t){if(e.currTemplate[N]){var i=e.currTemplate[N].find("iframe");i.length&&(t||(i[0].src=W),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule(N,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',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(){e.types.push(N),C("BeforeChange",function(t,e,
1i){e!==i&&(e===N?X():i===N&&X(!0))}),C(a+"."+N,function(){X()})},getIframe:function(i,s){var n=i.src,o=e.st.iframe;t.each(o.patterns,function(){if(n.indexOf(this.index)>-1)return this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1});var r={};return o.srcAction&&(r[o.srcAction]=n),e._parseMarkup(s,r,i),e.updateStatus("ready"),s}}});var R=function(t){var i=e.items.length;return t>i-1?t-i:t<0?i+t:t},V=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',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=e.st.gallery,n=".mfp-gallery",r=Boolean(t.fn.mfpFastClick);return e.direction=!0,!(!i||!i.enabled)&&(o+=" mfp-gallery",C(u+n,function(){i.navigateByImgClick&&e.wrap.on("click"+n,".mfp-img",function(){if(e.items.length>1)return e.next(),!1}),s.on("keydown"+n,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),C("UpdateStatus"+n,function(t,i){i.text&&(i.text=V(i.text,e.currItem.index,e.items.length))}),C(c+n,function(t,s,n,o){var r=e.items.length;n.counter=r>1?V(i.tCounter,o.index,r):""}),C("BuildControls"+n,function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var s=i.arrowMarkup,n=e.arrowLeft=t(s.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(w),o=e.arrowRight=t(s.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(w),a=r?"mfpFastClick":"click";n[a](function(){e.prev()}),o[a](function(){e.next()}),e.isIE7&&(x("b",n[0],!1,!0),x("a",n[0],!1,!0),x("b",o[0],!1,!0),x("a",o[0],!1,!0)),e.container.append(n.add(o))}}),C(p+n,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),void C(a+n,function(){s.off(n),e.wrap.off("click"+n),e.arrowLeft&&r&&e.arrowLeft.add(e.arrowRight).destroyMfpFastClick(),e.arrowRight=e.arrowLeft=null}))},next:function(){e.direction=!0,e.index=R(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=R(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,i=e.st.gallery.preload,s=Math.min(i[0],e.items.length),n=Math.min(i[1],e.items.length);for(t=1;t<=(e.direction?n:s);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?s:n);t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=R(i),!e.items[i].preloaded){var s=e.items[i];s.parsed||(s=e.parseEl(i)),k("LazyLoad",s),"image"===s.type&&(s.img=t('<img class="mfp-img" />').on("load.mfploader",function(){s.hasSize=!0}).on("error.mfploader",function(){s.hasSize=!0,s.loadError=!0,k("LazyLoadError",s)}).attr("src",s.src)),s.preloaded=!0}}}});var Y="retina";t.magnificPopup.registerModule(Y,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,i=t.ratio;i=isNaN(i)?i():i,i>1&&(C("ImageHasSize."+Y,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})}),C("ElementParse."+Y,function(e,s){s.src=t.replaceSrc(s,i)}))}}}}),function(){var e=1e3,i="ontouchstart"in window,s=function(){b.off("touchmove"+o+" touchend"+o)},n="mfpFastClick",o="."+n;t.fn.mfpFastClick=function(n){return t(this).each(function(){var r,a=t(this);if(i){var l,h,d,c,u,p;a.on("touchstart"+o,function(t){c=!1,p=1,u=t.originalEvent?t.originalEvent.touches[0]:t.touches[0],h=u.clientX,d=u.clientY,b.on("touchmove"+o,function(t){u=t.originalEvent?t.originalEvent.touches:t.touches,p=u.length,u=u[0],(Math.abs(u.clientX-h)>10||Math.abs(u.clientY-d)>10)&&(c=!0,s())}).on("touchend"+o,function(t){s(),c||p>1||(r=!0,t.preventDefault(),clearTimeout(l),l=setTimeout(function(){r=!1},e),n())})})}a.on("click"+o,function(){r||n()})})},t.fn.destroyMfpFastClick=function(){t(this).off("touchstart"+o+" click"+o),i&&b.off("touchmove"+o+" touchend"+o)}}(),E()}),function(){var t,e;
1t=this.jQuery||window.jQuery,e=t(window),t.fn.stick_in_parent=function(i){var s,n,o,r,a,l,h,d,c,u,p,f,m;for(null==i&&(i={}),m=i.sticky_class,l=i.inner_scrolling,f=i.recalc_every,p=i.parent,c=i.offset_top,d=i.spacer,o=i.bottoming,null==c&&(c=0),null==p&&(p=void 0),null==l&&(l=!0),null==m&&(m="is_stuck"),s=t(document),null==o&&(o=!0),u=function(t){var e,i,s;return window.getComputedStyle?(e=t[0],i=window.getComputedStyle(t[0]),s=parseFloat(i.getPropertyValue("width"))+parseFloat(i.getPropertyValue("margin-left"))+parseFloat(i.getPropertyValue("margin-right")),"border-box"!==i.getPropertyValue("box-sizing")&&(s+=parseFloat(i.getPropertyValue("border-left-width"))+parseFloat(i.getPropertyValue("border-right-width"))+parseFloat(i.getPropertyValue("padding-left"))+parseFloat(i.getPropertyValue("padding-right"))),s):t.outerWidth(!0)},r=function(i,n,r,a,h,g,v,w){var y,_,b,C,x,k,T,E,S,I,P,$;if(!i.data("sticky_kit")){if(i.data("sticky_kit",!0),x=s.height(),T=i.parent(),null!=p&&(T=T.closest(p)),!T.length)throw"failed to find stick parent";if(b=!1,y=!1,P=null!=d?d&&i.closest(d):t("<div />"),P&&P.css("position",i.css("position")),E=function(){var t,e,o;if(!w)return x=s.height(),t=parseInt(T.css("border-top-width"),10),e=parseInt(T.css("padding-top"),10),n=parseInt(T.css("padding-bottom"),10),r=T.offset().top+t+e,a=T.height(),b&&(b=!1,y=!1,null==d&&(i.insertAfter(P),P.detach()),i.css({position:"",width:"",bottom:""}).removeClass(m),o=!0),h=i.offset().top-(parseInt(i.css("margin-top"),10)||0)-c,g=i.outerHeight(!0),v=i.css("float"),P&&P.css({width:u(i),height:g,display:i.css("display"),"vertical-align":i.css("vertical-align"),"float":v}),o?$():void 0},E(),g!==a)return C=void 0,k=c,I=f,$=function(){var t,u,p,_,S,$;if(!w)return p=!1,null!=I&&(I-=1,I<=0&&(I=f,E(),p=!0)),p||s.height()===x||(E(),p=!0),_=e.scrollTop(),null!=C&&(u=_-C),C=_,b?(o&&(S=_+g+k>a+r,y&&!S&&(y=!1,i.css({position:"fixed",bottom:"",top:""}).trigger("sticky_kit:unbottom"))),_<h&&(b=!1,k=c,null==d&&("left"!==v&&"right"!==v||i.insertAfter(P),P.detach()),t={position:"",width:""},i.css(t).removeClass(m).trigger("sticky_kit:unstick")),l&&($=e.height(),g+c>$&&(y||(k-=u,k=Math.max($-g,k),k=Math.min(c,k))))):_>h&&(b=!0,t={position:"fixed"},t.width="border-box"===i.css("box-sizing")?i.outerWidth()+"px":i.width()+"px",i.css(t).addClass(m),null==d&&(i.after(P),"left"!==v&&"right"!==v||P.append(i)),i.trigger("sticky_kit:stick")),b&&o&&(null==S&&(S=_+g+k>a+r),!y&&S)?(y=!0,"static"===T.css("position")&&T.css({position:"relative"}),i.css({position:"absolute",bottom:n,top:"auto"}).trigger("sticky_kit:bottom")):void 0},S=function(){if(!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement))return E(),$()},_=function(){if(w=!0,e.off("touchmove",$),e.off("scroll",$),e.off("resize",S),t(document.body).off("sticky_kit:recalc",S),i.off("sticky_kit:detach",_),i.removeData("sticky_kit"),i.css({position:"",bottom:"",width:""}),T.position("position",""),b)return null==d&&("left"!==v&&"right"!==v||i.insertAfter(P),P.remove()),i.removeClass(m)},e.on("touchmove",$),e.on("scroll",$),e.on("resize",S),t(document.body).on("sticky_kit:recalc",S),i.on("sticky_kit:detach",_),setTimeout($,0)}},a=0,h=this.length;a<h;a++)n=this[a],r(t(n));return this}}.call(this),!function(t,e,i,s){function n(e,i){this.settings=null,this.options=t.extend({},n.Defaults,i),this.$element=t(e),this.drag=t.extend({},u),this.state=t.extend({},p),this.e=t.extend({},f),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],t.each(n.Plugins,t.proxy(function(t,e){this._plugins[t[0].toLowerCase()+t.slice(1)]=new e(this)},this)),t.each(n.Pipe,t.proxy(function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})},this)),this.setup(),this.initialize()}function o(t){if(t.touches!==s)return{x:t.touches[0].pageX,y:t.touches[0].pageY};if(t.touches===s){if(t.pageX!==s)return{x:t.pageX,y:t.pageY};if(t.pageX===s)return{x:t.clientX,y:t.clientY}}}function r(t){var e,s,n=i.createElement("div"),o=t;for(e in o)if(s=o[e],"undefined"!=typeof n.style[s])return n=null,[s,e];return[!1]}function a(){return r(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function l(){return r(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function h(){return r(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function d(){return"ontouchstart"in e||!!navigator.msMaxTouchPoints}function c(){return e.navigator.msPointerEnabled}var u,p,f;u={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},p={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},f={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null}
1,n.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},n.Width={Default:"default",Inner:"inner",Outer:"outer"},n.Plugins={},n.Pipe=[{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var t=this._clones,e=this.$stage.children(".cloned");(e.length!==t.length||!this.settings.loop&&t.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var t,e,i=this._clones,s=this._items,n=this.settings.loop?i.length-Math.max(2*this.settings.items,4):0;for(t=0,e=Math.abs(n/2);e>t;t++)n>0?(this.$stage.children().eq(s.length+i.length-1).remove(),i.pop(),this.$stage.children().eq(0).remove(),i.pop()):(i.push(i.length/2),this.$stage.append(s[i[i.length-1]].clone().addClass("cloned")),i.push(s.length-1-(i.length-1)/2),this.$stage.prepend(s[i[i.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var t,e,i,s=this.settings.rtl?1:-1,n=(this.width()/this.settings.items).toFixed(3),o=0;for(this._coordinates=[],e=0,i=this._clones.length+this._items.length;i>e;e++)t=this._mergers[this.relative(e)],t=this.settings.mergeFit&&Math.min(t,this.settings.items)||t,o+=(this.settings.autoWidth?this._items[this.relative(e)].width()+this.settings.margin:n*t)*s,this._coordinates.push(o)}},{filter:["width","items","settings"],run:function(){var e,i,s=(this.width()/this.settings.items).toFixed(3),n={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(n),n={width:this.settings.autoWidth?"auto":s-this.settings.margin},n[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&t.grep(this._mergers,function(t){return t>1}).length>0)for(e=0,i=this._coordinates.length;i>e;e++)n.width=Math.abs(this._coordinates[e])-Math.abs(this._coordinates[e-1]||0)-this.settings.margin,this.$stage.children().eq(e).css(n);else this.$stage.children().css(n)}},{filter:["width","items","settings"],run:function(t){t.current&&this.reset(this.$stage.children().index(t.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,s,n=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*n,l=[];for(i=0,s=this._coordinates.length;s>i;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*n,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&l.push(i);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],n.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&this.state.imagesLoaded!==!0){var e,i,n;if(e=this.$element.find("img"),i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:s,n=this.$element.children(i).width(),e.length&&0>=n)return this.preloadAutoWidthImages(e),!1}this.$element.addClass("owl-loading"),this.$stage=t("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'),this.$element.append(this.$stage.parent()), 2this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},n.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,s=-1,n=null;i?(t.each(i,function(t){e>=t&&t>s&&(s=Number(t))}),n=t.extend({},this.options,i[s]),delete n.responsive,n.responsiveClass&&this.$element.attr("class",function(t,e){return e.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+s)):n=t.extend({},this.options),(null===this.settings||this._breakpoint!==s)&&(this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=s,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},n.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},n.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},n.prototype.update=function(){for(var e=0,i=this._pipe.length,s=t.proxy(function(t){return this[t]},this._invalidated),n={};i>e;)(this._invalidated.all||t.grep(this._pipe[e].filter,s).length>0)&&this._pipe[e].run(n),e++;this._invalidated={}},n.prototype.width=function(t){switch(t=t||n.Width.Default){case n.Width.Inner:case n.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},n.prototype.refresh=function(){return 0!==this._items.length&&((new Date).getTime(),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=e.orientation,this.watchVisibility(),this.trigger("refreshed"),void 0)},n.prototype.eventsCall=function(){this.e._onDragStart=t.proxy(function(t){this.onDragStart(t)},this),this.e._onDragMove=t.proxy(function(t){this.onDragMove(t)},this),this.e._onDragEnd=t.proxy(function(t){this.onDragEnd(t)},this),this.e._onResize=t.proxy(function(t){this.onResize(t)}
2,this),this.e._transitionEnd=t.proxy(function(t){this.transitionEnd(t)},this),this.e._preventClick=t.proxy(function(t){this.preventClick(t)},this)},n.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},n.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!this.trigger("resize").isDefaultPrevented()&&(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized"))))},n.prototype.eventsRouter=function(t){var e=t.type;"mousedown"===e||"touchstart"===e?this.onDragStart(t):"mousemove"===e||"touchmove"===e?this.onDragMove(t):"mouseup"===e||"touchend"===e?this.onDragEnd(t):"touchcancel"===e&&this.onDragEnd(t)},n.prototype.internalEvents=function(){var i=(d(),c());this.settings.mouseDrag?(this.$stage.on("mousedown",t.proxy(function(t){this.eventsRouter(t)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!i&&this.$stage.on("touchstart touchcancel",t.proxy(function(t){this.eventsRouter(t)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),this.settings.responsive!==!1&&this.on(e,"resize",t.proxy(this.onThrottledResize,this))},n.prototype.onDragStart=function(s){var n,r,a,l;if(n=s.originalEvent||s||e.event,3===n.which||this.state.isTouch)return!1;if("mousedown"===n.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,r=o(n).x,a=o(n).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)l=this.getTransformProperty(),this.drag.offsetX=l,this.animate(l),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=r-this.drag.offsetX,this.drag.startY=a-this.drag.offsetY,this.drag.start=r-this.drag.startX,this.drag.targetEl=n.target||n.srcElement,this.drag.updatedX=this.drag.start,("IMG"===this.drag.targetEl.tagName||"A"===this.drag.targetEl.tagName)&&(this.drag.targetEl.draggable=!1),t(i).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",t.proxy(function(t){this.eventsRouter(t)},this))},n.prototype.onDragMove=function(t){var i,n,r,a,l,h;this.state.isTouch&&(this.state.isScrolling||(i=t.originalEvent||t||e.event,n=o(i).x,r=o(i).y,this.drag.currentX=n-this.drag.startX,this.drag.currentY=r-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(a=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),l=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),h=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,a+h),l+h)),(this.drag.distance>8||this.drag.distance<-8)&&(i.preventDefault!==s?i.preventDefault():i.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},n.prototype.onDragEnd=function(e){var s,n,o;if(this.state.isTouch){if("mouseup"===e.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&this.state.inMotion!==!0)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime(),s=this.drag.endTime-this.drag.startTime,n=Math.abs(this.drag.distance),(n>3||s>300)&&this.removeClick(this.drag.targetEl),o=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(o),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(o)||this.transitionEnd(),this.drag.distance=0,t(i).off(".owl.dragEvents")}},n.prototype.removeClick=function(i){this.drag.targetEl=i,t(i).on("click.preventClick",this.e._preventClick),e.setTimeout(function(){t(i).off("click.preventClick")},300)},n.prototype.preventClick=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),t(e.target).off("click.preventClick")},n.prototype.getTransformProperty=function(){var t,i;return t=e.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),t=t.replace(/matrix(3d)?\(|\)/g,"").split(","),i=16===t.length,i!==!0?t[4]:t[12]},n.prototype.closest=function(e){var i=-1,s=30,n=this.width(),o=this.coordinates();return this.settings.freeDrag||t.each(o,t.proxy(function(t,r){return e>r-s&&r+s>e?i=t:this.op(e,"<",r)&&this.op(e,">",o[t+1]||r-n)&&(i="left"===this.state.direction?t+1:t),-1===i},this)),this.settings.loop||(this.op(e,">",o[this.minimum()])?i=e=this.minimum():this.op(e,"<",o[this.maximum()])&&(i=e=this.maximum())),i},n.prototype.animate=function(e){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.$stage.css({transform:"translate3d("+e+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:e+"px"}):this.$stage.animate({left:e},this.speed()/1e3,this.settings.fallbackEasing,t.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},n.prototype.current=function(t){if(t===s)return this._current;if(0===this._items.length)return s;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==s&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},n.prototype.invalidate=function(t){this._invalidated[t]=!0},n.prototype.reset=function(t){t=this.normalize(t),t!==s&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},n.prototype.normalize=function(e,i){var n=i?this._items.length:this._items.length+this._clones.length;return!t.isNumeric(e)||1>n?s:e=this._clones.length?(e%n+n)%n:Math.max(this.minimum(i),Math.min(this.maximum(i),e))},n.prototype.relative=function(t){return t=this.normalize(t),t-=this._clones.length/2,this.normalize(t,!0)},n.prototype.maximum=function(t){var e,i,s,n=0,o=this.settings;if(t)return this._items.length-1;if(!o.loop&&o.center)e=this._items.length-1;else if(o.loop||o.center)if(o.loop||o.center)e=this._items.length+o.items;else{if(!o.autoWidth&&!o.merge)throw"Can not detect maximum absolute position.";for(revert=o.rtl?1:-1,i=this.$stage.width()-this.$element.width();(s=this.coordinates(n))&&!(s*revert>=i);)e=++n}else e=this._items.length-o.items;return e},n.prototype.minimum=function(t){return t?0:this._clones.length/2},n.prototype.items=function(t){return t===s?this._items.slice():(t=this.normalize(t,!0),this._items[t])},n.prototype.mergers=function(t){return t===s?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},n.prototype.clones=function(e){var i=this._clones.length/2,n=i+this._items.length,o=function(t){return t%2===0?n+t/2:i-(t+1)/2};return e===s?t.map(this._clones,function(t,e){return o(e)}):t.map(this._clones,function(t,i){return t===e?o(i):null})},n.prototype.speed=function(t){return t!==s&&(this._speed=t),this._speed},n.prototype.coordinates=function(e){var i=null;return e===s?t.map(this._coordinates,t.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[e-1]||0))/2*(this.settings.rtl?-1:1)):i=this._coordinates[e-1]||0,i)}
2,n.prototype.duration=function(t,e,i){return Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},n.prototype.to=function(i,s){if(this.settings.loop){var n=i-this.relative(this.current()),o=this.current(),r=this.current(),a=this.current()+n,l=0>r-a,h=this._clones.length+this._items.length;a<this.settings.items&&l===!1?(o=r+this._items.length,this.reset(o)):a>=h-this.settings.items&&l===!0&&(o=r-this._items.length,this.reset(o)),e.clearTimeout(this.e._goToLoop),this.e._goToLoop=e.setTimeout(t.proxy(function(){this.speed(this.duration(this.current(),o+n,s)),this.current(o+n),this.update()},this),30)}else this.speed(this.duration(this.current(),i,s)),this.current(i),this.update()},n.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},n.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},n.prototype.transitionEnd=function(t){return(t===s||(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)===this.$stage.get(0)))&&(this.state.inMotion=!1,void this.trigger("translated"))},n.prototype.viewport=function(){var s;if(this.options.responsiveBaseElement!==e)s=t(this.options.responsiveBaseElement).width();else if(e.innerWidth)s=e.innerWidth;else{if(!i.documentElement||!i.documentElement.clientWidth)throw"Can not detect viewport width.";s=i.documentElement.clientWidth}return s},n.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(t.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},n.prototype.add=function(t,e){e=e===s?this._items.length:this.normalize(e,!0),this.trigger("add",{content:t,position:e}),0===this._items.length||e===this._items.length?(this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:t,position:e})},n.prototype.remove=function(t){t=this.normalize(t,!0),t!==s&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},n.prototype.addTriggerableEvents=function(){var e=t.proxy(function(e,i){return t.proxy(function(t){t.relatedTarget!==this&&(this.suppress([i]),e.apply(this,[].slice.call(arguments,1)),this.release([i]))},this)},this);t.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},t.proxy(function(t,i){this.$element.on(t+".owl.carousel",e(i,t+".owl.carousel"))},this))},n.prototype.watchVisibility=function(){function i(t){return t.offsetWidth>0&&t.offsetHeight>0}function s(){i(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),e.clearInterval(this.e._checkVisibile))}i(this.$element.get(0))||(this.$element.addClass("owl-hidden"),e.clearInterval(this.e._checkVisibile),this.e._checkVisibile=e.setInterval(t.proxy(s,this),500))},n.prototype.preloadAutoWidthImages=function(e){var i,s,n,o;i=0,s=this,e.each(function(r,a){n=t(a),o=new Image,o.onload=function(){i++,n.attr("src",o.src),n.css("opacity",1),i>=e.length&&(s.state.imagesLoaded=!0,s.initialize())},o.src=n.attr("src")||n.attr("data-src")||n.attr("data-src-retina")})},n.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),this.settings.responsive!==!1&&t(e).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var s in this._plugins)this._plugins[s].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),t(i).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()}
2,n.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?t>i:i>t;case">":return s?i>t:t>i;case">=":return s?i>=t:t>=i;case"<=":return s?t>=i:i>=t}},n.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},n.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},n.prototype.trigger=function(e,i,s){var n={item:{count:this._items.length,index:this.current()}},o=t.camelCase(t.grep(["on",e,s],function(t){return t}).join("-").toLowerCase()),r=t.Event([e,"owl",s||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},n,i));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(r)}),this.$element.trigger(r),this.settings&&"function"==typeof this.settings[o]&&this.settings[o].apply(this,r)),r},n.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},n.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},n.prototype.browserSupport=function(){if(this.support3d=h(),this.support3d){this.transformVendor=l();var t=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"];this.transitionEndVendor=t[a()],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=e.orientation},t.fn.owlCarousel=function(e){return this.each(function(){t(this).data("owlCarousel")||t(this).data("owlCarousel",new n(this,e))})},t.fn.owlCarousel.Constructor=n}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type))for(var i=this._core.settings,s=i.center&&Math.ceil(i.items/2)||i.items,n=i.center&&-1*s||0,o=(e.property&&e.property.value||this._core.current())+n,r=this._core.clones().length,a=t.proxy(function(t,e){this.load(e)},this);n++<s;)this.load(r/2+this._core.relative(o)),r&&t.each(this._core.clones(this._core.relative(o++)),a)},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1},i.prototype.load=function(i){var s=this._core.$stage.children().eq(i),n=s&&s.find(".owl-lazy");!n||t.inArray(s.get(0),this._loaded)>-1||(n.each(t.proxy(function(i,s){var n,o=t(s),r=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src");this._core.trigger("load",{element:o,url:r},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy(function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:r},"lazy")},this)).attr("src",r):(n=new Image,n.onload=t.proxy(function(){o.css({"background-image":"url("+r+")",opacity:"1"}),this._core.trigger("loaded",{element:o,url:r},"lazy")},this),n.src=r)},this)),this._loaded.push(s.get(0)))},i.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(t){var e=function(i){this._core=i,this._handlers={"initialized.owl.carousel":t.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){this._core.settings.autoHeight&&"position"==t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}
2(window.Zepto||window.jQuery,window,document),function(t,e,i){var s=function(e){this._core=e,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":t.proxy(function(t){this._core.settings.video&&!this.isInFullScreen()&&t.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":t.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":t.proxy(function(e){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))},this)},this._core.options=t.extend({},s.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};s.Defaults={video:!1,videoHeight:!1,videoWidth:!1},s.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":"youtube",s=t.attr("data-vimeo-id")||t.attr("data-youtube-id"),n=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if(s=r.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),s[3].indexOf("youtu")>-1)i="youtube";else{if(!(s[3].indexOf("vimeo")>-1))throw new Error("Video URL not supported.");i="vimeo"}s=s[6],this._videos[r]={type:i,id:s,width:n,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},s.prototype.thumbnail=function(e,i){var s,n,o,r=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",a=e.find("img"),l="src",h="",d=this._core.settings,c=function(t){n='<div class="owl-video-play-icon"></div>',s=d.lazyLoad?'<div class="owl-video-tn '+h+'" '+l+'="'+t+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+t+')"></div>',e.after(s),e.after(n)};return e.wrap('<div class="owl-video-wrapper"'+r+"></div>"),this._core.settings.lazyLoad&&(l="data-src",h="owl-lazy"),a.length?(c(a.attr(l)),a.remove(),!1):void("youtube"===i.type?(o="http://img.youtube.com/vi/"+i.id+"/hqdefault.jpg",c(o)):"vimeo"===i.type&&t.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){o=t[0].thumbnail_large,c(o)}}))},s.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},s.prototype.play=function(e){this._core.trigger("play",null,"video"),this._playing&&this.stop();var i,s,n=t(e.target||e.srcElement),o=n.closest("."+this._core.settings.itemClass),r=this._videos[o.attr("data-video")],a=r.width||"100%",l=r.height||this._core.$stage.height();"youtube"===r.type?i='<iframe width="'+a+'" height="'+l+'" src="http://www.youtube.com/embed/'+r.id+"?autoplay=1&v="+r.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===r.type&&(i='<iframe src="http://player.vimeo.com/video/'+r.id+'?autoplay=1" width="'+a+'" height="'+l+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),o.addClass("owl-video-playing"),this._playing=o,s=t('<div style="height:'+l+"px; width:"+a+'px" class="owl-video-frame">'+i+"</div>"),n.after(s)},s.prototype.isInFullScreen=function(){var s=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return s&&t(s).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),!(s&&this._fullscreen&&this._playing)&&(this._fullscreen?(this._fullscreen=!1,!1):!this._playing||this._core.state.orientation===e.orientation||(this._core.state.orientation=e.orientation,!1))},s.prototype.destroy=function(){var t,e;this._core.$element.off("click.owl.video");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=s}(window.Zepto||window.jQuery,window,document),function(t,e,i,s){var n=function(e){this.core=e,this.core.options=t.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=s,this.next=s,this.handlers={"change.owl.carousel":t.proxy(function(t){"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){this.swapping="translated"==t.type},this),"translate.owl.carousel":t.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var e,i=t.proxy(this.clear,this),s=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),s.css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i)),o&&n.addClass("animated owl-animated-in").addClass(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i))}},n.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=n}
2(window.Zepto||window.jQuery,window,document),function(t,e,i){var s=function(e){this.core=e,this.core.options=t.extend({},s.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":t.proxy(function(){this.autoplay()},this),"play.owl.autoplay":t.proxy(function(t,e,i){this.play(e,i)},this),"stop.owl.autoplay":t.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};s.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},s.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(e.clearInterval(this.interval),this.interval=e.setInterval(t.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):e.clearInterval(this.interval)},s.prototype.play=function(){return i.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void e.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},s.prototype.stop=function(){e.clearInterval(this.interval)},s.prototype.pause=function(){e.clearInterval(this.interval)},s.prototype.destroy=function(){var t,i;e.clearInterval(this.interval);for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=s}(window.Zepto||window.jQuery,window,document),function(t){"use strict";var e=function(i){this._core=i,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){this._core.settings.dotsData&&this._templates.push(t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":t.proxy(function(e){this._core.settings.dotsData&&this._templates.splice(e.position,0,t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":t.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"change.owl.carousel":t.proxy(function(t){if("position"==t.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var e=this._core.current(),i=this._core.maximum(),s=this._core.minimum();t.data=t.property.value>i?e>=i?s:i:t.property.value<s?i:t.property.value}},this),"changed.owl.carousel":t.proxy(function(t){"position"==t.property.name&&this.draw()},this),"refreshed.owl.carousel":t.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-control
2s"},e.prototype.initialize=function(){var e,i,s=this._core.settings;s.dotsData||(this._templates=[t("<div>").addClass(s.dotClass).append(t("<span>")).prop("outerHTML")]),s.navContainer&&s.dotsContainer||(this._controls.$container=t("<div>").addClass(s.controlsClass).appendTo(this.$element)),this._controls.$indicators=s.dotsContainer?t(s.dotsContainer):t("<div>").hide().addClass(s.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",t.proxy(function(e){var i=t(e.target).parent().is(this._controls.$indicators)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(i,s.dotsSpeed)},this)),e=s.navContainer?t(s.navContainer):t("<div>").addClass(s.navContainerClass).prependTo(this._controls.$container),this._controls.$next=t("<"+s.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(s.navClass[0]).html(s.navText[0]).hide().prependTo(e).on("click",t.proxy(function(){this.prev(s.navSpeed)},this)),this._controls.$next.addClass(s.navClass[1]).html(s.navText[1]).hide().appendTo(e).on("click",t.proxy(function(){this.next(s.navSpeed)},this));for(i in this._overrides)this._core[i]=t.proxy(this[i],this)},e.prototype.destroy=function(){var t,e,i,s;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(s in this.overides)this._core[s]=this._overrides[s];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i,s=this._core.settings,n=this._core.clones().length/2,o=n+this._core.items().length,r=s.center||s.autoWidth||s.dotData?1:s.dotsEach||s.items;if("page"!==s.slideBy&&(s.slideBy=Math.min(s.slideBy,s.items)),s.dots||"page"==s.slideBy)for(this._pages=[],t=n,e=0,i=0;o>t;t++)(e>=r||0===e)&&(this._pages.push({start:t-n,end:t-n+r-1}),e=0,++i),e+=this._core.mergers(this._core.relative(t))},e.prototype.draw=function(){var e,i,s="",n=this._core.settings,o=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!n.nav||n.loop||n.navRewind||(this._controls.$previous.toggleClass("disabled",0>=o),this._controls.$next.toggleClass("disabled",o>=this._core.maximum())),this._controls.$previous.toggle(n.nav),this._controls.$next.toggle(n.nav),n.dots){if(e=this._pages.length-this._controls.$indicators.children().length,n.dotData&&0!==e){for(i=0;i<this._controls.$indicators.children().length;i++)s+=this._templates[this._core.relative(i)];this._controls.$indicators.html(s)}else e>0?(s=new Array(e+1).join(this._templates[0]),this._controls.$indicators.append(s)):0>e&&this._controls.$indicators.children().slice(e).remove(); 3this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(t.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(n.dots)},e.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotData?1:i.dotsEach||i.items)}},e.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,function(t){return t.start<=e&&t.end>=e}).pop()},e.prototype.getPosition=function(e){var i,s,n=this._core.settings;return"page"==n.slideBy?(i=t.inArray(this.current(),this._pages),s=this._pages.length,e?++i:--i,i=this._pages[(i%s+s)%s].start):(i=this._core.relative(this._core.current()),s=this._core.items().length,e?i+=n.slideBy:i-=n.slideBy),i},e.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},e.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},e.prototype.to=function(e,i,s){var n;s?t.proxy(this._overrides.to,this._core)(e,i):(n=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%n+n)%n].start,i))},t.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(t,e){"use strict";var i=function(s){this._core=s,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(){"URLHash"==this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":t.proxy(function(e){var i=t(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");this._hashes[i]=e.content},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy(function(){var t=e.location.hash.substring(1),i=this._core.$stage.children(),s=this._hashes[t]&&i.index(this._hashes[t])||0;return!!t&&void this._core.to(s,!1,!0)},this))};i.Defaults={URLhashListener:!1},i.prototype.destroy=function(){var i,s;t(e).off("hashchange.owl.navigation");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(s in Object.getOwnPropertyNames(this))"function"!=typeof this[s]&&(this[s]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document),function(t){"use strict";t(document).ready(function(){function e(){var e=t(".herald-entry-content, .meta-media"),i=["iframe[src*='youtube.com/embed']","iframe[src*='player.vimeo.com/video']","iframe[src*='kickstarter.com/projects']","iframe[src*='players.brightcove.net']","iframe[src*='hulu.com/embed']","iframe[src*='vine.co/v']","iframe[src*='videopress.com/embed']","iframe[src*='dailymotion.com/embed']","iframe[src*='vid.me/e']","iframe[src*='player.twitch.tv']","iframe[src*='facebook.com/plugins/video.php']","iframe[src*='gfycat.com/ifr/']","iframe[src*='liveleak.com/ll_embed']","iframe[src*='media.myspace.com']","iframe[src*='archive.org/embed']","iframe[src*='channel9.msdn.com']","iframe[src*='content.jwplatform.com']","iframe[src*='wistia.com']","iframe[src*='vooplayer.com']","iframe[src*='content.zetatv.com.uy']","iframe[src*='embed.wirewax.com']","iframe[src*='eventopedia.navstream.com']","iframe[src*='cdn.playwire.com']","iframe[src*='drive.google.com']","iframe[src*='videos.sproutvideo.com']"];e.fitVids({customSelector:i.join(","),ignore:'[class^="wp-block"]'})}function i(e){if(herald_js_settings.single_sticky_bar){var i=t(".herald-site-footer").offset().top-t(window).height();if(t("body").hasClass("single")&&e.find(".herald-single-sticky").length){var s=e.find(".herald-single-sticky").clone(!0,!0);e.append('<div class="herald-single-sticky herald-single-mobile-sticky hidden-lg hidden-md">'+s.html()+"</div>")}t(window).scroll(function(){var s=t(window).scrollTop();s>=e.offset().top+600&&s<i?e.addClass("herald-sticky-single-visible"):e.removeClass("herald-sticky-single-visible")})}}function s(){var e="";t("body").hasClass("herald-boxed")?(e=".herald-no-sid .alignfull { width: "+t(".herald-site-content").outerWidth()+"px; margin-left: -"+t(".herald-site-content").outerWidth()/2+"px; margin-right: -"+t(".herald-site-content").outerWidth()/2+"px; left:50%; right:50%;max-width: none; }",t("#herald-full-fix").length?t("#herald-full-fix").html(e):t("head").append('<style id="herald-full-fix" type="text/css">'+e+"</style>")):(e=".herald-no-sid .alignfull { width: "+t(window).width()+"px; margin-left: -"+t(window).width()/2+"px; margin-right: -"+t(window).width()/2+"px; left:50%; right:50%;max-width: none; }",t("#herald-align-fix").length?t("#herald-align-fix").html(e):t("head").append('<style id="herald-align-fix" type="text/css">'+e+"</style>"))}function n(e){e.find(".herald-widget-slider").each(function(){var e=t(this).closest(".widget").find(".herald-slider-control
3s");t(this).owlCarousel({rtl:"true"===herald_js_settings.rtl_mode,loop:!0,autoHeight:!1,autoWidth:!1,nav:!0,center:!1,fluidSpeed:100,navContainer:e,navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'],responsive:{0:{autoWidth:!1,margin:20,items:1}}})})}function o(e){t("body").imagesLoaded(function(){e.find(".gallery-columns-1, .wp-block-gallery.columns-1").owlCarousel({rtl:"true"===herald_js_settings.rtl_mode,loop:!0,nav:!0,autoWidth:!1,autoHeight:!0,center:!1,fluidSpeed:100,margin:0,items:1,navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>']})})}function r(){window.devicePixelRatio>1&&(!g&&herald_js_settings.logo_retina&&t(".herald-logo").length&&(t(".herald-logo").imagesLoaded(function(){t(".herald-logo").each(function(){if(t(this).is(":visible")){var e=t(this).width();t(this).attr("src",herald_js_settings.logo_retina).css("width",e+"px")}})}),g=!0),!v&&herald_js_settings.logo_mini_retina&&t(".herald-logo-mini").length&&(t(".herald-logo-mini").imagesLoaded(function(){t(".herald-logo-mini").each(function(){if(t(this).is(":visible")){var e=t(this).width();t(this).attr("src",herald_js_settings.logo_mini_retina).css("width",e+"px")}})}),v=!0))}function a(t){t.find(".herald-image-format").magnificPopup({type:"image",image:{titleSrc:function(t){return t.el.find("figure").text()}}})}function l(e){e.find(".gallery, .wp-block-gallery").each(function(){var e=t(this),i=e.hasClass("wp-block-gallery")?"figure a":".gallery-icon a.herald-popup";t(this).find(i).magnificPopup({type:"image",gallery:{enabled:!0},image:{titleSrc:function(t){var i=e.hasClass("wp-block-gallery")?t.el.closest("figure").find("figcaption"):t.el.closest(".gallery-item").find(".gallery-caption");return"undefined"!=i?i.text():""}}})})}function h(e){if(e.find("a.herald-popup-img").length){var i=e.find("a.herald-popup-img");i.find("img").each(function(){var e=t(this);e.hasClass("alignright")&&e.removeClass("alignright").parent().addClass("alignright"),e.hasClass("alignleft")&&e.removeClass("alignleft").parent().addClass("alignleft"),e.hasClass("alignnone")&&e.removeClass("alignnone").parent().addClass("alignnone"),e.hasClass("aligncenter")&&e.removeClass("aligncenter").parent().addClass("aligncenter")}),i.magnificPopup({type:"image",gallery:{enabled:!0},image:{titleSrc:function(t){return t.el.closest(".wp-caption").find("figcaption").text()}}})}}function d(e){t(window).width()>=1250?t(".herald-sticky").length&&(t(".herald-sidebar").each(function(){var e,i=t(this).closest(".herald-section");e=i.find(".herald-ignore-sticky-height").length?i.height()-40-i.find(".herald-ignore-sticky-height").height():i.height()-40,t(this).css("min-height",e)}),e&&"absolute"==t(".herald-sticky").last().css("position")&&t(".herald-sticky").last().css("position","fixed").css("top",100),t(".herald-sticky").stick_in_parent({parent:".herald-sidebar",offset_top:100})):(t(".herald-sidebar").each(function(){t(this).css("height","auto"),t(this).css("min-height","1px")}),t(".herald-sticky").trigger("sticky_kit:detach"))}function c(){t(".herald-sidebar-left").each(function(){t(window).width()<1250?t(this).parent().find("div").first().hasClass("herald-sidebar-left")&&t(this).insertAfter(t(this).parent().find(".col-mod-main")):t(this).parent().find("div").first().hasClass("herald-sidebar-left")||t(this).insertBefore(t(this).parent().find(".col-mod-main"))})}function u(){t(window).width()>=768?t(".entry-meta-wrapper-sticky").length&&(t(".entry-meta-wrapper-sticky").each(function(){var e=t(this).parent(),i=t(this).closest(".herald-section"),s=i.find(".herald-entry-content").parent().height()-70;e.css("min-height",s)}),t(".entry-meta-wrapper-sticky").stick_in_parent()):(t(".entry-meta-wrapper-sticky").each(function(){t(this).css("height","auto"),t(this).css("min-height","1px")}),t(".entry-meta-wrapper-sticky").trigger("sticky_kit:detach"))}function p(){$.removeClass("close").addClass("open"),t("body").addClass("herald-menu-open")}function f(){$.removeClass("open").addClass("close"),t("body").removeClass("herald-menu-open")}function m(){if(herald_js_settings.header_ad_responsive){var e=t("#header .herald-da");if(t(window).width()<herald_js_settings.header_responsive_breakpoint&&!e.hasClass("cloned")){e.addClass("cloned");var i=e.clone().removeClass("cloned hidden-xs").addClass("header-mobile-da");i.insertAfter("#herald-responsive-header")}}}(navigator.userAgent.match(/iPhone/)||navigator.userAgent.match(/iPod/))&&t("body").addClass("iphone-device"),navigator.userAgent.match(/Android/)&&t("body").addClass("android-device");var g=!1,v=!1;
3if(r(),t(window).resize(function(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||(r(),d(),c(),u(),m(),t(".herald-responsive-header .herald-menu-popup-search.herald-search-active span").removeClass("fa-times").addClass("fa-search"),t(".herald-responsive-header .herald-menu-popup-search .herald-in-popup").removeClass("herald-search-active"))}),t("body").on("mouseenter",".herald-fa-item",function(){var e=t(this).find(".entry-content").height();t(this).find(".entry-header").css({"-webkit-transform":"translate(0,-"+e+"px)","-ms-transform":"translate(0,-"+e+"px)",transform:"translate(0,-"+e+"px)"})}),t("body").on("mouseleave",".herald-fa-item",function(){t(this).find(".entry-header").css({"-webkit-transform":"translate(0,0)","-ms-transform":"translate(0,0)",transform:"translate(0,0)"})}),t(".main-navigation").on("mouseenter","li",function(e){t(this).closest("body").width()<t(document).width()&&t(this).find("ul").addClass("herald-rev")}),e(),t("body").on("click",".herald-site-header .herald-menu-popup-search span, .herald-header-sticky .herald-menu-popup-search span",function(e){e.preventDefault(),t(this).toggleClass("fa-times","fa-search"),t(this).parent().toggleClass("herald-search-active"),t('.herald-search-active input[type="text"]').focus(),t(this).closest("body").width()<t(document).width()?t(this).siblings(".herald-in-popup").addClass("herald-reverse-form"):t(this).siblings(".herald-in-popup").removeClass("herald-reverse-form")}),t(".herald-responsive-header").on("click",".herald-menu-popup-search span",function(e){e.preventDefault(),t(this).next().toggle(),t(this).toggleClass("fa-times","fa-search"),t(window).width()<1250&&(t(".herald-responsive-header .herald-in-popup .herald-search-input").focus(),t(".herald-responsive-header .herald-in-popup").css("width",t(window).width()))}),t("body").on("mouseenter",".herald-site-header .herald-mega-menu, .herald-header-sticky .herald-mega-menu",function(){var e=t(".herald-site-content").width();t(this).find("> .sub-menu").css("width",e+"px")}),t("body").on("mouseover mouseleave",".entry-meta-wrapper .herald-share",function(e){"mouseover"==e.type?t(this).find(".meta-share-wrapper").slideDown():t(this).find(".meta-share-wrapper").slideUp()}),window.matchMedia("(max-width: 766px)").matches&&t(".herald-mod-subnav-mobile").each(function(){t(this).closest(".herald-mod-h").addClass("herald-subcat-dropdown")}),t("body").on("click",".herald-subcat-dropdown",function(){t(this).find(".herald-mod-subnav-mobile").slideToggle(200)}),t("body").imagesLoaded(function(){d(),c(),u(),i(t(".herald-site-content .herald-section").last())}),herald_js_settings.header_sticky){var w;t(window).scroll(function(){var e=t(window).scrollTop();herald_js_settings.header_sticky_up?w>e&&e>=herald_js_settings.header_sticky_offset?t("body").addClass("herald-sticky-header-visible"):t("body").removeClass("herald-sticky-header-visible"):e>=herald_js_settings.header_sticky_offset?t("body").addClass("herald-sticky-header-visible"):t("body").removeClass("herald-sticky-header-visible"),w=e})}if(s(),h(t(".herald-section")),herald_js_settings.popup_img&&(a(t(".herald-site-content")),l(t(".herald-site-content"))),t("body").on("click",".herald-comment-form-open",function(e){e.preventDefault();var i=t(this).closest(".herald-section");t(this).parent().fadeOut(100,function(){i.find("#respond").fadeIn(300),i.find("#respond #comment").focus()})}),t("#jetpack_remote_comment").length&&(t(".herald-comment-form-open").parent().hide(),t("#respond").fadeIn(300)),t("body").on("click",".entry-meta-single .herald-comments a, .herald-comment-action",function(e){e.preventDefault();var i=t(this).closest(".herald-section"),s=this.hash,n=i.find(s);i.find(".herald-comment-form-open").parent().hide(),i.find("#respond").show(),t("html, body").stop().animate({scrollTop:n.offset().top},900,"swing",function(){window.location.hash=s})}),t(".herald-slider").each(function(){var e=t(this).closest(".herald-module").find(".herald-slider-controls"),i=t(this).closest(".herald-module").attr("data-col"),s=e.attr("data-col"),n=i/s,o=1e3*parseInt(e.attr("data-autoplay")),r=!!o;t(this).owlCarousel({rtl:"true"===herald_js_settings.rtl_mode,loop:!0,autoHeight:!1,autoWidth:!1,items:n,margin:40,nav:!0,center:!1,fluidSpeed:100,autoplay:r,autoplayHoverPause:!0,autoplayTimeout:o,navContainer:e,navText:['<i class="fa fa-angle-left"></i>','<i class="fa fa-angle-right"></i>'],responsive:{0:{margin:20,items:s<=2?2:1},768:{margin:30},1480:{margin:40}}})}),t(".trending-slider").owlCarousel({rtl:"true"===herald_js_settings.rtl_mode,loop:!0,autoWidth:!1,items:herald_js_settings.trending_columns,nav:!1,center:!1,fluidSpeed:100,margin:20,autoplay:!0,autoplayHoverPause:!0,autoplayTimeout:2500}),n(t("body")),o(t(".herald-section")),t(".herald-infinite-scroll").length||t(".herald-load-more").length||t(".herald-infinite-scroll-single").length){var y=[],_=0,b=0,C={prev:window.location.href,next:"",offset:t(window).scrollTop(),prev_title:window.document.title,next_title:window.document.title};y.push(C);var x,k=0;t(window).scroll(function(){y[_].offset!=x&&t(window).scrollTop()<y[_].offset&&(x=y[_].offset,k=0,window.document.title=y[_].prev_title,window.history.replaceState(y,"",y[_].prev),b=_,0!=_&&_--),y[b].offset!=k&&t(window).scrollTop()>y[b].offset&&(k=y[b].offset,x=0,window.document.title=y[b].next_title,window.history.replaceState(y,"",y[b].next),_=b,b<y.length-1&&b++)})}var T=0;t("body").on("click",".herald-load-more a",function(e){e.preventDefault();var i=t(this),s=i.attr("href"),n=window.location.href,o=window.document.title;i.addClass("herald-loader-active"),t(".herald-loader").show(),t("<div>").load(s,function(){var e=T.toString(),r=i.closest(".herald-module").find(".herald-posts"),a=t(this).find(".herald-module:last article").addClass("herald-new-"+e),l=t(this);a.imagesLoaded(function(){if(a.hide().appendTo(r).fadeIn(400),l.find(".herald-load-more").length?(t(".herald-load-more").html(l.find(".herald-load-more").html()),t(".herald-loader").hide(),i.removeClass("herald-loader-active")):t(".herald-load-more").fadeOut("fast").remove(),d(!0),s!=window.location){_++,b++;var e=l.find("title").text(),h={prev:n,next:s,offset:t(window).scrollTop(),prev_title:o,next_title:e};y.push(h),window.document.title=e,window.history.pushState(h,"",s)}return T++,!1})})});var E=!0;t(".herald-infinite-scroll").length&&t(window).scroll(function(){if(E&&t(".herald-infinite-scroll").length&&t(this).scrollTop()>t(".herald-infinite-scroll").offset().top-t(this).height()-200){var e=t(".herald-infinite-scroll a"),i=e.attr("href"),s=window.location.href,n=window.document.title;void 0!=i&&(E=!1,t(".herald-loader").show(),t("<div>").load(i,function(){var o=T.toString(),r=e.closest(".herald-module").find(".herald-posts"),a=t(this).find(".herald-module:last article").addClass("herald-new-"+o),l=t
3(this);a.imagesLoaded(function(){if(a.hide().appendTo(r).fadeIn(400),l.find(".herald-infinite-scroll").length?(t(".herald-infinite-scroll").html(l.find(".herald-infinite-scroll").html()),t(".herald-loader").hide(),E=!0):t(".herald-infinite-scroll").fadeOut("fast").remove(),d(!0),i!=window.location){_++,b++;var e=l.find("title").text(),o={prev:s,next:i,offset:t(window).scrollTop(),prev_title:n,next_title:e};y.push(o),window.document.title=e,window.history.pushState(o,"",i)}return T++,!1})}))}});var S=!0,I=0,P=!0;t(".herald-infinite-scroll-single").length&&t(window).scroll(function(){if(S&&t(".herald-infinite-scroll-single").length&&t(this).scrollTop()>t(".herald-infinite-scroll-single").offset().top-t(this).height()-200){var e=t(".herald-infinite-scroll-single a").css("opacity",0),s=e.attr("href"),r=window.location.href,c=window.document.title;void 0!=s&&(S=!1,t(".herald-loader").show(),t("<div>").load(s,function(){var e=t(this),p=I.toString(),f=t(".herald-site-content").find(".herald-section").last(),m=e.find(".herald-section").last().addClass("herald-new-"+p);m.imagesLoaded(function(){m.hide().insertAfter(f).fadeIn(400),e.find(".herald-infinite-scroll-single").length?(t(".herald-infinite-scroll-single").html(e.find(".herald-infinite-scroll-single").html()),t(".herald-loader").hide(),S=!0):t(".herald-infinite-scroll-single").fadeOut("fast").remove(),d(!0),o(m),n(m),i(m),u(),h(m),herald_js_settings.popup_img&&(a(m),l(m));var p={};if(P&&(p={prev:window.location.href,next:"",offset:0,prev_title:window.document.title,next_title:window.document.title},window.history.pushState(p,"",window.location.href),P=!1),s!=window.location){_++,b++;var g=e.find("title").text();p={prev:r,next:s,offset:t(window).scrollTop(),prev_title:c,next_title:g},y.push(p),window.document.title=g,window.history.pushState(p,"",s)}return I++,!1})}))}});var $=t(".herald-slide"),z=t(".herald-site-content");if(m(),0!=herald_js_settings.responsive_menu_more_link){var M=t(".herald-more-link-wrapper"),D=t(".herald-mobile-nav .secondary-navigation");D.length&&D.each(function(){var e=t(this).find("ul").first().children();M.find(".herald-more-link ul").append(e),t(this).remove()})}t(".herald-nav-toggle").on("click",function(){z.hasClass("open")?f():p()}),t("body").on("click",".herald-site-content",function(){z.hasClass("open")&&f()}),t(".herald-mobile-nav li").each(function(){var e=t(this);if(e.closest("nav").removeClass("herald-menu").addClass("herald-mob-nav"),(e.hasClass("menu-item-has-children")||e.hasClass("herald-mega-menu"))&&e.append('<span class="herald-menu-toggler fa fa-caret-down"></span>'),e.hasClass("herald-mega-menu")){var i=e.find(".herald-mega-menu-sub-cats ul li");e.find(".container").remove(),e.find(".sub-menu").append(i)}}),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?t(".herald-menu-toggler").on("touchstart",function(e){t(this).prev().slideToggle(),t(this).parent().toggleClass("herald-current-mobile-item")}):t(".herald-menu-toggler").on("click",function(e){t(this).prev().slideToggle(),t(this).parent().toggleClass("herald-current-mobile-item")}),t("body").on("click",".herald-responsive-header .herald-menu-popup-search span",function(e){e.preventDefault(),e.stopPropagation(),t(window).width()<1250&&t(".herald-responsive-header .herald-in-popup").css("width",t(window).width())}),t("#back-top").length&&(t(window).scroll(function(){t(this).scrollTop()>400?t("#back-top").fadeIn():t("#back-top").fadeOut()}),t("body").on("click","#back-top",function(){return t("body,html").animate({scrollTop:0},800),!1})),t(window).resize(function(){s()})}),herald_js_settings.smooth_scroll&&!function(){function t(){E.keyboardSupport&&u("keydown",n)}function e(){if(!$&&document.body){$=!0;var e=document.body,i=document.documentElement,s=window.innerHeight,n=e.scrollHeight;if(z=document.compatMode.indexOf("CSS")>=0?i:e,b=e,t(),top!=self)I=!0;else if(n>s&&(e.offsetHeight<=s||i.offsetHeight<=s)){var o=document.createElement("div");o.style.cssText="position:absolute; z-index:-10000; top:0; left:0; right:0; height:"+z.scrollHeight+"px",document.body.appendChild(o);var r,a=function(){r||(r=setTimeout(function(){S||(o.style.height="0",o.style.height=z.scrollHeight+"px",r=null)},500))};setTimeout(a,10);var l={attributes:!0,childList:!0,characterData:!1};if(C=new W(a),C.observe(e,l),z.offsetHeight<=s){var h=document.createElement("div");h.style.clear="both",e.appendChild(h)}}
3E.fixedBackground||S||(e.style.backgroundAttachment="scroll",i.style.backgroundAttachment="scroll")}}function i(t,e,i){if(f(e,i),1!=E.accelerationMax){var s=Date.now(),n=s-A;if(n<E.accelerationDelta){var o=(1+50/n)/2;o>1&&(o=Math.min(o,E.accelerationMax),e*=o,i*=o)}A=Date.now()}if(j.push({x:e,y:i,lastX:e<0?.99:-.99,lastY:i<0?.99:-.99,start:Date.now()}),!L){var r=t===document.body,a=function(s){for(var n=Date.now(),o=0,l=0,h=0;h<j.length;h++){var d=j[h],c=n-d.start,u=c>=E.animationTime,p=u?1:c/E.animationTime;E.pulseAlgorithm&&(p=_(p));var f=d.x*p-d.lastX>>0,m=d.y*p-d.lastY>>0;o+=f,l+=m,d.lastX+=f,d.lastY+=m,u&&(j.splice(h,1),h--)}r?window.scrollBy(o,l):(o&&(t.scrollLeft+=o),l&&(t.scrollTop+=l)),e||i||(j=[]),j.length?N(a,t,1e3/E.frameRate+1):L=!1};N(a,t,0),L=!0}}function s(t){$||e();var s=t.target,n=l(s);if(!n||t.defaultPrevented||t.ctrlKey)return!0;if(p(b,"embed")||p(s,"embed")&&/\.pdf/i.test(s.src)||p(b,"object"))return!0;var o=-t.wheelDeltaX||t.deltaX||0,a=-t.wheelDeltaY||t.deltaY||0;return D&&(t.wheelDeltaX&&g(t.wheelDeltaX,120)&&(o=-120*(t.wheelDeltaX/Math.abs(t.wheelDeltaX))),t.wheelDeltaY&&g(t.wheelDeltaY,120)&&(a=-120*(t.wheelDeltaY/Math.abs(t.wheelDeltaY)))),o||a||(a=-t.wheelDelta||0),1===t.deltaMode&&(o*=40,a*=40),!(E.touchpadSupport||!m(a))||(Math.abs(o)>1.2&&(o*=E.stepSize/120),Math.abs(a)>1.2&&(a*=E.stepSize/120),i(n,o,a),t.preventDefault(),void r())}function n(t){var e=t.target,s=t.ctrlKey||t.altKey||t.metaKey||t.shiftKey&&t.keyCode!==O.spacebar;document.contains(b)||(b=document.activeElement);var n=/^(textarea|select|embed|object)$/i,o=/^(button|submit|radio|checkbox|file|color|image)$/i;if(n.test(e.nodeName)||p(e,"input")&&!o.test(e.type)||p(b,"video")||w(t)||e.isContentEditable||t.defaultPrevented||s)return!0;if((p(e,"button")||p(e,"input")&&o.test(e.type))&&t.keyCode===O.spacebar)return!0;var a,h=0,d=0,c=l(b),u=c.clientHeight;switch(c==document.body&&(u=window.innerHeight),t.keyCode){case O.up:d=-E.arrowScroll;break;case O.down:d=E.arrowScroll;break;case O.spacebar:a=t.shiftKey?1:-1,d=-a*u*.9;break;case O.pageup:d=.9*-u;break;case O.pagedown:d=.9*u;break;case O.home:d=-c.scrollTop;break;case O.end:var f=c.scrollHeight-c.scrollTop-u;d=f>0?f+10:0;break;case O.left:h=-E.arrowScroll;break;case O.right:h=E.arrowScroll;break;default:return!0}i(c,h,d),t.preventDefault(),r()}function o(t){b=t.target}function r(){clearTimeout(x),x=setInterval(function(){H={}},1e3)}function a(t,e){for(var i=t.length;i--;)H[B(t[i])]=e;return e}function l(t){var e=[],i=document.body,s=z.scrollHeight;do{var n=H[B(t)];if(n)return a(e,n);if(e.push(t),s===t.scrollHeight){var o=d(z)&&d(i),r=o||c(z);if(I&&h(z)||!I&&r)return a(e,X())}else if(h(t)&&c(t))return a(e,t)}while(t=t.parentElement)}function h(t){return t.clientHeight+10<t.scrollHeight}function d(t){var e=getComputedStyle(t,"").getPropertyValue("overflow-y");return"hidden"!==e}function c(t){var e=getComputedStyle(t,"").getPropertyValue("overflow-y");return"scroll"===e||"auto"===e}function u(t,e){window.addEventListener(t,e,!1)}function p(t,e){return(t.nodeName||"").toLowerCase()===e.toLowerCase()}function f(t,e){t=t>0?1:-1,e=e>0?1:-1,P.x===t&&P.y===e||(P.x=t,P.y=e,j=[],A=0)}function m(t){if(t)return M.length||(M=[t,t,t]),t=Math.abs(t),M.push(t),M.shift(),clearTimeout(k),k=setTimeout(function(){window.localStorage&&(localStorage.SS_deltaBuffer=M.join(","))},1e3),!v(120)&&!v(100)}function g(t,e){return Math.floor(t/e)==t/e}function v(t){return g(M[0],t)&&g(M[1],t)&&g(M[2],t)}function w(t){var e=t.target,i=!1;if(document.URL.indexOf("www.youtube.com/watch")!=-1)do if(i=e.classList&&e.classList.contains("html5-video-controls"))break;while(e=e.parentNode);return i}function y(t){var e,i,s;return t*=E.pulseScale,t<1?e=t-(1-Math.exp(-t)):(i=Math.exp(-1),t-=1,s=1-Math.exp(-t),e=i+s*(1-i)),e*E.pulseNormalize}function _(t){return t>=1?1:t<=0?0:(1==E.pulseNormalize&&(E.pulseNormalize/=y(1)),y(t))}var b,C,x,k,T={frameRate:150,animationTime:400,stepSize:100,pulseAlgorithm:!0,pulseScale:4,pulseNormalize:1,accelerationDelta:50,accelerationMax:3,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!1,fixedBackgroun
3d:!0,excluded:""},E=T,S=!1,I=!1,P={x:0,y:0},$=!1,z=document.documentElement,M=[],D=/^Mac/.test(navigator.platform),O={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},E=T,j=[],L=!1,A=Date.now(),B=function(){var t=0;return function(e){return e.uniqueID||(e.uniqueID=t++)}}(),H={};window.localStorage&&localStorage.SS_deltaBuffer&&(M=localStorage.SS_deltaBuffer.split(","));var F,N=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t,e,i){window.setTimeout(t,i||1e3/60)}}(),W=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,X=function(){var t;return function(){if(!t){var e=document.createElement("div");e.style.cssText="height:10000px;width:1px;",document.body.appendChild(e);var i=document.body.scrollTop;document.documentElement.scrollTop;window.scrollBy(0,1),t=document.body.scrollTop!=i?document.body:document.documentElement,window.scrollBy(0,-1),document.body.removeChild(e)}return t}}(),R=window.navigator.userAgent,V=/Edge/.test(R),Y=/chrome/i.test(R)&&!V,q=/safari/i.test(R)&&!V,Z=/mobile/i.test(R),Q=(Y||q)&&!Z;"onwheel"in document.createElement("div")?F="wheel":"onmousewheel"in document.createElement("div")&&(F="mousewheel"),F&&Q&&(u(F,s),u("mousedown",o),u("load",e))}()}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.