
/*
	* LayerSlider
	*
	* (c) 2011-2026 George Krupa, John Gera & Kreatura Media
	*
	* LayerSlider home:		https://layerslider.com/
	* Licensing:			https://layerslider.com/licensing/
*/



!function(e){"use strict";window._layerSliders={},window._lsData={$overflowWrapper:e("body").length?e("body"):e("html"),isMobile:!!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|webOS|Windows Phone|IEMobile|mobi|opera mini|nexus 7)/i)||navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/Macintosh/.test(navigator.userAgent),supportOrientation:!!window.DeviceOrientationEvent,screen:{},document:{},viewport:{},scroll:{direction:"down"},resize:{},getScreenSize:function(){window._lsData.screen={width:screen.width,height:screen.height,ratio:screen.width/screen.height}},slide:{keys:{slidedelay:["data","duration"],duration:["data","duration"],timeshift:["data","timeShift"],transition2d:["data","transition2d"],transition3d:["data","transition3d"],transitionse:["data","transitionse"],transitionorigami:["data","transitionorigami"],customtransition2d:["data","customtransition2d"],customtransition3d:["data","customtransition3d"],transitionduration:["data","transitionDuration"],backgroundsize:["data","backgroundSize"],bgsize:["data","backgroundSize"],backgroundposition:["data","backgroundPosition"],bgposition:["data","backgroundPosition"],backgroundcolor:["data","backgroundColor"],bgcolor:["data","backgroundColor"],thumbnail:["data","thumbnail"],deeplink:["data","deeplink"],overflow:["data","overflow"],kenburnspan:["kenBurns","pan"],kenburnszoom:["kenBurns","zoom"],kenburnsrotation:["kenBurns","rotation"],kenburnsrotate:["kenBurns","rotation"],kenburnsscale:["kenBurns","scale"],filterfrom:["filter","from"],filterto:["filter","to"],parallaxtype:["parallax","type"],parallaxevent:["parallax","event"],parallaxaxis:["parallax","axis"],parallaxdistance:["parallax","distance"],parallaxrotate:["parallax","rotation"],parallaxtransformorigin:["parallax","transformOrigin"],parallaxtransformperspective:["parallax","transformPerspective"],parallaxskewx:["parallax","skewX"],parallaxskewy:["parallax","skewY"],parallaxscalex:["parallax","scaleX"],parallaxscaley:["parallax","scaleY"],parallaxdurationenter:["parallax","durationEnter"],parallaxdurationmove:["parallax","durationMove"],parallaxdurationleave:["parallax","durationLeave"],parallaxorigin:["parallax","origin"],parallaxcount:["parallax","count"],parallaxpath:["parallax","path"],parallaxdirection:["parallax","direction"],parallaxstartat:["parallax","startAt"],parallaxpathduration:["parallax","pathDuration"],parallaxrandomcount:["parallax","randomCount"],parallaxoffsetx:["parallax","randomX"],parallaxoffsety:["parallax","randomY"],parallaxrandomstartat:["parallax","randomStartAt"],parallaxrandomduration:["parallax","randomDuration"],parallaxrandomwait:["parallax","randomWait"],parallaxeasing:["parallax","ease"],globalhover:["data","globalhover"]}},layer:{keys:{keyframe:["is"],responsive:["is"],pinned:["is"],position:["settings"],static:["settings"],minresponsiveratio:["settings"],maxresponsiveratio:["settings"],usesliderratio:["settings"],trmask:["settings"],smartbgease:["settings"],minfontsize:["styleSettings"],minmobilefontsize:["styleSettings"],overlay:["styleSettings"],pointerevents:["styleSettings"],smartbg:["styleSettings"],autoplay:["mediaSettings"],controls:["mediaSettings"],showinfo:["mediaSettings"],thumbnail:["poster","mediaSettings"],poster:["mediaSettings"],volume:["mediaSettings"],muted:["mediaSettings"],loopmedia:["loop","mediaSettings"],backgroundvideo:["backgroundVideo","mediaSettings"],fadein:["opacity","inLayerFromCSS"],opacityin:["opacity","inLayerFromCSS"],rotatein:["rotation","inLayerFromCSS"],rotatexin:["rotationX","inLayerFromCSS"],rotateyin:["rotationY","inLayerFromCSS"],rotationin:["rotation","inLayerFromCSS"],rotationxin:["rotationX","inLayerFromCSS"],rotationyin:["rotationY","inLayerFromCSS"],scalein:["scale","inLayerFromCSS"],scalexin:["scaleX","inLayerFromCSS"],scaleyin:["scaleY","inLayerFromCSS"],skewxin:["skewX","inLayerFromCSS"],skewyin:["skewY","inLayerFromCSS"],bgcolorin:["backgroundColor","inLayerStyleFromCSS"],colorin:["color","inLayerStyleFromCSS"],radiusin:["borderRadius","inLayerStyleShouldBeConvertedFrom"],widthin:["width","inLayerStyleShouldBeConvertedFrom"],heightin:["height","inLayerStyleShouldBeConvertedFrom"],filterin:["filter","inLayerStyleShouldBeConvertedFrom"],clipin:["clipPath","inClipFromCSS"],zindexin:["zIndex","in"],rotate:["rotation","inLayerToCSS"],rotatex:["rotationX","inLayerToCSS"],rotatey:["rotationY","inLayerToCSS"],rotation:["rotation","inLayerToCSS"],rotationx:["rotationX","inLayerToCSS"],rotationy:["rotationY","inLayerToCSS"],scale:["scale","inLayerToCSS"],scalex:["scaleX","inLayerToCSS"],scaley:["scaleY","inLayerToCSS"],skewx:["skewX","inLayerToCSS"],skewy:["skewY","inLayerToCSS"],transformoriginin:["transformOrigin","inLayerShouldBeConverted"],offsetxin:["x","inLayerShouldBeConverted"],offsetyin:["y","inLayerShouldBeConverted"],delayin:["startAt","in"],startatin:["startAt","in"],startatfirst:["startAtFirst","in"],instartat:["startAt","in"],durationin:["duration","in"],easein:["ease","in"],easingin:["ease","in"],transitionin:["enabled","in"],transformmirrorin:["mirror","in"],skipviewport:["skipViewport","settings"],textfadein:["opacity","textInNodesFrom"],textopacityin:["opacity","textInNodesFrom"],textrotatein:["rotation","textInNodesFrom"],textrotatexin:["rotationX","textInNodesFrom"],textrotateyin:["rotationY","textInNodesFrom"],textrotationin:["rotation","textInNodesFrom"],textrotationxin:["rotationX","textInNodesFrom"],textrotationyin:["rotationY","textInNodesFrom"],textscalein:["scale","textInNodesFrom"],textscalexin:["scaleX","textInNodesFrom"],textscaleyin:["scaleY","textInNodesFrom"],textskewxin:["skewX","textInNodesFrom"],textskewyin:["skewY","textInNodesFrom"],textcolorin:["color","textInNodesFrom"],textclipin:["clipPath","textInNodesFrom"],textoverflowin:["overflow","textInLayerStyle"],texteasein:["ease","textInNodesTo"],texteasingin:["ease","textInNodesTo"],texttransformoriginin:["transformOrigin","textInShouldBeConverted"],textoffsetxin:["x","textInShouldBeConverted"],textoffsetyin:["y","textInShouldBeConverted"],texttypein:["type","textIn"],textshiftin:["shiftNodes","textIn"],textdelayin:["startAt","textIn"],textstartatin:["startAt","textIn"],textinstartat:["startAt","textIn"],textdurationin:["duration","textIn"],texttransitionin:["enabled","textIn"],texttransformmirrorin:["mirror","textIn"],fadeout:["opacity","outLayerToCSS"],opacityout:["opacity","outLayerToCSS"],rotateout:["rotation","outLayerToCSS"],rotatexout:["rotationX","outLayerToCSS"],rotateyout:["rotationY","outLayerToCSS"],rotationout:["rotation","outLayerToCSS"],rotationxout:["rotationX","outLayerToCSS"],rotationyout:["rotationY","outLayerToCSS"],scaleout:["scale","outLayerToCSS"],scalexout:["scaleX","outLayerToCSS"],scaleyout:["scaleY","outLayerToCSS"],skewxout:["skewX","outLayerToCSS"],skewyout:["skewY","outLayerToCSS"],bgcolorout:["backgroundColor","outLayerStyleToCSS"],colorout:["color","outLayerStyleToCSS"],radiusout:["borderRadius","outLayerStyleShouldBeConvertedTo"],widthout:["width","outLayerStyleShouldBeConvertedTo"],heightout:["height","outLayerStyleShouldBeConvertedTo"],filterout:["filter","outLayerStyleShouldBeConvertedTo"],clipout:["clipPath","outClipToCSS"],zindexout:["zIndex","out"],transformoriginout:["transformOrigin","outLayerShouldBeConverted"],offsetxout:["x","outLayerShouldBeConverted"],offsetyout:["y","outLayerShouldBeConverted"],showuntil:["showUntil","out"],startatout:["startAt","out"],outstartat:["startAt","out"],durationout:["duration","out"],easeout:["ease","out"],easingout:["ease","out"],transitionout:["enabled","out"],transformmirrorout:["mirror","out"],textfadeout:["opacity","textOutNodesTo"],textopacityout:["opacity","textOutNodesTo"],textrotateout:["rotation","textOutNodesTo"],textrotatexout:["rotationX","textOutNodesTo"],textrotateyout:["rotationY","textOutNodesTo"],textrotationout:["rotation","textOutNodesTo"],textrotationxout:["rotationX","textOutNodesTo"],textrotationyout:["rotationY","textOutNodesTo"],textscaleout:["scale","textOutNodesTo"],textscalexout:["scaleX","textOutNodesTo"],textscaleyout:["scaleY","textOutNodesTo"],textskewxout:["skewX","textOutNodesTo"],textskewyout:["skewY","textOutNodesTo"],textcolorout:["color","textOutNodesTo"],textclipout:["clipPath","textOutNodesTo"],texteaseout:["ease","textOutNodesTo"],texteasingout:["ease","textOutNodesTo"],texttransformoriginout:["transformOrigin","textOutShouldBeConverted"],textoffsetxout:["x","textOutShouldBeConverted"],textoffsetyout:["y","textOutShouldBeConverted"],textoverflowout:["overflow","textOutLayerStyle"],texttypeout:["type","textOut"],textshiftout:["shiftNodes","textOut"],textdelayout:["startAt","textOut"],textstartatout:["startAt","textOut"],textoutstartat:["startAt","textOut"],textdurationout:["duration","textOut"],texttransitionout:["enabled","textOut"],texttransformmirrorout:["mirror","textOut"],loopopacity:["opacity","loopLayerShouldBeConverted"],looprotate:["rotation","loopLayerShouldBeConverted"],looprotatex:["rotationX","loopLayerShouldBeConverted"],looprotatey:["rotationY","loopLayerShouldBeConverted"],looprotation:["rotation","loopLayerShouldBeConverted"],looprotationx:["rotationX","loopLayerShouldBeConverted"],looprotationy:["rotationY","loopLayerShouldBeConverted"],loopscale:["scale","loopLayerShouldBeConverted"],loopscalex:["scaleX","loopLayerShouldBeConverted"],loopscaley:["scaleY","loopLayerShouldBeConverted"],loopskewx:["skewX","loopLayerShouldBeConverted"],loopskewy:["skewY","loopLayerShouldBeConverted"],looptransformorigin:["transformOrigin","loopLayerShouldBeConverted"],loopoffsetx:["x","loopLayerShouldBeConverted"],loopoffsety:["y","loopLayerShouldBeConverted"],loopfilter:["filter","loopLayerShouldBeConverted"],loopclip:["clipPath","loopClipToCSS"],loopdelay:["startAt","loop"],loopstartat:["startAt","loop"],loopduration:["duration","loopTimingsShouldBeConverted"],loopcount:["count","loop"],looptweendelay:["tweenDelay","loopTimingsShouldBeConverted"],looprepeatdelay:["repeatDelay","loopTimingsShouldBeConverted"],loopyoyo:["yoyo","loop"],loopyoyodelay:["yoyoDelay","loopTimingsShouldBeConverted"],loopease:["ease","loop"],loopeasing:["ease","loop"],loopresume:["resume","loop"],loop:["enabled","loop"],hoveropacity:["opacity","hoverToCSS"],hoverrotate:["rotation","hoverToCSS"],hoverrotatex:["rotationX","hoverToCSS"],hoverrotatey:["rotationY","hoverToCSS"],hoverrotation:["rotation","hoverToCSS"],hoverrotationx:["rotationX","hoverToCSS"],hoverrotationy:["rotationY","hoverToCSS"],hoverscale:["scale","hoverToCSS"],hoverscalex:["scaleX","hoverToCSS"],hoverscaley:["scaleY","hoverToCSS"],hoverskewx:["skewX","hoverToCSS"],hoverskewy:["skewY","hoverToCSS"],hoverbgcolor:["backgroundColor","hoverToCSS"],hovercolor:["color","hoverToCSS"],hoverease:["easeIn","hover"],hovereasing:["easeIn","hover"],hovereasein:["easeIn","hover"],hovereasingin:["easeIn","hover"],hovereaseout:["easeOut","hover"],hovereasingout:["easeOut","hover"],hoverduration:["durationIn","hover"],hoverdurationin:["durationIn","hover"],hoverdurationout:["durationOut","hover"],hoveralwaysontop:["alwaysOnTop","hover"],hoveroffsetx:["x","hoverShouldBeConverted"],hoveroffsety:["y","hoverShouldBeConverted"],hoverfilter:["filter","hoverShouldBeConverted"],hoverborderradius:["borderRadius","hoverShouldBeConverted"],hoverradius:["borderRadius","hoverShouldBeConverted"],hovertransformorigin:["transformOrigin","hoverShouldBeConverted"],hoverskipglobal:["skipGlobal","hover"],hover:["enabled","hover"],kenburnspan:["pan","kenBurns"],kenburnszoom:["zoom","kenBurns"],kenburnsrotation:["rotation","kenBurns"],kenburnsrotate:["rotation","kenBurns"],kenburnsscale:["scale","kenBurns"],parallaxreset:["reset","parallax"],parallaxlevel:["level","parallax"],parallaxtype:["type","parallax"],parallaxevent:["event","parallax"],parallaxaxis:["axis","parallax"],parallaxdistance:["distance","parallax"],parallaxrotate:["rotation","parallax"],parallaxtransformorigin:["transformOrigin","parallax"],parallaxskewx:["skewX","parallax"],parallaxskewy:["skewY","parallax"],parallaxscalex:["scaleX","parallax"],parallaxscaley:["scaleY","parallax"],parallaxdurationenter:["durationEnter","parallax"],parallaxdurationmove:["durationMove","parallax"],parallaxdurationleave:["durationLeave","parallax"],parallaxorigin:["origin","parallax"],parallaxcount:["count","parallax"],parallaxpath:["path","parallax"],parallaxdirection:["direction","parallax"],parallaxstartat:["startAt","parallax"],parallaxpathduration:["pathDuration","parallax"],parallaxrandomcount:["randomCount","parallax"],parallaxoffsetx:["randomX","parallax"],parallaxoffsety:["randomY","parallax"],parallaxrandomstartat:["randomStartAt","parallax"],parallaxrandomduration:["randomDuration","parallax"],parallaxrandomwait:["randomWait","parallax"],parallaxeasing:["ease","parallax"],parallax:["enabled","parallax"],scroll:["enabled","scroll"],scrollduration:["duration","scroll"],scrolldurationrev:["durationRev","scroll"],scrollease:["ease","scroll"],scrolleaserev:["easeRev","scroll"],scrollcenter:["center","scroll"],scrollopacity:["opacity","scroll"],scrollopacitymin:["opacitymin","scroll"],scrollopacitymax:["opacitymax","scroll"],scrollopacityyoyo:["opacityyoyo","scroll"],scrollopacityinvert:["opacityinvert","scroll"],scrollrotate:["rotation","scroll"],scrollrotatemin:["rotationmin","scroll"],scrollrotatemax:["rotationmax","scroll"],scrollrotateyoyo:["rotationyoyo","scroll"],scrollrotatex:["rotationX","scroll"],scrollrotatexmin:["rotationXmin","scroll"],scrollrotatexmax:["rotationXmax","scroll"],scrollrotatexyoyo:["rotationXyoyo","scroll"],scrollrotatey:["rotationY","scroll"],scrollrotateymin:["rotationYmin","scroll"],scrollrotateymax:["rotationYmax","scroll"],scrollrotateyyoyo:["rotationYyoyo","scroll"],scrollrotation:["rotation","scroll"],scrollrotationmin:["rotationmin","scroll"],scrollrotationmax:["rotationmax","scroll"],scrollrotationyoyo:["rotationyoyo","scroll"],scrollrotationx:["rotationX","scroll"],scrollrotationxmin:["rotationXmin","scroll"],scrollrotationxmax:["rotationXmax","scroll"],scrollrotationxyoyo:["rotationXyoyo","scroll"],scrollrotationy:["rotationY","scroll"],scrollrotationymin:["rotationYmin","scroll"],scrollrotationymax:["rotationYmax","scroll"],scrollrotationyyoyo:["rotationYyoyo","scroll"],scrollscalex:["scaleX","scroll"],scrollscalexmin:["scaleXmin","scroll"],scrollscalexmax:["scaleXmax","scroll"],scrollscalexyoyo:["scaleXyoyo","scroll"],scrollscaley:["scaleY","scroll"],scrollscaleymin:["scaleYmin","scroll"],scrollscaleymax:["scaleYmax","scroll"],scrollscaleyyoyo:["scaleYyoyo","scroll"],scrollskewx:["skewX","scroll"],scrollskewxmin:["skewXmin","scroll"],scrollskewxmax:["skewXmax","scroll"],scrollskewxyoyo:["skewXyoyo","scroll"],scrollskewy:["skewY","scroll"],scrollskewymin:["skewYmin","scroll"],scrollskewymax:["skewYmax","scroll"],scrollskewyyoyo:["skewYyoyo","scroll"],scrolloffsetx:["x","scroll"],scrolloffsetxmin:["xmin","scroll"],scrolloffsetxmax:["xmax","scroll"],scrolloffsetxyoyo:["xyoyo","scroll"],scrolloffsetxresponsive:["xresponsive","scroll"],scrolloffsety:["y","scroll"],scrolloffsetymin:["ymin","scroll"],scrolloffsetymax:["ymax","scroll"],scrolloffsetyyoyo:["yyoyo","scroll"],scrolloffsetyresponsive:["yresponsive","scroll"],scrolltransformorigin:["transformOrigin","scrollShouldBeConverted"],scrolltransformoriginalt:["transformOriginAlt","scrollShouldBeConverted"],scrollgetposition:["getPosition","scroll"],transformperspective:["layer","transformPerspective"],transformperspectivein:["layer","transformPerspective"],transformperspectiveout:["layer","transformPerspective"],texttransformperspective:["text","transformPerspective"],texttransformperspectivein:["text","transformPerspective"],texttransformperspectiveout:["text","transformPerspective"],looptransformperspective:["loop","transformPerspective"],hovertransformperspective:["hover","transformPerspective"],parallaxtransformperspective:["parallax","transformPerspective"],scrolltransformperspective:["scroll","transformPerspective"]}}},e(window).on("resize.lsGlobal",function(){window._lsData.documentIsAccessible&&(window._lsData.document={width:document.body.scrollWidth,height:document.body.scrollHeight},window._lsData.viewport={lastWidth:window._lsData.viewport.width||0,lastHeight:window._lsData.viewport.height||0,width:e(window).width(),height:e(window).height()},e(window).trigger("scroll.lsGlobal"),window._lsData.resize.timeout&&clearTimeout(window._lsData.resize.timeout),window._lsData.resize.once?window._lsData.resize.once=!1:window._lsData.resize.timeout=setTimeout(function(){window._lsData.resize.once=!0,e(window).trigger("resize.lsGlobal")},100))}),e(window).on("scroll.lsGlobal",function(){window._lsData.documentIsAccessible&&(window._lsData.scroll.left=window.pageXOffset,window._lsData.scroll.top=window.pageYOffset,window._lsData.scroll.leftMax=window._lsData.document.width-window._lsData.viewport.width,window._lsData.scroll.topMax=window._lsData.document.height-window._lsData.viewport.height)}),e(document).on("wheel.lsGlobal ",function(e){0!==Math.abs(e.originalEvent.deltaY)&&(window._lsData.scroll.direction=e.originalEvent.deltaY<0?"up":"down")}),e(document).on("touchstart.lsGlobal ",function(e){window._lsData.ts=e.originalEvent.touches[0].clientY}),e(document).on("touchend.lsGlobal ",function(e){var t=e.originalEvent.changedTouches[0].clientY;window._lsData.ts>t+5?window._lsData.scroll.direction="down":window._lsData.ts<t-5&&(window._lsData.scroll.direction="up")}),e.fn.layerSlider=function(i,a,s,r){window._lsData.documentIsAccessible=!0,i=i||{};var o,n="1.8.0",l=e.fn.jquery;if(window._layerSlider.checkVersions(n,l,n))return(typeof i).match("object|undefined")?this.each(function(a){o="LS"+Math.random().toString(36).substr(2,9),e(this).data("lsSliderUID")||(window._layerSliders[o]=new t(this,e(this),i,o))}):"data"===i?window._layerSliders[this.data("lsSliderUID")]:"eventData"===i?window._layerSliders[this.data("lsSliderUID")].api.eventData():"defaultInitOptions"===i?window._layerSliders[this.data("lsSliderUID")].defaults.init.options||!1:"userInitOptions"===i?window._layerSliders[this.data("lsSliderUID")].userInitOptions||!1:"sliderInitOptions"===i?window._layerSliders[this.data("lsSliderUID")].o||!1:"originalMarkup"===i?window._layerSliders[this.data("lsSliderUID")].originalMarkup||!1:this.each(function(t){var o=window._layerSliders[e(this).data("lsSliderUID")];o&&o.api.methods(i,a,s,r),o=null});window._layerSlider.showNotice(this,"oldjquery",l,n)};var t=function(t,i,a,s){i.data("lsSliderUID",s).attr("data-layerslider-uid",s);var r=this,o=r.gsap=window._layerSlider.GSAP?window._layerSlider.GSAP:window,n=e(window),l=window._lsData;r.defaults={init:{staggerSplitChar:"|",rangeSplitChar:"..",randomSplitChar:"|",openingBracket:"[",closingBracket:"]",dataKey:"_LS",emptyIMG:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",controls:["#playmedia","#pausemedia","#unmute","#unmutemedia","#start","#stop","#prev","#next","#replay","#reverse","#reverse-replay","#reversereplay"],options:{silentMode:!1,getData:!1,destroyAfter:!0,type:"responsive",fullSizeMode:"normal",fitScreenWidth:!0,calculateOffsetFrom:!1,preventSliderClip:!0,allowFullscreen:!1,performanceMode:!0,performanceModeThreshold:"20sh",responsiveUnder:-1,layersContainerWidth:-1,layersContainerHeight:-1,maxRatio:-1,insertMethod:"prependTo",insertSelector:null,clipSlideTransition:!1,slideBGSize:"cover",slideBGPosition:"50% 50%",preferBlendMode:!1,scene:!1,sceneHeight:2,sceneSpeed:100,sceneDuration:null,smoothScrollDuration:1e3,stickTo:"center",autoStart:!0,startInViewport:!0,playByScroll:!1,playByScrollSpeed:1,playByScrollStart:!1,playByScrollSkipSlideBreaks:!1,pauseOnHover:!1,pauseLayers:!1,firstSlide:1,sliderFadeInDuration:0,animateFirstSlide:!1,firstSlideDuration:!1,firstSlideTimeShift:!1,cycles:-1,forceCycles:!0,twoWaySlideshow:!1,shuffleSlideshow:!1,forceLayersOutDuration:750,slideDuration:!1,slideDurationWithoutLayers:3e3,slideTransitionDuration:!1,slideTimeShift:0,skin:"v6",skinsPath:"/layerslider/skins/",globalBGColor:"transparent",globalBGImage:!1,globalBGRepeat:"no-repeat",globalBGAttachment:"scroll",globalBGSize:"auto",globalBGPosition:"50% 50%",marginTop:!1,marginBottom:!1,navPrevNext:!0,navStartStop:!0,navButtons:!0,keybNav:!0,touchNav:!0,hoverPrevNext:!0,hoverBottomNav:!1,showBarTimer:!1,showCircleTimer:!0,showSlideBarTimer:!1,thumbnailNavigation:"hover",tnFillMode:"contain",tnContainerWidth:"60%",tnWidth:100,tnHeight:60,tnActiveOpacity:35,tnInactiveOpacity:100,scrollModifier:0,autoPlayVideos:!0,autoPauseSlideshow:"auto",youtubePreview:"maxresdefault.jpg",rememberUnmuteState:!0,parallaxCenterDegree:40,parallaxSensitivity:10,parallaxCenterLayers:"center",parallaxScrollReverse:!1,scrollCenterLayers:"center",yourLogo:!1,yourLogoStyle:"left: -10px; top: -10px;",yourLogoLink:!1,yourLogoTarget:"_self",optimizeForMobile:!0,hideOnMobile:!1,hideUnder:-1,hideOver:-1,slideOnSwipe:!0,allowRestartOnResize:!1,fixFloatedContainers:!1,useSrcset:!0,hashChange:!1,refreshWaypoint:!0,staticImage:""}},slider:{errorText:"LayerSlider (UID: "+s+") error:"},slide:{keys:window._lsData.slide.keys,options:{$link:!1,index:-1,data:{duration:-1,timeShift:0,calculatedTimeShift:0},parallax:{type:"2d",event:"cursor",x:!0,y:!0,distance:10,rotation:10,transformOrigin:"slidercenter slidermiddle 0",transformPerspective:500,skewX:0,skewY:0,scaleX:0,scaleY:0,durationEnter:1.5,durationMove:1.5,durationLeave:1.2,origin:"slidercenter slidermiddle",count:-1,path:"circle",direction:"forward",startAt:"slidestart",pathDuration:3,randomCount:-1,randomX:"[-35sw..35sw]",randomY:"[-35sh..35sh]",randomStartAt:"slidestart",randomDuration:3,randomWait:0,ease:"easeInOutSine"},kenBurns:{scale:1.2},filter:{},lottie:{count:0,loaded:0}},registerPluginDefaults:function(e,t,i){r.defaults.slide.options.plugins||(r.defaults.slide.options.plugins={}),r.defaults.slide.options.plugins[e]=t}},layer:{keys:window._lsData.layer.keys,splitTypeKeys:["chars_asc","chars_desc","chars_rand","chars_center","chars_edge","words_asc","words_desc","words_rand","words_center","words_edge","lines_asc","lines_desc","lines_rand","lines_center","lines_edge"],timelineHierarchy:{slidestart:[0],transitioninstart:[1],transitioninend:[2],textinstart:[3,[1,2,6,7,8]],textinend:[4],allinend:[5],loopstart:[6,[1,2,3,4,5]],loopend:[7],autoparallaxstart:[6.5,[0,1,2,3,4,5,6,7]],autoparallaxend:[7.5],transitioninandloopend:[8],textinandloopend:[9],allinandloopend:[10],textoutstart:[11,[2,3,4,5,6,7,8,9,10]],textoutend:[12],textoutandloopend:[13],transitionoutstart:[14,[2,3,4,5,6,7,8,9,10,11,12,13]],transitionoutend:[15],alloutend:[16],alloutandloopend:[17]},properties:{filter:function(){return{blur:0,brightness:100,contrast:100,grayscale:0,"hue-rotate":0,invert:0,saturate:100,sepia:0}}},options:function(e,t){var i=e.data("countdown")||{},a=e.data("counter")||{},s={is:{slideBackground:!!e.is("img.ls-bg"),backgroundVideo:!!e.is(".ls-bg-video"),imageLayer:!!e.is("img.ls-layer, picture.ls-layer"),countdown:!(!i.date||!i.component),counter:!!a.type,layerGroup:!!e.is(".ls-layer-group"),insideLayerGroup:!!e.data("$layerGroup"),mediaLayer:!1,textLayer:!1,inMask:!(!r.o.mask||!e.is("[data-ls-masked]")),lottie:!!e.is(".ls-lottie-layer"),responsive:!0,onSlide:t},should:{},elements:{},settings:{position:"relative",slideIn:t,slideOut:t},styleSettings:{minfontsize:0,minmobilefontsize:0},mediaSettings:{backgroundVideo:!1},timeline:{slidestart:0,transitioninstart:0,transitioninend:0,textinstart:0,textinend:0,allinend:function(e){return Math.max(this.transitioninend,this.textinend)},loopstart:0,loopend:0,autoparallaxstart:0,autoparallaxend:0,transitioninandloopend:function(e){return 0===this.loopend&&e.loop.enabled&&("number"==typeof e.loop.startAt||-1!==e.loop.startAt.indexOf("textinstart")&&-1!==e.loop.startAt.indexOf("textinend")&&-1!==e.loop.startAt.indexOf("allinend"))?(this.loopstart=r.transitions.layers.timeline.getTiming(e,e.loop.startAt,"loopstart"),this.loopend=-1!==e.loop.count&&e.timeline.loopstart+e.timelines._loop.duration()):r.debugMode&&r.debug.add("warn","layerTransition.infinite",e.self[0].tagName+"."+e.self.attr("class")+" [ "+e.self.html().substr(0,30)+"... ]"),Math.max(this.transitioninend,this.loopend,this.autoparallaxend)},textinandloopend:function(e){return Math.max(this.textinend,this.loopend,this.autoparallaxend)},allinandloopend:function(e){return Math.max(this.allinend(),this.loopend,this.autoparallaxend)},textoutstart:0,textoutend:0,textoutandloopend:function(e){return Math.max(this.textoutend,this.loopend,this.autoparallaxend)},transitionoutstart:function(e){return Math.max(this.allinandloopend(),this.textoutend,this.autoparallaxend)},transitionoutend:0,alloutend:function(e){return Math.max(this.transitionoutend,this.textoutend,this.allinend())},alloutandloopend:function(e){return Math.max(this.transitionoutend,this.textoutandloopend(),this.allinend())},staticfrom:!1,staticto:!1},transitionProperties:{in:{enabled:!0,layerFrom:{autoCSS:!1,immediateRender:!1,css:{opacity:0}},layerTo:{autoCSS:!1,onStart:function(){r.transitions.layers.in.onStart(e)},onComplete:function(){r.transitions.layers.in.onComplete(e)},css:{display:"block",opacity:1,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,x:0,y:0}},layerStyleFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerStyleTo:{autoCSS:!1,css:{}},clipFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerShouldBeConverted:{transformOrigin:"50% 50% 0",x:0,y:0},layerStyleShouldBeConvertedFrom:{},layerStyleShouldBeConvertedTo:{},startAt:0,duration:1,ease:"easeInOutQuint"},textIn:{enabled:null,nodesFrom:{cycle:{},random:{},opacity:0},nodesTo:{ease:"easeInOutQuint",css:{opacity:1,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,x:0,y:0}},shouldBeConverted:{cycle:{},random:{},transformOrigin:"50% 50% 0",x:0,y:0},layerStyle:{},split:"",shiftNodes:.05,startAt:"transitioninend",duration:1},out:{enabled:!0,layerFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerTo:{autoCSS:!1,onStart:function(){r.transitions.layers.out.onStart(e)},onComplete:function(){r.transitions.layers.out.onComplete(e)},css:{opacity:0,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0}},layerStyleFrom:{autoCSS:!1,immediateRender:!1,css:{}},layerStyleTo:{autoCSS:!1,css:{}},clipTo:{autoCSS:!1,css:{}},layerShouldBeConverted:{x:0,y:0},layerStyleShouldBeConvertedFrom:{},layerStyleShouldBeConvertedTo:{},startAt:"slidechangeonly",duration:1,defaultDuration:1,ease:"easeInOutQuint"},textOut:{enabled:null,nodesFrom:{immediateRender:!1,cycle:{},opacity:1},nodesTo:{ease:"easeInOutQuint",immediateRender:!1,cycle:{},random:{},opacity:0},layerStyle:{},shouldBeConverted:{cycle:{},random:{},x:0,y:0},split:"",startAt:"allinandloopend",shiftNodes:.05,duration:1},loop:{enabled:null,initial:{autoCSS:!1,immediateRender:!1,css:{x:0,y:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0,opacity:1}},to:{autoCSS:!1,css:{}},clipTo:{autoCSS:!1,immediateRender:!1,css:{}},layerShouldBeConverted:{transformOrigin:"50% 50% 0",x:0,y:0},timingsShouldBeConverted:{yoyoDelay:0,tweenDelay:0,repeatDelay:0,duration:1e3},ease:"linear",startAt:"allinend",count:0},hover:{enabled:null,from:{autoCSS:!1,immediateRender:!1,css:{}},to:{autoCSS:!1,immediateRender:!1,css:{}},shouldBeConverted:{transformOrigin:"50% 50% 0"},alwaysOnTop:!0,easeIn:"easeOutQuart",durationIn:.5},parallax:{enabled:null,level:10},scroll:{enabled:null,shouldBeConverted:{transformOrigin:"50% 50% 0"},xresponsive:!0,yresponsive:!0},kenBurns:{scale:1.2},clip:{enabled:!1,default:{autoCSS:!1,immediateRender:!1,css:{clipPath:"polygon(0% 0%,100% 0%,100% 100%,0% 100%)"}},style:{autoCSS:!1,immediateRender:!1,css:{clipPath:"polygon(0% 0%,100% 0%,100% 100%,0% 100%)"}},none:{autoCSS:!1,immediateRender:!1,css:{clipPath:"polygon(-9999% -9999%,9999% -9999%,9999% 9999%,-9999% 9999%)"}}},filter:{values:{style:{},in:{},out:{},loop:{},hover:{},afterIn:{},afterLoop:{},bgFrom:{},bgTo:{}},transitions:{bg:null,in:null,out:null,loop:null,hover:null}},init:{wrapper:{autoCSS:!1,immediateRender:!1,css:{display:"block"}}},transformPerspective:{layer:500,text:500,loop:500,hover:500},reset:{wrapperOnTimelineEnd:{autoCSS:!1,css:{opacity:1,display:"none"}},wrapperOnSlideChange:{autoCSS:!1,css:{x:0,y:0,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,opacity:1,display:"none"}},altWrapperOnSlideChange:{autoCSS:!1,css:{x:0,y:0,rotation:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,opacity:1}}}}};return{is:s.is,should:s.should,elements:s.elements,settings:s.settings,styleSettings:s.styleSettings,mediaSettings:s.mediaSettings,mediaProperties:s.mediaProperties,timeline:s.timeline,in:s.transitionProperties.in,inLayerFrom:s.transitionProperties.in.layerFrom,inLayerFromCSS:s.transitionProperties.in.layerFrom.css,inLayerStyleFrom:s.transitionProperties.in.layerStyleFrom,inLayerStyleFromCSS:s.transitionProperties.in.layerStyleFrom.css,inClipFrom:s.transitionProperties.in.clipFrom,inClipFromCSS:s.transitionProperties.in.clipFrom.css,inLayerTo:s.transitionProperties.in.layerTo,inLayerToCSS:s.transitionProperties.in.layerTo.css,inLayerStyleTo:s.transitionProperties.in.layerStyleTo,inLayerStyleToCSS:s.transitionProperties.in.layerStyleTo.css,inClipTo:s.transitionProperties.clip.style,inClipToCSS:s.transitionProperties.clip.style.css,inLayerShouldBeConverted:s.transitionProperties.in.layerShouldBeConverted,inLayerStyleShouldBeConvertedFrom:s.transitionProperties.in.layerStyleShouldBeConvertedFrom,inLayerStyleShouldBeConvertedTo:s.transitionProperties.in.layerStyleShouldBeConvertedTo,textIn:s.transitionProperties.textIn,textInLayerStyle:s.transitionProperties.textIn.layerStyle,textInNodesFrom:s.transitionProperties.textIn.nodesFrom,textInNodesTo:s.transitionProperties.textIn.nodesTo,textInNodesToCSS:s.transitionProperties.textIn.nodesTo.css,textInShouldBeConverted:s.transitionProperties.textIn.shouldBeConverted,out:s.transitionProperties.out,outLayerFrom:s.transitionProperties.out.layerFrom,outLayerFromCSS:s.transitionProperties.out.layerFrom.css,outLayerStyleFrom:s.transitionProperties.out.layerStyleFrom,outLayerStyleFromCSS:s.transitionProperties.out.layerStyleFrom.css,outClipFrom:s.transitionProperties.clip.style,outClipFromCSS:s.transitionProperties.clip.style.css,outLayerTo:s.transitionProperties.out.layerTo,outLayerToCSS:s.transitionProperties.out.layerTo.css,outLayerStyleTo:s.transitionProperties.out.layerStyleTo,outLayerStyleToCSS:s.transitionProperties.out.layerStyleTo.css,outClipTo:s.transitionProperties.out.clipTo,outClipToCSS:s.transitionProperties.out.clipTo.css,outLayerShouldBeConverted:s.transitionProperties.out.layerShouldBeConverted,outLayerStyleShouldBeConvertedFrom:s.transitionProperties.out.layerStyleShouldBeConvertedFrom,outLayerStyleShouldBeConvertedTo:s.transitionProperties.out.layerStyleShouldBeConvertedTo,textOut:s.transitionProperties.textOut,textOutLayerStyle:s.transitionProperties.textOut.layerStyle,textOutNodesFrom:s.transitionProperties.textOut.nodesFrom,textOutNodesTo:s.transitionProperties.textOut.nodesTo,textOutShouldBeConverted:s.transitionProperties.textOut.shouldBeConverted,loop:s.transitionProperties.loop,loopInitial:s.transitionProperties.loop.initial,loopInitialCSS:s.transitionProperties.loop.initial.css,loopClipFrom:s.transitionProperties.clip.style,loopClipFromCSS:s.transitionProperties.clip.style.css,loopTo:s.transitionProperties.loop.to,loopToCSS:s.transitionProperties.loop.to.css,loopClipTo:s.transitionProperties.loop.clipTo,loopClipToCSS:s.transitionProperties.loop.clipTo.css,loopLayerShouldBeConverted:s.transitionProperties.loop.layerShouldBeConverted,loopTimingsShouldBeConverted:s.transitionProperties.loop.timingsShouldBeConverted,hover:s.transitionProperties.hover,hoverFrom:s.transitionProperties.hover.from,hoverFromCSS:s.transitionProperties.hover.from.css,hoverTo:s.transitionProperties.hover.to,hoverToCSS:s.transitionProperties.hover.to.css,hoverShouldBeConverted:s.transitionProperties.hover.shouldBeConverted,parallax:s.transitionProperties.parallax,scroll:s.transitionProperties.scroll,scrollShouldBeConverted:s.transitionProperties.scroll.shouldBeConverted,kenBurns:s.transitionProperties.kenBurns,clip:s.transitionProperties.clip,filter:s.transitionProperties.filter,transformPerspective:s.transitionProperties.transformPerspective,init:s.transitionProperties.init,reset:s.transitionProperties.reset,countdownSettings:i,counterSettings:a,timelines:{},randomValues:{}}}}},r.slides={count:0,first:{},last:{},prev:{},current:{},next:{},init:function(){if(!document.body.contains(t))return!1;for(var a=i.find("> .ls-layer, > .ls-slide"),s=0,o=r.defaults.slide.keys,n=0,l=a.length;n<l;n++){var d=e(a[n]),c=d[0].style,p=e.extend(!0,{},r.defaults.slide.options),u=!1;if(r.slides.count++,d.removeClass("ls-layer").addClass("ls-slide").css({width:r.slider.initial.originalWidth,height:r.slider.initial.originalHeight}).appendTo(r.slider.$hiddenWrapper),d.data("ls"))for(var m=d.data("ls").split(";"),h=0;h<m.length;h++){var f,g,y=m[h].split(":");y[0]=e.trim(y[0].toLowerCase()),y[1]=e.trim(y[1]),-1==["thumbnail"].indexOf(y[0])&&(y[1]=y[1].toLowerCase()),""!==y[0]&&(void 0!==o[y[0]]?(f=void 0===o[y[0]][1]?y[0]:o[y[0]][1],g=r.functions.convert.properties(y[1]),f.match(/(duration|delay|wait|timeshift)/i)&&e.isNumeric(g)&&(g/=1e3),p[o[y[0]][0]]||(p[o[y[0]][0]]={}),p[o[y[0]][0]][f]=g):p.data[y[0]]=y[1])}if(p.plugins&&!e.isEmptyObject(p.plugins))for(var v in p.plugins)if(d.data("ls-plugin-"+v)){var x=d.data("ls-plugin-"+v).toLowerCase().split(";"),S={};for(var w in p.plugins[v])S[w.toLowerCase()]=w;for(var b=0;b<x.length;b++){var T,k=x[b].split(":");k[0]=e.trim(k[0]),""!==k[0]&&(T=r.functions.convert.properties(e.trim(k[1])),-1===k[0].indexOf("duration")&&-1===k[0].indexOf("delay")||(T/=1e3),S[k[0]]?p.plugins[v][S[k[0]]]=T:p.plugins[v][k[0]]=T)}}else delete p.plugins[v];d.children("a.ls-link").length&&(p.data.$link=d.children("a.ls-link").first().css({zIndex:5}).attr("data-ls-slide-link",s+1).appendTo(r.slider.$layersWrapper),r.layers.set.smartLinks(p.data.$link)),p.data.$backgroundVideo=d.children('[data-ls*="backgroundvideo"]').first(),p.data.$backgroundVideo.find("iframe, video, audio").length?p.data.HTMLVideoElement=p.data.$backgroundVideo.find("video")[0]||!1:p.data.$backgroundVideo=e(),p.data.$backgroundVideo.length&&(null!==p.data.$backgroundVideo.attr("data-ls").split("backgroundvideo")[1].split(";")[0].match(/(true|enabled|on|1)/i)?(p.data.$backgroundVideo.addClass("ls-bg-video").css({width:"auto",height:"auto"}).children("video, audio, iframe").css({width:"100%",height:"100%"}),p.data.$backgroundVideo.append(e('<div class="ls-bg-video-overlay"></div>'))):p.data.$backgroundVideo=!1),d.find("> .ls-bg").length&&(p.data.$background=d.find("> .ls-bg").first()),p.data.thumbnail||(d.find("> .ls-tn").length?u=d.find("> .ls-tn").first():d.find("> .ls-bg").length&&(u=d.find("> .ls-bg").first()),u?(p.data.thumbnail=r.functions.getURL(u),p.data.tnAlt=r.functions.getALT(u)):p.data.thumbnail=r.o.skinsPath+r.o.skin+"/nothumb.png"),(p.data.customtransition2d||p.data.customtransition3d)&&"undefined"==typeof layerSliderCustomTransitions&&(delete p.data.customtransition2d,delete p.data.customtransition3d,r.debugMode&&r.debug.add("warn","sliderInit.customTransitions",s+1)),"visible"===c.overflow&&(p.data.overflow="visible"),p.data.$background||!p.data.backgroundColor||p.data.$backgroundVideo&&p.data.$backgroundVideo.length||(p.data.$background=e("<img>").addClass("ls-bg").attr("src",r.defaults.init.emptyIMG).appendTo(d)),p.data.backgroundColor&&-1!==p.data.backgroundColor.indexOf("gradient")?p.data.backgroundGradient=p.data.backgroundColor:p.data.backgroundColor||(p.data.backgroundColor=""===d[0].style.backgroundColor?"transparent":d[0].style.backgroundColor),r.o.silentMode&&(p.data.transitionDuration=0),r.slides[++s]={data:e.extend(!0,{},r.defaults.slide.options.data,p.data),parallax:p.parallax,scroll:p.scroll,kenBurns:p.kenBurns,filter:p.filter,lottie:p.lottie,index:s,$layers:e(),plugins:p.plugins,effectLayers:d.find("[data-ls-effects]")},r.slider.thumbnails.push(p.data.thumbnail),r.plugins.callFunctions("initSlide",{slideElement:d,slideIndex:s,slideSettings:p}),r.layers.init(d,s)}r.debugMode&&r.debug.groupEnd("sliderInit.style")},set:{slideIndexes:function(){var e=r.slides;e.prev.index=e.current.index,e.current.index=e.next.index,e.next.index=r.slideshow.get.slideInSequence(r.slideshow.direction),e.set.slidesData(),r.slider.set.attributes(),r.slides.indexesCreated=!0},nextSlideIndex:function(e){var t=r.slides;t.next.index=e,t.set.slidesData()},slidesData:function(){var t=r.slides;t.prev=-1!==t.prev.index?e.extend(!0,{},t[t.prev.index]):{},t.current=-1!==t.current.index?e.extend(!0,{},t[t.current.index]):{},t.next=-1!==t.next.index?e.extend(!0,{},t[t.next.index]):{}},firstSlide:function(){var t=r.slides;if(t.first.index="random"===r.o.firstSlide?r.o.firstSlide:Math.max(r.functions.convert.properties(r.o.firstSlide,!0),1),r.o.shuffleSlideshow&&r.slides.count>2?r.o.twoWaySlideshow=!1:r.o.shuffleSlideshow=!1,t.first.index="random"==t.first.index?Math.floor(Math.random()*r.slides.count+1):t.first.index,document.location.hash){var i=r.slides.deeplink(document.location.hash,!0);i&&(r.slides.first.index=i)}t.first.index=t.first.index<1||t.first.index>r.slides.count?1:t.first.index,r.o.shuffleSlideshow&&"random"!=r.o.firstSlide&&(t.first.index=r.o.firstSlide),t[t.first.index]&&t[t.first.index].data&&(t.first.data=e.extend(!0,{},t[t.first.index].data)),r.o.playByScroll&&r.slideshow.set.normalizedSequence(),r.debugMode&&r.debug.options.firstSlide&&(t.first.index=r.debug.options.firstSlide)},actions:function(e,t){}},get:{deeplink:function(e){return e&&r.slides[e]&&r.slides[e].data&&r.slides[e].data.deeplink?r.slides[e].data.deeplink:null}},deeplink:function(e,t){for(var i=!1,a=1;a<r.slides.count+1;a++)if(r.slides[a].data.deeplink==e.substring(1)){if(i=a,t)return i;r.slideshow.changeTo(i,!0,!0)}if(!i&&t)return!1},slide:[]},r.countdown={calculateDate:function(e){var t,i=r.countdown.calculateDistance(e.date,e.repeat);switch(e.component){case"days":t=Math.floor(i/864e5);break;case"hours":t=Math.floor(i%864e5/36e5);break;case"minutes":t=Math.floor(i%36e5/6e4);break;case"seconds":t=Math.floor(i%6e4/1e3)}return t=Math.max(0,t||0),e.leadingZeros&&(t=t.toString().padStart(2,"0")),t},calculateDistance:function(e,t){var i=new Date(e),a=new Date;if(i>=a)return i.getTime()-a.getTime();switch(t){case"daily":var s=Math.ceil((a-i)/864e5);i.setDate(i.getDate()+s);break;case"weekly":var r=Math.ceil((a-i)/6048e5);i.setDate(i.getDate()+7*r);break;case"monthly":var o=12*(a.getFullYear()-i.getFullYear())+a.getMonth()-i.getMonth();i.getDate()>a.getDate()&&o--,i.setMonth(i.getMonth()+o+1);break;case"yearly":var n=a.getFullYear()-i.getFullYear();(i.getMonth()>a.getMonth()||i.getMonth()===a.getMonth()&&i.getDate()>a.getDate())&&n--,i.setFullYear(i.getFullYear()+n+1)}return i.getTime()-a.getTime()},startInterval:function(e,t){r.countdown.setLayerTimer(e,t),r.countdown.stopInterval(t),t.interval=setInterval(function(){r.countdown.setLayerTimer(e,t)},1e3)},setLayerTimer:function(e,t){e.text(this.calculateDate(t))},stopInterval:function(e){e.interval&&clearInterval(e.interval)}},r.counter={start:function(e,t){this.stop(t);var i=parseFloat(t.start),a=parseFloat(t.end),s=i>a?i:a,n=i<a?i:a,l=parseFloat(t.duration)||2e3,d=t.ease||"easeOutSine",c=parseFloat(t.step)||1,p=parseFloat(t.stepDelay)||50,u=Math.max(parseInt(i).toString().length,parseInt(a).toString().length);t.maxLength=u,"step"===t.type&&(d="linear",l=Math.abs(i-a)/c*p),isNaN(i)||isNaN(a)||(t.animationTween=o.TweenMax.to({value:i},l/1e3,{value:a,ease:d,onUpdate:function(){var i=this.target.value;"step"===t.type&&(i=Math.round(i/c)*c,i=Math.max(i,n),i=Math.min(i,s)),e.text(r.counter.applyNumberFormat(t,i))},onComplete:function(){e.text(r.counter.applyNumberFormat(t,a))}}))},applyNumberFormat:function(t,i){var a=t.dp,s=t.ds,r=t.ts;if(!e.isNumeric(i))return i;var o=parseFloat(i).toFixed(a).split("."),n=o[0],l=o[1];if(t.lz)for(var d=1;n.length<t.maxLength;d++)n="0"+n;return n=n.replace(/\B(?=(\d{3})+(?!\d))/g,r),l?n+s+l:n},stop:function(e){e.animationTween&&(e.animationTween.kill(),e.animationTween=null)},setFormat:function(e,t){}},r.layers={$all:e(),getStyle:function(e,t){return-1!=e.indexOf("em")?e:-1!=e.indexOf("%")?(parseFloat(e)*t).toString():(parseFloat(e)||0).toString()},toNum:function(e,t){return t=parseFloat(t),-1!=e.indexOf("em")?parseFloat(e)*t:parseFloat(e)},init:function(i,a){if(!document.body.contains(t))return!1;i.find("noscript").remove();for(var s,o=i.find(".ls-bg, .ls-l, .ls-layer, .ls-lg, .ls-layer-group"),n=0,l=o.length;n<l;n++){var d=e(o[n]),c=d[0],p=d.children();if(r.plugins.callFunctions("initLayerStart",{slideElement:i,$layer:d,slideIndex:a}),d.data("slideIndex",a),d.hasClass("ls-l"))d.removeClass("ls-l").addClass("ls-layer");else if(d.hasClass("ls-lg"))d.removeClass("ls-lg").addClass("ls-layer-group");else if(!d.is(".ls-bg, .ls-layer, .ls-layer-group")){d.remove();continue}d.is("a")&&1===p.length&&((c=(d=d.children().first())[0]).setAttribute("data-ls",c.parentNode.getAttribute("data-ls")),c.parentNode.removeAttribute("data-ls"),d.parent().removeClass("ls-layer"),d.addClass("ls-layer")),d.is(".ls-layer-group")&&d.children().data("$layerGroup",d);var u=new r.defaults.layer.options(d,a);d.data(r.defaults.init.dataKey,u),-1!==d.attr("class").indexOf("ls-linkto-")&&this.set.linkTo(d),u.is.counter&&(u.counterSettings.ease=r.functions.convert.easing(u.counterSettings.ease)),d.parent().is("a")?(d.parent().data("slideIndex")&&d.data("slideIndex",d.parent().data("slideIndex")),s=d.parent(),this.set.smartLinks(s)):s=d,s.attr("data-ls-actions")&&this.set.actions(s,JSON.parse(s.attr("data-ls-actions"))||{}),r.plugins.callFunctions("initLayerEnd",{slideElement:i,$layer:d,layerData:u,slideIndex:a}),u.is.lottie&&r.transitions.lottie.init(d,u),r.slides[a].$layers=r.slides[a].$layers.add(s)}},set:{mirrorTransitions:function(e){return e=e.split(" ")},actions:function(t,i){i.length;e.each(i,function(i,a){var s=e.extend(!0,{},a),o=s.trigger;t.on(o,function(e){setTimeout(function(e){r.actions.do(e)},s.delay||0,s)})})},smartLinks:function(t){var i=t.attr("href"),a=t.attr("target"),n="";if(a&&-1!==a.indexOf("ls-scroll")){switch(i){case"pagetop":n="Scroll to page top";break;case"pagebottom":n="Scroll to page bottom";break;case"slidertop":n="Scroll to the top of the slider";break;case"":case"sliderbottom":n="Scroll to the bottom of the slider";break;default:n="Scroll to a specified location on the page"}r.layers.set.ariaLabel(t,n),t.on("click."+s,function(t){t.preventDefault();var a,s=document.body.scrollHeight-l.viewport.height;if(i)switch(i){case"pagetop":a=0;break;case"pagebottom":a=s;break;case"slidertop":a=r.slider.offset.top;break;case"":case"sliderbottom":a=r.slider.offset.top+r.slider.height;break;default:a=e(i).filter(":visible").last().length?e(i).filter(":visible").last().offset().top:r.slider.offset.top+r.slider.height}a+=r.o.scrollModifier,a=Math.min(a,s),a=Math.max(0,a),o.TweenMax.to("html, body",1,{scrollTop:a,ease:o.Quint.easeInOut})})}if(-1!==r.defaults.init.controls.indexOf(i.toLowerCase())||i.match(/^\#[0-9]/)){var d=e.trim(i.toLowerCase().split("#")[1]),c=parseInt(d);switch(d){case"playmedia":n="play active media elements on current slide";break;case"pausemedia":n="pause active media elements on current slide";break;case"prev":n="jump to the previous slide";break;case"next":n="jump to the next slide";break;case"start":n="start slideshow";break;case"stop":n="stop slideshow";break;case"replay":n="replay slide";break;case"reverse":n="reverse slide";break;case"reverse-replay":case"reversereplay":n="reverse, than replay slide";break;default:"number"==typeof c&&c==c&&(n="jump to slide "+c)}r.layers.set.ariaLabel(t,n),t.on("click."+s,function(e){if(e.preventDefault(),-1!==["prev","next","last","first","start","stop"].indexOf(d))r.navigation[d]("clicked");else if("number"==typeof c&&c==c)r.slideshow.changeTo(c,!0,!0);else if(!r.slider.state.changingSlides)switch(d){case"replay":r.api.methods("replay");break;case"reverse":r.api.methods("reverse");break;case"reverse-replay":case"reversereplay":r.api.methods("reverse",!0);break;case"playmedia":r.media.functions.playActiveMedia();break;case"pausemedia":r.media.functions.pauseActiveMedia();break;case"unmute":case"unmutemedia":r.media.unmute.multipleMediaElements()}})}},ariaLabel:function(e,t){e.attr("aria-label")||e.attr("aria-label",t)},linkTo:function(t){for(var a=t.attr("class").split(" "),o=1,n=0;n<a.length;n++)-1!=a[n].indexOf("ls-linkto-")&&(o=parseInt(a[n].split("ls-linkto-")[1]));t.data(r.defaults.init.dataKey).settings.linkedToSlide=o,t.css({cursor:"pointer"}).on("click."+s,function(t){t.preventDefault(),i.layerSlider(e(this).data(r.defaults.init.dataKey).settings.linkedToSlide)})},wrappers:function(e,t,i){t.original;t.is.slideBackground||t.is.backgroundVideo?(t.elements.$bgWrapper=e.closest(".ls-bg-wrap"),t.elements.$bgOuterWrapper=e.closest(".ls-bg-outer")):(t.elements.$wrapper=e.closest(".ls-in-out"),t.elements.$wrapper.data(r.defaults.init.dataKey,{}),t.settings.wrapperData=t.elements.$wrapper.data(r.defaults.init.dataKey),t.elements.$clipWrapper=e.closest(".ls-clip"),t.elements.$clipWrapper.data(r.defaults.init.dataKey,{}),t.settings.clipWrapperData=t.elements.$clipWrapper.data(r.defaults.init.dataKey),t.elements.$loopWrapper=e.closest(".ls-loop"),t.elements.$loopWrapper.data(r.defaults.init.dataKey,{}),t.settings.loopWrapperData=t.elements.$loopWrapper.data(r.defaults.init.dataKey)),t.parallax.enabled&&(t.elements.$parallaxWrapper=e.closest(".ls-parallax"),t.elements.$parallaxWrapper.data(r.defaults.init.dataKey,{parallax:{}}),t.settings.parallaxWrapperData=t.elements.$parallaxWrapper.data(r.defaults.init.dataKey),r.transitions.layers.parallax.addLayer(t.elements.$parallaxWrapper,t.settings.parallaxWrapperData.parallax,t,i)),t.scroll.enabled&&(t.elements.$scrollWrapper=e.closest(".ls-scroll"),t.elements.$scrollTransformWrapper=e.closest(".ls-scroll-transform"),t.elements.$scrollWrapper.data(r.defaults.init.dataKey,{scroll:{}}),t.settings.scrollWrapperData=t.elements.$scrollWrapper.data(r.defaults.init.dataKey),r.transitions.layers.scroll.addLayer(t.elements.$scrollWrapper,t.settings.scrollWrapperData.scroll,t,i)),t.hover.enabled&&(!r.slides[i].data.globalhover||t.hover.skipGlobal&&r.slides[i].data.globalhover)&&r.transitions.layers.hover.set(e,t),t.elements.$outerWrapper=e.closest(".ls-z"),t.elements.$outerStyleWrapper=t.elements.$outerWrapper.find("> .ls-wrapper"),t.settings.trmask&&t.elements.$outerStyleWrapper.css("overflow","hidden"),t.elements.$outerWrapper.attr("data-slide-index",i),t.elements.$innerWrapper=e.closest(".ls-wrapper").addClass("ls-inner-wrapper"),t.elements.$_innerWrappers=t.elements.$outerWrapper.find(".ls-wrapper"),t.elements.$_allWrappers=t.elements.$outerWrapper.add(t.elements.$_innerWrappers),t.elements.$_outerWrappers=t.elements.$outerWrapper.add(t.elements.$outerWrapper.find(".ls-wrapper:not(.ls-inner-wrapper)"))},singleLayer:function(e,t){var i=e.data(r.defaults.init.dataKey);r.plugins.callFunctions("wrapSingleLayerBeforeStyle",{$layer:e,layerData:i,slideIndex:t}),r.layers.set.style(e),r.plugins.callFunctions("wrapSingleLayerBeforeProperties",{$layer:e,layerData:i,slideIndex:t}),r.layers.set.properties(e,t),r.layers.set.dataAttribute("add",e,"hidden"),r.plugins.callFunctions("wrapSingleLayerEnd",{$layer:e,layerData:i,slideIndex:t}),e.data("hasBeenSet",!0)},style:function(t){var i,a,s,o,n,l,d,c,p,u,m,h,f,g,y,v,x,S,w,b,T,k,C,O,P,I,L=t[0],_=t.data(r.defaults.init.dataKey),$=L.style,M=r.layers,F=null,B=null,W=null,D=null,z=0,A=0,V=!1,R=parseFloat(L.style.fontSize)||36,N=L.getBoundingClientRect(),E=t.is("img, picture")?1:window.LS_previewZoom||1;if(u=""!==$.paddingLeft?M.getStyle($.paddingLeft,r.slider.initial.percW):M.getStyle(t.css("padding-left"),r.slider.initial.percW),h=""!==$.paddingRight?M.getStyle($.paddingRight,r.slider.initial.percW):M.getStyle(t.css("padding-right"),r.slider.initial.percW),m=""!==$.paddingTop?M.getStyle($.paddingTop,r.slider.initial.percH):M.getStyle(t.css("padding-top"),r.slider.initial.percH),f=""!==$.paddingBottom?M.getStyle($.paddingBottom,r.slider.initial.percH):M.getStyle(t.css("padding-bottom"),r.slider.initial.percH),g=""!==$.marginLeft?M.getStyle($.marginLeft,r.slider.initial.percW):M.getStyle(t.css("margin-left"),r.slider.initial.percW),v=""!==$.marginRight?M.getStyle($.marginRight,r.slider.initial.percW):M.getStyle(t.css("margin-right"),r.slider.initial.percW),y=""!==$.marginTop?M.getStyle($.marginTop,r.slider.initial.percH):M.getStyle(t.css("margin-top"),r.slider.initial.percH),x=""!==$.marginBottom?M.getStyle($.marginBottom,r.slider.initial.percH):M.getStyle(t.css("margin-bottom"),r.slider.initial.percH),L.style.margin="0",w=""!==$.borderLeftWidth?M.getStyle($.borderLeftWidth,r.slider.initial.percW):M.getStyle(t.css("border-left-width"),r.slider.initial.percW),T=""!==$.borderRightWidth?M.getStyle($.borderRightWidth,r.slider.initial.percW):M.getStyle(t.css("border-right-width"),r.slider.initial.percW),b=""!==$.borderTopWidth?M.getStyle($.borderTopWidth,r.slider.initial.percH):M.getStyle(t.css("border-top-width"),r.slider.initial.percH),k=""!==$.borderBottomWidth?M.getStyle($.borderBottomWidth,r.slider.initial.percH):M.getStyle(t.css("border-bottom-width"),r.slider.initial.percH),1===r.media.properties.$allMediaLayers.filter(t).length||t.children("iframe").length){var H=t.children(),Y=H.attr("width")?H.attr("width"):H.width(),X=H.attr("height")?H.attr("height"):H.height();300===parseInt(Y)&&150===parseInt(X)&&(Y=640,X=360),""!==L.style.width&&"auto"!==L.style.width||t.css("width",Y),""!==L.style.height&&"auto"!==L.style.height||t.css("height",X),"100%"===$.width&&"100%"===$.height&&($.left="50%",$.top="50%"),V=Y/X,H.css({width:"100%",height:"100%"})}var G=_.attributes;if(t.is("img, picture")){var U=t.is("img")?t:t.find("img");C=(o=U.data("preloadedWidth"))/(n=U.data("preloadedHeight")),(!$.width&&!$.height||"auto"===$.width&&"auto"===$.height)&&G&&(G.width&&G.height?(-1===G.width.indexOf("%")?a=parseInt(G.width):(z=parseInt(G.width),a=M.getStyle(G.width,r.slider.initial.percW)),-1===G.height.indexOf("%")?s=parseInt(G.height):(A=parseInt(G.height),s=M.getStyle(G.height,r.slider.initial.percH))):G.maxWidth&&(t[0].style.width=G.maxWidth+"px",a=G.maxWidth,s=t.height()))}P=N.width?N.width/E:(N.right-N.left)/E,I=N.height?N.height/E:(N.bottom-N.top)/E,a||(a=$.width,-1!==$.width.indexOf("%")&&(z=parseInt($.width)),a=(a=""!==a&&"auto"!==a?M.getStyle(a,r.slider.initial.percW):P-r.layers.toNum(u,R)-r.layers.toNum(h,R)-r.layers.toNum(w,R)-r.layers.toNum(T,R))||"auto"),s||(s=$.height,-1!==$.height.indexOf("%")&&(A=parseInt($.height)),s=(s=""!==s&&"auto"!==s?M.getStyle(s,r.slider.initial.percH):I-r.layers.toNum(m,R)-r.layers.toNum(f,R)-r.layers.toNum(b,R)-r.layers.toNum(k,R))||"auto"),0===parseInt(s)&&(t.addClass("ls-force-height-auto"),parseInt(L.getBoundingClientRect().height),t.removeClass("ls-force-height-auto")),O=V||("auto"!==a&&"auto"!==s?a/s:"auto"),!t.is("img, picture")||$.width||$.height||G&&(!G||G.width||G.height)||o===a&&n===s||(o!==a?s=(a=o>5?o:a)/(O=o>5?C:O):n!==s&&(a=(s=n>5?n:s)*(O=n>5?C:O))),parseFloat(t.css("opacity")),(i=$.clipPath||$.clip||!1)&&(_.clip.style.css.clipPath=i,_.clip.userDefined=!0,$.clip="",$.clipPath=""),S=$.webkitFilter||$.filter;$.minWidth&&""!==$.minWidth&&(-1!==$.minWidth.indexOf("%")&&(l=parseInt($.minWidth)),F=-1!==$.minWidth.indexOf("em")?$.minWidth:parseFloat($.minWidth)),$.minHeight&&""!==$.minHeight&&(-1!==$.minHeight.indexOf("%")&&(d=parseInt($.minHeight)),B=-1!==$.minHeight.indexOf("em")?$.minHeight:parseFloat($.minHeight)),$.maxWidth&&""!==$.maxWidth&&(-1!==$.maxWidth.indexOf("%")&&(c=parseInt($.maxWidth)),W=-1!==$.maxWidth.indexOf("em")?$.maxWidth:parseFloat($.maxWidth)),$.maxHeight&&""!==$.maxHeight&&(-1!==$.maxHeight.indexOf("%")&&(p=parseInt($.maxHeight)),D=-1!==$.maxHeight.indexOf("em")?$.maxHeight:parseFloat($.maxHeight)),a="auto"===a?"auto":parseFloat(a),s="auto"===s?"auto":parseFloat(s),_.original={clip:i,left:$.left?$.left:"0",top:$.top?$.top:"0",width:a,height:s,minWidth:F,minHeight:B,maxWidth:W,maxHeight:D,sWidth:$.width,sHeight:$.height,percentWidth:z,percentHeight:A,percentMinWidth:l||null,percentMinHeight:d||null,percentMaxWidth:c||null,percentMaxHeight:p||null,backgroundImage:$.backgroundImage,backgroundSize:$.backgroundSize||"cover",backgroundRepeat:$.backgroundRepeat,backgroundPosition:$.backgroundPosition,ratio:O,paddingLeft:u,paddingTop:m,paddingRight:h,paddingBottom:f,marginLeft:g,marginRight:v,marginTop:y,marginBottom:x,borderLeftWidth:w,borderTopWidth:b,borderRightWidth:T,borderBottomWidth:k,borderRadius:function(t,i){var a=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],s="";return i.borderRadius&&(-1===i.borderRadius.indexOf("/")?e.each(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],function(r,o){var n=i[a[r]],l=t.css(o),d=e.trim(void 0!==n&&n.length?n:l);-1==d.indexOf(" ")&&-1==d.indexOf("em")&&-1==d.indexOf("%")&&(d=parseInt(d)),s+=d+" "}):s=i.borderRadius),e.trim(s)}(t,$),fontSize:R,lineHeight:L.style.lineHeight,letterSpacing:L.style.letterSpacing,textStrokeWidth:L.style.textStrokeWidth||L.style.webkitTextStrokeWidth,color:t.css("color"),boxShadow:L.style.boxShadow,textShadow:L.style.textShadow,zIndex:parseInt(t.css("z-index"))||"auto",filter:S,backgroundColor:t.css("background-color"),dataLS:t.attr("data-ls")||"",styles:t.attr("style")||""},$.width&&"auto"!==$.width||(_.original.autoWidth=!0),$.height&&"auto"!==$.height||(_.original.autoHeight=!0),$.zIndex="auto",_.responsive={left:$.left?parseInt($.left):0,top:$.top?parseInt($.top):0,width:a,height:s},t.is("picture")&&t.css({width:_.original.width,height:_.original.height}),r.plugins.callFunctions("setLayerStyleEnd",{$layer:t,layerData:_})},parseScaleProperties:function(e){for(var t=[{x:"scalexin",y:"scaleyin",s:"scalein"},{x:"textscalexin",y:"textscaleyin",s:"textscalein"},{x:"loopscalex",y:"loopscaley",s:"loopscale"},{x:"textscalexout",y:"textscaleyout",s:"textscaleout"},{x:"scalexout",y:"scaleyout",s:"scaleout"},{x:"hoverscalex",y:"hoverscaley",s:"hoverscale"}],i=0;i<t.length;i++){var a=t[i];e[a.x]&&e[a.y]&&e[a.x]===e[a.y]&&"="!==e[a.x]&&(e[a.s]=e[a.x],delete e[a.x],delete e[a.y])}return e},properties:function(t,i,a){i||(i=t.data("slideIndex"));var s,n=t.data(r.defaults.init.dataKey);if(n.is.textLayer=!(t.is("img, picture")||n.is.mediaLayer||n.is.backgroundVideo),n.self=t,r.plugins.callFunctions("setLayerPropertiesBeforeParsingDataLS",{$layer:t,layerData:n,slideIndex:i}),t.data("ls")){for(var d,c=r.defaults.layer.keys,p=t.data("ls").split(";"),u={},m=0;m<p.length;m++)if(e.trim(p[m])){var h=p[m].indexOf(":"),f=p[m].substring(0,h).trim();d=p[m].substring(h+1).trim(),f&&(u[f]=d)}for(var g in p=null,u=this.parseScaleProperties(u)){var y=null,v=null,x=null,S=null,w=!1,b=!1,T=!1,k=!1,C=!1;if(f=g.toLowerCase(),d=u[g],-1==["thumbnail","poster"].indexOf(f)&&(d=d.toLowerCase()),(f=f.replace("split","text")).match(/(duration|startat|shift|delay)/i)&&("string"==typeof d&&-1!==d.indexOf("ms")&&(d=d.replace(/ms/g,"")),C=!0),/^text/.test(f)&&(b=!0),/^loop/.test(f)&&(T=!0,-1!==d.indexOf(r.defaults.init.staggerSplitChar)&&(k=!0)),void 0!==c[f]){if(y=c[f][0],S=d,"overlay"===f||k||(S=r.functions.convert.properties(d,!1,y,t,n)),-1!==f.indexOf("mirror")&&(S=r.layers.set.mirrorTransitions(d)),!d||!/random/.test(d)&&d.charAt(0)!==r.defaults.init.openingBracket||/parallax/.test(f)||(w=!0),w&&(b||T||/offset/.test(f)||(S=r.functions.convert.randomProperties(S,y,null,t,n)),n.should.update||(n.should.update=!0)),"number"==typeof S&&(y.match(/(duration|shift|delay|wait)/i)&&!T||-1!==y.toLowerCase().indexOf("startat"))&&(S/=1e3),f.match(/(fade)(.+)/))switch(S){case!0:S=0;break;case!1:S=1}void 0!==(x=c[f][1])?""!==S?"object"==typeof S&&-1==f.indexOf("mirror")?f.match(/(text)/)?x.match(/(converted)/i)?n[x][y]=S:n[x].cycle[y]=S:(v=r.functions.convert.properties(e.trim(S[0])),r.debugMode&&r.debug.add("warn","layerInit.prop1",[f,S,v]),"number"==typeof v&&C&&(v/=1e3),n[x][y]=v):b&&w?n[x].random[y]=S:n[x][y]=S:r.debugMode&&r.debug.add("warn","layerInit.prop2",f):n[y][f]=S}else"clip"===f?(n.original.clip=d,n.clip.style.css.clipPath=d):r.debugMode&&r.debug.add("warn","layerInit.prop4",f)}}if(r.plugins.callFunctions("setLayerPropertiesAfterParsingDataLS",{$layer:t,layerData:n,slideIndex:i}),r.browser.isOld&&(n.in.enabled=!0,n.textIn.enabled=!1,n.textOut.enabled=!1,n.textIn.type=null,n.textOut.type=null),n.in.enabled&&(n.inLayerTo.ease=n.inLayerStyleTo.ease=n.inClipTo.ease=r.functions.convert.easing(n.in.ease)),void 0!==n.inLayerStyleShouldBeConvertedFrom.borderRadius&&(n.inLayerStyleShouldBeConvertedTo.borderRadius=n.original.borderRadius),void 0!==n.outLayerStyleShouldBeConvertedTo.borderRadius&&(n.outLayerStyleShouldBeConvertedFrom.borderRadius=n.original.borderRadius),n.inLayerStyleFromCSS.backgroundColor&&(n.inLayerStyleToCSS.backgroundColor=n.original.backgroundColor),n.outLayerStyleToCSS.backgroundColor&&(n.outLayerStyleFromCSS.backgroundColor=n.original.backgroundColor),n.inLayerStyleFromCSS.color&&(n.inLayerStyleToCSS.color=n.original.color),n.outLayerStyleToCSS.color&&(n.outLayerStyleFromCSS.color=n.original.color),void 0!==n.inLayerStyleShouldBeConvertedFrom.width&&(n.inLayerStyleShouldBeConvertedTo.width=n.original.width),void 0!==n.outLayerStyleShouldBeConvertedTo.width&&(n.outLayerStyleShouldBeConvertedFrom.width=n.original.width),void 0!==n.inLayerStyleShouldBeConvertedFrom.height&&(n.inLayerStyleShouldBeConvertedTo.height=n.original.height),void 0!==n.outLayerStyleShouldBeConvertedTo.height&&(n.outLayerStyleShouldBeConvertedFrom.height=n.original.height),void 0!==n.out.showUntil&&0!==n.out.showUntil&&(n.out.startAt="transitioninend + "+n.out.showUntil),-1!==n.out.startAt.indexOf("slidechangeonly")&&"slidechangeonly"!==n.out.startAt&&(n.out.startAt="slidechangeonly"),n.out.enabled&&(n.outLayerTo.ease=n.outLayerStyleTo.ease=n.outClipTo.ease=r.functions.convert.easing(n.out.ease)),e.isNumeric(n.loop.count)&&(n.loop.count>0||-1===n.loop.count)&&!1!==n.loop.enabled?(n.loop.enabled=!0,n.loopTo.ease=n.loopClipTo.ease=r.functions.convert.easing(n.loop.ease)):n.loop.enabled=!1,(!e.isEmptyObject(n.hoverToCSS)||n.hoverShouldBeConverted.x||n.hoverShouldBeConverted.y||n.hoverShouldBeConverted.borderRadius||n.hoverShouldBeConverted.filter)&&!1!==n.hover.enabled?(n.hover.enabled=!0,n.hover.easeOut||(n.hover.easeOut=n.hover.easeIn),n.hover.easeIn=r.functions.convert.easing(n.hover.easeIn),n.hover.easeOut=r.functions.convert.easing(n.hover.easeOut,!0),n.hover.durationOut||(n.hover.durationOut=n.hover.durationIn),o.TweenMax.set(t[0],{autoCSS:!1,css:{transformPerspective:n.hoverShouldBeConverted.transformPerspective}})):n.hover.enabled=!1,n.hover.skipGlobal&&t.attr("data-ls-skipglobalhover",""),"level"in n.parallax&&e.isNumeric(n.parallax.level)&&n.parallax.enabled?("cursor"!==n.parallax.event&&n.parallax.event||!n.parallax.reset||t.attr("data-ls-parallax-reset",""),n.parallax.enabled=!0):n.parallax.enabled=!1,n.is.slideBackground){var O={scale:1,rotation:0};if(r.slides[i].kenBurns.zoom&&(n.kenBurns=r.slides[i].kenBurns),n.kenBurns.zoom){switch(n.kenBurns.from={},n.kenBurns.to={},n.kenBurns.zoom){case"out":n.kenBurns.from.scale=n.kenBurns.scale||1,n.kenBurns.from.rotation=n.kenBurns.rotation||0,n.kenBurns.to=O;break;case"in":n.kenBurns.from=O,n.kenBurns.to.scale=n.kenBurns.scale||1,n.kenBurns.to.rotation=n.kenBurns.rotation||0}delete n.kenBurns.scale,delete n.kenBurns.rotation}else n.kenBurns.from=O,n.kenBurns.to=O;e.isEmptyObject(r.slides[i].filter)||(r.slides[i].filter.from&&(n.filter.values.bgFrom=r.transitions.layers.filters.convert(r.slides[i].filter.from)),r.slides[i].filter.to&&(n.filter.values.bgTo=r.transitions.layers.filters.convert(r.slides[i].filter.to)))}if(n.textIn.type&&-1===r.defaults.layer.splitTypeKeys.indexOf(n.textIn.type)&&(r.debugMode&&r.debug.add("warn","layerInit.splitType3a",[t[0].tagName,n.textIn.type]),delete n.textIn.type,delete n.textIn.ns,n.textIn.enabled=!1),n.textOut.type&&-1===r.defaults.layer.splitTypeKeys.indexOf(n.textOut.type)&&(r.debugMode&&r.debug.add("warn","layerInit.splitType3b",[t[0].tagName,n.textOut.type]),delete n.textOut.type,delete n.textOut.ns,n.textOut.enabled=!1),n.textIn.enabled&&!n.textIn.type&&(n.textIn.type="chars_asc"),n.textOut.enabled&&!n.textOut.type&&(n.textOut.type="chars_desc"),n.textIn.type||n.textOut.type){var P=0;if(n.is.textLayer?(n.inLayerToCSS.rotation||(n.inLayerToCSS.rotation=1e-6),n.textIn.type&&(n.textIn.enabled=!0,n.textInNodesTo.ease=r.functions.convert.easing(n.textInNodesTo.ease),n.textIn.split=n.textIn.type.split("_")[0],t.children().length&&r.debugMode&&(P=1)),n.textOut.type&&!r.o.inLayerPreview&&(n.textOut.enabled=!0),n.textOut.enabled&&(n.textOutNodesTo.ease=r.functions.convert.easing(n.textOutNodesTo.ease)),n.textOut.enabled&&n.textOut.type.split("_")[0]!==n.textIn.split&&(n.textIn.split+=", "+n.textOut.type.split("_")[0],t.children().length&&r.debugMode&&(P=1)),-1!==n.textIn.split.indexOf("chars")&&-1===n.textIn.split.indexOf("words")&&(n.textIn.split+=", words"),-1!==n.textIn.split.indexOf("words")&&-1===n.textIn.split.indexOf("lines")&&(n.textIn.split+=", lines")):(delete n.textIn.type,delete n.textOut.type,delete n.textIn.ns,delete n.textOut.ns,r.debugMode&&(P=2)),r.debugMode&&0!==P&&i&&!a)switch(P){case 1:r.debug.add("warn","layerInit.splitType1",[t.prop("nodeName"),i]);break;case 2:r.debug.add("warn","layerInit.splitType2",[i,t.prop("nodeName")])}}if((n.inClipFromCSS.clipPath||n.outClipToCSS.clipPath||n.loopClipToCSS.clipPath||n.clip.style.css.clipPath!==n.clip.default.css.clipPath||n.clip.userDefined)&&(n.inClipFromCSS.clipPath?"="==n.inClipFromCSS.clipPath&&(n.inClipFromCSS.clipPath=n.clip.style.css.clipPath):n.inClipFromCSS.clipPath=n.clip.default.css.clipPath,n.outClipToCSS.clipPath?"="==n.outClipToCSS.clipPath&&(n.outClipToCSS.clipPath=n.clip.style.css.clipPath):n.outClipToCSS.clipPath=n.clip.default.css.clipPath,n.clip.enabled=!0),n.textOutNodesTo.clipPath&&!n.textInNodesFrom.clipPath&&(n.clip.textShouldReset=!0),n.textIn.enabled&&"textmask"===n.textInLayerStyle.overflow&&t.attr("data-ls-mask-text-in",""),n.textOut.enabled&&"textmask"===n.textOutLayerStyle.overflow&&t.attr("data-ls-mask-text-out",""),n.in.enabled&&n.inLayerToCSS.hasOwnProperty("scale")&&(delete n.inLayerToCSS.scaleX,delete n.inLayerToCSS.scaleY),n.out.enabled&&n.outLayerToCSS.hasOwnProperty("scale")&&(delete n.outLayerToCSS.scaleX,delete n.outLayerToCSS.scaleY),n.inLayerStyleShouldBeConvertedFrom.filter&&(n.filter.values.in=r.transitions.layers.filters.convert(n.inLayerStyleShouldBeConvertedFrom.filter)),n.filter.values.style=r.transitions.layers.filters.convert(n.original.filter),n.outLayerStyleShouldBeConvertedTo.filter&&(n.filter.values.out=r.transitions.layers.filters.convert(n.outLayerStyleShouldBeConvertedTo.filter)),n.loopLayerShouldBeConverted.filter&&(n.filter.values.loop=r.transitions.layers.filters.convert(n.loopLayerShouldBeConverted.filter)),n.hoverShouldBeConverted.filter&&(n.filter.values.hover=r.transitions.layers.filters.convert(n.hoverShouldBeConverted.filter)),n.in.enabled||(n.in.duration=0),n.textIn.enabled||(n.textIn.duration=0),n.textOut.enabled||(n.textOut.duration=0),n.out.enabled||(n.out.duration=0),t.attr("data-ls-slidein",i),void 0!==n.settings.static&&"none"!==n.settings.static){if(0!==(s=parseInt(n.settings.static))&&"forever"!==n.settings.static?(t.attr("data-ls-slideout",s),n.settings.slideOut=s):n.settings.slideOut=0,n.is.static=!0,t.attr("data-ls-static","1"),!n.staticSlides)if(n.staticSlides=[],0===n.settings.slideOut)for(s=1;s<=r.slides.count;s++)n.staticSlides.push(s);else if(n.settings.slideIn<=n.settings.slideOut)for(s=n.settings.slideIn;s<=n.settings.slideOut;s++)n.staticSlides.push(s);else{for(s=n.settings.slideIn;s<=r.slides.count;s++)n.staticSlides.push(s);for(s=1;s<=n.settings.slideOut;s++)n.staticSlides.push(s)}}else t.attr("data-ls-slideout",i);n.is.mediaLayer&&t.children("video, audio").length&&r.media.html5.singleInit(t.children("video, audio").eq(0)),n.is.backgroundVideo&&n.styleSettings.overlay&&t.find(".ls-bg-video-overlay").css({backgroundImage:"url("+n.styleSettings.overlay+")"}),n.styleSettings.minfontsize&&(n.styleSettings.minfontsize=parseFloat(n.styleSettings.minfontsize)),n.styleSettings.minmobilefontsize&&(n.styleSettings.minmobilefontsize=parseFloat(n.styleSettings.minmobilefontsize)),r.slider.isPopup&&(n.is.pinned=!1),n.is.pinned&&(r.slider.hasPinnedLayers=!0,r.slider.$layersWrapper.is(".ls-layers-clip")||r.slider.$layersWrapper.addClass("ls-layers-clip"),!l.isMobile&&!r.browser.isSafari||r.slider.$layersWrapper.is(".ls-m-layers-clip")||r.slider.$layersWrapper.addClass("ls-m-layers-clip")),n.styleSettings.smartbg&&(t.attr("data-ls-smart-bg","").css("--bgs",n.original.backgroundSize),n.styleSettings.smartbg=n.styleSettings.smartbg.toString(),n.settings.smartbgease&&(n.settings.smartbgease=r.functions.convert.easing(n.settings.smartbgease)),n.is.smartBG=!0)},dataAttribute:function(t,i,a){var s=i.add(i.closest(".ls-wrapper.ls-z"));e.isArray(a)||(a=(a+"").split(" "));for(var r=0;r<a.length;r++)switch(t){case"remove":s.removeAttr("data-ls-"+a[r]);break;case"add":"active"===a[r]&&s.removeAttr("data-ls-hidden"),"hidden"===a[r]&&s.removeAttr("data-ls-active data-ls-animating-in data-ls-text-animating-in data-ls-animating-out data-ls-text-animating-out data-ls-static-in data-ls-static-out"),-1===a[r].indexOf("in")&&-1===a[r].indexOf("out")||(s.removeAttr("data-ls-active"),s.removeAttr("data-ls-hidden")),"active"===a[r]&&i.is("[data-ls-animating-in], [data-ls-text-animating-in]")||"hidden"===a[r]&&i.is("[data-ls-animating-out], [data-ls-text-animating-out]")||s.attr("data-ls-"+a[r],"")}}},get:function(t){var i=this.$all;if("string"==typeof t&&(t=t.split(",")),Array.isArray(t)&&t.length){for(var a=[],s=function(e){return-1!==a.indexOf(e)},o=0;o<t.length;o++)a.push(e.trim(t[o]).toLowerCase());var n="",l=s("out")?"out":"in",d=':not(".ls-bg")',c=':not(".ls-bg-video")',p="";(s("bgvideo")||s("backgroundvideo"))&&(c=""),s("video")&&(p+=", > video"),s("audio")&&(p+=", > audio"),s("html5")&&(p+=", > video, > audio"),s("youtube")&&(p+=', > iframe[src*="youtube-nocookie.com"], > iframe[src*="youtube.com"], > iframe[src*="youtu.be"], > iframe[data-src*="youtube-nocookie.com"], > iframe[data-src*="youtube.com"], > iframe[data-src*="youtu.be"]'),s("vimeo")&&(p+=', > iframe[src*="player.vimeo"], > iframe[data-src*="player.vimeo"]'),","===p.charAt(0)&&(p=p.substring(2)),(s("img")||s("image"))&&(n="img"),(s("bg")||s("background")||s("bgonly"))&&(d=""),i=s("current")?i.filter(n+"[data-ls-slide"+l+'="'+r.slides.current.index+'"]'+d+c):s("next")?i.filter(n+"[data-ls-slide"+l+'="'+r.slides.next.index+'"]'+d+c):i.filter(n+d+c),s("notactive")&&(i=i.filter(".ls-bg, .ls-bg-video, :hidden")),s("clone")&&(i=i.filter(".ls-clone")),s("active")&&(i=i.filter(':visible:not(.ls-bg, .ls-bg-video), [data-ls-static="1"]:not([data-ls-hidden])')),s("notstatic")&&(i=i.filter(':not([data-ls-static="1"])')),s("static")&&(i=i.filter('[data-ls-static="1"]')),s("bgonly")&&(i=i.filter(".ls-bg")),s("countdown")&&(i=i.filter("[data-countdown]")),s("staticin")&&(i=i.filter("[data-ls-static-in]")),s("notstaticin")&&(i=i.filter(":not([data-ls-static-in])")),s("staticout")&&(i=i.filter("[data-ls-static-out]")),s("notstaticout")&&(i=i.filter(":not([data-ls-static-out])")),""!==p&&(i=i.find(p))}return i},update:{data:function(t,i,a){var s,o,n;switch(t instanceof jQuery||(t=e(t)),a&&t.attr("data-ls",a).data("ls",a),s=(o=t.data(r.defaults.init.dataKey)).is.onSlide,n=o.original,i){default:case"transitions":o.settings.timelineIsCalculated=!1,r.layers.set.properties(t,s,!0);break;case"all":t.data(r.defaults.init.dataKey,new r.defaults.layer.options(t,s)),(o=t.data(r.defaults.init.dataKey)).original=n,r.layers.set.properties(t,s,!0),r.layers.set.wrappers(t,o,s)}}},wrap:function(t,a){if(!r.slides[t].wrapped&&"wrapping"!==r.slides[t].wrapped){r.slides[t].wrapped="wrapping";var s=a?25:0,n=r.slides[t].$layers,l=n.length;0===l?r.slides[t].wrapped=!0:n.each(function(a,n){r.timeouts["slide-"+t+"-layer-"+a]=setTimeout(function(){delete r.timeouts["slide-"+t+"-layer-"+a];var s,d=e(n),c=d,p="",u=!1,m="";d.hasClass("ls-hide-phone")&&(m+=" ls-hide-on-phone"),d.hasClass("ls-hide-tablet")&&(m+=" ls-hide-on-tablet"),d.hasClass("ls-hide-desktop")&&(m+=" ls-hide-on-desktop"),d.removeClass("ls-hide-phone ls-hide-tablet ls-hide-desktop"),c.is("a")&&1===c.children().length&&(u=!0,d=c.find(".ls-layer"));var h=d.data(r.defaults.init.dataKey);if(!h)return!0;if(s=d.data("$layerGroup")||r.slider.$layersWrapper,h.is.backgroundVideo?s=r.slider.$bgVideosWrapper:h.is.slideBackground?s=r.slider.$slideBGWrapper:h.is.inMask&&(r.slider.$maskWrapper.show(),s=r.slider.$maskWrapper),d.data("hasBeenSet")||r.layers.set.singleLayer(d,t),h.textIn.split){var f=new o.SplitType(d[0],{split:h.textIn.split});if(h.textIn.type&&(h.textIn.ns=f[h.textIn.type.split("_")[0]]),h.textOut.type&&(h.textOut.ns=f[h.textOut.type.split("_")[0]]),-1!==d.css("background-clip").indexOf("text")){var g=d.find(".ls-ch"),y=d.find(".ls-wd"),v=d.find(".ls-ln");h.textIn.$nodesForBackgroundClip=g.length?g:y.length?y:v,g.length?d.addClass("ls-has-chars"):y.length?d.addClass("ls-has-words"):d.addClass("ls-has-lines"),h.textIn.$nodesForBackgroundClip.each(function(){var t=e(this),i=e.trim(t.text()),a=document.createTextNode(i),s=e(a),r=e('<div class="ls-textnode-bgclip-wrap"><div class="ls-textnode"></div></div>').css({backgroundColor:h.original.backgroundColor,backgroundImage:h.original.backgroundImage,backgroundSize:h.original.backgroundSize,backgroundRepeat:h.original.backgroundRepeat,backgroundPosition:h.original.backgroundPosition});t.css({verticalAlign:"top"}).text(""),s.clone().appendTo(t).wrap('<div class="ls-textnode-dummy"></div>'),s.appendTo(t).wrap(r)})}}h.is.slideBackground||h.is.backgroundVideo?p='<div class="ls-wrapper ls-bg-outer"><div class="ls-wrapper ls-bg-wrap"></div></div>':(h.clip.enabled&&(p='<div class="ls-wrapper ls-clip"></div>'),h.loop.enabled&&(p='<div class="ls-wrapper ls-loop">'+p+"</div>"),h.scroll.enabled&&(p='<div class="ls-wrapper ls-scroll"><div class="ls-wrapper ls-scroll-transform">'+p+"</div></div>"),p='<div class="ls-wrapper ls-in-out" style="">'+p+"</div>"),h.parallax.enabled&&(p='<div class="ls-wrapper ls-parallax">'+p+"</div>"),""!==(p='<div class="ls-wrapper ls-z'+(h.is.pinned?" ls-pinned":"")+'">'+p+"</div>")?d.appendTo(s).wrap(p):d.appendTo(s),!0===u&&c.addClass("ls-layer-link").appendTo(d.parent());var x={},S=d.css("mix-blend-mode");S&&"normal"!==S&&(x["mix-blend-mode"]=S,d.css("mix-blend-mode","normal")),h.original.customZIndex=1;var w=parseInt(h.original.zIndex);h.is.backgroundVideo||h.is.slideBackground?x={zIndex:h.original.customZIndex}:(w||(w=a+101),x.zIndex=w,h.original.customZIndex=w),r.browser.isSafari&&(x.transform="translateZ(0)"),r.layers.set.wrappers(d,h,t),h.elements.$outerWrapper.css(x).addClass(m),h.styleSettings.pointerevents&&h.elements.$innerWrapper.css("pointer-events","none"),h.is.slideBackground&&h.elements.$bgWrapper.css({backgroundColor:r.slides[t].data.backgroundColor,backgroundImage:r.slides[t].data.backgroundGradient}),r.layers.$all=r.layers.$all.add(d),d.attr("data-ls-layer-id",r.layers.$all.length),r.slides[t].$layers=r.slides[t].$layers.not(c),a===l-1&&(i.children(".ls-slide").eq(t-1).empty(),r.slides[t].wrapped=!0),r.plugins.callFunctions("wrapLayerEnd",{$layer:d,layerData:h,slideIndex:t})},s*(a+1))})}}},r.slideshow={direction:"next",nextLoop:0,firstStart:!0,forceFastChange:!1,sequence:{normal:[],randomized:[]},state:{changed:-1,running:!0,paused:!1,pausedByVideo:!1,pausedByHover:!1,pausedByLastCycle:!1},should:{change:!1,start:!1,stop:!1},isPaused:function(){return this.state.paused||this.state.pausedByVideo||this.state.pausedByHover||this.state.pausedByPerformance},init:function(){1==r.slides.count&&e.extend(r.o,{autoStart:!1,navPrevNext:!1,navStartStop:!1,navButtons:!1,cycles:-1,forceLoopNum:!1,autoPauseSlideshow:!0,firstSlide:1,thumbnailNavigation:"disabled"}),r.o.autoStart&&1!=r.slides.count||r.functions.setStates(this,{running:!1,paused:!0}),this.set.pauseOnHover(),this.set.sequences()},set:{pauseOnHover:function(){r.o.pauseOnHover=!0===r.o.pauseOnHover?"slideshowOnly":r.o.pauseOnHover,!1!==r.o.pauseOnHover&&i.on("mouseenter."+s,function(){r.slider.state.inFullscreen||(r.functions.setStates(r.slideshow,{pausedByHover:!0}),"slideshowOnly"!==r.o.pauseOnHover&&r.transitions.layers.timeline.pause())}).on("mouseleave."+s,function(){var t=1;r.timelines._layers&&r.timelines._layers.duration()>r.transitions.layers.timeline.totalDuration&&(t=r.transitions.layers.timeline.totalDuration/r.timelines._layers.duration()),r.functions.setStates(r.slideshow,{pausedByHover:!1}),e("body").hasClass("ls-unselectable")||"slideshowOnly"===r.o.pauseOnHover||r.o.pauseLayers&&r.slideshow.isPaused()||r.transitions.layers.timeline.resume(),r.timelines._layers&&r.transitions.layers.timeline.state.finished&&r.timelines._layers.progress()<t&&r.functions.setStates(r.transitions.layers.timeline,{finished:!1}),r.slideshow.start()})},sequences:function(){for(var t=0;t<r.slides.count;t++)r.slideshow.sequence.normal[t]=t+1;r.slideshow.sequence.randomized=r.functions.shuffleArray(e.merge([],r.slideshow.sequence.normal))},normalizedSequence:function(){var e=r.o.shuffleSlideshow?"randomized":"normal",t=r.slideshow.sequence[e],i=r.slideshow.sequence[e].length,a=t.indexOf(r.slides.first.index);r.slideshow.sequence.normalized=[];for(var s=a;s<i;s++)r.slideshow.sequence.normalized.push(t[s]);for(var o=0;o<a;o++)r.slideshow.sequence.normalized.push(t[o])},prevNext:function(e){switch("prev"!==e&&"first"!==e||!r.o.twoWaySlideshow?r.slideshow.direction="next":r.slideshow.direction="prev",e){case"prev":r.slideshow.changeTo(r.slideshow.get.slideInSequence("prev"),!0);break;case"next":r.slideshow.changeTo(r.slideshow.get.slideInSequence("next"),!0);break;case"first":r.slideshow.changeTo(1,!0);break;case"last":r.slideshow.changeTo(r.slides.count,!0)}}},get:{sequence:function(){var e="normal";return r.o.playByScroll?e="normalized":r.o.shuffleSlideshow&&(e="randomized"),e},slideInSequence:function(e){var t=r.slideshow.sequence[this.sequence()],i=t.indexOf(r.slides.current.index);switch(e){case"prev":return 0===i?t[t.length-1]:t[i-1];case"next":return i===t.length-1?t[0]:t[i+1];default:return t[e]}},indexOfSlideInSequence:function(e){return r.slideshow.sequence[this.sequence()].indexOf(e)}},cycles:{set:function(){r.o.cycles>0&&(r.slideshow.curCycle=1,r.slideshow.cycleSlideIndex=r.slideshow.get.indexOfSlideInSequence(r.slides.first.index))},check:function(e){if(r.slideshow.get.indexOfSlideInSequence(e)===r.slideshow.cycleSlideIndex)return++r.slideshow.curCycle===r.o.cycles+1}},start:function(e){!this.isPaused()&&r.timelines._layers&&r.transitions.layers.timeline.state.finished&&this.changeTo(r.slides.next.index)},stop:function(){r.functions.setStates(this,{running:!1,paused:!0})},changeTo:function(i,a,s,o){if(!document.body.contains(t))return!1;if(r.slides.current.index===i&&!r.slideshow.forceSlideChangeTo)return!1;if(r.slideshow.forceSlideChangeTo=null,!this.firstStart&&r.api.hasEvent("slideChangeWillStart")){var n=r.api.triggerEvent("slideChangeWillStart",r.api.eventData());if(!1===n)return;e.isNumeric(n)&&(i=parseInt(n))}i>r.slides.count||i<1?r.debugMode&&(r.debug.add("group","slideshow"),r.debug.add("warn","slideshow.invalidSlideIndex",[i,r.slides.count]),r.debug.groupEnd()):r.slider.isBusy()||r.slideshow.state.pausedByVideo&&!a?!r.slider.state.preloadingImages&&r.slider.state.animatingSlides&&r.timelines._slideTransition&&(r.slideshow.forceSlideChangeTo=i,r.slideshow.should.change=!0,r.timelines._slideTransition.progress(1),o&&(r.navigation.direction=o,r.navigation.forceDirection=o)):(r.functions.setStates(r.transitions.layers.timeline,{finished:!1}),r.slideshow.should.change=!1,r.debugMode&&r.debug.add("group","slideshow"),a?(s&&(r.navigation.direction=r.slides.current.index>i?"prev":"next"),r.o.twoWaySlideshow&&("prev"===r.navigation.direction?r.slideshow.direction="prev":r.slideshow.direction="next"),r.debugMode&&(r.debug.add("log","slideshow.changedByUser",!1),r.o.twoWaySlideshow&&r.debug.add("log","slideshow.setdir",r.slideshow.direction))):r.navigation.direction=r.slideshow.direction,r.transitions.timers.reverse(),r.gui.media.hideUnmute(),r.slides.set.nextSlideIndex(i),r.debugMode&&(r.debug.add("log","slideshow.change",[r.slides.current.index,r.slides.next.index,r.slideshow.direction,r.navigation.direction]),r.debug.groupEnd()),r.functions.setStates(this,{pausedByVideo:!1,changed:++this.state.changed}),r.functions.setStates(r.slider,{changingSlides:!0}),r.slider.state.animatingSlides&&r.timelines._slideTransition&&r.timelines.to([r.timelines.slides[r.slides.current.index],"_forceOut _forceOutMirror",1,!0,!0,!0,!0]),r.preload.imagesOfSlide(r.slides.next.index,function(){r.transitions.start()}))},forceStop:function(){r.navigation.stop(),e.each(r.timeouts,function(e,t){clearTimeout(r.timeouts[e])}),r.transitions.timers.stop(),r.timelines._layers.stop(),r.timelines._layersAlt.stop(),r.functions.setStates(r.transitions.layers.timeline,{stopped:!0,running:!1}),i.find("*").stop(!0,!1).dequeue()},restart:function(){i.find("*").stop(),r.navigation.change(r.slides.current.index,r.slideshow.direction)}},r.media={properties:{$allMediaLayers:e(),playingInCurSlide:0,endedInCurSlide:0,userDidUnmute:!1},init:function(){r.functions.setStates(r.slider,{waitingForYouTube:!1,waitingForVimeo:!1}),r.media.properties.allowToUnmute=!0,r.media.youtube.init(),r.media.vimeo.init(),r.media.html5.init()},isPlayable:function(e,t){return!(e.is("[data-ls-animating-out], [data-ls-hidden]")&&!t.is.backgroundVideo)},get:function(e){var t,i=r.media.properties.$allMediaLayers;return e&&(-1!==(e=e.toLowerCase()).indexOf("notbg")&&(i=i.not(".ls-bg-video")),-1!==e.indexOf("active")&&(i=i.filter("[data-ls-active], [data-ls-animating-in], [data-ls-text-animating-in]")),-1!==e.indexOf("notstatic")&&(i=i.not("[data-ls-static]")),t=i.find("video, audio, iframe"),-1!==e.indexOf("notplaying")?t=t.filter("[data-ls-not-playing]"):-1!==e.indexOf("playing")&&(t=t.filter("[data-ls-playing]")),-1!==e.indexOf("allowtounmute")&&(t=t.filter("[data-ls-allow-to-unmute]")),-1!==e.indexOf("mutedbybrowser")&&(t=t.filter("[data-ls-muted-by-browser]"))),t},set:{backgroundVideo:function(t,i){if(0===t.children(".ls-vpcontainer").length){var a=e("<div>").addClass("ls-vpcontainer").appendTo(t);i.mediaSettings.poster&&e("<div>").appendTo(a).addClass("ls-videopreview").attr({style:"background-image: url("+i.mediaSettings.poster+")"})}},customPoster:function(e,t){return t.mediaSettings.poster||!1},dataAttribute:function(e,t){e.removeAttr("data-ls-playing data-ls-not-playing"),e.attr("data-ls-"+t,""),r.media.functions.checkSlideshowWaiting()},mediaElements:function(t,i,a){var s=e("<div>").addClass("ls-vpcontainer").appendTo(t);!("autoplay"in a.mediaSettings)&&r.o.autoPlayVideos||a.mediaSettings.autoplay?"instant"===a.mediaSettings.autoplay?t.addClass("ls-instant-autoplay"):t.addClass("ls-autoplay"):e("<div>").appendTo(s).addClass("ls-playvideo"),i.is("iframe")&&a.mediaProperties.poster&&e("<div>").appendTo(s).addClass("ls-videopreview").attr({style:"background-image: url("+a.mediaProperties.poster+")"}),i.is("video, audio")&&a.mediaProperties.poster&&e("<div>").appendTo(s).addClass("ls-videopreview").attr({style:"background-image: url("+a.mediaProperties.poster+")"})},properties:function(t,i,a){switch(a.is.mediaLayer=!0,a.mediaProperties.type){case"youtube":a.is.backgroundVideo?(a.mediaProperties.options=e.extend(!0,{loop:1,playlist:a.mediaProperties.embedID,controls:0,autoplay:0,showinfo:!1,modestbranding:1,thumbnail:!1},r.media[a.mediaProperties.type].defaults,a.mediaProperties.embedOptions),r.media.set.backgroundVideo(t,a)):(a.mediaProperties.options=e.extend(!0,{},r.media[a.mediaProperties.type].defaults,a.mediaProperties.embedOptions,{autoplay:0}),r.media.set.mediaElements(t,i,a));break;case"vimeo":a.is.backgroundVideo?(a.mediaProperties.options=e.extend(!0,{loop:1,byline:0,portrait:0,title:0,fun:0},r.media[a.mediaProperties.type].defaults,a.mediaProperties.embedOptions),r.media.set.backgroundVideo(t,a)):(a.mediaProperties.options=e.extend(!0,{},r.media[a.mediaProperties.type].defaults,a.mediaProperties.embedOptions,{autoplay:0}),r.media.set.mediaElements(t,i,a));break;case"html5":i.attr("autoplay")&&(i.removeAttr("autoplay"),t.attr("data-ls",t.attr("data-ls")+" autoplay: true;")),a.is.backgroundVideo?(i.removeAttr("controls"),i[0].muted=!0,i.attr("loop","")):"controls"in a.mediaSettings&&"auto"!==a.mediaSettings.controls&&(a.mediaSettings.controls?(i.attr("controls",""),i.removeAttr("nocontrols")):i.removeAttr("controls")),"volume"in a.mediaSettings&&(a.mediaSettings.volume<0?a.mediaSettings.volume=0:a.mediaSettings.volume>100&&(a.mediaSettings.volume=100),i[0].volume=a.mediaSettings.volume/100),"muted"in a.mediaSettings&&(a.mediaSettings.muted?i[0].muted=!0:i[0].muted=!1),"loop"in a.mediaSettings&&(a.mediaSettings.loop?i.attr("loop",""):i.removeAttr("loop")),a.is.backgroundVideo?r.media.set.backgroundVideo(t,a):r.media.set.mediaElements(t,i,a)}},thumbnail:function(e,t){switch(t){case"show":e.stop(!0,!0).fadeIn(r.transitions.media.defaults.fadeIn);break;case"hide":e.stop(!0,!0).delay(r.transitions.media.defaults.delay).fadeOut(r.transitions.media.defaults.fadeOut)}}},events:{start:function(e,t,i){if(r.api.hasEvent("mediaDidStart")&&!i.mediaProperties.alreadyStarted&&r.media.functions.allowedToPlay(e,i)){var a=r.api.eventData();a.event.target=e[0],r.api.triggerEvent("mediaDidStart",a),i.mediaProperties.alreadyStarted=!0}},stop:function(e,t,i){if(r.api.hasEvent("mediaDidStop")&&i.mediaProperties.alreadyStarted){var a=r.api.eventData();a.event.target=e[0],r.api.triggerEvent("mediaDidStop",a),i.mediaProperties.alreadyStarted=!1}}},unmute:{set:function(e,t,i){("youtube"!==t&&"vimeo"!==t||r.media.properties.allowToUnmute)&&r.gui.media.showUnmute(),e.attr("data-ls-allow-to-unmute",""),i&&e.attr("data-ls-muted-by-browser","")},multipleMediaElements:function(){var t=i.find("[data-ls-allow-to-unmute]");(r.o.rememberUnmuteState?t:t.filter("[data-ls-playing], [data-ls-muted-by-browser]")).each(function(){r.media.unmute.singleMediaElement(e(this))}),r.gui.media.hideUnmute(),r.media.properties.userDidUnmute=!0},singleMediaElement:function(e){var t,i=e.closest(".ls-layer").data(r.defaults.init.dataKey),a=!1;switch(i.mediaProperties.type){case"youtube":r.media.properties.allowToUnmute&&(a=!0,i.mediaProperties.player.unMute());break;case"vimeo":r.media.properties.allowToUnmute&&(a=!0,t=i.mediaSettings.volume?i.mediaSettings.volume/100:1,i.mediaProperties.player.setVolume(t));break;case"html5":a=!0,e[0].muted=!1}a&&e.removeAttr("data-ls-muted-by-browser data-ls-allow-to-unmute")}},functions:{allowedToPlay:function(e,t){var i=e.closest(".ls-layer");return!!(r.slides.current.index===parseInt(i.attr("data-ls-slidein"))||t.is.backgroundVideo&&r.slides.next.index===parseInt(i.attr("data-ls-slidein"))||i.attr("data-ls-static")&&void 0!==i.attr("data-ls-active"))},playActiveMedia:function(t){var i,a;r.media.get("notbg,active").each(function(){if(i=e(this).closest(".ls-layer"),a=i.data(r.defaults.init.dataKey),t){if(!a.mediaProperties.pausedByPerformance)return!0;a.mediaProperties.pausedByPerformance=!1}if(r.media.isPlayable(i,a))if(a.mediaProperties.alreadyStarted)switch(a.mediaProperties.type){case"youtube":a.mediaProperties.player.playVideo();break;case"vimeo":a.mediaProperties.player.play();break;case"html5":a.mediaProperties.$media[0].play()}else e(this).parent().find(".ls-vpcontainer").trigger("playMedia")})},stopSingleMedia:function(e,t){var i=t.mediaProperties.$media;r.media[t.mediaProperties.type].stop(e,i,t,!0),r.media.functions.mediaEnded(i,e,t,!0)},pauseActiveMedia:function(t){var i;r.media.get("notbg,active,playing").each(function(){switch(i=e(this).closest(".ls-layer").data(r.defaults.init.dataKey),t&&(i.mediaProperties.pausedByPerformance=!0),i.mediaProperties.type){case"youtube":i.mediaProperties.player.pauseVideo();break;case"vimeo":i.mediaProperties.player.pause();break;case"html5":this.pause()}})},urlToObject:function(t){var i={},a=t.split("?")[1];return a&&a.split("#")[0].replace(/([^=&]+)=([^&]*)/g,function(t,a,s){i[decodeURIComponent(a)]=e.isNumeric(decodeURIComponent(s))?parseInt(decodeURIComponent(s)):decodeURIComponent(s)}),i},checkSlideshowState:function(e,t){!t.is.static&&r.o.autoPauseSlideshow&&(r.functions.setStates(r.slideshow,{pausedByVideo:!0}),"auto"==r.o.autoPauseSlideshow&&r.media.properties.playingInCurSlide++)},checkSlideshowWaiting:function(){var t=r.media.properties.playingInCurSlide,i=r.media.get("notbg,active,notstatic,notplaying"),a=i.length;if(a===t&&a>0&&r.slideshow.state.pausedByVideo&&r.o.autoPauseSlideshow&&!r.timeouts.pausedVideos&&r.slideshow.state.running){if("hidden"===document.visibilityState)return;r.timeouts.pausedVideos=setTimeout(function(){r.slideshow.state.running?i.each(function(){r.media.functions.mediaEnded(e(this),e(this).closest(".ls-layer"),e(this).closest(".ls-layer").data(r.defaults.init.dataKey))}):r.slideshow.state.pausedByVideo=!1},5e3)}else r.timeouts.pausedVideos&&(clearTimeout(r.timeouts.pausedVideos),delete r.timeouts.pausedVideos)},playIfAllowed:function(e){var t=e.data(r.defaults.init.dataKey);t.is.mediaLayer&&(l.isMobile&&(i.hasClass("ls-device-is-phone")&&t.elements.$outerWrapper.hasClass("ls-hide-on-phone")||i.hasClass("ls-device-is-tablet")&&t.elements.$outerWrapper.hasClass("ls-hide-on-tablet"))||(!("autoplay"in t.mediaSettings)&&r.o.autoPlayVideos||t.mediaSettings.autoplay)&&e.find(".ls-vpcontainer").trigger("playMedia"))},stop:function(t,i){t=void 0===t||t;var a=!!i&&i.children("iframe, video, audio").first(),s=!!i&&i.data(r.defaults.init.dataKey).mediaProperties.type;"youtube"!==s&&a||(a||r.layers.get("current,out,youtube")).each(function(){var i=e(this),a=i.closest(".ls-layer"),s=a.data(r.defaults.init.dataKey);r.media.youtube.stop(a,i,s,t)}),"vimeo"!==s&&a||(a||r.layers.get("current,out,vimeo")).each(function(){var i=e(this),a=i.closest(".ls-layer"),s=a.data(r.defaults.init.dataKey);r.media.vimeo.stop(a,i,s,t)}),"html5"!==s&&a||(a||r.layers.get("current,out,html5")).each(function(){var i=e(this),a=i.closest(".ls-layer"),s=a.data(r.defaults.init.dataKey);r.media.html5.stop(a,i,s,t)}),r.media.properties.playingInCurSlide=Math.max(r.media.properties.playingInCurSlide-=1,0),r.media.properties.endedInCurSlide=Math.max(r.media.properties.endedInCurSlide-=1,0)},mediaEnded:function(e,t,i,a){"auto"!=r.o.autoPauseSlideshow||i.is.backgroundVideo||(i.is.static||r.media.properties.endedInCurSlide++,r.media.properties.endedInCurSlide===r.media.properties.playingInCurSlide&&0!==r.media.properties.playingInCurSlide&&(a||(r.media.properties.playingInCurSlide=Math.max(r.media.properties.playingInCurSlide-=1,0),r.media.properties.endedInCurSlide=Math.max(r.media.properties.endedInCurSlide-=1,0)),r.functions.setStates(r.slideshow,{pausedByVideo:!1}))),r.media.set.dataAttribute(e,"not-playing"),r.media.events.stop(e,t,i)},removeFromTimeline:function(e){r.timelines._layers.kill(null,e.closest(".ls-in-out")[0]),r.timelines._layersAlt.kill(null,e.closest(".ls-in-out")[0])}},youtube:{defaults:{autoplay:0,playsinline:1,wmode:"opaque",html5:1,enablejsapi:1,version:3,rel:0},init:function(){var t=0;this.$medias=r.slider.$hiddenWrapper.find('iframe[src*="youtube-nocookie.com"], iframe[src*="youtube.com"], iframe[src*="youtu.be"], iframe[data-src*="youtube-nocookie.com"], iframe[data-src*="youtube.com"], iframe[data-src*="youtu.be"]').each(function(){var i=e(this).attr({id:"ls-youtube-"+ ++t,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowfullscreen:""}),a=i.closest(".ls-layer");a.data("hasBeenSet")||r.layers.set.singleLayer(a);var s=a.data(r.defaults.init.dataKey),o=i.attr("src")||i.attr("data-src"),n=r.media.functions.urlToObject(o),l=(o=o.split("?")[0].split("//")[1]).split("/"),d=l[l.length-1],c=r.media.set.customPoster(a,s);if(s.mediaProperties={type:"youtube",$media:i,embedURL:o,embedID:d,embedOptions:n},c)s.mediaProperties.poster=c,r.media.set.properties(a,i,s);else{var p=["default.jpg","mqdefault.jpg","hqdefault.jpg","sddefault.jpg","maxresdefault.jpg"],u="https://img.youtube.com/vi/"+o.split("embed/")[1].split("?")[0]+"/",m=u+r.o.youtubePreview,h=0,f=0,g=function(){this.width>h&&(h=this.width,m=this.src),v()},y=function(){v()},v=function(){(f+=1)===p.length&&(s.mediaProperties.poster=m,r.media.set.properties(a,i,s))};p.forEach(function(e){var t=new Image;t.addEventListener("error",y,!1),t.addEventListener("load",g,!1),t.src=u+e})}}),this.$medias.length&&(r.media.properties.$allMediaLayers=r.media.properties.$allMediaLayers.add(this.$medias.closest(".ls-layer")),r.timeouts.loadYouTube=Math.floor(Date.now()/1e3),window.YT||e("<script>").attr({src:"https://www.youtube.com/iframe_api",type:"text/javascript"}).appendTo("head"),window.onYouTubeIframeAPIReady=function(){window._layerSlider.globals.youTubeIsReady=!0},r.intervals.isYouTubeReady=setInterval(function(){window.YT&&1===window.YT.loaded||window._layerSlider.globals.youTubeIsReady||Math.floor(Date.now()/1e3)-r.timeouts.loadYouTube>3?(clearInterval(r.intervals.isYouTubeReady),delete r.intervals.isYouTubeReady,delete r.timeouts.loadYouTube,r.media.youtube.$medias.closest(".ls-layer").each(function(){var t=e(this),i=t.find("iframe"),a=t.data(r.defaults.init.dataKey);t.on("playMedia."+s+" click."+s,".ls-vpcontainer",function(){r.media.set.thumbnail(e(this),"hide"),r.media.functions.checkSlideshowState(t,a),i.hide(),r.media.youtube.play(t,a.mediaProperties.$media,a,a.mediaProperties.embedURL),setTimeout(function(){i.show()},10)}).on("playBackgroundVideo."+s,function(){r.media.youtube.play(t,a.mediaProperties.$media,a,a.mediaProperties.embedURL),r.layers.set.dataAttribute("add",t,"active")}).on("stopBackgroundVideo."+s,function(){r.media.youtube.stop(t,a.mediaProperties.$media,a,!0),r.layers.set.dataAttribute("add",t,"hidden")}).on("preloadBackgroundVideo."+s,function(){r.media.youtube.createPlayer(t,a.mediaProperties.$media,a,a.mediaProperties.embedURL,!0)})}),r.functions.setStates(r.slider,{waitingForYouTube:!1})):r.functions.setStates(r.slider,{waitingForYouTube:!0})},25))},createPlayer:function(e,t,i,a,s){i.mediaProperties.playerState="initializing","controls"in i.mediaSettings&&(i.mediaProperties.options.controls=i.mediaSettings.controls?1:0),"loop"in i.mediaSettings&&(i.mediaProperties.options.loop=i.mediaSettings.loop?1:0),"showinfo"in i.mediaSettings&&(i.mediaProperties.options.showinfo=i.mediaSettings.showinfo?1:0),i.mediaProperties.options.loop?i.mediaProperties.options.playlist=i.mediaProperties.embedID:delete i.mediaProperties.options.playlist,0===i.mediaProperties.options.showinfo&&(i.mediaProperties.options.modestbranding=1),t.attr("src","https://"+a+"?"+jQuery.param(i.mediaProperties.options)).on("load",function(){i.mediaProperties.player=new YT.Player(t[0],{events:{onReady:function(o){i.mediaProperties.playerState="ready",i.mediaSettings.volume&&i.mediaProperties.player.setVolume(i.mediaSettings.volume),s&&!i.mediaProperties.shouldPlay||(r.media.youtube.play(e,t,i,a),i.mediaProperties.shouldPlay=!1)},onStateChange:function(a){switch(a.data){case 0:i.mediaProperties.options.loop&&1===i.mediaProperties.options.loop||r.media.functions.mediaEnded(t,e,i);break;case 1:r.media.events.start(t,e,i),i.mediaProperties.lastStarted=Date.now();break;case 2:case-1:i.mediaProperties.firstState&&0!==i.mediaProperties.lastState&&1!==i.mediaProperties.lastState||i.mediaProperties.lastStarted&&(Date.now(),i.mediaProperties.lastStarted)}if(1===a.data)r.media.set.dataAttribute(t,"playing");else r.media.set.dataAttribute(t,"not-playing");r.media.youtube.savePlayerState(i,a.data)}}})})},savePlayerState:function(e,t){e.mediaProperties.firstState||(e.mediaProperties.firstState=t),e.mediaProperties.lastState=t},play:function(e,t,i,a,s){void 0!==t.attr("data-ls-muted-by-browser")&&r.media.unmute.singleMediaElement(t),i.mediaProperties.player?i.mediaProperties.player.playVideo?(i.is.backgroundVideo&&!("muted"in i.mediaSettings)&&i.mediaProperties.player.mute(),i.mediaSettings.muted?r.o.rememberUnmuteState&&r.media.properties.userDidUnmute||(i.mediaProperties.player.mute(),"offertounmute"==i.mediaSettings.muted&&r.media.unmute.set(t,i.mediaProperties.type)):s&&(i.mediaProperties.player.mute(),r.media.unmute.set(t,i.mediaProperties.type,!0)),r.media.functions.allowedToPlay(t,i)?r.media.isPlayable(e,i)&&i.mediaProperties.player.playVideo():r.media.youtube.stop(e,t,i,!0)):i.mediaProperties.shouldPlay=!0:i.mediaProperties.playerState?i.mediaProperties.shouldPlay=!0:this.createPlayer(e,t,i,a)},stop:function(e,t,i,a){i.mediaProperties.player&&(i.mediaProperties.player.pauseVideo&&i.mediaProperties.player.pauseVideo(),a&&i.mediaProperties.player.seekTo&&(i.mediaProperties.player.seekTo(0),i.mediaProperties.player.pauseVideo()),i.is.backgroundVideo||r.media.set.thumbnail(e.find(".ls-vpcontainer"),"show"),r.media.events.stop(t,e,i))}},vimeo:{defaults:{autoplay:0,autopause:0,wmode:"opaque",playsinline:1},init:function(){var t=this.$medias=r.slider.$hiddenWrapper.find('iframe[src*="player.vimeo"], iframe[data-src*="player.vimeo"]'),i=r.slider.$hiddenWrapper.find('.ls-slide:eq(0) iframe[src*="player.vimeo"], .ls-slide:eq(0) iframe[data-src*="player.vimeo"]').length;if(t.length){r.timeouts.loadVimeo=Math.floor(Date.now()/1e3),r.media.properties.$allMediaLayers=r.media.properties.$allMediaLayers.add(t.closest(".ls-layer"));var a=0;e("<script>").attr({src:"https://player.vimeo.com/api/player.js",type:"text/javascript"}).appendTo("head"),r.intervals.isVimeoReady=setInterval(function(){r.functions.setStates(r.slider,{waitingForVimeo:!0}),(window.Vimeo||Math.floor(Date.now()/1e3)-r.timeouts.loadVimeo>3)&&(clearInterval(r.intervals.isVimeoReady),delete r.intervals.isVimeoReady,delete r.timeouts.loadVimeo,o())},25);var o=function(){var t=0;r.media.vimeo.$medias.each(function(){var o=e(this).attr({id:"ls-vimeo-"+ ++a,allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowfullscreen:""}),n=o.closest(".ls-layer");n.data("hasBeenSet")||r.layers.set.singleLayer(n);var l=n.data(r.defaults.init.dataKey),d=o.attr("src")||o.attr("data-src"),c=r.media.functions.urlToObject(d),p=d.split("video/")[1].split("?")[0],u="https://vimeo.com/api/oembed.json?url="+encodeURIComponent("https://vimeo.com/video/"+p+(c.h?"?h="+c.h:""));d=d.split("?")[0].split("//")[1],r.media.vimeo.defaults.player_id="ls-vimeo-"+a;var m=r.media.set.customPoster(n,l);l.mediaProperties={type:"vimeo",$media:o,embedURL:d,embedOptions:c};var h=function(e){l.mediaProperties.poster=e,(0===i||i>0&&++t==i)&&(window._layerSlider.globals.vimeoIsReady=!0),r.media.set.properties(n,o,l)};m?h(m):e.getJSON(u,function(e){h(e.thumbnail_url)}),n.on("playMedia."+s+" click."+s,".ls-vpcontainer",function(){r.media.set.thumbnail(e(this),"hide"),r.media.functions.checkSlideshowState(n,l),r.media.vimeo.play(n,o,l,d)}).on("playBackgroundVideo."+s,function(){r.media.vimeo.play(n,o,l,d),r.layers.set.dataAttribute("add",n,"active")}).on("stopBackgroundVideo."+s,function(){r.media.vimeo.stop(n,o,l,!0),r.layers.set.dataAttribute("add",n,"hidden")}).on("preloadBackgroundVideo."+s,function(){r.media.vimeo.createPlayer(n,o,l,d,!0)})}),r.functions.setStates(r.slider,{waitingForVimeo:!1})}}},createPlayer:function(t,i,a,s,o){a.mediaProperties.playerState="initializing";"controls"in a.mediaSettings&&(a.mediaProperties.options.controls=a.mediaSettings.controls?1:0,delete a.mediaSettings.controls),"loop"in a.mediaSettings&&(a.mediaProperties.options.loop=a.mediaSettings.loop?1:0),"showinfo"in a.mediaSettings&&(a.mediaSettings.showinfo?(a.mediaProperties.options.byline=1,a.mediaProperties.options.portrait=1,a.mediaProperties.options.title=1):(a.mediaProperties.options.byline=0,a.mediaProperties.options.portrait=0,a.mediaProperties.options.title=0),delete a.mediaProperties.options.showinfo),"volume"in a.mediaSettings&&(0===a.mediaSettings.volume?(a.mediaSettings.volume=100,a.mediaSettings.muted=!0):(a.mediaSettings.volume<0||a.mediaSettings.volume>100)&&(a.mediaSettings.volume=100)),a.mediaSettings.muted&&(a.mediaProperties.options.muted=1),i.attr("src","https://"+s+"?"+jQuery.param(a.mediaProperties.options)),a.mediaProperties.player=new Vimeo.Player(i[0]),a.mediaProperties.player.on("play",function(){r.media.set.dataAttribute(i,"playing"),r.media.events.start(i,t,a)}),a.mediaProperties.player.on("pause",function(){r.media.set.dataAttribute(i,"not-playing")}),a.mediaProperties.player.on("ended",function(){r.media.functions.mediaEnded(i,t,a)}),a.mediaProperties.player.ready().then(function(){a.mediaProperties.playerState="ready",a.mediaSettings.volume&&!a.mediaSettings.muted&&e.isNumeric(a.mediaSettings.volume)&&a.mediaSettings.volume>=0&&a.mediaSettings.volume<=100&&a.mediaProperties.player.setVolume(a.mediaSettings.volume/100),o||r.media.vimeo.play(t,i,a,s)})},play:function(e,t,i,a,s){void 0!==t.attr("data-ls-muted-by-browser")&&r.media.unmute.singleMediaElement(t),i.mediaProperties.player?(i.is.backgroundVideo&&!("muted"in i.mediaSettings)&&i.mediaProperties.player.setVolume(0),i.mediaSettings.muted&&(r.o.rememberUnmuteState&&r.media.properties.userDidUnmute?r.o.rememberUnmuteState&&r.media.properties.userDidUnmute&&(i.mediaProperties.player.setVolume(i.mediaSettings.volume/100||1),delete i.mediaSettings.muted):(i.mediaProperties.player.setVolume(0),"offertounmute"==i.mediaSettings.muted&&r.media.unmute.set(t,i.mediaProperties.type))),s?(i.mediaProperties.player.setVolume(0),r.media.unmute.set(t,i.mediaProperties.type,!0)):i.mediaProperties.player.getVolume().then(function(e){0==e&&"offertounmute"==i.mediaSettings.muted&&r.media.unmute.set(t,i.mediaProperties.type)}),r.media.functions.allowedToPlay(t,i)?i.mediaProperties.player.play().then(function(){}).catch(function(s){switch(s.name){case"PasswordError":window.console&&(console.error(r.defaults.slider.errorText),console.error("Vimeo video is password protected and may cause playback issues."));break;case"PrivacyError":window.console&&(console.error(r.defaults.slider.errorText),console.error("Vimeo video is private and may cause playback issues."));break;default:r.media.vimeo.play(e,t,i,a,!0)}}):r.media.vimeo.stop(e,t,i,!0)):this.createPlayer(e,t,i,a)},stop:function(e,t,i,a){i.mediaProperties.player&&(i.mediaProperties.player.pause(),a&&i.mediaProperties.player.setCurrentTime(0),i.is.backgroundVideo||r.media.set.thumbnail(e.find(".ls-vpcontainer"),"show"),r.media.events.stop(t,e,i))}},html5:{singleInit:function(t){var i,a,o,n,l=t.closest(".ls-layer"),d=l.data(r.defaults.init.dataKey),c=t.find("source"),p=r.media.set.customPoster(l,d);d.mediaProperties={type:"html5",$media:t,poster:p||t.attr("poster")},t.removeAttr("poster"),c.length>0?c.each(function(){void 0!==(i=e(this).attr("type"))&&!1!==i||(a=e(this).attr("src"),o=a.split("."),n=o[o.length-1].toLowerCase(),e(this).attr("type",e(this).parent()[0].tagName.toLowerCase()+"/"+n)),""!==t[0].canPlayType(e(this).attr("type"))&&(d.mediaProperties.canBePlayed=!0)}):void 0!==t.attr("src")&&!1!==t.attr("src")&&(a=t.attr("src"),o=a.split("."),n=o[o.length-1].toLowerCase(),""!==t[0].canPlayType(t[0].tagName.toLowerCase()+"/"+n)&&(d.mediaProperties.canBePlayed=!0)),d.mediaProperties.canBePlayed&&(r.media.set.properties(l,t,d),t.on("ended."+s,function(){r.media.functions.mediaEnded(t,l,d)}).on("play."+s,function(){}).on("playing."+s,function(){r.media.events.start(t,l,d),r.media.set.dataAttribute(t,"playing")}).on("pause."+s,function(){r.media.set.dataAttribute(t,"not-playing")}),l.on("playMedia."+s+" click."+s,".ls-vpcontainer",function(i){r.media.set.thumbnail(e(this),"hide"),r.media.functions.checkSlideshowState(l,d),r.media.html5.play(l,t,d)}).on("playBackgroundVideo."+s,function(){r.media.html5.play(l,t,d),r.layers.set.dataAttribute("add",l,"active")}).on("stopBackgroundVideo."+s,function(){r.media.html5.stop(l,t,d,!0),r.layers.set.dataAttribute("add",l,"hidden")}))},init:function(){var t=r.slider.$hiddenWrapper.find("video, audio");if(r.media.properties.$allMediaLayers=r.media.properties.$allMediaLayers.add(t.closest(".ls-layer")),t.length){var i=0;t.each(function(){e(this).closest(".ls-layer").data(r.defaults.init.dataKey).is.mediaLayer=!0,e(this).attr("id","ls-html5-"+ ++i).attr("playsinline",""),e(this)[0].pause()})}},play:function(e,t,i){if(i.mediaProperties.canBePlayed){void 0!==t.attr("data-ls-muted-by-browser")&&r.media.unmute.singleMediaElement(t),i.mediaSettings.muted?r.o.rememberUnmuteState&&r.media.properties.userDidUnmute?r.o.rememberUnmuteState&&r.media.properties.userDidUnmute&&(t[0].muted=!1):(t[0].muted=!0,"offertounmute"==i.mediaSettings.muted&&r.media.unmute.set(t,i.mediaProperties.type)):t[0].muted=!1;var a=t[0].play();void 0!==a&&a.then(function(e){}).catch(function(e){"NotAllowedError"===e.name&&(t[0].muted=!0,t[0].play(),t[0].paused&&r.functions.setStates(r.slideshow,{pausedByVideo:!1}),r.media.unmute.set(t,i.mediaProperties.type,!0))})}},stop:function(t,i,a,s){a.mediaProperties.canBePlayed&&(i[0].pause(),s&&(i[0].currentTime=0),a.is.backgroundVideo||r.media.set.thumbnail(e(this),"show"),r.media.events.stop(i,t,a))}}},r.yourLogo={init:function(){r.o.yourLogo&&(this.$element=e("<img>").addClass("ls-yourlogo").appendTo(i).attr("style",r.o.yourLogoStyle).css({visibility:"hidden",display:"bock"}).on("load."+s,function(){var t=r.yourLogo.$element?500:0;r.timeouts.yourLogo=setTimeout(function(){delete r.timeouts.yourLogo,r.yourLogo.$element.data("originalWidth",r.yourLogo.$element.width()),r.yourLogo.$element.data("originalHeight",r.yourLogo.$element.height()),"auto"!=r.yourLogo.$element.css("left")&&r.yourLogo.$element.data("originalLeft",r.yourLogo.$element[0].style.left),"auto"!=r.yourLogo.$element.css("right")&&r.yourLogo.$element.data("originalRight",r.yourLogo.$element[0].style.right),"auto"!=r.yourLogo.$element.css("top")&&r.yourLogo.$element.data("originalTop",r.yourLogo.$element[0].style.top),"auto"!=r.yourLogo.$element.css("bottom")&&r.yourLogo.$element.data("originalBottom",r.yourLogo.$element[0].style.bottom),!1!==r.o.yourLogoLink&&e("<a>").appendTo(i).attr("href",r.o.yourLogoLink).attr("target",r.o.yourLogoTarget).css({textDecoration:"none",outline:"none"}).append(r.yourLogo.$element),r.yourLogo.$element.css({display:"none",visibility:"visible"}),r.yourLogo.resize()},t)}).attr("src",r.o.yourLogo))},resize:function(){this.$element.css({width:this.$element.data("originalWidth")*r.resize.ratio,height:this.$element.data("originalHeight")*r.resize.ratio}),this.$element.fadeIn(300);var e="auto",t="auto",a="auto",s="auto";e=this.$element.data("originalLeft")&&-1!=this.$element.data("originalLeft").indexOf("%")?i.width()/100*parseFloat(this.$element.data("originalLeft"))-this.$element.width()/2+parseInt(i.css("padding-left")):parseInt(this.$element.data("originalLeft"))*r.resize.ratio,t=this.$element.data("originalRight")&&-1!=this.$element.data("originalRight").indexOf("%")?i.width()/100*parseFloat(this.$element.data("originalRight"))-this.$element.width()/2+parseInt(i.css("padding-right")):parseInt(this.$element.data("originalRight"))*r.resize.ratio,a=this.$element.data("originalTop")&&-1!=this.$element.data("originalTop").indexOf("%")?i.height()/100*parseFloat(this.$element.data("originalTop"))-this.$element.height()/2+parseInt(i.css("padding-top")):parseInt(this.$element.data("originalTop"))*r.resize.ratio,s=this.$element.data("originalBottom")&&-1!=this.$element.data("originalBottom").indexOf("%")?i.height()/100*parseFloat(this.$element.data("originalBottom"))-this.$element.height()/2+parseInt(i.css("padding-bottom")):parseInt(this.$element.data("originalBottom"))*r.resize.ratio,this.$element.css({left:e,right:t,top:a,bottom:s})}},r.gui={navigation:{init:function(){r.o.navPrevNext&&this.prevNext.init(),(r.o.navStartStop||r.o.navButtons)&&this.bottom.init()},prevNext:{init:function(){e('<a class="ls-gui-element ls-nav-prev" aria-label="jump to the previous slide" href="#" />').on("click."+s,function(e){e.preventDefault(),i.layerSlider("prev")}).appendTo(i),e('<a class="ls-gui-element ls-nav-next" aria-label="jump to the next slide" href="#" />').on("click."+s,function(e){e.preventDefault(),i.layerSlider("next")}).appendTo(i),r.o.hoverPrevNext&&this.setHover()},setHover:function(){i.find(".ls-nav-prev, .ls-nav-next").css({display:"none"}),i.on("mouseenter."+s,function(){r.gui.navigation.forceHide||i.find(".ls-nav-prev, .ls-nav-next").stop(!0,!0).fadeIn(300)}).on("mouseleave."+s,function(){i.find(".ls-nav-prev, .ls-nav-next").stop(!0,!0).fadeOut(300)})}},bottom:{init:function(){this.wrapper=e('<div class="ls-gui-element ls-bottom-nav-wrapper" />').appendTo(i),r.o.navButtons&&"always"!=r.o.thumbnailNavigation&&this.bullets.init(),r.o.navStartStop?this.createStartStop():"always"!=r.o.thumbnailNavigation&&this.createSides(),r.o.hoverBottomNav&&"always"!=r.o.thumbnailNavigation&&this.setHover(),"always"==r.o.thumbnailNavigation&&(this.wrapper.addClass("ls-above-thumbnails"),this.thumbnails.init())},bullets:{init:function(){var t=this;e('<span class="ls-bottom-slidebuttons" />').appendTo(i.find(".ls-bottom-nav-wrapper"));for(var a=0;a<r.slides.count;a++){var o=e('<a href="#" aria-label="jump to slide '+(a+1)+'" />').appendTo(i.find(".ls-bottom-slidebuttons")).data("index",a+1).on("click."+s,function(t){t.preventDefault(),i.layerSlider(e(this).data("index"))});"hover"==r.o.thumbnailNavigation&&o.on("mouseenter."+s,function(){var a=e(this);i.find(".ls-thumbnail-hover-img").css({left:parseInt(t.hoverWrapper.css("padding-left")),top:parseInt(t.hoverWrapper.css("padding-top"))}),t.hoverImage.on("load."+s,function(){0===e(this).width()?t.hoverImage.css({position:"relative",margin:"0 auto",left:"auto"}):t.hoverImage.css({position:"absolute",marginLeft:-e(this).width()/2,left:"50%"}),t.hoverImage.css("display","none").stop(!0,!0).fadeIn(250)}).attr("src",r.slides[a.data("index")].data.thumbnail),t.hoverWrapper.css({display:"block"}).stop().animate({left:e(this).position().left+(e(this).width()-t.hoverWrapper.outerWidth())/2},250),t.hoverWrapperInner.css({display:"none",visibility:"visible"}).stop().fadeIn(250)}).on("mouseleave."+s,function(){t.hoverWrapperInner.stop().fadeOut(250,function(){t.hoverWrapper.css({visibility:"hidden",display:"block"})})})}t.set.active(r.slides.first.index),"hover"==r.o.thumbnailNavigation&&t.set.hover()},set:{active:function(e){void 0===e&&(e=r.slides.current.index),e--,i.find(".ls-bottom-slidebuttons a").removeClass("ls-nav-active"),i.find(".ls-bottom-slidebuttons a:eq( "+e+" )").addClass("ls-nav-active")},hover:function(){var t=r.gui.navigation.bottom.bullets,a=e('<div class="ls-thumbnail-hover"><div class="ls-thumbnail-hover-inner"><div class="ls-thumbnail-hover-bg"></div><div class="ls-thumbnail-hover-img"><img></div><span></span></div></div>').appendTo(i.find(".ls-bottom-slidebuttons"));i.find(".ls-thumbnail-hover, .ls-thumbnail-hover-img").css({width:r.o.tnWidth,height:r.o.tnHeight}),t.hoverWrapper=i.find(".ls-thumbnail-hover"),t.hoverImage=t.hoverWrapper.find("img").css({height:r.o.tnHeight}),t.hoverWrapperInner=i.find(".ls-thumbnail-hover-inner").css({visibility:"hidden",display:"block"}),a.appendTo(i.find(".ls-bottom-slidebuttons"))}}},createStartStop:function(){this.buttonStart=e('<a class="ls-nav-start" aria-label="start slideshow" href="#" />').on("click."+s,function(e){e.preventDefault(),i.layerSlider("start")}).prependTo(i.find(".ls-bottom-nav-wrapper")),this.buttonStop=e('<a class="ls-nav-stop" aria-label="stop slideshow" href="#" />').on("click."+s,function(e){e.preventDefault(),i.layerSlider("stop")}).appendTo(i.find(".ls-bottom-nav-wrapper")),r.o.autoStart?this.setStartStop("start"):this.setStartStop("stop")},setStartStop:function(e){if(r.o.navStartStop)switch(e){case"start":this.buttonStart.addClass("ls-nav-start-active"),this.buttonStop.removeClass("ls-nav-stop-active");break;case"stop":this.buttonStart.removeClass("ls-nav-start-active"),this.buttonStop.addClass("ls-nav-stop-active")}},createSides:function(){e('<span class="ls-nav-sides ls-nav-sideleft" />').prependTo(i.find(".ls-bottom-nav-wrapper")),e('<span class="ls-nav-sides ls-nav-sideright" />').appendTo(i.find(".ls-bottom-nav-wrapper"))},setHover:function(){var e=this;e.wrapper.css({display:"none"}),i.on("mouseenter."+s,function(){r.gui.navigation.forceHide||e.wrapper.stop(!0,!0).fadeIn(300)}).on("mouseleave."+s,function(){e.wrapper.stop(!0,!0).fadeOut(300)})},switchHelper:function(e){if(r.o.hoverBottomNav&&!i.hasClass("ls-hover"))switch(e){case"on":r.gui.navigation.bottom.thumbnails.wrapper.css({visibility:"hidden",display:"block"});break;case"off":r.gui.navigation.bottom.thumbnails.wrapper.css({visibility:"visible",display:"none"})}},thumbnails:{init:function(){this.wrapper=e('<div class="ls-gui-element ls-thumbnail-wrapper '+("contain"!==r.o.tnFillMode?"ls-thumbnail-fill":"")+'"></div>').appendTo(i),e('<div class="ls-thumbnail"><div class="ls-thumbnail-inner"><div class="ls-thumbnail-slide-container"><div class="ls-thumbnail-slide"></div></div></div></div>').appendTo(this.wrapper),this.$element=i.find(".ls-thumbnail-slide-container"),"ontouchstart"in window?this.$element.addClass("ls-touchscroll"):this.$element.on("mouseenter."+s,function(){e(this).addClass("ls-thumbnail-slide-hover")}).on("mouseleave."+s,function(){e(this).removeClass("ls-thumbnail-slide-hover"),r.gui.navigation.bottom.thumbnails.scroll()}).on("mousemove."+s,function(t){var i=parseInt(t.pageX-e(this).offset().left)/e(this).width()*(e(this).width()-e(this).find(".ls-thumbnail-slide").width());e(this).find(".ls-thumbnail-slide").stop().css({marginLeft:i})});for(var t=0;t<r.slides.count;t++){var a=t+1,o=r.slides[a].data.thumbnail,n="";"contain"!==r.o.tnFillMode&&(o=r.defaults.init.emptyIMG,n='style="background-image: url('+r.slides[a].data.thumbnail+"); background-size: "+r.o.tnFillMode+';"');var l=e('<a href="#" class="ls-thumb-'+(t+1)+'"  aria-label="jump to slide '+(t+1)+'"><img '+n+' src="'+o+'"></a>');r.slides[a].data.tnAlt&&l.find("img").attr("alt",r.slides[a].data.tnAlt),l.data("index",a).on("click."+s,function(t){t.preventDefault(),i.layerSlider(e(this).data("index"))}).appendTo(i.find(".ls-thumbnail-slide")),"ontouchstart"in window||l.on("mouseenter."+s,function(){e(this).children().stop().fadeTo(300,r.o.tnActiveOpacity/100)}).on("mouseleave."+s,function(){e(this).children().hasClass("ls-thumb-active")||e(this).children().stop().fadeTo(300,r.o.tnInactiveOpacity/100)})}r.gui.navigation.bottom.buttonStart&&r.gui.navigation.bottom.buttonStop&&(r.gui.navigation.bottom.wrapper=e('<div class="ls-bottom-nav-wrapper ls-below-thumbnails"></div>').appendTo(i),r.gui.navigation.bottom.buttonStart.clone().on("click."+s,function(e){e.preventDefault(),i.layerSlider("start")}).appendTo(r.gui.navigation.bottom.wrapper),r.gui.navigation.bottom.buttonStop.clone().on("click."+s,function(e){e.preventDefault(),i.layerSlider("stop")}).appendTo(r.gui.navigation.bottom.wrapper)),r.o.hoverBottomNav&&this.setHover()},setHover:function(){var e=this;e.wrapper.css("display","none"),r.gui.navigation.bottom.wrapper&&(r.gui.navigation.bottom.wrapper="block"==r.gui.navigation.bottom.wrapper.css("display")?r.gui.navigation.bottom.wrapper:i.find(".ls-above-thumbnails"),r.gui.navigation.bottom.wrapper.css("display","none")),i.on("mouseenter."+s,function(){i.addClass("ls-hover"),r.gui.navigation.forceHide||(e.wrapper.stop(!0,!0).fadeIn(300),r.gui.navigation.bottom.wrapper&&r.gui.navigation.bottom.wrapper.stop(!0,!0).fadeIn(300))}).on("mouseleave."+s,function(){i.removeClass("ls-hover"),e.wrapper.stop(!0,!0).fadeOut(300),r.gui.navigation.bottom.wrapper&&r.gui.navigation.bottom.wrapper.stop(!0,!0).fadeOut(300)})},change:function(t){var a=t||r.slides.next.index;i.find(".ls-thumbnail-slide a:not(.ls-thumb-"+a+" )").children().each(function(){e(this).removeClass("ls-thumb-active").stop().fadeTo(750,r.o.tnInactiveOpacity/100)}),i.find(".ls-thumbnail-slide a.ls-thumb-"+a).children().addClass("ls-thumb-active").stop().fadeTo(750,r.o.tnActiveOpacity/100)},scroll:function(){if(!i.find(".ls-thumbnail-slide-container").hasClass("ls-thumbnail-slide-hover")){var e=!!i.find(".ls-thumb-active").length&&i.find(".ls-thumb-active").parent();if(e){var t=e.position().left+e.width()/2,a=i.find(".ls-thumbnail-slide-container").width()/2-t;a=(a=a<i.find(".ls-thumbnail-slide-container").width()-i.find(".ls-thumbnail-slide").width()?i.find(".ls-thumbnail-slide-container").width()-i.find(".ls-thumbnail-slide").width():a)>0?0:a,i.find(".ls-thumbnail-slide").animate({marginLeft:a},600)}}},resize:function(){r.gui.navigation.bottom.switchHelper("on");var e=-1==r.slider.initial.width.indexOf("%")?parseInt(r.slider.initial.originalWidth):i.width(),t=i.find(".ls-thumbnail"),a=-1==r.o.tnContainerWidth.indexOf("%")?parseInt(r.o.tnContainerWidth):parseInt(e/100*parseInt(r.o.tnContainerWidth));i.find(".ls-thumbnail-slide a").css({width:parseInt(r.o.tnWidth*r.resize.ratio),height:parseInt(r.o.tnHeight*r.resize.ratio)}),i.find(".ls-thumbnail-slide a:last").css({margin:0}),i.find(".ls-thumbnail-slide").css({height:parseInt(r.o.tnHeight*r.resize.ratio)}),t.css({width:a*Math.floor(100*r.resize.ratio)/100}),t.width()>i.find(".ls-thumbnail-slide").width()&&t.css({width:i.find(".ls-thumbnail-slide").width()}),r.gui.navigation.bottom.switchHelper("off")}}}},media:{init:function(){r.media.properties.$allMediaLayers.length>0&&e('<div class="ls-gui-element ls-media-unmute" aria-label="Unmute"><div class="ls-media-unmute-bg"></div><div class="ls-icon-muted"></div><div class="ls-icon-unmuted"></div></div>').on("click."+s,function(e){e.preventDefault(),i.layerSlider("unmute")}).appendTo(i)},showUnmute:function(){i.find(".ls-media-unmute").addClass("ls-media-unmute-active")},hideUnmute:function(){i.find(".ls-media-unmute").removeClass("ls-media-unmute-active")}},skin:{load:function(){i.addClass("ls-"+r.o.skin);var t,a=r.o.skinsPath+r.o.skin+"/skin.css",o=e("head").length?e("head"):e("body");e('link[href="'+a+'"]').length?(t=e('link[href="'+a+'"]'),r.gui.skin.isLoaded||(r.gui.skin.isLoaded=!0,r.timeouts.skinLoad1=setTimeout(function(){delete r.timeouts.skinLoad1,r.slider.init()},150))):document.createStyleSheet?(document.createStyleSheet(a),t=e('link[href="'+a+'"]')):t=e('<link rel="stylesheet" href="'+a+'" type="text/css" />').appendTo(o),t.on("load."+s,function(){r.gui.skin.isLoaded||(r.gui.skin.isLoaded=!0,r.timeouts.skinLoad2=setTimeout(function(){delete r.timeouts.skinLoad2,r.slider.init()},150))}),n.on("load."+s,function(){r.gui.skin.isLoaded||(r.gui.skin.isLoaded=!0,r.timeouts.skinLoad3=setTimeout(function(){delete r.timeouts.skinLoad3,r.slider.init()},150))}),r.timeouts.skinLoad4=setTimeout(function(){r.gui.skin.isLoaded||(r.gui.skin.isLoaded=!0,delete r.timeouts.skinLoad4,r.slider.init())},1e3)}},shadow:{init:function(){this.set(),this.resize()},set:function(){this.$element=e('<div class="ls-gui-element ls-shadow"></div>').appendTo(i),"block"!=this.$element.css("display")||this.$element.find("img").length||(this.show=function(){r.gui.shadow.$element.css({display:"none",visibility:"visible"}).fadeIn(500,function(){r.gui.shadow.show=!1})},this.image=e("<img>").attr("src",r.o.skinsPath+r.o.skin+"/shadow.png").appendTo(this.$element),this.btmMod="number"==typeof parseInt(i.css("padding-bottom"))?parseInt(i.css("padding-bottom")):0)},resize:function(){this.image&&(this.image.height()>0?this.btmMod>0?this.$element.css({height:this.image.height()/2}):this.$element.css({height:this.image.height(),marginTop:-this.image.height()/2}):r.timeouts.resizeShadow=setTimeout(function(){delete r.timeouts.resizeShadow,r.gui.shadow.resize()},50))}},timers:{init:function(){r.o.showBarTimer&&this.bar.create(),r.o.showCircleTimer&&this.circle.create();var t=!1;(t=r.o.showSlideBarTimer?e("<div>").insertAfter(i):e('[data-slidebar-for="'+i.attr("id")+'"], [data-slidebar-for="'+s+'"]')).length&&(t.addClass("ls-gui-element"),this.slidebar.create(t))},bar:{create:function(){this.$element=e("<div>").addClass("ls-gui-element ls-bar-timer").appendTo(i)}},circle:{create:function(){this.$element=e("<div>").addClass("ls-gui-element ls-circle-timer").appendTo(i),this.$element.append(e('<div class="ls-ct-center"></div><div class="ls-ct-left"><div class="ls-ct-rotate"><div class="ls-ct-hider"><div class="ls-ct-half"></div></div></div></div><div class="ls-ct-right"><div class="ls-ct-rotate"><div class="ls-ct-hider"><div class="ls-ct-half"></div></div></div></div>')),this.$element.data("original",{opacity:this.$element.css("opacity")})}},slidebar:{$containerElement:[],$element:[],$progressBarElement:[],$sliderContainerElement:[],$sliderElement:[],elementWidth:[],containerElementWidth:[],sliderContainerElementWidth:[],state:{},create:function(t){var i,a=e(document),o=this,n=function(e,t){(i=(e.pageX?e.pageX:r.device.touchX||0)-o.$element[t].offset().left-o.sliderContainerElementWidth[t]/2)<0&&(i=0),i>o.containerElementWidth[t]-o.sliderContainerElementWidth[t]&&(i="calc( 100% - "+r.gui.timers.slidebar.sliderContainerElementWidth[t]+"px )"),o.$sliderContainerElement[t].css({left:i}),r.timelines._layers&&r.timelines._layers.progress("string"==typeof i?r.transitions.layers.timeline.progress:i/(o.containerElementWidth[t]-o.sliderContainerElementWidth[t])*r.transitions.layers.timeline.progress)},l=function(t){"dragging"==r.gui.timers.slidebar.state&&(r.timelines._layers&&r.transitions.layers.timeline.state.finished&&r.timelines._layers.progress()!==r.transitions.layers.timeline.progress&&r.functions.setStates(r.transitions.layers.timeline,{finished:!1}),e(document).off("mousemove."+s),e("body").prop("unselectable",!1).removeClass("ls-unselectable"),r.o.pauseLayers&&!r.slideshow.state.running||r.slider.state.isPaused||!r.timelines._layers||r.o.playByScroll||(!0===r.transitions.layers.timeline.state.started?r.transitions.layers.timeline.resume():r.transitions.layers.timeline.play()),r.gui.timers.slidebar.state=!1)};e.each(t,function(t,i){o.$containerElement[t]=e(i).addClass("ls-slidebar-container "+s),o.$element[t]=e("<div>").addClass("ls-slidebar").appendTo(o.$containerElement[t]),o.$progressBarElement[t]=e("<div>").addClass("ls-progressbar").appendTo(o.$element[t]),o.$sliderContainerElement[t]=e("<div>").addClass("ls-slidebar-slider-container").appendTo(o.$containerElement[t]),o.$sliderElement[t]=e("<div>").addClass("ls-slidebar-slider").appendTo(o.$sliderContainerElement[t]),o.sliderContainerElementWidth[t]=o.$sliderContainerElement[t].width(),o.$sliderContainerElement[t].css({marginTop:-o.$sliderElement[t].outerHeight()/2}),o.$containerElement[t].on("touchmove."+s,function(e){n(e,t)}),o.$containerElement[t].on("touchend."+s,function(e){l()}),o.$containerElement[t].on("mousedown."+s+" touchstart."+s,function(i){r.transitions.layers.timeline.pause(0),e("body").prop("unselectable",!0).addClass("ls-unselectable"),e(document).on("mousemove."+s,function(e){n(e,t)}),n(i,t),r.gui.timers.slidebar.state="dragging"}),a=a.add(o.$sliderElement[t])}),e("body").on("mouseup."+s,function(e){l()})}}},loadingIndicator:{init:function(){this.$element=e("<div>").css({display:"none"}).addClass("ls-gui-element ls-loading-container").appendTo(i),e("<div>").addClass("ls-loading-indicator").appendTo(this.$element)},show:function(){this.$element.delay(400).fadeIn(300)},hide:function(){this.$element.stop(!0,!0).fadeOut(300)}}},r.navigation={direction:"next",init:function(){r.slides.count>1&&(this.set.keyboard(),this.set.touch())},set:{keyboard:function(){r.o.keybNav&&e("body").on("keydown."+s,function(t){if(!(e(t.target).is(":input")||r.slider.isAnimating||r.slider.isPreloading)){var i=!1;37===t.which?(r.navigation.prev(),i=!0):39===t.which&&(r.navigation.next(),i=!0),i&&"undefined"!=typeof LS_editorMeta&&t.preventDefault()}})},touch:function(){"ontouchstart"in window&&r.o.touchNav&&(r.slider.$innerWrapper.on("touchstart."+s,function(e){var t=e.touches?e.touches:e.originalEvent.touches;1==t.length&&(r.device.touchStartX=r.device.touchEndX=t[0].clientX)}),r.slider.$innerWrapper.on("touchmove."+s,function(e){var t=e.touches?e.touches:e.originalEvent.touches;1==t.length&&(r.device.touchEndX=t[0].clientX),Math.abs(r.device.touchStartX-r.device.touchEndX)>45&&e.preventDefault()}),r.slider.$innerWrapper.on("touchend."+s,function(e){Math.abs(r.device.touchStartX-r.device.touchEndX)>45&&(r.device.touchStartX-r.device.touchEndX>0?i.layerSlider("touchNext"):i.layerSlider("touchPrev"))}))}},prev:function(){(!r.slider.isPopup||r.slider.isPopup&&r.slider.state.popupIsVisible)&&(this.direction="prev",this.forceDirection="prev",r.slideshow.set.prevNext("prev"))},next:function(){(!r.slider.isPopup||r.slider.isPopup&&r.slider.state.popupIsVisible)&&(this.direction="next",this.forceDirection="next",r.slideshow.set.prevNext("next"))},start:function(){r.functions.setStates(r.slideshow,{running:!0,paused:!1}),!0===r.slideshow.state.pausedByLastCycle&&r.functions.setStates(r.slideshow,{pausedByLastCycle:!1}),r.gui.navigation.bottom.setStartStop("start"),r.slideshow.state.pausedByHover||1!==r.timelines._layers.timeScale()&&r.transitions.layers.timeline.resume(),r.slideshow.start()},stop:function(){r.gui.navigation.bottom.setStartStop("stop"),r.o.pauseLayers&&r.transitions.layers.timeline.pause(),r.slideshow.stop()}},r.preload={init:function(){r.slider.$hiddenWrapper.find(".ls-slide img").each(function(){var t=e(this),i=t[0],a={};if(t.is(".ls-layer, .ls-bg")){if(i.getAttribute("width")&&(a.width=i.getAttribute("width")),i.getAttribute("height")&&(a.height=i.getAttribute("height")),i.sizes&&(a.sizes=i.sizes),r.o.useSrcset&&(t.data("srcset")||i.srcset)){a.srcSet=t.data("srcset")||i.srcset,a.curSrc=i.currentSrc;var s=a.srcSet.split(",").map(function(t){return parseInt(e.trim(t).split(" ")[1])});a.maxWidth=Math.max.apply(null,s)}t.removeAttr("width height sizes srcset loading"),e.isEmptyObject(a)||(t.data(r.defaults.init.dataKey).attributes=a)}t.data("lazy-src")?t.data("src",t.data("lazy-src")):t.attr("data-tgpli-src")?t.data("src",t.attr("data-tgpli-src")):t.attr("data-lazy-src")?t.data("src",t.attr("data-lazy-src")):t.attr("data-lazy")?t.data("src",t.attr("data-lazy")):t.data("src")?a.curSrc&&t.data("src",a.curSrc):t.data("src",a.curSrc?a.curSrc:i.src),t.attr("data-lazyset")?t.attr("srcset",t.attr("data-lazyset")):t.attr("data-lazy-srcset")?t.attr("srcset",t.attr("data-lazy-srcset")):t.attr("data-tgpli-srcset")&&t.attr("srcset",t.attr("data-tgpli-srcset")),t.removeAttr("lazy lazyload data-lazy-src data-tgpli-src data-lazy data-lazyset data-lazy-srcset data-tgpli-srcset"),t.attr("src",r.defaults.init.emptyIMG)})},imagesOfSlide:function(t,a){if(!0!==r.slides[t].wrapped){this.slideIndex=t,a?(this.onCompleteCallback=a,r.functions.setStates(r.slider,{preloadingImages:!0}),r.gui.loadingIndicator.show()):this.onCompleteCallback=!1,r.slider.canShow&&i.css({visibility:"visible"}),this.preImages=[];var s,o,n=this;r.slider.$hiddenWrapper.find(".ls-slide:eq("+(n.slideIndex-1)+") *").each(function(){s=e(this),o=this;var t=s.data(r.defaults.init.dataKey);if(s.is("img")){s.data("src")&&s.attr("src",s.data("src")),t&&t.attributes&&t.attributes.srcSet&&r.o.useSrcset&&(o.srcset=t.attributes.srcSet);var i=o.src,a=!!(t&&t.attributes&&t.attributes.curSrc)&&t.attributes.curSrc;a&&i!==a&&s.is(".ls-bg")&&(i=a,r.slides[n.slideIndex].data.$background.attr("src",i)),r.preload.preImages.push([i,s])}else"none"!==s.css("background-image")&&-1!==s.css("background-image").indexOf("url")&&r.preload.preImages.push([s.css("background-image").match(/url\(['"]?(.+?)['"]?\)/)[1],s]);s.attr("data-ls-preload")&&r.preload.preImages.push([s.attr("data-ls-preload"),e(o),!0])}),r.transitions.firstSlide&&r.o.globalBGImage&&r.preload.preImages.push([r.o.globalBGImage,e()]),this.thumbnailsAreLoaded||this.thumbnails(),0===this.preImages.length?this.onComplete():this.start()}else r.slider.shouldResize&&a?(r.resize.setLayers(r.layers.get("next, bg")),r.resize.layers({callback:a})):a&&a()},thumbnails:function(){for(var e=r.slider.thumbnails.filter(function(e,t,i){return i.indexOf(e)==t}),t=e.length,i=0;i<t;i++){(new Image).src=e[i]}this.thumbnailsAreLoaded=!0},start:function(){r.debugMode&&(r.debug.add("group","preload"),r.debug.add("log","preload.info",this.slideIndex)),this.preloadedImagesCount=0;for(var e,t=this,i=function(){++t.preloadedImagesCount==t.preImages.length&&(r.debugMode&&r.debug.groupEnd(),t.onComplete())},a=function(){r.debugMode&&(e=this.src.substring(this.src.lastIndexOf("/")+1,this.src.length),r.debug.add("log","preload.success",e)),this.originalLayer[this.useAttr?"attr":"data"]("preloadedWidth",this.width),this.originalLayer[this.useAttr?"attr":"data"]("preloadedHeight",this.height),i()},s=function(){r.debugMode&&(e=this.src.substring(this.src.lastIndexOf("/")+1,this.src.length),r.debug.add("warn","preload.fail",e)),i()},o=0;o<this.preImages.length;o++){var n=new Image;n.addEventListener("error",s,!1),n.addEventListener("load",a,!1),n.src=this.preImages[o][0],n.originalLayer=this.preImages[o][1],n.useAttr=!!this.preImages[o][2]}},onComplete:function(){var t=this;this.onCompleteCallback?(r.layers.wrap(this.slideIndex),function i(){if(0!==r.slides[t.slideIndex].$layers.length)r.timeouts.waitForWrap=setTimeout(i,100);else{delete r.timeouts.waitForWrap,r.functions.setStates(r.transitions.layers.parallax,{ready:!0}),e(".ls-thumbnail-wrapper, .ls-nav-next, .ls-nav-prev, .ls-bottom-nav-wrapper").css({visibility:"visible"}),r.slides[t.slideIndex].wrapped=!0;var a=!(!window._layerSlider.globals.youTubeIsReady&&r.layers.get("next,in,youtube,bgvideo").length),s=!(!window._layerSlider.globals.vimeoIsReady&&r.layers.get("next,in,vimeo,bgvideo").length),o=function(){r.gui.loadingIndicator.hide(),r.slider.shouldResize?(r.resize.setLayers(r.layers.get("next, bg")),r.resize.layers({callback:t.onCompleteCallback})):t.onCompleteCallback()};!a||!s||r.slides[t.slideIndex].lottie.count>r.slides[t.slideIndex].lottie.loaded?r.intervals.waitForMediaLoad=setInterval(function(){(a||window._layerSlider.globals.youTubeIsReady)&&(s||window._layerSlider.globals.vimeoIsReady)&&r.slides[t.slideIndex].lottie.count===r.slides[t.slideIndex].lottie.loaded&&(clearInterval(r.intervals.waitForMediaLoad),delete r.intervals.waitForMediaLoad,o())},50):o()}}()):r.layers.wrap(this.slideIndex,!0),r.functions.setStates(r.slider,{preloadingImages:!1})}},r.resize={setLayers:function(e){this.$responsiveLayers=e.add(r.layers.get("active")),r.slides.next.data.$backgroundVideo.length&&(this.$responsiveLayers=this.$responsiveLayers.add(r.slides.next.data.$backgroundVideo))},all:function(e={}){return r.plugins.callFunctions("beforeResize"),!(r.slider.state.isHidden&&!r.slider.isPopup)&&(!!document.body.contains(t)&&(r.api.hasEvent("sliderWillResize")&&r.api.triggerEvent("sliderWillResize",r.api.eventData()),this.slider(!!e.forceToGetParentWidth),r.o.performanceMode&&this.performance(),r.slider.isScene&&!r.slider.$spacingWrapper.is("[data-disabled-scene]")&&this.scene(),this.navigation(),this.layers(),this.yourLogo(),this.shadow(),this.timers(),r.slides.indexesCreated&&(r.o.allowRestartOnResize&&r.transitions.layers.timeline.shouldRestart||r.transitions.layers.timeline.forceRestart)&&(r.transitions.layers.timeline.forceRestart=!1,r.transitions.layers.timeline.create(!0),r.slider.isScrollScene&&r.timelines._layers&&r.transitions.scrollscene.animate()),r.api.hasEvent("sliderDidResize")&&r.api.triggerEvent("sliderDidResize",r.api.eventData()),void r.plugins.callFunctions("afterResize")))},viewport:function(){n.scrollTop(Math.round(r.slider.offset.top)-(l.viewport.height-r.slider.height)/2)},slider:function(a){if(!document.body.contains(t))return!1;l.viewport.width||n.trigger("resize.lsGlobal"),r.o.fixFloatedContainers&&i.css("display","none");var s,o,d,c=r.slider.$parentWithNumericWidthValue&&r.slider.$parentWithNumericWidthValue.width()>0&&!a?r.slider.$parentWithNumericWidthValue:r.functions.getSliderClosestParentElementWithNumericValueOfProperty("width"),p=r.slider.initial,u=r.slider.parentWithNumericWidthValuePercent?c.width()/100*r.slider.parentWithNumericWidthValuePercent:c.width(),m=p.type,h=0!==p.maxWidth?p.maxWidth:u,f="auto"===p.marginLeft?0:p.marginLeft,g="auto"===p.marginRight?0:p.marginRight;if(r.o.fixFloatedContainers&&i.css("display","block"),-1!==h.indexOf("%")?h=u/100*parseInt(h):-1!==h.indexOf("vw")&&(h=l.viewport.width/100*parseInt(h)),r.slider.state.inFullscreen?i[0].style.maxWidth="":0!==p.maxWidth&&(i[0].style.maxWidth=h),(u-=f+g)>h&&h>=0&&(u=h),r.o.fitScreenWidth&&("fullwidth"===m||"fullsize"===m&&"fitheight"!==r.o.fullSizeMode&&"fitwidth"!==r.o.fullSizeMode)){var y=c.offset().left,v=parseInt(c.css("padding-left"))||0,x=parseInt(c.css("border-left-width"))||0;i[0].style.maxWidth="100vw",i[0].style.marginLeft=-(y+v+x)+"px",u=l.viewport.width}switch(u-=p.skinWidth,l.getScreenSize(),r.slider.state.inFullscreen&&(u=l.screen.width),m){case"responsive":r.o.maxRatio>0&&(u=Math.min(p.width*r.o.maxRatio,u)),r.slider.state.inFullscreen?(l.screen.ratio>p.ratio?this.ratio=l.screen.height/p.height:this.ratio=l.screen.width/p.width,u=Math.round(p.width*this.ratio),s=Math.round(p.height*this.ratio)):(this.ratio=u/p.width,s=Math.round(p.height*this.ratio));break;case"fullwidth":u<r.o.responsiveUnder?(this.ratio=u/r.o.responsiveUnder,s=Math.round(p.height*this.ratio)):r.slider.state.inFullscreen?l.screen.ratio>p.layersWidth/p.height?(this.ratio=l.screen.height/p.height,s=l.screen.height):(this.ratio=l.screen.width/p.layersWidth,s=p.height*this.ratio):(this.ratio=1,s=p.height);break;case"fullsize":switch(r.o.fullSizeMode.toLowerCase()){case"normal":s=l.viewport.height-p.skinHeight;break;case"hero":var S=r.slider.isScene?r.slider.$spacingWrapper:i,w=Math.max(S.offset().top,0),b=e(r.o.calculateOffsetFrom).length?e(r.o.calculateOffsetFrom).height()+e(r.o.calculateOffsetFrom)[0].getBoundingClientRect().top:0;b&&i.css("top",b),r.slider.heroOffset=p.skinHeight+(b||w),(s=l.viewport.height-r.slider.heroOffset)<=0&&(s=l.viewport.height-p.skinHeight);break;case"fitheight":u=c.width()-p.skinWidth,s=c.height()-p.skinHeight;break;case"fitwidth":u=c.width()-p.skinWidth,s=l.viewport.height-p.skinHeight}u/s<p.ratio?this.ratio=u/p.layersWidth:this.ratio=s/p.layersHeight;break;case"fixed":case"fixedsize":this.ratio=1,u=p.width,s=p.height,r.o.maxRatio=1,t.style.maxWidth="none"}this.ratio=r.o.maxRatio&&r.o.maxRatio>0&&this.ratio>r.o.maxRatio?r.o.maxRatio:this.ratio,t.style.width=u+"px",t.style.height=s+"px",r.slider.width=u,r.slider.height=s,r.slider.$layersWrapper.css({"--sw":r.slider.width+"px","--sh":r.slider.height+"px"}),l.isMobile?l.viewport.width>=768||l.viewport.width>l.viewport.height?i.removeClass("ls-device-is-phone").addClass("ls-device-is-tablet"):i.removeClass("ls-device-is-tablet").addClass("ls-device-is-phone"):i.removeClass("ls-device-is-phone ls-device-is-tablet").addClass("ls-device-is-desktop"),r.o.marginTop&&(o=-1!=r.o.marginTop.indexOf("sh")||-1!=r.o.marginTop.indexOf("%")?r.slider.height/100*parseInt(r.o.marginTop):r.o.marginTop),r.o.marginBottom&&(d=-1!=r.o.marginBottom.indexOf("sh")||-1!=r.o.marginBottom.indexOf("%")?r.slider.height/100*parseInt(r.o.marginBottom):r.o.marginBottom),r.slider.$spacingWrapper.css({marginTop:o,marginBottom:d})},performance:function(){var e=parseInt(r.o.performanceModeThreshold);-1!==r.o.performanceModeThreshold.indexOf("sh")||-1!==r.o.performanceModeThreshold.indexOf("%")?r.performance.threshold=r.slider.height*(e/100):-1!==r.o.performanceModeThreshold.indexOf("vh")?r.performance.threshold=l.viewport.height*(e/100):-1!==r.o.performanceModeThreshold.indexOf("px")?r.performance.threshold=e:r.performance.threshold=r.slider.height*e,r.performance.threshold=Math.max(parseInt(r.performance.threshold),0)},scene:function(e){if(r.slider.isScrollScene){var t=r.slider.$spacingWrapper[0].style.getPropertyValue("--ls-duration"),a=r.slider.$spacingWrapper.attr("data-scene-pre-duration"),s=r.slider.$spacingWrapper.attr("data-scene-duration");e&&a&&s&&a!==s&&(t=null),!1==!!t&&r.timelines._layers&&(t=100*r.transitions.layers.timeline.totalDuration/(r.o.sceneSpeed/100),r.slider.$spacingWrapper.css({"--ls-duration":t+"vh"}),void 0===r.o.stickDuration||isNaN(r.o.stickDuration)||r.slider.$spacingWrapper.css({"--ls-stickduration":100*parseInt(r.o.stickDuration)+"vh"}),"responsive"!==r.o.type&&"fullwidth"!==r.o.type||r.slider.$spacingWrapper.css({"--ls-ratio":r.slider.initial.width/r.slider.initial.height}),"fixedsize"===r.o.type&&r.slider.$spacingWrapper.css({"--ls-height":r.slider.initial.height}),r.slider.$spacingWrapper.addClass("ls-playfrom-"+r.o.playFrom+" ls-stickto-"+r.o.stickTo+" ls-layout-"+r.o.type)),r.transitions.scrollscene.maxProgressInPixels=parseFloat(parseInt(t)*(l.viewport.height/100)),(r.slider.$spacingWrapper.is(".ls-layout-fullwidth")||r.slider.$spacingWrapper.is(".ls-layout-responsive")&&r.o.maxRatio)&&r.slider.$spacingWrapper.css("--ls-ratio",l.viewport.width/r.slider.height)}else r.slider.isSticky&&(-1!==r.o.sceneHeight.indexOf("sh")||-1!==r.o.sceneHeight.indexOf("%")?(t=r.slider.height*(parseInt(r.o.sceneHeight)/100),t=Math.round(Math.max(r.slider.height,t)),t+="px"):-1===r.o.sceneHeight.indexOf("px")&&-1===r.o.sceneHeight.indexOf("vh")?(t=r.slider.height*(r.o.sceneHeight||2),t=Math.round(Math.max(r.slider.height,t)),t+="px"):t=r.o.sceneHeight,r.slider.$spacingWrapper.css({height:t}));i.css({top:r.slider.stickLimit})},borderRadius:function(t,i){e.isNumeric(t)&&(t=t.toString());var a="";return e.each(t.split(" "),function(e,t){-1==t.indexOf("%")&&-1==t.indexOf("em")?a+=Math.round(parseInt(t)*i)+"px ":a+=t+" "}),e.trim(a)},shadows:function(e,t){for(var i=e.split(" "),a=0;a<i.length;a++)-1!==i[a].indexOf("px")&&(i[a]=Math.ceil(parseInt(i[a])*t)+"px");return e=i.join(" ").trim()},convertSingleValue:function(e,t){return-1==e.indexOf("em")?Math.round(parseInt(e)*t)+"px ":e},calculateRatio:function(e,t){return t=Math.max(t,e.settings.minresponsiveratio||0),t=Math.min(t,e.settings.maxresponsiveratio||1/0),e.settings.calculatedratio=t,t},layers:function(t={}){if(r.slider.hasPinnedLayers&&(r.slider.$layersWrapper.css({clip:"rect(0px "+r.slider.width+"px "+r.slider.height+"px 0px)"}),r.slider.$layersWrapper&&r.slider.$layersWrapper.is(".ls-layers-clip")&&r.slider.$layersWrapper.removeClass("ls-layers-clip")),r.o.animateFirstSlide&&r.slideshow.firstStart&&"inside"!==r.slider.position.toViewport)return r.functions.setStates(r.slider,{readyForStart:!0}),void(t.callback&&(r.api.resumeCallback=t.callback));if(t.singleLayer||this.$responsiveLayers){r.debugMode&&r.debug.add("group","resize");for(var i,a,s,o,n,d=this,c=t.singleLayer||this.$responsiveLayers,p=r.slider.initial,u=r.slider.width,m=r.slider.height,h=u/m,f=[],g=[],y=[],v=[],x=0,S=0,w=window.LS_previewZoom||1,b=0,T=c.length;b<T;b++){var k=c[b],C=e(k),O=C.data(r.defaults.init.dataKey),P=!!O.is.insideLayerGroup&&C.data("$layerGroup"),I=!!O.is.insideLayerGroup&&P.data(r.defaults.init.dataKey),L=t.original?e.extend(!0,{},O.original,t.original):O.original,_=d.calculateRatio(O,d.ratio),$=O.elements.$_innerWrappers;if(r.plugins.callFunctions("beforeResizeSingleLayer",{$layer:C,layerData:O}),L.width||(L.percentWidth=0),L.height||(L.percentHeight=0),C.is("img, picture")&&("auto"===L.width||"auto"===L.height))($=O.elements.$_innerWrappers).addClass("ls-force-display-block ls-force-visibility-hidden"),"auto"===L.width&&(L.width=C.width()),"auto"===L.height&&(L.height=C.height()),$.removeClass("ls-force-display-block ls-force-visibility-hidden");s=i="responsive"===p.type&&-1!==r.o.maxRatio?p.width:p.layersWidth,o=a="responsive"===p.type&&-1!==r.o.maxRatio?p.height:p.layersHeight,n=O.settings.usesliderratio?d.ratio:_,"fullsize"===p.type||"fullwidth"===p.type||"responsive"===p.type?(x=i>0?(u-i*n)/2:0,S=a>0?(m-a*n)/2:0):(x=x<0?0:x,S=S<0?0:S),"0%"!==L.left&&"100%"!==L.left||(x=x<0?0:x),"0%"!==L.top&&"100%"!==L.top||(S=S<0?0:S);var M,F,B="fixed"==O.settings.position||"fixedx"==O.settings.position,W="fixed"==O.settings.position||"fixedy"==O.settings.position,D=u,z=m;O.is.insideLayerGroup?(B=!1,W=!1,A=0,V=0,i=D=I.responsive.width,a=z=I.responsive.height):(i=s,a=o),O.is.pinned&&(r.slider.get.offset(),"responsive"!==p.type&&"fixedsize"!==p.type&&("fullsize"!==p.type||"fitheight"!==r.o.fullSizeMode&&!1!==r.o.fitScreenWidth)||(B?(i=D=l.viewport.width,x=0):(D=r.slider.width,x=r.slider.offset.left,i=p.width)),W?(a=z=l.viewport.height,S=0):(z=r.slider.height,S=(l.viewport.height-r.slider.height)/2||0,a=p.height));var A=B?0:x,V=W?0:S,R={width:B&&0!==L.percentWidth?D/100*L.percentWidth:parseInt(L.width)*_,height:W&&0!==L.percentHeight?z/100*L.percentHeight:parseInt(L.height)*_,paddingLeft:this.convertSingleValue(L.paddingLeft,_),paddingTop:this.convertSingleValue(L.paddingTop,_),paddingRight:this.convertSingleValue(L.paddingRight,_),paddingBottom:this.convertSingleValue(L.paddingBottom,_),borderLeftWidth:this.convertSingleValue(L.borderLeftWidth,_),borderTopWidth:this.convertSingleValue(L.borderTopWidth,_),borderRightWidth:this.convertSingleValue(L.borderRightWidth,_),borderBottomWidth:this.convertSingleValue(L.borderBottomWidth,_),borderRadius:this.borderRadius(L.borderRadius||0,_),boxShadow:this.shadows(L.boxShadow,_),textShadow:this.shadows(L.textShadow,_),ratio:_},N={marginLeft:this.convertSingleValue(L.marginLeft,_),marginTop:this.convertSingleValue(L.marginTop,_),marginRight:this.convertSingleValue(L.marginRight,_),marginBottom:this.convertSingleValue(L.marginBottom,_)},E={},H={borderRadius:R.borderRadius};if(L.minWidth&&(R.minWidth=L.percentMinWidth?D/100*L.percentMinWidth:L.minWidth,R.width=Math.max(R.width,R.minWidth)),L.minHeight&&(R.minHeight=L.percentMinHeight?z/100*L.percentMinHeight:L.minHeight,R.height=Math.max(R.height,R.minHeight)),L.maxWidth&&(R.maxWidth=L.percentMaxWidth?D/100*L.percentMaxWidth:L.maxWidth,R.width=Math.min(R.width,R.maxWidth)),L.maxHeight&&(R.maxHeight=L.percentMaxHeight?z/100*L.percentMaxHeight:L.maxHeight,R.height=Math.min(R.height,R.maxHeight)),L.minWidth&&L.maxWidth&&R.minWidth>R.maxWidth&&(R.width=R.minWidth),L.minHeight&&L.maxHeight&&R.minHeight>R.maxHeight&&(R.height=R.minHeight),O.is.imageLayer&&(R.minWidth||R.minHeight||R.maxWidth||R.maxHeight)){$.addClass("ls-force-display-block ls-force-visibility-hidden");var Y={minHeight:R.minHeight?R.minHeight:0,minWidth:R.minWidth?R.minWidth:0,maxHeight:R.maxHeight?R.maxHeight:"none",maxWidth:R.maxWidth?R.maxWidth:"none"};O.original.autoWidth?R.minWidth&&!R.minHeight||R.maxWidth&&!R.maxHeight?Y.width=R.width:Y.width="auto":Y.width=R.width,O.original.autoHeight?!R.minWidth&&R.minHeight||!R.maxWidth&&R.maxHeight?Y.height=R.height:Y.height="auto":Y.height=R.height,C.css(Y),R.width=C.width(),R.height=C.height(),delete R.minWidth,delete R.minHeight,delete R.maxWidth,delete R.maxHeight,$.removeClass("ls-force-display-block ls-force-visibility-hidden")}if((B||W)&&(L.percentHeight||L.percentWidth)&&O.is.imageLayer&&(L.percentHeight&&!L.percentWidth&&(R.width=L.width*(R.height/L.height)),L.percentWidth&&!L.percentHeight&&(R.height=L.height*(R.width/L.width))),("number"==typeof L.width&&L.width<0||"auto"==L.width||""==L.sWidth)&&r.debugMode&&r.debug.add("warn","resize.width",[b+1,L.width]),("number"==typeof L.height&&L.height<0||"auto"==L.height||""==L.sHeight)&&r.debugMode&&r.debug.add("warn","resize.height",[b+1,L.height]),R.fontSize=L.fontSize*_,O.is.textLayer&&(l.isMobile&&R.fontSize<O.styleSettings.minmobilefontsize?R.fontSize=O.styleSettings.minmobilefontsize:R.fontSize<O.styleSettings.minfontsize&&(R.fontSize=O.styleSettings.minfontsize),F=R.fontSize/L.fontSize,R.fontSize+="px",-1!==L.lineHeight.indexOf("px")&&(R.lineHeight=parseFloat(L.lineHeight)*F+"px"),-1!==L.letterSpacing.indexOf("px")&&(R.letterSpacing=parseFloat(L.letterSpacing)*F+"px"),-1!==L.textStrokeWidth.indexOf("px")&&(R.textStrokeWidth=parseFloat(L.textStrokeWidth)*F+"px"),""==L.sWidth&&(R.width="auto",O.elements.$innerWrapper.addClass("ls-force-width-auto"),"nowrap"!==C.css("white-space")&&(O.elements.$_innerWrappers.addClass("ls-force-left-0"),O.elements.$_outerWrappers.addClass("ls-force-full-size"))),""==L.sHeight&&(R.height="auto",O.elements.$innerWrapper.addClass("ls-force-height-auto")),""!=L.sWidth&&""!=L.sHeight||C.css(R)),O.is.slideBackground||O.is.backgroundVideo)if(O.is.slideBackground){var X=r.slides[O.is.onSlide].data.backgroundSize;switch((void 0!==X&&"inherit"!==X?X:r.o.slideBGSize).replace("100% 100%","stretch")){case"auto":default:break;case"cover":L.ratio<h?(R.width=u,R.height=R.width/L.ratio):(R.height=m,R.width=R.height*L.ratio);break;case"contain":L.ratio<h?(R.height=m,R.width=R.height*L.ratio):(R.width=u,R.height=R.width/L.ratio);break;case"stretch":R.width=u,R.height=m}R.width=Math.round(R.width),R.height=Math.round(R.height);var G=r.slides[O.is.onSlide].data.backgroundPosition;switch((M=void 0!==G?G.split(" "):r.o.slideBGPosition.split(" "))[0]){case"left":R.x=0;break;case"center":R.x=(r.slider.width-R.width)/2;break;case"right":R.x=r.slider.width-R.width;break;default:-1!==M[0].indexOf("%")?R.x=(r.slider.width-R.width)/100*parseInt(M[0]):R.x=parseInt(M[0])}if(void 0!==M[1])switch(M[1]){case"top":R.y=0;break;case"center":R.y=(r.slider.height-R.height)/2;break;case"bottom":R.y=r.slider.height-R.height;break;default:-1!==M[1].indexOf("%")?R.y=(r.slider.height-R.height)/100*parseInt(M[1]):R.y=parseInt(M[1])}R.transform="translateX("+R.x+"px) translateY("+R.y+"px)",R["-ms-transform"]="translateX("+R.x+"px) translateY("+R.y+"px)",R["-webkit-transform"]="translateX("+R.x+"px) translateY("+R.y+"px)"}else O.is.backgroundVideo&&("html5"===O.mediaProperties.type?(R.x=0,R.y=0,R.width=r.slider.width,R.height=r.slider.height):(L.ratio<h?(R.width=u,R.height=R.width/L.ratio):(R.height=m,R.width=R.height*L.ratio),R.x=(r.slider.width-R.width)/2,R.y=(r.slider.height-R.height)/2,R.width=Math.round(R.width),R.height=Math.round(R.height)),R.transform="translateX("+R.x+"px) translateY("+R.y+"px)",R["-ms-transform"]="translateX("+R.x+"px) translateY("+R.y+"px)",R["-webkit-transform"]="translateX("+R.x+"px) translateY("+R.y+"px)");else{if(O.mediaProperties&&("youtube"===O.mediaProperties.type||"vimeo"===O.mediaProperties.type)){var U=R.width/R.height,K={width:R.width,height:R.height};L.ratio<U?(K.height=R.width/L.ratio,K.marginTop=(R.height-K.height)/2):(K.width=R.height*L.ratio,K.marginLeft=(R.width-K.width)/2),O.mediaProperties.$media.css(K)}if(O.elements.$_innerWrappers.addClass("ls-force-display-block ls-force-no-transform"),C.addClass("ls-force-no-transform"),O.is.insideLayerGroup)(I=(P=C.data("$layerGroup")).data(r.defaults.init.dataKey)).elements.$_innerWrappers.addClass("ls-force-display-block ls-force-no-transform"),P.addClass("ls-force-no-transform");"auto"==R.width?R.outerWidth=Math.ceil(C.outerWidth()):R.outerWidth=R.width+r.layers.toNum(R.paddingLeft,R.fontSize)+r.layers.toNum(R.paddingRight,R.fontSize)+r.layers.toNum(R.borderLeftWidth,R.fontSize)+r.layers.toNum(R.borderRightWidth,R.fontSize),"auto"==R.height?R.outerHeight=Math.ceil(C.outerHeight()):R.outerHeight=R.height+r.layers.toNum(R.paddingTop,R.fontSize)+r.layers.toNum(R.paddingBottom,R.fontSize)+r.layers.toNum(R.borderTopWidth,R.fontSize)+r.layers.toNum(R.borderBottomWidth,R.fontSize),O.elements.$_allWrappers.removeClass("ls-force-display-block ls-force-no-transform ls-force-width-auto ls-force-height-auto ls-force-left-0 ls-force-full-size"),C.removeClass("ls-force-no-transform"),O.is.insideLayerGroup&&(I.elements.$_allWrappers.removeClass("ls-force-display-block ls-force-no-transform ls-force-width-auto ls-force-height-auto ls-force-left-0 ls-force-full-size"),P.removeClass("ls-force-no-transform")),N.width=E.width=R.outerWidth,N.height=E.height=R.outerHeight,-1!=L.left.indexOf("%")?"100%"===L.left?R.left=0===A?D/100*parseFloat(L.left)-R.outerWidth:A+i*n/100*parseFloat(L.left)-R.outerWidth:"0%"===L.left?R.left=0===A?0:A:R.left=0===A?D/100*parseFloat(L.left)-R.outerWidth/2:A+i*n/100*parseFloat(L.left)-R.outerWidth/2:R.left=A+parseFloat(L.left)*_,N.left=R.left,-1!=L.top.indexOf("%")?"100%"===L.top?R.top=0===V?z/100*parseFloat(L.top)-R.outerHeight:V+a*n/100*parseFloat(L.top)-R.outerHeight:"0%"===L.top?R.top=0===V?0:V+0:R.top=0===V?z/100*parseFloat(L.top)-R.outerHeight/2:V+a*n/100*parseFloat(L.top)-R.outerHeight/2:R.top=V+parseFloat(L.top)*_,N.top=R.top}if(O.textIn.$nodesForBackgroundClip&&O.textIn.$nodesForBackgroundClip.length){var j=O.elements.$outerStyleWrapper.add(O.elements.$outerStyleWrapper.find(".ls-wrapper"));j.addClass("ls-force-visibility-hidden ls-force-display-block"),O.elements.$_innerWrappers.addClass("ls-force-no-transform");var q=!1;"auto"===k.style.width&&(k.style.width=Math.ceil(O.original.width*(w*_))+"px",q=!0),O.textIn.$nodesForBackgroundClip.each(function(t,i){var a=e(i),s=a.children(".ls-textnode-bgclip-wrap"),r=s.children(".ls-textnode"),o=(a.children(".ls-textnode-dummy"),a.position());s.css({width:Math.ceil(N.width),height:Math.ceil(N.height),transform:"translate("+-o.left/w+"px,"+-o.top/w+"px)"}),r.css({marginLeft:o.left/w,marginTop:o.top/w})}),q&&(k.style.width="auto",q=!1),O.elements.$_innerWrappers.removeClass("ls-force-no-transform"),j.removeClass("ls-force-visibility-hidden ls-force-display-block")}R.fontSize=parseFloat(R.fontSize)/l.automaticFontSizeRatio+"px",r.plugins.callFunctions("beforeResizeSingleLayerSmartBG",{$layer:C,layerData:O,layerStyle:R,wrapperStyle:N}),O.responsive=R,f[b]=R,O.is.smartBG&&(R.left=Math.round(R.left),R.top=Math.round(R.top),R.width=Math.ceil(R.width),R.height=Math.ceil(R.height),f[b]["--sw"]=(B?r.slider.width:p.width*_)+"px",f[b]["--sh"]=(W?r.slider.height:p.height*_)+"px",f[b]["--x"]=-R.left-parseFloat(R.borderLeftWidth)-parseFloat(N.marginLeft)+(B?0:x)+"px",f[b]["--y"]=-R.top-parseFloat(R.borderTopWidth)-parseFloat(N.marginTop)+(W?0:S)+"px"),O.is.slideBackground||O.is.backgroundVideo||(O.settings.wrapperData.responsive=N,g[b]=N,y[b]=E,v[b]=H)}if(t.singleLayer)return f;for(var Q=0,Z=f.length;Q<Z;Q++){var J=e(c[Q]),ee=J.data(r.defaults.init.dataKey);r.plugins.callFunctions("beforeResizeSingleLayerEnd",{$layer:J,layerData:ee,layerStyle:f[Q],wrapperStyle:g[Q]}),J.css(f[Q]),ee.is.slideBackground||ee.is.backgroundVideo?(ee.is.slideBackground||ee.is.backgroundVideo)&&(ee.elements.$bgOuterWrapper.css({width:r.slider.width,height:r.slider.height}),ee.elements.$outerWrapper.css({width:r.slider.width,height:r.slider.height})):(J.find(".split-item").css(v[Q]),d.wrappers(J,ee,g[Q],y[Q])),ee.is.lottie&&(e(ee.lottie.options.canvas).attr({width:f[Q].width,height:f[Q].height}),ee.lottie.player.resize()),r.plugins.callFunctions("afterResizeSingleLayer",{$layer:J,layerData:ee})}t.callback&&t.callback(),r.debugMode&&r.debug.groupEnd("resize")}},wrappers:function(e,t,i,a){i&&t.elements.$outerStyleWrapper.css(i),a&&t.loop.enabled&&t.elements.$loopWrapper.css(a),o.TweenMax.set(t.elements.$wrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.layer*r.resize.ratio}}),t.loop.enabled&&o.TweenMax.set(t.elements.$loopWrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.loop*r.resize.ratio}}),t.hover.enabled&&o.TweenMax.set(e[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.hover*r.resize.ratio}}),t.textIn.nodes&&o.TweenMax.set(t.textIn.nodes,{autoCSS:!1,css:{transformPerspective:t.transformPerspective.text*r.resize.ratio}}),t.textOut.nodes&&o.TweenMax.set(t.textOut.nodes,{autoCSS:!1,css:{transformPerspective:t.transformPerspective.text*r.resize.ratio}}),t.parallax.enabled&&o.TweenMax.set(t.elements.$parallaxWrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.parallax*r.resize.ratio}}),t.scroll.enabled&&o.TweenMax.set(t.elements.$scrollTransformWrapper[0],{autoCSS:!1,css:{transformPerspective:t.transformPerspective.scroll*r.resize.ratio}})},performTransformOperations:function(t,i){var a,s,r;for(var o in i)if("string"==typeof i[o]&&-1!==i[o].indexOf("="))if(s=(a=i[o].split("="))[0].trim()||!1,r=parseFloat(a[1].trim())||!1,s&&r&&e.isNumeric(r))switch(s){case"+":i[o]=t[o]+r;break;case"-":i[o]=t[o]-r;break;case"*":i[o]=t[o]*r;break;case"/":i[o]=t[o]/r}else i[o]=t[o]},mirrorTransitionProperties:function(t){var i=function(t){var i=t;switch(t){case"left":i="right";break;case"right":i="left";break;case"top":i="bottom";break;case"bottom":i="top"}return-1!==t.indexOf("lw")||-1!==t.indexOf("lh")||-1!==t.indexOf("sw")||-1!==t.indexOf("sh")?i="-"===t.charAt(0)?t.substring(1):"-"+t:-1!==t.indexOf("%")?i=-1*parseFloat(t.split("%")[0])+"%":e.isNumeric(t)&&0!==t&&"0"!==t&&(i=-1*t),i},a=function(e){var a,s,r;for(var o in e)if(r=o.toLowerCase(),-1!==t.mirrorProperties.indexOf(r)){if("object"==typeof(a=e[o]))for(var n in s=[],a)s.push(i(a[n]));else s=i(a);e[o]=s}};a(t.transitionProperties),t.transitionPropertiesShouldBeConverted&&a(t.transitionPropertiesShouldBeConverted)},transformProperties:function(e,t,i,a,s,o,n){if("object"==typeof a.x){for(var l=[],d=0;d<a.x.length;d++)"string"==typeof a.x[d]?l[d]=this.getXY(e,t,a.x[d],"Width"):l[d]=a.x[d]*t.settings.calculatedratio;i.cycle.x=l}else"string"==typeof a.x?-1!==a.x.indexOf("random")||a.x.charAt(0)===r.defaults.init.openingBracket?i.x=r.functions.convert.randomProperties(a.x,"x",n,e,t):i.x=this.getXY(e,t,a.x,"Width"):void 0!==a.x&&(i.x=a.x*t.settings.calculatedratio);if("object"==typeof a.y){for(var c=[],p=0;p<a.y.length;p++)"string"==typeof a.y[p]?c[p]=this.getXY(e,t,a.y[p],"Height"):c[p]=a.y[p]*t.settings.calculatedratio;i.cycle.y=c}else"string"==typeof a.y?-1!==a.y.indexOf("random")||a.y.charAt(0)===r.defaults.init.openingBracket?i.y=r.functions.convert.randomProperties(a.y,"y",n,e,t):i.y=this.getXY(e,t,a.y,"Height"):void 0!==a.y&&(i.y=a.y*t.settings.calculatedratio);if(s&&(i=s),"object"==typeof a.transformOrigin||o){var u=[];if(o){var m=e.data(r.defaults.init.dataKey).elements.$outerStyleWrapper.add(e.data(r.defaults.init.dataKey).elements.$outerStyleWrapper.find(".ls-wrapper"));m.addClass("ls-force-visibility-hidden ls-force-display-block ls-fix-textnodes"),u=r.functions.convert.nodesTransformOrigin(a.transformOrigin,o,t,e.data(r.defaults.init.dataKey).elements.$outerStyleWrapper),m.removeClass("ls-force-visibility-hidden ls-force-display-block ls-fix-textnodes")}else for(var h=0;h<a.transformOrigin.length;h++)u[h]=r.functions.convert.transformOrigin(a.transformOrigin[h],e,t,e.data(r.defaults.init.dataKey).elements.$outerStyleWrapper);i.cycle.transformOrigin=u}else"string"==typeof a.transformOrigin&&(i.transformOrigin=r.functions.convert.transformOrigin(a.transformOrigin,e,t,e.data(r.defaults.init.dataKey).elements.$outerStyleWrapper))},styleProperties:function(e,t,i,a){a.width&&-1!==a.width.indexOf("%")&&(a.percentWidth=parseInt(a.width),a.width=parseInt(r.layers.getStyle(a.width,r.slider.initial.percW))),a.height&&-1!==a.height.indexOf("%")&&(a.percentHeight=parseInt(a.height),a.height=parseInt(r.layers.getStyle(a.height,r.slider.initial.percH)));var s=r.resize.layers({singleLayer:e,original:a})[0];for(var o in a)-1===o.indexOf("percent")&&s.hasOwnProperty(o)&&-1===s[o].indexOf("NaN")&&(i[o]=s[o])},getXY:function(e,t,i,a,s){var o=0,n=r.slider.width||r.slider.initial.width,l=r.slider.height||r.slider.initial.height,d=t.original,c=t.responsive,p=t.settings.wrapperData&&t.settings.wrapperData.responsive?t.settings.wrapperData.responsive:{marginLeft:this.convertSingleValue(d.marginLeft,this.ratio),marginTop:this.convertSingleValue(d.marginTop,this.ratio),marginRight:this.convertSingleValue(d.marginRight,this.ratio),marginBottom:this.convertSingleValue(d.marginBottom,this.ratio)};if(c.outerWidth||(c.outerWidth=Math.ceil(e.outerWidth())),c.outerHeight||(c.outerHeight=Math.ceil(e.outerHeight())),d&&c&&p)switch(i){case"left":o=-1!=d.left.indexOf("%")&&parseInt(d.left)?"100%"===d.left?-c.left-c.outerWidth-parseInt(p.marginLeft):-parseFloat(d.left)/100*n-c.outerWidth/2-parseInt(p.marginLeft):-c.left-c.outerWidth-parseInt(p.marginLeft);break;case"right":o=-1!=d.left.indexOf("%")&&parseInt(d.left)?"100%"===d.left?n-c.left-parseInt(p.marginLeft):(1-parseFloat(d.left)/100)*n+c.outerWidth/2-parseInt(p.marginLeft):n-c.left-parseInt(p.marginLeft);break;case"top":o=-1!=d.top.indexOf("%")&&parseInt(d.top)?"100%"===d.top?-c.top-c.outerHeight-parseInt(p.marginTop):-parseFloat(d.top)/100*l-c.outerHeight/2-parseInt(p.marginTop):-c.top-c.outerHeight-parseInt(p.marginTop);break;case"bottom":o=-1!=d.top.indexOf("%")&&parseInt(d.top)?"100%"===d.top?l-c.top-parseInt(p.marginTop):(1-parseFloat(d.top)/100)*l+c.outerHeight/2-parseInt(p.marginTop):l-c.top-parseInt(p.marginTop);break;case"width":o=c.outerWidth;break;case"-width":o=-c.outerWidth;break;case"height":o=c.outerHeight;break;case"-height":o=-c.outerHeight;break;default:o=-1!==i.indexOf("%")?c["outer"+a]/100*parseInt(i):-1!==i.indexOf("lw")?c.outerWidth/100*parseFloat(i.split("lw")[0]):-1!==i.indexOf("lh")?c.outerHeight/100*parseFloat(i.split("lh")[0]):-1!==i.indexOf("sw")?parseFloat(i.split("sw")[0])/100*n:-1!==i.indexOf("sh")?parseFloat(i.split("sh")[0])/100*l:parseFloat(i)*(s?1:t.settings.calculatedratio||this.calculateRatio(t,this.ratio))}return o},navigation:function(){"always"==r.o.thumbnailNavigation&&r.gui.navigation.bottom.thumbnails.resize()},shadow:function(){r.gui.shadow.show&&r.gui.shadow.show(),r.gui.shadow.$element&&r.gui.shadow.resize()},yourLogo:function(){r.yourLogo.$element&&r.yourLogo.resize()},timers:function(){if(r.gui.timers.slidebar.$containerElement.length>0)for(var e=0,t=r.gui.timers.slidebar.$containerElement.length;e<t;e++)r.gui.timers.slidebar.containerElementWidth[e]=r.gui.timers.slidebar.$containerElement[e].width(),r.gui.timers.slidebar.elementWidth[e]=r.gui.timers.slidebar.$element[e].width()}},r.timelines={slides:[],to:function(t,i){var a,s,n,l,d,c,p,u,m,h,f;if(e.isArray(t)){for(s=t[0],n=t[1]||"",d=t.length>2?t[2]:null,c=t.length>3&&!!t[3],p=t.length>4&&!!t[4],u=t.length>5&&!!t[5],m=t.length>6&&!!t[6],i?l=[t[1]]:"string"==typeof n?l=e.trim(n)?e.trim(n).split(/\s+/):[]:e.isArray(n)?l=n:(console.error("ls.timelines.to | no timelines found!"),l=[]),a=0;a<l.length;a++)if(i?f=l[a]:(h=l[a],f=s&&s[h]),f instanceof o.TimelineMax){if(f.pause(),m){var g=f.getChildren(!0,!1,!0);g.sort(function(e,t){return e.endTime()-t.endTime()});for(var y=0;y<g.length;y++)r.timelines.to([s,g[y],d,c,p,u],!0)}e.isNumeric(d)&&f.progress(d),c&&f.kill(),p&&f.clear().invalidate(),u&&s.hasOwnProperty(h)&&(s[h]=null)}}else console.error("ls.timelines.to | invalid parameter:",t)},has:function(e){return e&&e instanceof o.TimelineMax}},r.transitions={firstSlide:!0,start:function(){return!!document.body.contains(t)&&(r.slider.isPopup&&r.slider.state.popupIsWaitingForDelay?(r.slider.state.waitingForPopupTimer=!0,!1):(r.device.scroll.directionAtSlideTransitionStart=r.device.scroll.direction,"always"==r.o.thumbnailNavigation&&(r.gui.navigation.bottom.thumbnails.change(),"ontouchstart"in window||r.gui.navigation.bottom.thumbnails.scroll()),this.layers.out.forced(),void this.slide.init()))},slide:{$wrapper:e(),init:function(){var t,i;if(r.functions.setStates(r.slider,{animatingSlides:!0}),r.transitions.layers.parallax.reset(),r.slider.$layersWrapper.find('.ls-parallax[data-ls-parallax="active"]').each(function(){e(this).find(".ls-layer").data(r.defaults.init.dataKey).settings.slideOut===r.slides.current.index&&e(this).attr("data-ls-parallax","inactive")}),r.transitions.curSlide=r.slides.current,r.transitions.nextSlide=r.slides.next,r.timelines._slideTransition=new o.TimelineMax({paused:!0,onComplete:function(){r.transitions.slide.onComplete()}}),r.slider.isScrollScene&&(r.o.animateFirstSlide=!1),r.transitions.firstSlide&&r.o.animateFirstSlide&&(r.transitions.curSlide=e.extend(!0,{},r.transitions.nextSlide),r.transitions.curSlide.data.$background=e('<img src="'+r.defaults.init.emptyIMG+'">'),r.transitions.curSlide.data.$background.data(r.defaults.init.dataKey,{kenBurns:{},responsive:{width:10,height:10,x:0,y:0,kbRotation:"0",kbScale:"0"}}),r.transitions.curSlide.data.backgroundColor="transparent"),r.transitions.firstSlide&&!r.o.animateFirstSlide){if(void 0!==r.transitions.nextSlide.data.$background){var a=r.transitions.nextSlide.data.$background.data(r.defaults.init.dataKey),s=a.kenBurns.zoom?a.kenBurns.from.scale:1,n=a.kenBurns.zoom?a.kenBurns.from.rotation:0,d=r.transitions.nextSlide.filter.from||"none";r.timelines._slideTransition.set(r.transitions.nextSlide.data.$background[0],{"-webkit-filter":d,filter:d},0),r.timelines._slideTransition.fromTo(r.transitions.nextSlide.data.$background.closest(".ls-bg-wrap")[0],r.o.sliderFadeInDuration,{autoCSS:!1,css:{scale:s,rotation:n,opacity:0,display:"block"}},{autoCSS:!1,css:{opacity:1}},0)}this.start(!0)}else"undefined"==typeof layerSliderTransitions&&"undefined"==typeof layerSliderCustomTransitions?(this.start(!0),r.debugMode&&r.debug.add("warn","slideTransition.noSlideTransition",r.transitions.nextSlide.index)):void 0===r.transitions.curSlide.data.$background&&void 0===r.transitions.nextSlide.data.$background&&"transparent"==r.transitions.curSlide.data.backgroundColor&&"transparent"==r.transitions.nextSlide.data.backgroundColor?this.start(!0):("x"===r.o.clipSlideTransition?l.$overflowWrapper.addClass("ls-overflowx-hidden"):"y"===r.o.clipSlideTransition?l.$overflowWrapper.addClass("ls-overflowy-hidden"):!0===r.o.clipSlideTransition&&l.$overflowWrapper.addClass("ls-overflow-hidden"),void 0===r.transitions.curSlide.data.$background||r.transitions.firstSlide&&r.o.animateFirstSlide||(t=r.transitions.curSlide.data.$background.closest(".ls-bg-wrap")[0]._gsTransform,(i=r.transitions.curSlide.data.$background.data(r.defaults.init.dataKey)).responsive.filter=r.transitions.curSlide.data.$background[0].style.filter,i.responsive.kbRotation=void 0!==t?" rotate("+t.rotation+"deg)":" rotate(0deg)",i.responsive.kbScale=void 0!==t?" scale("+t.scaleX+")":" scale(1)"),r.transitions.slide.$wrapper=e("<div>").addClass("ls-slide-transition-wrapper").css({width:r.slider.width,height:r.slider.height}),this.select.slideTransitionType())},select:{slideTransitionType:function(){this.transitionType="normal",r.plugins.callFunctions("selectSlideTransitionTypeBefore",{}),r.transitions.slide[this.transitionType].select.transitionType()}},start:function(t,i){var a,s,n=!(!r.slides.current.index||!r.slides.current.data.$backgroundVideo.length),l=!(!r.slides.next.index||!r.slides.next.data.$backgroundVideo.length);if((!r.slideshow.firstStart&&r.api.hasEvent("slideChangeDidStart")&&r.api.triggerEvent("slideChangeDidStart",r.api.eventData()),!t)&&(void 0!==r.transitions.nextSlide.data.transitionDuration?s=r.transitions.nextSlide.data.transitionDuration:void 0!==r.o.slideTransitionDuration&&e.isNumeric(r.o.slideTransitionDuration)&&r.o.slideTransitionDuration>-1&&(s=r.o.slideTransitionDuration/1e3),e.isNumeric(s)&&(0===s&&(s+=1e-5),r.timelines._slideTransition.duration(s)),r.transitions.firstSlide&&r.o.animateFirstSlide&&r.o.firstSlideDuration&&r.timelines._slideTransition.duration(r.o.firstSlideDuration/1e3),r.debugMode&&r.debug.options.transitionDuration&&r.timelines._slideTransition.duration(r.debug.options.transitionDuration),r.transitions.layers.timeline.timeScaleModifier>.25)){var d=r.timelines._slideTransition.duration()/(.75+r.transitions.layers.timeline.timeScaleModifier);d=d<.5?.5:d,r.timelines._slideTransition.duration(d)}i&&r.timelines._slideTransition.timeScale(1);var c,p=r.timelines._slideTransition.duration()/r.timelines._slideTransition.timeScale(),u=p,m=r.transitions.nextSlide.data.timeShift||(void 0!==r.o.slideTimeShift&&e.isNumeric(r.o.slideTimeShift)&&r.o.slideTimeShift<0?r.o.slideTimeShift/1e3:0);m>0?m=0:Math.abs(m)>p&&(m=-p),r.transitions.firstSlide&&r.o.animateFirstSlide&&!1!==r.o.firstSlideTimeShift&&r.o.firstSlideTimeShift<=0&&(m=r.o.firstSlideTimeShift/1e3),r.transitions.nextSlide.data.calculatedTimeShift=m,c=r.transitions.firstSlide&&!r.o.animateFirstSlide?r.o.sliderFadeInDuration+.01:(u+m)*r.timelines._slideTransition.timeScale(),!n&&!l||r.transitions.nextSlide.data.sfxtr&&!r.transitions.firstSlide||r.transitions.media.changeBackgroundVideo(r.transitions.firstSlide,!(!n||!l)),r.timelines._slideTransition.call(function(){!r.slideshow.firstStart&&r.api.hasEvent("slideChangeWillComplete")&&r.api.triggerEvent("slideChangeWillComplete",r.api.eventData()),r.slideshow.should.change||r.transitions.layers.timeline.prepare(),r.slides.set.slideIndexes(),r.o.hashChange&&(document.location.hash=r.slides[r.slides.current.index].data.deeplink||"_no-deeplink-found_"),r.slideshow.start(),!r.transitions.firstSlide&&r.slides.prev.index&&r.slides.prev.data.$backgroundVideo.length&&!r.slides.prev.data.$backgroundVideo.data(r.defaults.init.dataKey).mediaProperties.willBePaused&&(r.slides.prev.data.$backgroundVideo.trigger("stopBackgroundVideo"),r.slides.prev.data.$backgroundVideo.data(r.defaults.init.dataKey).elements.$bgWrapper.css({display:"none"})),r.slideshow.should.change||r.slides.next.data.$backgroundVideo.length&&r.slides.next.data.$backgroundVideo.data(r.defaults.init.dataKey).mediaProperties&&!r.slides.next.data.$backgroundVideo.data(r.defaults.init.dataKey).mediaProperties.isPreloaded&&(r.slides.next.data.$backgroundVideo.trigger("preloadBackgroundVideo"),r.slides.next.data.$backgroundVideo.data(r.defaults.init.dataKey).mediaProperties.isPreloaded=!0),r.transitions.firstSlide=!1},[],this,c),r.timelines._slideTransition.play(),r.slideshow.forceFastChange&&r.timelines._slideTransition.progress(1),void 0!==r.transitions.curSlide.data&&void 0!==r.transitions.curSlide.data.$background&&r.timelines._slideTransition.add(function(){a=r.transitions.curSlide.data.$background.data(r.defaults.init.dataKey),r.transitions.curSlide.data.$background.closest(".ls-bg-wrap").hide(),a.kenBurns.zoom&&o.TweenMax.set(r.transitions.curSlide.data.$background[0],{autoCSS:!1,css:a.kenBurns.from})},0)},onComplete:function(){var e;void 0!==r.transitions.nextSlide.data.$background&&(r.transitions.nextSlide.data.$background.closest(".ls-bg-wrap").show(),r.transitions.nextSlide.data.$background[0].getBoundingClientRect()),"transparent"!==r.transitions.nextSlide.data.backgroundColor?r.slider.$slideBGColorWrapper.css("background-color",r.transitions.nextSlide.data.backgroundColor):r.slider.$slideBGColorWrapper.css("background-color","transparent"),r.o.leaveOverflow||l.$overflowWrapper.removeClass("ls-overflowx-hidden ls-overflowy-hidden ls-overflow-hidden"),this.$wrapper&&(this.$wrapper.html("").remove(),this.$wrapper=!1),r.gui.navigation.bottom.bullets.set.active(),r.o.cycles>0&&(r.slideshow.hasOwnProperty("cycleSlideIndex")?r.slideshow.cycles.check(r.transitions.nextSlide.index)&&(r.navigation.stop(),r.functions.setStates(r.slideshow,{pausedByLastCycle:!0}),r.o.forceCycles&&(r.slideshow.curCycle=1)):r.slideshow.cycles.set()),r.functions.setStates(r.slider,{animatingSlides:!1,changingSlides:!1}),!r.slideshow.firstStart&&r.api.hasEvent("slideChangeDidComplete")&&r.api.triggerEvent("slideChangeDidComplete",r.api.eventData()),r.slideshow.firstStart=!1,r.slideshow.forceFastChange=!1,r.slideshow.forceFastChangeCallback&&(r.slideshow.forceFastChangeCallback(),r.slideshow.forceFastChangeCallback=!1),r.slideshow.should.change?r.navigation.forceDirection?(void 0!==r.transitions.curSlide.data&&void 0!==r.transitions.curSlide.data.$background&&(e=r.transitions.curSlide.data.$background.data(r.defaults.init.dataKey),r.transitions.curSlide.data.$background.closest(".ls-bg-wrap").hide(),e.kenBurns.zoom&&o.TweenMax.set(r.transitions.curSlide.data.$background[0],{autoCSS:!1,css:e.kenBurns.from})),r.slideshow.changeTo(r.slideshow.get.slideInSequence(r.navigation.forceDirection),!0),r.navigation.forceDirection=!1):r.slideshow.forceSlideChangeTo?r.slideshow.changeTo(r.slideshow.forceSlideChangeTo,!0,!0):r.preload.imagesOfSlide(r.slides.next.index):r.preload.imagesOfSlide(r.slides.next.index)},normal:{select:{transitionType:function(){if(r.o.slideTransition)r.transitions.slide.normal.setTransition(r.o.slideTransition.type,r.o.slideTransition.obj);else{var e,t,i=!!r.transitions.nextSlide.data.transition2d&&r.transitions.nextSlide.data.transition2d.toString().split(",");r.device.touchPrev&&r.o.slideOnSwipe?(r.device.touchPrev=!1,this.transition("2d","1")):r.device.touchNext&&r.o.slideOnSwipe?(r.device.touchNext=!1,this.transition("2d","1")):r.slides.next.data.$background||i&&(!i||-1!=i.indexOf("1")||-1!=i.indexOf("2")||-1!=i.indexOf("3")||-1!=i.indexOf("4"))?r.browser.supports3D()&&(r.transitions.nextSlide.data.transition3d||r.transitions.nextSlide.data.customtransition3d)?r.transitions.nextSlide.data.transition3d&&r.transitions.nextSlide.data.customtransition3d?(e=Math.floor(2*Math.random()),t=[["3d",r.transitions.nextSlide.data.transition3d],["custom3d",r.transitions.nextSlide.data.customtransition3d]],this.transition(t[e][0],t[e][1])):r.transitions.nextSlide.data.transition3d?this.transition("3d",r.transitions.nextSlide.data.transition3d):this.transition("custom3d",r.transitions.nextSlide.data.customtransition3d):r.transitions.nextSlide.data.transition2d&&r.transitions.nextSlide.data.customtransition2d?(e=Math.floor(2*Math.random()),t=[["2d",r.transitions.nextSlide.data.transition2d],["custom2d",r.transitions.nextSlide.data.customtransition2d]],this.transition(t[e][0],t[e][1])):r.transitions.nextSlide.data.transition2d?this.transition("2d",r.transitions.nextSlide.data.transition2d):r.transitions.nextSlide.data.customtransition2d?this.transition("custom2d",r.transitions.nextSlide.data.customtransition2d):this.transition("2d","1"):this.transition("2d","5")}},transition:function(e,t){r.debugMode&&r.debug.add("group","slideTransition.info"),t+="";var i,a=-1==e.indexOf("custom")?r.t:r.ct,s="3d";if(-1!=e.indexOf("2d")&&(s="2d"),-1!=t.indexOf("last"))i=a["t"+s].length-1;else if(-1!=t.indexOf("all"))i=Math.floor(Math.random()*r.functions.countProp(a["t"+s]));else{var o=t.split(","),n=o.length;i=parseInt(o[Math.floor(Math.random()*n)])-1}void 0===a["t"+s][i]&&(r.debugMode&&r.debug.add("warn","slideTransition.customTransition",[s.toUpperCase()+(-1===e.indexOf("custom")?"":" (CUSTOM)"),i+1]),a=r.t,e=s="2d",i=0),r.debugMode&&r.debug.add("log","slideTransition.info",[s.toUpperCase()+(-1===e.indexOf("custom")?"":" (CUSTOM)"),i+1,a["t"+s][i].name]),r.transitions.slide.normal.setTransition(s,a["t"+s][i])}},setTransition:function(t,i){i.name||(i=_lsConvTrProp(i));var a,s,n,d,c,p=e.extend(!0,{cols:1,rows:1},i),u=typeof p.cols,m=typeof p.rows,h=[],f=r.navigation.direction,g=0,y=0,v=!!r.transitions.curSlide.data.$background&&r.functions.getURL(r.transitions.curSlide.data.$background),x=!!r.transitions.nextSlide.data.$background&&r.functions.getURL(r.transitions.nextSlide.data.$background),S=r.o.playByScroll&&"up"===r.device.scroll.direction?"to":"from";if(p.rc){switch(typeof p.rc){case"number":r.slider.width>r.slider.height?(m=p.rc,u=Math.floor(r.slider.width/(r.slider.height/p.rc))):(u=p.rc,m=Math.floor(r.slider.height/(r.slider.width/p.rc)));break;case"string":n=parseInt(p.rc),u=Math.floor(r.slider.width/n),m=Math.floor(r.slider.height/n)}p.cols=u,p.rows=m}else{switch(u){case"number":u=p.cols;break;case"string":u=Math.floor(Math.random()*(parseInt(p.cols.split(",")[1])-parseInt(p.cols.split(",")[0])+1))+parseInt(p.cols.split(",")[0]);break;default:u=Math.floor(Math.random()*(p.cols[1]-p.cols[0]+1))+p.cols[0]}switch(m){case"number":m=p.rows;break;case"string":m=Math.floor(Math.random()*(parseInt(p.rows.split(",")[1])-parseInt(p.rows.split(",")[0])+1))+parseInt(p.rows.split(",")[0]);break;default:m=Math.floor(Math.random()*(p.rows[1]-p.rows[0]+1))+p.rows[0]}l.isMobile&&r.o.optimizeForMobile&&(u>=15?u=7:u>=5?u=4:u>=4?u=3:u>2&&(u=2),m>=15?m=7:m>=5?m=4:m>=4?m=3:m>2&&(m=2),m>2&&u>2&&(m=2,u>4&&(u=4)))}if(r.debugMode&&!r.o.slideTransition&&(r.debug.add("log","slideTransition.properties",[[u,m],u*m]),r.debug.groupEnd()),a=Math.floor(r.slider.width/u),s=Math.floor(r.slider.height/m),u=Math.floor(r.slider.width/a),m=Math.floor(r.slider.height/s),d=r.slider.width-a*u,c=r.slider.height-s*m,"prev"==f){var w={random:"random",forward:"reverse",reverse:"forward",center:"center",edge:"edge",mirror:"mirror","radial-in":"radial-in","radial-out":"radial-out","col-forward":"col-reverse","col-reverse":"col-forward"};"2d"===t&&p.transition&&"scale"===p.transition.type&&(w.forward="forward",w.reverse="reverse"),p.tile&&p.tile.sequence&&(p.tile.sequence=w[p.tile.sequence]),e.each(["animation","before","after"],function(e,t){if(p[t]&&p[t].transition){var i=p[t].transition;i.rotateX&&Math.abs(i.rotateX)>44&&(i.rotateX*=-1),i.rotateY&&Math.abs(i.rotateY)>44&&(i.rotateY*=-1),i.rotate&&(i.rotate*=-1)}})}for(var b=0;b<u*m;b++)h.push(b);switch(p.tile.sequence){case"reverse":h.reverse();break;case"col-forward":h=r.functions.sortArray(m,u,"forward");break;case"col-reverse":h=r.functions.sortArray(m,u,"reverse");break;case"random":h=r.functions.shuffleArray(h);break;case"center":h=r.functions.sortArray(m,u,"center");break;case"edge":case"mirror":h=r.functions.sortArray(m,u,"edge");break;case"radial-out":h=r.functions.sortArray(m,u,"radial-out");break;case"radial-in":h=r.functions.sortArray(m,u,"radial-in")}if(("transparent"===r.transitions.nextSlide.data.backgroundColor||"3d"==t||void 0!==r.transitions.curSlide.data.$background&&void 0!==r.transitions.nextSlide.data.$background)&&r.slider.$slideBGColorWrapper.css("background-color","transparent"),"2d"==t){var T=-1!=p.name.toLowerCase().indexOf("carousel"),k=-1!=p.name.toLowerCase().indexOf("crossfad");this.$curTiles=e("<div>").addClass("ls-curtiles").appendTo(r.transitions.slide.$wrapper),this.$nextTiles=e("<div>").addClass("ls-nexttiles").appendTo(r.transitions.slide.$wrapper)}for(var C=0;C<u*m;C++){var O,P,I,L,_,$,M,F,B,W=(C+1)%u===0?d:0,D=C>(m-1)*u-1?c:0,z=e("<div>").addClass("ls-slide-transition-tile").css({width:a+W,height:s+D}).data("style",{width:a+W,height:s+D}).appendTo(r.transitions.slide.$wrapper);h[C];if(g=C%u===0?g+1:g,y=C%u===0?1:y+1,"3d"==t){z.addClass("ls-3d-container");var A,V,R,N,E,H,Y,X=a+W,G=s+D,U=new o.TimelineMax;Y=Math.abs(Math.abs(y-u/2-.5)-u/2-.5)*Math.abs(Math.abs(g-m/2-.5)-m/2-.5),z.css({zIndex:Y}),V=X/2,R=G/2,N=(A="horizontal"==p.animation.direction?Math.abs(p.animation.transition.rotateY)>90&&"large"!=p.tile.depth?Math.floor(X/7)+W:X:Math.abs(p.animation.transition.rotateX)>90&&"large"!=p.tile.depth?Math.floor(G/7)+D:G)/2,this.createCuboids("ls-3d-box",z,0,0,0,0,-N,0,0,V+"px "+R+"px 0px"),this.createCuboids("ls-3d-front",z.find(".ls-3d-box"),X,G,0,0,N,0,0),"vertical"==p.animation.direction&&Math.abs(p.animation.transition.rotateX)>90?this.createCuboids("ls-3d-back",z.find(".ls-3d-box"),X,G,0,0,-N,180,0):this.createCuboids("ls-3d-back",z.find(".ls-3d-box"),X,G,0,0,-N,0,180),this.createCuboids("ls-3d-left",z.find(".ls-3d-box"),A,G,-N,0,0,0,-90),this.createCuboids("ls-3d-right",z.find(".ls-3d-box"),A,G,X-N,0,0,0,90),this.createCuboids("ls-3d-top",z.find(".ls-3d-box"),X,A,0,-N,0,90,0),this.createCuboids("ls-3d-bottom",z.find(".ls-3d-box"),X,A,0,G-N,0,-90,0),O=z.find(".ls-3d-front"),P="horizontal"==p.animation.direction?Math.abs(p.animation.transition.rotateY)>90?z.find(".ls-3d-back"):p.animation.transition.rotateY>0?z.find(".ls-3d-left"):z.find(".ls-3d-right"):Math.abs(p.animation.transition.rotateX)>90?z.find(".ls-3d-back"):p.animation.transition.rotateX>0?z.find(".ls-3d-bottom"):z.find(".ls-3d-top"),E=h[C]*p.tile.delay,H=r.transitions.slide.$wrapper.find(".ls-3d-container:eq( "+C+" ) .ls-3d-box"),p.before&&p.before.transition?(p.before.transition.delay=p.before.transition.delay?(p.before.transition.delay+E)/1e3:E/1e3,U.to(H[0],p.before.duration/1e3,r.functions.convert.transition(p.before.transition,p.before.easing))):p.animation.transition.delay=p.animation.transition.delay?(p.animation.transition.delay+E)/1e3:E/1e3,U.to(H[0],p.animation.duration/1e3,r.functions.convert.transition(p.animation.transition,p.animation.easing)),p.after&&(p.after.transition||(p.after.transition={}),U.to(H[0],p.after.duration/1e3,r.functions.convert.transition(p.after.transition,p.after.easing,"after"))),r.timelines._slideTransition.add(U,0)}else{var K,j,q,Q,Z,J,ee,te,ie,ae,se,re,oe="auto",ne="auto",le="auto",de="auto",ce=1,pe=1,ue="50% 50%",me="50% 50%",he=0,fe=100,ge={},ye=p.transition.intensity||2;switch(J="random"==p.transition.direction?(Z="scale"==p.transition.type?["top","bottom","middle","right","left","center"]:["top","bottom","right","left"])[Math.floor(Math.random()*Z.length)]:p.transition.direction,-1!=p.name.toLowerCase().indexOf("mirror")&&C%2==0&&(f="prev"==f?"next":"prev"),"prev"==f&&(J={top:"bottom",bottom:"top",middle:"middle",left:"right",right:"left",center:"center",topleft:"bottomright",topright:"bottomleft",bottomleft:"topright",bottomright:"topleft",none:"none"}[J]),J){case"top":oe=le=-z.data("style").height,ne=de=0;break;case"bottom":oe=le=z.data("style").height,ne=de=0;break;case"left":oe=le=0,ne=de=-z.data("style").width;break;case"right":oe=le=0,ne=de=z.data("style").width;break;case"topleft":oe=z.data("style").height,le=0,ne=z.data("style").width,de=0;break;case"topright":oe=z.data("style").height,le=0,ne=-z.data("style").width,de=0;break;case"bottomleft":oe=-z.data("style").height,le=0,ne=z.data("style").width,de=0;break;case"bottomright":oe=-z.data("style").height,le=0,ne=-z.data("style").width,de=0;break;case"none":oe=0,le=0,ne=0,de=0}switch(this.scale2D=void 0!==p.transition.scale?p.transition.scale:1,1==T&&1!=this.scale2D&&(oe/=2,le/=2,ne/=2,de/=2),(p.transition.rotate||p.transition.rotateX||p.transition.rotateY||1!=this.scale2D)&&"slide"!=p.transition.type?z.css({overflow:"visible"}):z.css({overflow:"hidden"}),1==T?this.$curTiles.css({overflow:"visible"}):this.$curTiles.css({overflow:"hidden"}),!0===k||"slide"==p.transition.type||"scale"==p.transition.type||!0===T||p.transition.hasOwnProperty("opacity")?(ee=z.appendTo(this.$curTiles),te=z.clone().appendTo(this.$nextTiles),O=e("<div>").addClass("ls-curtile").appendTo(ee)):te=z.appendTo(this.$nextTiles),P=e("<div>").addClass("ls-nexttile").appendTo(te),ie=h[C]*p.tile.delay/1e3,ae=p.transition.rotate?p.transition.rotate:0,se=p.transition.rotateX?p.transition.rotateX:0,re=p.transition.rotateY?p.transition.rotateY:0,"prev"==f&&(ae=-ae,se=-se,re=-re),p.transition.type){case"fade":oe=le=ne=de=0,ce=0,pe=1;break;case"mixed":ce=0,pe=1,1==this.scale2D&&(le=de=0),K=void 0!==p.transition.scaleX?p.transition.scaleX:void 0!==p.transition.scale?p.transition.scale:1,j=void 0!==p.transition.scaleY?p.transition.scaleY:void 0!==p.transition.scale?p.transition.scale:1;break;case"scale":switch(oe=le=ne=de=0,ce=0,pe=1,K=1,j=1,J){case"left":case"right":case"center":K=1+h[C]/(50/ye);break;case"top":case"bottom":case"middle":j=1+h[C]/(50/ye)}switch("mirror"===p.tile.sequence&&C>u*m/2&&(he=100,fe=0),J){case"left":ue=he+"% 50%",me=fe+"% 0";break;case"right":ue=fe+"% 50%",me=he+"% 50%";break;case"center":case"middle":q=1,Q=1;break;case"top":ue="50% "+he+"%",me="50% "+fe+"%";break;case"bottom":ue="50% "+fe+"%",me="50% "+he+"%"}}if(r.timelines._slideTransition.fromTo(P[0],p.transition.duration/1e3,{immediateRender:!1,autoCSS:!1,css:{x:-ne,y:-oe,display:"block",opacity:ce,rotation:ae,rotationX:se,rotationY:re,borderRadius:p.transition.borderRadius||0,scaleX:void 0!==K?K:this.scale2D,scaleY:void 0!==j?j:this.scale2D,transformOrigin:ue}},{autoCSS:!1,css:{x:0,y:0,opacity:pe,rotation:0,rotationX:0,rotationY:0,borderRadius:0,scaleX:1,scaleY:1},ease:r.functions.convert.easing(p.transition.easing)},ie),1==k&&(void 0===r.transitions.nextSlide.data.$background||void 0!==r.transitions.nextSlide.data.$background&&(-1!=r.transitions.nextSlide.data.$background.attr("src").toLowerCase().indexOf("png")||r.transitions.nextSlide.data.$background.width()<r.slider.width||r.transitions.nextSlide.data.$background.height()<r.slider.height))&&(ge.opacity=0),"slide"!=p.transition.type&&1!=T||-1!=p.name.toLowerCase().indexOf("mirror"))"scale"==p.transition.type&&(ge.scaleX=q||K,ge.scaleY=Q||j,ge.transformOrigin=me);else{var ve=0;0!==ae&&(ve=-ae),ge.x=de,ge.y=le,ge.rotation=ve,ge.scale=this.scale2D,ge.opacity=ce}p.transition.hasOwnProperty("opacity")&&(ge.opacity=p.transition.opacity),void 0!==O&&r.timelines._slideTransition.to(O[0],p.transition.duration/1e3,{autoCSS:!1,css:ge,ease:r.functions.convert.easing(p.transition.easing)},ie)}I=C%u*a,L=Math.floor(C/u)*s,void 0!==r.transitions.curSlide.data.$background&&(_=r.transitions.curSlide.data.$background.data(r.defaults.init.dataKey),F=r.transitions.curSlide.data.backgroundGradient||"none","3d"===t||"2d"===t&&(!0===k||"slide"===p.transition.type||"scale"===p.transition.type||!0===T||p.transition.hasOwnProperty("opacity"))?O.append(e('<div style="position: absolute;">').css({width:r.slider.width,height:r.slider.height,left:-I,top:-L,backgroundImage:F,transform:_.responsive.kbRotation+_.responsive.kbScale}).append(e("<img>").attr("src",v).css({width:_.responsive.width,height:_.responsive.height,filter:_.responsive.filter,transform:"translateX("+_.responsive.x+"px) translateY("+_.responsive.y+"px)"}))):0===this.$curTiles.children().length&&this.$curTiles.append(e('<div style="position: absolute;">').css({width:r.slider.width,height:r.slider.height,left:-I,top:-L,backgroundImage:F,transform:_.responsive.kbRotation+_.responsive.kbScale}).append(e("<img>").attr("src",v).css({width:_.responsive.width,height:_.responsive.height,filter:_.responsive.filter,transform:"translateX("+_.responsive.x+"px) translateY("+_.responsive.y+"px)"})))),"transparent"===r.transitions.curSlide.data.backgroundColor||r.transitions.curSlide.data.$backgroundVideo.length||("3d"===t||"2d"===t&&(!0===k||"slide"===p.transition.type||!0===T)?O.css("background-color",r.transitions.curSlide.data.backgroundColor):this.$curTiles.css("background-color",r.transitions.curSlide.data.backgroundColor)),void 0!==r.transitions.nextSlide.data.$background&&(M=($=r.transitions.nextSlide.data.$background.data(r.defaults.init.dataKey)).kenBurns[S],B=r.transitions.nextSlide.data.backgroundGradient||"none",P.append(e('<div style="position: absolute;">').css({width:r.slider.width,height:r.slider.height,left:-I,top:-L,backgroundImage:B,transform:"rotate("+M.rotation+"deg) scale("+M.scale+")"}).append(e("<img>").attr("src",x).css({width:$.responsive.width,height:$.responsive.height,filter:r.transitions.nextSlide.filter.from||"none",transform:"translateX("+$.responsive.x+"px) translateY("+$.responsive.y+"px)"})))),"transparent"===r.transitions.nextSlide.data.backgroundColor||r.transitions.nextSlide.data.$backgroundVideo.length||P.css("background-color",r.transitions.nextSlide.data.backgroundColor)}r.transitions.slide.$wrapper.prependTo(r.o.preferBlendMode?r.slider.$layersWrapper:r.slider.$innerWrapper),r.transitions.slide.start()},createCuboids:function(t,i,a,s,r,o,n,l,d,c){var p="translate3d( "+r+"px, "+o+"px, "+n+"px)";0!==l&&(p+="rotateX( "+l+"deg)"),0!==d&&(p+="rotateY( "+d+"deg)");var u={width:a,height:s,transform:p,"-ms-transform":p,"-webkit-transform":p};c&&(u["transform-origin"]=c,u["-ms-transform-origin"]=c,u["-webkit-transform-origin"]=c),e("<div>").addClass(t).css(u).appendTo(i)}}},layers:{setZIndex:function(e,t,i){t.original._zIndex||(t.original._zIndex=parseInt(t.elements.$outerWrapper.css("zIndex"))),i!==parseInt(t.elements.$outerWrapper.css("zIndex"))&&t.elements.$outerWrapper.css({zIndex:i})},in:{onStart:function(e){var t=e.data(r.defaults.init.dataKey);t.is.countdown&&r.countdown.startInterval(e,t.countdownSettings),t.hover.enabled&&r.transitions.layers.hover.enable(e),r.layers.set.dataAttribute("add",e,"animating-in"),t.in.zIndex&&r.transitions.layers.setZIndex(e,t,t.in.zIndex),"instant"===t.mediaSettings.autoplay&&r.media.functions.playIfAllowed(e),r.plugins.callFunctions("layerInStart",{$layer:e,layerData:t})},onComplete:function(e){var t=e.data(r.defaults.init.dataKey);t&&("instant"!==t.mediaSettings.autoplay&&r.media.functions.playIfAllowed(e),t.in.zIndex&&r.transitions.layers.setZIndex(e,t,t.original._zIndex),r.plugins.callFunctions("layerInComplete",{$layer:e,layerData:t}),r.layers.set.dataAttribute("remove",e,"animating-in"),r.layers.set.dataAttribute("add",e,"active"))}},out:{forced:function(){var t=r.slides.current.index||r.slides.next.index;r.timelines.slides[t]||(r.timelines.slides[t]={}),r.slider.$layersWrapper.find(".ls-link").css({display:"none"});var i=!r.timelines._layers&&!t&&r.o.animateFirstSlide;if(i&&r.transitions.layers.timeline.create(!1,"next"),r.timelines.slides[t]._forceOut){var a=r.layers.get("current, in, static, notactive, notstaticin"),s=r.layers.get("current, in, static, active, staticout"),n=a.add(s),l=r.layers.get("current, in, static"),d=r.layers.get("current, out, static, active"),c=r.layers.get("current, out, notstatic"),p=l.add(d).add(c);0===r.timelines._layers.duration()&&(n.length&&r.transitions.layers.timeline.addLayers(n,"in",r.timelines._layers,r.timelines.slides[t]._forceOut,r.timelines._layersAlt,r.timelines.slides[t]._forceOutMirror,"current"),d.length&&r.transitions.layers.timeline.addLayers(d,"out",r.timelines._layers,r.timelines.slides[t]._forceOut,r.timelines._layersAlt,r.timelines.slides[t]._forceOutMirror,"current")),r.timelines._layers.pause();var u=r.timelines._layers.time();p.each(function(){var i=e(this),a=i.data(r.defaults.init.dataKey),n=-1!==a.out.startAt.indexOf("slidechangeonly"),p=-1!==a.textOut.startAt.indexOf("slidechangeonly");c.is(i)&&(a.should.reset=!0,a.timelines._loop&&r.timelines._layers&&(r.timelines._layers.remove(a.timelines._loop),a.timelines._loop.play())),l.is(i)&&a.settings.slideIn===r.slides.current.index&&!i.is("[data-ls-static-in]")?(s.is(i)&&r.timelines.to([a.timelines,"_staticOut",1,!0,!0,!0]),a.timelines._staticIn=new o.TimelineMax({paused:!0}),a.timelines._staticIn.addCallback(function(){r.layers.set.dataAttribute("add",i,"static-in")},0),a.timelines._in&&a.timelines._staticIn.add(a.timelines._in,a.timeline.transitioninstart-u),a.timelines._textIn&&a.timelines._staticIn.add(a.timelines._textIn,a.timeline.textinstart-u),a.timelines._textOut&&!p&&a.timelines._staticIn.add(a.timelines._textOut,a.timeline.textoutstart-u),a.timelines._out&&!n&&a.timelines._staticIn.add(a.timelines._out,a.timeline.transitionoutstart-u),a.timelines._loop&&(a.timelines._loop.pause(),r.timelines._layers.remove(a.timelines._loop),0===a.timelines._loop.progress()?a.timelines._staticIn.addCallback(function(){a.timelines._loop.play()},a.timeline.loopstart-u):a.timelines._loop.play()),a.timelines._staticIn.addCallback(function(){r.timelines.to([a.timelines,"_staticIn",null,!0,!0,!0])}),a.timelines._staticIn.play()):d.is(i)&&a.settings.slideOut===r.slides.current.index&&(-1===a.staticSlides.indexOf(r.slides.next.index)?(r.timelines.to([a.timelines,"_staticIn _in _textIn",null,!0,!0,!0]),r.timelines.has(a.timelines._textOut)&&!p&&r.timelines.to([a.timelines,"_textOut",null,!0,!0,!0]),r.timelines.has(a.timelines._out)&&!n&&r.timelines.to([a.timelines,"_out",null,!0,!0,!0]),a.timelines._staticOut?a.timelines._staticOut.paused()&&a.timelines._staticOut.play():(a.timelines._staticOut=new o.TimelineMax({paused:!0}),a.timelines._staticOut.addCallback(function(){r.layers.set.dataAttribute("remove",i,"static-in animating-in text-animating-in"),r.layers.set.dataAttribute("add",i,"static-out")},0),r.timelines.has(a.timelines._forceOut)&&a.timelines._staticOut.add(("prev"===r.navigation.direction?a.timelines._forceOutMirror:a.timelines._forceOut).paused(!1),0),r.timelines.has(a.timelines._forceTextOut)&&p&&a.timelines._staticOut.add("prev"===r.navigation.direction?a.timelines._forceTextOutMirror:a.timelines._forceTextOut,0),a.timelines._staticOut.addCallback(function(){r.layers.set.dataAttribute("remove",i,"static-out"),r.transitions.layers.reset(i,a),r.timelines.to([a.timelines,"_staticOut",null,!0,!0,!0]),r.timelines.to([a.timelines,"_out _forceOut _forceOutMirror _textOut _forceTextOut _forceTextOutMirror",1,!0,!0,!0])}),a.timelines._staticOut.play())):(r.timelines.slides[t]._forceOut.remove(a.timelines._forceOut),r.timelines.slides[t]._forceOutMirror.remove(a.timelines._forceOutMirror)))}),i?r.timelines.to([r.timelines,"_forceOut _forceOutMirror",null,!0,!0]):(r.timelines._layers.eventCallback("onStart",null).eventCallback("onComplete",null).eventCallback("onReverseComplete",null).eventCallback("onUpdate",null).stop().clear(),r.timelines._layersAlt.stop().clear(),("prev"===r.navigation.direction?r.timelines.slides[t]._forceOutMirror:r.timelines.slides[t]._forceOut).play(),r.slideshow.forceFastChange&&r.timelines.to([r.timelines,"_forceOut _forceOutMirror",1]))}},onStart:function(e){if(!e.is("[data-ls-hidden]")){var t=e.data(r.defaults.init.dataKey);r.plugins.callFunctions("layerOutStart",{$layer:e,layerData:t}),t.out.zIndex?r.transitions.layers.setZIndex(e,t,t.out.zIndex):t.in.zIndex&&r.transitions.layers.setZIndex(e,t,t.original._zIndex),r.layers.set.dataAttribute("add",e,"animating-out")}},onComplete:function(e){var t=e.data(r.defaults.init.dataKey);e.is("[data-ls-hidden]")?(r.slider.state.changingSlides||t.settings.slideOut!==r.slides.current.index)&&r.transitions.layers.reset(e,t):(t.randomValues={},(r.slider.state.changingSlides||t.settings.slideOut!==r.slides.current.index)&&r.transitions.layers.reset(e,t),t.hover.enabled&&r.transitions.layers.hover.disable(e),r.layers.set.dataAttribute("remove",e,"animating-out"),r.layers.set.dataAttribute("add",e,"hidden"),t.is.mediaLayer&&t.mediaProperties&&t.mediaProperties.type&&e.find("[data-ls-playing]").length&&r.media.functions.stop(!0,e),t.is.countdown&&r.countdown.stopInterval(t.countdownSettings),t.is.counter&&r.counter.stop(t.counterSettings),t.is.lottie&&t.lottie&&t.lottie.player&&(t.lottie.player.stop(),t.lottie.player.freeze()),r.plugins.callFunctions("layerOutComplete",{$layer:e,layerData:t}))}},reset:function(e,t){if(t.original._zIndex&&r.transitions.layers.setZIndex(e,t,t.original._zIndex),t.timelines._loop&&(r.timelines.to([t.timelines,"_loop",0]),o.TweenMax.set(t.elements.$loopWrapper[0],t.reset.altWrapperOnSlideChange)),t.parallax._timeline&&(t.parallax._timeline.stop().clear(),delete t.parallax._timeline),t.parallax._timeout&&(r.functions.clearTimers({timeout:t.parallax._timeout}),delete t.parallax._timeout),t.parallax.reset&&(o.TweenMax.killTweensOf(t.elements.$parallaxWrapper[0]),o.TweenMax.set(t.elements.$parallaxWrapper[0],t.reset.altWrapperOnSlideChange)),t.clip.enabled){var i=t.clip.userDefined?t.clip.default:t.clip.style;t.loop.enabled&&o.TweenMax.set(t.elements.$loopWrapper[0],i),t.inClipFromCSS.clipPath||o.TweenMax.set(t.elements.$clipWrapper[0],i)}t.clip.textShouldReset&&o.TweenMax.set(e.find(".ls-ln, .ls-wd, .ls-ch"),t.clip.none),o.TweenMax.set(t.elements.$wrapper[0],t.reset.wrapperOnSlideChange),o.TweenMax.set(e[0],{"-webkit-filter":t.original.filter,filter:t.original.filter}),t.should.update&&(t.textInNodesFrom.random={},t.textOutNodesTo.random={},r.layers.update.data(e)),t.should.reset=!1},timeline:{shouldRestart:!1,totalDurations:[],create:function(t,a){a=a||(t?"current":"next");var n,l,d,c,p=r.slides[a].index;if(r.plugins.callFunctions("createTimelineBefore",a),r.timelines.slides[p]||(r.timelines.slides[p]={}),r.transitions.curNext=a,r.transitions.layers.timeline.shouldRestart=!1,r.o.allowRestartOnResize&&r.slider.isScrollScene&&(r.transitions.layers.timeline.shouldRestart=!0),r.transitions.layers.timeline.resetStates(),r.timelines.to([r.timelines,"_layers _layersAlt",0,!0,!0,!0]),r.timelines._layers=new o.TimelineMax({paused:!0,onStart:function(){r.api.hasEvent("slideTimelineDidStart")&&r.api.triggerEvent("slideTimelineDidStart",r.api.eventData())},onComplete:function(){r.o.playByScroll&&r.o.playByScrollSkipSlideBreaks&&("next"===r.slideshow.direction?r.transitions.layers.timeline.scrollForward(!0):r.transitions.layers.timeline.scrollBackwards(!0,!0))},onReverseComplete:function(){r.api.hasEvent("slideTimelineDidReverseComplete")&&r.api.triggerEvent("slideTimelineDidReverseComplete",r.api.eventData()),r.transitions.layers.timeline.shouldReplay&&(r.transitions.layers.timeline.shouldRestart=!1,r.timelines._layers.play()),r.o.playByScroll&&r.o.playByScrollSkipSlideBreaks&&r.transitions.layers.timeline.scrollBackwards(!0,!1)},onUpdate:function(e){r.api.hasEvent("slideTimelineDidUpdate")&&r.api.triggerEvent("slideTimelineDidUpdate",e)},onUpdateParams:["{self}"]}),r.timelines._layersAlt=new o.TimelineMax({paused:!0}),this.totalDuration=0,this.progress=1,t||(r.slides.prev.index&&r.timelines.to([r.timelines.slides[r.slides.prev.index],"_forceOut _forceOutMirror",1,!0,!0,!0,!0]),r.timelines.slides[p]._forceOut=new o.TimelineMax({paused:!0,autoRemoveChildren:!0}),r.timelines.slides[p]._forceOut.lsSlideIndex=p,r.timelines.slides[p]._forceOutMirror=new o.TimelineMax({paused:!0,autoRemoveChildren:!0}),r.timelines.slides[p]._forceOutMirror.lsSlideIndex=p),r.plugins.callFunctions("createTimelineBeforeAdd",a),n=t?r.layers.get(a+", in"):r.layers.get(a+", in, notstatic, notactive").add(r.layers.get(a+", in, static, notactive, notstaticin")).add(r.layers.get(a+", in, static, active, staticout")),l=r.layers.get(a+", out, notstatic").add(r.layers.get(a+", out, static, active")),d=r.layers.get(a+", in, bgonly, notactive"),c=e().add(n).add(l).add(d),this.addLayers(n,"in",r.timelines._layers,r.timelines.slides[p]._forceOut,r.timelines._layersAlt,r.timelines.slides[p]._forceOutMirror),this.addLayers(l,"out",r.timelines._layers,r.timelines.slides[p]._forceOut,r.timelines._layersAlt,r.timelines.slides[p]._forceOutMirror),r.slides[a].data&&-1!==r.slides[a].data.duration&&r.slides[a].data.duration<this.totalDuration?(this.progress=r.slides[a].data.duration/this.totalDuration,r.debugMode&&r.debug.add("warn","slideTimeline.duration",[r.slides[a].data.duration,this.totalDuration])):r.timelines._layers.duration()>this.totalDuration&&(this.progress=this.totalDuration/r.timelines._layers.duration()),-1===r.slides[a].data.duration?(r.o.slideDuration&&e.isNumeric(r.o.slideDuration)&&r.o.slideDuration>-1?this.totalDuration=r.o.slideDuration/1e3:0===this.totalDuration&&(this.totalDuration=r.o.slideDurationWithoutLayers/1e3),r.o.inLayerPreview&&(r.o.hasInfiniteLoop&&"loop-transition"===r.o.layerPreviewPresetType?this.totalDuration+=5:"ending-transition"===r.o.layerPreviewPresetType?this.totalDuration+=.25:"hover-transition"!==r.o.layerPreviewPresetType&&(this.totalDuration+=.5)),r.slides[a].data.duration=this.totalDuration,r.slides[r.slides[a].index].data.duration=this.totalDuration):this.totalDuration=r.slides[a].data.duration,r.o.getData&&-1!==r.o.getData.indexOf("slideDuration"))return this.totalDurations.push(this.totalDuration),r.slides[a].index<r.slides.count?setTimeout(function(e){r.slideshow.changeTo(e,!0)},100,r.slides[a].index+1):r.functions.getData("slideDuration",this.totalDurations),!1;if(r.slider.isScrollScene){r.slider.$spacingWrapper.attr("data-scene-duration",this.totalDuration);var u=r.slider.$spacingWrapper.attr("data-scene-pre-duration")||!1;this.totalDuration!==parseFloat(u)&&r.resize.scene(!0)}this.addLayers(d,"in",r.timelines._layers,r.timelines.slides[p]._forceOut,r.timelines._layersAlt),!0===r.transitions.layers.timeline.shouldRestart&&r.debugMode&&r.debug.add("warn","slideTimeline.restart",r.o.allowRestartOnResize?"enabled":"disabled");for(var m=0;m<c.length;m++)e(c[m]).data(r.defaults.init.dataKey).parallax.enabled&&e(c[m]).data(r.defaults.init.dataKey).elements.$parallaxWrapper.attr("data-ls-parallax","active");r.transitions.layers.parallax.trigger();var h=r.transitions.layers.parallax.wrappers;if(h.randomGlobal[r.slides.next.index]&&(r.functions.objectIsEmpty(h.randomGlobal[r.slides.next.index].$2d)&&r.functions.objectIsEmpty(h.randomGlobal[r.slides.next.index].$3d)||r.timeouts["rp-global-"+r.slides.next.index]||r.transitions.layers.parallax.random.setTimer({globalSlideParallaxData:r.slides.next.parallax,slideIndex:r.slides.next.index})),r.transitions.layers.scroll.reset(),r.transitions.layers.scroll.trigger(),r.api.hasEvent("slideTimelineDidCreate")&&r.api.triggerEvent("slideTimelineDidCreate",{slideTimeline:r.timelines._layers,layersOnSlideTimeline:c,slideTimelineDuration:this.totalDuration}),r.timelines._layers.set(i.find('.ls-slide-backgrounds .ls-z:not([data-slide-index="'+r.slides[a].index+'"]) .ls-bg-wrap').toArray(),{display:"none"},0),r.transitions.timers.create(),r.transitions.timers.bar._transition&&(r.gui.timers.bar.$element.css("width",0),r.timelines._layers.add(r.transitions.timers.bar._transition.play(),0)),r.transitions.timers.circle._transition&&r.timelines._layers.add(r.transitions.timers.circle._transition.play(),0),r.transitions.timers.slidebar._transition&&r.timelines._layers.add(r.transitions.timers.slidebar._transition.play(),0),r.timelines._layers.call(function(){if(!r.timelines._layers.reversed()){if(r.api.hasEvent("slideTimelineDidComplete")){var t;if(r.o.inLayerPreview&&r.o.hasInfiniteLoop)r.layers.get("current, in").each(function(){(t=e(this).data(r.defaults.init.dataKey)).loop&&t.timelines._loop&&t.timelines._loop.stop().progress(0)});if(!1===r.api.triggerEvent("slideTimelineDidComplete",r.api.eventData()))return}r.functions.setStates(r.transitions.layers.timeline,{finished:!0}),!r.slideshow.isPaused()&&r.slideshow.state.running?r.slideshow.changeTo(r.slides.next.index):r.slideshow.state.pausedByLastCycle&&r.transitions.timers.reverse()}},[],this,r.slides[a].data.duration),r.slides.next.data.$link&&r.slides.next.data.$link.css({display:"block"}),(!r.o.startInViewport||"inside"!==r.slider.position.toViewport&&!r.o.playByScrollStart&&r.slider.state.waitForGettingInViewport)&&r.o.startInViewport||!(r.slider.isPopup&&r.slider.state.popupIsVisible&&r.slider.state.popupShouldStart)&&r.slider.isPopup||(r.o.pauseLayers&&r.slideshow.isPaused()?r.transitions.layers.timeline.pause(0):r.slider.isScrollScene||r.transitions.layers.timeline.play(),r.o.playByScroll&&"up"===r.device.scroll.directionAtSlideTransitionStart&&r.timelines._layers.progress(1)),r.timelines._layersAlt.play(),r.slider.isScrollScene&&r.slider.set.offset(),i.trigger("mouseleave.globalhover"+s),i.off("mouseenter.globalhover"+s+" mouseleave.globalhover"+s+" mousemove.globalhover"+s),r.slides[a].data.globalhover){var f=r.layers.get(a+",in,notactive").add(r.layers.get("static,active")).not("[data-ls-skipglobalhover]");i.on("mouseenter.globalhover"+s,function(){f.each(function(){r.transitions.layers.hover.mouseEnter(e(this),e(this).data(r.defaults.init.dataKey))})}),i.on("mouseleave.globalhover"+s,function(){f.each(function(){r.transitions.layers.hover.mouseLeave(e(this),e(this).data(r.defaults.init.dataKey))})}),i.on("mousemove.globalhover"+s,function(){f.each(function(){r.transitions.layers.hover.mouseMove(e(this),e(this).data(r.defaults.init.dataKey))})})}},prepare:function(){r.slides.next.data.overflow&&"hidden"!==r.slides.next.data.overflow?(r.slider.$layersWrapper.addClass("ls-visible"),r.slider.$slideBGWrapper.addClass("ls-visible")):(r.slider.$layersWrapper.removeClass("ls-visible"),r.slider.$slideBGWrapper.removeClass("ls-visible")),this.create()},getTiming:function(t,i,a,s){if("number"==typeof i)return i;i=i.toLowerCase();var o,n,l,d,c,p=r.defaults.layer.timelineHierarchy,u=0;if(-1!==i.indexOf("*")&&(c="*"),-1!==i.indexOf("/")&&(c="/"),-1!==i.indexOf("+")&&(c="+"),-1!==i.indexOf("-")&&(c="-"),c)if(d=i.split(c),o=e.trim(d[0]),l=parseInt(e.trim(d[1])),p[o]&&-1!==p[a][1].indexOf(p[o][0])){if(!t.timeline[o]&&p[o][0]>1){var m,h=p[o][0]-1||1;for(var f in p)p[f][0]===h&&(m=f);o=m}if(n="number"==typeof t.timeline[o]?t.timeline[o]:t.timeline[o](t),s)u=l/1e3;else switch(c){case"*":u=n*l;break;case"/":u=n/l;break;case"+":u=n+l/1e3;break;case"-":u=n-l/1e3}}else r.debugMode&&(p[o]||r.debug.add("warn","layerTransition.timing1",o),-1===p[a][1].indexOf(p[o][0])&&r.debug.add("warn","layerTransition.timing3",[o,p[o],a,p[a]])),("+"===c||s)&&(u=l/1e3);else p[o=e.trim(i)]&&-1!==p[a][1].indexOf(p[o][0])?u=s?0:"number"==typeof t.timeline[o]?t.timeline[o]:t.timeline[o](t):r.debugMode&&(p[o]?-1===p[a][1].indexOf(p[o][0])&&r.debug.add("warn","layerTransition.timing3",[o,p[o],a,p[a]]):r.debug.add("warn","layerTransition.timing1",o));return(u!=u||u<0)&&(r.debugMode&&r.debug.add("warn","layerTransition.timing2",[a,o,u]),u=0),u},addLayers:function(t,i,a,s,n,l,d){t.each(function(){var t=this,c=e(t),p=c.data(r.defaults.init.dataKey),u=p.elements.$wrapper,m=p.elements.$clipWrapper,h=p.elements.$loopWrapper,f=p.elements.$parallaxWrapper,g=0,y=p.settings.skipViewport&&r.slideshow.state.changed<1?n:a,v="loop"==p.settings.skipViewport&&r.slideshow.state.changed<1?n:a;d=void 0!==d?d:"next",r.transitions.firstSlide&&r.o.animateFirstSlide&&(r.transitions.nextSlide=r.slides.next),"in"===i&&p.timelines._staticOut&&r.timelines.to([p.timelines,"_staticOut",1,!0,!0,!0]);var x=e.extend(!0,{},p.inLayerFrom),S=x.css,w=e.extend({},p.inLayerShouldBeConverted),b=e.extend(!0,{},p.outLayerTo),T=b.css,k=e.extend({},p.outLayerShouldBeConverted),C=e.extend(!0,{},p.textInNodesFrom),O=e.extend(!0,{},p.textInShouldBeConverted),P=e.extend(!0,{},p.textOutNodesTo),I=e.extend(!0,{},p.textOutShouldBeConverted),L={$layer:c,layerData:p,slide:d,transitionType:i,timelines:{_layers:a,_layersAlt:n,_selectedSlideTimeline:y,_selectedLoopTimeline:v,_forceOut:s,_forceOutMirror:l},transitionData:{inLayerFrom:x,inLayerFromCSS:S,inLayerShouldBeConverted:w,outLayerTo:b,outLayerToCSS:T,outLayerShouldBeConverted:k,textInNodesFrom:C,textInShouldBeConverted:O,textOutNodesTo:P,textOutShouldBeConverted:I}};if(p.should.reset&&r.transitions.layers.reset(c,p),r.plugins.callFunctions("addLayersBefore",L),c.hasClass("ls-bg"))r.plugins.callFunctions("addLayersBGStart",L),p.kenBurns.zoom&&a.fromTo(c.closest(".ls-bg-wrap"),r.transitions.nextSlide.data.duration+r.transitions.nextSlide.data.calculatedTimeShift,{autoCSS:!1,css:p.kenBurns.from},{autoCSS:!1,css:p.kenBurns.to,ease:o.Quad.easeInOut},-r.transitions.nextSlide.data.calculatedTimeShift),r.plugins.callFunctions("addLayersBGBeforeFilter",L),e.isEmptyObject(p.filter.values.bgFrom)&&e.isEmptyObject(p.filter.values.bgTo)||(p.filter.transitions.bg||(p.filter.transitions.bg=r.transitions.layers.filters.createTransition(p,"bg",p.filter.values.bgFrom,p.filter.values.bgTo)),y.to([{p:0},t],r.transitions.nextSlide.data.duration,{p:1,autoCSS:!1,ease:o.Sine.easeInOut,onUpdate:r.transitions.layers.filters.animate,onUpdateParams:["{self}",p.filter.transitions.bg]},0)),r.plugins.callFunctions("addLayersBGEnd",L);else{if("in"===i){if(p.in.enabled?(p.timelines._in=new o.TimelineMax,r.plugins.callFunctions("addLayersInStart",L),p.settings.timelineIsCalculated&&!p.settings.recalculateTimeline||("startAtFirst"==p.settings.recalculateTimeline&&(p.settings.recalculateTimeline=!1,p.settings.timelineIsCalculated=!1),"number"!=typeof p.in.startAt&&(p.in.startAt=0),"number"!=typeof p.in.startAtFirst&&(p.in.startAtFirst=0),p.timeline.transitioninstart=r.transitions.firstSlide&&p.in.startAtFirst?p.in.startAtFirst:p.in.startAt,p.timeline.transitioninend=p.timeline.transitioninstart+p.in.duration),r.transitions.firstSlide&&p.in.startAtFirst&&(p.settings.recalculateTimeline="startAtFirst"),r.resize.performTransformOperations(p.inLayerToCSS,S),p.in.mirror&&"prev"===r.navigation.direction&&r.resize.mirrorTransitionProperties({transitionProperties:S,transitionPropertiesShouldBeConverted:w,transitionType:"normal",mirrorProperties:p.in.mirror}),r.resize.transformProperties(c,p,S,w,null,null,"in"),r.resize.styleProperties(c,p,p.inLayerStyleFromCSS,p.inLayerStyleShouldBeConvertedFrom),r.resize.styleProperties(c,p,p.inLayerStyleToCSS,p.inLayerStyleShouldBeConvertedTo),S.transformPerspective=p.transformPerspective.layer*p.settings.calculatedratio,r.plugins.callFunctions("addLayersInBeforeClip",L),p.clip.enabled&&(p.clip.style.css.clipPath=r.functions.convert.clipProperties(p.clip.style.css.clipPath,p,c,!0),p.inClipFromCSS.clipPath||p.clip.style.css.clipPath===p.clip.default.css.clipPath||(p.inClipFromCSS.clipPath=p.clip.default.css.clipPath)),p.inClipFromCSS.clipPath&&(p.inClipFromCSS.clipPath=r.functions.convert.clipProperties(p.inClipFromCSS.clipPath,p,c),p.timelines._in.fromTo(m[0],p.in.duration,p.inClipFrom,p.inClipTo,0)),r.plugins.callFunctions("addLayersInBeforeFilter",L),e.isEmptyObject(p.filter.values.in)?e.isEmptyObject(p.filter.values.out)||c.css("filter",p.original.filter):(p.filter.transitions.in||(p.filter.transitions.in=r.transitions.layers.filters.createTransition(p,"in",p.filter.values.in,p.filter.values.style)),p.timelines._in.to([{p:0},t],p.in.duration,{p:1,autoCSS:!1,ease:p.inLayerTo.ease,onUpdate:r.transitions.layers.filters.animate,onUpdateParams:["{self}",p.filter.transitions.in]},0)),r.plugins.callFunctions("addLayersInBeforeSmartBG",L),p.is.smartBG&&-1!==p.styleSettings.smartbg.indexOf("in")&&(p.inLayerStyleFrom.css["--x"]=parseInt(p.responsive["--x"])-S.x+"px",p.inLayerStyleTo.css["--x"]=parseInt(p.responsive["--x"])+"px",p.inLayerStyleFrom.css["--y"]=parseInt(p.responsive["--y"])-S.y+"px",p.inLayerStyleTo.css["--y"]=parseInt(p.responsive["--y"])+"px"),p.is.smartBG&&(r.slides[r.slides.current.index||1].data.hasSmartBG=!0),r.plugins.callFunctions("addLayersInBeforeCounter",L),p.is.counter&&(p.timelines._in.addCallback(function(){c.text(r.counter.applyNumberFormat(c,p.counterSettings,parseFloat(p.counterSettings.start)))},0),p.timelines._in.addCallback(function(){r.counter.start(c,p.counterSettings)},"transitioninstart"===p.counterSettings.startAt?0:p.in.duration)),r.plugins.callFunctions("addLayersInBeforeTL",L),0===p.timeline.transitioninstart&&0===p.in.duration?(p.inLayerTo.css.transformOrigin=x.css.transformOrigin,p.inLayerTo.css.transformPerspective=x.css.transformPerspective,p.timelines._in.set(u[0],p.inLayerTo,0),p.timelines._in.set(t,p.inLayerStyleTo,0)):(p.timelines._in.fromTo(u[0],p.in.duration,x,p.inLayerTo,0),p.timelines._in.fromTo(t,p.in.duration,p.inLayerStyleFrom,p.inLayerStyleTo,0)),y.add(p.timelines._in,p.timeline.transitioninstart)):(p.timeline.transitioninstart=0,p.timeline.transitioninend=0),r.plugins.callFunctions("addLayersInAfter",L),p.is.textLayer&&(p.timelines._textIn=new o.TimelineMax,(p.textIn.type||p.textOut.type)&&r.transitions.layers.splitType.resetNodes(c,p),p.textIn.enabled)){r.plugins.callFunctions("addLayersTextInStart",L),C.clipPath&&(C.clipPath=r.functions.convert.clipProperties(C.clipPath,p,c),p.textInNodesTo.css.clipPath=p.clip.default.css.clipPath);var _=!(!p.textIn.mirror||"prev"!==r.navigation.direction),$=r.transitions.layers.splitType.setNodesSequence(p.textIn.type.split("_"),p.textIn.ns);p.textIn.nodes=_?$[1]:$[0],_&&r.resize.mirrorTransitionProperties({transitionProperties:C,transitionPropertiesShouldBeConverted:O,transitionType:"text",mirrorProperties:p.textIn.mirror}),r.resize.transformProperties(c,p,C,O,null,p.textIn.nodes,"textin"),C.transformPerspective=p.transformPerspective.text*p.settings.calculatedratio,e.isEmptyObject(O.random)||r.transitions.layers.splitType.setRandomProperties(c,p,O.random,C,"In"),e.isEmptyObject(C.random)||r.transitions.layers.splitType.setRandomProperties(c,p,C.random,C,"In"),delete C.random,p.settings.timelineIsCalculated||(p.timeline.textinstart=r.transitions.layers.timeline.getTiming(p,p.textIn.startAt,"textinstart"),p.timeline.textinend=p.timeline.textinstart+(p.textIn.nodes.length-1)*p.textIn.shiftNodes+p.textIn.duration),p.in.enabled||p.timelines._textIn.to(u[0],0,e.extend(!0,{},p.inLayerTo,p.init.wrapper),0),r.plugins.callFunctions("addLayersTextInBeforeStyles",L),C.color?p.textInNodesToCSS.color=p.original.color:p.textOutNodesTo.color&&(C.color=p.original.color),r.plugins.callFunctions("addLayersTextInBeforeTLStyles",L),p.timelines._textIn.set(t,p.textIn.layerStyle,0),window.getSelection&&r.browser.isSafari&&p.timelines._textIn.addCallback(function(){try{window.getSelection().setBaseAndExtent(t,0,t,1e3)}catch(e){}window.getSelection().removeAllRanges()},Number.EPSILON),r.plugins.callFunctions("addLayersTextInBeforeTL",L),p.timelines._textIn.addCallback(function(){r.layers.set.dataAttribute("add",c,"text-animating-in"),r.plugins.callFunctions("layerTextInStart",{$layer:c,layerData:p})},0),p.timelines._textIn.staggerFromTo(p.textIn.nodes,p.textIn.duration,C,p.textInNodesTo,p.textIn.shiftNodes,0,function(){r.layers.set.dataAttribute("remove",c,"text-animating-in"),r.layers.set.dataAttribute("add",c,"active"),r.plugins.callFunctions("layerTextInComplete",{$layer:c,layerData:p})}),y.add(p.timelines._textIn,p.timeline.textinstart),r.plugins.callFunctions("addLayersTextInAfter",L)}if(p.is.keyframe&&r.o.playByScroll&&a.addPause(p.timeline.allinend(),function(){setTimeout(function(){delete r.timeouts.scroll,r.transitions.layers.timeline.timeScaleModifier=0,r.device.scroll.timeout=250},500)}),p.parallax.enabled&&"auto"==p.parallax.event){r.transitions.layers.parallax.auto(),p.parallax._timeline=new o.TimelineMax({paused:!0,repeat:-1===p.parallax.count?-1:p.parallax.count-1});var M,F={ease:o.Linear.easeNone,immediateRender:!1,onUpdate:function(e,t,i,a,s,r,n){o.TweenMax.set(i,{x:-t.x*(a/50)*parseInt(s),y:-t.y*(a/50)*parseInt(s),"--rx":t.x*(a/50)*parseInt(s)+"px","--ry":t.y*(a/50)*parseInt(s)+"px",rotationX:"3d"==r?t.y/(100/n):0,rotationY:"3d"==r?-t.x/(100/n):0})}},B=function(e,t){return{x:e*r.resize.ratio,y:t*r.resize.ratio}},W="horizontal"==p.parallax.path||"vertical"==p.parallax.path,D="backward"===p.parallax.direction?-1:1;switch(W&&(F.ease=o.Quad.easeInOut,F.duration=p.parallax.pathDuration/2,M=e.extend(!0,{},F)),p.parallax.path){default:case"circle":p.parallax.dummy=B(0,-10),F.bezier={curviness:1.5,values:[B(10,0),B(0,10),B(-10,0),B(0,-10)]};break;case"oval-h":p.parallax.dummy=B(0,-10),F.bezier={type:"thru",curviness:1,values:[B(20,0),B(0,10),B(-20,0),B(0,-10)]};break;case"oval-v":p.parallax.dummy=B(0,-20),F.bezier={type:"thru",curviness:1,values:[B(10,0),B(0,20),B(-10,0),B(0,-20)]};break;case"infinity":p.parallax.dummy=B(0,0),F.bezier={curviness:1.3,values:[B(20,-10),B(30,0),B(20,10),B(0,0),B(-20,-10),B(-30,0),B(-20,10),B(0,0)]};break;case"square":p.parallax.dummy=B(-10,-10),F.bezier={curviness:.5,values:[B(10,-10),B(10,10),B(-10,10),B(-10,-10)]};break;case"diamond":p.parallax.dummy=B(0,-10),F.bezier={curviness:.5,values:[B(10,0),B(0,10),B(-10,0),B(0,-10)]};break;case"triangle":p.parallax.dummy=B(0,10),F.bezier={curviness:.5,values:[B(-10,-10),B(10,-10),B(0,10)]};break;case"pentagon":p.parallax.dummy=B(0,10),F.bezier={curviness:.5,values:[B(-9.51,3.09),B(-5.88,-8.09),B(5.88,-8.09),B(9.51,3.09),B(0,10)]};break;case"horizontal":p.parallax.dummy=B(10*D,0),F.x=-10*D*r.resize.ratio,M.x=10*D*r.resize.ratio;break;case"vertical":p.parallax.dummy=B(0,-10*D),F.y=10*D*r.resize.ratio,M.y=-10*D*r.resize.ratio}if(F.onUpdateParams=["{self}",p.parallax.dummy,f[0],p.parallax.distance,p.parallax.level,p.parallax.type,p.parallax.rotation],W)M.onUpdateParams=["{self}",p.parallax.dummy,f[0],p.parallax.distance,p.parallax.level,p.parallax.type,p.parallax.rotation],p.parallax._timeline.to(p.parallax.dummy,F.duration,F).to(p.parallax.dummy,M.duration,M);else if(F.bezier){if("backward"===p.parallax.direction){var z=F.bezier.values;z.reverse(),z.push(z.shift())}p.parallax._timeline.to(p.parallax.dummy,p.parallax.pathDuration,F)}p.settings.timelineIsCalculated&&!p.is.static||(p.timeline.autoparallaxstart=r.transitions.layers.timeline.getTiming(p,p.parallax.startAt,"autoparallaxstart"),p.timeline.autoparallaxend=p.timeline.autoparallaxstart+(-1===p.parallax.count?p.parallax.pathDuration:p.parallax._timeline.duration())),-1===p.parallax.count?a.addCallback(function(){p.parallax._timeline.play()},p.timeline.autoparallaxstart):(a.add(p.parallax._timeline,p.timeline.autoparallaxstart),p.parallax._timeline.play()),r.transitions.layers.timeline.shouldRestart=!0}if(p.parallax.enabled&&"randomLocal"==p.parallax._event&&a.addCallback(function(){r.transitions.layers.parallax.random.setTimer({layerData:p})},p.timeline[p.parallax.randomStartAt]),p.loop.enabled){r.plugins.callFunctions("addLayersLoopStart",L),r.timelines.to([p.timelines,"_loop",0,!0,!0,!0]),p.loop.maxIterations=1;var A=e.extend({},p.loopLayerShouldBeConverted),V={transformOrigin:r.functions.convert.transformOrigin(p.loopLayerShouldBeConverted.transformOrigin,c,p,c.data(r.defaults.init.dataKey).elements.$outerStyleWrapper),looptransformPerspective:p.transformPerspective.loop*p.settings.calculatedratio},R=!0,N=!0;delete A.filter,p.loop.timings={},p.timelines._loop=new o.TimelineMax({paused:!0,smoothChildTiming:!0,onComplete:function(){-1===p.loop.count&&(this.lsRepeats++,this.pause(),-1===p.loop.count&&(this.clear(),this.time(0,!0)),p.loop.yoyo&&(this.yoyoreverse=!0),H(this,!0))}}),p.timelines._loop.lsRepeats=0,p.timelines._loop.lsWrapper=p.elements.$loopWrapper[0];var E=function(t,i){var a={};if(p.loop.timings.tweenDelay=r.functions.convert.randomProperties(p.loopTimingsShouldBeConverted.tweenDelay,"tweenDelay","loop",c,p)/1e3,p.loop.timings.duration=r.functions.convert.randomProperties(p.loopTimingsShouldBeConverted.duration,"duration","loop",c,p)/1e3,i||t.yoyoreverse)t.yoyoreverse=!1,p.loopFrom=e.extend(!0,{},p.loopInitial);else for(var s in p.loopToCSS)p.loopFrom.css[s]=p.loopToCSS[s];for(var o in A)if(A.hasOwnProperty(o)){var n=A[o],l=/^[+\-*/]=\s*-?\d+(\.\d+)?(lw|lh|sw|sh|px|%)?$/.test(n),d=-1!==n.indexOf(r.defaults.init.staggerSplitChar)&&(n+"").charAt(0)!==r.defaults.init.openingBracket,u=/random/.test(n)||(n+"").charAt(0)===r.defaults.init.openingBracket;if(d){var m=n.split(r.defaults.init.staggerSplitChar);p.loop.maxIterations=Math.max(m.length,p.loop.maxIterations)}if(l){var h,f=n.split("="),g=e.trim(f[0]),y=r.functions.convert.randomProperties(e.trim(f[1]),o,"loop",c,p),v=p.loopFrom.css[o];switch(g){case"+":h=v+y;break;case"-":h=v-y;break;case"*":h=v*y;break;case"/":h=v/y}p.loopToCSS[o]=h}else u||d?p.loopToCSS[o]=r.functions.convert.randomProperties(A[o],o,"loop",c,p):(p.loopToCSS[o]=A[o],"x"!==o&&"y"!==o||(a[o]=p.loopToCSS[o]))}e.isEmptyObject(a)||r.resize.transformProperties(c,p,p.loopToCSS,a,null,null,"loop")},H=function(i,a){for(var s,n=new o.TimelineMax({paused:!0}),l=r.functions.convert.randomProperties(p.loopTimingsShouldBeConverted.repeatDelay,"repeatDelay","loop",c,p)/1e3,d=r.functions.convert.randomProperties(p.loopTimingsShouldBeConverted.yoyoDelay,"yoyoDelay","loop",c,p)/1e3,u=0;u<p.loop.maxIterations;u++){s=n.duration(),E(i,!p.loop.resume||!s&&!i.duration()&&0===i.lsRepeats);var m=e.extend(!0,{},p.loopFrom),f=e.extend(!0,{},p.loopTo),g=-m.css.x+"px",y=-m.css.y+"px",v=-f.css.x+"px",x=-f.css.y+"px",S=p.loop.timings.duration,w=p.loop.timings.tweenDelay;if(r.plugins.callFunctions("addLayersLoopBeforeFilter",L),N&&!e.isEmptyObject(p.filter.values.loop)&&(p.filter.transitions.loop||(p.filter.transitions.loop=r.transitions.layers.filters.createTransition(p,"loop",e.isEmptyObject(p.filter.values.afterIn)?p.filter.values.style:p.filter.values.afterIn,p.filter.values.loop)),n.to([{p:0},t],S,{p:1,autoCSS:!1,immediateRender:!1,ease:p.loopTo.ease,onUpdate:r.transitions.layers.filters.animate,onUpdateParams:["{self}",p.filter.transitions.loop]},s)),n.fromTo(h[0],S,m,f,s),r.plugins.callFunctions("addLayersLoopBeforeSmartBG",L),p.is.smartBG&&-1!==p.styleSettings.smartbg.indexOf("loop")&&n.fromTo(t,S,{immediateRender:!1,"--lx":g,"--ly":y},{ease:p.settings.smartbgease||p.loopTo.ease,"--lx":v,"--ly":x},s),r.plugins.callFunctions("addLayersLoopBeforeClip",L),p.loopClipToCSS.clipPath){p.loopClipToCSS.clipPath=r.functions.convert.clipProperties(p.loopClipToCSS.clipPath,p,c),(N||-1!==["polygon(100% 0%,100% 100%,0% 100%,0% 0%)","polygon(0% 100%, 0% 0%, 100% 0%, 100% 100%)"].indexOf(p.loopClipToCSS.clipPath))&&n.set(h[0],p.loopClipFrom,s),n.to(h[0],S,p.loopClipTo,s)}u<p.loop.maxIterations-1&&n.to({immediateRender:!1},w,{}),N=!1}r.plugins.callFunctions("addLayersLoopBeforeTL",L),R||i.to({immediateRender:!1},l,{}),i.add(r.gsap.TweenMax.fromTo(n,n.duration(),{progress:0},{progress:1,ease:r.gsap.Linear.easeNone,immediateRender:!1})),p.loop.yoyo&&(i.to({immediateRender:!1},Math.max(0,l+d),{}),i.add(r.gsap.TweenMax.fromTo(n,n.duration(),{progress:1},{progress:0,ease:r.gsap.Linear.easeNone,immediateRender:!1}))),a&&i.play(),R=!1};if(-1===p.loop.count&&(p.timelines._loop.clear(),p.timelines._loop.time(0,!0)),p.timelines._loop.set(h[0],V,0),H(p.timelines._loop),p.loop.count>1)for(;p.timelines._loop.lsRepeats<p.loop.count-1;)p.timelines._loop.lsRepeats++,p.loop.yoyo&&(p.timelines._loop.yoyoreverse=!0),H(p.timelines._loop,!0);p.settings.timelineIsCalculated&&!p.is.static||(p.timeline.loopstart=r.transitions.layers.timeline.getTiming(p,p.loop.startAt,"loopstart"),p.timeline.loopend=p.timeline.loopstart+p.timelines._loop.duration()),r.plugins.callFunctions("addLayersLoopBeforeTLInf",L),-1!==p.loop.count&&("looplayers"===r.o.pauseOnHover||r.gui.timers.slidebar.$element||r.o.playByScroll)?(v.add(p.timelines._loop,p.timeline.loopstart),p.timelines._loop.play()):v.addCallback(function(){p.timelines._loop.play()},p.timeline.loopstart)}if(r.plugins.callFunctions("addLayersLoopBeforeStatic",L),p.is.static&&(p.timeline.staticfrom=p.timeline.transitioninend,p.timeline.staticto="100%",p.settings.timelineIsCalculated||(g=Math.max(p.timeline.allinandloopend(),0),r.transitions.layers.timeline.totalDuration=Math.max(r.transitions.layers.timeline.totalDuration,g))),r.plugins.callFunctions("addLayersLoopAfter",L),p.is.lottie&&p.lottie.isReady){var Y=p.lottie.options.startAt,X=p.lottie.options.delay/1e3||0,G=(Y?p.timeline[Y]:0)+X;"autoplay"===p.lottie.options.trigger?y.addCallback(function(){p.lottie.player.unfreeze(),p.lottie.player.play()},G):"scroll"===p.lottie.options.trigger&&(p.lottie.startTime+=G,p.lottie.endTime+=G,p.lottie.startTime=parseFloat(p.lottie.startTime.toFixed(3)),p.lottie.endTime=parseFloat(p.lottie.endTime.toFixed(3)))}}if(p.is.textLayer&&p.textOut.enabled&&("out"===i&&p.textOut.startAt.indexOf("slidechangeonly")>-1||"in"===i&&-1===p.textOut.startAt.indexOf("slidechangeonly"))){-1!==p.textOut.startAt.indexOf("slidechangeonly")&&p.settings.slideOut===r.slides[d].index?(p.timelines._forceTextOut=new o.TimelineMax,p.timelines._forceTextOutMirror=new o.TimelineMax):-1===p.textOut.startAt.indexOf("slidechangeonly")&&(p.timelines._textOut=new o.TimelineMax);var U=p.clip.enabled&&!p.loopClipToCSS.clipPath&&p.clip.style.css.clipPath==p.clip.default.css.clipPath;r.plugins.callFunctions("addLayersTextOutStart",L);var K=r.transitions.layers.splitType.setNodesSequence(p.textOut.type.split("_"),p.textOut.ns);p.textOut.nodes=K[0],r.resize.transformProperties(c,p,p.textOutNodesTo,p.textOutShouldBeConverted,p.textOutNodesFrom,p.textOut.nodes,"textout"),p.textOutNodesTo.clipPath&&(p.textOutNodesTo.clipPath=r.functions.convert.clipProperties(p.textOutNodesTo.clipPath,p,c),p.textOutNodesFrom.clipPath=p.clip.default.css.clipPath),p.textOut.mirror?(p.textOut.nodesMirror=K[1],r.resize.mirrorTransitionProperties({transitionProperties:P,transitionPropertiesShouldBeConverted:I,transitionType:"text",mirrorProperties:p.textOut.mirror}),r.resize.transformProperties(c,p,P,I,p.textOutNodesFrom,p.textOut.nodes,"textoutmirror")):p.textOut.nodesMirror=K[0],p.textOutNodesFrom.transformPerspective=p.transformPerspective.text*p.settings.calculatedratio,e.isEmptyObject(p.textOutShouldBeConverted.random)||r.transitions.layers.splitType.setRandomProperties(c,p,p.textOutShouldBeConverted.random,p.textOutNodesTo,"Out"),e.isEmptyObject(p.textOutNodesTo.random)||r.transitions.layers.splitType.setRandomProperties(c,p,p.textOutNodesTo.random,p.textOutNodesTo,"Out"),delete p.textOutNodesTo.random,p.textOut.mirror&&(e.isEmptyObject(I.random)||r.transitions.layers.splitType.setRandomProperties(c,p,I.random,P,"Out"),e.isEmptyObject(P.random)||r.transitions.layers.splitType.setRandomProperties(c,p,P.random,P,"Out"),delete P.random),p.settings.timelineIsCalculated||(p.timeline.textoutstart=r.transitions.layers.timeline.getTiming(p,p.textOut.startAt,"textoutstart"),p.timeline.textoutend=p.timeline.textoutstart+(p.textOut.nodes.length-1)*p.textOut.shiftNodes+p.textOut.duration),r.plugins.callFunctions("addLayersTextOutBeforeStyles",L),p.textOutNodesTo.color&&(p.textOutNodesFrom.color=p.original.color);var j=function(){r.layers.set.dataAttribute("add",c,"text-animating-out"),-1===p.textOut.startAt.indexOf("slidechangeonly")&&r.layers.set.dataAttribute("add",c,"active"),r.plugins.callFunctions("layerTextOutStart",{$layer:c,layerData:p})},q=function(){r.layers.set.dataAttribute("remove",c,"text-animating-out"),-1===p.textOut.startAt.indexOf("slidechangeonly")||p.out.enabled||r.layers.set.dataAttribute("add",c,"hidden"),r.plugins.callFunctions("layerTextOutComplete",{$layer:c,layerData:p})};if(r.plugins.callFunctions("addLayersTextOutBeforeTL",L),-1!==p.textOut.startAt.indexOf("slidechangeonly")&&p.settings.slideOut===r.slides[d].index)p.timelines._forceTextOut.addCallback(j,0),p.timelines._forceTextOutMirror.addCallback(j,0),p.timelines._forceTextOut.set(t,p.textOut.layerStyle,0),p.timelines._forceTextOutMirror.set(t,p.textOut.layerStyle,0),U&&(p.timelines._forceTextOut.fromTo(m[0],0,p.clip.style,p.clip.none,0),p.timelines._forceTextOutMirror.fromTo(m[0],0,p.clip.style,p.clip.none,0)),p.timelines._forceTextOut.staggerFromTo(p.textOut.nodes,p.textOut.duration,p.textOutNodesFrom,p.textOutNodesTo,p.textOut.shiftNodes,0,q),p.timelines._forceTextOutMirror.staggerFromTo(p.textOut.nodesMirror,p.textOut.duration,p.textOutNodesFrom,P,p.textOut.shiftNodes,0,q),p.timelines._forceTextOut.to(u[0],0,p.reset.wrapperOnTimelineEnd,p.timelines._forceTextOut.duration()),p.timelines._forceTextOutMirror.to(u[0],0,p.reset.wrapperOnTimelineEnd,p.timelines._forceTextOutMirror.duration()),p.timelines._forceTextOut.timeScale(p.timelines._forceTextOut.duration()/r.o.forceLayersOutDuration),p.timelines._forceTextOutMirror.timeScale(p.timelines._forceTextOutMirror.duration()/r.o.forceLayersOutDuration),s.add(p.timelines._forceTextOut,0),l.add(p.timelines._forceTextOutMirror,0);else if(-1===p.textOut.startAt.indexOf("slidechangeonly")){var Q=Math.max(p.timeline.textoutstart,p.timeline.textinend);p.timelines._textOut.addCallback(j,0),p.timelines._textOut.set(t,p.textOut.layerStyle,0),U&&p.timelines._textOut.fromTo(m[0],0,p.clip.style,p.clip.none,0),p.timelines._textOut.staggerFromTo(p.textOut.nodes,p.textOut.duration,p.textOutNodesFrom,p.textOutNodesTo,p.textOut.shiftNodes,0,q),p.is.static||(s.to(u[0],0,p.reset.wrapperOnTimelineEnd,r.o.forceLayersOutDuration),l.to(u[0],0,p.reset.wrapperOnTimelineEnd,r.o.forceLayersOutDuration)),a.add(p.timelines._textOut,Q)}-1===p.textOut.startAt.indexOf("slidechangeonly")&&(g=Math.max(g,p.timeline.textoutandloopend())),r.transitions.layers.timeline.totalDuration=Math.max(r.transitions.layers.timeline.totalDuration,g),r.plugins.callFunctions("addLayersTextOutAfter",L)}if(p.out.enabled&&("out"===i||"in"===i&&p.is.static&&"slidechangeonly"!==p.out.startAt)){if("slidechangeonly"===p.out.startAt||c.is("[data-ls-animating-out]")||(p.timelines._out=new o.TimelineMax),p.timelines._forceOut=new o.TimelineMax,p.timelines._forceOutMirror=new o.TimelineMax,r.plugins.callFunctions("addLayersOutStart",L),r.resize.performTransformOperations(p.inLayerToCSS,p.outLayerToCSS),r.resize.transformProperties(c,p,p.outLayerToCSS,p.outLayerShouldBeConverted,p.outLayerFromCSS,null,"out"),r.resize.styleProperties(c,p,p.outLayerStyleFromCSS,p.outLayerStyleShouldBeConvertedFrom),r.resize.styleProperties(c,p,p.outLayerStyleToCSS,p.outLayerStyleShouldBeConvertedTo),p.outLayerFromCSS.transformPerspective=p.transformPerspective.layer*p.settings.calculatedratio,p.out.mirror&&(r.resize.performTransformOperations(p.inLayerToCSS,T),r.resize.mirrorTransitionProperties({transitionProperties:T,transitionPropertiesShouldBeConverted:k,transitionType:"normal",mirrorProperties:p.out.mirror}),r.resize.transformProperties(c,p,T,k,p.outLayerFromCSS,null,"outmirror")),r.plugins.callFunctions("addLayersOutBeforeSmartBG",L),p.is.smartBG&&-1!==p.styleSettings.smartbg.indexOf("out")&&(p.outLayerStyleFrom.css["--x"]=parseInt(p.responsive["--x"])+"px",p.outLayerStyleTo.css["--x"]=parseInt(p.responsive["--x"])-p.outLayerToCSS.x+"px",p.outLayerStyleFrom.css["--y"]=parseInt(p.responsive["--y"])+"px",p.outLayerStyleTo.css["--y"]=parseInt(p.responsive["--y"])-p.outLayerToCSS.y+"px"),r.plugins.callFunctions("addLayersOutBeforeFilter",L),e.isEmptyObject(p.filter.values.out)||p.filter.transitions.out||(p.filter.transitions.out=r.transitions.layers.filters.createTransition(p,"out",e.isEmptyObject(p.filter.values.afterLoop)?e.isEmptyObject(p.filter.values.afterIn)?p.filter.values.style:p.filter.values.afterIn:p.filter.values.afterLoop,p.filter.values.out)),r.plugins.callFunctions("addLayersOutBeforeClip",L),p.clip.enabled&&!p.outClipToCSS.clipPath&&p.clip.style.css.clipPath!==p.clip.default.css.clipPath&&(p.outClipToCSS.clipPath=p.clip.default.css.clipPath),p.outClipToCSS.clipPath&&(p.outClipToCSS.clipPath=r.functions.convert.clipProperties(p.outClipToCSS.clipPath,p,c)),r.plugins.callFunctions("addLayersOutBeforeTL",L),"slidechangeonly"===p.out.startAt||c.is("[data-ls-animating-out]")?(p.timeline.staticfrom=0,p.timeline.staticto="100%"):(p.settings.timelineIsCalculated||(p.timeline.transitionoutstart=Math.max(r.transitions.layers.timeline.getTiming(p,p.out.startAt,"transitionoutstart"),p.timeline.transitioninend),p.timeline.transitionoutend=p.timeline.transitionoutstart+p.out.duration),p.outClipToCSS.clipPath&&p.timelines._out.to(m[0],p.out.duration,p.outClipTo,0),e.isEmptyObject(p.filter.values.out)||p.timelines._out.to([{p:0},t],p.out.duration,{p:1,autoCSS:!1,ease:p.outLayerTo.ease,onUpdate:r.transitions.layers.filters.animate,onUpdateParams:["{self}",p.filter.transitions.out]},0),p.outLayerStyleTo.onComplete=function(){p.is.mediaLayer&&p.mediaProperties.$media[0].hasAttribute("data-ls-playing")&&r.media.functions.stopSingleMedia(c,p)},p.timelines._out.fromTo(u[0],p.out.duration,p.outLayerFrom,p.outLayerTo,0),p.timelines._out.fromTo(t,p.out.duration,p.outLayerStyleFrom,p.outLayerStyleTo,0),r.slider.isScrollScene||p.timelines._out.fromTo(u[0],0,p.init.wrapper,p.reset.wrapperOnTimelineEnd,p.out.duration),p.timelines._out.addCallback(function(){p.should.reset=!0}),a.add(p.timelines._out,p.timeline.transitionoutstart)),r.plugins.callFunctions("addLayersOutBeforeTLForced",L),p.settings.slideOut===r.slides[d].index){var Z=Math.min(r.o.forceLayersOutDuration,p.out.duration);p.out.duration==p.out.defaultDuration&&(Z=r.o.forceLayersOutDuration),p.timelines._forceOut.fromTo(u[0],Z,p.outLayerFrom,p.outLayerTo,0),p.timelines._forceOut.fromTo(t,Z,p.outLayerStyleFrom,p.outLayerStyleTo,0),p.timelines._forceOutMirror.fromTo(u[0],Z,p.outLayerFrom,p.out.mirror?b:p.outLayerTo,0),p.timelines._forceOutMirror.fromTo(t,Z,p.outLayerStyleFrom,p.outLayerStyleTo,0),p.outClipToCSS.clipPath&&(p.timelines._forceOut.to(m[0],Z,p.outClipTo,0),p.timelines._forceOutMirror.to(m[0],Z,p.outClipTo,0)),e.isEmptyObject(p.filter.values.out)||(p.timelines._forceOut.to([{p:0},t],Z,{p:1,autoCSS:!1,ease:p.outLayerTo.ease,onUpdate:r.transitions.layers.filters.animate,onUpdateParams:["{self}",p.filter.transitions.out]},0),p.timelines._forceOutMirror.to([{p:0},t],Z,{p:1,autoCSS:!1,ease:p.outLayerTo.ease,onUpdate:r.transitions.layers.filters.animate,onUpdateParams:["{self}",p.filter.transitions.out]},0)),s.add(p.timelines._forceOut,0),l.add(p.timelines._forceOutMirror,0)}g=Math.max(p.timeline.alloutandloopend(),0),r.transitions.layers.timeline.totalDuration=Math.max(r.transitions.layers.timeline.totalDuration,g),p.settings.timelineIsCalculated=!0,r.plugins.callFunctions("addLayersOutAfter",L)}}r.plugins.callFunctions("addLayersAfter",L)})},play:function(){r.timelines._layers&&(r.timelines._layers.play(),r.functions.setStates(this,{started:!0,running:!0,stopped:!1,paused:!1}))},pause:function(t){t=e.isNumeric(t)?t:.75;r.timelines._layers&&(o.TweenMax.to(r.timelines._layers,t,{timeScale:0,onComplete:function(e){e.pause()},onCompleteParams:[r.timelines._layers]}),r.functions.setStates(this,{paused:!0,stopped:!1}))},resume:function(){r.timelines._layers&&(this.state.paused&&r.timelines._layers.play(),o.TweenMax.to(r.timelines._layers,.75,{timeScale:1}),r.functions.setStates(this,{paused:!1,stopped:!1}))},reverse:function(){r.timelines._layers&&r.timelines._layers.reverse()},scrollForward:function(e){if(e||(this.play(),this.modifyTimeScale()),r.timelines._layers&&!r.slider.isBusy()&&(0===r.timelines._layers.totalDuration()||1===r.timelines._layers.progress())&&"down"===r.device.scroll.direction){r.slideshow.direction="next";var t=r.slideshow.sequence.normalized;t.indexOf(r.slides.current.index)===t.length-1?(r.slider.positionToViewport="under",r.device.scroll.enable(),r.slideshow.direction="prev"):r.navigation.next()}},scrollBackwards:function(e,t){(e&&!t||(this.reverse(),this.modifyTimeScale()),r.timelines._layers)&&(r.slider.isBusy()||0!==r.timelines._layers.totalDuration()&&0!==r.timelines._layers.progress()||"up"!==r.device.scroll.direction||(r.slideshow.direction="prev",0===r.slideshow.sequence.normalized.indexOf(r.slides.current.index)?(r.slider.positionToViewport="over",r.device.scroll.enable(),r.slideshow.direction="next"):r.navigation.prev()))},modifyTimeScale:function(){if(r.timelines._layers){o.TweenMax.to(r.timelines._layers,.25,{timeScale:1+this.timeScaleModifier})}},resetStates:function(){this.state={started:!1,running:!1,paused:!1,stopped:!1,finished:!1}}},hover:{enable:function(e){e.attr("data-ls-canhover","1")},disable:function(e){e.attr("data-ls-canhover","0")},set:function(e,t){t.elements.$wrapper.on("mouseenter."+s,function(){r.transitions.layers.hover.mouseEnter(e,t)}),t.elements.$wrapper.on("mouseleave."+s,function(){r.transitions.layers.hover.mouseLeave(e,t)}),t.elements.$wrapper.on("mousemove."+s,function(){r.transitions.layers.hover.mouseMove(e,t)})},createTimeline:function(t,i){if(i.hover._timeline=new o.TimelineMax({paused:!0,onReverseComplete:function(e,t){t.hover._timeline._reversed&&(t.hover._timeline.stop().clear(),delete t.hover._timeline)},onReverseCompleteParams:[t,i]}),r.resize.transformProperties(t,i,i.hoverToCSS,i.hoverShouldBeConverted,i.hoverFromCSS,null,"hover"),r.resize.styleProperties(t,i,i.hoverToCSS,i.hoverShouldBeConverted),i.hoverFromCSS.transformPerspective=i.transformPerspective.hover*i.settings.calculatedratio,i.hover._tween=o.TweenMax.fromTo(t[0],i.hover.durationIn,i.hoverFrom,i.hoverTo),i.hover._timeline.add(i.hover._tween,0),t.next().is(".ls-layer-link")){var a=t.next(),s=e.extend(!0,{},i.hoverFrom,{css:{opacity:1,color:"transparent",background:"transparent",z:0}}),n=e.extend(!0,{},i.hoverTo,{css:{opacity:1,color:"transparent",background:"transparent",z:0}});i.hover._linkTween=o.TweenMax.fromTo(a[0],i.hover.durationIn,s,n),i.hover._timeline.add(i.hover._linkTween,0)}else i.hover._linkTween=null;if(i.hover.alwaysOnTop){var l={zIndex:9999};r.browser.isSafari&&(l.transform="translateZ(999999px)"),i.hover._timeline.to(i.elements.$outerWrapper[0],i.hover.durationIn,{autoCSS:!1,css:l},0)}i.hover.reverseTimeScale=i.hover.durationIn/i.hover.durationOut===1?1:i.hover.durationIn/i.hover.durationOut,this.hoverIn(t,i)},mouseEnter:function(e,t){"1"===e.attr("data-ls-canhover")&&(e.attr("data-ls-hovered",1),t.elements.$wrapper.off("mousemove."+s),t.hover._timeline?(t.hover._timeline.play().stop().progress(0),this.hoverIn(e,t)):this.createTimeline(e,t))},mouseLeave:function(e,t){t.hover._timeline&&(t.hover._timeline.stop().progress(1),this.hoverOut(e,t)),e.removeAttr("data-ls-hovered")},mouseMove:function(e,t){e.attr("data-ls-hovered")||this.mouseEnter(e,t)},hoverIn:function(e,t){t.hover._tween.updateTo({ease:t.hover.easeIn}),t.hover._linkTween&&t.hover._linkTween.updateTo({ease:t.hover.easeIn}),t.hover._timeline.play().timeScale(1)},hoverOut:function(e,t){t.hover._tween.updateTo({ease:t.hover.easeOut}),t.hover._linkTween&&t.hover._linkTween.updateTo({ease:t.hover.easeOut}),t.hover._timeline.reverse().timeScale(t.hover.reverseTimeScale)}},parallax:{defaults:{scrollModifier:5,centerLayers:"center",centerDegree:40,sensitive:10},state:{enabled:!1,ready:!1},wrappers:{cursor:{$2d:e(),$3d:e()},scroll:{$2d:e(),$3d:e()},auto:{$2d:e(),$3d:e()},randomGlobal:{},randomLocal:{}},globalSlideParallaxData:{},init:function(){var e=this;i.on("mouseenter."+s,function(){(e.wrappers.cursor.$2d.length||e.wrappers.cursor.$3d.length)&&e.calculateTransformProperties()}),i.on("mousemove."+s,function(t){(e.wrappers.cursor.$2d.length||e.wrappers.cursor.$3d.length)&&e.mouseMove(t)}),i.on("mouseleave."+s,function(){(e.wrappers.cursor.$2d.length||e.wrappers.cursor.$3d.length)&&e.reset()}),n.on("scroll.parallax"+s+" touchmove.parallax"+s,function(){(e.wrappers.scroll.$2d.length||e.wrappers.scroll.$3d.length)&&(e.state.paused||e.scroll())}),n.on("resize.parallax"+s,function(){(e.wrappers.auto.$2d.length||e.wrappers.auto.$3d.length||e.wrappers.scroll.$2d.length||e.wrappers.scroll.$3d.length||e.wrappers.cursor.$2d.length||e.wrappers.cursor.$3d.length)&&e.calculateTransformProperties()}),e.defaults.scrollModifier*=r.o.parallaxScrollReverse?-1:1},addLayer:function(t,i,a,s){switch(this.state.enabled||(r.functions.setStates(this,{enabled:!0}),this.init()),a.styleSettings.smartbg&&-1!==a.styleSettings.smartbg.indexOf("parallax")&&(i.smartBG=!0,a.settings.smartbgease&&(i.smartbgease=a.settings.smartbgease)),e.extend(!0,i,r.slides[s].parallax,a.parallax),a.transformPerspective.parallax?i.transformPerspective=a.transformPerspective.parallax:a.transformPerspective.parallax=i.transformPerspective,"random"===i.event&&(i.ease=r.functions.convert.easing(i.ease),i.type!==r.slides[s].parallax.type||i.randomX!==r.slides[s].parallax.randomX||i.randomY!==r.slides[s].parallax.randomY||i.randomDuration!==r.slides[s].parallax.randomDuration||i.randomCount!==r.slides[s].parallax.randomCount||i.randomStartAt!==r.slides[s].parallax.randomStartAt||i.randomWait!==r.slides[s].parallax.randomWait||i.distance!==r.slides[s].parallax.distance||i.rotation!==r.slides[s].parallax.rotation||a.settings.skipViewport?i._event="randomLocal":i._event="randomGlobal"),a.parallax=i,i.axis){case"none":i.x=!1,i.y=!1;break;case"x":i.y=!1;break;case"y":i.x=!1}i.smartBG&&o.TweenMax.set(t[0],{"--rx":"0px","--ry":"0px"}),"random"===i.event?(this.wrappers[i._event][s]||(this.wrappers[i._event][s]={$2d:e(),$3d:e()}),-1!==i._event.indexOf("randomLocal")&&(a.parallax.randomUID=r.functions.getUID(12)),this.wrappers[i._event][s]["$"+i.type]=this.wrappers[i._event][s]["$"+i.type].add(t)):this.wrappers[i.event]["$"+i.type]=this.wrappers[i.event]["$"+i.type].add(t)},random:{setTimer:function(t={}){t.layerData?(t.$wrappers=t.$wrappers||t.layerData.elements.$parallaxWrapper,t.parallaxData=t.parallaxData||t.layerData.parallax,t.timeout=t.timeout||"rp-local-"+t.parallaxData.randomUID,t.eventName=t.eventName||"randomLocal"):(t.$wrappers=r.transitions.layers.parallax.wrappers.randomGlobal[t.slideIndex].$2d.add(r.transitions.layers.parallax.wrappers.randomGlobal[t.slideIndex].$3d),t.parallaxData=r.transitions.layers.parallax.globalSlideParallaxData[t.slideIndex]=t.parallaxData||t.globalSlideParallaxData||r.transitions.layers.parallax.globalSlideParallaxData[t.slideIndex],t.timeout=t.timeout||"rp-global-"+t.slideIndex,t.eventName=t.eventName||"randomGlobal"),t.$layer=t.$layer||t.$wrappers.first().find(".ls-layer, .ls-l").first(),t.layerData=t.layerData||t.$layer.data(r.defaults.init.dataKey),t.x=r.functions.convert.randomProperties(t.parallaxData.randomX,"x","parallax",t.$layer,t.layerData),t.y=r.functions.convert.randomProperties(t.parallaxData.randomY,"y","parallax",t.$layer,t.layerData),t.duration=t.parallaxData.randomDuration,e.isNumeric(t.duration)||(t.duration=r.functions.convert.randomProperties(t.duration,"duration")/1e3),t.wait=t.parallaxData.randomWait,e.isNumeric(t.wait)||(t.wait=r.functions.convert.randomProperties(t.wait,"delay")/1e3),r.transitions.layers.parallax.mouseMove(!1,{x:t.x,y:t.y,eventName:t.eventName,slideIndex:t.slideIndex||null,$wrappers:t.$wrappers,timeout:t.timeout,duration:t.duration,type:t.parallaxData.type}),r.timeouts[t.timeout]=setTimeout(function(){r.transitions.layers.parallax.random.setTimer(t)},1e3*(t.duration+t.wait))}},calculateTransformProperties:function(){var t,i;(t=this.wrappers,i=e(),function e(t){for(var a in t)t.hasOwnProperty(a)&&(t[a]&&t[a].jquery?i=i.add(t[a]):"object"==typeof t[a]&&null!==t[a]&&e(t[a]))}(t),i).each(function(){var t=e(this),i=t.data(r.defaults.init.dataKey).parallax,a=t.find(".ls-layer"),s=a.data(r.defaults.init.dataKey),n=r.functions.convert.transformOrigin(i.transformOrigin,a.data(r.defaults.init.dataKey).elements.$wrapper,s,t);i.parallaxCurrentOrigin=r.functions.convert.parallaxOrigin(i.origin,t,i),o.TweenMax.set(t[0],{transformOrigin:n,transformPerspective:i.transformPerspective*s.settings.calculatedratio}),"cursor"===i.event&&i.durationEnter&&(i._enterParallax&&(i._enterParallax.kill(),i._enterParallax=null),i.enteringTime=s.parallax.durationEnter,i._enterParallax=o.TweenMax.to(i,i.durationEnter,{enteringTime:0,ease:o.Quart.easeOut,onUpdate:function(){i.enteringTime<=1e-6&&(i.enteringTime=0,this.pause().progress(1))},onComplete:function(){this.invalidate(),i._enterParallax=null}}))}),this.transformPropertiesCalculated=!0},trigger:function(){n.trigger("scroll.parallax"+s),n.trigger("touchmove.parallax"+s)},auto:function(){this.transformPropertiesCalculated||this.calculateTransformProperties()},scroll:function(){var e=(("top"===this.defaults.centerLayers?l.scroll.top:l.scroll.top+(l.viewport.height-r.slider.height)/2)-r.slider.offset.top)*r.resize.ratio*this.defaults.scrollModifier;r.slider.state.inFullscreen&&(e=0),this.transformPropertiesCalculated||this.calculateTransformProperties();var t={x:0,y:e,eventName:"scroll"};this.animate(t,"2d"),this.animate(t,"3d")},mouseMove:function(e,t={}){this.transformPropertiesCalculated||this.calculateTransformProperties();var i={x:null!=t.x?t.x:e.pageX,y:null!=t.y?t.y:e.pageY,eventName:t.eventName||"cursor",slideIndex:t.slideIndex||null,$wrappers:t.$wrappers||!1,timeout:t.timeout||!1,duration:t.duration||null};t.type&&"2d"!==t.type||this.animate(i,"2d"),t.type&&"3d"!==t.type||this.animate(i,"3d")},animate:function(t={},i){var a=-1!==t.eventName.indexOf("random"),s="cursor"===t.eventName,n=this.wrappers[t.eventName]["$"+i];"randomGlobal"==t.eventName?n=this.wrappers[t.eventName][t.slideIndex]["$"+i]:"randomLocal"==t.eventName&&(n=t.$wrappers),n.each(function(){var n=e(this);if("active"===n.attr("data-ls-parallax")){var l=n.data(r.defaults.init.dataKey).parallax,d={},c=t.x,p=t.y;s&&(l.parallaxCurrentOrigin||(l.parallaxCurrentOrigin=r.functions.convert.parallaxOrigin(l.parallaxOrigin,n,l)),c-=l.parallaxCurrentOrigin.x,p-=l.parallaxCurrentOrigin.y),a||l.x?(d.x=-c*(l.distance/2e3)*parseInt(l.level),"3d"===i&&(d.rotationY=-c/(4e3/l.rotation))):d.x=0,a||l.y?(d.y=-p*(l.distance/2e3)*parseInt(l.level),"3d"===i&&(d.rotationX=p/(4e3/l.rotation))):d.y=0,s&&(l.skewX&&(d.skewX=-c*(l.skewX/2e3)*parseInt(l.level)),l.skewY&&(d.skewY=-p*(l.skewY/2e3)*parseInt(l.level)),l.scaleX&&(d.scaleX=1+Math.abs(c)*(l.scaleX/4e3)*parseInt(l.level)),l.scaleY&&(d.scaleY=1+Math.abs(p)*(l.scaleY/4e3)*parseInt(l.level))),t.timeout&&(l._timeout=t.timeout);var u=a?t.duration:Math.max(l.durationMove,l.enteringTime||0);d.ease=a?l.ease:o.Power1.easeOut,l.smartBG&&r.transitions.layers.parallax.animateSmartBG(d.x,d.y,n,u,l.smartbgease||d.ease),o.TweenMax.to(n[0],u,d)}})},animateSmartBG:function(e,t,i,a,s){o.TweenMax.to(i.find(".ls-layer, .ls-l").first()[0],a,{"--rx":-e+"px","--ry":-t+"px",ease:s})},reset:function(){e().add(this.wrappers.cursor.$2d).add(this.wrappers.cursor.$3d).each(function(){var t=e(this),i={x:0,y:0,skewX:0,skewY:0,scaleX:1,scaleY:1,rotationX:0,rotationY:0};t.find(".ls-layer[data-ls-hidden]").length&&!r.slider.isScrollScene&&(o.TweenMax.set(t[0],i),e(this).data(r.defaults.init.dataKey).parallax.smartBG&&r.transitions.layers.parallax.animateSmartBG(0,0,t,0)),t.find(".ls-layer[data-ls-parallax-reset]").length&&(o.TweenMax.to(t[0],e(this).data(r.defaults.init.dataKey).parallax.durationLeave,i),e(this).data(r.defaults.init.dataKey).parallax.smartBG&&r.transitions.layers.parallax.animateSmartBG(0,0,t,e(this).data(r.defaults.init.dataKey).parallax.durationLeave))}),this.transformPropertiesCalculated=!1}},scroll:{defaultProperties:{shouldBeConverted:{transformOrigin:"50% 50% 0"},transformPerspective:500,duration:.5,ease:"easeOutQuart"},defaults:{centerLayers:"center"},state:{enabled:!1},$wrappers:e(),init:function(){var e=this;n.on("scroll.scroll"+s+" touchmove.scroll"+s,function(){e.$wrappers.length&&e.scroll()}),n.on("resize.scroll"+s,function(){e.$wrappers.length&&e.calculateTransformProperties()})},addLayer:function(t,i,a,s){this.state.enabled||(r.functions.setStates(this,{enabled:!0}),this.init()),e.extend(!0,i,this.defaultProperties,a.scroll),a.transformPerspective.scroll?i.transformPerspective=a.transformPerspective.scroll:a.transformPerspective.scroll=i.transformPerspective,a.settings.skipViewport&&(i.skipViewport=!0),i.shouldBeConverted.transformOriginAlt||(i.shouldBeConverted.transformOriginAlt=i.shouldBeConverted.transformOrigin),i.ease=r.functions.convert.easing(i.ease),i.easeRev=r.functions.convert.easing(i.easeRev||i.ease),i.durationRev=i.durationRev||i.duration,a.scroll=i,this.$wrappers=this.$wrappers.add(t)},getCenter:function(e,t){var i="project";switch(((r.slider.isScrollScene||r.slider.isSticky)&&"scene"===t||"document"===t)&&(i=t),e){case"top":if("scene"===i)e=r.slider.wrapperPosition.top-(l.viewport.height-r.slider.height)/2;else e=l.scroll.top;break;case"center":switch(i){case"scene":e=r.slider.wrapperPosition.middleForScrollTransition;break;case"document":e=l.scroll.top;break;default:e=l.scroll.top+(l.viewport.height-r.slider.height)/2}break;case"bottom":switch(i){case"scene":e=r.slider.wrapperPosition.top+r.slider.wrapperOffset.height-l.viewport.height+(l.viewport.height-r.slider.height)/2;break;case"document":e=l.scroll.top;break;default:e=l.scroll.top+l.viewport.height-r.slider.height}break;case"top-meets-viewport-bottom":e=l.scroll.top+l.viewport.height;break;case"top-meets-viewport-middle":e=l.scroll.top+l.viewport.height/2;break;case"bottom-meets-viewport-top":e=l.scroll.top-r.slider.height;break;case"bottom-meets-viewport-middle":e=l.scroll.top+l.viewport.height/2-r.slider.height}return e},setCenter:function(e,t){return"project"!==e.getPosition||e.center&&this.defaults.centerLayers!==e.center?this.getCenter(e.center||this.defaults.centerLayers,e.getPosition):t},setY:function(e,t){return(r.slider.isScrollScene||r.slider.isSticky)&&"scene"===e.getPosition?-t:"document"===e.getPosition?t:r.slider.state.inFullscreen?0:t-r.slider.offset.top},scroll:function(t){if(!r.slider.state.isNotDisplayed&&!r.slider.state.isHidden){var i=this,a=this.getCenter(this.defaults.centerLayers);this.transformPropertiesCalculated||this.calculateTransformProperties(),this.$wrappers.each(function(){var s,n,d,c=e(this),p=c.find(".ls-scroll-transform"),u=c.data(r.defaults.init.dataKey).scroll;if(-1!==r.slider.position.toViewportYForSkipViewportLayers.indexOf("inside")&&u.skipViewport||!i.state.paused){n=i.setCenter(u,a);var m={overwrite:"all",c:d=i.setY(u,n),ease:"down"===l.scroll.direction?u.ease:u.easeRev,onUpdate:function(t,a){var s=t.target.style.c<=0?"+":"-";u.layerPositionToCenter!==s&&i.setTransformProperties(e(a),u,s),u.layerPositionToCenter=s},onUpdateParams:["{self}",this,u]},h={overwrite:"all",ease:"down"===l.scroll.direction?u.ease:u.easeRev};u.x&&(h.x=i.calculateTransformations(-d*u.x/20,"x",u,-d)),u.y&&(h.y=i.calculateTransformations(-d*u.y/20,"y",u,-d)),u.rotation&&(h.rotation=i.calculateTransformations(d*u.rotation/40,"rotation",u,-d)),u.rotationX&&(h.rotationX=i.calculateTransformations(d*u.rotationX/40,"rotationX",u,-d)),u.rotationY&&(h.rotationY=i.calculateTransformations(d*u.rotationY/40,"rotationY",u,-d)),u.skewX&&(h.skewX=i.calculateTransformations(-d*u.skewX/40,"skewX",u,-d)),u.skewY&&(h.skewY=i.calculateTransformations(-d*u.skewY/40,"skewY",u,-d)),u.scaleX&&(h.scaleX=i.calculateTransformations(1-d*u.scaleX/-4e3,"scaleX",u,d)),u.scaleY&&(h.scaleY=i.calculateTransformations(1-d*u.scaleY/-4e3,"scaleY",u,d)),u.opacity&&(h.opacity=i.calculateTransformations(1-d*(u.opacityyoyo?Math.abs(u.opacity):u.opacity)/1e3,"opacity",u,d)),s="down"===l.scroll.direction?u.duration:u.durationRev,t||0==s?(o.TweenMax.set(c[0],m),o.TweenMax.set(p[0],h)):(o.TweenMax.to(c[0],s,m),o.TweenMax.to(p[0],s,h))}})}},calculateTransformations:function(e,t,i,a){if(i[t+"yoyo"])switch(t){case"scaleX":case"scaleY":a<0&&(e=1-(e-1));break;case"opacity":a<1&&(e=1-(e-1));break;default:a<1&&(e=-e)}return"opacity"==t&&i.opacityinvert&&(e=1-e),void 0!==i[t+"min"]&&e<i[t+"min"]&&(e=i[t+"min"]),void 0!==i[t+"max"]&&e>i[t+"max"]&&(e=i[t+"max"]),("x"===t&&i.xresponsive||"y"===t&&i.yresponsive)&&(e*=r.resize.ratio),e},calculateTransformProperties:function(){var t=this;this.$wrappers.each(function(){var i=e(this),a=i.data(r.defaults.init.dataKey).scroll,s=(i.find(".ls-layer").data(r.defaults.init.dataKey),t.setCenter(a,t.getCenter(t.defaults.centerLayers))),o=t.setY(a,s)<=0?"+":"-";t.setTransformProperties(i,a,o)}),this.transformPropertiesCalculated=!0},setTransformProperties:function(e,t,i){var a=e.find(".ls-layer").data(r.defaults.init.dataKey);o.TweenMax.set(e.find(".ls-scroll-transform")[0],{transformOrigin:r.functions.convert.transformOrigin("+"===i?t.shouldBeConverted.transformOrigin:t.shouldBeConverted.transformOriginAlt,e,a,a.elements.$outerStyleWrapper),transformPerspective:t.transformPerspective*a.settings.calculatedratio})},trigger:function(){this.scroll(!0)},reset:function(){this.transformPropertiesCalculated=!1}},filters:{createTransition:function(e,t,i,a){var s,o=new r.defaults.layer.properties.filter,n={};for(s in o)switch(t){case"in":n[s]=[o[s],o[s]],n[s][0]=i.hasOwnProperty(s)?i[s]:a.hasOwnProperty(s)?a[s]:o[s],n[s][1]=a.hasOwnProperty(s)?a[s]:o[s],e.filter.values.afterIn[s]=n[s][1];break;case"hover":case"loop":case"out":n[s]=[],n[s][0]=i.hasOwnProperty(s)?i[s]:o[s],n[s][1]=a.hasOwnProperty(s)?a[s]:i.hasOwnProperty(s)&&i[s]!==o[s]?i[s]:o[s],"loop"===t&&!0!==e.loop.yoyo&&-1!==e.loop.count&&(e.filter.values.afterLoop[s]=n[s][1]);break;case"bg":n[s]=[o[s],o[s]],i.hasOwnProperty(s)&&(n[s][0]=i[s]),a.hasOwnProperty(s)&&(n[s][1]=a[s])}return n},convert:function(e){for(var t,i,a,s={},r=/(blur|brightness|contrast|grayscale|hue-rotate|invert|saturate|sepia)/i,o=0,n=(e=e.split(" ")).length;o<n;o++)(t=(a=e[o].split("("))[0]).match(r)&&(i=parseInt(a[1]),s[t]=i);return s},animate:function(e,t){var i=100*e.target[0].p;if("object"==typeof t){var a="";for(var s in t)if("object"==typeof t[s]&&2===t[s].length)switch(s){case"blur":a+=" blur( "+(t[s][0]<t[s][1]?t[s][0]+Math.abs(t[s][0]-t[s][1])/100*i:t[s][0]-Math.abs(t[s][0]-t[s][1])/100*i)+"px )";break;case"hue-rotate":a+=" hue-rotate( "+(t[s][0]<t[s][1]?t[s][0]+Math.abs(t[s][0]-t[s][1])/100*i:t[s][0]-Math.abs(t[s][0]-t[s][1])/100*i)+"deg )";break;default:a+=" "+s+"( "+(t[s][0]<t[s][1]?t[s][0]+Math.abs(t[s][0]-t[s][1])/100*i:t[s][0]-Math.abs(t[s][0]-t[s][1])/100*i)+"% )"}o.TweenMax.set(e.target,{"-webkit-filter":a,filter:a})}}},splitType:{setNodesSequence:function(e,t){var i=function(e,i){if("desc"==i)e=t.slice(0).reverse();else if("rand"==i)e=t.slice(0).sort(function(){return.5-Math.random()});else if("center"==i){var a,s=Math.floor(t.length/2);for(e=[t[s]],a=1;a<=s;a++)e.push(t[s-a],t[s+a]);e.length=t.length}else if("edge"==i){var r,o=Math.floor(t.length/2);for(e=[t[0]],r=1;r<=o;r++)e.push(t[t.length-r],t[r]);e.length=t.length}return e||t},a=i(t,e[1]),s={asc:"desc",desc:"asc"}[e[1]]||e[1];return[a,i(t,s)]},resetNodes:function(t,i){e(".ls-ch, .ls-wd, .ls-ln",t).add(i.elements.$wrapper).css({transform:"none",opacity:1}).each(function(){delete this._gsTransform})},setRandomProperties:function(e,t,i,a,s){for(var o in i){for(var n=[],l=0,d=t["text"+s].nodes.length;l<d;l++)n[l]=r.functions.convert.randomProperties(i[o],o,"text"+s.toLowerCase(),e,t);delete a[o],a.cycle[o]=n}i=null}}},media:{defaults:{delay:500,fadeIn:500,fadeOut:750},changeBackgroundVideo:function(e,t){if(r.slides.current.index&&r.slides.current.data.$backgroundVideo.length){var a=r.slides.current.data.$backgroundVideo,s=a.data(r.defaults.init.dataKey).elements.$bgWrapper;t&&(a.data(r.defaults.init.dataKey).mediaProperties.willBePaused=!0,s.fadeOut(r.transitions.media.defaults.fadeOut,function(){a.trigger("stopBackgroundVideo"),a.data(r.defaults.init.dataKey).mediaProperties.willBePaused=!1}))}if(r.slides.next.data.$backgroundVideo.length){var o=r.slides.next.data.$backgroundVideo,n=o.data(r.defaults.init.dataKey).elements.$bgWrapper,d=o.data(r.defaults.init.dataKey).elements.$bgOuterWrapper;l.isMobile&&(i.hasClass("ls-device-is-phone")&&d.hasClass("ls-hide-on-phone")||i.hasClass("ls-device-is-tablet")&&d.hasClass("ls-hide-on-tablet"))||setTimeout(function(){e&&r.o.animateFirstSlide||o.trigger("playBackgroundVideo")},e?50:0),e||t?n.fadeIn(r.transitions.media.defaults.fadeOut):n.css({display:"block"}),o.data(r.defaults.init.dataKey).mediaProperties.isPreloaded=!0}}},timers:{defaults:{fadeInDuration:.35,reverseDuration:.3},create:function(e){this.curNext=e||"next",this.reset(),r.gui.timers.bar.$element&&this.bar.createTransition(),r.gui.timers.circle.$element&&this.circle.createTransition(),r.gui.timers.slidebar.$element&&this.slidebar.createTransition()},reverse:function(){if(r.slides.current&&r.slides.current.data&&r.timelines._layers){var e=r.timelines._layers.progress(),t=r.slides.current.data.duration*e/this.defaults.reverseDuration;r.gui.timers.bar.$element&&this.bar._transition&&(r.timelines._layers.remove(r.transitions.timers.bar._transition),this.bar._transition.reverse().timeScale(t)),r.gui.timers.circle.$element&&this.circle._transition&&(r.timelines._layers.remove(r.transitions.timers.circle._transition),this.circle._transition.reverse().timeScale(t)),r.gui.timers.slidebar.$element&&this.slidebar._transition&&(r.timelines._layers.remove(r.transitions.timers.slidebar._transition),this.slidebar._transition.reverse().timeScale(t))}},reset:function(){r.gui.timers.bar.$element&&this.bar._transition&&this.bar.reset(),r.gui.timers.circle.$element&&this.circle._transition&&this.circle.reset(),r.gui.timers.slidebar.$element&&this.slidebar._transition&&this.slidebar.reset()},bar:{reset:function(){this._transition&&(this._transition.kill(),this._transition=!1)},createTransition:function(){this._transition=o.TweenMax.fromTo(r.gui.timers.bar.$element[0],r.slides[r.transitions.curNext].data.duration,{autoCSS:!1,paused:!0,css:{width:0}},{autoCSS:!1,css:{},ease:o.Linear.easeNone,onReverseComplete:function(){r.transitions.timers.bar._transition=!1},onReverseCompleteParams:["{self}"],onComplete:function(e){e.target.style.width="100%",e.target.style.width="calc( 100% - "+r.slider.initial.skinWidth+"px )"},onCompleteParams:["{self}"],onUpdate:function(e){e.target.style.width=Math.min(r.slider.width,r.slider.width*e.progress())+"px"},onUpdateParams:["{self}"]})}},circle:{reset:function(){this._transition&&(r.gui.timers.circle.$element.stop(!0,!0),this._transition.kill(),this._transition=!1)},createTransition:function(){var e=r.gui.timers.circle.$element.find(".ls-ct-right .ls-ct-rotate")[0],t=r.gui.timers.circle.$element.find(".ls-ct-left .ls-ct-rotate")[0],i=r.slides[r.transitions.curNext].data.duration;this._transition=new o.TimelineMax({paused:!0}).fromTo(r.gui.timers.circle.$element[0],r.transitions.timers.defaults.fadeInDuration,{autoCSS:!1,immediateRender:!0,css:{opacity:0,display:"block"}},{autoCSS:!1,css:{opacity:r.gui.timers.circle.$element.data("original").opacity}}).fromTo(e,i/2,{autoCSS:!1,css:{rotation:0}},{autoCSS:!1,css:{rotation:180},ease:o.Linear.easeNone},0).fromTo(t,i/2,{autoCSS:!1,css:{rotation:0}},{autoCSS:!1,css:{rotation:180},ease:o.Linear.easeNone},i/2)}},slidebar:{reset:function(){this._transition&&(this._transition.kill(),this._transition=!1)},createTransition:function(){var t=this;t._transition=new o.TimelineMax({paused:!0,onReverseComplete:function(){r.transitions.timers.slidebar._transition=!1}}),e.each(r.gui.timers.slidebar.$sliderContainerElement,function(e,i){t._transition.add(o.TweenMax.fromTo(r.gui.timers.slidebar.$sliderContainerElement[e][0],r.slides[r.transitions.curNext].data.duration,{autoCSS:!1,css:{left:0}},{autoCSS:!1,immediateRender:!1,css:{},ease:o.Linear.easeNone,onComplete:function(t){t.target.style.left="calc( 100% - "+r.gui.timers.slidebar.sliderContainerElementWidth[e]+"px )"},onCompleteParams:["{self}"],onUpdate:function(t){t.target.style.left=(r.gui.timers.slidebar.containerElementWidth[e]-r.gui.timers.slidebar.sliderContainerElementWidth[e])*t.progress()+"px"},onUpdateParams:["{self}"]}),0),t._transition.add(o.TweenMax.fromTo(r.gui.timers.slidebar.$progressBarElement[e][0],r.slides[r.transitions.curNext].data.duration,{autoCSS:!1,css:{width:0}},{autoCSS:!1,css:{},ease:o.Linear.easeNone,onComplete:function(e){e.target.style.width="100%"},onCompleteParams:["{self}"],onUpdate:function(t){t.target.style.width=r.gui.timers.slidebar.elementWidth[e]*t.progress()+"px"},onUpdateParams:["{self}"]}),0)})}}},scrollscene:{min:1e-6,animate:function(e){if(r.timelines._layers){var t=l.scroll.top-r.slider.wrapperOffset.top+this.playFrom,i=(e=e&&"start"===e?this.min:Math.max(this.min,r.transitions.layers.timeline.totalDuration/r.transitions.scrollscene.maxProgressInPixels*t),o.Sine.easeOut),a=this.initialized&&!this.immediateRender?r.o.smoothScrollDuration/1e3:0;if("outside"===r.slider.position.toViewport)return;this._tween=r.timelines._layers.tweenTo(Math.min(e,r.transitions.layers.timeline.totalDuration),{ease:i,onUpdate:function(){for(var e=r.timelines._layers.time(),t=r.transitions.lottie.layerDatas.length,i=0;i<t;i++)if(r.transitions.lottie.layerDatas[i].isReady&&"scroll"===r.transitions.lottie.layerDatas[i].options.trigger){var a;if(e<=r.transitions.lottie.layerDatas[i].startTime)a="below",r.transitions.lottie.layerDatas[i].posToViewport!==a&&(r.transitions.lottie.players[i].stop(),r.transitions.lottie.players[i].setFrame(r.transitions.lottie.layerDatas[i].playFrom));else if(e>=r.transitions.lottie.layerDatas[i].endTime)a="above",r.transitions.lottie.layerDatas[i].posToViewport!==a&&r.transitions.lottie.players[i].setFrame(r.transitions.lottie.layerDatas[i].playTo);else{a="inside";var s=e-r.transitions.lottie.layerDatas[i].startTime,o=r.transitions.lottie.layerDatas[i].playFrom+s*r.transitions.lottie.layerDatas[i].frameRate*r.transitions.lottie.layerDatas[i].speed;r.transitions.lottie.players[i].setFrame(o)}r.transitions.lottie.layerDatas[i].posToViewport=a}}}).duration(a),this.initialized=!0,this.immediateRender=!1}}},lottie:{players:[],layerDatas:[],mirror:{left:"right",right:"left",top:"bottom",bottom:"top"},init:function(t,i){r.slides[t.data("slideIndex")].lottie.count+=1,i.lottie={userOptions:JSON.parse(t.attr("data-ls-lottie"))};var a=this,s=i.lottie;t.html("<canvas></canvas>");var o=t.find("canvas")[0];s.options=e.extend(!0,{loop:!0,speed:1,mode:"forward",start:0,end:100,layout:{fit:"contain",align:[.5,.5]},trigger:"autoplay",triggerFrom:"auto",startAt:"transitioninstart"},s.userOptions,{autoplay:!1,canvas:o});var n=s.options;"scroll"!==n.trigger||r.slider.isScrollScene||(n.trigger="autoplay"),s.player=new LS_DotLottie(n),s.player.addEventListener("loadError",function(e){console.error("Failed to load Lottie animation:",e.error),s.player.destroy(),r.slides[t.data("slideIndex")].lottie.loaded+=1}),s.player.addEventListener("load",function(){if(!r.slides[t.data("slideIndex")]||!r.slides[t.data("slideIndex")].lottie)return s.player.destroy(),!1;r.slides[t.data("slideIndex")].lottie.loaded+=1,s.playFrom=Math.max(Math.round(s.player.totalFrames*(n.start/100)),0),s.playTo=Math.min(Math.round(s.player.totalFrames*(n.end/100)),s.player.totalFrames),s.playTo<=s.playFrom&&(s.playTo=s.player.totalFrames),s.playTo=Math.round(s.playTo),s.player.setSegment(s.playFrom,s.playTo),s.player.setFrame(s.playFrom),s.frameRate=s.player.totalFrames/s.player.duration,s.speed=s.player.speed||1,s.frameCount=s.playTo-s.playFrom,s.actualDuration=s.frameCount/s.frameRate/s.speed||1,s.startTime=s.playFrom/s.frameRate/s.speed,s.duration=s.frameCount/s.frameRate/s.speed,s.endTime=s.startTime+s.duration,s.isReady=!0,s.player.setUseFrameInterpolation(!0),a.players.push(s.player),a.layerDatas.push(s),"autoplay"!==n.trigger&&r.transitions.lottie.setTrigger(t,s.player,s,n.trigger)})},setTrigger:function(t,i,a,r){var o=this;switch(r){case"toggleclick":case"click":t.on("click."+s,function(){i.isPlaying&&"click"!==r?i.pause():i.play()});break;case"togglehover":t.on("mouseleave."+s,function(){i.pause()});case"hover":t.on("mouseenter."+s,function(){i.play()});break;case"mousemove":t.on("mouseenter."+s,function(e){o.getSide("enter",e,this,a)}).on("mousemove."+s,function(t){a.enter||e(this).trigger("mouseenter."+s,t);var r,o=this.getBoundingClientRect(),n=t.clientX-o.left,l=t.clientY-o.top;switch(n=Math.max(0,Math.min(n,o.width)),l=Math.max(0,Math.min(l,o.height)),a.from){case"left":r=n/o.width;break;case"right":r=1-n/o.width;break;case"top":r=l/o.height;break;case"bottom":r=1-l/o.height}r=Math.max(0,Math.min(r,1));var d=Math.round(a.playFrom+r*(a.playTo-a.playFrom));i.setFrame(d)}).on("mouseleave."+s,function(e){o.getSide("leave",e,this,a);var t=a.enter;if(-1!==["left","right","top","bottom"].indexOf(a.options.triggerFrom)&&(t=a.options.triggerFrom),t===a.leave)i.setFrame(a.playFrom);else if(a.leave===o.mirror[t]){var s=a.playTo===Math.round(i.totalFrames)?i.totalFrames-1:a.playTo;i.setFrame(s)}delete a.enter,delete a.leave,delete a.from})}},getSide:function(e,t,i,a){var s=i.getBoundingClientRect(),r=t.clientX-s.left,o=t.clientY-s.top,n={left:r,right:s.width-r,top:o,bottom:s.height-o},l=a.options.triggerFrom,d=n.left;switch("leave"===e&&(l="auto"),l){case"left":case"right":case"horizontal":a[e]=n.left<=n.right?"left":"right";break;case"top":case"bottom":case"vertical":a[e]=n.top<=n.bottom?"top":"bottom";break;case"auto":a[e]="left",n.right<d&&(d=n.right,a[e]="right"),n.top<d&&(d=n.top,a[e]="top"),n.bottom<d&&(a[e]="bottom")}-1!==["horizontal","vertical","auto"].indexOf(a.options.triggerFrom)?a.from=a.enter:a.from=a.options.triggerFrom},destroyAll:function(e){for(var t=0;t<this.players.length;t++)this.players[t].destroy()}}},r.plugins={load:function(){if(r.o.plugins&&0!==r.o.plugins.length){r.o.plugins=r.plugins.sortByPriority(r.o.plugins);var t=r.o.plugins[0],i="object"==typeof t?t.namespace:t;if(window._layerSlider.plugins[i])r.plugins.init(i,t,!0),r.plugins.load();else if(r.browser.usesFileProtocol||"object"!=typeof t)r.browser.usesFileProtocol?(window.console&&(console.error(r.defaults.slider.errorText,"Cannot load plugins on file:// protocol."),console.info("Please include the plugin files manually.")),r.o.plugins.splice(0,1),r.plugins.load()):(window.console&&(console.error(r.defaults.slider.errorText,"Plugin files are missing!"),console.info('Plugin "'+i+'" has been added in slider init options, but the source files are not found on page.')),r.o.plugins.splice(0,1),r.plugins.load());else{if(-1!==window._layerSlider.pluginsBeingLoaded.indexOf(i))return void r.plugins.checkLoaded(i);-1===window._layerSlider.pluginsLoaded.indexOf(i)&&-1===window._layerSlider.pluginsNotLoaded.indexOf(i)?(window._layerSlider.pluginsBeingLoaded.push(i),e.ajax({url:-1===t.js.indexOf(LS_nsProtocol||"http://")&&-1===t.js.indexOf("https://")?(window._layerSlider.pluginsPath?window._layerSlider.pluginsPath:window._layerSlider.scriptPath+"/../plugins/")+t.js:t.js,dataType:"script",success:function(){r.plugins.init(t.namespace,t,!0),window._layerSlider.pluginsLoaded.push(i)},error:function(e,t,a){window.console&&(console.error(r.defaults.slider.errorText,i,"plugin has not been loaded!"),console.error("Additional error info:",a)),window._layerSlider.pluginsNotLoaded.push(i)},complete:function(){window._layerSlider.pluginsBeingLoaded.splice(window._layerSlider.pluginsBeingLoaded.indexOf(i),1),r.plugins.load()}})):(r[i]||-1!==window._layerSlider.pluginsNotLoaded.indexOf(i)?r.o.plugins.splice(0,1):r.plugins.init(i,t),r.plugins.load())}}else r.slider.check.initialized()},init:function(t,a,o){r.initializedPlugins[t]=new window._layerSlider.plugins[t](r,i,s,a.settings),window._layerSlider.checkVersions(r.initializedPlugins[t].pluginData.requiredLSVersion,r.plugin.version)?(a.css&&o&&e('<link rel="stylesheet" href="'+(-1===a.css.indexOf(LS_nsProtocol||"http://")&&-1===a.css.indexOf("https://")?(window._layerSlider.pluginsPath?window._layerSlider.pluginsPath:window._layerSlider.scriptPath+"/../plugins/")+a.css:a.css)+'">').appendTo("head"),r.initializedPlugins[t].init&&r.initializedPlugins[t].init()):window.console&&console.error(r.defaults.slider.errorText,t,"plugin has not been loaded! Required LayerSlider version:",r.initializedPlugins[t].pluginData.requiredLSVersion,"(you have:",r.plugin.version+")"),r.o.plugins.splice(0,1)},checkLoaded:function(e){r.intervals.pluginLoaded=setInterval(function(){-1===window._layerSlider.pluginsLoaded.indexOf(e)&&-1===window._layerSlider.pluginsNotLoaded.indexOf(e)||-1!==window._layerSlider.pluginsBeingLoaded.indexOf(e)||(clearInterval(r.intervals.pluginLoaded),delete r.intervals.pluginLoaded,r.plugins.load())},100)},events:{},addFunction:function(e,t,i){if(Array.isArray(e))for(var a=0;a<e.length;a++){var s=e[a];r.plugins.events[s]||(r.plugins.events[s]={}),r.plugins.events[s][t]=i}else r.plugins.events[e]||(r.plugins.events[e]={}),r.plugins.events[e][t]=i},callFunctions:function(e,t){for(var i in r.plugins.events[e])r.plugins.events[e][i](t)},getLayersByEffect:function(t){var i,a=e();return r.slider.get.effectLayers().each(function(s,r){for(var s in e(r).data("ls-effects"))(i=e(r)).data("ls-effects")[s].effect==t&&(i.data(t,i.data("ls-effects")[s]),a=a.add(r))}),a},sortByPriority:e=>e.sort(function(e,t){var i=_layerSliderEffectsPriority.indexOf(e),a=_layerSliderEffectsPriority.indexOf(t);return-1===i&&-1===a?0:-1===i?1:-1===a?-1:i-a})},r.performance={},r.slider={shouldResize:!0,thumbnails:[],state:{isHidden:!1,isPaused:!1,preloadingImages:!1,readyForStart:!1,changingSlides:!1,animatingSlides:!1},offset:{},position:{},isBusy:function(){return this.state.preloadingImages||this.state.changingSlides||this.state.animatingSlides},load:function(){if(!document.body.contains(t))return!1;r.api.hasEvent("sliderWillLoad")&&r.api.triggerEvent("sliderWillLoad"),r.slider.set.global()},set:{global:function(){if(r.originalMarkup=i[0].outerHTML,r.userInitOptions=r.functions.convert.properties(r.functions.convert.oldProperties(a)),r.meta={},r.o=e.extend(!0,{},r.defaults.init.options,r.userInitOptions),r.o.forceLayersOutDuration/=1e3,r.o.forceLayersOutDuration=r.o.forceLayersOutDuration>0?r.o.forceLayersOutDuration:.75,r.o.sliderFadeInDuration/=1e3,window.console&&!0!==r.o.hideWelcomeMessage&&!0!==window._layerSlider.hideWelcomeMessage){window._layerSlider.hideWelcomeMessage=!0;var t=window.console.info?"info":"log",s=window.LS_Meta&&window.LS_Meta.v?" | WP Plugin: "+window.LS_Meta.v:"";console[t]("LayerSlider initialized | core: "+r.plugin.version+"-"+r.plugin.release+s),console[t]("Find updates and docs @ https://layerslider.com/")}var o={namespace:"debug",js:"debug/layerslider.debug.js",css:"debug/layerslider.debug.css"};-1!==document.location.hash.indexOf("debug")&&window.console&&("object"==typeof r.o.plugins?r.o.plugins.push(o):r.o.plugins=[o]),(window._layerSlider.currentScript||window._layerSlider.lsScript)&&(window._layerSlider.scriptPath=(window._layerSlider.currentScript||window._layerSlider.lsScript).src.replace(/\\/g,"/").replace(/\/[^\/]*$/,"")),r.o.silentMode&&(r.slider.$silentWrapper=e("<ls-silent-wrapper></ls-silent-wrapper>"),r.slider.$silentWrapper.append(i).prependTo("body")),"string"==typeof r.o.getData&&(r.o.getData=[r.o.getData]),"object"==typeof r.o.plugins?r.plugins.load():r.slider.check.initialized()},styles:function(){var a,o,d,c,p,u,m,h,f,g,y,v,x,S,w,b,T,k,C,O,P,I,L=r.slider,_=i.parent(),$=t.style,M=window.getComputedStyle(t,null),F=parseInt(t.clientWidth),B=parseInt(t.clientHeight),W=parseInt(_.width()),D=parseInt(_.height()),z=r.o.layersContainerWidth,A=r.o.layersContainerHeight,V=r.o.type.toLowerCase();switch(r.debugMode&&r.debug.add("group","sliderInit.style"),r.o.width?a=-1==r.o.width.indexOf("%")?parseInt(r.o.width):r.o.width:$.width?a=-1==$.width.indexOf("%")?parseInt($.width):$.width:z>0?(a=z,r.debugMode&&r.debug.add("warn","sliderInit.noWidth",z)):(a=F,r.debugMode&&r.debug.add("warn","sliderInit.noWidth2",F)),d=a,r.o.height?o=-1==r.o.height.indexOf("%")?parseInt(r.o.height):r.o.height:$.height?o=-1==$.height.indexOf("%")?parseInt($.height):$.height:A>0?(o=A,r.debugMode&&r.debug.add("warn","sliderInit.noHeight",A)):(o=B,r.debugMode&&r.debug.add("warn","sliderInit.noHeight2",D)),c=o,p=""!==$.maxWidth?-1!==$.maxWidth.indexOf("px")?parseInt($.maxWidth):$.maxWidth:0,void 0===r.userInitOptions.type&&(z>0&&A>0||"100%"===a&&"100%"===o?V="fullsize":z<=0&&A<=0&&(r.o.responsiveUnder<=0||r.o.responsiveUnder>0&&r.o.sliderVersion)?V=void 0!==r.o.responsive&&!1===r.o.responsive?"fixedsize":"responsive":r.o.responsiveUnder>0&&(V="fullwidth")),V){case"fullwidth":-1!==a.indexOf("%")&&(r.debugMode&&r.debug.add("warn","sliderInit.percWidth",[V,a,F]),a=F),z<=0&&(z=a,r.debugMode&&r.debug.add("warn","sliderInit.conWidth",[V,a])),r.o.responsiveUnder<=0&&(r.o.responsiveUnder=z,r.debugMode&&r.debug.add("warn","sliderInit.fullwidth",z)),-1!==o.indexOf("%")&&(m=D/(100/parseInt(o)),r.debugMode&&r.debug.add("warn","sliderInit.fullwidth2",[V,o,m]),o=m),A<=0&&(A=o);break;case"fullsize":-1!==a.indexOf("%")&&(u=z>0?z:W,r.debugMode&&r.debug.add("warn","sliderInit.fullsize",[V,a,u,W,z]),a=u),z<=0&&(z=a,r.debugMode&&r.debug.add("warn","sliderInit.conWidth",[V,a])),-1!==o.indexOf("%")&&(m=A>0?A:n.height()/(100/parseInt(o)),r.debugMode&&r.debug.add("warn","sliderInit.fullsize2",[V,o,m,n.height(),A]),o=m),A<=0&&(A=o,r.debugMode&&r.debug.add("warn","sliderInit.conHeight",[V,o]));break;case"fixedsize":break;default:r.userInitOptions.type=r.o.type=V="responsive",r.o.responsiveUnder=-1,-1!==a.indexOf("%")&&(a=F,r.debugMode&&r.debug.add("warn","sliderInit.percWidth",[V,a,F])),-1!==o.indexOf("%")&&(a=B,r.debugMode&&r.debug.add("warn","sliderInit.responsive",[V,o,B])),r.debugMode&&z>0&&r.debug.add("warn","sliderInit.conWidth2",[V,z]),r.debugMode&&A>0&&r.debug.add("warn","sliderInit.conHeight2",[V,A])}if(i.addClass("ls-container ls-"+V),i.parent().addClass("ls-direction-fix"),r.userInitOptions.slideBGSize||"responsive"!==V||!r.userInitOptions.hasOwnProperty("sliderVersion")||r.userInitOptions.sliderVersion||(r.o.slideBGSize="auto",r.debugMode&&r.debug.add("warn","sliderInit.bgCover",V)),r.o.slideBGSize=r.o.slideBGSize.replace("100% 100%","stretch"),h=z>0?z:a,f=A>0?A:o,"auto"===(v=t.style.marginLeft)?g="auto":""===v?g=parseInt(M.getPropertyValue("margin-left")):(g=parseInt(t.style.marginLeft),!0),"auto"===(x=t.style.marginRight)?y="auto":""===x?y=parseInt(M.getPropertyValue("margin-right")):(y=parseInt(t.style.marginRight),!0),g===y&&(""===v&&""===x&&(S=g,g="auto",y="auto"),i.css({marginLeft:"auto",marginRight:"auto"})),w=""!==$.paddingLeft?parseInt($.paddingLeft):parseInt(i.css("padding-left")),T=""!==$.paddingRight?parseInt($.paddingRight):parseInt(i.css("padding-right")),b=""!==$.paddingTop?parseInt($.paddingTop):parseInt(i.css("padding-top")),k=""!==$.paddingBottom?parseInt($.paddingBottom):parseInt(i.css("padding-bottom")),C=""!==$.borderLeftWidth?parseInt($.borderLeftWidth):parseInt(i.css("border-left-width")),P=""!==$.borderRightWidth?parseInt($.borderRightWidth):parseInt(i.css("border-right-width")),O=""!==$.borderTopWidth?parseInt($.borderTopWidth):parseInt(i.css("border-top-width")),I=""!==$.borderBottomWidth?parseInt($.borderBottomWidth):parseInt(i.css("border-bottom-width")),L.initial={type:V,width:a,height:o,originalWidth:d,originalHeight:c,percW:a/100,percH:o/100,layersWidth:z,layersHeight:A,ratio:h/f,maxWidth:p,marginLeft:g,marginRight:y,marginTop:r.o.marginTop,marginBottom:r.o.marginBottom,paddingLeft:w,paddingTop:b,paddingRight:T,paddingBottom:k,borderLeftWidth:C,borderTopWidth:O,borderRightWidth:P,borderBottomWidth:I,skinWidth:w+T+C+P,skinHeight:b+k+O+I},r.debugMode&&(r.debug.add("log","sliderInit.style",[a,o,d,c,z,A,parseInt(h/f*100)/100,p>0?p:void 0,[g,y]]),S&&r.debug.add("warn","sliderInit.margin",S)),e("#ls-global").length||(e("html").attr("id")?e("body").attr("id")||e("body").attr("id","ls-global"):e("html").attr("id","ls-global")),"static"!==M.getPropertyValue("position")&&"absolute"!==M.getPropertyValue("position")&&(t.style.position="relative"),r.o.insertSelector&&i[r.o.insertMethod](r.o.insertSelector),r.slider.$hiddenWrapper=e('<div class="ls-wp-container fitvidsignore ls-hidden" data-layerslider-uid="'+s+'"></div>').addClass(i.attr("class")).prependTo("body"),r.slider.$innerWrapper=e('<div class="ls-inner"></div>'),r.slider.$slideBGColorWrapper=e('<div class="ls-slide-bgcolor"></div>').appendTo(r.slider.$innerWrapper),r.slider.$layersWrapper=e('<div class="ls-layers"></div>').appendTo(r.slider.$innerWrapper),r.o.mask&&(r.slider.$maskWrapper=e('<div class="ls-mask"></div>').addClass("ls-"+r.o.mask).appendTo(r.slider.$layersWrapper)),r.slider.$bgVideosWrapper=e('<div class="ls-background-videos"></div>').appendTo(r.slider.$layersWrapper),r.slider.$slideBGWrapper=e('<div class="ls-slide-backgrounds"></div>').appendTo(r.slider.$layersWrapper),r.slider.$innerWrapper.appendTo(i),!0===r.o.hideOnMobile&&l.isMobile?(i.addClass("ls-forcehide"),i.closest(".ls-wp-fullwidth-container").addClass("ls-forcehide"),r.o.autoStart=!1):r.slider.check.showHide(),"sticky"===r.o.scene||"scroll"===r.o.scene){if(r.o.scene)switch(r.slider.isScene=!0,r.o.scene){case"scroll":r.slider.isScrollScene=!0;case"sticky":r.slider.isSticky=!0}i.parent().is("ls-scene-wrapper")?i.parent().attr("data-scene",r.o.scene).attr("data-layerslider-uid",s):i.wrap('<ls-scene-wrapper data-scene="'+r.o.scene+'" data-layerslider-uid="'+s+'"></ls-scene-wrapper>'),r.slider.$spacingWrapper=e('ls-scene-wrapper[data-layerslider-uid="'+s+'"]'),i.attr("data-scene",r.o.scene)}else r.slider.$spacingWrapper=i;var R=r.slider.isScene&&"scene"===r.o.globalBGFor?r.slider.$spacingWrapper:r.slider.$innerWrapper,N=!1;-1==r.o.globalBGColor.indexOf("gradient")?R.css({backgroundColor:r.o.globalBGColor}):(N=r.o.globalBGColor,r.o.globalBGColor="transparent"),r.o.globalBGImage?R.css({backgroundImage:"url( "+r.o.globalBGImage+" )"+(N?", "+N:""),backgroundRepeat:r.o.globalBGRepeat,backgroundAttachment:r.o.globalBGAttachment,backgroundSize:r.o.globalBGSize,backgroundPosition:r.o.globalBGPosition}):N&&R.css({backgroundImage:N}),"transparent"!=r.o.globalBGColor||!1!==r.o.globalBGImage||N||R.css({background:"none transparent"}),(r.o.preventSliderClip&&r.o.fitScreenWidth&&("fullwidth"===V||"fullsize"===V&&"fitheight"!==r.o.fullSizeMode)||r.slider.isScrollScene||r.slider.isSticky)&&i.parents(":not(body, html)").each(function(){e(this).addClass("ls-overflow-visible")})},options:function(){if(e("html").find('meta[content*="WordPress"]').length&&(r.meta.wpVersion=e("html").find('meta[content*="WordPress"]').attr("content").split("WordPress")[1]),window.LS_Meta&&window.LS_Meta.v?r.meta.lswpVersion=window.LS_Meta.v:e("html").find('script[src*="layerslider"]').length&&-1!=e("html").find('script[src*="layerslider"]').attr("src").indexOf("?")&&(r.meta.lswpVersion=e("html").find('script[src*="layerslider"]').attr("src").split("?")[1].split("=")[1]),"undefined"!=typeof layerSliderTransitions&&(r.t=e.extend({},layerSliderTransitions)),"undefined"!=typeof layerSliderCustomTransitions&&(r.ct=e.extend({},layerSliderCustomTransitions)),r.debugMode&&("undefined"!=typeof layerCustomSliderTransitions?(r.debug.add("log","sliderInit.customTransitions",!1),"undefined"==typeof layerSliderTransitions&&r.debug.add("warn","sliderInit.slideTransitions")):"undefined"==typeof layerSliderTransitions&&r.debug.add("warn","sliderInit.noSlideTransitions")),"number"==typeof r.o.parallaxCenterDegree&&(r.transitions.layers.parallax.defaults.centerDegree=r.o.parallaxCenterDegree),"number"==typeof r.o.parallaxSensitivity&&(r.transitions.layers.parallax.defaults.sensitive=r.o.parallaxSensitivity),r.o.parallaxCenterLayers&&(r.transitions.layers.parallax.defaults.centerLayers=r.o.parallaxCenterLayers),r.o.scrollCenterLayers&&(r.transitions.layers.scroll.defaults.centerLayers=r.o.scrollCenterLayers),r.slider.isSticky&&(e.extend(r.o,{allowFullscreen:!1,playByScroll:!1}),r.slider.isScrollScene&&e.extend(r.o,{autoPauseSlideshow:!1,autoStart:!1,pauseLayers:!1,pauseOnHover:!1,startInViewport:!1})),r.o.playByScroll&&e.extend(r.o,{cycles:-1,startInViewport:!0,pauseOnHover:!1,autoStart:!1}),l.isMobile&&(r.o.pauseOnHover=!1),r.o.noContextMenu&&i.on("contextmenu."+s,function(){return!1}),r.o.startInViewport&&(r.slider.state.waitForGettingInViewport=!0,r.o.playByScroll)){r.slider.positionToViewport=l.scroll.top>r.slider.offset.top-(l.viewport.height-r.slider.height)/2?"under":"over";var t,a,o,n=!0,d=4*r.o.playByScrollSpeed;r.device.scroll.timeout=250,r.transitions.layers.timeline.timeScaleModifier=0,e(document).on("wheel."+s+" touchmove."+s,function(e){l.isMobile?((t=e.originalEvent.touches[0].clientY)>a?r.device.scroll.direction="up":t<a&&(r.device.scroll.direction="down"),o=a-t,a=t):(e.originalEvent.deltaY>0?r.device.scroll.direction="down":r.device.scroll.direction="up",o=e.originalEvent.deltaY),0!==Math.abs(o)&&(r.device.scroll.lastDirection?r.device.scroll.lastDirection!==r.device.scroll.direction&&(r.device.scroll.lastDirection=r.device.scroll.direction,r.transitions.layers.timeline.timeScaleModifier=0):r.device.scroll.lastDirection=r.device.scroll.direction,"inside"===r.slider.positionToViewport&&(r.resize.viewport(),o>=0?r.transitions.layers.timeline.scrollForward():r.transitions.layers.timeline.scrollBackwards(),n&&(clearTimeout(r.timeouts.scroll),n=!1,r.transitions.layers.timeline.timeScaleModifier=r.transitions.layers.timeline.timeScaleModifier<d?r.transitions.layers.timeline.timeScaleModifier+.25:d,r.timeouts.scroll2=setTimeout(function(){delete r.timeouts.scroll2,n=!0,r.device.scroll.timeout=r.device.scroll.timeout>50?r.device.scroll.timeout-50:50},r.device.scroll.timeout))),r.slider.check.positionToViewport(),r.timeouts.checkPosition=setTimeout(function(){r.slider.check.positionToViewport()},25))})}if(r.slider.canShow=!0,!l.automaticFontSizeRatio){var c=e('<ls-dummy style="font-size: 100px; width: 0; height: 0; opacity: 0; position: absolute; overflow: hidden; pointer-events: none;">Lorem</ls-dummy>').appendTo("body");l.automaticFontSizeRatio=parseFloat(c.css("font-size"))/parseFloat(c[0].style.fontSize)||1,c.remove()}},pictureElements:function(){for(var t=i.find("picture"),a=i.find("source"),s=0,o=a.length;s<o;s++){var n=e(a[s]);!n.attr("src")&&n.attr("data-src")&&n.attr("src",n.attr("data-src")),!n.attr("srcset")&&n.attr("data-srcset")&&n.attr("srcset",n.attr("data-srcset"))}for(var l=0,d=t.length;l<d;l++){var c=e(t[l]),p=c.find("img");if(c.is(".ls-bg, .ls-tn")||p.is(".ls-bg, .ls-tn")){var u=p[0],m=c.attr("class");!p.attr("src")&&p.attr("data-src")&&p.attr("src",r.defaults.init.emptyIMG),!p.attr("srcset")&&p.attr("data-srcset")&&p.attr("srcset",p.attr("data-srcset")),p.attr("data-src",u.currentSrc||p.attr("data-src")||p.attr("src")),p.removeAttr("src srcset").addClass(m).prependTo(p.closest(".ls-slide")),c.remove()}else c.find("img").appendTo(c).removeAttr("width height data-ls")}},events:function(){n.on("scroll."+s,function(){r.slider.set.offset()}),n.on("touchmove."+s,function(e){var t=e.touches?e.touches:e.originalEvent.touches;1==t.length&&(self.touchX=t[0].clientX)}),n.on("resize."+s,function(){r.slider.check.showHide(),r.transitions.scrollscene.immediateRender=!0,"inside"===r.slider.positionToViewport&&r.o.playByScroll&&r.resize.viewport(),r.slider.shouldResize&&(!l.isMobile||l.isMobile&&l.viewport.width!==l.viewport.lastWidth||r.slider.isPopup)&&r.resize.all(),r.slider.set.offset(),r.slider.isScene&&r.resize.scene(),r.slider.isPopup||(r.timeouts.resize&&clearTimeout(r.timeouts.resize),r.resize.once?r.resize.once=!1:r.timeouts.resize=setTimeout(function(){r.resize.once=!0,n.trigger("resize."+s),r.api.methods("resetScroll")},100))}),r.debugMode&&(n.off(".debug"+s),n.on("resize.debug"+s,function(){r.debug.add("log","resize.window",l.viewport.width,!0)})),n.on("hashchange."+s,function(){document.location.hash&&r.slides.deeplink(document.location.hash)}),r.slider.set.offset(),n.trigger("resize."+s),r.o.refreshWaypoint&&window.Waypoint&&Waypoint.refreshAll()},offset:function(){if("none"!==i.css("display")){var e=t.getBoundingClientRect(),a=r.slider.position.toViewportForPerformance;r.slider.position.toViewport;if(r.slider.get.offset(e),r.slider.get.position(e),r.slider.position.left-l.viewport.width>0?r.slider.position.left-l.viewport.width>r.performance.threshold?r.slider.position.toViewportX="after":r.slider.position.toViewportX="insideLimit":r.slider.position.right<0?r.slider.position.right<-r.performance.threshold?r.slider.position.toViewportX="before":r.slider.position.toViewportX="insideLimit":r.slider.position.toViewportX="inside",r.slider.position.top-l.viewport.height>0?r.slider.position.top-l.viewport.height>r.performance.threshold?r.slider.position.toViewportY="below":r.slider.position.toViewportY="insideLimit":r.slider.position.bottom<0?r.slider.position.bottom<-r.performance.threshold?r.slider.position.toViewportY="above":r.slider.position.toViewportY="insideLimit":r.slider.position.toViewportY="inside",r.slider.position.toViewportYForSkipViewportLayers=r.slider.position.toViewportY,r.slider.state.waitForGettingInViewport&&(r.slider.position.middle<l.viewport.height&&r.slider.position.middle>0?(r.slider.position.toViewportY="inside","inside"===r.slider.position.toViewportX&&(r.slider.position.toViewport="inside"),r.slider.state.waitForGettingInViewport=!1,r.timelines._layers&&r.timelines._layers.play(),r.o.animateFirstSlide&&r.slideshow.firstStart&&r.slider.state.readyForStart&&(r.resize.layers({callback:r.api.resumeCallback}),r.api.resumeCallback=!1),r.debugMode&&r.debug.add("log","slideshow.inviewport",!1)):r.slider.position.toViewportY="outside"),-1!==r.slider.position.toViewportX.indexOf("inside")&&"insideLimit"==r.slider.position.toViewportY||-1!==r.slider.position.toViewportY.indexOf("inside")&&"insideLimit"==r.slider.position.toViewportX?(r.slider.position.toViewport="insideLimit",r.slider.position.toViewportForPerformance="inside"):"inside"==r.slider.position.toViewportX&&"inside"==r.slider.position.toViewportY?(r.slider.position.toViewport="inside",r.slider.position.toViewportForPerformance="inside"):(r.slider.position.toViewport="outside",r.slider.position.toViewportForPerformance="outside"),r.o.performanceMode&&a!==r.slider.position.toViewportForPerformance&&("inside"===r.slider.position.toViewportForPerformance?(r.performance.sliderIsInviewport=!0,r.api.methods("resumeSlider","performanceMode")):(r.performance.sliderIsInviewport=!1,r.api.methods("pauseSlider","performanceMode"))),(r.slider.isScrollScene||r.slider.isSticky)&&!r.slider.$spacingWrapper.is("[data-disabled-scene]")){var s=r.slider.$spacingWrapper[0].getBoundingClientRect(),o=(l.viewport.height-r.slider.height)/2;switch(r.o.stickTo||"center"){case"top":r.slider.stickLimit=0;break;case"center":r.slider.stickLimit=o;break;case"bottom":r.slider.stickLimit=2*o}switch(r.o.playFrom||"stick"){case"stick":r.transitions.scrollscene.playFrom=r.slider.stickLimit;break;case"top":r.transitions.scrollscene.playFrom=0;break;case"center":r.transitions.scrollscene.playFrom=l.viewport.height/2;break;case"bottom":r.transitions.scrollscene.playFrom=l.viewport.height}r.slider.wrapperPosition={left:s.left,top:s.top,middleForScrollTransition:s.top+s.height/2-l.viewport.height/2},r.slider.wrapperOffset={left:s.left+l.scroll.left,right:s.left+r.slider.width+l.scroll.left,top:s.top+l.scroll.top,bottom:s.bottom+r.slider.height+l.scroll.top,width:s.width,height:s.height},r.slider.state.shouldAnimateScrollSnene=!1,s.top<=r.transitions.scrollscene.playFrom&&(r.slider.state.shouldAnimateScrollSnene=!0),s.top>r.slider.stickLimit?("disabled"!==r.slider.state.sticky||r.slider.isScrollScene&&!r.transitions.scrollscene.initialized)&&(r.slider.state.sticky="disabled",r.slider.state.shouldAnimateScrollSnene=!0):s.bottom-r.slider.height-r.slider.stickLimit<0?("over"!==r.slider.state.sticky||r.slider.isScrollScene&&!r.transitions.scrollscene.initialized)&&(r.slider.state.sticky="over",r.slider.state.shouldAnimateScrollSnene=!0):s.top<=r.slider.stickLimit&&s.bottom>-r.slider.stickLimit&&("enabled"!==r.slider.state.sticky&&(r.slider.state.sticky="enabled"),r.slider.state.shouldAnimateScrollSnene=!0),r.slider.isScrollScene&&(r.timelines._layers&&r.slider.state.shouldAnimateScrollSnene&&r.transitions.scrollscene.animate(),r.slider.state.shouldAnimateScrollSnene&&(r.slider.fixScrollScene=!0),s.top>r.transitions.scrollscene.playFrom&&r.timelines.has(r.timelines._layers)&&r.timelines._layers.time()>r.transitions.scrollscene.min&&r.slider.fixScrollScene&&(r.slider.fixScrollScene=!1,r.transitions.scrollscene.animate("start")))}r.slider.state.isNotDisplayed&&(r.slider.state.isNotDisplayed=!1,r.resize.all(),r.slider.check.positionToViewport(),n.trigger("scroll"))}else r.slider.state.isNotDisplayed=!0},attributes:function(){i.attr("data-current-slide",r.slides.current.index)}},get:{offset:function(e){e=e||t.getBoundingClientRect(),r.slider.offset={left:e.left+l.scroll.left,right:e.left+r.slider.width+l.scroll.left,top:e.top+l.scroll.top,bottom:e.bottom+r.slider.height+l.scroll.top}},position:function(e){e=e||t.getBoundingClientRect(),r.slider.position={left:e.left,center:e.left+r.slider.width/2,right:e.right,top:e.top,middle:e.top+r.slider.height/2,bottom:e.bottom}},scrollTop:function(e,t){var i=parseFloat(e.offset().top)+(t.offset||0);switch(t.scrollposition){default:case"top":break;case"middle":i=i-window._lsData.viewport.height/2+e.height()/2;break;case"bottom":i=i+e.height()-window._lsData.viewport.height}return i},effectLayers:function(){return i.find("[data-ls-effects]")}},check:{initialized:function(){r.debugMode&&r.debug.add("log","sliderInit.info",[r.plugin.version,r.plugin.releaseDate,r.userInitOptions.sliderVersion||"n/a or slider version is pre 6.0.0",i.attr("id"),s,e.fn.jquery,r.meta.lswpVersion,r.meta.wpVersion],!0),r.slider.initialized||(r.slider.initialized=!0,this.skins())},skins:function(){r.o.skin&&""!==r.o.skin&&r.o.skinsPath&&""!==r.o.skinsPath?r.gui.skin.load():r.slider.init()},showHide:function(){l.isMobile&&!1!==r.o.hideOnMobile||(l.viewport.width<r.o.hideUnder||l.viewport.width>r.o.hideOver&&r.o.hideOver>0?r.slider.hide():r.slider.show())},visibility:function(){!!r.slider.$innerWrapper.width()?r.slider.state.isHidden&&(r.slider.state.isHidden=!1,r.resize.all({forceToGetParentWidth:!0})):r.slider.state.isHidden=!0},positionToViewport:function(){(delete r.timeouts.checkPosition,r.o.playByScroll)&&(r.device.scroll.direction&&(("down"===r.device.scroll.direction?l.scroll.top:r.slider.offset.top-(l.viewport.height-r.slider.height)/2)>("down"===r.device.scroll.direction?r.slider.offset.top-(l.viewport.height-r.slider.height)/2:l.scroll.top)&&("up"===r.device.scroll.direction&&"under"===r.slider.positionToViewport||"down"===r.device.scroll.direction&&"over"===r.slider.positionToViewport)||l.document.height<=l.viewport.height||r.slider.height<l.viewport.height&&("up"===r.device.scroll.direction&&l.scroll.top<=0&&r.slider.offset.top+r.slider.height/2<l.viewport.height/2||"down"===r.device.scroll.direction&&l.scroll.top>=l.document.height-l.viewport.height&&r.slider.offset.top+r.slider.height/2>l.scroll.top+l.viewport.height/2))&&(r.slider.positionToViewport="inside",r.resize.viewport(),r.device.scroll.disable()))}},init:function(){clearTimeout(r.timeouts.skinLoad1),clearTimeout(r.timeouts.skinLoad2),clearTimeout(r.timeouts.skinLoad3),clearTimeout(r.timeouts.skinLoad4),r.plugins.callFunctions("setSliderStylesBefore",{}),r.slider.set.styles(),r.plugins.callFunctions("setSliderOptionsBefore",{}),r.slider.set.options(),r.slider.set.pictureElements(),r.plugins.callFunctions("initSlidesBefore",{}),r.slides.init(),r.device.fullscreen.set(),r.media.init(),r.gui.timers.init(),r.gui.loadingIndicator.init(),r.preload.init(),r.gui.shadow.init(),r.navigation.init(),r.slideshow.init(),r.slides.set.firstSlide(),r.gui.navigation.init(),r.gui.media.init(),r.resize.slider(),r.yourLogo.init(),r.slider.set.events(),r.api.hasEvent("sliderDidLoad")&&r.api.triggerEvent("sliderDidLoad",r.api.eventData()),r.functions.setStates(r.slider,{isLoaded:!0}),r.slider.state.shouldBeDestroyed?r.api.methods("destroy"):(r.slider.isPopup||(r.intervals.checkSliderVisibility=setInterval(function(){r.slider.check.visibility()},500)),r.slideshow.changeTo(r.slides.first.index))},hide:function(){i.addClass("ls-forcehide"),i.closest(".ls-wp-fullwidth-container").addClass("ls-forcehide"),i.closest(".ls-popup").addClass("ls-forcehide"),i.closest(".ls-popup").prev(".ls-popup-overlay").addClass("ls-forcehide")},show:function(){i.removeClass("ls-forcehide"),i.closest(".ls-wp-fullwidth-container").removeClass("ls-forcehide"),i.closest(".ls-popup").removeClass("ls-forcehide"),i.closest(".ls-popup").prev(".ls-popup-overlay").removeClass("ls-forcehide")}},r.functions={isRandom:function(e){return"string"==typeof e&&[r.defaults.init.staggerSplitChar,r.defaults.init.rangeSplitChar,r.defaults.init.randomSplitChar,r.defaults.init.openingBracket,r.defaults.init.closingBracket].some(function(t){return-1!==e.indexOf(t)})},getData:function(e,t){return!r.o.getData||-1===r.o.getData.indexOf(e)||(r.api.triggerEvent("getData",{property:e,value:t}),!r.o.destroyAfter)||(r.api.methods("destroy",!0),!1)},convert:{parallaxOrigin:function(e,t,i){if("scroll"===i.event)return{x:0,y:0};var a="slidercenter slidermiddle";if("string"!=typeof e)e=a;else{var s=e.split(" ");2===s.length&&{sliderleft:1,slidercenter:1,sliderright:1,layerleft:1,layercenter:1,layerright:1}[s[0]]&&{slidertop:1,slidermiddle:1,sliderbottom:1,layertop:1,layermiddle:1,layerbottom:1}[s[1]]||(e=a)}for(var o=e.split(" "),n=0,l=0,d=r.slider.offset,c=r.slider.width,p=r.slider.height,u=t.offset(),m=t.outerWidth(),h=t.outerHeight(),f=0;f<2;f++){var g=o[f],y=0===g.indexOf("slider"),v=0===f,x=g.replace(/^(slider|layer)/,""),S=y?d:u,w=y?c:m,b=y?p:h;if(v)switch(x){case"left":n=S.left;break;case"center":n=S.left+w/2;break;case"right":n=S.left+w}else switch(x){case"top":l=S.top;break;case"middle":l=S.top+b/2;break;case"bottom":l=S.top+b}}return{x:n,y:l}},transformOrigin:function(t,i,a,s){var o=e.trim(t),n=o.split(" "),l=s[0].style,d="",c=["Left","Top"],p=[r.slider.width,r.slider.height];o=o.replace("sliderleft","0").replace("sliderright","100%").replace("slidercenter","50%").replace("slidermiddle","50%").replace("slidertop","0").replace("sliderbottom","100%").replace("left","0").replace("right","100%").replace("center","50%").replace("middle","50%").replace("top","0").replace("bottom","100%").split(" ");for(var u=0;u<o.length;u++)-1!==n[u].indexOf("slider")?(r.transitions.layers.timeline.shouldRestart=!0,d+=u<2?p[u]/(100/parseInt(o[u]))-parseInt(l[c[u].toLowerCase()])-parseInt(l["margin"+c[u]])+"px ":"0px"):-1!==o[u].indexOf("%")?d+=o[u]+" ":-1!==o[u].indexOf("em")?d+=parseFloat(o[u])*parseInt(i.css("font-size"))+"px ":d+=parseInt(o[u])*a.settings.calculatedratio+"px ";return e.trim(d)},specialValuesOfTransformOrigin:function(e){return e=e.replace("sliderleft","0").replace("sliderright","100%").replace("slidercenter","50%").replace("slidermiddle","50%").replace("slidertop","0").replace("sliderbottom","100%").replace("left","0").replace("right","100%").replace("center","50%").replace("middle","50%").replace("top","0").replace("bottom","100%").split(" ")},nodesTransformOrigin:function(t,i,a,s){for(var o="object"==typeof t,n=(i.length,[]),l=s[0].style,d=["left","top"],c=function(t,s){var o=e(i[s]),c=parseInt(o.css("font-size")),p=o.position(),u=e.trim(t),m=u.split(" "),h="",f=[r.slider.width,r.slider.height];u=r.functions.convert.specialValuesOfTransformOrigin(u);for(var g=0;g<u.length;g++)-1!==m[g].indexOf("slider")?(r.transitions.layers.timeline.shouldRestart=!0,h+=g<2?f[g]/(100/parseInt(u[g]))-parseInt(p[d[g]])-parseInt(l[d[g].toLowerCase()])+"px ":"0px"):-1!==u[g].indexOf("%")?h+=u[g]+" ":-1!==u[g].indexOf("em")?h+=parseFloat(u[g])*c+"px ":h+=parseInt(u[g])*a.settings.calculatedratio+"px ";n.push(e.trim(h))},p=0,u=!!o&&t.length,m=0;m<i.length;m++)o?(c(t[p],m),++p==u&&(p=0)):c(t,m);return n},easing:function(e,t){var i,a,s;return"string"==typeof e?(-1!==(e=e.toLowerCase()).indexOf("swing")||-1!==e.indexOf("linear")?i=o.Linear.easeNone:(a=e.match(/(easeinout|easein|easeout)(.+)/)[2],s=o[a.charAt(0).toUpperCase()+a.slice(1)],-1!==e.indexOf("easeinout")?i=s.easeInOut:-1!==e.indexOf("easeout")?i=t?s.easeIn:s.easeOut:-1!==e.indexOf("easein")&&(i=t?s.easeOut:s.easeIn)),i):e},transition:function(t,i,a,s){var o=e.extend({},t);return e.each({de:"delay",rotate:"rotation",rotateX:"rotationX",rotateY:"rotationY"},function(e,t){e in o&&(o[t]=o[e],delete o[e])}),"after"===a?o.scaleX=o.scaleY=o.scaleZ=1:o.scale3d!==s&&(o.scaleX=o.scaleY=o.scaleZ=o.scale3d,delete o.scale3d),o.delay&&(o.delay="after"===a?o.delay/1e3:o.delay),void 0===i&&(i="easeInOutQuart"),o.ease=r.functions.convert.easing(i),o},properties:function(e,t,i,a,s){if("string"==typeof e)return r.functions.convert._properties(e,t,i,a,s);if("object"==typeof e){for(var o in e)e[o]=r.functions.convert._properties(e[o],t,i,a,s);return e}return e},_properties:function(t,i,a,s,o){var n=!1;if("string"==typeof t&&-1===t.indexOf(r.defaults.init.staggerSplitChar)&&t.charAt(0)===r.defaults.init.openingBracket&&-1===t.indexOf("..")){var l=e.trim(t),d=l.match(/^\[\s*(-?\d+(?:\.\d+)?)\s*([\+\-\*\/])\s*(-?\d+(?:\.\d+)?)\s*\]$/),c=l.match(/^\[\s*([\+\-\*\/])\s*(-?\d+(?:\.\d+)?)\s*\]$/);(d||c)&&(d?n=d:c&&(n=c))}if(-1!==["enable","enabled","true"].indexOf(t))return!0;if(-1!==["disable","disabled","false","undefined","null"].indexOf(t))return!1;if(!n){if("string"==typeof t&&-1!==t.indexOf(r.defaults.init.staggerSplitChar)&&t.charAt(0)!==r.defaults.init.openingBracket){for(var p=t.split(r.defaults.init.staggerSplitChar),u=(f=[],0);u<p.length;u++)f[u]=e.isNumeric(p[u])?parseFloat(e.trim(p[u])):e.trim(p[u]);return f}return i?""+parseInt(t)=="NaN"?0:parseInt(t):e.isNumeric(t)?parseFloat(t):t}var m,h,f=[],g=0,y=s?s.text().length:100;if(4===n.length?(g=parseFloat(n[1]),m=n[2],h=parseFloat(n[3])):3===n.length&&(g=0,m=n[1],h=parseFloat(n[2])),m&&!isNaN(h)){for(var v=0;v<y;v++)if(0===v)f.push(g);else{switch(m){case"+":g+=h;break;case"-":g-=h;break;case"*":g*=h;break;case"/":g/=h}f.push(g)}return f}},oldProperties:function(t){return e.each({firstLayer:"firstSlide",loops:"cycles",forceLoopNum:"forceCycles",layersContainer:"layersContainerWidth",sublayerContainer:"layersContainerWidth",randomSlideshow:"shuffleSlideshow"},function(e,i){e in t&&(t[i]=t[e],delete t[e])}),t},randomProperties:function(t,i,a,s,o,n){s=s||!1,o=o||!!s&&s.data(r.defaults.init.dataKey);var l="Width",d=!1,c=!1;"number"!=typeof t||isNaN(t)||(t=t.toString()),-1===i.indexOf("height")&&-1===i.indexOf("top")&&-1===i.indexOf("y")||(l="Height"),-1===i.indexOf("duration")&&-1===i.indexOf("delay")&&-1===i.indexOf("start")&&-1===i.indexOf("scale")&&-1===i.indexOf("opacity")&&-1===i.indexOf("rotat")&&-1===i.indexOf("skew")||(n=!0),o&&-1!==t.indexOf(r.defaults.init.staggerSplitChar)&&t.charAt(0)!==r.defaults.init.openingBracket&&(d=!0),-1!==t.indexOf("random")&&-1!==t.indexOf("(")&&-1!==t.indexOf(",")&&-1!==t.indexOf(")")?t=t.split("(")[1].split(")")[0].replace(",",r.defaults.init.rangeSplitChar):t.charAt(0)===r.defaults.init.openingBracket&&t.charAt(t.length-1)===r.defaults.init.closingBracket&&(t=t.substring(1,t.length-1)),t=t.replace(/,/g,".").replace(/٫/g,".");var p=-1===i.indexOf("scale")&&-1===i.indexOf("opacity")?1:100,u=t;if(d){c=!0;var m,h=a?a+i:i;if(o.randomValues[h]=o.randomValues[h]||{},!o.randomValues[h].r)if(o.randomValues[h].r=String(t).split(r.defaults.init.staggerSplitChar).map(function(e){return e.trim()}),o.clones&&-1!==a.indexOf("replicator"))o.clones<o.randomValues[h].r.length?(o.randomValues[h].r=o.randomValues[h].r.slice(0,o.clones),o.randomValues[h].r.reverse()):o.clones>o.randomValues[h].r.length?(o.randomValues[h].r.reverse(),(m=o.clones%o.randomValues[h].r.length)&&(o.randomValues[h].index=o.randomValues[h].r.length-m)):o.randomValues[h].r.reverse();var f=o.randomValues[h].r,g="number"==typeof o.randomValues[h].index?o.randomValues[h].index:0;g>=f.length&&(g=0),o.randomValues[h].index=g+1;var y=f[g];u=parseFloat(s?r.resize.getXY(s,o,y,l,n):y)}else-1!==t.indexOf(r.defaults.init.randomSplitChar)?(c=!0,u=(u=(f=t.split(r.defaults.init.randomSplitChar))[Math.floor(Math.random()*f.length)].trim()).charAt(0)===r.defaults.init.openingBracket&&u.charAt(u.length-1)===r.defaults.init.closingBracket?r.functions.convert.randomProperties(u,i,a,s,o):parseFloat(s?r.resize.getXY(s,o,u,l,n):u)):-1!==t.indexOf(r.defaults.init.rangeSplitChar)&&(c=!0,(f=t.split(r.defaults.init.rangeSplitChar))[0]=parseFloat((s?r.resize.getXY(s,o,f[0],l,n):f[0])*p),f[1]=parseFloat((s?r.resize.getXY(s,o,f[1],l,n):f[1])*p),f.sort(function(e,t){return e-t}),u=Math.floor(Math.random()*(f[1]-f[0]+1)+f[0])/p);return"string"==typeof u&&e.isNumeric(u)?u=parseFloat(u):o&&!c&&(u=r.resize.getXY(s,o,u,l,n)),u},clipProperties:function(t,i,a,s){var r=e.trim(t);if(-1===r.indexOf("polygon")&&-1===r.indexOf("(")){var o="\\d+(?:\\.\\d+)?%\\s+\\d+(?:\\.\\d+)?%";if(new RegExp("^"+o+"(?:\\s*,\\s*"+o+"){3}$").test(r))return"polygon("+r.replace(/\s*,\s*/g,",")+")"}if(-1!==t.indexOf("polygon")&&-1===t.indexOf("clip")&&-1===t.indexOf("px")&&-1===t.indexOf(", "))return t;for(var n,l,d=t,c=-1===(t=-1!==t.indexOf("(")?e.trim(t.split("(")[1].split(")")[0]):e.trim(t)).indexOf(",")?t.split(" "):t.split(","),p=[["0%","0%"],["100%","0%"],["100%","100%"],["0%","100%"]],u=e.isNumeric(i.original.width)?i.original.width:a.outerWidth(),m=e.isNumeric(i.original.height)?i.original.height:a.outerHeight(),h=function(e){return Math.round(100*(e+Number.EPSILON))/100},f=s&&-1!==d.indexOf("rect")?0:100,g=0;g<c.length;g++)if(-1===(n=c[g].trim()).indexOf(" ")){if("number"==typeof parseInt(n))switch(0===parseInt(n)&&(n="0%"),g){case 0:-1===n.indexOf("%")&&(n=h(parseInt(n)/(m/100))+"%"),p[0][1]=n,p[1][1]=n;break;case 1:-1!==n.indexOf("%")?(p[1][0]=100-parseInt(n)+"%",p[2][0]=100-parseInt(n)+"%"):(-1===n.indexOf("%")&&(n=h(Math.abs(parseInt(n)/(u/100)-f))+"%"),p[1][0]=n,p[2][0]=n);break;case 2:-1!==n.indexOf("%")?(p[2][1]=100-parseInt(n)+"%",p[3][1]=100-parseInt(n)+"%"):(-1===n.indexOf("%")&&(n=h(Math.abs(parseInt(n)/(m/100)-f))+"%"),p[2][1]=n,p[3][1]=n);break;case 3:-1===n.indexOf("%")&&(n=h(parseInt(n)/(u/100))+"%"),p[0][0]=n,p[3][0]=n}}else-1===(l=n.split(" "))[0].indexOf("%")&&(l[0]=h(parseInt(l[0])/(u/100))+"%"),p[g][0]=l[0],-1===l[1].indexOf("%")&&(l[1]=h(parseInt(l[1])/(m/100))+"%"),p[g][1]=l[1];for(var y="polygon(",v=0;v<p.length;v++)y+=p[v].join(" "),v<p.length-1&&(y+=",");return y+=")"}},getSliderClosestParentElementWithNumericValueOfProperty:function(t){for(var a,s=i.parents().not(".ls-fullscreen-wrapper"),o=s.length,n=100,l=0;l<o;l++)if("auto"!==(a=window.getComputedStyle(s[l]).getPropertyValue(t))){if(-1!==a.indexOf("px")&&(parseInt(a)>0||r.slider.isPopup))return r.slider.$parentWithNumericWidthValue=e(s[l]),r.slider.parentWithNumericWidthValuePercent=null,e(s[l]);-1!==a.indexOf("%")&&(n=n/100*parseInt(a),r.slider.parentWithNumericWidthValuePercent=n)}},sortArray:function(e,t,i){var a,s,r,o,n,l,d,c=[],p=e*t;switch(i){case"forward":for(a=0;a<e;a++)for(s=0;s<t;s++)c.push(a+s*e);break;case"reverse":for(a=e-1;a>-1;a--)for(s=t-1;s>-1;s--)c.push(a+s*e);break;case"center":for(n=Math.floor(p/2),r=0;r<n;r++)c.push(r);for(o=n;o>=0;o--)c.push(o);break;case"edge":case"mirror":for(r=n=Math.floor(p/2);r>0;r--)c.push(r);for(o=0;o<=n;o++)c.push(o);break;case"radial-out":for(l=e/2,d=t/2,a=0;a<e;a++)for(s=0;s<t;s++)c.push(Math.floor(Math.abs(d-s-.5))+Math.floor(Math.abs(l-a-.5)));break;case"radial-in":for(l=e/2,d=t/2,a=0;a<e;a++)for(s=0;s<t;s++)c.push(Math.floor(d-Math.ceil(Math.abs(d-s-.5)))+Math.floor(l-Math.ceil(Math.abs(l-a-.5))))}return c},shuffleArray:function(e){for(var t,i,a=e.length;0!==a;)i=Math.floor(Math.random()*a),t=e[a-=1],e[a]=e[i],e[i]=t;return e},countProp:function(e){var t=0;for(var i in e)e.hasOwnProperty(i)&&++t;return t},getDataProp:function(e,t){var i=new RegExp("(?:^|[\\s;])"+t+"\\s*:\\s*([^;\\s]+)","i"),a=e.match(i);return a?a[1]:null},updateDataProp:function(e,t,i){var a=new RegExp("(^|[\\s;])([\\s;]*)"+t+"\\s*:\\s*[^;\\s]+","i");if(a.test(e))return e.replace(a,function(e,a,s){return(a||"")+(s||"")+t+":"+i});var s=e.trim();return";"===s.slice(-1)?s+" "+t+":"+i+" ;":s+"; "+t+":"+i+" ;"},getURL:function(e){return e&&e.length?e[0].currentSrc?e[0].currentSrc:e.data("src")?e.data("src"):e.attr("src"):r.defaults.init.emptyIMG},getALT:function(e){return!!e.attr("alt")&&e.attr("alt")},setStates:function(e,t,i){if(e&&e.state){var a=r.slideshow.isPaused();if(i)e.state[t]=i;else for(var s in t)e.state[s]=t[s];var o=r.slideshow.isPaused();e==r.slideshow&&(r.api.hasEvent("slideshowStateDidChange")&&r.api.triggerEvent("slideshowStateDidChange",r.api.eventData()),o!=a&&(o?r.api.hasEvent("slideshowDidPause")&&r.api.triggerEvent("slideshowDidPause",r.api.eventData()):(r.slideshow.start(),r.api.hasEvent("slideshowDidResume")&&r.api.triggerEvent("slideshowDidResume",r.api.eventData()))))}},clearTimers:function(e={}){if(e.timeout&&r.timeouts[e.timeout])clearTimeout(r.timeouts[e.timeout]),delete r.timeouts[e.timeout];else if(!e.timeout)for(var t in r.timeouts)clearTimeout(r.timeouts[t]),delete r.timeouts[t];if(e.interval&&r.intervals[e.interval])clearInterval(r.intervals[e.interval]),delete r.intervals[e.interval];else if(!e.interval)for(var t in r.intervals)clearInterval(r.intervals[t]),delete r.intervals[t];r.plugins.callFunctions("clearTimers",{})},clearTimelines:function(){r.transitions.scrollscene._tween&&r.transitions.scrollscene._tween.kill&&r.transitions.scrollscene._tween.kill(),r.timelines.to([r.timelines,"_slideTransition _layers _layersAlt",null,!0,!0,!0,!0]);for(var t=0;t<r.timelines.slides.length;t++)r.timelines.to([r.timelines.slides[t],"_forceOut _forceOutMirror",null,!0,!0,!0,!0]);i.find(".ls-layer").each(function(){var t=e(this).data(r.defaults.init.dataKey);for(var i in t.timelines)r.timelines.to([t.timelines,i,null,!0,!0,!0])}),o.TweenMax.killTweensOf(i.find(".ls-bg, .ls-layer, .ls-wrapper, .ls-curtile, .ls-nexttile").get()),i.find(".ls-layer").each(function(){var t=e(this).data(r.defaults.init.dataKey);t.is.countdown&&r.countdown.stopInterval(t.countdownSettings),t.is.counter&&r.counter.stop(t.counterSettings)})},clearEvents:function(){r.plugins.callFunctions("clearEvents",{}),n.add("body").add(document).add(i).add(i.find("*")).add("."+s).off("."+s+" .debug"+s+" .parallax"+s+" .scroll"+s),window._layerSlider.closePopupsOnEsc&&window._layerSlider.closePopupsOnEsc[s]&&delete window._layerSlider.closePopupsOnEsc[s],delete window._layerSliders[s],i.off()},objectIsEmpty:function(e){return!e||"object"!=typeof e||0===Object.keys(e).length},getUID:function(e){for(var t="";t.length<e+2;)t+=Math.random().toString(36).substring(2);return t.substring(2,e+2)}},r.device={scroll:{keys:[32,33,34,35,36,37,38,39,40],disable:function(){window.addEventListener("scroll",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("wheel",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("mousewheel",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("touchmove",this.preventDefault,{passive:!1,capture:!0}),window.addEventListener("keydown",this.preventDefaultForScrollKeys,{capture:!0})},enable:function(){window.removeEventListener("scroll",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("wheel",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("mousewheel",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("touchmove",this.preventDefault,{passive:!1,capture:!0}),window.removeEventListener("keydown",this.preventDefaultForScrollKeys,{capture:!0})},preventDefault:function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1},preventDefaultForScrollKeys:function(e){if(-1!==r.device.scroll.keys.indexOf(e.keyCode))return r.device.scroll.preventDefault(e),!1}},removeSelection:function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()},fullscreen:{enter:function(){r.functions.setStates(r.slider,{inFullscreen:!0}),e("body, html").addClass("ls-fullscreen"),r.slider.fullscreenWrapper.requestFullscreen(),i.trigger("mouseleave"),r.device.removeSelection()},exit:function(){r.functions.setStates(r.slider,{inFullscreen:!1}),r.resize.all(),e("body, html").removeClass("ls-fullscreen"),r.device.removeSelection()},toggle:function(){r.device.fullscreen.element()?(r.device.fullscreen.exit(),document.exitFullscreen()):r.device.fullscreen.enter()},set:function(){r.o.allowFullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)&&(i.wrap('<div class="ls-fullscreen-wrapper"></div>'),r.slider.$fullscreenWrapper=i.closest(".ls-fullscreen-wrapper"),r.slider.fullscreenWrapper=r.slider.$fullscreenWrapper[0],r.slider.$spacingWrapper=r.slider.$fullscreenWrapper,r.slider.fullscreenWrapper.requestFullscreen=r.slider.fullscreenWrapper.requestFullscreen||r.slider.fullscreenWrapper.webkitRequestFullscreen||r.slider.fullscreenWrapper.mozRequestFullScreen||r.slider.fullscreenWrapper.msRequestFullscreen,document.exitFullscreen=document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen,e(document).on("fullscreenchange."+s+" webkitfullscreenchange."+s+" mozfullscreenchange."+s+" msfullscreenchange."+s,function(){r.device.fullscreen.element()||r.device.fullscreen.exit()}),r.slider.$fullscreenWrapper.on("dblclick."+s,function(){r.device.fullscreen.toggle()}))},element:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}}},r.actions={do:function(t){var a=!1,s="";switch(t.action){case"scrollBelowProject":case"scrollToNextProject":case"scrollToPrevProject":case"scrollToElement":case"scrollToSelf":case"scrollToScenePosition":case"scrollToTimelinePosition":r.slider.isScene||i.addClass("ls-action-trigger"),r.slider.isScrollScene&&"scrollToTimelinePosition"===t.action&&(t.action="scrollToScenePosition",t.target="currentScene");var n,l=e(".ls-wp-container:not(.ls-hidden):not([data-scene]), ls-scene-wrapper"),d=e("ls-scene-wrapper, .ls-action-trigger"),c=e([]),p=r.slider.isScene?r.slider.$spacingWrapper:i,u=d.length,m=d.index(p);if(r.slider.isScene||i.removeClass("ls-action-trigger"),"scrollToSelf"===t.action)n=r.slider.$spacingWrapper.offset().top+(t.offset||0);else if("scrollBelowProject"===t.action)n=r.slider.$spacingWrapper.offset().top+r.slider.$spacingWrapper.height()+(t.offset||0);else if("scrollToPrevProject"===t.action)0!==l.index(p)?(c=l.eq(l.index(p)-1),n=r.slider.get.scrollTop(c,t)):a="There’s no previous project to scroll to.";else if("scrollToNextProject"===t.action)l.index(p)<l.length-1?(c=l.eq(l.index(p)+1),n=r.slider.get.scrollTop(c,t)):a="There’s no next project to scroll to.";else if(-1!==t.action.indexOf("scrollToElement")){try{c=e(t.selector.toString()).not(".ls-wp-container.ls-hidden")}catch(e){s=e}if(c.length){var h=c.closest("ls-scene-wrapper");h.length&&(c=h),n=r.slider.get.scrollTop(c,t)}else a='Couldn’t find the scroll target element "'+t.selector+'". Please verify the selector you’ve entered.'}else if("scrollToScenePosition"===t.action){switch(t.target){case"currentScene":r.slider.isScene?c=p:a="Current project is not a scene.";break;case"nextScene":m+1<u?c=e(d[m+1]):a="There are no next scenes in the DOM.";break;case"previousScene":m-1>=0?c=e(d[m-1]):a="There are no previous scenes in the DOM."}if(c.length){var f,g,y=parseFloat(c.attr("data-scene-duration")),v=c.height(),x=(f=c.find(".ls-container")).height();t.position=e.trim(t.position)||"0ms",c.is('[data-scene="scroll"]')?(g=-1!==t.position.indexOf("%")||-1===t.position.indexOf("ms")?y*(Math.min(100,Math.max(0,parseFloat(t.position)))/100):Math.min(Math.max(0,parseFloat(t.position)/1e3),y),n=Math.round(parseFloat(c.offset().top)-parseFloat(f.css("top"))+g/y*(v-x))):(g=Math.min(100,Math.max(0,parseFloat(t.position)))/100,n=Math.round(parseFloat(c.offset().top)-parseFloat(f.css("top"))+(v-x)*g))}}else if("scrollToTimelinePosition"===t.action){var S=0,w=(t.position+"").charAt(0),b="+"===w||"-"===w;r.slider.state.isScrolling&&b&&(r.timelines._layers.stop(),S=r.timelines._layers.time()-r.slider.lastWantedTimelinePosition);var T=r.timelines._layers.duration(),k=T*(100*r.timelines._layers.progress()/100),C=0;switch(C=-1!==t.position.indexOf("%")||-1===t.position.indexOf("ms")?T*parseFloat(t.position)/100:parseFloat(t.position)/1e3,C=Math.abs(C),w){case"+":C=k+C;break;case"-":C=k-C}C=Math.max(Math.min(C-S,T),0),r.slider.lastWantedTimelinePosition=C}a||(t.duration=e.isNumeric(t.duration)?t.duration:1e3,r.slider.state.isScrolling=!0,"scrollToTimelinePosition"===t.action?r.timelines._layers.tweenTo(C,{ease:r.functions.convert.easing(t.easing),onComplete:function(){r.slider.state.isScrolling=!1}}).duration(t.duration/1e3):o.TweenMax.to("html, body",t.duration/1e3,{scrollTop:n,ease:r.functions.convert.easing(t.easing),onComplete:function(){r.slider.state.isScrolling=!1}}));break;case"switchSlide":r.slideshow.changeTo(t.slide,!0,!0);break;case"nextSlide":case"prevSlide":case"lastSlide":case"firstSlide":case"stopSlideshow":case"startSlideshow":var O;"nextSlide"===t.action&&(O="next"),"prevSlide"===t.action&&(O="prev"),"lastSlide"===t.action&&(O="last"),"firstSlide"===t.action&&(O="first"),"stopSlideshow"===t.action&&(O="stop"),"startSlideshow"===t.action&&(O="start"),r.navigation[O]("clicked");break;case"replaySlide":r.api.methods("replay");break;case"reverseSlide":r.api.methods("reverse",t.replay);break;case"resetSlide":r.api.methods("resetSlide");break;case"pauseProject":r.api.methods("pauseSlider");break;case"resumeProject":r.api.methods("resumeSlider");break;case"toggleProject":r.api.methods("toggleSlider");break;case"playMedia":r.media.functions.playActiveMedia();break;case"pauseMedia":r.media.functions.pauseActiveMedia();break;case"unmuteMedia":r.media.unmute.multipleMediaElements();break;case"openPopup":var P,I=e('[data-ls-slug="'+t.popup+'"], [id^=layerslider_'+t.popup+"]").first(),L=I.data("lsSliderUID");if(I.length)(P=window._layerSliders[L].initializedPlugins.popup).plugin.settings.showOnce=!1,"opened"==P.state.is?t.toggle&&P.events.hide():t.slide?I.layerSlider("fastChangeTo",t.slide,function(){P.events.show()}):P.events.show();else{var _={action:"ls_get_popup_markup",id:t.popup,slide:t.slide};e.get(r.o.ajaxURL||window.ajaxurl||"/wp-admin/admin-ajax.php",_,function(t){e(t).appendTo("body")})}break;case"launchPopups":var $;for(var M in window._layerSliders)($=window._layerSliders[M]).initializedPlugins.popup&&$.api.methods("openPopup");break;case"closePopup":r.api.methods("closePopup");break;case"closeAllPopups":r.api.methods("closeAllPopups");break;case"jsFunction":try{window[t.function]()}catch(e){s=e,a="The browser thrown the following error after calling "+t.function+"() JavaScript function."}}a&&console.error('LayerSlider: Error while calling layer action "'+t.action+'". '+a+(""!==s?"\n\r\n\r":""),s)}},r.api={hasEvent:function(i,a){var s=e._data(a||t,"events");return!(!s||!s[i])},methods:function(t,a,o,l){if(!r.slider.isBusy())if("number"==typeof t)t>0&&t<r.slides.count+1&&t!=r.slides.current.index&&r.slideshow.changeTo(t,!0,!0);else switch(t){case"touchPrev":r.device.touchPrev=!0;case"previousSlide":case"prev":r.navigation.prev();break;case"touchNext":r.device.touchNext=!0;case"nextSlide":case"next":r.navigation.next();break;case"startSlideshow":case"start":r.navigation.start()}switch(t){case"openPopup":r.initializedPlugins.popup&&(r.plugins.callFunctions("openPopup",{}),a&&e.isNumeric(a)?i.layerSlider("fastChangeTo",a,function(){r.initializedPlugins.popup.events.show()}):r.initializedPlugins.popup.events.show());break;case"launchPopups":r.plugins.callFunctions("launchPopups",{}),r.actions.do("launchPopups");break;case"fastChangeTo":r.plugins.callFunctions("fastChangeTo",{}),a&&e.isNumeric(a)&&(r.slides.current.index!==a?(r.slideshow.forceFastChange=!0,r.slider.shouldResize=!0,o&&"function"==typeof o&&(r.slideshow.forceFastChangeCallback=o),r.slideshow.changeTo(a,!0,!0,"next")):o&&o());break;case"resetScroll":r.plugins.callFunctions("resetScroll",{}),r.slider.set.offset(),n.trigger("scroll.scroll"+s).trigger("touchmove.scroll"+s).trigger("scroll.parallax"+s).trigger("touchmove.parallax"+s);break;case"enableScene":r.slider.isScene&&(r.plugins.callFunctions("enableScene",{}),r.slider.$spacingWrapper.removeAttr("data-disabled-scene"),r.api.methods("resetScroll"));break;case"disableScene":r.slider.isScene&&(r.plugins.callFunctions("disableScene",{}),r.slider.$spacingWrapper.attr("data-disabled-scene",""),r.transitions.scrollscene.animate("start"),r.api.methods("resetScroll"));break;case"closePopup":r.initializedPlugins.popup&&(r.plugins.callFunctions("closePopup",{}),r.initializedPlugins.popup.events.hide());break;case"closeAllPopups":r.plugins.callFunctions("closAllPopups",{}),e('<div class="ls-close-all-popups-button"></div>').css("display","none").appendTo("body").trigger("click").remove();break;case"updateLayerData":a&&r.layers.update.data(a,o,l);break;case"redrawSlider":case"redraw":r.plugins.callFunctions("redrawSlider",{}),r.resize.all(),r.api.methods("resetScroll");break;case"replaySlide":case"replay":r.timelines._layers&&(r.plugins.callFunctions("replaySlide",{}),r.timelines._layers.pause().progress(0).invalidate().restart(!0,!1));break;case"reverseSlide":case"reverse":r.timelines._layers&&(r.plugins.callFunctions("reverseSlide",{}),r.timelines._layers.reversed()?r.timelines._layers.play():r.timelines._layers.reverse(),a&&(r.transitions.layers.timeline.shouldReplay=!0));break;case"unmute":case"unmuteMedia":r.media.unmute.multipleMediaElements();break;case"stopSlideshow":case"stop":r.navigation.stop();break;case"pauseSlider":case"pause":r.plugins.callFunctions("pauseSlider",{}),a&&"performanceMode"===a&&r.functions.setStates(r.slideshow,{pausedByPerformance:!0}),r.timelines._layers&&!r.slider.isScrollScene&&r.timelines._layers.stop(),r.layers.get("active").each(function(){var t=e(this).data(r.defaults.init.dataKey);t.timelines._loop&&t.timelines._loop.stop()}),r.transitions.layers.parallax.state.paused=!0,r.transitions.layers.scroll.state.paused=!0,r.media.functions.pauseActiveMedia(!0);break;case"resumePopup":r.layers.get("active").each(function(){r.media.functions.playIfAllowed(e(this))}),r.timelines._layers&&(r.timelines._layers.timeScale()<.001&&r.transitions.layers.timeline.resume(),r.timelines._layers.play()),r.timelines._slideTransition&&r.timelines._slideTransition.play();break;case"resumeSlider":case"resume":r.plugins.callFunctions("resumeSlider",{}),r.timelines._layers&&(r.timelines._layers.timeScale()<.001&&r.transitions.layers.timeline.resume(),r.slider.isScrollScene||r.timelines._layers.play()),r.media.functions.playActiveMedia(!0),r.layers.get("active").each(function(){var t=e(this).data(r.defaults.init.dataKey);t.timelines._loop&&t.timelines._loop.play()}),r.transitions.layers.parallax.state.paused=!1,r.transitions.layers.scroll.state.paused=!1,r.timelines._slideTransition?r.timelines._slideTransition.play():r.o.animateFirstSlide&&r.slideshow.firstStart&&r.slider.state.readyForStart&&(r.resize.layers({callback:r.api.resumeCallback}),r.api.resumeCallback=!1),a&&"performanceMode"===a&&r.functions.setStates(r.slideshow,{pausedByPerformance:!1});break;case"playMedia":r.media.functions.playActiveMedia();break;case"pauseMedia":r.media.functions.pauseActiveMedia();break;case"toggleSlider":case"toggle":r.plugins.callFunctions("toggleSlider",{}),r.slider.state.isPaused?(i.layerSlider("resume"),r.slider.state.isPaused=!1):(i.layerSlider("pause"),r.slider.state.isPaused=!0);break;case"reset":case"resetSlider":break;case"resetSlide":case"resetCurrentSlide":r.plugins.callFunctions("resetSlide",{}),r.timelines.to([r.timelines,"_layers _layersAlt",0]),r.media.functions.stop(!0);break;case"destroy":case"kill":if(r.plugins.callFunctions("killSlider",{}),r.slider.state.isLoaded){if(r.transitions.lottie.destroyAll(),r.functions.clearTimers(),r.functions.clearTimelines(),r.layers.$all.removeData(),r.api.hasEvent("sliderDidDestroy")&&r.api.triggerEvent("sliderDidDestroy"),r.slider.state.sholudBeRemoved||a){if(r.slider.$hiddenWrapper.remove(),r.gui.timers.slidebar.$containerElement)for(var d=0;d<r.gui.timers.slidebar.$containerElement.length;d++)r.gui.timers.slidebar.$containerElement[d]instanceof jQuery&&r.gui.timers.slidebar.$containerElement[d].remove();r.api.hasEvent("sliderDidRemove")&&r.api.triggerEvent("sliderDidRemove");var c=r.slider.$spacingWrapper;c.closest(".ls-popup").length&&(c=c.closest(".ls-popup")).prev(".ls-popup-overlay").remove(),c.remove(),r.slider.$silentWrapper&&r.slider.$silentWrapper.remove()}r.functions.clearEvents(),window._layerSlider.removeSlider(s)}else r.functions.setStates(r.slider,{shouldBeDestroyed:!0,sholudBeRemoved:a||!1});r.slider.positionToViewport="under",r.device.scroll.enable()}},eventData:function(){return{data:r,userData:r.o,uid:s,target:t,slider:i,state:r.slider.state,isBusy:r.slider.isBusy(),event:{target:t},api:function(e,t,a,s){i.layerSlider(e,t,a,s)},navigation:{direction:r.navigation.direction},slides:{first:{index:r.slides.first.index,deeplink:r.slides.get.deeplink(r.slides.first.index),data:r.slides.first.data},prev:{index:r.slides.prev.index,deeplink:r.slides.get.deeplink(r.slides.prev.index),data:r.slides.prev.data},current:{index:r.slides.current.index||r.slides.first.index,deeplink:r.slides.get.deeplink(r.slides.current.index),layersIn:r.layers.get("current,in"),layersOut:r.layers.get("current,out"),timeline:r.timelines._layers,data:r.slides.current.data},next:{index:r.slides.next.index,deeplink:r.slides.get.deeplink(r.slides.next.index),layersIn:r.layers.get("next,in"),layersOut:r.layers.get("next,out"),data:r.slides.next.data},count:r.slides.count},slideChangeTimeline:r.timelines._slideTransition,slideshow:{state:r.slideshow.state,sequence:r.slideshow.sequence,direction:r.slideshow.direction,isPaused:r.slideshow.isPaused()},cycles:{max:r.o.cycles,current:r.slideshow.curCycle}}},triggerEvent:function(e,t){var a,s;try{t?(s=i.triggerHandler(e+".layerSlider",t),a=i.triggerHandler(e+".$",t)):(s=i.triggerHandler(e+".layerSlider"),a=i.triggerHandler(e+".$"))}catch(t){console.error('LayerSlider: Error while calling event "'+e+'":\n\r\n\r',t)}return null!=s?s:"undefinded"!=typeof a&&null!==a?a:void 0}},r.browser={isSafari:!!navigator.userAgent.match(/(iPhone|iPod|iPad|Safari)/i)&&!navigator.userAgent.match(/(Opera|Chrome|Edge)/i),isChrome:function(){var e=window.chrome,t=window.navigator,i=t.vendor,a=void 0!==window.opr,s=t.userAgent.indexOf("Edge")>-1;return!!t.userAgent.match("CriOS")||null!=e&&"Google Inc."===i&&!1===a&&!1===s},usesFileProtocol:-1!==document.location.href.indexOf("file://"),supportsWebGL:function(){var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");return!!(t&&t.getContextAttributes().alpha&&t.getContextAttributes().depth&&t.getContextAttributes().stencil&&t.getContextAttributes().antialias)},supports3D:function(){for(var t=e("<div>"),a=!1,s=!1,r=["perspective","OPerspective","msPerspective","MozPerspective","WebkitPerspective"],o=["transformStyle","OTransformStyle","msTransformStyle","MozTransformStyle","WebkitTransformStyle"],n=r.length-1;n>=0;n--)a=a||void 0!==t[0].style[r[n]];for(var l=o.length-1;l>=0;l--)t.css("transform-style","preserve-3d"),s=s||"preserve-3d"==t[0].style[o[l]];return a&&void 0!==t[0].style[r[4]]&&(t.attr("id","ls-test3d").appendTo(i),a=3===t[0].offsetHeight&&9===t[0].offsetLeft,t.remove()),a&&s},isOld:-1!==navigator.userAgent.indexOf("rident/5")},r.initializedPlugins={},r.timeouts={},r.intervals={},r.debug={options:{}},r.plugin={version:"8.3.0",release:"stable",releaseDate:"2026. 07. 08."},r.slider.load()}}(jQuery);