!function(n){"use strict";n.fn.fitVids=function(t){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var e=document.head||document.getElementsByTagName("head")[0],s=document.createElement("div");s.innerHTML='

x

',e.appendChild(s.childNodes[1])}return t&&n.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 s=".fitvidsignore";i.ignore&&(s=s+", "+i.ignore);var e=n(this).find(t.join(","));(e=(e=e.not("object object")).not(s)).each(function(){var t=n(this);if(!(0').parent(".fluid-width-video-wrapper").css("padding-top",100*e+"%"),t.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),function(d){function t(){}function h(t,e){g.ev.on(i+t+b,e)}function u(t,e,i,s){var n=document.createElement("div");return n.className="mfp-"+t,i&&(n.innerHTML=i),s?e&&e.appendChild(n):(n=d(n),e&&n.appendTo(e)),n}function p(t,e){g.ev.triggerHandler(i+t,e),g.st.callbacks&&(t=t.charAt(0).toLowerCase()+t.slice(1),g.st.callbacks[t]&&g.st.callbacks[t].apply(g,d.isArray(e)?e:[e]))}function f(t){return t===e&&g.currTemplate.closeBtn||(g.currTemplate.closeBtn=d(g.st.closeMarkup.replace("%title%",g.st.tClose)),e=t),g.currTemplate.closeBtn}function o(){d.magnificPopup.instance||((g=new t).init(),d.magnificPopup.instance=g)}var g,s,m,v,n,y,e,l="Close",c="BeforeClose",w="MarkupParse",_="Open",r="Change",i="mfp",b="."+i,C="mfp-ready",a="mfp-removing",x="mfp-prevent-close",k=!!window.jQuery,T=d(window);t.prototype={constructor:t,init:function(){var t=navigator.appVersion;g.isIE7=-1!==t.indexOf("MSIE 7."),g.isIE8=-1!==t.indexOf("MSIE 8."),g.isLowIE=g.isIE7||g.isIE8,g.isAndroid=/android/gi.test(t),g.isIOS=/iphone|ipad|ipod/gi.test(t),g.supportsTransition=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}(),g.probablyMobile=g.isAndroid||g.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),v=d(document),g.popupsCache={}},open:function(t){var e;if(m||(m=d(document.body)),!1===t.isObj){g.items=t.items.toArray(),g.index=0;var i,s=t.items;for(e=0;s.length>e;e++)if((i=s[e]).parsed&&(i=i.el[0]),i===t.el[0]){g.index=e;break}}else g.items=d.isArray(t.items)?t.items:[t.items],g.index=t.index||0;if(!g.isOpen){g.types=[],y="",g.ev=t.mainEl&&t.mainEl.length?t.mainEl.eq(0):v,t.key?(g.popupsCache[t.key]||(g.popupsCache[t.key]={}),g.currTemplate=g.popupsCache[t.key]):g.currTemplate={},g.st=d.extend(!0,{},d.magnificPopup.defaults,t),g.fixedContentPos="auto"===g.st.fixedContentPos?!g.probablyMobile:g.st.fixedContentPos,g.st.modal&&(g.st.closeOnContentClick=!1,g.st.closeOnBgClick=!1,g.st.showCloseBtn=!1,g.st.enableEscapeKey=!1),g.bgOverlay||(g.bgOverlay=u("bg").on("click"+b,function(){g.close()}),g.wrap=u("wrap").attr("tabindex",-1).on("click"+b,function(t){g._checkIfClose(t.target)&&g.close()}),g.container=u("container",g.wrap)),g.contentContainer=u("content"),g.st.preloader&&(g.preloader=u("preloader",g.container,g.st.tLoading));var n=d.magnificPopup.modules;for(e=0;n.length>e;e++){var o=n[e];o=o.charAt(0).toUpperCase()+o.slice(1),g["init"+o].call(g)}p("BeforeOpen"),g.st.showCloseBtn&&(g.st.closeBtnInside?(h(w,function(t,e,i,s){i.close_replaceWith=f(s.type)}),y+=" mfp-close-btn-in"):g.wrap.append(f())),g.st.alignTop&&(y+=" mfp-align-top"),g.fixedContentPos?g.wrap.css({overflow:g.st.overflowY,overflowX:"hidden",overflowY:g.st.overflowY}):g.wrap.css({top:T.scrollTop(),position:"absolute"}),!1!==g.st.fixedBgPos&&("auto"!==g.st.fixedBgPos||g.fixedContentPos)||g.bgOverlay.css({height:v.height(),position:"absolute"}),g.st.enableEscapeKey&&v.on("keyup"+b,function(t){27===t.keyCode&&g.close()}),T.on("resize"+b,function(){g.updateSize()}),g.st.closeOnContentClick||(y+=" mfp-auto-cursor"),y&&g.wrap.addClass(y);var r=g.wH=T.height(),a={};if(g.fixedContentPos&&g._hasScrollBar(r)){var l=g._getScrollbarSize();l&&(a.marginRight=l)}g.fixedContentPos&&(g.isIE7?d("body, html").css("overflow","hidden"):a.overflow="hidden");var c=g.st.mainClass;return g.isIE7&&(c+=" mfp-ie7"),c&&g._addClassToMFP(c),g.updateItemHTML(),p("BuildControls"),d("html").css(a),g.bgOverlay.add(g.wrap).prependTo(g.st.prependTo||m),g._lastFocusedEl=document.activeElement,setTimeout(function(){g.content?(g._addClassToMFP(C),g._setFocus()):g.bgOverlay.addClass(C),v.on("focusin"+b,g._onFocusIn)},16),g.isOpen=!0,g.updateSize(r),p(_),t}g.updateItemHTML()},close:function(){g.isOpen&&(p(c),g.isOpen=!1,g.st.removalDelay&&!g.isLowIE&&g.supportsTransition?(g._addClassToMFP(a),setTimeout(function(){g._close()},g.st.removalDelay)):g._close())},_close:function(){p(l);var t=a+" "+C+" ";if(g.bgOverlay.detach(),g.wrap.detach(),g.container.empty(),g.st.mainClass&&(t+=g.st.mainClass+" "),g._removeClassFromMFP(t),g.fixedContentPos){var e={marginRight:""};g.isIE7?d("body, html").css("overflow",""):e.overflow="",d("html").css(e)}v.off("keyup.mfp focusin"+b),g.ev.off(b),g.wrap.attr("class","mfp-wrap").removeAttr("style"),g.bgOverlay.attr("class","mfp-bg"),g.container.attr("class","mfp-container"),!g.st.showCloseBtn||g.st.closeBtnInside&&!0!==g.currTemplate[g.currItem.type]||g.currTemplate.closeBtn&&g.currTemplate.closeBtn.detach(),g._lastFocusedEl&&d(g._lastFocusedEl).focus(),g.currItem=null,g.content=null,g.currTemplate=null,g.prevHeight=0,p("AfterClose")},updateSize:function(t){if(g.isIOS){var e=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*e;g.wrap.css("height",i),g.wH=i}else g.wH=t||T.height();g.fixedContentPos||g.wrap.css("height",g.wH),p("Resize")},updateItemHTML:function(){var t=g.items[g.index];g.contentContainer.detach(),g.content&&g.content.detach(),t.parsed||(t=g.parseEl(g.index));var e=t.type;if(p("BeforeChange",[g.currItem?g.currItem.type:"",e]),g.currItem=t,!g.currTemplate[e]){var i=!!g.st[e]&&g.st[e].markup;p("FirstMarkupParse",i),g.currTemplate[e]=!i||d(i)}n&&n!==t.type&&g.container.removeClass("mfp-"+n+"-holder");var s=g["get"+e.charAt(0).toUpperCase()+e.slice(1)](t,g.currTemplate[e]);g.appendContent(s,e),t.preloaded=!0,p(r,t),n=t.type,g.container.prepend(g.contentContainer),p("AfterChange")},appendContent:function(t,e){(g.content=t)?g.st.showCloseBtn&&g.st.closeBtnInside&&!0===g.currTemplate[e]?g.content.find(".mfp-close").length||g.content.append(f()):g.content=t:g.content="",p("BeforeAppend"),g.container.addClass("mfp-"+e+"-holder"),g.contentContainer.append(g.content)},parseEl:function(t){var e,i=g.items[t];if((i=i.tagName?{el:d(i)}:(e=i.type,{data:i,src:i.src})).el){for(var s=g.types,n=0;s.length>n;n++)if(i.el.hasClass("mfp-"+s[n])){e=s[n];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=e||g.st.type||"inline",i.index=t,i.parsed=!0,g.items[t]=i,p("ElementParse",i),g.items[t]},addGroup:function(e,i){function t(t){t.mfpEl=this,g._openClick(t,e,i)}i||(i={});var s="click.magnificPopup";i.mainEl=e,i.items?(i.isObj=!0,e.off(s).on(s,t)):(i.isObj=!1,i.delegate?e.off(s).on(s,i.delegate,t):(i.items=e).off(s).on(s,t))},_openClick:function(t,e,i){if((void 0!==i.midClick?i.midClick:d.magnificPopup.defaults.midClick)||2!==t.which&&!t.ctrlKey&&!t.metaKey){var s=void 0!==i.disableOn?i.disableOn:d.magnificPopup.defaults.disableOn;if(s)if(d.isFunction(s)){if(!s.call(g))return!0}else if(s>T.width())return!0;t.type&&(t.preventDefault(),g.isOpen&&t.stopPropagation()),i.el=d(t.mfpEl),i.delegate&&(i.items=e.find(i.delegate)),g.open(i)}},updateStatus:function(t,e){if(g.preloader){s!==t&&g.container.removeClass("mfp-s-"+s),e||"loading"!==t||(e=g.st.tLoading);var i={status:t,text:e};p("UpdateStatus",i),t=i.status,e=i.text,g.preloader.html(e),g.preloader.find("a").on("click",function(t){t.stopImmediatePropagation()}),g.container.addClass("mfp-s-"+t),s=t}},_checkIfClose:function(t){if(!d(t).hasClass(x)){var e=g.st.closeOnContentClick,i=g.st.closeOnBgClick;if(e&&i)return!0;if(!g.content||d(t).hasClass("mfp-close")||g.preloader&&t===g.preloader[0])return!0;if(t===g.content[0]||d.contains(g.content[0],t)){if(e)return!0}else if(i&&d.contains(document,t))return!0;return!1}},_addClassToMFP:function(t){g.bgOverlay.addClass(t),g.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),g.wrap.removeClass(t)},_hasScrollBar:function(t){return(g.isIE7?v.height():document.body.scrollHeight)>(t||T.height())},_setFocus:function(){(g.st.focus?g.content.find(g.st.focus).eq(0):g.wrap).focus()},_onFocusIn:function(t){return t.target===g.wrap[0]||d.contains(g.wrap[0],t.target)?void 0:(g._setFocus(),!1)},_parseMarkup:function(n,t,e){var o;e.data&&(t=d.extend(e.data,t)),p(w,[n,t,e]),d.each(t,function(t,e){if(void 0===e||!1===e)return!0;if(1<(o=t.split("_")).length){var i=n.find(b+"-"+o[0]);if(0'):i.attr(o[1],e)}}else n.find(b+"-"+t).html(e)})},_getScrollbarSize:function(){if(void 0===g.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),g.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return g.scrollbarSize}},d.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(t,e){return o(),(t=t?d.extend(!0,{},t):{}).isObj=!0,t.index=e||0,this.instance.open(t)},close:function(){return d.magnificPopup.instance&&d.magnificPopup.instance.close()},registerModule:function(t,e){e.options&&(d.magnificPopup.defaults[t]=e.options),d.extend(this.proto,e.proto),this.modules.push(t)},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:'',tClose:"Close (Esc)",tLoading:"Loading..."}},d.fn.magnificPopup=function(t){o();var e=d(this);if("string"==typeof t)if("open"===t){var i,s=k?e.data("magnificPopup"):e[0].magnificPopup,n=parseInt(arguments[1],10)||0;i=s.items?s.items[n]:(i=e,s.delegate&&(i=i.find(s.delegate)),i.eq(n)),g._openClick({mfpEl:i},e,s)}else g.isOpen&&g[t].apply(g,Array.prototype.slice.call(arguments,1));else t=d.extend(!0,{},t),k?e.data("magnificPopup",t):e[0].magnificPopup=t,g.addGroup(e,t);return e};function A(){z&&(S.after(z.addClass(E)).detach(),z=null)}var E,S,z,I="inline";d.magnificPopup.registerModule(I,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){g.types.push(I),h(l+"."+I,function(){A()})},getInline:function(t,e){if(A(),t.src){var i=g.st.inline,s=d(t.src);if(s.length){var n=s[0].parentNode;n&&n.tagName&&(S||(E=i.hiddenClass,S=u(E),E="mfp-"+E),z=s.after(S).detach().removeClass(E)),g.updateStatus("ready")}else g.updateStatus("error",i.tNotFound),s=d("
");return t.inlineElement=s}return g.updateStatus("ready"),g._parseMarkup(e,{},t),e}}});function P(){M&&m.removeClass(M)}function $(){P(),g.req&&g.req.abort()}var M,j="ajax";d.magnificPopup.registerModule(j,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){g.types.push(j),M=g.st.ajax.cursor,h(l+"."+j,$),h("BeforeChange."+j,$)},getAjax:function(n){M&&m.addClass(M),g.updateStatus("loading");var t=d.extend({url:n.src,success:function(t,e,i){var s={data:t,xhr:i};p("ParseAjax",s),g.appendContent(d(s.data),j),n.finished=!0,P(),g._setFocus(),setTimeout(function(){g.wrap.addClass(C)},16),g.updateStatus("ready"),p("AjaxContentAdded")},error:function(){P(),n.finished=n.loadError=!0,g.updateStatus("error",g.st.ajax.tError.replace("%url%",n.src))}},g.st.ajax.settings);return g.req=d.ajax(t),""}}});var D;d.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 t=g.st.image,e=".image";g.types.push("image"),h(_+e,function(){"image"===g.currItem.type&&t.cursor&&m.addClass(t.cursor)}),h(l+e,function(){t.cursor&&m.removeClass(t.cursor),T.off("resize"+b)}),h("Resize"+e,g.resizeImage),g.isLowIE&&h("AfterChange",g.resizeImage)},resizeImage:function(){var t=g.currItem;if(t&&t.img&&g.st.image.verticalFit){var e=0;g.isLowIE&&(e=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",g.wH-e)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,D&&clearInterval(D),t.isCheckingImgSize=!1,p("ImageHasSize",t),t.imgHidden&&(g.content&&g.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(e){var i=0,s=e.img[0],n=function(t){D&&clearInterval(D),D=setInterval(function(){return 0
',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(){g.types.push(H),h("BeforeChange",function(t,e,i){e!==i&&(e===H?O():i===H&&O(!0))}),h(l+"."+H,function(){O()})},getIframe:function(t,e){var i=t.src,s=g.st.iframe;d.each(s.patterns,function(){return-1',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 o=g.st.gallery,t=".mfp-gallery",n=Boolean(d.fn.mfpFastClick);return g.direction=!0,!(!o||!o.enabled)&&(y+=" mfp-gallery",h(_+t,function(){o.navigateByImgClick&&g.wrap.on("click"+t,".mfp-img",function(){return 1=g.index,g.index=t,g.updateItemHTML()},preloadNearbyImages:function(){var t,e=g.st.gallery.preload,i=Math.min(e[0],g.items.length),s=Math.min(e[1],g.items.length);for(t=1;(g.direction?s:i)>=t;t++)g._preloadItem(g.index+t);for(t=1;(g.direction?i:s)>=t;t++)g._preloadItem(g.index-t)},_preloadItem:function(t){if(t=L(t),!g.items[t].preloaded){var e=g.items[t];e.parsed||(e=g.parseEl(t)),p("LazyLoad",e),"image"===e.type&&(e.img=d('').on("load.mfploader",function(){e.hasSize=!0}).on("error.mfploader",function(){e.hasSize=!0,e.loadError=!0,p("LazyLoadError",e)}).attr("src",e.src)),e.preloaded=!0}}}});var F,R,N="retina";function X(){T.off("touchmove"+R+" touchend"+R)}d.magnificPopup.registerModule(N,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(1s&&(s=t.outerHeight(!1)),t.css({display:""})}),i.each(function(){var t=o(this),e=0;"border-box"!==t.css("box-sizing")&&(e+=r(t.css("border-top-width"))+r(t.css("border-bottom-width")),e+=r(t.css("padding-top"))+r(t.css("padding-bottom"))),t.css("height",s-e)})}),this},o.fn.matchHeight._applyDataApi=function(){var i={};o("[data-match-height], [data-mh]").each(function(){var t=o(this),e=t.attr("data-match-height");i[e]=e in i?i[e].add(t):t}),o.each(i,function(){this.matchHeight(!0)})},o.fn.matchHeight._groups=[];var e=-1;o.fn.matchHeight._update=function(t){if(t&&"resize"===t.type){if((t=o(window).width())===e)return;e=t}o.each(o.fn.matchHeight._groups,function(){o.fn.matchHeight._apply(this.elements,this.byRow)})},o(o.fn.matchHeight._applyDataApi),o(window).bind("load resize orientationchange",o.fn.matchHeight._update);var n=function(t){var s=null,n=[];return o(t).each(function(){var t=o(this),e=t.offset().top-r(t.css("margin-top")),i=0").attr("id",i).appendTo(m("body"))),s.addClass("sidr").addClass(e.side).data({speed:e.speed,side:e.side,body:e.body,displace:e.displace,onOpen:e.onOpen,onClose:e.onClose}),"function"==typeof e.source){var n=e.source(i);c(s,n)}else if("string"==typeof e.source&&l(e.source))m.get(e.source,function(t){c(s,t)});else if("string"==typeof e.source){var o="",r=e.source.split(",");if(m.each(r,function(t,e){o+='
'+m(e).html()+"
"}),e.renaming){var a=m("
").html(o);a.find("*").each(function(t,e){var i=m(e);d(i)}),o=a.html()}c(s,o)}else null!==e.source&&m.error("Invalid Sidr Source");return this.each(function(){var t=m(this);t.data("sidr")||(t.data("sidr",i),"ontouchstart"in document.documentElement?(t.bind("touchstart",function(t){t.originalEvent.touches[0],this.touched=t.timeStamp}),t.bind("touchend",function(t){Math.abs(t.timeStamp-this.touched)<200&&(t.preventDefault(),w.toggle(i))})):t.click(function(t){t.preventDefault(),w.toggle(i)}))})}}(jQuery),function(){var P,$;P=this.jQuery||window.jQuery,$=P(window),P.fn.stick_in_parent=function(t){var x,e,k,i,s,T,n,A,E,o,S,z,I;for(null==t&&(t={}),I=t.sticky_class,T=t.inner_scrolling,z=t.recalc_every,S=t.parent,E=t.offset_top,A=t.spacer,k=t.bottoming,null==E&&(E=0),null==S&&(S=void 0),null==T&&(T=!0),null==I&&(I="is_stuck"),x=P(document),null==k&&(k=!0),o=function(t){var e,i;return window.getComputedStyle?(t[0],e=window.getComputedStyle(t[0]),i=parseFloat(e.getPropertyValue("width"))+parseFloat(e.getPropertyValue("margin-left"))+parseFloat(e.getPropertyValue("margin-right")),"border-box"!==e.getPropertyValue("box-sizing")&&(i+=parseFloat(e.getPropertyValue("border-left-width"))+parseFloat(e.getPropertyValue("border-right-width"))+parseFloat(e.getPropertyValue("padding-left"))+parseFloat(e.getPropertyValue("padding-right"))),i):t.outerWidth(!0)},i=function(r,a,l,c,d,h,u,p){var f,t,g,m,v,y,w,_,e,b,C,s;if(!r.data("sticky_kit")){if(r.data("sticky_kit",!0),v=x.height(),w=r.parent(),null!=S&&(w=w.closest(S)),!w.length)throw"failed to find stick parent";if(f=g=!1,(C=null!=A?A&&r.closest(A):P("
"))&&C.css("position",r.css("position")),(_=function(){var t,e,i;if(!p)return v=x.height(),t=parseInt(w.css("border-top-width"),10),e=parseInt(w.css("padding-top"),10),a=parseInt(w.css("padding-bottom"),10),l=w.offset().top+t+e,c=w.height(),g&&(f=g=!1,null==A&&(r.insertAfter(C),C.detach()),r.css({position:"",width:"",bottom:""}).removeClass(I),i=!0),d=r.offset().top-(parseInt(r.css("margin-top"),10)||0)-E,h=r.outerHeight(!0),u=r.css("float"),C&&C.css({width:o(r),height:h,display:r.css("display"),"vertical-align":r.css("vertical-align"),float:u}),i?s():void 0})(),h!==c)return m=void 0,y=E,b=z,s=function(){var t,e,i,s,n,o;if(!p)return i=!1,null!=b&&(b-=1)<=0&&(b=z,_(),i=!0),i||x.height()===v||(_(),i=!0),s=$.scrollTop(),null!=m&&(e=s-m),m=s,g?(k&&(n=c+l",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))}}],i.prototype.initialize=function(){var t,e,i;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&&!0!==this.state.imagesLoaded)&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,i=this.$element.children(e).width(),t.length&&i<=0))return this.preloadAutoWidthImages(t),!1;this.$element.addClass("owl-loading"),this.$stage=l("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('
'),this.$element.append(this.$stage.parent()),this.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")},i.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,s=null;t?(l.each(t,function(t){t<=e&&i").addClass(this.settings.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},i.prototype.update=function(){for(var t=0,e=this._pipe.length,i=l.proxy(function(t){return this[t]},this._invalidated),s={};t",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)):(n=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),o=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),r=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,n+r),o+r)),(8",o[t+1]||e-n)&&(s="left"===this.state.direction?t+1:t),-1===s},this)),this.settings.loop||(this.op(i,">",o[this.minimum()])?s=i=this.minimum():this.op(i,"<",o[this.maximum()])&&(s=i=this.maximum())),s},i.prototype.animate=function(t){this.trigger("translate"),this.state.inMotion=0=i);)e=++n}else e=this._items.length-o.items;return e},i.prototype.minimum=function(t){return t?0:this._clones.length/2},i.prototype.items=function(t){return t===a?this._items.slice():(t=this.normalize(t,!0),this._items[t])},i.prototype.mergers=function(t){return t===a?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},i.prototype.clones=function(i){function s(t){return t%2==0?n+t/2:e-(t+1)/2}var e=this._clones.length/2,n=e+this._items.length;return i===a?l.map(this._clones,function(t,e){return s(e)}):l.map(this._clones,function(t,e){return t===i?s(e):null})},i.prototype.speed=function(t){return t!==a&&(this._speed=t),this._speed},i.prototype.coordinates=function(t){var e=null;return t===a?l.map(this._coordinates,l.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[t-1]||0))/2*(this.settings.rtl?-1:1)):e=this._coordinates[t-1]||0,e)},i.prototype.duration=function(t,e,i){return Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},i.prototype.to=function(t,e){if(this.settings.loop){var i=t-this.relative(this.current()),s=this.current(),n=this.current(),o=this.current()+i,r=n-o<0,a=this._clones.length+this._items.length;o=a-this.settings.items&&!0==r&&(s=n-this._items.length,this.reset(s)),c.clearTimeout(this.e._goToLoop),this.e._goToLoop=c.setTimeout(l.proxy(function(){this.speed(this.duration(this.current(),s+i,e)),this.current(s+i),this.update()},this),30)}else this.speed(this.duration(this.current(),t,e)),this.current(t),this.update()},i.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},i.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},i.prototype.transitionEnd=function(t){return(t===a||(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)===this.$stage.get(0)))&&(this.state.inMotion=!1,void this.trigger("translated"))},i.prototype.viewport=function(){var t;if(this.options.responsiveBaseElement!==c)t=l(this.options.responsiveBaseElement).width();else if(c.innerWidth)t=c.innerWidth;else{if(!o.documentElement||!o.documentElement.clientWidth)throw"Can not detect viewport width.";t=o.documentElement.clientWidth}return t},i.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:l(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(l.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(l.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},i.prototype.add=function(t,e){e=e===a?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})},i.prototype.remove=function(t){(t=this.normalize(t,!0))!==a&&(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}))},i.prototype.addTriggerableEvents=function(){var i=l.proxy(function(e,i){return l.proxy(function(t){t.relatedTarget!==this&&(this.suppress([i]),e.apply(this,[].slice.call(arguments,1)),this.release([i]))},this)},this);l.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},l.proxy(function(t,e){this.$element.on(t+".owl.carousel",i(e,t+".owl.carousel"))},this))},i.prototype.watchVisibility=function(){function t(t){return 0=i.length&&(n.state.imagesLoaded=!0,n.initialize())},r.src=o.attr("src")||o.attr("data-src")||o.attr("data-src-retina")})},i.prototype.destroy=function(){for(var t in this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),!1!==this.settings.responsive&&l(c).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd),this._plugins)this._plugins[t].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),l(o).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()},i.prototype.op=function(t,e,i){var s=this.settings.rtl;switch(e){case"<":return s?i":return s?t=":return s?t<=i:i<=t;case"<=":return s?i<=t:t<=i}},i.prototype.on=function(t,e,i,s){t.addEventListener?t.addEventListener(e,i,s):t.attachEvent&&t.attachEvent("on"+e,i)},i.prototype.off=function(t,e,i,s){t.removeEventListener?t.removeEventListener(e,i,s):t.detachEvent&&t.detachEvent("on"+e,i)},i.prototype.trigger=function(t,e,i){var s={item:{count:this._items.length,index:this.current()}},n=l.camelCase(l.grep(["on",t,i],function(t){return t}).join("-").toLowerCase()),o=l.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},s,e));return this._supress[t]||(l.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(o)}),this.$element.trigger(o),this.settings&&"function"==typeof this.settings[n]&&this.settings[n].apply(this,o)),o},i.prototype.suppress=function(t){l.each(t,l.proxy(function(t,e){this._supress[e]=!0},this))},i.prototype.release=function(t){l.each(t,l.proxy(function(t,e){delete this._supress[e]},this))},i.prototype.browserSupport=function(){if(this.support3d=t(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0],this.support3d){this.transformVendor=t(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0];this.transitionEndVendor=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"][t(["transition","WebkitTransition","MozTransition","OTransition"])[1]],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=c.orientation},l.fn.owlCarousel=function(t){return this.each(function(){l(this).data("owlCarousel")||l(this).data("owlCarousel",new i(this,t))})},l.fn.owlCarousel.Constructor=i}(window.Zepto||window.jQuery,window,document),function(a,o){var e=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":a.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var e=this._core.settings,i=e.center&&Math.ceil(e.items/2)||e.items,s=e.center&&-1*i||0,n=(t.property&&t.property.value||this._core.current())+s,o=this._core.clones().length,r=a.proxy(function(t,e){this.load(e)},this);s++
',s=c.lazyLoad?'
':'
',e.after(s),e.after('
')}var s,n,o=t.width&&t.height?'style="width:'+t.width+"px;height:"+t.height+'px;"':"",r=e.find("img"),a="src",l="",c=this._core.settings;return e.wrap('
"),this._core.settings.lazyLoad&&(a="data-src",l="owl-lazy"),r.length?(i(r.attr(a)),r.remove(),!1):void("youtube"===t.type?(n="http://img.youtube.com/vi/"+t.id+"/hqdefault.jpg",i(n)):"vimeo"===t.type&&d.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t[0].thumbnail_large,i(n)}}))},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(t){this._core.trigger("play",null,"video"),this._playing&&this.stop();var e,i,s=d(t.target||t.srcElement),n=s.closest("."+this._core.settings.itemClass),o=this._videos[n.attr("data-video")],r=o.width||"100%",a=o.height||this._core.$stage.height();"youtube"===o.type?e='':"vimeo"===o.type&&(e=''),n.addClass("owl-video-playing"),this._playing=n,i=d('
'+e+"
"),s.after(i)},s.prototype.isInFullScreen=function(){var t=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return t&&d(t).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),!(t&&this._fullscreen&&this._playing)&&(this._fullscreen?this._fullscreen=!1:!this._playing||this._core.state.orientation===e.orientation||(this._core.state.orientation=e.orientation,!1))},s.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},d.fn.owlCarousel.Constructor.Plugins.Video=s}(window.Zepto||window.jQuery,window,document),function(r,t,e,i){var s=function(t){this.core=t,this.core.options=r.extend({},s.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":r.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":r.proxy(function(t){this.swapping="translated"==t.type},this),"translate.owl.carousel":r.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};s.Defaults={animateOut:!1,animateIn:!1},s.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var t,e=r.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),s=this.core.$stage.children().eq(this.next),n=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.css({left:t+"px"}).addClass("animated owl-animated-out").addClass(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e)),n&&s.addClass("animated owl-animated-in").addClass(n).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e))}},s.prototype.clear=function(t){r(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},s.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)},r.fn.owlCarousel.Constructor.Plugins.Animate=s}(window.Zepto||window.jQuery,window,document),function(e,i,t){var s=function(t){this.core=t,this.core.options=e.extend({},s.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":e.proxy(function(){this.autoplay()},this),"play.owl.autoplay":e.proxy(function(t,e,i){this.play(e,i)},this),"stop.owl.autoplay":e.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":e.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?(i.clearInterval(this.interval),this.interval=i.setInterval(e.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):i.clearInterval(this.interval)},s.prototype.play=function(){return!0===t.hidden||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:!1===this.core.settings.autoplay?void i.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},s.prototype.stop=function(){i.clearInterval(this.interval)},s.prototype.pause=function(){i.clearInterval(this.interval)},s.prototype.destroy=function(){var t,e;for(t in i.clearInterval(this.interval),this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=s}(window.Zepto||window.jQuery,window,document),function(o){"use strict";var e=function(t){this._core=t,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":o.proxy(function(t){this._core.settings.dotsData&&this._templates.push(o(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":o.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,0,o(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":o.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"change.owl.carousel":o.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?i<=e?s:i:t.property.value").addClass(i.dotClass).append(o("")).prop("outerHTML")]),i.navContainer&&i.dotsContainer||(this._controls.$container=o("
").addClass(i.controlsClass).appendTo(this.$element)),this._controls.$indicators=i.dotsContainer?o(i.dotsContainer):o("
").hide().addClass(i.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",o.proxy(function(t){var e=o(t.target).parent().is(this._controls.$indicators)?o(t.target).index():o(t.target).parent().index();t.preventDefault(),this.to(e,i.dotsSpeed)},this)),t=i.navContainer?o(i.navContainer):o("
").addClass(i.navContainerClass).prependTo(this._controls.$container),this._controls.$next=o("<"+i.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(i.navClass[0]).html(i.navText[0]).hide().prependTo(t).on("click",o.proxy(function(){this.prev(i.navSpeed)},this)),this._controls.$next.addClass(i.navClass[1]).html(i.navText[1]).hide().appendTo(t).on("click",o.proxy(function(){this.next(i.navSpeed)},this)),this._overrides)this._core[e]=o.proxy(this[e],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=this._core.settings,s=this._core.clones().length/2,n=s+this._core.items().length,o=i.center||i.autoWidth||i.dotData?1:i.dotsEach||i.items;if("page"!==i.slideBy&&(i.slideBy=Math.min(i.slideBy,i.items)),i.dots||"page"==i.slideBy)for(this._pages=[],t=s,e=0;t=this._core.maximum())),this._controls.$previous.toggle(s.nav),this._controls.$next.toggle(s.nav),s.dots){if(t=this._pages.length-this._controls.$indicators.children().length,s.dotData&&0!=t){for(e=0;e=e}).pop()},e.prototype.getPosition=function(t){var e,i,s=this._core.settings;return"page"==s.slideBy?(e=o.inArray(this.current(),this._pages),i=this._pages.length,t?++e:--e,e=this._pages[(e%i+i)%i].start):(e=this._core.relative(this._core.current()),i=this._core.items().length,t?e+=s.slideBy:e-=s.slideBy),e},e.prototype.next=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},e.prototype.prev=function(t){o.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},e.prototype.to=function(t,e,i){var s;i?o.proxy(this._overrides.to,this._core)(t,e):(s=this._pages.length,o.proxy(this._overrides.to,this._core)(this._pages[(t%s+s)%s].start,e))},o.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(i,s){"use strict";var e=function(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":i.proxy(function(){"URLHash"==this._core.settings.startPosition&&i(s).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":i.proxy(function(t){var e=i(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");this._hashes[e]=t.content},this)},this._core.options=i.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),i(s).on("hashchange.owl.navigation",i.proxy(function(){var t=s.location.hash.substring(1),e=this._core.$stage.children(),i=this._hashes[t]&&e.index(this._hashes[t])||0;return!!t&&void this._core.to(i,!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var t,e;for(t in i(s).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},i.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(t){var e,n,i,s=navigator.userAgent;function o(t){var e,i,s=t.parentNode;"PICTURE"===s.nodeName.toUpperCase()?(e=n.cloneNode(),s.insertBefore(e,s.firstElementChild),setTimeout(function(){s.removeChild(e)})):(!t._pfLastSize||t.offsetWidth>t._pfLastSize)&&(t._pfLastSize=t.offsetWidth,i=t.sizes,t.sizes+=",100vw",setTimeout(function(){t.sizes=i}))}function r(){var t,e=document.querySelectorAll("picture > img, img[srcset][sizes]");for(t=0;t=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"}),function(t,e){var i;if(!(t in S))if(S[t]=!1,e&&(i=t.match(R)))S[t]=i[1]*P[i[2]];else try{S[t]=new Function("e",N(t))(P)}catch(t){}return S[t]}),at=function(t){if(a){var e,i,s,n=t||{};if(n.elements&&1===n.elements.nodeType&&("IMG"===n.elements.nodeName.toUpperCase()?n.elements=[n.elements]:(n.context=n.elements,n.elements=null)),s=(e=n.elements||w.qsa(n.context||o,n.reevaluate||n.reselect?w.sel:w.selShort)).length){for(w.setupRun(n),M=!0,i=0;iimg,img[srcset]",w.sel=w.selShort,w.cfg=_,w.DPR=I||1,w.u=P,w.types=g,w.setSize=e,w.makeUrl=s(function(t){return $.href=t,$.href}),w.qsa=function(t,e){return"querySelector"in t?t.querySelectorAll(e):[]},w.matchesMedia=function(){return t.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?w.matchesMedia=function(t){return!t||matchMedia(t).matches}:w.matchesMedia=w.mMQ,w.matchesMedia.apply(this,arguments)},w.mMQ=function(t){return!t||rt(t)},w.calcLength=function(t){var e=rt(t,!0)||!1;return e<0&&(e=!1),e},w.supportsType=function(t){return!t||g[t]},w.parseSize=s(function(t){var e=(t||"").match(k);return{media:e&&e[1],length:e&&e[2]}}),w.parseSet=function(t){return t.cands||(t.cands=function(s,h){function t(t){var e,i=t.exec(s.substring(r));if(i)return e=i[0],r+=e.length,e}var u,p,e,i,n,o=s.length,r=0,f=[];function a(){var t,e,i,s,n,o,r,a,l,c=!1,d={};for(s=0;sy)||(l.cached=!0,l.res>=y&&(r=l))),!r)for(t.sort(lt),r=t[(o=t.length)-1],s=0;s=y){r=t[n=s-1]&&(d||a!==w.makeUrl(i.url))&&(h=t[n].res,u=i.res,p=y,f=t[n].cached,m=g=void 0,p<("saveData"===_.algorithm?2.7',''],responsive:{0:{items:1,nav:!0,autoWidth:!0},600:{items:2,autoWidth:!0},768:{items:3,autoWidth:!1},1024:{items:e,autoWidth:!1}}})}A(document).ready(function(){1==parseInt(vce_js_settings.rtl_mode)?vce_js_settings.rtl_mode=!0:vce_js_settings.rtl_mode=!1;var s,t={0:{items:1,nav:!0,autoWidth:!0},600:{items:2,autoWidth:!0},768:{items:3,autoWidth:!0},1024:{items:3,autoWidth:!0},1920:{items:5,autoWidth:!0}},e=vce_js_settings.grid_slider_autoplay;function d(t){t.find(".vce-post-slider").each(function(){var t=1e3*parseInt(A(this).attr("data-autoplay")),e=!!t;A(this).owlCarousel({loop:!0,nav:!0,rtl:vce_js_settings.rtl_mode,autoplay:e,autoplayTimeout:t,autoplayHoverPause:!0,center:!0,fluidSpeed:100,items:1,navText:['','']})})}function h(t){var e=t.find(".vce-image-format");e.length&&e.magnificPopup({type:"image",zoom:{enabled:!0,duration:300,opener:function(t){return t.find("img")}}})}function u(t){var e=t.find(".vce-gallery-big, .wp-block-gallery");e.length&&e.magnificPopup({type:"image",delegate:"a",gallery:{enabled:!0},zoom:{enabled:!0,duration:300,opener:function(t){return t.find("img")}},image:{titleSrc:function(t){var e=t.el.closest(".big-gallery-item, .blocks-gallery-item").find(".gallery-caption, figcaption");return"undefined"!=e?e.text():""}}})}function p(t){A("body").imagesLoaded(function(){t.find(".gallery .vce-gallery-slider, .wp-block-gallery.columns-1").each(function(){var t=A(this);t.owlCarousel({margin:1,loop:!0,rtl:vce_js_settings.rtl_mode,nav:!0,mouseDrag:!1,center:!1,autoHeight:!0,fluidSpeed:100,navText:['',''],items:t.attr("data-columns")?t.attr("data-columns"):1,autoWidth:!1})})})}function f(t){if(1024<=A(window).width()){if(0',''],responsive:t}),A(".vce-featured-full-slider").owlCarousel({loop:!0,nav:!0,rtl:vce_js_settings.rtl_mode,autoplay:vce_js_settings.full_slider_autoplay,autoplaySpeed:500,autoplayTimeout:vce_js_settings.full_slider_autoplay,autoplayHoverPause:!0,center:!0,items:1,navText:['','']}),d(A(".site-content")),h(A(".site-content")),u(A(".site-content")),A("body").on("click",".vce-gallery-slider a",function(t){t.preventDefault();var e=A(this).closest(".gallery-item").attr("data-item"),i=A(this).closest(".gallery").find(".vce-gallery-big");i.find(".big-gallery-item").fadeOut(400),i.find(".item-"+e).fadeIn(400)}),p(A(".site-content")),s=A("body").hasClass("vce-sid-none")?{b:2,cdf:3,e:7,h:3}:{b:1,cdf:2,e:5,h:2},A(".vce-slider-pagination.vce-slider-a, .vce-slider-pagination.vce-slider-g").each(function(){var t;t=A(this).attr("data-autoplay"),A(this).owlCarousel({loop:!0,autoHeight:!1,rtl:vce_js_settings.rtl_mode,autoWidth:!0,nav:!0,autoplay:t,autoplaySpeed:500,autoplayTimeout:t,autoplayHoverPause:!0,fluidSpeed:100,navText:['',''],responsive:{0:{items:1,nav:!0,autoWidth:!1,margin:10},600:{items:1,autoWidth:!1},768:{items:1,margin:20,autoWidth:!1},1023:{items:1,autoWidth:!1,margin:20}}})}),A(".vce-slider-pagination.vce-slider-b").each(function(){var t;t=A(this).attr("data-autoplay"),A(this).owlCarousel({loop:!0,autoHeight:!1,autoWidth:!0,rtl:vce_js_settings.rtl_mode,nav:!0,fluidSpeed:100,autoplay:t,autoplaySpeed:500,autoplayTimeout:t,autoplayHoverPause:!0,navText:['',''],responsive:{0:{items:1,nav:!0,autoWidth:!1,margin:10},600:{items:1,autoWidth:!1},768:{items:1,margin:20,autoWidth:!1},1023:{items:s.b,autoWidth:!1,margin:20}}})}),A(".vce-slider-pagination.vce-slider-c, .vce-slider-pagination.vce-slider-d, .vce-slider-pagination.vce-slider-f").each(function(){var t,e,i;e=A(this).parent().parent().hasClass("main-box-half")?t=1:(t=s.cdf,2),i=A(this).attr("data-autoplay"),A(this).owlCarousel({loop:!0,autoHeight:!1,rtl:vce_js_settings.rtl_mode,autoWidth:!0,nav:!0,fluidSpeed:100,autoplay:i,autoplaySpeed:500,autoplayTimeout:i,autoplayHoverPause:!0,navText:['',''],responsive:{0:{items:1,nav:!0,autoWidth:!1,margin:10},670:{items:e,margin:18,autoWidth:!1},768:{items:e,margin:15,autoWidth:!1},1023:{items:t,autoWidth:!1,margin:19}}})}),A(this).attr("data-autoplay"),A(".vce-slider-pagination.vce-slider-e").each(function(){var t;t=A(this).attr("data-autoplay"),A(this).owlCarousel({loop:!0,autoHeight:!1,autoWidth:!0,rtl:vce_js_settings.rtl_mode,nav:!0,fluidSpeed:100,autoplay:t,autoplaySpeed:500,autoplayTimeout:t,autoplayHoverPause:!0,navText:['',''],responsive:{0:{items:2,nav:!0,autoWidth:!1,margin:5},600:{items:3,margin:18,autoWidth:!1},768:{items:5,margin:15,autoWidth:!1},1023:{items:s.e,autoWidth:!1,margin:19}}})}),A(".vce-slider-pagination.vce-slider-h").each(function(){var t;t=A(this).attr("data-autoplay"),A(this).owlCarousel({loop:!0,autoHeight:!1,autoWidth:!0,rtl:vce_js_settings.rtl_mode,nav:!0,fluidSpeed:100,autoplay:t,autoplaySpeed:500,autoplayTimeout:t,autoplayHoverPause:!0,navText:['',''],responsive:{0:{items:1,nav:!0,autoWidth:!1,margin:10},600:{items:1,autoWidth:!1},768:{items:2,margin:20,autoWidth:!1},1023:{items:s.h,autoWidth:!1,margin:20}}})});var i=A(window).width();function n(){var t=".alignfull, .vce-sid-left .alignwide, .vce-sid-right .alignwide { max-width: "+A(".main-box").width()+"px; position: relative; -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%); width: 100vw; left: 50%; }";A("#voice-full-fix").length?A("#voice-full-fix").html(t):A("head").append('")}if(A(window).on("resize",function(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement||(i!==A(window).width()&&(A(window).width()<1024?A("#content .sidebar.left").is(":last-child")||A(".sidebar.left").insertAfter(".vce-main-content"):(A("#content .sidebar.left").is(":first-child")||A(".sidebar.left").insertBefore(".vce-main-content"),A("body").hasClass("sidr-main-open")&&(A.sidr("close","sidr-main"),A(this).removeClass("nav-open"))),i=A(window).width()),f())}),A(window).width()<1024&&A(".sidebar.left").length?A("#content .sidebar.left").is(":last-child")||A(".sidebar.left").insertAfter(".vce-main-content"):A("#content .sidebar.left").is(":first-child")||A(".sidebar.left").insertBefore(".vce-main-content"),A("body").imagesLoaded(function(){A(".vce-mega-menu-posts-wrap .mega-menu-link").matchHeight(),A(".vce-slider-c .vce-lay-c,.vce-slider-e .vce-lay-e").matchHeight(),f()}),n(),A(".entry-content, .meta-media").fitVids({customSelector:["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']","iframe[src*='ipcamlive.com']"].join(","),ignore:'[class^="wp-block"]'}),A("body").on("mouseenter",".vce-featured-header .vce-hover-effect",function(){A(".vce-featured-header .vce-featured-header-background").animate({opacity:vce_js_settings.fa_big_opacity[2]},100)}),A("body").on("mouseleave",".vce-featured-header .vce-hover-effect",function(){A(".vce-featured-header .vce-featured-header-background").animate({opacity:vce_js_settings.fa_big_opacity[1]},100)}),A(".nav-menu li").on("mouseenter mouseleave",function(t){A(this).find("ul").length&&(A(window).width()-(A(this).find("ul").offset().left+A(this).find("ul").outerWidth())<0?A(this).find("ul").addClass("vce-rev"):A(this).find("ul").removeClass("vce-rev"))}),A("#vce-responsive-nav").sidr({name:"sidr-main",source:"#site-navigation",speed:100}),0!=vce_js_settings.top_bar_mobile){var o=A("#sidr-id-vce_main_navigation_menu");if(A("#vce_top_navigation_menu").length){var r=A("#vce_top_navigation_menu").children().clone(),a=A('
  • ').append(''+vce_js_settings.top_bar_more_link+"");A(".sidr-class-search-header-wrap").length?0!=vce_js_settings.top_bar_mobile_group?a.append(A('
      ').append(r)).insertBefore(o.find(".sidr-class-search-header-wrap")):r.insertBefore(o.find(".sidr-class-search-header-wrap")):0!=vce_js_settings.top_bar_mobile_group?o.append(r):a.append(A('
        ').append(r))}if(A("#vce_social_menu").length){var l=A("#vce_social_menu").clone().addClass("clear");o.append(A("
      • ").append(l))}}A(".sidr-class-vce-mega-menu-wrapper li").length&&A(".sidr-class-vce-mega-menu-wrapper").css("display","none").closest("li").addClass("sidr-class-menu-item-has-children");if(A("body").on("click",".vce-responsive-nav",function(){A(this).hasClass("nav-open")?(A.sidr("close","sidr-main"),A(this).removeClass("nav-open")):(A.sidr("open","sidr-main"),A(this).addClass("nav-open"))}),A("#main-wrapper").on("click",function(){A("body").hasClass("sidr-open")&&(A.sidr("close","sidr-main"),A(".vce-responsive-nav").removeClass("nav-open"))}),A(".sidr ul li").each(function(){A(this).hasClass("sidr-class-menu-item-has-children")&&A(this).append('')}),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(A(".vce-menu-parent").on("touchstart",function(t){A(this).prev().slideToggle(),A(this).parent().toggleClass("sidr-class-current_page_item")}),A(".soc_sharing").on("click",function(){A(this).toggleClass("soc_active")})):A(".vce-menu-parent").on("click",function(t){A(this).prev().slideToggle(),A(this).parent().toggleClass("sidr-class-current_page_item")}),A("body").on("click",".vce-single .entry-meta .comments a, body.single .vce-featured .entry-meta .comments a",function(t){t.preventDefault();var e=A(this).closest(".site-content"),i=this.hash,s=e.find(i);A("html, body").stop().animate({scrollTop:s.offset().top},900,"swing",function(){window.location.hash=i})}),A(".vce-infinite-scroll").length||A(".vce-load-more").length||A(".vce-infinite-scroll-single").length){var g=[],m=0,v=0,c={prev:window.location.href,next:"",offset:A(window).scrollTop(),prev_title:window.document.title,next_title:window.document.title};g.push(c),window.history.pushState(c,"",window.location.href);var y,w=0;A(window).scroll(function(){g[m].offset!=y&&A(window).scrollTop()g[v].offset&&(w=g[v].offset,y=0,window.document.title=g[v].next_title,window.history.replaceState(g,"",g[v].next),(m=v)").load(l,function(){var t=_.toString(),i=o.closest(".main-box-inside").find(".vce-loop-wrap"),s=A(this).find(".vce-loop-wrap .vce-post").addClass("vce-new-"+t),n=A(this);s.imagesLoaded(function(){if(s.hide().appendTo(i).fadeIn(400),n.find(".vce-load-more").length?o.closest(".main-box-inside").find(".vce-load-more").html(n.find(".vce-load-more").html()):o.closest(".main-box-inside").find(".vce-load-more").fadeOut("fast").remove(),l!=window.location){m++,v++;var t=n.find("title").text(),e={prev:r,next:l,offset:A(window).scrollTop(),prev_title:a,next_title:t};g.push(e),window.document.title=t,window.history.pushState(e,"",l)}return _++,f(!0),!1})})});var b=!0;A(".vce-infinite-scroll").length&&A(window).scroll(function(){if(b&&A(".vce-infinite-scroll").length&&A(this).scrollTop()>A(".vce-infinite-scroll").offset().top-A(this).height()-200){var o=A(".vce-infinite-scroll a"),r=o.attr("href"),a=window.location.href,l=window.document.title;void 0!==r&&(o.parent().animate({opacity:1,height:32},300).css("padding","20px"),b=!1,A("
        ").load(r,function(){var t=_.toString(),i=o.closest(".main-box-inside").find(".vce-loop-wrap"),s=A(this).find(".vce-loop-wrap .vce-post").addClass("vce-new-"+t),n=A(this);s.imagesLoaded(function(){if(s.hide().appendTo(i).fadeIn(400),n.find(".vce-infinite-scroll").length?(o.closest(".main-box-inside").find(".vce-infinite-scroll").html(n.find(".vce-infinite-scroll").html()).animate({opacity:0,height:0},300).css("padding","0"),b=!0):o.closest(".main-box-inside").find(".vce-infinite-scroll").fadeOut("fast").remove(),r!=window.location){m++,v++;var t=n.find("title").text(),e={prev:a,next:r,offset:A(window).scrollTop(),prev_title:l,next_title:t};g.push(e),window.document.title=t,window.history.pushState(e,"",r)}return _++,f(!0),!1})}))}});var C=!0,x=0;if(A(".vce-infinite-scroll-single").length&&A(window).scroll(function(){if(C&&A(".vce-infinite-scroll-single").length&&A(this).scrollTop()>A(".vce-infinite-scroll-single").offset().top-A(this).height()-100){var r=A(".vce-infinite-scroll-single a"),a=r.attr("href"),l=window.location.href,c=window.document.title;void 0!==a&&(r.parent().animate({opacity:1,height:32},300).css("padding","0 0 20px"),C=!1,A("
        ").load(a,function(){var t=x.toString(),i=r.closest("#main-wrapper").find(".site-content").last(),s=A(this).find(".site-content").last().addClass("vce-new-"+t),n=A(this).find(".vce-featured").last().addClass("vce-featured-opacity vce-featured-"+t);n.find(".vce-featured-info").addClass("vce-info-opacity");var o=A(this);s.imagesLoaded(function(){if(n.hasClass("vce-featured-opacity")?(n.hide().insertAfter(i).fadeIn(400),s.hide().insertAfter(n).fadeIn(400)):s.hide().insertAfter(i).fadeIn(400),A("body").removeClass("vce-sid-none","vce-sid-left","vce-sid-right"),h(s),u(s),p(s),d(s),o.find(".vce-infinite-scroll-single").length?(r.closest("#main-wrapper").find(".vce-infinite-scroll-single").html(o.find(".vce-infinite-scroll-single").html()).animate({opacity:0,height:0},300).css("padding","0"),C=!0):r.closest("#main-wrapper").find(".vce-infinite-scroll-single").fadeOut("fast").remove(),a!=window.location){m++,v++;var t=o.find("title").text(),e={prev:l,next:a,offset:A(window).scrollTop(),prev_title:c,next_title:t};g.push(e),window.document.title=t,window.history.pushState(e,"",a)}return x++,f(),!1})}))}}),A("body").on("click",".widget_nav_menu .menu-item-has-children, .widget_pages .page_item_has_children",function(){A(this).find("ul.sub-menu:first, ul.children:first").slideToggle("fast")}),A("body").on("click",".search_header",function(){A(this).find("i").toggleClass("fa-times","fa-search"),A(this).toggleClass("vce-item-selected"),A(this).parent().toggleClass("vce-zoomed"),A(this).next().find(".search-input").focus()}),A(window).scroll(function(){400k?(A("body").addClass("sticky-active"),A("#sticky_header").addClass("header-is-sticky")):(A("body").removeClass("sticky-active"),A("#sticky_header").removeClass("header-is-sticky")):(A("body").addClass("sticky-active"),function(){var i=A(window).scrollTop(),s=A("#header").outerHeight();A(window).scroll(function(t){var e=A(this).scrollTop();i ul"))}})}}):vce_js_settings.mega_menu_slider&&A("#header .vce-mega-menu-posts-wrap > ul").each(function(){E(A(this))}),A(window).resize(function(){n()})})}(jQuery);