/* * LayerSlider * * (c) 2011-2024 George Krupa, John Gera & Kreatura Media * * LayerSlider home: https://layerslider.com/ * Licensing: https://layerslider.com/licensing/ */ ;!function(ie){"use strict";window._layerSliders={},window._lsData={$overflowWrapper:ie("body").length?ie("body"):ie("html"),isMobile:!!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|webOS|Windows Phone|IEMobile|mobi|opera mini|nexus 7)/i)||navigator.maxTouchPoints&&2e+5?window._lsData.scroll.direction="down":window._lsData.ts .ls-layer, > .ls-slide"),t=0,i=J.defaults.slide.keys,s=0,a=e.length;s'))):n.data.$backgroundVideo=!1);for(var b=r.find("picture"),v=0,x=b.length;v .ls-bg").length&&(n.data.$background=r.find("> .ls-bg").first()),n.data.thumbnail||(r.find("> .ls-tn").length?l=r.find("> .ls-tn").first():r.find("> .ls-bg").length&&(l=r.find("> .ls-bg").first()),l?(n.data.thumbnail=J.functions.getURL(l),n.data.tnAlt=J.functions.getALT(l)):n.data.thumbnail=J.o.skinsPath+J.o.skin+"/nothumb.png"),(n.data.customtransition2d||n.data.customtransition3d)&&"undefined"==typeof layerSliderCustomTransitions&&(delete n.data.customtransition2d,delete n.data.customtransition3d,J.debugMode&&J.debug.add("warn","sliderInit.customTransitions",t+1)),"visible"===o.overflow&&(n.data.overflow="visible"),n.data.backgroundColor?n.data.$background||n.data.$backgroundVideo&&n.data.$backgroundVideo.length||(n.data.$background=ie("").addClass("ls-bg").attr("src","data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==").appendTo(r)):n.data.backgroundColor=""===r[0].style.backgroundColor?"transparent":r[0].style.backgroundColor,J.slides[++t]={},J.slides[t].data=ie.extend(!0,{},J.defaults.slide.options.data,n.data),J.slides[t].parallax=n.parallax,J.slides[t].scroll=n.scroll,J.slides[t].kenBurns=n.kenBurns,J.slides[t].filter=n.filter,J.slides[t].index=t,J.slides[t].$layers=ie(),J.slides[t].plugins=n.plugins,J.slider.thumbnails.push(n.data.thumbnail),J.layers.init(r,t)}J.debugMode&&J.debug.groupEnd("sliderInit.style")},set:{slideIndexes:function(){var e=J.slides;e.prev.index=e.current.index,e.current.index=e.next.index,e.next.index=J.slideshow.get.slideInSequence(J.slideshow.direction),e.set.slidesData(),J.slider.set.attributes()},nextSlideIndex:function(e){var t=J.slides;t.next.index=e,t.set.slidesData()},slidesData:function(){var e=J.slides;e.prev=-1!==e.prev.index?ie.extend(!0,{},e[e.prev.index]):{},e.current=-1!==e.current.index?ie.extend(!0,{},e[e.current.index]):{},e.next=-1!==e.next.index?ie.extend(!0,{},e[e.next.index]):{}},firstSlide:function(){var e,t=J.slides;t.first.index="random"===J.o.firstSlide?J.o.firstSlide:Math.max(J.functions.convert.properties(J.o.firstSlide,!0),1),J.o.shuffleSlideshow&&2J.slides.count?1:t.first.index,J.o.shuffleSlideshow&&"random"!=J.o.firstSlide&&(t.first.index=J.o.firstSlide),t[t.first.index]&&t[t.first.index].data&&(t.first.data=ie.extend(!0,{},t[t.first.index].data)),J.o.playByScroll&&J.slideshow.set.normalizedSequence(),J.debugMode&&J.debug.options.firstSlide&&(t.first.index=J.debug.options.firstSlide)},actions:function(e,t){}},get:{deeplink:function(e){return e&&J.slides[e]&&J.slides[e].data&&J.slides[e].data.deeplink?J.slides[e].data.deeplink:null}},deeplink:function(e,t){for(var i=!1,s=1;s").attr("src",t),a=s[0],r=(e.attr("ls-data")||s.attr("ls-data"),e.attr("style")||!1),i=a.currentSrc||a.src,o=i.split(".").pop(),t=(i.indexOf("webp"),s.attr("data-src")?"data-":""),a="";e.hasClass("ls-bg")?a="ls-bg":e.hasClass("ls-tn")?a="ls-tn":(e.hasClass("ls-l")||e.hasClass("ls-layer"))&&(a="ls-layer");for(var n,l,d,c=e.find("source"),p=0;p .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){J.layers.set.style(e),J.layers.set.properties(e,t),J.layers.set.dataAttribute("add",e,"hidden"),e.data("hasBeenSet",!0)},style:function(e){var t,i,s,a,r,o,n,l,d,c,p,u=e[0],h=e.data(J.defaults.init.dataKey),m=u.style,f=J.layers,g=0,y=0,v=!1,S=parseFloat(u.style.fontSize)||36,w=u.getBoundingClientRect(),b=!e.is("img")&&window.LS_previewZoom||1,x=""!==m.paddingLeft?f.getStyle(m.paddingLeft,J.slider.initial.percW):f.getStyle(e.css("padding-left"),J.slider.initial.percW),T=""!==m.paddingRight?f.getStyle(m.paddingRight,J.slider.initial.percW):f.getStyle(e.css("padding-right"),J.slider.initial.percW),k=""!==m.paddingTop?f.getStyle(m.paddingTop,J.slider.initial.percH):f.getStyle(e.css("padding-top"),J.slider.initial.percH),C=""!==m.paddingBottom?f.getStyle(m.paddingBottom,J.slider.initial.percH):f.getStyle(e.css("padding-bottom"),J.slider.initial.percH),P=""!==m.marginLeft?f.getStyle(m.marginLeft,J.slider.initial.percW):f.getStyle(e.css("margin-left"),J.slider.initial.percW),O=""!==m.marginRight?f.getStyle(m.marginRight,J.slider.initial.percW):f.getStyle(e.css("margin-right"),J.slider.initial.percW),I=""!==m.marginTop?f.getStyle(m.marginTop,J.slider.initial.percH):f.getStyle(e.css("margin-top"),J.slider.initial.percH),L=""!==m.marginBottom?f.getStyle(m.marginBottom,J.slider.initial.percH):f.getStyle(e.css("margin-bottom"),J.slider.initial.percH);u.style.margin="0",r=""!==m.borderLeftWidth?f.getStyle(m.borderLeftWidth,J.slider.initial.percW):f.getStyle(e.css("border-left-width"),J.slider.initial.percW),n=""!==m.borderRightWidth?f.getStyle(m.borderRightWidth,J.slider.initial.percW):f.getStyle(e.css("border-right-width"),J.slider.initial.percW),o=""!==m.borderTopWidth?f.getStyle(m.borderTopWidth,J.slider.initial.percH):f.getStyle(e.css("border-top-width"),J.slider.initial.percH),l=""!==m.borderBottomWidth?f.getStyle(m.borderBottomWidth,J.slider.initial.percH):f.getStyle(e.css("border-bottom-width"),J.slider.initial.percH),1!==J.media.properties.$allMediaLayers.filter(e).length&&!e.children("iframe").length||(p=(c=e.children()).attr("width")?c.attr("width"):c.width(),$=c.attr("height")?c.attr("height"):c.height(),300===parseInt(p)&&150===parseInt($)&&(p=640,$=360),""!==u.style.width&&"auto"!==u.style.width||e.css("width",p),""!==u.style.height&&"auto"!==u.style.height||e.css("height",$),"100%"===m.width&&"100%"===m.height&&(m.left="50%",m.top="50%"),v=p/$,c.css({width:"100%",height:"100%"}));var $=h.attributes;e.is("img")&&(d=(s=e.data("preloadedWidth"))/(a=e.data("preloadedHeight")),(!m.width&&!m.height||"auto"===m.width&&"auto"===m.height)&&$&&($.width&&$.height?(t=-1===$.width.indexOf("%")?parseInt($.width):(g=parseInt($.width),f.getStyle($.width,J.slider.initial.percW)),i=-1===$.height.indexOf("%")?parseInt($.height):(y=parseInt($.height),f.getStyle($.height,J.slider.initial.percH))):$.maxWidth&&(e[0].style.width=$.maxWidth+"px",t=$.maxWidth,i=e.height()))),c=w.width?w.width/b:(w.right-w.left)/b,b=w.height?w.height/b:(w.bottom-w.top)/b,t||(t=m.width,-1!==m.width.indexOf("%")&&(g=parseInt(m.width)),t=(t=""!==t&&"auto"!==t?f.getStyle(t,J.slider.initial.percW):c-J.layers.toNum(x,S)-J.layers.toNum(T,S)-J.layers.toNum(r,S)-J.layers.toNum(n,S))||"auto"),i||(i=m.height,-1!==m.height.indexOf("%")&&(y=parseInt(m.height)),i=(i=""!==i&&"auto"!==i?f.getStyle(i,J.slider.initial.percH):b-J.layers.toNum(k,S)-J.layers.toNum(C,S)-J.layers.toNum(o,S)-J.layers.toNum(l,S))||"auto"),0===parseInt(i)&&(e.addClass("ls-force-height-auto"),parseInt(u.getBoundingClientRect().height),e.removeClass("ls-force-height-auto")),v=v||("auto"!==t&&"auto"!==i?t/i:"auto"),!e.is("img")||m.width||m.height||$&&(!$||$.width||$.height)||s===t&&a===i||(s!==t?i=(t=5 video",e=e.replace("video","")),-1!=e.indexOf("audio")&&(s+=", > audio",e=e.replace("audio","")),-1!=e.indexOf("html5")&&(s+=", > video, > audio",e=e.replace("html5","")),-1!=e.indexOf("youtube")&&(s+=', > 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"]',e=e.replace("youtube","")),-1!=e.indexOf("vimeo")&&(s+=', > iframe[src*="player.vimeo"], > iframe[data-src*="player.vimeo"]',e=e.replace("vimeo","")),","==s.charAt(0)&&(s=s.substring(2,s.length)),-1!=e.indexOf("out")&&(t="out"),-1==e.indexOf("img")&&-1==e.indexOf("image")||(i="img"),-1==e.indexOf("bg")&&-1==e.indexOf("background")&&-1==e.indexOf("bgonly")||(a=""),o=-1!=e.indexOf("current")?o.filter(i+"[data-ls-slide"+t+'="'+J.slides.current.index+'"]'+a+r):-1!=e.indexOf("next")?o.filter(i+"[data-ls-slide"+t+'="'+J.slides.next.index+'"]'+a+r):o.filter(i+a+r),-1!=e.indexOf("notactive")&&(o=o.filter(".ls-bg, .ls-bg-video, :hidden"),e=e.replace("notactive","")),-1!=e.indexOf("active")&&(o=o.filter(':visible:not(.ls-bg, .ls-bg-video), [data-ls-static="1"]:not([data-ls-hidden])'),e=e.replace("active","")),-1!=e.indexOf("notstatic")&&(o=o.filter(':not([data-ls-static="1"])'),e=e.replace("notstatic","")),-1!=e.indexOf("static")&&(o=o.filter('[data-ls-static="1"]'),e=e.replace("static","")),-1!=e.indexOf("bgonly")&&(o=o.filter(".ls-bg"),e=e.replace("bgonly","")),""!==s&&(o=o.find(s))),o},update:{data:function(e,t,i){var s,a,r;switch(e instanceof jQuery||(e=ie(e)),i&&e.attr("data-ls",i).data("ls",i),s=(a=e.data(J.defaults.init.dataKey)).is.onSlide,r=a.original,t){default:case"transitions":a.settings.timelineIsCalculated=!1,J.layers.set.properties(e,s,!0);break;case"all":e.data(J.defaults.init.dataKey,new J.defaults.layer.options(e,s)),(a=e.data(J.defaults.init.dataKey)).original=r,J.layers.set.properties(e,s,!0),J.layers.set.wrappers(e,a,s)}}},wrap:function(u,e){var t,h;J.slides[u].wrapped||"wrapping"===J.slides[u].wrapped||(J.slides[u].wrapped="wrapping",t=e?25:0,e=J.slides[u].$layers,0===(h=e.length)?J.slides[u].wrapped=!0:e.each(function(c,p){J.timeouts["slide-"+u+"-layer-"+c]=setTimeout(function(){delete J.timeouts["slide-"+u+"-layer-"+c];var e=ie(p),t=e,i="",s=!1,a="";e.hasClass("ls-hide-phone")&&(a+=" ls-hide-on-phone"),e.hasClass("ls-hide-tablet")&&(a+=" ls-hide-on-tablet"),e.hasClass("ls-hide-desktop")&&(a+=" ls-hide-on-desktop"),e.removeClass("ls-hide-phone ls-hide-tablet ls-hide-desktop"),t.is("a")&&1===t.children().length&&(s=!0,e=t.find(".ls-layer"));var r,o,n,l=e.data(J.defaults.init.dataKey);if(!l)return!0;d=e.data("$layerGroup")||J.slider.$layersWrapper,l.is.backgroundVideo?d=J.slider.$bgVideosWrapper:l.is.slideBackground&&(d=J.slider.$slideBGWrapper),e.data("hasBeenSet")||J.layers.set.singleLayer(e,u),l.textIn.split&&(n=new ee.SplitType(e[0],{split:l.textIn.split}),l.textIn.type&&(l.textIn.ns=n[l.textIn.type.split("_")[0]]),l.textOut.type&&(l.textOut.ns=n[l.textOut.type.split("_")[0]]),-1!==e.css("background-clip").indexOf("text")&&(r=e.find(".ls-ch"),o=e.find(".ls-wd"),n=e.find(".ls-ln"),l.textIn.$nodesForBackgroundClip=r.length?r:o.length?o:n,r.length?e.addClass("ls-has-chars"):o.length?e.addClass("ls-has-words"):e.addClass("ls-has-lines"),l.textIn.$nodesForBackgroundClip.each(function(){var e=ie(this),t=ie.trim(e.text()),i=document.createTextNode(t),t=ie(i),i=ie('
').css({backgroundColor:l.original.backgroundColor,backgroundImage:l.original.backgroundImage,backgroundSize:l.original.backgroundSize,backgroundRepeat:l.original.backgroundRepeat,backgroundPosition:l.original.backgroundPosition});e.css({verticalAlign:"top"}).text(""),t.clone().appendTo(e).wrap('
'),t.appendTo(e).wrap(i)}))),i=l.is.slideBackground||l.is.backgroundVideo?'
':(l.clip.enabled&&(i='
'),l.loop.enabled&&(i='
'+i+"
"),l.scroll.enabled&&(i='
'+i+"
"),'
'+i+"
"),l.parallax.enabled&&(i='
'+i+"
"),""!==(i='
'+i+"
")?e.appendTo(d).wrap(i):e.appendTo(d),!0===s&&t.addClass("ls-layer-link").appendTo(e.parent());var d={},s=e.css("mix-blend-mode");s&&"normal"!==s&&(d["mix-blend-mode"]=s,e.css("mix-blend-mode","normal")),l.original.customZIndex=1;s=parseInt(l.original.zIndex);l.is.backgroundVideo||l.is.slideBackground?d={zIndex:l.original.customZIndex}:(s=s||c+101,d.zIndex=s,l.original.customZIndex=s),J.browser.isSafari&&(d.transform="translateZ(0)"),J.layers.set.wrappers(e,l,u),l.elements.$outerWrapper.css(d).addClass(a),l.styleSettings.pointerevents&&l.elements.$innerWrapper.css("pointer-events","none"),l.is.slideBackground&&l.elements.$bgWrapper.css({backgroundColor:J.slides[u].data.backgroundColor}),J.layers.$all=J.layers.$all.add(e),J.slides[u].$layers=J.slides[u].$layers.not(t),c===h-1&&($.children(".ls-slide").eq(u-1).empty(),J.slides[u].wrapped=!0)},t*(c+1))}))}},J.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==J.slides.count&&ie.extend(J.o,{autoStart:!1,navPrevNext:!1,navStartStop:!1,navButtons:!1,cycles:-1,forceLoopNum:!1,autoPauseSlideshow:!0,firstSlide:1,thumbnailNavigation:"disabled"}),J.o.autoStart&&1!=J.slides.count||J.functions.setStates(this,{running:!1,paused:!0}),this.set.pauseOnHover(),this.set.sequences()},set:{pauseOnHover:function(){J.o.pauseOnHover=!0===J.o.pauseOnHover?"slideshowOnly":J.o.pauseOnHover,!1!==J.o.pauseOnHover&&$.on("mouseenter."+B,function(){J.slider.state.inFullscreen||(J.functions.setStates(J.slideshow,{pausedByHover:!0}),"slideshowOnly"!==J.o.pauseOnHover&&J.transitions.layers.timeline.pause())}).on("mouseleave."+B,function(){var e=1;J.transitions._slideTimeline&&J.transitions._slideTimeline.duration()>J.transitions.layers.timeline.totalDuration&&(e=J.transitions.layers.timeline.totalDuration/J.transitions._slideTimeline.duration()),J.functions.setStates(J.slideshow,{pausedByHover:!1}),ie("body").hasClass("ls-unselectable")||"slideshowOnly"===J.o.pauseOnHover||J.o.pauseLayers&&J.slideshow.isPaused()||J.transitions.layers.timeline.resume(),J.transitions._slideTimeline&&J.transitions.layers.timeline.state.finished&&J.transitions._slideTimeline.progress()J.slides.count||e<1?J.debugMode&&(J.debug.add("group","slideshow"),J.debug.add("warn","slideshow.invalidSlideIndex",[e,J.slides.count]),J.debug.groupEnd()):J.slider.isBusy()||J.slideshow.state.pausedByVideo&&!t?!J.slider.state.preloadingImages&&J.slider.state.animatingSlides&&J.transitions._slideTransition&&(J.slideshow.forceSlideChangeTo=e,J.slideshow.should.change=!0,J.transitions._slideTransition.progress(1),J.transitions.timelines.set("currentforce",function(e,t){e.progress(1)})):(J.functions.setStates(J.transitions.layers.timeline,{finished:!1}),J.slideshow.should.change=!1,J.debugMode&&J.debug.add("group","slideshow"),t?(i&&(J.navigation.direction=J.slides.current.index>e?"prev":"next"),J.o.twoWaySlideshow&&("prev"===J.navigation.direction?J.slideshow.direction="prev":J.slideshow.direction="next"),J.debugMode&&(J.debug.add("log","slideshow.changedByUser",!1),J.o.twoWaySlideshow&&J.debug.add("log","slideshow.setdir",J.slideshow.direction))):J.navigation.direction=J.slideshow.direction,J.transitions.timers.reverse(),J.gui.media.hideUnmute(),J.slides.set.nextSlideIndex(e),J.debugMode&&(J.debug.add("log","slideshow.change",[J.slides.current.index,J.slides.next.index,J.slideshow.direction,J.navigation.direction]),J.debug.groupEnd()),J.functions.setStates(this,{pausedByVideo:!1,changed:++this.state.changed}),J.functions.setStates(J.slider,{changingSlides:!0}),J.slider.state.animatingSlides&&J.transitions._slideTransition&&J.transitions.timelines.set("currentforce",function(e,t){e.progress(1)}),J.preload.imagesOfSlide(J.slides.next.index,function(){J.transitions.start()}))},forceStop:function(){J.navigation.stop(),ie.each(J.timeouts,function(e,t){clearTimeout(J.timeouts[e])}),J.transitions.timers.stop(),J.transitions._slideTimeline.stop(),J.transitions._slideTimelineAlternate.stop(),J.functions.setStates(J.transitions.layers.timeline,{stopped:!0,running:!1}),$.find("*").stop(!0,!1).dequeue()},restart:function(){$.find("*").stop(),J.navigation.change(J.slides.current.index,J.slideshow.direction)}},J.media={properties:{$allMediaLayers:ie(),playingInCurSlide:0,endedInCurSlide:0,userDidUnmute:!1},init:function(){J.functions.setStates(J.slider,{waitingForYouTube:!1,waitingForVimeo:!1}),J.media.properties.allowToUnmute=!0,J.media.youtube.init(),J.media.vimeo.init(),J.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=J.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(e,t){0===e.children(".ls-vpcontainer").length&&(e=ie("
").addClass("ls-vpcontainer").appendTo(e),t.mediaSettings.poster&&ie("
").appendTo(e).addClass("ls-videopreview").attr({style:"background-image: url("+t.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,""),J.media.functions.checkSlideshowWaiting()},mediaElements:function(e,t,i){var s=ie("
").addClass("ls-vpcontainer").appendTo(e);!("autoplay"in i.mediaSettings)&&J.o.autoPlayVideos||i.mediaSettings.autoplay?"instant"===i.mediaSettings.autoplay?e.addClass("ls-instant-autoplay"):e.addClass("ls-autoplay"):ie("
").appendTo(s).addClass("ls-playvideo"),t.is("iframe")&&i.mediaProperties.poster&&ie("
").appendTo(s).addClass("ls-videopreview").attr({style:"background-image: url("+i.mediaProperties.poster+")"}),t.is("video, audio")&&i.mediaProperties.poster&&ie("
").appendTo(s).addClass("ls-videopreview").attr({style:"background-image: url("+i.mediaProperties.poster+")"})},properties:function(e,t,i){switch(i.is.mediaLayer=!0,i.mediaProperties.type){case"youtube":i.is.backgroundVideo?(i.mediaProperties.options=ie.extend(!0,{loop:1,playlist:i.mediaProperties.embedID,controls:0,autoplay:0,showinfo:!1,modestbranding:1,thumbnail:!1},J.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions),J.media.set.backgroundVideo(e,i)):(i.mediaProperties.options=ie.extend(!0,{},J.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions,{autoplay:0}),J.media.set.mediaElements(e,t,i));break;case"vimeo":i.is.backgroundVideo?(i.mediaProperties.options=ie.extend(!0,{loop:1,byline:0,portrait:0,title:0,fun:0},J.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions),J.media.set.backgroundVideo(e,i)):(i.mediaProperties.options=ie.extend(!0,{},J.media[i.mediaProperties.type].defaults,i.mediaProperties.embedOptions,{autoplay:0}),J.media.set.mediaElements(e,t,i));break;case"html5":t.attr("autoplay")&&(t.removeAttr("autoplay"),e.attr("data-ls",e.attr("data-ls")+" autoplay: true;")),i.is.backgroundVideo?(t.removeAttr("controls"),t[0].muted=!0,t.attr("loop","")):"controls"in i.mediaSettings&&"auto"!==i.mediaSettings.controls&&(i.mediaSettings.controls?(t.attr("controls",""),t.removeAttr("nocontrols")):t.removeAttr("controls")),"volume"in i.mediaSettings&&(i.mediaSettings.volume<0?i.mediaSettings.volume=0:100r&&(r=this.width,a=this.src),d()},l=function(){d()},d=function(){(o+=1)===i.length&&(c.mediaProperties.poster=a,J.media.set.properties(t,e,c))},i.forEach(function(e){var t=new Image;t.addEventListener("error",l,!1),t.addEventListener("load",n,!1),t.src=s+e}))}),this.$medias.length&&(J.media.properties.$allMediaLayers=J.media.properties.$allMediaLayers.add(this.$medias.closest(".ls-layer")),J.timeouts.loadYouTube=Math.floor(Date.now()/1e3),window.YT||ie("