PageSourceSearch

https://so9.vn/_next/static/chunks/561-b6b3491c5ec71816.js

js so9.vn collected 2026-09-24 13:11:54 UTC 60,231 bytes, 19 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[561],{49843:function(){"use strict";/*!
2 * lightgallery | 2.8.3 | March 1st 2025
3 * http://www.lightgalleryjs.com/
4 * Copyright (c) 2020 Sachin Neravath;
5 * @license GPLv3
6 *//*! *****************************************************************************
7Copyright (c) Microsoft Corporation.
8
9Permission to use, copy, modify, and/or distribute this software for any
10purpose with or without fee is hereby granted.
11
12THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
13REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
15INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18PERFORMANCE OF THIS SOFTWARE.
19***************************************************************************** */var __assign=function(){return(__assign=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},e={afterAppendSlide:"lgAfterAppendSlide",init:"lgInit",hasVideo:"lgHasVideo",containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",afterAppendSubHtml:"lgAfterAppendSubHtml",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick",dragStart:"lgDragStart",dragMove:"lgDragMove",dragEnd:"lgDragEnd",beforeNextSlide:"lgBeforeNextSlide",beforePrevSlide:"lgBeforePrevSlide",beforeClose:"lgBeforeClose",afterClose:"lgAfterClose"},t={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}},i=function(){function lgQuery(e){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(e),this.firstElement=this._getFirstEl(),this}return lgQuery.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},lgQuery.prototype._getSelector=function(e,t){return(void 0===t&&(t=document),"string"!=typeof e)?e:(t=t||document,"#"===e.substring(0,1))?t.querySelector(e):t.querySelectorAll(e)},lgQuery.prototype._each=function(e){return this.selector&&(void 0!==this.selector.length?[].forEach.call(this.selector,e):e(this.selector,0)),this},lgQuery.prototype._setCssVendorPrefix=function(e,t,i){var s=t.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});-1!==this.cssVenderPrefixes.indexOf(s)?(e.style[s.charAt(0).toLowerCase()+s.slice(1)]=i,e.style["webkit"+s]=i,e.style["moz"+s]=i,e.style["ms"+s]=i,e.style["o"+s]=i):e.style[s]=i},lgQuery.prototype._getFirstEl=function(){return this.selector&&void 0!==this.selector.length?this.selector[0]:this.selector},lgQuery.prototype.isEventMatched=function(e,t){var i=t.split(".");return e.split(".").filter(function(e){return e}).every(function(e){return -1!==i.indexOf(e)})},lgQuery.prototype.attr=function(e,t){return void 0===t?this.firstElement?this.firstElement.getAttribute(e):"":(this._each(function(i){i.setAttribute(e,t)}),this)},lgQuery.prototype.find=function(e){return $LG(this._getSelector(e,this.selector))},lgQuery.prototype.first=function(){return this.selector&&void 0!==this.selector.length?$LG(this.selector[0]):$LG
19(this.selector)},lgQuery.prototype.eq=function(e){return $LG(this.selector[e])},lgQuery.prototype.parent=function(){return $LG(this.selector.parentElement)},lgQuery.prototype.get=function(){return this._getFirstEl()},lgQuery.prototype.removeAttr=function(e){var t=e.split(" ");return this._each(function(e){t.forEach(function(t){return e.removeAttribute(t)})}),this},lgQuery.prototype.wrap=function(e){if(!this.firstElement)return this;var t=document.createElement("div");return t.className=e,this.firstElement.parentNode.insertBefore(t,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),t.appendChild(this.firstElement),this},lgQuery.prototype.addClass=function(e){return void 0===e&&(e=""),this._each(function(t){e.split(" ").forEach(function(e){e&&t.classList.add(e)})}),this},lgQuery.prototype.removeClass=function(e){return this._each(function(t){e.split(" ").forEach(function(e){e&&t.classList.remove(e)})}),this},lgQuery.prototype.hasClass=function(e){return!!this.firstElement&&this.firstElement.classList.contains(e)},lgQuery.prototype.hasAttribute=function(e){return!!this.firstElement&&this.firstElement.hasAttribute(e)},lgQuery.prototype.toggleClass=function(e){return this.firstElement&&(this.hasClass(e)?this.removeClass(e):this.addClass(e)),this},lgQuery.prototype.css=function(e,t){var i=this;return this._each(function(s){i._setCssVendorPrefix(s,e,t)}),this},lgQuery.prototype.on=function(e,t){var i=this;return this.selector&&e.split(" ").forEach(function(e){Array.isArray(lgQuery.eventListeners[e])||(lgQuery.eventListeners[e]=[]),lgQuery.eventListeners[e].push(t),i.selector.addEventListener(e.split(".")[0],t)}),this},lgQuery.prototype.once=function(e,t){var i=this;return this.on(e,function(){i.off(e),t(e)}),this},lgQuery.prototype.off=function(e){var t=this;return this.selector&&Object.keys(lgQuery.eventListeners).forEach(function(i){t.isEventMatched(e,i)&&(lgQuery.eventListeners[i].forEac
19h(function(e){t.selector.removeEventListener(i.split(".")[0],e)}),lgQuery.eventListeners[i]=[])}),this},lgQuery.prototype.trigger=function(e,t){if(!this.firstElement)return this;var i=new CustomEvent(e.split(".")[0],{detail:t||null});return this.firstElement.dispatchEvent(i),this},lgQuery.prototype.load=function(e){var t=this;return fetch(e).then(function(e){return e.text()}).then(function(e){t.selector.innerHTML=e}),this},lgQuery.prototype.html=function(e){return void 0===e?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(t){t.innerHTML=e}),this)},lgQuery.prototype.append=function(e){return this._each(function(t){"string"==typeof e?t.insertAdjacentHTML("beforeend",e):t.appendChild(e)}),this},lgQuery.prototype.prepend=function(e){return this._each(function(t){"string"==typeof e?t.insertAdjacentHTML("afterbegin",e):e instanceof HTMLElement&&t.insertBefore(e.cloneNode(!0),t.firstChild)}),this},lgQuery.prototype.remove=function(){return this._each(function(e){e.parentNode.removeChild(e)}),this},lgQuery.prototype.empty=function(){return this._each(function(e){e.innerHTML=""}),this},lgQuery.prototype.scrollTop=function(e){return void 0!==e?(document.body.scrollTop=e,document.documentElement.scrollTop=e,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},lgQuery.prototype.scrollLeft=function(e){return void 0!==e?(document.body.scrollLeft=e,document.documentElement.scrollLeft=e,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},lgQuery.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var e=this.firstElement.getBoundingClientRect(),t=$LG("body").style().marginLeft;return{left:e.left-parseFloat(t)+this.scrollLeft(),top:e.top+this.scrollTop()}},lgQuery.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},lgQuery.prototype.width=function(){var e=this.style();return this.firstElement.clientWidth-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)},lgQuery.prototype.height=function(){var e=this.style();return this.firstElement.clientHeight-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)},lgQuery.eventListeners={},lgQuery}();function $LG(e){return"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),new i(e)}var s=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"],r={fetchCaptionFromUrl:function(e,t,i){fetch(e).then(function(e){return e.text()}).then(function(e){if("append"===i){var s='<div class="lg-sub-html">'+e+"</div>";t.append(s)}else t.html(e)})},getSize:function(e,t,i,s){void 0===i&&(i=0);var r=$LG(e).attr("data-lg-size")||s;if(r){var n=r.split(",");if(n[1])for(var o=window.innerWidth,l=0;l<n.length;l++){var a=n[l];if(parseInt(a.split("-")[2],10)>o){r=a;break}l===n.length-1&&(r=a)}var d=r.split("-"),g=parseInt(d[0],10),u=parseInt(d[1],10),h=Math.min(Math.min(t.width(),g)/g,Math.min(t.height()-i,u)/u);return{width:g*h,height:u*h}}},getTransform:function(e,t,i,s,r){if(r){var n=$LG(e).find("img").first();if(n.get()){var o=t.get().getBoundingClientRect(),l=o.width,a=t.height()-(i+s),d=n.width(),g=n.height(),u=n.style(),h=(l-d)/2-n.offset().left+(parseFloat(u.paddingLeft)||0)+(parseFloat(u.borderLeft)||0)+$LG(window).scrollLeft()+o.left,c=(a-g)/2-n.offset().top+(parseFloat(u.paddingTop)||0)+(parseFloat(u.borderTop)||0)+$LG(window).scrollTop()+i;return"translate3d("+(h*=-1)+"px, "+(c*=-1)+"px, 0) scale3d("+d/r.width+", "+g/r.height+", 1)"}}},getIframeMarkup:function(e,t,i,s,r,n){return'<div class="lg-media-cont lg-has-iframe" style="width:'+e+"; max-width:"+i+"; height: "+t+"; max-height:"+s+'">\n                    <iframe class="lg-object" frameborder="0" '+(n?'title="'+n+'"':"")+' src="'+r+'"  allowfullscreen="true"></iframe>\n                </div>'},getImgMarkup:function(e,t,i,s,r,n){var o="";return n&&(o=("string"==typeof n?JSON.parse(n):n).map(function(e){var t="";return Object.keys(e).forEach(function(i){t+=" "+i+'="'+e[i]+'"'}),"<source "+t+"></source>"})),""+o+("<img "+i+" "+(s?'srcset="'+s+'"':"")+"  "+(r?'sizes="'+r+'"':"")+' class="lg-object lg-image" data-index="'+e)+'" src="'+t+'" />'},getResponsiveSrc:function(e){for(var t=[],i=[],s="",r=0;r<e.length;r++){var n=e[r].split(" ");""===n[0]&&n.splice(0,1),i.push(n[0]),t.push(n[1])}for(var o=window.innerWidth,l=0;l<t.length;l++)if(parseInt(t[l],10)>o){s=i[l];break}return s},isImageLoaded:function(e){return!!e&&!!e.complete&&0!==e.naturalWi
19dth},getVideoPosterMarkup:function(e,t,i,s,r){var n="";n=r&&r.youtube?"lg-has-youtube":r&&r.vimeo?"lg-has-vimeo":"lg-has-html5";var o=t;return"string"!=typeof t&&(o=t.outerHTML),'<div class="lg-video-cont '+n+'" style="'+i+'">\n                <div class="lg-video-play-button">\n                <svg\n                    viewBox="0 0 20 20"\n                    preserveAspectRatio="xMidYMid"\n                    focusable="false"\n                    aria-labelledby="'+s+'"\n                    role="img"\n                    class="lg-video-play-icon"\n                >\n                    <title>'+s+'</title>\n                    <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon>\n                </svg>\n                <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false">\n                    <circle cx="50%" cy="50%" r="20"></circle></svg>\n                <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false">\n                    <circle cx="50%" cy="50%" r="20"></circle>\n                </svg>\n            </div>\n            '+o+'\n            <img class="lg-object lg-video-poster" src="'+e+'" />\n        </div>'},getFocusableElements:function(e){var t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])');return[].filter.call(t,function(e){var t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility})},getDynamicOptions:function(e,t,i,r){var n=[],o=function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var s=Array(e),r=0,t=0;t<i;t++)for(var n=arguments[t],o=0,l=n.length;o<l;o++,r++)s[r]=n[o];return s}(s,t);return[].forEach.call(e,function(e){for(var t={},s=0;s<e.attributes.length;s++){var l=e.attributes[s];if(l.specified){var a,d="href"===(a=l.name)?"src":a=(a=(a=a.replace("data-","")).charAt(0).toLowerCase()+a.slice(1)).replace(/-([a-z])/g,function(e){return e[1].toUpperCase()}),g="";o.indexOf(d)>-1&&(g=d),g&&(t[g]=l.value)}}var u=$LG(e),h=u.find("img").first().attr("alt"),c=u.attr("title"),m=r?u.attr(r):u.find("img").first().attr("src");t.thumb=m,i&&!t.subHtml&&(t.subHtml=c||h||""),t.alt=h||c||"",n.push(t)}),n},isMobile:function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},isVideo:function(e,t,i){if(!e)return t?{html5:!0}:void console.error("lightGallery :- data-src is not provided on slide item "+(i+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");var s=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),r=e.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),n=e.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);return s?{youtube:s}:r?{vimeo:r}:n?{wistia:n}:void 0}},n=0;!function(){function LightGallery(e,t){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!e)return this;if(n++,this.lgId=n,this.el=e,this.LGel=$LG(e),this.generateSettings(t),this.buildModules(),this.settings.dynamic&&void 0!==this.settings.dynamicEl&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}LightGallery.prototype.generateSettings=function(e){if(this.settings=__assign(__assign({},t),e),this.settings.isMobile&&"function"==typeof this.settings.isMobile?this.settings.isMobile():r.isMobile()){var i=__assign(__assign({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=__assign(__assign({},this.settings),i)}},LightGallery.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose
vendor: 6,396 bytes, line 19
19=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container){var e=this.settings.container;if("function"==typeof e)this.settings.container=e();else if("string"==typeof e){var t=document.querySelector(e);this.settings.container=null!=t?t:document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},LightGallery.prototype.init=function(){var t=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(e.init,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){t.enableDrag(),t.enableSwipe(),t.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},LightGallery.prototype.openGalleryOnItemClick=function(){for(var e=this,_loop_1=function(s){var r=t.items[s],n=$LG(r),o=i.generateUUID();n.attr("data-lg-id",o).on("click.lgcustom-item-"+o,function(t){t.preventDefault();var i=e.settings.index||s;e.openGallery(i,r)})},t=this,s=0;s<this.items.length;s++)_loop_1(s)},LightGallery.prototype.buildModules=function(){var e=this;this.settings.plugins.forEach(function(t){e.plugins.push(new t(e,$LG))})},LightGallery.prototype.validateLicense=function(){this.settings.licenseKey?"0000-0000-000-0000"===this.settings.licenseKey&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not valid for production use"):console.error("Please provide a valid license key")},LightGallery.prototype.getSlideItem=function(e){return $LG(this.getSlideItemId(e))},LightGallery.prototype.getSlideItemId=function(e){return"#lg-item-"+this.lgId+"-"+e},LightGallery.prototype.getIdName=function(e){return e+"-"+this.lgId},LightGallery.prototype.getElementById=function(e){return $LG("#"+this.getIdName(e))},LightGallery.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},LightGallery.prototype.buildStructure=function(){var e=this;if(!(this.$container&&this.$container.get())){var t="",i="";this.settings.controls&&(t='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+' </button>\n                <button type="button" id="'+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),".lg-item"!==this.settings.appendSubHtmlTo&&(i='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var s="";this.settings.allowMediaOverlap&&(s+="lg-media-overlap ");var r=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",n=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",o="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),l=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",a=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",d='\n        <div class="'+o+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+r+" "+n+' role="dialog"\n        >\n            <div id="'+this.getIdName("lg-backdrop")+'" class="lg-backdrop"></div>\n\n            <div id="'+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+s+' ">\n\n              <div id="'+this.getIdName("lg-content")+'" class="lg-content">\n                <div id="'+this.getIdName("lg-inner")+'" class="lg-inner">\n                </div>\n                '+t+'\n              </div>\n                <div id="'+this.getIdName("lg-toolbar")+'" class="lg-toolbar lg-group">\n                    '+a+"\n                    "+l+"\n                    </div>\n                    "+(".lg-outer"===this.settings.appendSubHtmlTo?i:"")+'\n                <div id="'+this.getIdName("lg-components")+'" class="lg-components">\n                    '+(".lg-sub-html"===this.settings.appendSubHtmlTo?i:"")+"\n                </div>\n            </div>\n        </div>\n        ";$LG(this.settings.container).append(d),document.body!==this.settings.container&&$LG(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var g=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(g+="lg-grab "),this.outer.addClass(g),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),$LG(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){e.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},LightGallery.prototype.refreshOnResize=function(){if(this.lgOpened){var t=this.galleryItems[this.index].__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var i=this.mediaContainerPosition,s=i.top,n=i.bottom;if(this.currentImageSize=r.getSize(this.items[this.index],this.outer,s+n,t&&this.settings.videoMaxSize),t&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var o=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",o)}this.LGel.trigger(e.containerResize)}},LightGallery.prototype.resizeVideoSlide=function(e,t){var i=this.getVideoContStyle(t);
19this.getSlideItem(e).find(".lg-video-cont").attr("style",i)},LightGallery.prototype.updateSlides=function(t,i){if(this.index>t.length-1&&(this.index=t.length-1),1===t.length&&(this.index=0),!t.length){this.closeGallery();return}var s=this.galleryItems[i].src;this.galleryItems=t,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var r=0;this.galleryItems.some(function(e,t){return e.src===s&&(r=t,!0)}),this.currentItemsInDom=this.organizeSlideItems(r,-1),this.loadContent(r,!0),this.getSlideItem(r).addClass("lg-current"),this.index=r,this.updateCurrentCounter(r),this.LGel.trigger(e.updateSlides)},LightGallery.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if("this"===this.settings.selector)this.items.push(this.el);else if(this.settings.selector){if("string"==typeof this.settings.selector){if(this.settings.selectWithin){var e=$LG(this.settings.selectWithin);this.items=e.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector)}else this.items=this.settings.selector}else this.items=this.el.children;return r.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},LightGallery.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},LightGallery.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat($LG("body").style().paddingRight);var e=document.documentElement.getBoundingClientRect(),t=window.innerWidth-e.width;$LG(document.body).css("padding-right",t+this.bodyPaddingRight+"px"),$LG(document.body).addClass("lg-overlay-open")}},LightGallery.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&($LG(document.body).css("padding-right",this.bodyPaddingRight+"px"),$LG(document.body).removeClass("lg-overlay-open"))},LightGallery.prototype.openGallery=function(t,i){var s=this;if(void 0===t&&(t=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var n=this.getItemsToBeInsertedToDom(t,t);this.currentItemsInDom=n;var o="";n.forEach(function(e){o=o+'<div id="'+e+'" class="lg-item"></div>'}),this.$inner.append(o),this.addHtml(t);var l="";this.mediaContainerPosition=this.getMediaContainerPosition();var a=this.mediaContainerPosition,d=a.top,g=a.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(d,g);var u=this.galleryItems[t].__slideVideoInfo;this.zoomFromOrigin&&i&&(this.currentImageSize=r.getSize(i,this.outer,d+g,u&&this.settings.videoMaxSize),l=r.getTransform(i,this.outer,d,g,this.currentImageSize)),this.zoomFromOrigin&&l||(this.outer.addClass(this.settings.startClass),this.getSlideItem(t).removeClass("lg-complete")),setTimeout(function(){s.outer.addClass("lg-components-open")},this.settings.zoomFromOrigin?100:this.settings.backdropDuration),this.index=t,this.LGel.trigger(e.beforeOpen),this.getSlideItem(t).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=$LG(window).scrollTop(),setTimeout(function(){if(s.zoomFromOrigin&&l){var i=s.getSlideItem(t);i.css("transform",l),setTimeout(function(){i.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",s.settings.startAnimationDuration+"ms"),s.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){i.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){s.$backdrop.addClass("in"),s.$container.addClass("lg-show-in")},10),setTimeout(function(){s.settings.trapFocus&&document.body===s.settings.container&&s.trapFocus()},s.settings.backdropDuration+50),s.zoomFromOrigin&&l||setTimeout(function(){s.outer.addClass("lg-visible")},s.settings.backdropDuration),s.slide(t,!1,!1,!1),s.LGel.trigger(e.afterOpen)}),document.body===this.settings.container&&$LG("html").addClass("lg-on")}},LightGallery.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var e=this.$toolbar.get().clientHeight||0,t=this.outer.find(".lg-components .lg-sub-html").get(),i=this.settings.defaultCaptionHeight||t&&t.clientHeight||0,s=this.outer.find(".lg-thumb-outer").get();return{top:e,bottom:(s?s.clientHeight:0)+i}},LightGallery.prototype.setMediaContainerPosition=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0),this.$content.css("top",e+"px").css("bottom",t+"px")},LightGallery.prototype.hideBars=function(){var e=this;setTimeout(function(){e.outer.removeClass("lg-hide-items"),e.settings.hideBarsDelay>
190&&(e.outer.on("mousemove.lg click.lg touchstart.lg",function(){e.outer.removeClass("lg-hide-items"),clearTimeout(e.hideBarTimeout),e.hideBarTimeout=setTimeout(function(){e.outer.addClass("lg-hide-items")},e.settings.hideBarsDelay)}),e.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},LightGallery.prototype.initPictureFill=function(e){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[e.get()]})}catch(e){console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},LightGallery.prototype.counter=function(){if(this.settings.counter){var e='<div class="lg-counter" role="status" aria-live="polite">\n                <span id="'+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+' </span> /\n                <span id="'+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(e)}},LightGallery.prototype.addHtml=function(t){if(this.galleryItems[t].subHtmlUrl?s=this.galleryItems[t].subHtmlUrl:i=this.galleryItems[t].subHtml,!s){if(i){var i,s,n=i.substring(0,1);("."===n||"#"===n)&&(i=this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?$LG(this.items).eq(t).find(i).first().html():$LG(i).first().html())}else i=""}if(".lg-item"!==this.settings.appendSubHtmlTo)s?r.fetchCaptionFromUrl(s,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(i);else{var o=$LG(this.getSlideItemId(t));s?r.fetchCaptionFromUrl(s,o,"append"):o.append('<div class="lg-sub-html">'+i+"</div>")}null!=i&&(""===i?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(e.afterAppendSubHtml,{index:t})},LightGallery.prototype.preload=function(e){for(var t=1;t<=this.settings.preload&&!(t>=this.galleryItems.length-e);t++)this.loadContent(e+t,!1);for(var i=1;i<=this.settings.preload&&!(e-i<0);i++)this.loadContent(e-i,!1)},LightGallery.prototype.getDummyImgStyles=function(e){return e?"width:"+e.width+"px;\n                margin-left: -"+e.width/2+"px;\n                margin-top: -"+e.height/2+"px;\n                height:"+e.height+"px":""},LightGallery.prototype.getVideoContStyle=function(e){return e?"width:"+e.width+"px;\n                height:"+e.height+"px":""},LightGallery.prototype.getDummyImageContent=function(e,t,i){var s;if(this.settings.dynamic||(s=$LG(this.items).eq(t)),s){var r=void 0;if(!(r=this.settings.exThumbImage?s.attr(this.settings.exThumbImage):s.find("img").first().attr("src")))return"";var n=this.getDummyImgStyles(this.currentImageSize),o=document.createElement("img");return o.alt=i||"",o.src=r,o.className="lg-dummy-img",o.style.cssText=n,e.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),o}return""},LightGallery.prototype.setImgMarkup=function(e,t,i){var s=this.galleryItems[i],n=s.alt,o=s.srcset,l=s.sizes,a=s.sources,d="",g=n?'alt="'+n+'"':"";d=this.isFirstSlideWithZoomAnimation()?this.getDummyImageContent(t,i,g):r.getImgMarkup(i,e,g,o,l,a);var u=document.createElement("picture");u.className="lg-img-wrap",$LG(u).append(d),t.prepend(u)},LightGallery.prototype.onSlideObjectLoad=function(e,t,i,s){var n=e.find(".lg-object").first();r.isImageLoaded(n.get())||t?i():(n.on("load.lg error.lg",function(){i&&i()}),n.on("error.lg",function(){s&&s()}))},LightGallery.prototype.onLgObjectLoad=function(e,t,i,s,r,n){var o=this;this.onSlideObjectLoad(e,n,function(){o.triggerSlideItemLoad(e,t,i,s,r)},function(){e.addClass("lg-complete lg-complete_"),e.html('<span class="lg-error-msg">'+o.settings.strings.mediaLoadingFailed+"</span>")})},LightGallery.prototype.triggerSlideItemLoad=function(t,i,s,r,n){var o=this,l=this.galleryItems[i];setTimeout(function(){t.addClass("lg-complete lg-complete_"),o.LGel.trigger(e.slideItemLoad,{index:i,delay:s||0,isFirstSlide:n})},n&&"video"===this.getSlideType(l)&&!l.poster?r:0)},LightGallery.prototype.isFirstSlideWithZoomAnimation=function(){return!!(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize)},LightGallery.prototype.addSlideVideoInfo=function(e){var t=this;e.forEach(function(e,i){e.__slideVideoInfo=r.isVideo(e.src,!!e.video,i),e.__slideVideoInfo&&t.settings.loadYouTubePoster&&!e.poster&&e.__slideVideoInfo.youtube&&(e.poster="//img.youtube.com/vi/"+e.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},LightGallery.prototype.loadContent=function(t,i){var s=this,n=this.galleryItems[t],o=$LG(this.getSlideItemId(t)),l=n.poster,a=n.srcset,d=n.sizes,g=n.sources,u=n.src,h=n.video,c=h&&"string"==typeof h?JSON.parse(h):h;if(n.responsive){var m=n.responsive.split(",");u=r.getResponsiveSrc(m)||u}var p=n.__slideVideoInfo,f="",y=!!n.iframe,v=!this.lGalleryOn,b=0;if(v&&(b=this.zoomFromOrigin&&this.currentImageSize?this.settings.startAnimationDuration+10:this.settings.backdropDuration+10),!o.hasClass("lg-loaded")){if(p){var S=this.mediaContainerPosition,C=S.top,L=S.bottom,I=r.getSize(this.items[t],this.outer,C+L,p&&this.settings.videoMaxSize);f=this.getVideoContStyle(I)}if(y){var x=r.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,u,n.iframeTitle);o.prepend(x)}else if(l){var w="";v&&this.zoomFromOrigin&&this.currentImageSize&&(w=this.getDummyImageContent(o,t,""));var x=r.getVideoPosterMarkup(l,w||"",f,this.settings.strings.playVideo,p);o.prepend(x)}else if(p){var x='<div class="lg-video-cont " style="'+f+'"></div>';o.prepend(x)}else if(this.setImgMarkup(u,o,t),a||g){var G=o.find(".lg-object");this.initPictureFill(G)}(l||p)&&this.LGel.trigger(e.hasVideo,{index:t,src:u,html5Video:c,hasPoster:!!l}),this.LGel.trigger(e.afterAppendSlide,{index:t}),this.lGalleryOn&&".lg-item"===this.settings.appendSubHtmlTo&&this.addHtml(t)}var E=0;b&&!$LG(document.body).hasClass("lg-from-hash")&&(E=b),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){o.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),o.hasClass("lg-loaded")||setTimeout(function(){if("image"===s.get
19SlideType(n)){var e=n.alt;if(o.find(".lg-img-wrap").append(r.getImgMarkup(t,u,e?'alt="'+e+'"':"",a,d,n.sources)),a||g){var i=o.find(".lg-object");s.initPictureFill(i)}}("image"===s.getSlideType(n)||"video"===s.getSlideType(n)&&l)&&(s.onLgObjectLoad(o,t,b,E,!0,!1),s.onSlideObjectLoad(o,!!(p&&p.html5&&!l),function(){s.loadContentOnFirstSlideLoad(t,o,E)},function(){s.loadContentOnFirstSlideLoad(t,o,E)}))},this.settings.startAnimationDuration+100)),o.addClass("lg-loaded"),this.isFirstSlideWithZoomAnimation()&&("video"!==this.getSlideType(n)||l)||this.onLgObjectLoad(o,t,b,E,v,!!(p&&p.html5&&!l)),(!this.zoomFromOrigin||!this.currentImageSize)&&o.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){o.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,!0===i&&(o.hasClass("lg-complete_")?this.preload(t):o.find(".lg-object").first().on("load.lg error.lg",function(){s.preload(t)}))},LightGallery.prototype.loadContentOnFirstSlideLoad=function(e,t,i){var s=this;setTimeout(function(){t.find(".lg-dummy-img").remove(),t.removeClass("lg-first-slide"),s.outer.removeClass("lg-first-slide-loading"),s.isDummyImageRemoved=!0,s.preload(e)},i+300)},LightGallery.prototype.getItemsToBeInsertedToDom=function(e,t,i){var s=this;void 0===i&&(i=0);var r=[],n=Math.max(i,3);n=Math.min(n,this.galleryItems.length);var o="lg-item-"+this.lgId+"-"+t;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(e,t){r.push("lg-item-"+s.lgId+"-"+t)}
19),r;if(e<(this.galleryItems.length-1)/2){for(var l=e;l>e-n/2&&l>=0;l--)r.push("lg-item-"+this.lgId+"-"+l);for(var a=r.length,l=0;l<n-a;l++)r.push("lg-item-"+this.lgId+"-"+(e+l+1))}else{for(var l=e;l<=this.galleryItems.length-1&&l<e+n/2;l++)r.push("lg-item-"+this.lgId+"-"+l);for(var a=r.length,l=0;l<n-a;l++)r.push("lg-item-"+this.lgId+"-"+(e-l-1))}return this.settings.loop&&(e===this.galleryItems.length-1?r.push("lg-item-"+this.lgId+"-0"):0===e&&r.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),-1===r.indexOf(o)&&r.push("lg-item-"+this.lgId+"-"+t),r},LightGallery.prototype.organizeSlideItems=function(e,t){var i=this,s=this.getItemsToBeInsertedToDom(e,t,this.settings.numberOfSlideItemsInDom);return s.forEach(function(e){-1===i.currentItemsInDom.indexOf(e)&&i.$inner.append('<div id="'+e+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(e){-1===s.indexOf(e)&&$LG("#"+e).remove()}),s},LightGallery.prototype.getPreviousSlideIndex=function(){var e=0;try{var t=this.outer.find(".lg-current").first().attr("id");e=parseInt(t.split("-")[3])||0}catch(t){e=0}return e},LightGallery.prototype.setDownloadValue=function(e){if(this.settings.download){var t=this.galleryItems[e];if(!1===t.downloadUrl||"false"===t.downloadUrl)this.outer.addClass("lg-hide-download");else{var i=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),i.attr("href",t.downloadUrl||t.src),t.download&&i.attr("download",t.download)}}},LightGallery.prototype.makeSlideAnimation=function(e,t,i){var s=this;this.lGalleryOn&&i.addClass("lg-slide-progress"),setTimeout(function(){s.outer.addClass("lg-no-trans"),s.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),"prev"===e?(t.addClass("lg-prev-slide"),i.addClass("lg-next-slide")):(t.addClass("lg-next-slide"),i.addClass("lg-prev-slide")),setTimeout(function(){s.outer.find(".lg-item").removeClass("lg-current"),t.addClass("lg-current"),s.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},LightGallery.prototype.slide=function(t,i,s,n){var o=this,l=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(t,l),!this.lGalleryOn||l!==t){var a=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(t);var d=this.getSlideItem(t),g=this.getSlideItem(l),u=this.galleryItems[t],h=u.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(u)),this.setDownloadValue(t),h){var c=this.mediaContainerPosition,m=c.top,p=c.bottom,f=r.getSize(this.items[t],this.outer,m+p,h&&this.settings.videoMaxSize);this.resizeVideoSlide(t,f)}if(this.LGel.trigger(e.beforeSlide,{prevIndex:l,index:t,fromTouch:!!i,fromThumb:!!s}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(t),!n&&(t<l?n="prev":t>l&&(n="next")),i){this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var y=void 0,v=void 0;a>2?(y=t-1,v=t+1,0===t&&l===a-1?(v=0,y=a-1):t===a-1&&0===l&&(v=0,y=a-1)):(y=0,v=1),"prev"===n?this.getSlideItem(v).addClass("lg-next-slide"):this.getSlideItem(y).addClass("lg-prev-slide"),d.addClass("lg-current")}else this.makeSlideAnimation(n,d,g);this.lGalleryOn?setTimeout(function(){o.loadContent(t,!0),".lg-item"!==o.settings.appendSubHtmlTo&&o.addHtml(t)},this.settings.speed+50+(i?0:this.settings.slideDelay)):this.loadContent(t,!0),setTimeout(function(){o.lgBusy=!1,g.removeClass("lg-slide-progress"),o.LGel.trigger(e.afterSlide,{prevIndex:l,index:t,fromTouch:i,fromThumb:s})},(this.lGalleryOn?this.settings.speed+100:100)+(i?0:this.settings.slideDelay))}this.index=t}},LightGallery.prototype.updateCurrentCounter=function(e){this.getElementById("lg-counter-current").html(e+1+"")},LightGallery.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},LightGallery.prototype.getSlideType=function(e){return e.__slideVideoInfo?"video":e.iframe?"iframe":"image"},LightGallery.prototype.touchMove=function(e,t,i){var s=t.pageX-e.pageX,r=t.pageY-e.pageY,n=!1;if(this.swipeDirection?n=!0:Math.abs(s)>15?(this.swipeDirection="horizontal",n=!0):Math.abs(r)>15&&(this.swipeDirection="vertical",n=!0),n){var o=this.getSlideItem(this.index);if("horizontal"===this.swipeDirection){null==i||i.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(o,s,0);var l=o.get().offsetWidth,a=15*l/100-Math.abs(10*s/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-l+s-a,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),l+s+a,0)}else if("vertical"===this.swipeDirection&&this.settings.swipeToClose){null==i||i.preventDefault(),this.$container.addClass("lg-dragging-vertical");var d=1-Math.abs(r)/window.innerHeight;this.$backdrop.css("opacity",d);var g=1-Math.abs(r)/(2*window.innerWidth);this.setTranslate(o,0,r,g,g),Math.abs(r)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},LightGallery.prototype.touchEnd=function(t,i,s){var r,n=this;"lg-slide"!==this.settings.mode&&this.outer.addClass("lg-slide"),setTimeout(function(){n.$container.removeClass("lg-dragging-vertical"),n.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var o=!0;if("horizontal"===n.swipeDirection){r=t.pageX-i.pageX;var l=Math.abs(t.pageX-i.pageX);r<0&&l>n.settings.swipeThreshold?(n.goToNextSlide(!0),o=!1):r>0&&l>n.settings.swipeThreshold&&(n.goToPrevSlide(!0),o=!1)}else if("vertical"===n.swipeDirection){if(r=Math.abs(t.pageY-i.pageY),n.settings.closable&&n.settings.swipeToClose&&r>100){n.closeGallery();return}n.$backdrop.css("opacity",1)}if(n.outer.find(".lg-item").removeAttr("style"),o&&5>Math.abs(t.pageX-i.pageX)){var a=$LG(s.target);n.isPosterElement(a)&&n.LGel.trigger(e.posterClick)}n.swipeDirection=void 0}),setTimeout(function(){n.outer.hasClass("lg-dragging")||"lg-slide"===n.settings.mode||n.outer.removeClass("lg-slide")},this.settings.speed+100)},LightGallery.prototype.enableSwipe=function(){var t=this,i={},s={},r=!1,n=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(e){t.dragOrSwipeEnabled=!0;var s=t.getSlideItem(t.index);($LG(e.target).hasClass("lg-item")||s.get().contains(e.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&1===e.touches.length&&(n=!0,t.touchAction="swipe",t.manageSwipeClass(),i={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(e){n&&"swipe"===t.touchAction&&1===e.touches.length&&(s={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY},t.touchMove(i,s,e),r=!0)}
19),this.$inner.on("touchend.lg",function(o){if("swipe"===t.touchAction){if(r)r=!1,t.touchEnd(s,i,o);else if(n){var l=$LG(o.target);t.isPosterElement(l)&&t.LGel.trigger(e.posterClick)}t.touchAction=void 0,n=!1}}))},LightGallery.prototype.enableDrag=function(){var t=this,i={},s={},r=!1,n=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(s){t.dragOrSwipeEnabled=!0;var n=t.getSlideItem(t.index);($LG(s.target).hasClass("lg-item")||n.get().contains(s.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&(s.preventDefault(),t.lgBusy||(t.manageSwipeClass(),i={pageX:s.pageX,pageY:s.pageY},r=!0,t.outer.get().scrollLeft+=1,t.outer.get().scrollLeft-=1,t.outer.removeClass("lg-grab").addClass("lg-grabbing"),t.LGel.trigger(e.dragStart)))}),$LG(window).on("mousemove.lg.global"+this.lgId,function(o){r&&t.lgOpened&&(n=!0,s={pageX:o.pageX,pageY:o.pageY},t.touchMove(i,s),t.LGel.trigger(e.dragMove))}),$LG(window).on("mouseup.lg.global"+this.lgId,function(o){if(t.lgOpened){var l=$LG(o.target);n?(n=!1,t.touchEnd(s,i,o),t.LGel.trigger(e.dragEnd)):t.isPosterElement(l)&&t.LGel.trigger(e.posterClick),r&&(r=!1,t.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},LightGallery.prototype.triggerPosterClick=function(){var t=this;this.$inner.on("click.lg",function(i){!t.dragOrSwipeEnabled&&t.isPosterElement($LG(i.target))&&t.LGel.trigger(e.posterClick)})},LightGallery.prototype.manageSwipeClass=function(){var e=this.index+1,t=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(0===this.index?t=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(e=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),t>-1&&this.getSlideItem(t).addClass("lg-prev-slide"),this.getSlideItem(e).addClass("lg-next-slide")},LightGallery.prototype.goToNextSlide=function(t){var i=this,s=this.settings.loop;t&&this.galleryItems.length<3&&(s=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(e.beforeNextSlide,{index:this.index}),this.slide(this.index,!!t,!1,"next")):s?(this.index=0,this.LGel.trigger(e.beforeNextSlide,{index:this.index}),this.slide(this.index,!!t,!1,"next")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-right-end"),setTimeout(function(){i.outer.removeClass("lg-right-end")},400)))},LightGallery.prototype.goToPrevSlide=function(t){var i=this,s=this.settings.loop;t&&this.galleryItems.length<3&&(s=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(e.beforePrevSlide,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):s?(this.index=this.galleryItems.length-1,this.LGel.trigger(e.beforePrevSlide,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-left-end"),setTimeout(function(){i.outer.removeClass("lg-left-end")},400)))},LightGallery.prototype.keyPress=function(){var e=this;$LG(window).on("keydown.lg.global"+this.lgId,function(t){e.lgOpened&&!0===e.settings.escKey&&27===t.keyCode&&(t.preventDefault(),e.settings.allowMediaOverlap&&e.outer.hasClass("lg-can-toggle")&&e.outer.hasClass("lg-components-open")?e.outer.removeClass("lg-components-open"):e.closeGallery()),e.lgOpened&&e.galleryItems.length>1&&(37===t.keyCode&&(t.preventDefault(),e.goToPrevSlide()),39===t.keyCode&&(t.preventDefault(),e.goToNextSlide()))})},LightGallery.prototype.arrow=function(){var e=this;this.getElementById("lg-prev").on("click.lg",function(){e.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){e.goToNextSlide()})},LightGallery.prototype.arrowDisable=function(e){if(!this.settings.loop&&this.settings.hideControlOnEnd){var t=this.getElementById("lg-prev"),i=this.getElementById("lg-next");e+1===this.galleryItems.length?i.attr("disabled","disabled").addClass("disabled"):i.removeAttr("disabled").removeClass("disabled"),0===e?t.attr("disabled","disabled").addClass("disabled"):t.removeAttr("disabled").removeClass("disabled")}},LightGallery.prototype.setTranslate=function(e,t,i,s,r){void 0===s&&(s=1),void 0===r&&(r=1),e.css("transform","translate3d("+t+"px, "+i+"px, 0px) scale3d("+s+", "+r+", 1)")},LightGallery.prototype.mousewheel=function(){var e=this,t=0;this.outer.on("wheel.lg",function(i){if(i.deltaY&&!(e.galleryItems.length<2)){i.preventDefault();var s=new Date().getTime();!(s-t<1e3)&&(t=s,i.deltaY>0?e.goToNextSlide():i.deltaY<0&&e.goToPrevSlide())}})},LightGallery.prototype.isSlideElement=function(e){return e.hasClass("lg-outer")||e.hasClass("lg-item")||e.hasClass("lg-img-wrap")||e.hasClass("lg-img-rotate")},LightGallery.prototype.isPosterElement=function(e){var t=this.getSlideItem(this.index).find(".lg-video-play-button").get();return e.hasClass("lg-video-poster")||e.hasClass("lg-video-play-button")||t&&t.contains(e.get())},LightGallery.prototype.toggleMaximize=function(){var e=this;this.getElementById("lg-maximize").on("click.lg",function(){e.$container.toggleClass("lg-inline"),e.refreshOnResize()})},LightGallery.prototype.invalidateItems=function(){for(var e=0;e<this.items.length;e++){var t=$LG(this.items[e]);t.off("click.lgcustom-item-"+t.attr("data-lg-id"))}},LightGallery.prototype.trapFocus=function(){var e=this;this.$container.get().focus({preventScroll:!0}),$LG(window).on("keydown.lg.global"+this.lgId,function(t){if(e.lgOpened&&("Tab"===t.key||9===t.keyCode)){var i=r.getFocusableElements(e.$container.get()),s=i[0],n=i[i.length-1];t.shiftKey?document.activeElement===s&&(n.focus(),t.preventDefault()):document.activeElement===n&&(s.focus(),t.preventDefault())}})},LightGallery.prototype.manageCloseGallery=function(){var e=this;if(this.settings.closable){var t=!1;this.getElementById("lg-close").on("click.lg",function(){e.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(i){var s=$LG(i.target);t=!!e.isSlideElement(s)}),this.outer.on("mousemove.lg",function(){t=!1}),this.outer.on("mouseup.lg",function(i){var s=$LG(i.target);e.isSlideElement(s)&&t&&!e.outer.hasClass("lg-dragging")&&e.closeGallery()}))}},LightGallery.prototype.closeGallery=function(t){var i,s=this;if(!this.lgOpened||!this.settings.closable&&!t)return 0;this.LGel.trigger(e.beforeClose),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&$LG(window).scrollTop(this.prevScrollTop);var n=this.items[this.index];if(this.zoomFromOrigin&&n){var o=this.mediaContainerPosition,l=o.top,a=o.bottom,d=this.galleryItems[this.index],g=d.__slideVideoInfo,u=d.poster,h=r.getSize(n,this.outer,l+a,g&&u&&this.settings.videoMaxSize);i=r.getTransform(n,this.outer,l,a,h)}this.zoomFromOrigin&&i?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.get
19SlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",i)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,$LG("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var c=this.zoomFromOrigin&&i?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){s.zoomFromOrigin&&i&&s.outer.removeClass("lg-zoom-from-image"),s.$container.removeClass("lg-show"),s.resetScrollBar(),s.$backdrop.removeAttr("style").css("transition-duration",s.settings.backdropDuration+"ms"),s.outer.removeClass("lg-closing "+s.settings.startClass),s.getSlideItem(s.index).removeClass("lg-start-end-progress"),s.$inner.empty(),s.lgOpened&&s.LGel.trigger(e.afterClose,{instance:s}),s.$container.get()&&s.$container.get().blur(),s.lgOpened=!1},c+100),c+100},LightGallery.prototype.initModules=function(){this.plugins.forEach(function(e){try{e.init()}catch(e){console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},LightGallery.prototype.destroyModules=function(e){this.plugins.forEach(function(t){try{e?t.destroy():t.closeGallery&&t.closeGallery()}catch(e){console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}})},LightGallery.prototype.refresh=function(t){this.settings.dynamic||this.invalidateItems(),t?this.galleryItems=t:this.galleryItems=this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(e.updateSlides)},LightGallery.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},LightGallery.prototype.destroyGallery=function(){this.destroyModules(!0),this.settings.dynamic||this.invalidateItems(),$LG(window).off(".lg.global"+this.lgId),this.LGel.off(".lg"),this.$container.remove()},LightGallery.prototype.destroy=function(){var e=this.closeGallery(!0);return e?setTimeout(this.destroyGallery.bind(this),e):this.destroyGallery(),e}}()},12422:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return createAsyncLocalStorage}});let i=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");let FakeAsyncLocalStorage=class FakeAsyncLocalStorage{disable(){throw i}getStore(){}run(){throw i}exit(){throw i}enterWith(){throw i}};let s=globalThis.AsyncLocalStorage;function createAsyncLocalStorage(){return s?new s:new FakeAsyncLocalStorage}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88427:function(e,t,i){"use strict";function clientHookInServerComponentError(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return clientHookInServerComponentError}}),i(38754),i(67294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30636:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{ReadonlyURLSearchParams:function(){return ReadonlyURLSearchParams},useSearchParams:function(){return useSearchParams},usePathname:function(){return usePathname},ServerInsertedHTMLContext:function(){return a.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return a.useServerInsertedHTML},useRouter:function(){return useRouter},useParams:function(){return useParams},useSelectedLayoutSegments:function(){return useSelectedLayoutSegments},useSelectedLayoutSegment:function(){return useSelectedLayoutSegment},redirect:function(){return d.redirect},permanentRedirect:function(){return d.permanentRedirect},RedirectType:function(){return d.RedirectType},notFound:function(){return g.notFound}});let s=i(67294),r=i(89031),n=i(11593),o=i(88427),l=i(6160),a=i(30252),d=i(37866),g=i(49363),u=Symbol("internal for urlsearchparams readonly");function readonlyURLSearchParamsError(){return Error("ReadonlyURLSearchParams cannot be modified")}let ReadonlyURLSearchParams=class ReadonlyURLSearchParams{[Symbol.iterator](){return this[u][Symbol.iterator]()}append(){throw readonlyURLSearchParamsError()}delete(){throw readonlyURLSearchParamsError()}set(){throw readonlyURLSearchParamsError()}sort(){throw readonlyURLSearchParamsError()}constructor(e){this[u]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}};function useSearchParams(){(0,o.clientHookInServerComponentError)("use
19SearchParams");let e=(0,s.useContext)(n.SearchParamsContext),t=(0,s.useMemo)(()=>e?new ReadonlyURLSearchParams(e):null,[e]);return t}function usePathname(){return(0,o.clientHookInServerComponentError)("usePathname"),(0,s.useContext)(n.PathnameContext)}function useRouter(){(0,o.clientHookInServerComponentError)("useRouter");let e=(0,s.useContext)(r.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function useParams(){(0,o.clientHookInServerComponentError)("useParams");let e=(0,s.useContext)(r.GlobalLayoutRouterContext),t=(0,s.useContext)(n.PathParamsContext);return(0,s.useMemo)(()=>(null==e?void 0:e.tree)?function getSelectedParams(e,t){void 0===t&&(t={});let i=e[1];for(let e of Object.values(i)){let i=e[0],s=Array.isArray(i),r=s?i[1]:i;if(!r||r.startsWith("__PAGE__"))continue;let n=s&&("c"===i[2]||"oc"===i[2]);n?t[i[0]]=i[1].split("/"):s&&(t[i[0]]=i[1]),t=getSelectedParams(e,t)}return t}(e.tree):t,[null==e?void 0:e.tree,t])}function useSelectedLayoutSegments(e){void 0===e&&(e="children"),(0,o.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,s.useContext)(r.LayoutRouterContext);return function getSelectedLayoutSegmentPath(e,t,i,s){let r;if(void 0===i&&(i=!0),void 0===s&&(s=[]),i)r=e[1][t];else{var n;let t=e[1];r=null!=(n=t.children)?n:Object.values(t)[0]}if(!r)return s;let o=r[0],a=(0,l.getSegmentValue)(o);return!a||a.startsWith("__PAGE__")?s:(s.push(a),getSelectedLayoutSegmentPath(r,t,!1,s))}(t,e)}function useSelectedLayoutSegment(e){void 0===e&&(e="children"),(0,o.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=useSelectedLayoutSegments(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49363:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{notFound:function(){return notFound},isNotFoundError:function(){return isNotFoundError}});let i="NEXT_NOT_FOUND";function notFound(){let e=Error(i);throw e.digest=i,e}function isNotFoundError(e){return(null==e?void 0:e.digest)===i}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37866:function(e,t,i){"use strict";var s,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{RedirectType:function(){return s},getRedirectError:function(){return getRedirectError},redirect:function(){return redirect},permanentRedirect:function(){return permanentRedirect},isRedirectError:function(){return isRedirectError},getURLFromRedirectError:function(){return getURLFromRedirectError},getRedirectTypeFromError:function(){return getRedirectTypeFromError}});let n=i(23743),o="NEXT_REDIRECT";function getRedirectError(e,t,i){void 0===i&&(i=!1);let s=Error(o);s.digest=o+";"+t+";"+e+";"+i;let r=n.requestAsyncStorage.getStore();return r&&(s.mutableCookies=r.mutableCookies),s}function redirect(e,t){throw void 0===t&&(t="replace"),getRedirectError(e,t,!1)}function permanentRedirect(e,t){throw void 0===t&&(t="replace"),getRedirectError(e,t,!0)}function isRedirectError(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,i,s,r]=e.digest.split(";",4);return t===o&&("replace"===i||"push"===i)&&"string"==typeof s&&("true"===r||"false"===r)}function getURLFromRedirectError(e){return isRedirectError(e)?e.digest.split(";",3)[2]:null}function getRedirectTypeFromError(e){if(!isRedirectError(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(r=s||(s={})).push="push",r.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23743:function(e,t,i){"use strict";
19Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let s=i(12422),r=(0,s.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6160:function(e,t){"use strict";function getSegmentValue(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return getSegmentValue}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30252:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{ServerInsertedHTMLContext:function(){return n},useServerInsertedHTML:function(){return useServerInsertedHTML}});let s=i(61757),r=s._(i(67294)),n=r.default.createContext(null);function useServerInsertedHTML(e){let t=(0,r.useContext)(n);t&&t(e)}},39332:function(e,t,i){i(30636)},87168:function(e,t,i){"use strict";var s=i(67294),r=i(45697),n=i.n(r),o=i(93967),l=i.n(o),a=i(22040),d=["className","cssModule","type","size","color","children","tag"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e}).apply(this,arguments)}var g={tag:a.iC,type:n().oneOf(["border","grow"]),size:n().oneOf(["sm"]),color:n().oneOf(["primary","secondary","success","danger","warning","info","light","dark"]),className:n().string,cssModule:n().object,children:n().string};function Spinner(e){var t=e.className,i=e.cssModule,r=e.type,n=void 0===r?"border":r,o=e.size,g=e.color,u=e.children,h=void 0===u?"Loading...":u,c=e.tag,m=void 0===c?"div":c,p=function(e,t){if(null==e)return{};var i,s,r=function(e,t){if(null==e)return{};var i,s,r={},n=Object.keys(e);for(s=0;s<n.length;s++)i=n[s],t.indexOf(i)>=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}(e,d),f=(0,a.mx)(l()(t,!!o&&"spinner-".concat(n,"-").concat(o),"spinner-".concat(n),!!g&&"text-".concat(g)),i);return s.createElement(m,_extends({role:"status"},p,{className:f}),h&&s.createElement("span",{className:(0,a.mx)("visually-hidden",i)},h))}Spinner.propTypes=g,t.Z=Spinner}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.