(function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(e.jQuery)})(this,function(e){(function(){function t(t,s){if(this.el=t,this.$el=e(t),this.s=e.extend({},o,s),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";if(this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBartimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic)this.$items=this.s.dynamicEl;else if("this"===this.s.selector)this.$items=this.$el;else if(""!==this.s.selector){if(this.s.selectWithin)this.$items=e(this.s.selectWithin).find(this.s.selector);else if(this.$items=this.$el.find(e(this.s.selector)),this.s.selectorSort){var i=this.s.selectorSort;this.$items.sort(function(t,o){return 1*e(t).attr(i)>1*e(o).attr(i)?1:-1})}}else this.$items=this.$el.children();return this.$slide="",this.$outer="",this.init(),this}var o={bodyDom:e("body"),mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1};t.prototype.init=function(){var t=this;t.s.preload>t.$items.length&&(t.s.preload=t.$items.length);var o=window.location.hash;o.indexOf("lg="+this.s.galleryId)>0&&(t.index=parseInt(o.split("&slide=")[1],10),t.s.bodyDom.addClass("lg-from-hash"),t.s.bodyDom.hasClass("lg-on")||(setTimeout(function(){t.build(t.index)}),t.s.bodyDom.addClass("lg-on"))),t.s.dynamic?(t.s.dynamicOpen&&t.$el.trigger("onBeforeOpen.lg"),t.index=t.s.index||0,t.s.bodyDom.hasClass("lg-on")||(t.s.dynamicOpen?setTimeout(function(){t.build(t.index),t.s.bodyDom.addClass("lg-on")}):e.each(t.$items,function(o,s){s.$el.on("click.lgcustom",function(o){var s=e(this);try{o.preventDefault(),o.preventDefault()}catch(e){o.returnValue=!1}t.$el.trigger("onBeforeOpen.lg"),t.index=s.attr("data-id"),t.s.bodyDom.hasClass("lg-on")||(t.build(t.index),t.s.bodyDom.addClass("lg-on"))})}))):t.$items.on("click.lgcustom",function(e){try{e.preventDefault(),e.preventDefault()}catch(t){e.returnValue=!1}t.$el.trigger("onBeforeOpen.lg"),t.index=t.s.index||t.$items.index(this),t.s.bodyDom.hasClass("lg-on")||(t.build(t.index),t.s.bodyDom.addClass("lg-on"))})},t.prototype.build=function(t){var o=this;o.structure(),e.each(e.fn.lightGallery.modules,function(t){o.modules[t]=new e.fn.lightGallery.modules[t](o.el)}),o.slide(t,!1,!1,!1),o.s.keyPress&&o.keyPress(),o.$items.length>1?(o.arrow(),setTimeout(function(){o.enableDrag(),o.enableSwipe()},50),o.s.mousewheel&&o.mousewheel()):o.$slide.on("click.lg",function(){o.$el.trigger("onSlideClick.lg")}),o.counter(),o.closeGallery(),o.$el.trigger("onAfterOpen.lg"),o.$outer.on("mousemove.lg click.lg touchstart.lg",function(){o.$outer.removeClass("lg-hide-items"),clearTimeout(o.hideBartimeout),o.hideBartimeout=setTimeout(function(){o.$outer.addClass("lg-hide-items")},o.s.hideBarsDelay)}),o.$outer.trigger("mousemove.lg")},t.prototype.structure=function(){var t,o="",s="",i=0,l="",r=this,a=e('
');for(r.s.bodyDom.append(a),a.css("transition-duration",this.s.backdropDuration+"ms"),i=0;i';if(this.s.controls&&this.$items.length>1&&(s='"),".lg-sub-html"===this.s.appendSubHtmlTo&&(l=''),t='",r.s.bodyDom.append(t),this.$outer=e(".lg-outer"),this.$slide=this.$outer.find(".lg-item"),this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3"),r.setTop(),e(window).on("resize.lg orientationchange.lg",function(){setTimeout(function(){r.setTop()},100)}),this.$slide.eq(this.index).addClass("lg-current"),this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0),this.$outer.addClass(this.s.mode),this.s.enableDrag&&this.$items.length>1&&this.$outer.addClass("lg-grab"),this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load"),this.doCss()){var n=this.$outer.find(".lg-inner");n.css("transition-timing-function",this.s.cssEasing),n.css("transition-duration",this.s.speed+"ms")}setTimeout(function(){a.addClass("in")}),setTimeout(function(){r.$outer.addClass("lg-visible")},this.s.backdropDuration),this.s.download&&this.$outer.find(".lg-toolbar").append(''),this.prevScrollTop=e(window).scrollTop()},t.prototype.setTop=function(){if("100%"!==this.s.height){var t=e(window).height(),o=(t-parseInt(this.s.height,10))/2,s=this.$outer.find(".lg");t>=parseInt(this.s.height,10)?s.css("top",o+"px"):s.css("top","0px")}},t.prototype.doCss=function(){var e=function(){var e=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],t=document.documentElement,o=0;for(o=0;o'+(parseInt(this.index,10)+1)+' / '+this.$items.length+"")},t.prototype.addHtml=function(t){var o,s,i=null;if(this.s.dynamic?this.s.dynamicEl[t].subHtmlUrl?o=this.s.dynamicEl[t].subHtmlUrl:i=this.s.dynamicEl[t].subHtml:(s=this.$items.eq(t),s.attr("data-sub-html-url")?o=s.attr("data-sub-html-url"):(i=s.attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!i&&(i=s.attr("title")||s.find("img").first().attr("alt")))),!o)if(null!=i){var l=i.substring(0,1);"."!==l&&"#"!==l||(i=this.s.subHtmlSelectorRelative&&!this.s.dynamic?s.find(i).html():e(i).html())}else i="";".lg-sub-html"===this.s.appendSubHtmlTo?o?this.$outer.find(this.s.appendSubHtmlTo).load(o):this.$outer.find(this.s.appendSubHtmlTo).html(i):o?this.$slide.eq(t).load(o):this.$slide.eq(t).append(i),null!=i&&(""===i?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")),this.$el.trigger("onAfterAppendSubHtml.lg",[t])},t.prototype.preload=function(e){var t=1,o=1;for(t=1;t<=this.s.preload&&!(t>=this.$items.length-e);t++)this.loadContent(e+t,!1,0);for(o=1;o<=this.s.preload&&!(e-o<0);o++)this.loadContent(e-o,!1,0)},t.prototype.loadContent=function(t,o,s){var i,l,r,a,n,d,c=this,u=!1,h=function(t){for(var o=[],s=[],i=0;ia){l=s[n];break}};if(c.s.dynamic){if(c.s.dynamicEl[t].poster&&(u=!0,r=c.s.dynamicEl[t].poster),d=c.s.dynamicEl[t].html,l=c.s.dynamicEl[t].src,c.s.dynamicEl[t].responsive){var g=c.s.dynamicEl[t].responsive.split(",");h(g)}a=c.s.dynamicEl[t].srcset,n=c.s.dynamicEl[t].sizes}else{if(c.$items.eq(t).attr("data-poster")&&(u=!0,r=c.$items.eq(t).attr("data-poster")),d=c.$items.eq(t).attr("data-html"),l=c.$items.eq(t).attr("href")||c.$items.eq(t).attr("data-src"),c.$items.eq(t).attr("data-responsive")){var m=c.$items.eq(t).attr("data-responsive").split(",");h(m)}a=c.$items.eq(t).attr("data-srcset"),n=c.$items.eq(t).attr("data-sizes")}var p=!1;c.s.dynamic?c.s.dynamicEl[t].iframe&&(p=!0):"true"===c.$items.eq(t).attr("data-iframe")&&(p=!0);var f=c.isVideo(l,t);if(!c.$slide.eq(t).hasClass("lg-loaded")){if(p)c.$slide.eq(t).prepend('');else if(u){var b="";b=f&&f.youtube?"lg-has-youtube":f&&f.vimeo?"lg-has-vimeo":"lg-has-html5",c.$slide.eq(t).prepend('')}else f?(c.$slide.eq(t).prepend(''),c.$el.trigger("hasVideo.lg",[t,l,d])):c.$slide.eq(t).prepend('');if(c.$el.trigger("onAferAppendSlide.lg",[t]),i=c.$slide.eq(t).find(".lg-object"),n&&i.attr("sizes",n),a){i.attr("srcset",a);try{picturefill({elements:[i[0]]})}catch(e){console.warn("lightGallery :- If you want srcset to be supported for older browser please include picturefil version 2 javascript library in your document.")}}".lg-sub-html"!==this.s.appendSubHtmlTo&&c.addHtml(t),c.$slide.eq(t).addClass("lg-loaded")}c.$slide.eq(t).find(".lg-object").on("load.lg error.lg",function(){var o=0;s&&!e("body").hasClass("lg-from-hash")&&(o=s),setTimeout(function(){c.$slide.eq(t).addClass("lg-complete"),c.$el.trigger("onSlideItemLoad.lg",[t,s||0])},o)}),f&&f.html5&&!u&&c.$slide.eq(t).addClass("lg-complete"),!0===o&&(c.$slide.eq(t).hasClass("lg-complete")?c.preload(t):c.$slide.eq(t).find(".lg-object").on("load.lg error.lg",function(){c.preload(t)}))},t.prototype.slide=function(t,o,s,i){var l=this.$outer.find(".lg-current").index(),r=this;if(!r.lGalleryOn||l!==t){var a=this.$slide.length,n=r.lGalleryOn?this.s.speed:0;if(!r.lgBusy){var d,c,u;if(this.s.download)d=r.s.dynamic?!1!==r.s.dynamicEl[t].downloadUrl&&(r.s.dynamicEl[t].downloadUrl||r.s.dynamicEl[t].src):"false"!==r.$items.eq(t).attr("data-download-url")&&(r.$items.eq(t).attr("data-download-url")||r.$items.eq(t).attr("href")||r.$items.eq(t).attr("data-src")),d?(e("#lg-download").attr("href",d),r.$outer.removeClass("lg-hide-download")):r.$outer.addClass("lg-hide-download");if(this.$el.trigger("onBeforeSlide.lg",[l,t,o,s]),r.lgBusy=!0,clearTimeout(r.hideBartimeout),".lg-sub-html"===this.s.appendSubHtmlTo&&setTimeout(function(){r.addHtml(t)},n),this.arrowDisable(t),i||(tl&&(i="next")),o)this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide"),a>2?(c=t-1,u=t+1,0===t&&l===a-1?(u=0,c=a-1):t===a-1&&0===l&&(u=0,c=a-1)):(c=0,u=1),"prev"===i?r.$slide.eq(u).addClass("lg-next-slide"):r.$slide.eq(c).addClass("lg-prev-slide"),r.$slide.eq(t).addClass("lg-current");else r.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),"prev"===i?(this.$slide.eq(t).addClass("lg-prev-slide"),this.$slide.eq(l).addClass("lg-next-slide")):(this.$slide.eq(t).addClass("lg-next-slide"),this.$slide.eq(l).addClass("lg-prev-slide")),setTimeout(function(){r.$slide.removeClass("lg-current"),r.$slide.eq(t).addClass("lg-current"),r.$outer.removeClass("lg-no-trans")},50);r.lGalleryOn?(setTimeout(function(){r.loadContent(t,!0,0)},this.s.speed+50),setTimeout(function(){r.lgBusy=!1,r.$el.trigger("onAfterSlide.lg",[l,t,o,s])},this.s.speed)):(r.loadContent(t,!0,r.s.backdropDuration),r.lgBusy=!1,r.$el.trigger("onAfterSlide.lg",[l,t,o,s])),r.lGalleryOn=!0,this.s.counter&&e("#lg-counter-current").text(t+1)}r.index=t}},t.prototype.goToNextSlide=function(e){var t=this,o=t.s.loop;e&&t.$slide.length<3&&(o=!1),t.lgBusy||(t.index+10?(t.index--,t.$el.trigger("onBeforePrevSlide.lg",[t.index,e]),t.slide(t.index,e,!1,"prev")):o?(t.index=t.$items.length-1,t.$el.trigger("onBeforePrevSlide.lg",[t.index,e]),t.slide(t.index,e,!1,"prev")):t.s.slideEndAnimatoin&&!e&&(t.$outer.addClass("lg-left-end"),setTimeout(function(){t.$outer.removeClass("lg-left-end")},400)))},t.prototype.keyPress=function(){var t=this;this.$items.length>1&&e(window).on("keyup.lg",function(e){t.$items.length>1&&(37===e.keyCode&&(e.preventDefault(),t.goToPrevSlide()),39===e.keyCode&&(e.preventDefault(),t.goToNextSlide()))}),e(window).on("keydown.lg",function(e){!0===t.s.escKey&&27===e.keyCode&&(e.preventDefault(),t.$outer.hasClass("lg-thumb-open")?t.$outer.removeClass("lg-thumb-open"):t.destroy())})},t.prototype.arrow=function(){var e=this;this.$outer.find(".lg-prev").on("click.lg",function(){e.goToPrevSlide()}),this.$outer.find(".lg-next").on("click.lg",function(){e.goToNextSlide()})},t.prototype.arrowDisable=function(e){!this.s.loop&&this.s.hideControlOnEnd&&(e+10?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))},t.prototype.setTranslate=function(e,t,o){this.s.useLeft?e.css("left",t):e.css({transform:"translate3d("+t+"px, "+o+"px, 0px)"})},t.prototype.touchMove=function(t,o){var s=o-t;Math.abs(s)>15&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),s,0),this.setTranslate(e(".lg-prev-slide"),-this.$slide.eq(this.index).width()+s,0),this.setTranslate(e(".lg-next-slide"),this.$slide.eq(this.index).width()+s,0))},t.prototype.touchEnd=function(e){var t=this;"lg-slide"!==t.s.mode&&t.$outer.addClass("lg-slide"),this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0"),setTimeout(function(){t.$outer.removeClass("lg-dragging"),e<0&&Math.abs(e)>t.s.swipeThreshold?t.goToNextSlide(!0):e>0&&Math.abs(e)>t.s.swipeThreshold?t.goToPrevSlide(!0):Math.abs(e)<5&&t.$el.trigger("onSlideClick.lg"),t.$slide.removeAttr("style")}),setTimeout(function(){t.$outer.hasClass("lg-dragging")||"lg-slide"===t.s.mode||t.$outer.removeClass("lg-slide")},t.s.speed+100)},t.prototype.enableSwipe=function(){var e=this,t=0,o=0,s=!1;e.s.enableSwipe&&e.doCss()&&(e.$slide.on("touchstart.lg",function(o){e.$outer.hasClass("lg-zoomed")||e.lgBusy||(o.preventDefault(),e.manageSwipeClass(),t=o.originalEvent.targetTouches[0].pageX)}),e.$slide.on("touchmove.lg",function(i){e.$outer.hasClass("lg-zoomed")||(i.preventDefault(),o=i.originalEvent.targetTouches[0].pageX,e.touchMove(t,o),s=!0)}),e.$slide.on("touchend.lg",function(){e.$outer.hasClass("lg-zoomed")||(s?(s=!1,e.touchEnd(o-t)):e.$el.trigger("onSlideClick.lg"))}))},t.prototype.enableDrag=function(){var t=this,o=0,s=0,i=!1,l=!1;t.s.enableDrag&&t.doCss()&&(t.$slide.on("mousedown.lg",function(s){t.$outer.hasClass("lg-zoomed")||(e(s.target).hasClass("lg-object")||e(s.target).hasClass("lg-video-play"))&&(s.preventDefault(),t.lgBusy||(t.manageSwipeClass(),o=s.pageX,i=!0,t.$outer.scrollLeft+=1,t.$outer.scrollLeft-=1,t.$outer.removeClass("lg-grab").addClass("lg-grabbing"),t.$el.trigger("onDragstart.lg")))}),e(window).on("mousemove.lg",function(e){i&&(l=!0,s=e.pageX,t.touchMove(o,s),t.$el.trigger("onDragmove.lg"))}),e(window).on("mouseup.lg",function(r){l?(l=!1,t.touchEnd(s-o),t.$el.trigger("onDragend.lg")):(e(r.target).hasClass("lg-object")||e(r.target).hasClass("lg-video-play"))&&t.$el.trigger("onSlideClick.lg"),i&&(i=!1,t.$outer.removeClass("lg-grabbing").addClass("lg-grab"))}))},t.prototype.manageSwipeClass=function(){var e=this.index+1,t=this.index-1;this.s.loop&&this.$slide.length>2&&(0===this.index?t=this.$slide.length-1:this.index===this.$slide.length-1&&(e=0)),this.$slide.removeClass("lg-next-slide lg-prev-slide"),t>-1&&this.$slide.eq(t).addClass("lg-prev-slide"),this.$slide.eq(e).addClass("lg-next-slide")},t.prototype.mousewheel=function(){var e=this;e.$outer.on("mousewheel.lg",function(t){t.deltaY&&(t.deltaY>0?e.goToPrevSlide():e.goToNextSlide(),t.preventDefault())})},t.prototype.closeGallery=function(){var t=this,o=!1;this.$outer.find(".lg-close").on("click.lg",function(){t.destroy()}),t.s.closable&&(t.$outer.on("mousedown.lg",function(t){o=!!(e(t.target).is(".lg-outer")||e(t.target).is(".lg-item ")||e(t.target).is(".lg-img-wrap"))}),t.$outer.on("mouseup.lg",function(s){(e(s.target).is(".lg-outer")||e(s.target).is(".lg-item ")||e(s.target).is(".lg-img-wrap")&&o)&&(t.$outer.hasClass("lg-dragging")||t.destroy())}))},t.prototype.destroy=function(t){var o=this;t||(o.$el.trigger("onBeforeClose.lg"),e(window).scrollTop(o.prevScrollTop)),t&&(o.s.dynamic||this.$items.off("click.lg click.lgcustom"),e.removeData(o.el,"lightGallery")),this.$el.off(".lg.tm"),e.each(e.fn.lightGallery.modules,function(e){o.modules[e]&&o.modules[e].destroy()}),this.lGalleryOn=!1,clearTimeout(o.hideBartimeout),this.hideBartimeout=!1,e(window).off(".lg"),e("body").removeClass("lg-on lg-from-hash"),o.$outer&&o.$outer.removeClass("lg-visible"),e(".lg-backdrop").removeClass("in"),setTimeout(function(){o.$outer&&o.$outer.remove(),e(".lg-backdrop").remove(),t||o.$el.trigger("onCloseAfter.lg")},o.s.backdropDuration+50)},e.fn.lightGallery=function(o){return this.each(function(){if(e.data(this,"lightGallery"))try{e(this).data("lightGallery").init()}catch(e){console.error("lightGallery has not initiated properly")}else e.data(this,"lightGallery",new t(this,o))})},e.fn.lightGallery.modules={}})()}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(0,function(e){var t,o;t={autoplay:!1,pause:5e3,progressBar:!0,fourceAutoplay:!1,autoplayControls:!0,appendAutoplayControlsTo:".lg-toolbar"},o=function(o){return this.core=e(o).data("lightGallery"),this.$el=e(o),!(this.core.$items.length<2)&&(this.core.s=e.extend({},t,this.core.s),this.interval=!1,this.fromAuto=!0,this.canceledOnTouch=!1,this.fourceAutoplayTemp=this.core.s.fourceAutoplay,this.core.doCss()||(this.core.s.progressBar=!1),this.init(),this)},o.prototype.init=function(){var e=this;e.core.s.autoplayControls&&e.controls(),e.core.s.progressBar&&e.core.$outer.find(".lg").append(''),e.progress(),e.core.s.autoplay&&e.$el.one("onSlideItemLoad.lg.tm",function(){e.startlAuto()}),e.$el.on("onDragstart.lg.tm touchstart.lg.tm",function(){e.interval&&(e.cancelAuto(),e.canceledOnTouch=!0)}),e.$el.on("onDragend.lg.tm touchend.lg.tm onSlideClick.lg.tm",function(){!e.interval&&e.canceledOnTouch&&(e.startlAuto(),e.canceledOnTouch=!1)})},o.prototype.progress=function(){var e,t,o=this;o.$el.on("onBeforeSlide.lg.tm",function(){o.core.s.progressBar&&o.fromAuto&&(e=o.core.$outer.find(".lg-progress-bar"),t=o.core.$outer.find(".lg-progress"),o.interval&&(t.removeAttr("style"),e.removeClass("lg-start"),setTimeout(function(){t.css("transition","width "+(o.core.s.speed+o.core.s.pause)+"ms ease 0s"),e.addClass("lg-start")},20))),o.fromAuto||o.core.s.fourceAutoplay||o.cancelAuto(),o.fromAuto=!1})},o.prototype.controls=function(){var t=this,o='';e(this.core.s.appendAutoplayControlsTo).append(o),t.core.$outer.find(".lg-autoplay-button").on("click.lg",function(){e(t.core.$outer).hasClass("lg-show-autoplay")?(t.cancelAuto(),t.core.s.fourceAutoplay=!1):t.interval||(t.startlAuto(),t.core.s.fourceAutoplay=t.fourceAutoplayTemp)})},o.prototype.startlAuto=function(){var e=this;e.core.$outer.find(".lg-progress").css("transition","width "+(e.core.s.speed+e.core.s.pause)+"ms ease 0s"),e.core.$outer.addClass("lg-show-autoplay"),e.core.$outer.find(".lg-progress-bar").addClass("lg-start"),e.interval=setInterval(function(){e.core.index+1',this.core.$outer.find(".lg-toolbar").append(e),this.fullScreen()}},o.prototype.requestFullscreen=function(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()},o.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},o.prototype.fullScreen=function(){var t=this;e(document).on("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg",function(){t.core.$outer.toggleClass("lg-fullscreen-on")}),this.core.$outer.find(".lg-fullscreen").on("click.lg",function(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?t.exitFullscreen():t.requestFullscreen()})},o.prototype.destroy=function(){this.exitFullscreen(),e(document).off("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg")},e.fn.lightGallery.modules.fullscreen=o}),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(0,function(e){var t,o;t={pager:!1},o=function(o){return this.core=e(o).data("lightGallery"),this.$el=e(o),this.core.s=e.extend({},t,this.core.s),this.core.s.pager&&this.core.$items.length>1&&this.init(),this},o.prototype.init=function(){var t,o,s,i=this,l="";if(i.core.$outer.find(".lg").append(''),i.core.s.dynamic)for(var r=0;r