(()=>{(function(c,d,t){d.extend(d.easing,{xEaseIsotope:i=>1-(1-i)*(1-i)}),d.fn.extend({xIsotopeOuterHeight:function(...i){return this.outerHeight(...i)||null},xIsotopeOuterWidth:function(...i){return this.outerWidth(...i)||null}});var e=c.document,s=e.documentElement,o=function(i){return i.charAt(0).toUpperCase()+i.slice(1)},n="Moz Webkit O Ms".split(" "),y=function(i){var a=s.style,r;if(typeof a[i]=="string")return i;i=o(i);for(var l=0,u=n.length;l<u;l++)if(r=n[l]+i,typeof a[r]=="string")return r},h=y("transform"),v=y("transitionProperty"),w={translate:function(i){return"translate3d("+i[0]+"px, "+i[1]+"px, 0) "},scale:function(i){return"scale3d("+i+", "+i+", 1) "}},C=function(i,a,r){var l=d.data(i,"isoTransform")||{},u={},f,p={},m;u[a]=r,d.extend(l,u);for(f in l)m=l[f],p[f]=w[f](m);var g=p.translate||"",k=p.scale||"",x=g+k;d.data(i,"isoTransform",l),i.style[h]=x};d.cssNumber.scale=!0,d.cssHooks.scale={set:function(i,a){C(i,"scale",a)},get:function(i,a){var r=d.data(i,"isoTransform");return r&&r.scale?r.scale:1}},d.fx.step.scale=function(i){d.cssHooks.scale.set(i.elem,i.now+i.unit)},d.cssNumber.translate=!0,d.cssHooks.translate={set:function(i,a){C(i,"translate",a)},get:function(i,a){var r=d.data(i,"isoTransform");return r&&r.translate?r.translate:[0,0]}};var P,H;P={WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd otransitionend",transitionProperty:"transitionend"}[v],H=y("transitionDuration");var _=d.event,L="dispatch",z;_.special.xsmartresize={setup:function(){d(this).on("resize",_.special.xsmartresize.handler)},teardown:function(){d(this).off("resize",_.special.xsmartresize.handler)},handler:function(i,a){var r=this,l=arguments;i.type="xsmartresize",z&&clearTimeout(z),z=setTimeout(function(){_[L].apply(r,l)},a==="execAsap"?0:100)}},d.fn.xsmartresize=function(i){return i?this.on("xsmartresize",i):this.trigger("xsmartresize",["execAsap"])},d.xIsotope=function(i,a,r){this.element=d(a),this._create(i),this._init(r)};var D=["width","height"],O=d(c);d.xIsotope.settings={resizable:!0,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:{opacity:0,scale:.001},visibleStyle:{opacity:1,scale:1},containerStyle:{position:"relative",overflow:"hidden"},animationEngine:"css",animationOptions:{queue:!1,duration:800},sortBy:"original-order",sortAscending:!0,resizesContainer:!0,transformsEnabled:!0,itemPositionDataEnabled:!1},d.xIsotope.prototype={_create:function(i){this.options=d.extend({},d.xIsotope.settings,i),this.styleQueue=[],this.elemCount=0;var a=this.element[0].style;this.originalStyle={};var r=D.slice(0);for(var l in this.options.containerStyle)r.push(l);for(var u=0,f=r.length;u<f;u++)l=r[u],this.originalStyle[l]=a[l]||"";this.element.css(this.options.containerStyle),this._updateAnimationEngine(),this._updateUsingTransforms();var p={"original-order":function(g,k){return k.elemCount++,k.elemCount},random:function(){return Math.random()}};this.options.getSortData=d.extend(this.options.getSortData,p),this.reloadItems(),this.offset={left:parseInt(this.element.css("padding-left")||0,10),top:parseInt(this.element.css("padding-top")||0,10)};var m=this;setTimeout(function(){m.element.addClass(m.options.containerClass)},0),this.options.resizable&&O.on("xsmartresize.isotope",function(){m.resize()}),this.element.on("."+this.options.hiddenClass,"click",function(){return!1})},_getAtoms:function(i){var a=this.options.itemSelector,r=a?i.filter(a).add(i.find(a)):i,l={position:"absolute"};return r=r.filter(function(u,f){return f.nodeType===1}),this.usingTransforms&&(l.left=0,l.top=0),r.css(l).addClass(this.options.itemClass),this.updateSortData(r,!0),r},_init:function(i){this.$filteredAtoms=this._filter(this.$allAtoms),this._sort(),this.reLayout(i)},option:function(i){if(d.isPlainObject(i)){this.options=d.extend(!0,this.options,i);var a;for(var r in i)a="_update"+o(r),this[a]&&this[a]()}},_updateAnimationEngine:function(){var i=this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,""),a;switch(i){case"css":case"none":a=!1;break;case"jquery":a=!0;break;default:a=!0}this.isUsingJQueryAnimation=a,this._updateUsingTransforms()},_updateTransformsEnabled:function(){this._updateUsingTransforms()},_updateUsingTransforms:function(){var i=this.usingTransforms=this.options.transformsEnabled;i||(delete this.options.hiddenStyle.scale,delete this.options.visibleStyle.scale),this.getPositionStyles=i?this._translate:this._positionAbs},_filter:function(i){var a=this.options.filter===""?"*":this.options.filter;if(!a)return i;var r=this.options.hiddenClass,l="."+r,u=i.filter(l),f=u;if(a!=="*"){f=u.filter(a);var p=i.not(l).not(a).addClass(r);this.styleQueue.push({$el:p,style:this.options.hiddenStyle})}return this.styleQueue.push({$el:f,style:this.options.visibleStyle}),f.removeClass(r),i.filter(a)},updateSortData:function(i,a){var r=this,l=this.options.getSortData,u,f;i.each(function(){u=d(this),f={};for(var p in l)!a&&p==="original-order"?f[p]=d.data(this,"isotope-sort-data")[p]:f[p]=l[p](u,r);d.data(this,"isotope-sort-data",f)})},_sort:function(){var i=this.options.sortBy,a=this._getSorter,r=this.options.sortAscending?1:-1,l=function(u,f){var p=a(u,i),m=a(f,i);return p===m&&i!=="original-order"&&(p=a(u,"original-order"),m=a(f,"original-order")),(p>m?1:p<m?-1:0)*r};this.$filteredAtoms.sort(l)},_getSorter:function(i,a){return d.data(i,"isotope-sort-data")[a]},_translate:function(i,a){return{translate:[i,a]}},_positionAbs:function(i,a){return{left:i,top:a}},_pushPosition:function(i,a,r){a=Math.round(a+this.offset.left),r=Math.round(r+this.offset.top);var l=this.getPositionStyles(a,r);this.styleQueue.push({$el:i,style:l}),this.options.itemPositionDataEnabled&&i.data("isotope-item-position",{x:a,y:r})},layout:function(i,a){var r=this.options.layoutMode;if(this["_"+r+"Layout"](i),this.options.resizesContainer){var l=this["_"+r+"GetContainerSize"]();this.styleQueue.push({$el:this.element,style:l})}this._processStyleQueue(i,a),this.isLaidOut=!0},_processStyleQueue:function(i,a){var r=this.isLaidOut&&this.isUsingJQueryAnimation?"animate":"css",l=this.options.animationOptions,u=this.options.onLayout,f,p,m,g;if(p=function(T,S){S.$el[r](S.style,l)},this._isInserting&&this.isUsingJQueryAnimation)p=function(T,S){f=S.$el.hasClass("no-transition")?"css":r,S.$el[f](S.style,l)};else if(a||u||l.complete){var k=!1,x=[a,u,l.complete],$=this;if(m=!0,g=function(){if(!k){for(var T,S=0,B=x.length;S<B;S++)T=x[S],typeof T=="function"&&T.call($.element,i,$);k=!0}},this.isUsingJQueryAnimation&&r==="animate")l.complete=g,m=!1;else{for(var E=0,I=this.styleQueue[0],b=I&&I.$el,A;!b||!b.length;){if(A=this.styleQueue[E++],!A)return;b=A.$el}var W=parseFloat(getComputedStyle(b[0])[H]);W>0&&(p=function(T,S){S.$el[r](S.style,l).one(P,g)},m=!1)}}d.each(this.styleQueue,p),m&&g(),this.styleQueue=[]},resize:function(){this["_"+this.options.layoutMode+"ResizeChanged"]()&&this.reLayout()},reLayout:function(i){this["_"+this.options.layoutMode+"Reset"](),this.layout(this.$filteredAtoms,i)},addItems:function(i,a){var r=this._getAtoms(i);this.$allAtoms=this.$allAtoms.add(r),a&&a(r)},insert:function(i,a){this.element.append(i);var r=this;this.addItems(i,function(l){var u=r._filter(l);r._addHideAppended(u),r._sort(),r.reLayout(),r._revealAppended(u,a)})},appended:function(i,a){var r=this;this.addItems(i,function(l){r._addHideAppended(l),r.layout(l),r._revealAppended(l,a)})},_addHideAppended:function(i){this.$filteredAtoms=this.$filteredAtoms.add(i),i.addClass("no-transition"),this._isInserting=!0,this.styleQueue.push({$el:i,style:this.options.hiddenStyle})},_revealAppended:function(i,a){var r=this;setTimeout(function(){i.removeClass("no-transition"),r.styleQueue.push({$el:i,style:r.options.visibleStyle}),r._isInserting=!1,r._processStyleQueue(i,a)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(i,a){this.$allAtoms=this.$allAtoms.not(i),this.$filteredAtoms=this.$filteredAtoms.not(i);var r=this,l=function(){i.remove(),a&&a.call(r.element)};i.filter(":not(."+this.options.hiddenClass+")").length?(this.styleQueue.push({$el:i,style:this.options.hiddenStyle}),this._sort(),this.reLayout(l)):l()},shuffle:function(i){this.updateSortData(this.$allAtoms),this.options.sortBy="random",this._sort(),this.reLayout(i)},destroy:function(){var i=this.usingTransforms,a=this.options;this.$allAtoms.removeClass(a.hiddenClass+" "+a.itemClass).each(function(){var u=this.style;u.position="",u.top="",u.left="",u.opacity="",i&&(u[h]="")});var r=this.element[0].style;for(var l in this.originalStyle)r[l]=this.originalStyle[l];this.element.unbind(".isotope").undelegate("."+a.hiddenClass,"click").removeClass(a.containerClass).removeData("isotope"),O.unbind(".isotope")},_getSegments:function(i){var a=this.options.layoutMode,r=i?"rowHeight":"columnWidth",l=i?"height":"width",u=i?"rows":"cols",f=this.element[l](),p,m=this.options[a]&&this.options[a][r]||this.$filteredAtoms["outer"+o(l)](!0)||f;p=Math.floor(f/m),p=Math.max(p,1),this[a][u]=p,this[a][r]=m},_checkIfSegmentsChanged:function(i){var a=this.options.layoutMode,r=i?"rows":"cols",l=this[a][r];return this._getSegments(i),this[a][r]!==l},_masonryReset:function(){this.masonry={},this._getSegments();var i=this.masonry.cols;for(this.masonry.colYs=[];i--;)this.masonry.colYs.push(0)},_masonryLayout:function(i){var a=this,r=a.masonry;i.each(function(){var l=d(this),u=Math.ceil(l.xIsotopeOuterWidth(!0)/r.columnWidth);if(u=Math.min(u,r.cols),u===1)a._masonryPlaceBrick(l,r.colYs);else{var f=r.cols+1-u,p=[],m,g;for(g=0;g<f;g++)m=r.colYs.slice(g,g+u),p[g]=Math.max.apply(Math,m);a._masonryPlaceBrick(l,p)}})},_masonryPlaceBrick:function(i,a){for(var r=Math.min.apply(Math,a),l=0,u=0,f=a.length;u<f;u++)if(a[u]===r){l=u;break}var p=this.masonry.columnWidth*l,m=r;this._pushPosition(i,p,m);var g=r+i.xIsotopeOuterHeight(!0),k=this.masonry.cols+1-f;for(u=0;u<k;u++)this.masonry.colYs[l+u]=g},_masonryGetContainerSize:function(){var i=Math.max.apply(Math,this.masonry.colYs);return{height:i}},_masonryResizeChanged:function(){return this._checkIfSegmentsChanged()},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0}},_fitRowsLayout:function(i){var a=this,r=this.element.width(),l=this.fitRows;i.each(function(){var u=d(this),f=u.xIsotopeOuterWidth(!0),p=u.xIsotopeOuterHeight(!0);l.x!==0&&f+l.x>r&&(l.x=0,l.y=l.height),a._pushPosition(u,l.x,l.y),l.height=Math.max(l.y+p,l.height),l.x+=f})},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResizeChanged:function(){return!0},_cellsByRowReset:function(){this.cellsByRow={index:0},this._getSegments(),this._getSegments(!0)},_cellsByRowLayout:function(i){var a=this,r=this.cellsByRow;i.each(function(){var l=d(this),u=r.index%r.cols,f=Math.floor(r.index/r.cols),p=(u+.5)*r.columnWidth-l.xIsotopeOuterWidth(!0)/2,m=(f+.5)*r.rowHeight-l.xIsotopeOuterHeight(!0)/2;a._pushPosition(l,p,m),r.index++})},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.$filteredAtoms.length/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.offset.top}},_cellsByRowResizeChanged:function(){return this._checkIfSegmentsChanged()},_straightDownReset:function(){this.straightDown={y:0}},_straightDownLayout:function(i){var a=this;i.each(function(r){var l=d(this);a._pushPosition(l,0,a.straightDown.y),a.straightDown.y+=l.xIsotopeOuterHeight(!0)})},_straightDownGetContainerSize:function(){return{height:this.straightDown.y}},_straightDownResizeChanged:function(){return!0},_masonryHorizontalReset:function(){this.masonryHorizontal={},this._getSegments(!0);var i=this.masonryHorizontal.rows;for(this.masonryHorizontal.rowXs=[];i--;)this.masonryHorizontal.rowXs.push(0)},_masonryHorizontalLayout:function(i){var a=this,r=a.masonryHorizontal;i.each(function(){var l=d(this),u=Math.ceil(l.xIsotopeOuterHeight(!0)/r.rowHeight);if(u=Math.min(u,r.rows),u===1)a._masonryHorizontalPlaceBrick(l,r.rowXs);else{var f=r.rows+1-u,p=[],m,g;for(g=0;g<f;g++)m=r.rowXs.slice(g,g+u),p[g]=Math.max.apply(Math,m);a._masonryHorizontalPlaceBrick(l,p)}})},_masonryHorizontalPlaceBrick:function(i,a){for(var r=Math.min.apply(Math,a),l=0,u=0,f=a.length;u<f;u++)if(a[u]===r){l=u;break}var p=r,m=this.masonryHorizontal.rowHeight*l;this._pushPosition(i,p,m);var g=r+i.xIsotopeOuterWidth(!0),k=this.masonryHorizontal.rows+1-f;for(u=0;u<k;u++)this.masonryHorizontal.rowXs[l+u]=g},_masonryHorizontalGetContainerSize:function(){var i=Math.max.apply(Math,this.masonryHorizontal.rowXs);return{width:i}},_masonryHorizontalResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0}},_fitColumnsLayout:function(i){var a=this,r=this.element.height(),l=this.fitColumns;i.each(function(){var u=d(this),f=u.xIsotopeOuterWidth(!0),p=u.xIsotopeOuterHeight(!0);l.y!==0&&p+l.y>r&&(l.x=l.width,l.y=0),a._pushPosition(u,l.x,l.y),l.width=Math.max(l.x+f,l.width),l.y+=p})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResizeChanged:function(){return!0},_cellsByColumnReset:function(){this.cellsByColumn={index:0},this._getSegments(),this._getSegments(!0)},_cellsByColumnLayout:function(i){var a=this,r=this.cellsByColumn;i.each(function(){var l=d(this),u=Math.floor(r.index/r.rows),f=r.index%r.rows,p=(u+.5)*r.columnWidth-l.xIsotopeOuterWidth(!0)/2,m=(f+.5)*r.rowHeight-l.xIsotopeOuterHeight(!0)/2;a._pushPosition(l,p,m),r.index++})},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.$filteredAtoms.length/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth}},_cellsByColumnResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_straightAcrossReset:function(){this.straightAcross={x:0}},_straightAcrossLayout:function(i){var a=this;i.each(function(r){var l=d(this);a._pushPosition(l,a.straightAcross.x,0),a.straightAcross.x+=l.xIsotopeOuterWidth(!0)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return!0}};var M=function(i){c.console&&c.console.error(i)};d.fn.xIsotope=function(i,a){if(typeof i=="string"){var r=Array.prototype.slice.call(arguments,1);this.each(function(){var l=d.data(this,"isotope");if(!l){M("cannot call methods on isotope prior to initialization; attempted to call method '"+i+"'");return}if(!d.isFunction(l[i])||i.charAt(0)==="_"){M("no such method '"+i+"' for isotope instance");return}l[i].apply(l,r)})}else this.each(function(){var l=d.data(this,"isotope");l?(l.option(i),l._init(a)):d.data(this,"isotope",new d.xIsotope(i,this,a))});return this},d(()=>{d("body").on("click",".x-iso-container .flex-direction-nav a",()=>{setTimeout(()=>{d(c).xsmartresize()},750)}),d("body.x-masonry-active").on("keyup",i=>{switch(i.key){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":setTimeout(()=>{d(c).xsmartresize()},750);break}})})})(window,jQuery);(function(c){"use strict";typeof define=="function"&&define.amd?define(["jquery"],c):c(jQuery)})(function(c){"use strict";var d=function(){var t=0;function e(s,o){var n=this,y,h;if(n.defaults={accessibility:!0,arrows:!0,autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(v,w){return'<button type="button">'+(w+1)+"</button>"},dots:!1,draggable:!0,easing:"linear",fade:!1,infinite:!0,lazyLoad:"ondemand",onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,pauseOnHover:!0,responsive:null,slide:"div",slidesToShow:1,slidesToScroll:1,speed:300,swipe:!0,touchMove:!0,touchThreshold:5,useCSS:!0,vertical:!1},n.initials={animating:!1,autoPlayTimer:null,currentSlide:0,currentLeft:null,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1},c.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.paused=!1,n.positionProp=null,n.$slider=c(s),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.windowWidth=0,n.windowTimer=null,n.options=c.extend({},n.defaults,o),n.originalSettings=n.options,y=n.options.responsive||null,y&&y.length>-1){for(h in y)y.hasOwnProperty(h)&&(n.breakpoints.push(y[h].breakpoint),n.breakpointSettings[y[h].breakpoint]=y[h].settings);n.breakpoints.sort(function(v,w){return w-v})}n.autoPlay=c.proxy(n.autoPlay,n),n.autoPlayClear=c.proxy(n.autoPlayClear,n),n.changeSlide=c.proxy(n.changeSlide,n),n.setPosition=c.proxy(n.setPosition,n),n.swipeHandler=c.proxy(n.swipeHandler,n),n.dragHandler=c.proxy(n.dragHandler,n),n.keyHandler=c.proxy(n.keyHandler,n),n.autoPlayIterator=c.proxy(n.autoPlayIterator,n),n.instanceUid=t++,n.init()}return e}();d.prototype.addSlide=function(t,e,s){var o=this;if(typeof e=="boolean")s=e,e=null;else if(e<0||e>=o.slideCount)return!1;o.unload(),typeof e=="number"?e===0&&o.$slides.length===0?c(t).appendTo(o.$slideTrack):s?c(t).insertBefore(o.$slides.eq(e)):c(t).insertAfter(o.$slides.eq(e)):s===!0?c(t).prependTo(o.$slideTrack):c(t).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).remove(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},d.prototype.animateSlide=function(t,e){var s={},o=this;o.transformsEnabled===!1?o.options.vertical===!1?o.$slideTrack.animate({left:t},o.options.speed,o.options.easing,e):o.$slideTrack.animate({top:t},o.options.speed,o.options.easing,e):o.cssTransitions===!1?c({animStart:o.currentLeft}).animate({animStart:t},{duration:o.options.speed,easing:o.options.easing,step:function(n){o.options.vertical===!1?(s[o.animType]="translate("+n+"px, 0px)",o.$slideTrack.css(s)):(s[o.animType]="translate(0px,"+n+"px)",o.$slideTrack.css(s))},complete:function(){e&&e.call()}}):(o.applyTransition(),o.options.vertical===!1?s[o.animType]="translate3d("+t+"px, 0px, 0px)":s[o.animType]="translate3d(0px,"+t+"px, 0px)",o.$slideTrack.css(s),e&&setTimeout(function(){o.disableTransition(),e.call()},o.options.speed))},d.prototype.applyTransition=function(t){var e=this,s={};e.options.fade===!1?s[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:s[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(s):e.$slides.eq(t).css(s)},d.prototype.autoPlay=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer),t.slideCount>t.options.slidesToShow&&t.paused!==!0&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},d.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},d.prototype.autoPlayIterator=function(){var t=this;t.options.infinite===!1?t.direction===1?(t.currentSlide+1===t.slideCount-1&&(t.direction=0),t.slideHandler(t.currentSlide+t.options.slidesToScroll)):(t.currentSlide-1===0&&(t.direction=1),t.slideHandler(t.currentSlide-t.options.slidesToScroll)):t.slideHandler(t.currentSlide+t.options.slidesToScroll)},d.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow=c('<button type="button" class="slick-prev">Previous</button>').appendTo(t.$slider),t.$nextArrow=c('<button type="button" class="slick-next">Next</button>').appendTo(t.$slider),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled"))},d.prototype.buildDots=function(){var t=this,e,s;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow){for(s='<ul class="slick-dots">',e=0;e<=t.getDotCount();e+=1)s+="<li>"+t.options.customPaging.call(this,t,e)+"</li>";s+="</ul>",t.$dots=c(s).appendTo(t.$slider),t.$dots.find("li").first().addClass("slick-active")}},d.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slidesCache=t.$slides,t.$slider.addClass("slick-slider"),t.$slideTrack=t.slideCount===0?c('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),t.options.centerMode===!0&&(t.options.infinite=!0,t.options.slidesToScroll=1,t.options.slidesToShow%2===0&&(t.options.slidesToShow=3)),c("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.options.accessibility===!0&&t.$list.prop("tabIndex",0),t.setSlideClasses(0),t.options.draggable===!0&&t.$list.addClass("draggable")},d.prototype.checkResponsive=function(){var t=this,e,s;if(t.originalSettings.responsive&&t.originalSettings.responsive.length>-1&&t.originalSettings.responsive!==null){s=null;for(e in t.breakpoints)t.breakpoints.hasOwnProperty(e)&&c(window).width()<t.breakpoints[e]&&(s=t.breakpoints[e]);s!==null?t.activeBreakpoint!==null?s!==t.activeBreakpoint&&(t.activeBreakpoint=s,t.options=c.extend({},t.defaults,t.breakpointSettings[s]),t.refresh()):(t.activeBreakpoint=s,t.options=c.extend({},t.defaults,t.breakpointSettings[s]),t.refresh()):t.activeBreakpoint!==null&&(t.activeBreakpoint=null,t.options=c.extend({},t.defaults,t.originalSettings),t.refresh())}},d.prototype.changeSlide=function(t){var e=this;switch(t.data.message){case"previous":e.slideHandler(e.currentSlide-e.options.slidesToScroll);break;case"next":e.slideHandler(e.currentSlide+e.options.slidesToScroll);break;case"index":e.slideHandler(c(t.target).parent().index()*e.options.slidesToScroll);break;default:return!1}},d.prototype.destroy=function(){var t=this;t.autoPlayClear(),t.touchObject={},c(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&(t.$prevArrow.remove(),t.$nextArrow.remove()),t.$slides.unwrap().unwrap(),t.$slides.removeClass("slick-slide slick-active slick-visible").removeAttr("style"),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$list.off(".slick"),c(window).off(".slick-"+t.instanceUid)},d.prototype.disableTransition=function(t){var e=this,s={};s[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(s):e.$slides.eq(t).css(s)},d.prototype.fadeSlide=function(t,e){var s=this;s.cssTransitions===!1?(s.$slides.eq(t).css({zIndex:1e3}),s.$slides.eq(t).animate({opacity:1},s.options.speed,s.options.easing,e)):(s.applyTransition(t),s.$slides.eq(t).css({opacity:1,zIndex:1e3}),e&&setTimeout(function(){s.disableTransition(t),e.call()},s.options.speed))},d.prototype.filterSlides=function(t){var e=this;t!==null&&(e.unload(),e.$slideTrack.children(this.options.slide).remove(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},d.prototype.getCurrent=function(){var t=this;return t.currentSlide},d.prototype.getDotCount=function(){var t=this,e=0,s=0,o=0,n;for(n=t.options.infinite===!0?t.slideCount+t.options.slidesToShow-t.options.slidesToScroll:t.slideCount;e<n;)o++,s+=t.options.slidesToScroll,e=s+t.options.slidesToShow;return o},d.prototype.getLeft=function(t){var e=this,s,o,n=0;return e.slideOffset=0,o=e.$slides.first().outerHeight()||0,e.options.infinite===!0?(e.slideCount>e.options.slidesToShow&&(e.slideOffset=e.slideWidth*e.options.slidesToShow*-1,n=o*e.options.slidesToShow*-1),e.slideCount%e.options.slidesToScroll!==0&&t+e.options.slidesToScroll>e.slideCount&&e.slideCount>e.options.slidesToShow&&(e.slideOffset=e.slideCount%e.options.slidesToShow*e.slideWidth*-1,n=e.slideCount%e.options.slidesToShow*o*-1)):e.slideCount%e.options.slidesToShow!==0&&t+e.options.slidesToScroll>e.slideCount&&e.slideCount>e.options.slidesToShow&&(e.slideOffset=e.options.slidesToShow*e.slideWidth-e.slideCount%e.options.slidesToShow*e.slideWidth,n=e.slideCount%e.options.slidesToShow*o),e.options.centerMode===!0&&(e.slideOffset+=e.slideWidth*Math.floor(e.options.slidesToShow/2)-e.slideWidth),e.options.vertical===!1?s=t*e.slideWidth*-1+e.slideOffset:s=t*o*-1+n,s},d.prototype.init=function(){var t=this;c(t.$slider).hasClass("slick-initialized")||(c(t.$slider).addClass("slick-initialized"),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.checkResponsive()),t.options.onInit!==null&&t.options.onInit.call(this,t)},d.prototype.initArrowEvents=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.on("click.slick",{message:"next"},t.changeSlide))},d.prototype.initDotEvents=function(){var t=this;t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&c("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide)},d.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.options.pauseOnHover===!0&&t.options.autoplay===!0&&(t.$list.on("mouseenter.slick",t.autoPlayClear),t.$list.on("mouseleave.slick",t.autoPlay)),t.options.accessibility===!0&&t.$list.on("keydown.slick",t.keyHandler),c(window).on("orientationchange.slick.slick-"+t.instanceUid,function(){t.checkResponsive(),t.setPosition()}),c(window).on("resize.slick.slick-"+t.instanceUid,function(){c(window).width!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=c(window).width(),t.checkResponsive(),t.setPosition()},50))}),c(window).on("load.slick.slick-"+t.instanceUid,t.setPosition)},d.prototype.initUI=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.show(),t.options.autoplay===!0&&t.autoPlay()},d.prototype.keyHandler=function(t){var e=this;t.keyCode===37?e.changeSlide({data:{message:"previous"}}):t.keyCode===39&&e.changeSlide({data:{message:"next"}})},d.prototype.lazyLoad=function(){var t=this,e,s,o,n;t.options.centerMode===!0?(o=t.options.slidesToShow+t.currentSlide-1,n=o+t.options.slidesToShow+2):(o=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,n=o+t.options.slidesToShow),e=t.$slider.find(".slick-slide").slice(o,n),c("img[data-lazy]",e).not("[src]").each(function(){c(this).css({opacity:0}).attr("src",c(this).attr("data-lazy")).removeClass("slick-loading").on("load",function(){c(this).animate({opacity:1},200)})}),t.currentSlide>=t.slideCount-t.options.slidesToShow?(s=t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow),c("img[data-lazy]",s).not("[src]").each(function(){c(this).css({opacity:0}).attr("src",c(this).attr("data-lazy")).removeClass("slick-loading").on("load",function(){c(this).animate({opacity:1},200)})})):t.currentSlide===0&&(s=t.$slider.find(".slick-cloned").slice(t.options.slidesToShow*-1),c("img[data-lazy]",s).not("[src]").each(function(){c(this).css({opacity:0}).attr("src",c(this).attr("data-lazy")).removeClass("slick-loading").on("load",function(){c(this).animate({opacity:1},200)})}))},d.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),t.options.lazyLoad==="progressive"&&t.progressiveLazyLoad()},d.prototype.postSlide=function(t){var e=this;e.options.onAfterChange!==null&&e.options.onAfterChange.call(this,e,t),e.animating=!1,e.setPosition(),e.swipeLeft=null,e.options.autoplay===!0&&e.paused===!1&&e.autoPlay()},d.prototype.progressiveLazyLoad=function(){var t=this,e,s;e=c("img[data-lazy]").not("[src]").length,e>0&&(s=c(c("img[data-lazy]",t.$slider).not("[src]").get(0)),s.attr("src",s.attr("data-lazy")).removeClass("slick-loading").on("load",function(){t.progressiveLazyLoad()}))},d.prototype.refresh=function(){var t=this;t.destroy(),c.extend(t,t.initials),t.init()},d.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&t.currentSlide!==0&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.setSlideClasses(0),t.setPosition(),t.options.onReInit!==null&&t.options.onReInit.call(this,t)},d.prototype.removeSlide=function(t,e){var s=this;if(typeof t=="boolean"?(e=t,t=e===!0?0:s.slideCount-1):t=e===!0?--t:t,s.slideCount<1||t<0||t>s.slideCount-1)return!1;s.unload(),s.$slideTrack.children(this.options.slide).eq(t).remove(),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).remove(),s.$slideTrack.append(s.$slides),s.$slidesCache=s.$slides,s.reinit()},d.prototype.setCSS=function(t){var e=this,s={},o,n;o=e.positionProp=="left"?t+"px":"0px",n=e.positionProp=="top"?t+"px":"0px",s[e.positionProp]=t,e.transformsEnabled===!1?e.$slideTrack.css(s):(s={},e.cssTransitions===!1?(s[e.animType]="translate("+o+", "+n+")",e.$slideTrack.css(s)):(s[e.animType]="translate3d("+o+", "+n+", 0px)",e.$slideTrack.css(s)))},d.prototype.setDimensions=function(){var t=this;t.options.centerMode===!0,t.$slideTrack.children(".slick-slide").width(t.slideWidth),t.options.vertical===!1?(t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length)),t.options.centerMode===!0&&t.$list.css({padding:"0px "+t.options.centerPadding})):(t.$list.height((t.$slides.first().outerHeight()||0)*t.options.slidesToShow),t.$slideTrack.height(Math.ceil((t.$slides.first().outerHeight()||0)*t.$slideTrack.children(".slick-slide").length)),t.options.centerMode===!0&&t.$list.css({padding:t.options.centerPadding+" 0px"}))},d.prototype.setFade=function(){var t=this,e;t.$slides.each(function(s,o){e=t.slideWidth*s*-1,c(o).css({position:"relative",left:e,top:0,zIndex:800,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:900,opacity:1})},d.prototype.setPosition=function(){var t=this;t.setValues(),t.setDimensions(),t.options.fade===!1?t.setCSS(t.getLeft(t.currentSlide)):t.setFade()},d.prototype.setProps=function(){var t=this;t.positionProp=t.options.vertical===!0?"top":"left",t.positionProp==="top"?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),(document.body.style.WebkitTransition!==void 0||document.body.style.MozTransition!==void 0||document.body.style.msTransition!==void 0)&&t.options.useCSS===!0&&(t.cssTransitions=!0),document.body.style.MozTransform!==void 0&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition"),document.body.style.webkitTransform!==void 0&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition"),document.body.style.msTransform!==void 0&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.animType!==null},d.prototype.setValues=function(){var t=this;t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),t.options.vertical===!1?t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow):t.slideWidth=Math.ceil(t.listWidth)},d.prototype.setSlideClasses=function(t){var e=this,s,o,n;e.$slider.find(".slick-slide").removeClass("slick-active").removeClass("slick-center"),o=e.$slider.find(".slick-slide"),e.options.centerMode===!0?(s=Math.floor(e.options.slidesToShow/2),t>=s&&t<=e.slideCount-1-s?e.$slides.slice(t-s,t+s+1).addClass("slick-active"):(n=e.options.slidesToShow+t,o.slice(n-s+1,n+s+2).addClass("slick-active")),t===0?o.eq(o.length-1-e.options.slidesToShow).addClass("slick-center"):t===e.slideCount-1&&o.eq(e.options.slidesToShow).addClass("slick-center"),e.$slides.eq(t).addClass("slick-center")):t>0&&t<e.slideCount-e.options.slidesToShow?e.$slides.slice(t,t+e.options.slidesToShow).addClass("slick-active"):(n=e.options.infinite===!0?e.options.slidesToShow+t:t,o.slice(n,n+e.options.slidesToShow).addClass("slick-active")),e.options.lazyLoad==="ondemand"&&e.lazyLoad()},d.prototype.setupInfinite=function(){var t=this,e,s,o;if((t.options.fade===!0||t.options.vertical===!0)&&(t.options.centerMode=!1),t.options.infinite===!0&&t.options.fade===!1&&(s=null,t.slideCount>t.options.slidesToShow)){for(t.options.centerMode===!0?o=t.options.slidesToShow+1:o=t.options.slidesToShow,e=t.slideCount;e>t.slideCount-o;e-=1)s=e-1,c(t.$slides[s]).clone().attr("id","").prependTo(t.$slideTrack).addClass("slick-cloned");for(e=0;e<o;e+=1)s=e,c(t.$slides[s]).clone().attr("id","").appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},d.prototype.slideHandler=function(t){var e,s,o,n,y=null,h=this;if(h.animating===!0)return!1;if(e=t,y=h.getLeft(e),o=h.getLeft(h.currentSlide),n=h.slideCount%h.options.slidesToScroll!==0?h.options.slidesToScroll:0,h.currentLeft=h.swipeLeft===null?o:h.swipeLeft,h.options.infinite===!1&&(t<0||t>h.slideCount-h.options.slidesToShow+n))return h.options.fade===!1&&(e=h.currentSlide,h.animateSlide(o,function(){h.postSlide(e)})),!1;if(h.options.autoplay===!0&&clearInterval(h.autoPlayTimer),e<0?h.slideCount%h.options.slidesToScroll!==0?s=h.slideCount-h.slideCount%h.options.slidesToScroll:s=h.slideCount-h.options.slidesToScroll:e>h.slideCount-1?s=0:s=e,h.animating=!0,h.options.onBeforeChange!==null&&t!==h.currentSlide&&h.options.onBeforeChange.call(this,h,h.currentSlide,s),h.currentSlide=s,h.setSlideClasses(h.currentSlide),h.updateDots(),h.updateArrows(),h.options.fade===!0)return h.fadeSlide(s,function(){h.postSlide(s)}),!1;h.animateSlide(y,function(){h.postSlide(s)})},d.prototype.startLoad=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},d.prototype.swipeDirection=function(){var t,e,s,o,n=this;return t=n.touchObject.startX-n.touchObject.curX,e=n.touchObject.startY-n.touchObject.curY,s=Math.atan2(e,t),o=Math.round(s*180/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":"vertical"},d.prototype.swipeEnd=function(t){var e=this;if(e.$list.removeClass("dragging"),e.touchObject.curX===void 0)return!1;if(e.touchObject.swipeLength>=e.touchObject.minSwipe)switch(c(t.target).on("click.slick",function(s){s.stopImmediatePropagation(),s.stopPropagation(),s.preventDefault(),c(s.target).off("click.slick")}),e.swipeDirection()){case"left":e.slideHandler(e.currentSlide+e.options.slidesToScroll),e.touchObject={};break;case"right":e.slideHandler(e.currentSlide-e.options.slidesToScroll),e.touchObject={};break}else e.touchObject.startX!==e.touchObject.curX&&(e.slideHandler(e.currentSlide),e.touchObject={})},d.prototype.swipeHandler=function(t){var e=this;if("ontouchend"in document&&e.options.swipe===!1)return!1;if(e.options.draggable===!1&&!t.originalEvent.touches)return!0;switch(e.touchObject.fingerCount=t.originalEvent&&t.originalEvent.touches!==void 0?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t);break}},d.prototype.swipeMove=function(t){var e=this,s,o,n,y;if(y=t.originalEvent!==void 0?t.originalEvent.touches:null,s=e.getLeft(e.currentSlide),!e.$list.hasClass("dragging")||y&&y.length!==1)return!1;if(e.touchObject.curX=y!==void 0?y[0].pageX:t.clientX,e.touchObject.curY=y!==void 0?y[0].pageY:t.clientY,e.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(e.touchObject.curX-e.touchObject.startX,2))),o=e.swipeDirection(),o!=="vertical"){if(t.originalEvent!==void 0&&e.touchObject.swipeLength>4&&t.preventDefault(),n=e.touchObject.curX>e.touchObject.startX?1:-1,e.options.vertical===!1?e.swipeLeft=s+e.touchObject.swipeLength*n:e.swipeLeft=s+e.touchObject.swipeLength*(e.$list.height()/e.listWidth)*n,e.options.fade===!0||e.options.touchMove===!1)return!1;if(e.animating===!0)return e.swipeLeft=null,!1;e.setCSS(e.swipeLeft)}},d.prototype.swipeStart=function(t){var e=this,s;if(e.touchObject.fingerCount!==1||e.slideCount<=e.options.slidesToShow)return e.touchObject={},!1;t.originalEvent!==void 0&&t.originalEvent.touches!==void 0&&(s=t.originalEvent.touches[0]),e.touchObject.startX=e.touchObject.curX=s!==void 0?s.pageX:t.clientX,e.touchObject.startY=e.touchObject.curY=s!==void 0?s.pageY:t.clientY,e.$list.addClass("dragging")},d.prototype.unfilterSlides=function(){var t=this;t.$slidesCache!==null&&(t.unload(),t.$slideTrack.children(this.options.slide).remove(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},d.prototype.unload=function(){var t=this;c(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&(t.$prevArrow.remove(),t.$nextArrow.remove()),t.$slides.removeClass("slick-slide slick-active slick-visible").removeAttr("style")},d.prototype.updateArrows=function(){var t=this;t.options.arrows===!0&&t.options.infinite!==!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.removeClass("slick-disabled"),t.$nextArrow.removeClass("slick-disabled"),t.currentSlide===0?(t.$prevArrow.addClass("slick-disabled"),t.$nextArrow.removeClass("slick-disabled")):t.currentSlide>=t.slideCount-t.options.slidesToShow&&(t.$nextArrow.addClass("slick-disabled"),t.$prevArrow.removeClass("slick-disabled")))},d.prototype.updateDots=function(){var t=this;t.$dots!==null&&(t.$dots.find("li").removeClass("slick-active"),t.$dots.find("li").eq(t.currentSlide/t.options.slidesToScroll).addClass("slick-active"))},c.fn.xSlick=function(t){var e=this;return e.each(function(s,o){o.slick=new d(o,t)})},c.fn.xSlickAdd=function(t,e,s){var o=this;return o.each(function(n,y){y.slick.addSlide(t,e,s)})},c.fn.xSlickCurrentSlide=function(){var t=this;return t.get(0).slick.getCurrent()},c.fn.xSlickFilter=function(t){var e=this;return e.each(function(s,o){o.slick.filterSlides(t)})},c.fn.xSlickGoTo=function(t){var e=this;return e.each(function(s,o){o.slick.slideHandler(t)})},c.fn.xSlickNext=function(){var t=this;return t.each(function(e,s){s.slick.changeSlide({data:{message:"next"}})})},c.fn.xSlickPause=function(){var t=this;return t.each(function(e,s){s.slick.autoPlayClear(),s.slick.paused=!0})},c.fn.xSlickPlay=function(){var t=this;return t.each(function(e,s){s.slick.paused=!1,s.slick.autoPlay()})},c.fn.xSlickPrev=function(){var t=this;return t.each(function(e,s){s.slick.changeSlide({data:{message:"previous"}})})},c.fn.xSlickRemove=function(t,e){var s=this;return s.each(function(o,n){n.slick.removeSlide(t,e)})},c.fn.xSlickSetOption=function(t,e,s){var o=this;return o.each(function(n,y){y.slick.options[t]=e,s===!0&&(y.slick.unload(),y.slick.reinit())})},c.fn.xSlickUnfilter=function(){var t=this;return t.each(function(e,s){s.slick.unfilterSlides()})},c.fn.xUnslick=function(){var t=this;return t.each(function(e,s){s.slick.destroy()})}});(function(c,d,t){"use strict";c.fn.backstretch=function(o,n){return(o===t||o.length===0)&&c.error("No images were supplied for Backstretch"),this.each(function(){var y=c(this),h=y.data("backstretch");if(h){if(typeof o=="string"&&typeof h[o]=="function"){h[o](n);return}n=c.extend(h.options,n),h.destroy(!0)}h=new s(this,o,n),y.data("backstretch",h)})},c.backstretch=function(o,n){return c("body").backstretch(o,n).data("backstretch")},c.expr.pseudos.backstretch=function(o){return c(o).data("backstretch")!==t},c.fn.backstretch.defaults={centeredX:!0,centeredY:!0,duration:5e3,fade:0};var e={wrap:{left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},img:{position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"auto",height:"auto",maxHeight:"none",maxWidth:"none",zIndex:-999999}},s=function(o,n,y){this.options=c.extend({},c.fn.backstretch.defaults,y||{}),this.images=Array.isArray(n)?n:[n],c.each(this.images,function(){c("<img />")[0].src=this}),this.isBody=o===document.body,this.$container=c(o),this.$root=this.isBody?c(d):this.$container;var h=this.$container.children(".backstretch").first();if(this.$wrap=h.length?h:c('<div class="backstretch"></div>').css(e.wrap).appendTo(this.$container),!this.isBody){var v=this.$container.css("position"),w=this.$container.css("zIndex");this.$container.css({position:v==="static"?"relative":v,zIndex:w==="auto"?0:w,background:"none"}),this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody?"fixed":"absolute"}),this.index=0,this.show(this.index),c(d).on("resize.backstretch",c.proxy(this.resize,this)).on("orientationchange.backstretch",c.proxy(function(){this.isBody&&d.pageYOffset===0&&(d.scrollTo(0,1),this.resize())},this))};s.prototype={resize:function(){try{var o={left:0,top:0},n=this.isBody?this.$root.width():this.$root.innerWidth(),y=n,h=this.isBody?d.innerHeight?d.innerHeight:this.$root.height():this.$root.innerHeight(),v=y/this.$img.data("ratio"),w;v>=h?(w=(v-h)/2,this.options.centeredY&&(o.top="-"+w+"px")):(v=h,y=v*this.$img.data("ratio"),w=(y-n)/2,this.options.centeredX&&(o.left="-"+w+"px")),this.$wrap.css({width:n,height:h}).find("img:not(.deleteable)").css({width:y,height:v}).css(o)}catch{}return this},show:function(o){if(!(Math.abs(o)>this.images.length-1)){var n=this,y=n.$wrap.find("img").addClass("deleteable"),h={relatedTarget:n.$container[0]};return n.$container.trigger(c.Event("backstretch.before",h),[n,o]),this.index=o,clearInterval(n.interval),n.$img=c("<img />").css(e.img).on("load",function(v){var w=this.width||c(v.target).width(),C=this.height||c(v.target).height();c(this).data("ratio",w/C),c(this).fadeIn(n.options.speed||n.options.fade,function(){y.remove(),n.paused||n.cycle(),c(["after","show"]).each(function(){n.$container.trigger(c.Event("backstretch."+this,h),[n,o])})}),n.resize()}).appendTo(n.$wrap),n.$img.attr("src",n.images[o]),n}},next:function(){return this.show(this.index<this.images.length-1?this.index+1:0)},prev:function(){return this.show(this.index===0?this.images.length-1:this.index-1)},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this.next(),this},cycle:function(){return this.images.length>1&&(clearInterval(this.interval),this.interval=setInterval(c.proxy(function(){this.paused||this.next()},this),this.options.duration)),this},destroy:function(o){c(d).off("resize.backstretch orientationchange.backstretch"),clearInterval(this.interval),o||this.$wrap.remove(),this.$container.removeData("backstretch")}}})(jQuery,window);window.jQuery(c=>{window.xJsStackData.backstretch&&c.backstretch(...window.xJsStackData.backstretch)});})();
