");return i.inlineElement=r,r}return e.updateStatus("ready"),e._parseMarkup(n,{},i),n}}});var b,w=function(){b&&t(document.body).removeClass(b)},x=function(){w(),e.req&&e.req.abort()};t.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'
The content could not be loaded.'},proto:{initAjax:function(){e.types.push("ajax"),b=e.st.ajax.cursor,h("Close.ajax",x),h("BeforeChange.ajax",x)},getAjax:function(i){b&&t(document.body).addClass(b),e.updateStatus("loading");var n=t.extend({url:i.src,success:function(n,o,r){var s={data:n,xhr:r};d("ParseAjax",s),e.appendContent(t(s.data),"ajax"),i.finished=!0,w(),e._setFocus(),setTimeout((function(){e.wrap.addClass("mfp-ready")}),16),e.updateStatus("ready"),d("AjaxContentAdded")},error:function(){w(),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(n),""}}});var C,k,S=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var n=e.st.image.titleSrc;if(n){if(t.isFunction(n))return n.call(e,i);if(i.el)return i.el.attr(n)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'
The image could not be loaded.'},proto:{initImage:function(){var i=e.st.image,n=".image";e.types.push("image"),h("Open"+n,(function(){"image"===e.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)})),h("Close"+n,(function(){i.cursor&&t(document.body).removeClass(i.cursor),c.off("resize.mfp")})),h("Resize"+n,e.resizeImage),e.isLowIE&&h("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,C&&clearInterval(C),t.isCheckingImgSize=!1,d("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,n=t.img[0],o=function(r){C&&clearInterval(C),C=setInterval((function(){n.naturalWidth>0?e._onImageHasSize(t):(i>200&&clearInterval(C),3==++i?o(10):40===i?o(50):100===i&&o(500))}),r)};o(1)},getImage:function(i,n){var o=0,r=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,d("ImageLoadComplete")):++o<200?setTimeout(r,100):s())},s=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=n.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=t(c).on("load.mfploader",r).on("error.mfploader",s),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),(c=i.img[0]).naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return e._parseMarkup(n,{title:S(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(C&&clearInterval(C),i.loadError?(n.addClass("mfp-loading"),e.updateStatus("error",a.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),e.updateStatus("ready")),n):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),e.findImageSize(i)),n)}}}),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,n=".zoom";if(i.enabled&&e.supportsTransition){var o,r,s=i.duration,a=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return o["-webkit-"+r]=o["-moz-"+r]=o["-o-"+r]=o[r]=n,e.css(o),e},l=function(){e.content.css("visibility","visible")};h("BuildControls"+n,(function(){if(e._allowZoom()){if(clearTimeout(o),e.content.css("visibility","hidden"),!(t=e._getItemToZoom()))return void l();(r=a(t)).css(e._getOffset()),e.wrap.append(r),o=setTimeout((function(){r.css(e._getOffset(!0)),o=setTimeout((function(){l(),setTimeout((function(){r.remove(),t=r=null,d("ZoomAnimationEnded")}),16)}),s)}),16)}})),h("BeforeClose"+n,(function(){if(e._allowZoom()){if(clearTimeout(o),e.st.removalDelay=s,!t){if(!(t=e._getItemToZoom()))return;r=a(t)}r.css(e._getOffset(!0)),e.wrap.append(r),e.content.css("visibility","hidden"),setTimeout((function(){r.css(e._getOffset())}),16)}})),h("Close"+n,(function(){e._allowZoom()&&(l(),r&&r.remove(),t=null)}))}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(i){var n,o=(n=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem)).offset(),r=parseInt(n.css("padding-top"),10),s=parseInt(n.css("padding-bottom"),10);o.top-=t(window).scrollTop()-r;var a={width:n.width(),height:(l?n.innerHeight():n[0].offsetHeight)-s-r};return void 0===k&&(k=void 0!==document.createElement("p").style.MozTransform),k?a["-moz-transform"]=a.transform="translate("+o.left+"px,"+o.top+"px)":(a.left=o.left,a.top=o.top),a}}});var E=function(t){if(e.currTemplate.iframe){var i=e.currTemplate.iframe.find("iframe");i.length&&(t||(i[0].src="//about:blank"),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule("iframe",{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push("iframe"),h("BeforeChange",(function(t,e,i){e!==i&&("iframe"===e?E():"iframe"===i&&E(!0))})),h("Close.iframe",(function(){E()}))},getIframe:function(i,n){var o=i.src,r=e.st.iframe;t.each(r.patterns,(function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1}));var s={};return r.srcAction&&(s[r.srcAction]=o),e._parseMarkup(n,s,i),e.updateStatus("ready"),n}}});var T=function(t){var i=e.items.length;return t>i-1?t-i:t<0?i+t:t},_=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'
',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=e.st.gallery,o=".mfp-gallery";if(e.direction=!0,!i||!i.enabled)return!1;r+=" mfp-gallery",h("Open"+o,(function(){i.navigateByImgClick&&e.wrap.on("click"+o,".mfp-img",(function(){if(e.items.length>1)return e.next(),!1})),n.on("keydown"+o,(function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()}))})),h("UpdateStatus"+o,(function(t,i){i.text&&(i.text=_(i.text,e.currItem.index,e.items.length))})),h("MarkupParse"+o,(function(t,n,o,r){var s=e.items.length;o.counter=s>1?_(i.tCounter,r.index,s):""})),h("BuildControls"+o,(function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var n=i.arrowMarkup,o=e.arrowLeft=t(n.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),r=e.arrowRight=t(n.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");o.click((function(){e.prev()})),r.click((function(){e.next()})),e.container.append(o.add(r))}})),h("Change"+o,(function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout((function(){e.preloadNearbyImages(),e._preloadTimeout=null}),16)})),h("Close"+o,(function(){n.off(o),e.wrap.off("click"+o),e.arrowRight=e.arrowLeft=null}))},next:function(){e.direction=!0,e.index=T(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=T(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,n=Math.min(i[0],e.items.length),o=Math.min(i[1],e.items.length);for(t=1;t<=(e.direction?o:n);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?n:o);t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=T(i),!e.items[i].preloaded){var n=e.items[i];n.parsed||(n=e.parseEl(i)),d("LazyLoad",n),"image"===n.type&&(n.img=t('
').on("load.mfploader",(function(){n.hasSize=!0})).on("error.mfploader",(function(){n.hasSize=!0,n.loadError=!0,d("LazyLoadError",n)})).attr("src",n.src)),n.preloaded=!0}}}}),t.magnificPopup.registerModule("retina",{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)>1&&(h("ImageHasSize.retina",(function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})})),h("ElementParse.retina",(function(e,n){n.src=t.replaceSrc(n,i)})))}}}}),f()})?n.apply(e,o):n)||(t.exports=r)},function(t,e){
!function(){"use strict";var t=0,e={};function i(n){if(!n)throw new Error("No options passed to Waypoint constructor");if(!n.element)throw new Error("No element option passed to Waypoint constructor");if(!n.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=i.Adapter.extend({},i.defaults,n),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=n.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,t+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var i=[];for(var n in e)i.push(e[n]);for(var o=0,r=i.length;o
n.oldScroll?n.forward:n.backward;for(var r in this.waypoints[i]){var s=this.waypoints[i][r];if(null!==s.triggerPoint){var a=n.oldScroll=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(o),t[s.group.id]=s.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},r.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},r.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},r.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},r.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,o=t.length;n-1&&(p=Math.ceil(s.contextDimension*p/100))),l=s.contextScroll-s.contextOffset,d.triggerPoint=Math.floor(m+l-p),c=f=s.oldScroll,u=!c&&!h,!g&&(c&&h)?(d.queueTrigger(s.backward),o[d.group.id]=d.group):(!g&&u||g&&s.oldScroll>=d.triggerPoint)&&(d.queueTrigger(s.forward),o[d.group.id]=d.group)}}return n.requestAnimationFrame((function(){for(var t in o)o[t].flushTriggers()})),this},r.findOrCreateByElement=function(t){return r.findByElement(t)||new r(t)},r.refreshAll=function(){for(var t in i)i[t].refresh()},r.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){o&&o(),r.refreshAll()},n.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},n.Context=r}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var i={vertical:{},horizontal:{}},n=window.Waypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var n=this.triggerQueues[i],o="up"===i||"left"===i;n.sort(o?e:t);for(var r=0,s=n.length;r-1&&this.waypoints.splice(e,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(t){return i[t.axis][t.name]||new o(t)},n.Group=o}(),function(){"use strict";var t=window.jQuery,e=window.Waypoint;function i(e){this.$element=t(e)}t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(t,e){i.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}})),t.each(["extend","inArray","isEmptyObject"],(function(e,n){i[n]=t[n]})),e.adapters.push({name:"jquery",Adapter:i}),e.Adapter=i}(),function(){"use strict";var t=window.Waypoint;function e(e){return function(){var i=[],n=arguments[0];return e.isFunction(arguments[0])&&((n=e.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var o=e.extend({},n,{element:this});"string"==typeof o.context&&(o.context=e(this).closest(o.context)[0]),i.push(new t(o))})),i}}window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}()},function(t,e){!function(t,e,i){function n(e,i){this.bodyOverflowX,this.callbacks={hide:[],show:[]},this.checkInterval=null,this.Content,this.$el=t(e),this.$elProxy,this.elProxyPosition,this.enabled=!0,this.options=t.extend({},a,i),this.mouseIsOverProxy=!1,this.namespace="tooltipster-"+Math.round(1e5*Math.random()),this.Status="hidden",this.timerHide=null,this.timerShow=null,this.$tooltip,this.options.iconTheme=this.options.iconTheme.replace(".",""),this.options.theme=this.options.theme.replace(".",""),this._init()}function o(e,i){var n=!0;return t.each(e,(function(t,o){if(void 0===i[t]||e[t]!==i[t])return n=!1,!1})),n}function r(){return!c&&l}function s(){var t=(i.body||i.documentElement).style,e="transition";if("string"==typeof t[e])return!0;v=["Moz","Webkit","Khtml","O","ms"],e=e.charAt(0).toUpperCase()+e.substr(1);for(var n=0;n'),e.$elProxy.text(e.options.icon)):e.options.iconCloning?e.$elProxy=e.options.icon.clone(!0):e.$elProxy=e.options.icon,e.$elProxy.insertAfter(e.$el)):e.$elProxy=e.$el,"hover"==e.options.trigger?(e.$elProxy.on("mouseenter."+e.namespace,(function(){r()&&!e.options.touchDevices||(e.mouseIsOverProxy=!0,e._show())})).on("mouseleave."+e.namespace,(function(){r()&&!e.options.touchDevices||(e.mouseIsOverProxy=!1)})),l&&e.options.touchDevices&&e.$elProxy.on("touchstart."+e.namespace,(function(){e._showNow()}))):"click"==e.options.trigger&&e.$elProxy.on("click."+e.namespace,(function(){r()&&!e.options.touchDevices||e._show()}))}},_show:function(){var t=this;"shown"!=t.Status&&"appearing"!=t.Status&&(t.options.delay?t.timerShow=setTimeout((function(){("click"==t.options.trigger||"hover"==t.options.trigger&&t.mouseIsOverProxy)&&t._showNow()}),t.options.delay):t._showNow())},_showNow:function(i){var n=this;n.options.functionBefore.call(n.$el,n.$el,(function(){if(n.enabled&&null!==n.Content){i&&n.callbacks.show.push(i),n.callbacks.hide=[],clearTimeout(n.timerShow),n.timerShow=null,clearTimeout(n.timerHide),n.timerHide=null,n.options.onlyOne&&t(".tooltipstered").not(n.$el).each((function(e,i){var n=t(i),o=n.data("tooltipster-ns");t.each(o,(function(t,e){var i=n.data(e),o=i.status(),r=i.option("autoClose");"hidden"!==o&&"disappearing"!==o&&r&&i.hide()}))}));var o=function(){n.Status="shown",t.each(n.callbacks.show,(function(t,e){e.call(n.$el)})),n.callbacks.show=[]};if("hidden"!==n.Status){var r=0;"disappearing"===n.Status?(n.Status="appearing",s()?(n.$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-"+n.options.animation+"-show"),n.options.speed>0&&n.$tooltip.delay(n.options.speed),n.$tooltip.queue(o)):n.$tooltip.stop().fadeIn(o)):"shown"===n.Status&&o()}else{n.Status="appearing";r=n.options.speed;n.bodyOverflowX=t("body").css("overflow-x"),t("body").css("overflow-x","hidden");var a="tooltipster-"+n.options.animation,c="-webkit-transition-duration: "+n.options.speed+"ms; -webkit-animation-duration: "+n.options.speed+"ms; -moz-transition-duration: "+n.options.speed+"ms; -moz-animation-duration: "+n.options.speed+"ms; -o-transition-duration: "+n.options.speed+"ms; -o-animation-duration: "+n.options.speed+"ms; -ms-transition-duration: "+n.options.speed+"ms; -ms-animation-duration: "+n.options.speed+"ms; transition-duration: "+n.options.speed+"ms; animation-duration: "+n.options.speed+"ms;",h=n.options.minWidth?"min-width:"+Math.round(n.options.minWidth)+"px;":"",u=n.options.maxWidth?"max-width:"+Math.round(n.options.maxWidth)+"px;":"",d=n.options.interactive?"pointer-events: auto;":"";if(n.$tooltip=t(''),s()&&n.$tooltip.addClass(a),n._content_insert(),n.$tooltip.appendTo("body"),n.reposition(),n.options.functionReady.call(n.$el,n.$el,n.$tooltip),s()?(n.$tooltip.addClass(a+"-show"),n.options.speed>0&&n.$tooltip.delay(n.options.speed),n.$tooltip.queue(o)):n.$tooltip.css("display","none").fadeIn(n.options.speed,o),n._interval_set(),t(e).on("scroll."+n.namespace+" resize."+n.namespace,(function(){n.reposition()})),n.options.autoClose)if(t("body").off("."+n.namespace),"hover"==n.options.trigger){if(l&&setTimeout((function(){t("body").on("touchstart."+n.namespace,(function(){n.hide()}))}),0),n.options.interactive){l&&n.$tooltip.on("touchstart."+n.namespace,(function(t){t.stopPropagation()}));var p=null;n.$elProxy.add(n.$tooltip).on("mouseleave."+n.namespace+"-autoClose",(function(){clearTimeout(p),p=setTimeout((function(){n.hide()}),n.options.interactiveTolerance)})).on("mouseenter."+n.namespace+"-autoClose",(function(){clearTimeout(p)}))}else n.$elProxy.on("mouseleave."+n.namespace+"-autoClose",(function(){n.hide()}));n.options.hideOnClick&&n.$elProxy.on("click."+n.namespace+"-autoClose",(function(){n.hide()}))}else"click"==n.options.trigger&&(setTimeout((function(){t("body").on("click."+n.namespace+" touchstart."+n.namespace,(function(){n.hide()}))}),0),n.options.interactive&&n.$tooltip.on("click."+n.namespace+" touchstart."+n.namespace,(function(t){t.stopPropagation()})))}n.options.timer>0&&(n.timerHide=setTimeout((function(){n.timerHide=null,n.hide()}),n.options.timer+r))}}))},_interval_set:function(){var e=this;e.checkInterval=setInterval((function(){if(0===t("body").find(e.$el).length||0===t("body").find(e.$elProxy).length||"hidden"==e.Status||0===t("body").find(e.$tooltip).length)"shown"!=e.Status&&"appearing"!=e.Status||e.hide(),e._interval_cancel();else if(e.options.positionTracker){var i=e._repositionInfo(e.$elProxy),n=!1;o(i.dimension,e.elProxyPosition.dimension)&&("fixed"===e.$elProxy.css("position")?o(i.position,e.elProxyPosition.position)&&(n=!0):o(i.offset,e.elProxyPosition.offset)&&(n=!0)),n||(e.reposition(),e.options.positionTrackerCallback.call(e,e.$el))}}),200)},_interval_cancel:function(){clearInterval(this.checkInterval),this.checkInterval=null},_content_set:function(t){"object"==typeof t&&null!==t&&this.options.contentCloning&&(t=t.clone(!0)),this.Content=t},_content_insert:function(){var t=this,e=this.$tooltip.find(".tooltipster-content");"string"!=typeof t.Content||t.options.contentAsHTML?e.empty().append(t.Content):e.text(t.Content)},_update:function(t){var e=this;e._content_set(t),null!==e.Content?"hidden"!==e.Status&&(e._content_insert(),e.reposition(),e.options.updateAnimation&&(s()?(e.$tooltip.css({width:"","-webkit-transition":"all "+e.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-moz-transition":"all "+e.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-o-transition":"all "+e.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-ms-transition":"all "+e.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms",transition:"all "+e.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms"}).addClass("tooltipster-content-changing"),setTimeout((function(){"hidden"!=e.Status&&(e.$tooltip.removeClass("tooltipster-content-changing"),setTimeout((function(){"hidden"!==e.Status&&e.$tooltip.css({"-webkit-transition":e.options.speed+"ms","-moz-transition":e.options.speed+"ms","-o-transition":e.options.speed+"ms","-ms-transition":e.options.speed+"ms",transition:e.options.speed+"ms"})}),e.options.speed))}),e.options.speed)):e.$tooltip.fadeTo(e.options.speed,.5,(function(){"hidden"!=e.Status&&e.$tooltip.fadeTo(e.options.speed,1)})))):e.hide()},_repositionInfo:function(t){return{dimension:{height:t.outerHeight(!1),width:t.outerWidth(!1)},offset:t.offset(),position:{left:parseInt(t.css("left")),top:parseInt(t.css("top"))}}},hide:function(i){var n=this;i&&n.callbacks.hide.push(i),n.callbacks.show=[],clearTimeout(n.timerShow),n.timerShow=null,clearTimeout(n.timerHide),n.timerHide=null;var o=function(){t.each(n.callbacks.hide,(function(t,e){e.call(n.$el)})),n.callbacks.hide=[]};if("shown"==n.Status||"appearing"==n.Status){n.Status="disappearing";var r=function(){n.Status="hidden","object"==typeof n.Content&&null!==n.Content&&n.Content.detach(),n.$tooltip.remove(),n.$tooltip=null,t(e).off("."+n.namespace),t("body").off("."+n.namespace).css("overflow-x",n.bodyOverflowX),t("body").off("."+n.namespace),n.$elProxy.off("."+n.namespace+"-autoClose"),n.options.functionAfter.call(n.$el,n.$el),o()};s()?(n.$tooltip.clearQueue().removeClass("tooltipster-"+n.options.animation+"-show").addClass("tooltipster-dying"),n.options.speed>0&&n.$tooltip.delay(n.options.speed),n.$tooltip.queue(r)):n.$tooltip.stop().fadeOut(n.options.speed,r)}else"hidden"==n.Status&&o();return n},show:function(t){return this._showNow(t),this},update:function(t){return this.content(t)},content:function(t){return void 0===t?this.Content:(this._update(t),this)},reposition:function(){var i=this;if(0!==t("body").find(i.$tooltip).length){i.$tooltip.css("width",""),i.elProxyPosition=i._repositionInfo(i.$elProxy);var n=null,o=t(e).width(),r=i.elProxyPosition,s=i.$tooltip.outerWidth(!1),a=(i.$tooltip.innerWidth(),i.$tooltip.outerHeight(!1));if(i.$elProxy.is("area")){var l=i.$elProxy.attr("shape"),c=i.$elProxy.parent().attr("name"),h=t('img[usemap="#'+c+'"]'),u=h.offset().left,d=h.offset().top,p=void 0!==i.$elProxy.attr("coords")?i.$elProxy.attr("coords").split(","):void 0;if("circle"==l){var f=parseInt(p[0]),m=parseInt(p[1]),g=parseInt(p[2]);r.dimension.height=2*g,r.dimension.width=2*g,r.offset.top=d+m-g,r.offset.left=u+f-g}else if("rect"==l){f=parseInt(p[0]),m=parseInt(p[1]);var v=parseInt(p[2]),y=parseInt(p[3]);r.dimension.height=y-m,r.dimension.width=v-f,r.offset.top=d+m,r.offset.left=u+f}else if("poly"==l){for(var b=0,w=0,x=0,C=0,k="even",S=0;Sx&&(x=E,0===S&&(b=x)),EC&&(C=E,1==S&&(w=C)),Eo&&(n=T-(o+i-s),T=o+i-s)}function D(i,n){r.offset.top-t(e).scrollTop()-a-I-12<0&&n.indexOf("top")>-1&&(A=i),r.offset.top+r.dimension.height+a+12+I>t(e).scrollTop()+t(e).height()&&n.indexOf("bottom")>-1&&(A=i,j=r.offset.top-a-I-12)}if("top"==A){var L=r.offset.left+s-(r.offset.left+r.dimension.width);T=r.offset.left+P-L/2,j=r.offset.top-a-I-12,O(),D("bottom","top")}if("top-left"==A&&(T=r.offset.left+P,j=r.offset.top-a-I-12,O(),D("bottom-left","top-left")),"top-right"==A&&(T=r.offset.left+r.dimension.width+P-s,j=r.offset.top-a-I-12,O(),D("bottom-right","top-right")),"bottom"==A){L=r.offset.left+s-(r.offset.left+r.dimension.width);T=r.offset.left-L/2+P,j=r.offset.top+r.dimension.height+I+12,O(),D("top","bottom")}if("bottom-left"==A&&(T=r.offset.left+P,j=r.offset.top+r.dimension.height+I+12,O(),D("top-left","bottom-left")),"bottom-right"==A&&(T=r.offset.left+r.dimension.width+P-s,j=r.offset.top+r.dimension.height+I+12,O(),D("top-right","bottom-right")),"left"==A){T=r.offset.left-P-s-12,_=r.offset.left+P+r.dimension.width+12;var Q=r.offset.top+a-(r.offset.top+r.dimension.height);if(j=r.offset.top-Q/2-I,T<0&&_+s>o){var M=2*parseFloat(i.$tooltip.css("border-width")),z=s+T-M;i.$tooltip.css("width",z+"px"),a=i.$tooltip.outerHeight(!1),T=r.offset.left-P-z-12-M,Q=r.offset.top+a-(r.offset.top+r.dimension.height),j=r.offset.top-Q/2-I}else T<0&&(T=r.offset.left+P+r.dimension.width+12,n="left")}if("right"==A){T=r.offset.left+P+r.dimension.width+12,_=r.offset.left-P-s-12;Q=r.offset.top+a-(r.offset.top+r.dimension.height);if(j=r.offset.top-Q/2-I,T+s>o&&_<0){M=2*parseFloat(i.$tooltip.css("border-width")),z=o-T-M;i.$tooltip.css("width",z+"px"),a=i.$tooltip.outerHeight(!1),Q=r.offset.top+a-(r.offset.top+r.dimension.height),j=r.offset.top-Q/2-I}else T+s>o&&(T=r.offset.left-P-s-12,n="right")}if(i.options.arrow){var F="tooltipster-arrow-"+A;if(i.options.arrowColor.length<1)var B=i.$tooltip.css("background-color");else B=i.options.arrowColor;if(n?"left"==n?(F="tooltipster-arrow-right",n=""):"right"==n?(F="tooltipster-arrow-left",n=""):n="left:"+Math.round(n)+"px;":n="","top"==A||"top-left"==A||"top-right"==A)var W=parseFloat(i.$tooltip.css("border-bottom-width")),H=i.$tooltip.css("border-bottom-color");else if("bottom"==A||"bottom-left"==A||"bottom-right"==A)W=parseFloat(i.$tooltip.css("border-top-width")),H=i.$tooltip.css("border-top-color");else if("left"==A)W=parseFloat(i.$tooltip.css("border-right-width")),H=i.$tooltip.css("border-right-color");else if("right"==A)W=parseFloat(i.$tooltip.css("border-left-width")),H=i.$tooltip.css("border-left-color");else W=parseFloat(i.$tooltip.css("border-bottom-width")),H=i.$tooltip.css("border-bottom-color");W>1&&W++;var N="";if(0!==W){var R="",$="border-color: "+H+";";-1!==F.indexOf("bottom")?R="margin-top: -"+Math.round(W)+"px;":-1!==F.indexOf("top")?R="margin-bottom: -"+Math.round(W)+"px;":-1!==F.indexOf("left")?R="margin-right: -"+Math.round(W)+"px;":-1!==F.indexOf("right")&&(R="margin-left: -"+Math.round(W)+"px;"),N=''}i.$tooltip.find(".tooltipster-arrow").remove();var V=''+N+'
';i.$tooltip.append(V)}i.$tooltip.css({top:Math.round(j)+"px",left:Math.round(T)+"px"})}return i},enable:function(){return this.enabled=!0,this},disable:function(){return this.hide(),this.enabled=!1,this},destroy:function(){var e=this;e.hide(),e.$el[0]!==e.$elProxy[0]&&e.$elProxy.remove(),e.$el.removeData(e.namespace).off("."+e.namespace);var i=e.$el.data("tooltipster-ns");if(1===i.length){var n=null;"previous"===e.options.restoration?n=e.$el.data("tooltipster-initialTitle"):"current"===e.options.restoration&&(n="string"==typeof e.Content?e.Content:t("").append(e.Content).html()),n&&e.$el.attr("title",n),e.$el.removeClass("tooltipstered").removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else i=t.grep(i,(function(t,i){return t!==e.namespace})),e.$el.data("tooltipster-ns",i);return e},elementIcon:function(){return this.$el[0]!==this.$elProxy[0]?this.$elProxy[0]:void 0},elementTooltip:function(){return this.$tooltip?this.$tooltip[0]:void 0},option:function(t,e){return void 0===e?this.options[t]:(this.options[t]=e,this)},status:function(){return this.Status}},t.fn.tooltipster=function(){var e=arguments;if(0===this.length){if("string"==typeof e[0]){var i=!0;switch(e[0]){case"setDefaults":t.extend(a,e[1]);break;default:i=!1}return!!i||this}return this}if("string"==typeof e[0]){var o="#*$~&";return this.each((function(){var i=t(this).data("tooltipster-ns"),n=i?t(this).data(i[0]):null;if(!n)throw new Error("You called Tooltipster's \""+e[0]+'" method on an uninitialized element');if("function"!=typeof n[e[0]])throw new Error('Unknown method .tooltipster("'+e[0]+'")');var r=n[e[0]](e[1],e[2]);if(r!==n)return o=r,!1})),"#*$~&"!==o?o:this}var r=[],s=e[0]&&void 0!==e[0].multiple,l=s&&e[0].multiple||!s&&a.multiple,c=e[0]&&void 0!==e[0].debug,h=c&&e[0].debug||!c&&a.debug;return this.each((function(){var i=!1,o=t(this).data("tooltipster-ns"),s=null;o?l?i=!0:h&&console.log('Tooltipster: one or more tooltips are already attached to this element: ignoring. Use the "multiple" option to attach more tooltips.'):i=!0,i&&(s=new n(this,e[0]),o||(o=[]),o.push(s.namespace),t(this).data("tooltipster-ns",o),t(this).data(s.namespace,s)),r.push(s)})),l?r:this};var l=!!("ontouchstart"in e),c=!1;t("body").one("mousemove",(function(){c=!0}))}(jQuery,window,document)},function(t,e,i){"use strict";(function(t){var e=i(4),n=i.n(e);t.Flatsome={behaviors:{},plugin:function(t,e,i){i=i||{},jQuery.fn[t]=function(o){if("string"==typeof arguments[0]){var r=null,s=arguments[0],a=Array.prototype.slice.call(arguments,1);return this.each((function(){if(!jQuery.data(this,"plugin_"+t)||"function"!=typeof jQuery.data(this,"plugin_"+t)[s])throw new Error("Method "+s+" does not exist on jQuery."+t);r=jQuery.data(this,"plugin_"+t)[s].apply(this,a)})),"destroy"===s&&this.each((function(){jQuery(this).removeData("plugin_"+t)})),void 0!==r?r:this}if("object"===n()(o)||!o)return this.each((function(){jQuery.data(this,"plugin_"+t)||(o=jQuery.extend({},i,o),jQuery.data(this,"plugin_"+t,new e(this,o)))}))}},behavior:function(t,e){this.behaviors[t]=e,e.arrive&&jQuery(document).arrive(e.arrive.selector,e.arrive.handler||function(){Flatsome.attach(t,this.parentNode)})},attach:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if("string"==typeof t)return this.behaviors.hasOwnProperty(t)&&"function"==typeof this.behaviors[t].attach?this.behaviors[t].attach(e||document):null;for(var i in this.behaviors)"function"==typeof this.behaviors[i].attach&&this.behaviors[i].attach(e||document)},detach:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if("string"==typeof t)return this.behaviors.hasOwnProperty(t)&&"function"==typeof this.behaviors[t].detach?this.behaviors[t].detach(e||document):null;for(var i in this.behaviors)"function"==typeof this.behaviors[i].detach&&this.behaviors[i].detach(e||document)}}}).call(this,i(0))},function(t,e){var i=jQuery("#wrapper"),n=jQuery("#header"),o=jQuery(".header-top",n),r=jQuery("#wpadminbar"),s=r.length?r.height():0,a=n.hasClass("has-sticky"),l=n.hasClass("sticky-hide-on-scroll"),c=-jQuery(".header-wrapper").height()-100,h=o.hasClass("hide-for-sticky")?-o.height()-1:-1;if(jQuery(".sticky-shrink .header-wrapper").length){var u=o.hasClass("hide-for-sticky")?o.height():0;c=-1-u+s,h=-1-u}if(a&&(n.find(".header-wrapper").waypoint((function(t){var e=jQuery(this.element),i=n.height();"down"===t&&(e.addClass("stuck"),n.height(i),jQuery(".has-transparent").removeClass("transparent"),jQuery(".toggle-nav-dark").removeClass("nav-dark"))}),{offset:c}),i.waypoint((function(t){"up"===t&&(n.height(""),jQuery(".header-wrapper").removeClass("stuck"),jQuery(".has-transparent").addClass("transparent"),jQuery(".toggle-nav-dark").addClass("nav-dark"))}),{offset:h+s}),l)){var d,p=0;jQuery(window).scroll((function(){clearTimeout(d);var t=jQuery(window).scrollTop(),e=jQuery(".header-wrapper");t>=e.outerHeight()&&(t<=p?(e.addClass("stuck"),n.removeClass("sticky-hide-on-scroll--active")):(e.removeClass("stuck"),n.addClass("sticky-hide-on-scroll--active"))),d=setTimeout((function(){p=jQuery(window).scrollTop()}),100)}))}},function(t,e,i){"use strict";(function(t){var e=i(2),n=i.n(e);i(38);n()(),t.objectFitImages=n.a}).call(this,i(0))},function(t,e){!function(t,e){"use strict";if("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype)"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var i=[];o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},o.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},o.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,i){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==i[e-1]}))},o.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(r(t,"resize",this._checkForIntersections,!0),r(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),i=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var r=o.element,s=a(r),l=this._rootContainsTarget(r),c=o.entry,h=e&&l&&this._computeTargetAndRootIntersection(r,i),u=o.entry=new n({time:t.performance&&performance.now&&performance.now(),target:r,boundingClientRect:s,rootBounds:i,intersectionRect:h});c?e&&l?this._hasCrossedThreshold(c,u)&&this._queuedEntries.push(u):c&&c.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(i,n){if("none"!=t.getComputedStyle(i).display){for(var o,r,s,l,h,u,d,p,f=a(i),m=c(i),g=!1;!g;){var v=null,y=1==m.nodeType?t.getComputedStyle(m):{};if("none"==y.display)return;if(m==this.root||m==e?(g=!0,v=n):m!=e.body&&m!=e.documentElement&&"visible"!=y.overflow&&(v=a(m)),v&&(o=v,r=f,s=void 0,l=void 0,h=void 0,u=void 0,d=void 0,p=void 0,s=Math.max(o.top,r.top),l=Math.min(o.bottom,r.bottom),h=Math.max(o.left,r.left),u=Math.min(o.right,r.right),p=l-s,!(f=(d=u-h)>=0&&p>=0&&{top:s,bottom:l,left:h,right:u,width:d,height:p})))break;m=c(m)}return f}},o.prototype._getRootRect=function(){var t;if(this.root)t=a(this.root);else{var i=e.documentElement,n=e.body;t={top:0,left:0,right:i.clientWidth||n.clientWidth,width:i.clientWidth||n.clientWidth,bottom:i.clientHeight||n.clientHeight,height:i.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,i){return"px"==e.unit?e.value:e.value*(i%2?t.width:t.height)/100})),i={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return i.width=i.right-i.left,i.height=i.bottom-i.top,i},o.prototype._hasCrossedThreshold=function(t,e){var i=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(i!==n)for(var o=0;oo||u.top+r.offsetHeight<0)return;switch(i){case"backgroundImage":y=u.top*n,e.style.backgroundPosition=n?"50% ".concat(y.toFixed(0),"px"):null,e.style.backgroundAttachment=n?"fixed":null;break;case"backgroundElement":y=m*n-s/2,e.style.transform=n?"translate3d(0, ".concat(y.toFixed(2),"px, 0)"):null,e.style.backfaceVisibility=n?"hidden":null;break;case"element":y=g*n,e.style.transform=n?"translate3d(0, ".concat(y.toFixed(2),"px, 0)"):null,e.style.backfaceVisibility=n?"hidden":null,void 0!==e.dataset.parallaxFade&&(e.style.opacity=n?(b=1-v,b*(2-b)).toFixed(2):null)}var b}(t)}function s(t){return void 0!==t.dataset.parallaxBackground?"backgroundElement":void 0!==t.dataset.parallaxElemenet?"element":""!==t.style.backgroundImage?"backgroundImage":"element"}function a(){return document.documentElement.scrollTop||document.body.scrollTop}function l(t){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;for(;t&&!c(t).call(t,e);)t=t.parentElement;return t}(t,t.dataset.parallaxContainer||"[data-parallax-container]")||t}function c(t){return t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector}function h(t){return t/10*-1/(2-Math.abs(t)/10)}window.addEventListener("scroll",(function(){return window.requestAnimationFrame(o)})),window.addEventListener("resize",(function(){return window.requestAnimationFrame(o)})),window.addEventListener("DOMNodeInserted",(function(){return window.requestAnimationFrame(o)})),window.jQuery&&(window.jQuery.fn.flatsomeParallax=function(t){"destroy"!==t&&this.each((function(t,e){return function(t){t.classList.add("parallax-active"),!document.querySelector("body").classList.contains("parallax-mobile")&&/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)||t.classList&&t.dataset&&(n.push({element:t,type:s(t)}),r(n[n.length-1]))}(e)}))})},function(t,e){Flatsome.plugin("resizeselect",(function(t,e){jQuery(t).change((function(){var t=jQuery(this),e=t.find("option:selected").val(),i=t.find("option:selected").text(),n=jQuery('').html(i);n.appendTo(t.parent());var o=n.width();n.remove(),t.width(o+7),e&&t.parent().parent().find("input.search-field").focus()})).change()}))},function(t,e,i){"use strict";var n=i(5),o=i.n(n);jQuery(".section .loading-spin, .banner .loading-spin, .page-loader").fadeOut(),jQuery("#top-link").on("click",(function(t){jQuery.scrollTo(0,300),t.preventDefault()})),jQuery(".scroll-for-more").on("click",(function(){jQuery.scrollTo(jQuery(this),{duration:300})})),jQuery(".search-dropdown button").on("click",(function(t){jQuery(this).parent().find("input").trigger("focus"),t.preventDefault()})),jQuery(".current-cat").addClass("active"),jQuery("html").removeClass("loading-site"),setTimeout((function(){jQuery(".page-loader").remove()}),1e3),jQuery(".resize-select").resizeselect(),flatsomeVars.user.can_edit_pages&&jQuery(".block-edit-link").each((function(){var t=jQuery(this),e=t.data("link"),i=t.data("backend"),n=t.data("title"),o=t.parents('[id^="menu-item-"]');if(o.length&&o.hasClass("menu-item-has-block")){var r=o.attr("id").match(/menu-item-(\d+)/);r&&r[1]&&(e+="&menu_id=".concat(r[1]))}jQuery(this).next().addClass("has-block").tooltipster({animationDuration:100,distance:-15,delay:0,repositionOnScroll:!0,interactive:!0,contentAsHTML:!0,content:n+'
UX Builder WP Editor'}),jQuery(this).remove()})),document.addEventListener("uxb_app_ready",(function(){var t=new URLSearchParams(window.top.location.search),e=parseInt(t.get("menu_id"));e&&setTimeout((function(){var t=jQuery("#menu-item-".concat(e));t.hasClass("menu-item-has-block has-dropdown")&&!t.hasClass("current-dropdown")&&jQuery("#menu-item-".concat(e," a:first")).trigger("click")}),1e3)})),jQuery("#hotspot").on("click",(function(t){t.preventDefault()})),jQuery(".wpcf7-form .wpcf7-submit").on("click",(function(){jQuery(this).parent().parent().addClass("processing")})),jQuery(document).ajaxComplete((function(t,e,i){jQuery(".processing").removeClass("processing")})),jQuery((function(){o()()}))},function(t,e){Flatsome.behavior("animate",{attach:function(t){jQuery("[data-animate]",t).each((function(t,e){var i=jQuery(e);if(0===i.data("animate").length)return i.attr("data-animated","true");i.waypoint((function(t){if("down"===t){if("true"==i.data("animated"))return;setTimeout((function(){i.attr("data-animated","true")}),300)}}),{offset:"101%"})}))},detach:function(t){jQuery("[data-animate]",t).each((function(t,e){jQuery(e).attr("data-animated","false")}))}})},function(t,e){Flatsome.behavior("commons",{attach:function(t){jQuery("select.resizeselect").resizeselect(),jQuery("[data-parallax]",t).flatsomeParallax(),jQuery.fn.packery&&(jQuery("[data-packery-options], .has-packery",t).each((function(){var t=jQuery(this);t.packery(),setTimeout((function(){t.imagesLoaded((function(){t.packery("layout")}))}),100)})),jQuery(".banner-grid-wrapper").imagesLoaded((function(){jQuery(this.elements).removeClass("processing")})))},detach:function(t){}})},function(t,e,i){"use strict";var n=i(6),o=i.n(n);Flatsome.behavior("count-up",{attach:function(t){jQuery("span.count-up",t).each((function(t,e){var i=jQuery(e);i.waypoint({handler:function(t){if(!jQuery(this.element).hasClass("active")){var e=parseInt(i.text());new o.a(i.get(0),0,e,0,4).start(),i.addClass("active")}},offset:"100%"})}))}})},function(t,e,i){"use strict";(function(t){var e=i(7),n=i.n(e);function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function r(t){for(var e=1;em&&pn&&i.addClass("nav-dropdown-full")}if(a){var v=document.querySelector(".header-inner").getBoundingClientRect(),y=i.get(0).getBoundingClientRect();i.css(r(r({width:n},c&&{right:-(v.right-y.right)}),!c&&{left:v.left-y.left}))}if(s){var b=document.body,w=b.getBoundingClientRect(),x=i.get(0).getBoundingClientRect(),C=b.clientWidth;i.css(r(r({width:C},c&&{right:-(w.right-x.right)-15}),!c&&{left:w.left-x.left-15}))}if(a||s){var k=null;if(o.closest("#top-bar").length&&(k=document.querySelector("#top-bar")),o.closest("#masthead").length&&(k=document.querySelector("#masthead")),o.closest("#wide-nav").length&&(k=document.querySelector("#wide-nav")),null!==k){var S=k.getBoundingClientRect(),E=o.get(0).getBoundingClientRect();i.css({top:S.bottom-E.bottom+E.height})}}}(e.find(".nav-dropdown"))}function a(t){t.removeClass("current-dropdown"),t.find(".nav-dropdown").attr("style","")}function l(t){t.each((function(t,e){var i=jQuery(e);i.hasClass("current-dropdown")&&a(i)}))}function c(t,e){t.length&&t.removeClass("ux-body-overlay--".concat(e,"-active"))}Flatsome.behavior("dropdown",{attach:function(t){var e=jQuery(".nav li.has-dropdown",t),i="uxBuilder"===jQuery("html").attr("ng-app"),n=jQuery(".ux-body-overlay"),o="ontouchstart"in window,r=!1,h=null;e.each((function(t,u){var d=jQuery(u),p=d.hasClass("nav-dropdown-toggle")&&!o,f=!1,m=!1;d.on("touchstart click",(function(t){"touchstart"===t.type&&(f=!0),"click"===t.type&&f&&(f&&!m&&t.preventDefault(),m=!0)})),i||p?(r=!0,d.on("click","a:first",(function(t){if(t.preventDefault(),h=d,d.hasClass("current-dropdown"))return a(d),void c(n,"click");l(e),s(d),function(t,e){if(!t.length)return;t.addClass("ux-body-overlay--".concat(e,"-active"))}(n,"click")}))):d.hoverIntent({sensitivity:3,interval:20,timeout:70,over:function(t){l(e),s(d),c(n,"click")},out:function(){m=!1,f=!1,a(d)}})})),!i&&r&&jQuery(document).on("click",(function(t){null===h||h===t.target||h.has(t.target).length||(a(h),c(n,"click"))}))}})}).call(this,i(0))},function(t,e){Flatsome.behavior("lightbox-gallery",{attach:function(t){var e={delegate:"a",type:"image",closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,tLoading:'',removalDelay:300,gallery:{enabled:!0,navigateByImgClick:!0,arrowMarkup:'',preload:[0,1]},image:{tError:'The image #%curr% could not be loaded.',verticalFit:!1}};jQuery('.lightbox .gallery a[href*=".jpg"], .lightbox .gallery a[href*=".jpeg"], .lightbox a.lightbox-gallery',t).parent().magnificPopup(e),jQuery(".lightbox .lightbox-multi-gallery",t).length&&jQuery(".lightbox-multi-gallery",t).each((function(){jQuery(this).magnificPopup(e)}))}})},function(t,e){Flatsome.behavior("lightbox-image",{attach:function(t){jQuery(['.lightbox *[id^="attachment"] a[href*=".jpg"]','.lightbox *[id^="attachment"] a[href*=".jpeg"]','.lightbox .wp-block-image a[href*=".jpg"]:not([target="_blank"])','.lightbox .wp-block-image a[href*=".jpeg"]:not([target="_blank"])',".lightbox a.image-lightbox",'.lightbox .entry-content a[href*=".jpg"]','.lightbox .entry-content a[href*=".jpeg"]'].join(","),t).not([".lightbox a.lightbox-gallery",'.lightbox .gallery a[href*=".jpg"]','.lightbox .gallery a[href*=".jpeg"]','.lightbox .lightbox-multi-gallery a[href*=".jpg"]','.lightbox .lightbox-multi-gallery a[href*=".jpeg"]'].join(",")).magnificPopup({type:"image",tLoading:'',closeOnContentClick:!0,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,removalDelay:300,image:{verticalFit:!1}})}})},function(t,e){Flatsome.behavior("lightboxes-link",{attach:function(t){jQuery(".lightbox-by-id",t).each((function(){var e=jQuery(this).attr("id");jQuery('a[href="#'+e+'"]',t).on("click",(function(t){var e=jQuery(t.currentTarget).attr("href").substring(1),i=jQuery("#".concat(e,".lightbox-by-id"));if(e&&i.length>0){var n=i[0],o=jQuery.magnificPopup.open?300:0;o&&jQuery.magnificPopup.close(),setTimeout((function(){jQuery.magnificPopup.open({removalDelay:300,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,items:{src:n,type:"inline",tLoading:''},callbacks:{open:function(){if(Flatsome.attach(this.content),jQuery.fn.flickity){var t=jQuery("[data-flickity-options]",this.content);t&&t.imagesLoaded((function(){t.flickity("resize")}))}if(jQuery.fn.packery){var e=jQuery("[data-packery-options]",this.content);e&&e.imagesLoaded((function(){e.packery("layout")}))}}}})}),o),t.preventDefault()}}))}))}})},function(t,e){Flatsome.behavior("lightbox-video",{attach:function(t){jQuery('a.open-video, a.button[href*="vimeo"], a.button[href*="youtube.com/watch"]',t).magnificPopup({type:"iframe",closeBtnInside:flatsomeVars.lightbox.close_btn_inside,mainClass:"my-mfp-video",closeMarkup:flatsomeVars.lightbox.close_markup,tLoading:'',removalDelay:300,preloader:!0,callbacks:{open:function(){jQuery(".slider .is-selected .video").trigger("pause")},close:function(){jQuery(".slider .is-selected .video").trigger("play")}}})}})},function(t,e){Flatsome.behavior("lightboxes",{attach:function(t){jQuery("[data-open]",t).on("click",(function(t){var e=jQuery(t.currentTarget),i=e.data("open"),n=e.data("color"),o=e.data("bg"),r=e.data("pos"),s=e.data("visible-after"),a=e.data("class"),l=e.attr("data-focus");e.offset();e.addClass("current-lightbox-clicked"),jQuery.magnificPopup.open({items:{src:i,type:"inline",tLoading:''},removalDelay:300,closeBtnInside:flatsomeVars.lightbox.close_btn_inside,closeMarkup:flatsomeVars.lightbox.close_markup,focus:l,callbacks:{beforeOpen:function(){this.st.mainClass="off-canvas ".concat(n," off-canvas-").concat(r)},open:function(){jQuery("html").addClass("has-off-canvas"),jQuery("html").addClass("has-off-canvas-"+r),a&&jQuery(".mfp-content").addClass(a),o&&jQuery(".mfp-bg").addClass(o),jQuery(".mfp-content .resize-select").change(),jQuery.fn.packery&&jQuery("[data-packery-options], .has-packery").packery("layout")},beforeClose:function(){jQuery("html").removeClass("has-off-canvas")},afterClose:function(){jQuery("html").removeClass("has-off-canvas-"+r),jQuery(".current-lightbox-clicked").removeClass("current-lightbox-clicked"),s&&jQuery(i).removeClass("mfp-hide")}}}),t.preventDefault()}))}})},function(t,e){Flatsome.behavior("slider",{attach:function(t){(jQuery(t).data("flickityOptions")?jQuery(t):jQuery("[data-flickity-options]",t)).each((function(t,e){var i=jQuery(e),n=i.closest(".slider-wrapper"),o=i.data("flickity-options");if("undefined"!=typeof UxBuilder&&(o.draggable=!1),!0!==o.watchCSS){i.on("ready.flickity",(function(){i.find(".flickity-slider > :not(.is-selected) .video-bg").trigger("pause"),i.find(".is-selected .video-bg").trigger("play"),"requestAnimationFrame"in window&&(i.removeClass("flickity-enabled"),window.requestAnimationFrame((function(){i.addClass("flickity-enabled")})))}));var r=i.flickity(o);if(i.imagesLoaded((function(){n.find(".loading-spin").fadeOut()})),i.on("change.flickity",(function(){i.find(".flickity-slider > :not(.is-selected) .video-bg").trigger("pause"),i.find(".is-selected .video-bg").trigger("play")})),i.on("dragStart.flickity",(function(){document.ontouchmove=function(t){return t.preventDefault()},i.addClass("is-dragging")})),i.on("dragEnd.flickity",(function(){document.ontouchmove=function(){return!0},i.removeClass("is-dragging")})),o.parallax){var s=r.data("flickity"),a=i.find(".bg, .flickity-slider > .img img");i.addClass("slider-has-parallax"),i.on("scroll.flickity",(function(t,e){s.slides.forEach((function(t,e){var i=a[e],n=-1*(t.target+s.x)/o.parallax;i&&(i.style.transform="translateX("+n+"px)")}))}))}}}))},detach:function(t){jQuery(t).data("flickityOptions")?jQuery(t).flickity("destroy"):jQuery("[data-flickity-options]",t).flickity("destroy")}})},function(t,e){function i(t,e,i){e.each((function(e,i){return jQuery(i).toggleClass("active",e===t)})),i.each((function(e,i){return jQuery(i).toggleClass("active",e===t)})),jQuery.fn.flickity&&jQuery("[data-flickity-options]",i[t]).flickity("resize"),jQuery.fn.packery&&jQuery("[data-packery-options]",i[t]).packery("layout")}Flatsome.behavior("tabs",{attach:function(t){var e=window.location.hash,n=window.location.href;jQuery(".tabbed-content",t).each((function(t,o){var r=jQuery(o),s=r.find("> .nav > li"),a=r.find("> .tab-panels > .panel"),l=s.filter(".reviews_tab").first();a.removeAttr("style"),s.each((function(t,n){var o=jQuery(n).find("a");o.on("click",(function(e){i(t,s,a),e.preventDefault(),e.stopPropagation()})),e.substr(1).length&&e.substr(1)===o.attr("href").split("#")[1]&&i(t,s,a)})),l.length&&(e.toLowerCase().indexOf("comment-")>=0||"#comments"===e||"#reviews"===e||"#tab-reviews"===e||n.indexOf("comment-page-")>0||n.indexOf("cpage=")>0)&&(l.find("a").trigger("click"),jQuery.scrollTo(".reviews_tab",{duration:300,offset:-150}))}))}})},function(t,e){Flatsome.behavior("toggle",{attach:function(t){function e(t){var e=jQuery(t.currentTarget).parent();e.toggleClass("active"),e.attr("aria-expanded","false"===e.attr("aria-expanded")?"true":"false"),t.preventDefault()}jQuery([".widget ul.children",".nav ul.children",".menu .sub-menu",".mobile-sidebar-levels-2 .nav ul.children > li > ul"].join(", "),t).each((function(){var t=jQuery(this).parents(".nav-slide").length?"right":"down";jQuery(this).parent().addClass("has-child").attr("aria-expanded","false"),jQuery(this).before(''))})),jQuery(".current-cat-parent",t).addClass("active").attr("aria-expanded","true").removeClass("current-cat-parent"),jQuery(".toggle",t).on("click",e);var i=jQuery("body").hasClass("mobile-submenu-toggle");jQuery(".sidebar-menu li.menu-item.has-child",t).each((function(){var t=jQuery(this),n=t.find("> a:first");"#"===n.attr("href")?n.on("click",(function(e){e.preventDefault(),t.toggleClass("active"),t.attr("aria-expanded","false"===t.attr("aria-expanded")?"true":"false")})):i&&n.next(".toggle").length&&n.on("click",e)}))}})},function(t,e){function i(t){t.attr("aria-hidden","true"),t.find("> li > a, > li > button").attr("tabindex","-1")}Flatsome.behavior("sidebar-slider",{attach:function(t){var e=jQuery("body").hasClass("mobile-submenu-toggle");jQuery(".mobile-sidebar-slide",t).each((function(t,n){var o=parseInt(jQuery(n).data("levels"),10)||1,r=jQuery(".sidebar-menu",n),s=jQuery(".nav-sidebar",n);jQuery(["> li > ul.children","> li > .sub-menu",o>1?"> li > ul.children > li > ul":null].filter(Boolean).join(", "),s).each((function(t,n){var o=jQuery(n),s=o.parent(),a=s.parents("ul:first"),l=jQuery(["> .toggle",'> a[href="#"]',e&&"> a"].filter(Boolean).join(","),s),c=s.find("> a").text().trim(),h=o.parents("ul").length,u=Boolean(window.flatsomeVars.rtl),d=jQuery('\n \n "));o.prepend(d),i(o);var p=null;l.off("click").on("click",(function(t){var e;s.attr("aria-expanded","true"),a.addClass("is-current-parent"),o.addClass("is-current-slide"),r.css("transform","translateX(".concat(u?"":"-").concat(100*h,"%)")),(e=o).attr("aria-hidden","false"),e.find("> li > a, > li > button").attr("tabindex",""),clearTimeout(p),t.preventDefault()})),d.find(".toggle").on("click",(function(){r.css("transform","translateX(".concat(u?"":"-").concat(100*(h-1),"%)")),i(o),p=setTimeout((function(){o.removeClass("is-current-slide"),a.removeClass("is-current-parent")}),300),s.removeClass("active"),s.attr("aria-expanded","false")}))}))}))}})},function(t,e){Flatsome.behavior("nav-hover",{attach:function(t){var e=jQuery(".ux-body-overlay",t);e.length&&jQuery(".nav-prompts-overlay > li.menu-item",t).on({mouseenter:function(){e.addClass("ux-body-overlay--hover-active")},mouseleave:function(){e.removeClass("ux-body-overlay--hover-active")}})}})},function(t,e){Flatsome.behavior("back-to-top",{attach:function(t){jQuery("body",t).waypoint({handler:function(e){jQuery(".back-to-top",t).toggleClass("active")},offset:"-100%"})}})},function(t,e){Flatsome.behavior("scroll-to",{attach:function(){var t=jQuery("span.scroll-to"),e=jQuery(".scroll-to-bullets"),i=flatsomeVars.sticky_height;if(e.length&&(e.children().tooltipster("destroy"),e.remove()),jQuery("li.scroll-to-link").remove(),t.length&&(e=jQuery(''),jQuery("body").append(e),t.each((function(t,e){var n=jQuery(e),o=n.data("link"),r=n.data("title"),s=n.data("bullet"),a='a[href*="'.concat(o||"",'"]');if(s){var l=jQuery('\n \n \n \n '));l.tooltipster({position:"left",delay:50,contentAsHTML:!0,touchDevices:!1}),jQuery(".scroll-to-bullets").append(l)}var c=jQuery('\n \n ').concat(r,"\n \n "));jQuery("li.nav-single-page").before(c),setTimeout((function(){jQuery(".scroll-to-link a").attr("data-animated","true")}),300),n.waypoint((function(t){jQuery(".scroll-to-bullets a, .scroll-to-link").removeClass("active"),jQuery(".scroll-to-bullets").find(a).addClass("active"),jQuery(".nav-single-page").parent().find(a).parent().addClass("active"),"up"===t&&jQuery(".scroll-to-bullets, .nav-single-page").find(a).removeClass("active").prev().addClass("active")}),{offset:i}),jQuery(a).off("click").on("click",(function(t){var e=jQuery(this).attr("href").split("#")[1];if(e){var n="\\#".concat(e),o="span.scroll-to[data-link=".concat(n,"]"),r=jQuery(o).offset().top-i;jQuery.scrollTo(r,{duration:500,axis:"y"}),jQuery.magnificPopup.close(),t.preventDefault()}}))})),location.hash)){var n=location.hash.replace("#","");jQuery.scrollTo("a[name="+n+"]",{duration:500,axis:"y",offset:-i})}},detach:function(){jQuery("span.scroll-to").length&&setTimeout(this.attach,0)}})},function(t,e){Flatsome.behavior("accordion",{attach:function(t){jQuery(".accordion",t).each((function(){var t=jQuery(this).attr("rel");if(t>0){var e=jQuery(this).find(".accordion-item:nth-child("+t+") .accordion-inner");e.show(),e.prev().addClass("active"),jQuery.fn.flickity&&e.find("[data-flickity-options]").flickity("resize"),jQuery.fn.packery&&e.find("[data-packery-options]").packery("layout")}}))}}),Flatsome.behavior("accordion-title",{attach:function(t){jQuery(".accordion-title",t).each((function(){jQuery(this).off("click.flatsome").on("click.flatsome",(function(t){if(jQuery(this).next().is(":hidden")){jQuery(this).parent().parent().find(".accordion-title").removeClass("active").next().slideUp(200),jQuery(this).toggleClass("active").next().slideDown(200,(function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)&&jQuery.scrollTo(jQuery(this).prev(),{duration:300,offset:-100})}));var e=jQuery(this).parent().parent().find("[data-flickity-options]");Flatsome.detach("slider",e),Flatsome.attach("slider",e),jQuery.fn.packery&&jQuery(this).parent().parent().find("[data-packery-options]").packery("layout")}else jQuery(this).parent().parent().find(".accordion-title").removeClass("active").next().slideUp(200);t.preventDefault()}))}))}})},function(t,e){Flatsome.behavior("tooltips",{attach:function(t){jQuery(".tooltip, .has-tooltip, .tip-top, li.chosen a",t).tooltipster(),jQuery(".tooltip-as-html",t).tooltipster({interactive:!0,contentAsHTML:!0})}})},function(t,e){Flatsome.behavior("sticky-section",{attach:function(t){jQuery(".sticky-section",t).each((function(t,e){var i=jQuery(e);i.waypoint((function(t){"down"===t&&(i.addClass("is-sticky-section"),i.after('')),"up"===t&&(i.removeClass("is-sticky-section"),i.next(".sticky-section-helper").remove())}),{offset:"0.1px"}),i.waypoint((function(t){"down"===t&&(i.removeClass("is-sticky-section"),i.next(".sticky-section-helper").remove()),"up"===t&&(i.addClass("is-sticky-section"),i.after(''))}),{offset:"-100%"})}))}})},function(t,e){Flatsome.behavior("sticky-sidebar",{attach:function(t){var e=parseInt(flatsomeVars.sticky_height)+15;jQuery(".is-sticky-column",t).each((function(t,i){jQuery(i).stickySidebar({topSpacing:e,bottomSpacing:15,minWidth:850,innerWrapperSelector:".is-sticky-column__inner"}),jQuery(document).on("updated_checkout",(function(){jQuery(i).stickySidebar("updateSticky")}))}))}})},function(t,e){Flatsome.behavior("youtube",{attach:function(t){var e,i,n,o,r,s=jQuery(".ux-youtube",t);0!==s.length&&(window.onYouTubePlayerAPIReady=function(){s.each((function(){var t=jQuery(this),e=t.attr("id"),i=t.data("videoid"),n=t.data("loop"),o=t.data("audio");new YT.Player(e,{height:"100%",width:"100%",playerVars:{html5:1,autoplay:1,controls:0,rel:0,modestbranding:1,playsinline:1,showinfo:0,fs:0,loop:n,el:0,playlist:n?i:void 0},videoId:i,events:{onReady:function(t){0===o&&t.target.mute()}}})}))},e=document,i="script",n="youtube-jssdk",r=e.getElementsByTagName(i)[0],e.getElementById(n)||((o=e.createElement(i)).id=n,o.src="https://www.youtube.com/player_api",r.parentNode.insertBefore(o,r)))}})},,,,,,,,function(t,e,i){"use strict";Flatsome.behavior("lazy-load-bg",{attach:function(t){var e,i=(e=function(t){t.intersectionRatio>0&&(i.unobserve(t.target),jQuery(t.target).addClass("bg-loaded"))},new IntersectionObserver((function(t){for(var i=0;i=Gt()-1&&i<0)&&(e=wt.x+i*y.mainScrollEndFriction)}wt.x=e,nt(e,W)}function u(e,t){var n=bt[e]-Xe[e];return Ye[e]+He[e]+n-t/q*n}function g(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)}function m(e){e.x=Math.round(e.x),e.y=Math.round(e.y)}function w(e,t){var n=$t(h.currItem,Be,e);return t&&(Re=n),n}function b(e){return e||(e=h.currItem),e.initialZoomLevel}function I(e){return e||(e=h.currItem),0t.min[e]?(n[e]=t.min[e],!0):n[e]Re.min[e]||rRe.min[e]&&(n=y.panEndFriction,Re.min[e],i=Re.min[e]-Ye[e]),(i<=0||u<0)&&1ft.x&&(a=ft.x)):Re.min.x!==Re.max.x&&(o=r)):(rh.currItem.fitRatio&&(We[e]+=t[e]*n)}function L(e){if(!("mousedown"===e.type&&0h.currItem.fitRatio&&Rt(ge):Ft())}}var N,U,H,Y,W,B,G,X,V,K,q,$,j,J,Q,ee,te,ne,ie,oe,ae,re,le,se,ue,ce,de,me,pe,fe,he,ye,xe,ve,ge,we,be,Ie,Ce,De,Te,Me,Se,Ae,Ee,Oe,ke,Re,Pe,Ze,Fe,Le,ze,_e,Ne,Ue,He={x:0,y:0},Ye={x:0,y:0},We={x:0,y:0},Be={},Ge=0,Xe={},Ve={x:0,y:0},Ke=0,qe=!0,$e=[],je={},Je=!1,Qe={},et=function(e){Pe&&(e&&(K>h.currItem.fitRatio?Je||(jt(h.currItem,!1,!0),Je=!0):Je&&(jt(h.currItem),Je=!1)),o(Pe,We.x,We.y,K))},tt=function(e){e.container&&o(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},nt=function(e,t){t[re]=$+e+"px, 0px"+j},it=null,ot=function(){it&&(f.unbind(document,"mousemove",ot),f.addClass(p,"pswp--has_mouse"),y.mouseUsed=!0,x("mouseUsed")),it=setTimeout(function(){it=null},100)},at={},rt=0,lt={shout:x,listen:a,viewportSize:Be,options:y,isMainScrollAnimating:function(){return Ze},getZoomLevel:function(){return K},getCurrentIndex:function(){return Y},isDragging:function(){return Ce},isZooming:function(){return Oe},setScrollOffset:function(e,t){Xe.x=e,fe=Xe.y=t,x("updateScrollOffset",Xe)},applyZoomPan:function(e,t,n,i){We.x=t,We.y=n,K=e,et(i)},init:function(){if(!N&&!U){var e;h.framework=f,h.template=p,h.bg=f.getChildByClass(p,"pswp__bg"),de=p.className,N=!0,he=f.detectFeatures(),ue=he.raf,ce=he.caf,re=he.transform,pe=he.oldIE,h.scrollWrap=f.getChildByClass(p,"pswp__scroll-wrap"),h.container=f.getChildByClass(h.scrollWrap,"pswp__container"),W=h.container.style,h.itemHolders=ee=[{el:h.container.children[0],wrap:0,index:-1},{el:h.container.children[1],wrap:0,index:-1},{el:h.container.children[2],wrap:0,index:-1}],ee[0].el.style.display=ee[2].el.style.display="none",function(){if(re){var e=he.perspective&&!se;return $="translate"+(e?"3d(":"("),j=he.perspective?", 0px)":")"}re="left",f.addClass(p,"pswp--ie"),nt=function(e,t){t.left=e+"px"},tt=function(e){var t=1=Gt())&&(Y=0),h.currItem=Bt(Y),(he.isOldIOSPhone||he.isOldAndroid)&&(qe=!1),p.setAttribute("aria-hidden","false"),y.modal&&(qe?p.style.position="fixed":(p.style.position="absolute",p.style.top=f.getScrollY()+"px")),fe===undefined&&(x("initialLayout"),fe=me=f.getScrollY());var n="pswp--open ";for(y.mainClass&&(n+=y.mainClass+" "),y.showHideOpacity&&(n+="pswp--animate_opacity "),n+=se?"pswp--touch":"pswp--notouch",n+=he.animationName?" pswp--css_animation":"",n+=he.svg?" pswp--svg":"",f.addClass(p,n),h.updateSize(),B=-1,Ke=null,e=0;e<3;e++)nt((e+B)*Ve.x,ee[e].el.style);pe||f.bind(h.scrollWrap,X,h),a("initialZoomInEnd",function(){h.setContent(ee[0],Y-1),h.setContent(ee[2],Y+1),ee[0].el.style.display=ee[2].el.style.display="block",y.focus&&p.focus(),f.bind(document,"keydown",h),he.transform&&f.bind(h.scrollWrap,"click",h),y.mouseUsed||f.bind(document,"mousemove",ot),f.bind(window,"resize scroll orientationchange",h),x("bindEvents")}),h.setContent(ee[1],Y),h.updateCurrItem(),x("afterInit"),qe||(J=setInterval(function(){rt||Ce||Oe||K!==h.currItem.initialZoomLevel||h.updateSize()},1e3)),f.addClass(p,"pswp--visible")}},close:function(){N&&(U=!(N=!1),x("close"),f.unbind(window,"resize scroll orientationchange",h),f.unbind(window,"scroll",V.scroll),f.unbind(document,"keydown",h),f.unbind(document,"mousemove",ot),he.transform&&f.unbind(h.scrollWrap,"click",h),Ce&&f.unbind(window,G,h),clearTimeout(ye),x("unbindEvents"),Xt(h.currItem,null,!0,h.destroy))},destroy:function(){x("destroy"),Ut&&clearTimeout(Ut),p.setAttribute("aria-hidden","true"),p.className=de,J&&clearInterval(J),f.unbind(h.scrollWrap,X,h),f.unbind(window,"scroll",h),Ct(),S(),Qe=null},panTo:function(e,t,n){n||(e>Re.min.x?e=Re.min.x:eRe.min.y?t=Re.min.y:th.currItem.initialZoomLevel+h.currItem.initialZoomLevel/15&&(Ne=!0);var i=1,o=b(),a=I();if(nRe.min[t]?i.backAnimDestination[t]=Re.min[t]:We[t]=Gt()&&(Y=y.loop?0:Gt()-1,o=!0),o&&!y.loop||(Ke+=i,Ge-=i,n=!0));var l,s=Ve.x*Ge,u=Math.abs(s-wt.x);return l=n||s>wt.x==0The image could not be loaded. ',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Ht.length}},$t=function(e,t,n){if(!e.src||e.loadError)return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},e.initialPosition=e.bounds.center,e.bounds;var i=!n;if(i&&(e.vGap||(e.vGap={top:0,bottom:0}),x("parseVerticalMargin",e)),Vt.x=t.x,Vt.y=t.y-e.vGap.top-e.vGap.bottom,i){var o=Vt.x/e.w,a=Vt.y/e.h;e.fitRatio=o