1function lightbox(e){function t(e){var t=e.getAttribute("width"),n=e.getAttribute("height"),s=(!t||!n)&&e.currentSrc||e.getAttribute("src");return{src:s,msrc:s,w:t||e.naturalWidth,h:n||e.naturalHeight,el:e}}document.querySelectorAll(e).forEach(function(e){e.addEventListener("click",function(e){if(n=e,e=(n.preventDefault(),document.querySelectorAll(".pswp")[0]),e){var e,n,o,i,r,c,d,s=[],l=0,a=n.target.closest(".kg-card");if(a)for(o=a.previousElementSibling;o&&(o.classList.contains("kg-image-card")||o.classList.contains("kg-gallery-card"));)d=[],o.querySelectorAll("img").forEach(function(e){d.push(t(e)),l+=1}),o=o.previousElementSibling,s=d.concat(s);if(!a||n.target.classList.contains("kg-image")?s.push(t(n.target)):(c=!1,n.target.closest(".kg-gallery-card").querySelectorAll("img").forEach(function(e){s.push(t(e)),c||e===n.target?c=!0:l+=1})),a)for(i=a.nextElementSibling;i&&(i.classList.contains("kg-image-card")||i.classList.contains("kg-gallery-card"));)i.querySelectorAll("img").forEach(function(e){s.push(t(e))}),i=i.nextElementSibling;r=new PhotoSwipe(e,PhotoSwipeUI_Default,s,{bgOpacity:.9,closeOnScroll:!0,fullscreenEl:!1,history:!1,index:l,shareEl:!1,zoomEl:!1,getThumbBoundsFn:function(e){var e=s[e].el,t=window.pageYOffset||document.documentElement.scrollTop,e=e.getBoundingClientRect();return{x:e.left,y:e.top+t,w:e.width}}}),r.listen("gettingData",function(e,t){var n;0<t.w&&0<t.h||((n=new Image).onload=function(){t.w=this.naturalWidth,t.h=this.naturalHeight,r.invalidateCurrItems(),r.updateSize(!0)},n.src=t.src)}),r.init()}})})}((e,t)=>{"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()})("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(e,t){var n;if(e&&t)return-1==(n=(n=this._events=this._events||{})[e]=n[e]||[]).indexOf(t)&&n.push(t),this},e.once=function(e,t){var n;if(e&&t)return this.on(e,t),((n=this._onceEvents=this._onceEvents||{})[e]=n[e]||{})[t]=!0,this},e.off=function(e,t){if(e=this._events&&this._events[e],e&&e.length)return-1!=(t=e.indexOf(t))&&e.splice(t,1),this},e.emitEvent=function(e,t){if(n=this._events&&this._events[e],n&&n.length){n=n.slice(0),t=t||[];for(var n,s,o=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++)s=n[i],o&&o[s]&&(this.off(e,s),delete o[s]),s.apply(this,t);return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),((e,t)=>{"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(n){return t(e,n)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)})("undefined"!=typeof window?window:this,function(e,t){function r(e,t){for(var n in t)e[n]=t[n];return e}function n(e,t,s){var o,l;return this instanceof n?(l="string"==typeof(l=e)?document.querySelectorAll(e):l)?(this.elements=(o=l,Array.isArray(o)?o:"object"==typeof o&&"number"==typeof o.length?c.call(o):[o]),this.options=r({},this.options),"function"==typeof t?s=t:r(this.options,t),s&&this.on("always",s),this.getImages(),i&&(this.jqDeferred=new i.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(l||e)):new n(e,t,s)}function s(e){this.img=e}function o(e,t){this.url=e,this.element=t,this.img=new Image}var i=e.jQuery,a=e.console,c=Array.prototype.slice,l=((n.prototype=Object.create(t.prototype)).options={},n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},n.prototype.addElementImages=function(e){if("IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e),n=e.nodeType,n&&l[n]){for(var n,s,i,a,o=e.querySelectorAll("img"),t=0;t<o.length;t++)i=o[t],this.addImage(i);if("string"==typeof this.options.background)for(s=e.querySelectorAll(this.options.background),t=0;t<s.length;t++)a=s[t],this.addElementBackgroundImages(a)}},{1:!0,9:!0,11:!0});return n.prototype.addElementBackgroundImages=function(e){if(t=getComputedStyle(e),t)for(var t,s,o=/url\((['"])?(.*?)\1\)/gi,n=o.exec(t.backgroundImage);null!==n;
1)s=n&&n[2],s&&this.addBackground(s,e),n=o.exec(t.backgroundImage)},n.prototype.addImage=function(e){e=new s(e),this.images.push(e)},n.prototype.addBackground=function(e,t){e=new o(e,t),this.images.push(e)},n.prototype.check=function(){function e(e,n,s){setTimeout(function(){t.progress(e,n,s)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},n.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+n,e,t)},n.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(e=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[e](this))},(s.prototype=Object.create(t.prototype)).check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},s.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},s.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},s.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},s.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},s.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(o.prototype=Object.create(s.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},o.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},(n.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((i=t).fn.imagesLoaded=function(e,t){return new n(this,e,t).jqDeferred.promise(i(this))})})(),n}),((e,t)=>{"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()})(this,function(){return function(e,t){function S(e){if(p)return!0;e=e||window.event,n.timeToIdle&&n.mouseUsed&&!y&&j();for(var s,i,a=(e.target||e.srcElement).getAttribute("class")||"",o=0;o<g.length;o++)(s=g[o]).onTap&&-1<a.indexOf("pswp__"+s.name)&&(s.onTap(),i=!0);i&&(e.stopPropagation&&e.stopPropagation(),p=!0,e=t.features.isOldAndroid?600:30,setTimeout(function(){p=!1},e))}function k(){var e=1===n.getNumItemsFn();e!==C&&(u(o,"ui--one-slide",e),C=e)}function A(){u(l,"share-modal--hidden",r)}function L(){for(var e,s,i,a,t="",o=0;o<n.shareButtons.length;o++)e=n.shareButtons[o],s=n.getImageURLForShare(e),i=n.getPageURLForShare(e),a=n.getTextForShare(e),t+='<a href="'+e.url.replace("{{url}}",encodeURIComponent(i)).replace("{{image_url}}",encodeURIComponent(s)).replace("{{raw_image_url}}",s).replace("{{text}}",encodeURIComponent(a))+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",n.parseShareButtonOut&&(t=n.parseShareButtonOut(e,t));l.children[0].innerHTML=t,l.children[0].onclick=R}function b(e){for(var s=0;s<n.closeElClasses.length;s++)if(t.hasClass(e,"pswp__"+n.closeElClasses[s]))return!0}function j(){clearTimeout(v),D=0,y&&s.setIdle(!1)}function M(e){(e=(e=e||window.event).relatedTarget||e.toElement)&&"HTML"!==e.nodeName||(clearTimeout(v),v=setTimeout(function(){s.setIdle(!0)},n.timeToIdleOutside))}function f(e){O!==e&&(u(E,"preloader--active",!e),O=e)}function H(s){var i,a=s.vGap;!e.likelyTouchDevice||n.mouseUsed||screen.width>n.fitControlsWidth?(i=n.barsSize,n.captionEl&&"auto"===i.bottom?(d||((d=t.createEl("pswp__caption pswp__caption--fake")).appendChild(t.createEl("pswp__caption__center")),o.insertBefore(d,m),t.addClass(o,"pswp__ui--fit")),n.addCaptionHTMLFn(s,d,!0)?(s=d.clientHeight,a.bottom=parseInt(s,10)||44):a.bottom=i.top):a.bottom="auto"===i.bottom?0:i.bottom,a.top=i.top):a.top=a.bottom=0}function N(){function i(o){if(o)for(var i,c=o.length,r=0;r<c;r++)for(e=o[r],a=e.className,i=0;i<g.length;i++)s=g[i],-1<a.indexOf("pswp__"+s.name)&&(n[s.option]?(t.removeClass(e,"pswp__element--disabled"),s.onInit&&s.onInit(e)):t.addClass(e,"pswp__element--disabled"))}i(o.children);var e,s,a,r=t.getChildByClass(o,"pswp__top-bar");r&&i(r.children)}var n,o,i,a,l,d,m,p,v,y,_,w,O,x,C,E,T,z,s=this,F=!1,c=!0,r=!0,P={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl
1:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return e.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return e.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},u=function(e,n,s){t[(s?"add":"remove")+"Class"](e,"pswp__"+n)},h=function(){return(r=!r)?(t.removeClass(l,"pswp__share-modal--fade-in"),setTimeout(function(){r&&A()},300)):(A(),setTimeout(function(){r||t.addClass(l,"pswp__share-modal--fade-in")},30)),r||L(),!1},R=function(t){var n=(t=t||window.event).target||t.srcElement;return e.shout("shareLinkClick",t,n),!(!n.href||!n.hasAttribute("download")&&(window.open(n.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),r||h(),1))},D=0,g=[{name:"caption",option:"captionEl",onInit:function(e){m=e}},{name:"share-modal",option:"shareEl",onInit:function(e){l=e},onTap:function(){h()}},{name:"button--share",option:"shareEl",onInit:function(e){z=e},onTap:function(){h()}},{name:"button--zoom",option:"zoomEl",onTap:e.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){w=e}},{name:"button--close",option:"closeEl",onTap:e.close},{name:"button--arrow--left",option:"arrowEl",onTap:e.prev},{name:"button--arrow--right",option:"arrowEl",onTap:e.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){a.isFullscreen()?a.exit():a.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){E=e}}];s.init=function(){var u;t.extend(e.options,P,!0),n=e.options,o=t.getChildByClass(e.scrollWrap,"pswp__ui"),(i=e.listen)("onVerticalDrag",function(e){c&&e<.95?s.hideControls():!c&&.95<=e&&s.showControls()}),i("onPinchClose",function(e){c&&e<.9?(s.hideControls(),u=!0):u&&!c&&.9<e&&s.showControls()}),i("zoomGestureEnded",function(){(u=!1)&&!c&&s.showControls()}),i("beforeChange",s.update),i("doubleTap",function(t){var s=e.currItem.initialZoomLevel;e.getZoomLevel()!==s?e.zoomTo(s,t,333):e.zoomTo(n.getDoubleTapZoom(!1,e.currItem),t,333)}),i("preventDragEvent",function(e,t,n){var s=e.target||e.srcElement;s&&s.getAttribute("class")&&-1<e.type.indexOf("mouse")&&(0<s.getAttribute("class").indexOf("__caption")||/(SMALL|STRONG|EM)/i.test(s.tagName))&&(n.prevent=!1)}),i("bindEvents",function(){t.bind(o,"pswpTap click",S),t.bind(e.scrollWrap,"pswpTap",s.onGlobalTap),e.likelyTouchDevice||t.bind(e.scrollWrap,"mouseover",s.onMouseOver)}),i("unbindEvents",function(){r||h(),_&&clearInterval(_),t.unbind(document,"mouseout",M),t.unbind(document,"mousemove",j),t.unbind(o,"pswpTap click",S),t.unbind(e.scrollWrap,"pswpTap",s.onGlobalTap),t.unbind(e.scrollWrap,"mouseover",s.onMouseOver),a&&(t.unbind(document,a.eventK,s.updateFullscreen),a.isFullscreen()&&(n.hideAnimationDuration=0,a.exit()),a=null)}),i("destroy",function(){n.captionEl&&(d&&o.removeChild(d),t.removeClass(m,"pswp__caption--empty")),l&&(l.children[0].onclick=null),t.removeClass(o,"pswp__ui--over-close"),t.addClass(o,"pswp__ui--hidden"),s.setIdle(!1)}),n.showAnimationDuration||t.removeClass(o,"pswp__ui--hidden"),i("initialZoomIn",function(){n.showAnimationDuration&&t.removeClass(o,"pswp__ui--hidden")}),i("initialZoomOut",function(){t.addClass(o,"pswp__ui--hidden")}),i("parseVerticalMargin",H),N(),n.shareEl&&z&&l&&(r=!0),k(),n.timeToIdle&&i("mouseUsed",function(){t.bind(document,"mousemove",j),t.bind(document,"mouseout",M),_=setInterval(function(){2===++D&&s.setIdle(!0)},n.timeToIdle/2)}),n.fullscreenEl&&!t.features.isOldAndroid&&((a=a||s.getFullscreenAPI())?(t.bind(document,a.eventK,s.updateFullscreen),s.updateFullscreen(),t.addClass(e.template,"pswp--supports-fs")):t.removeClass(e.template,"pswp--supports-fs")),n.preloaderEl&&(f(!0),i("beforeChange",function(){clearTimeout(x),x=setTimeout(function(){e.currItem&&e.currItem.loading?e.allowProgressiveImg()&&(!e.currItem.img||e.currItem.img.naturalWi
1dth)||f(!1):f(!0)},n.loadingIndicatorDelay)}),i("imageLoadComplete",function(t,n){e.currItem===n&&f(!0)}))},s.setIdle=function(e){u(o,"ui--idle",y=e)},s.update=function(){F=!(!c||!e.currItem||(s.updateIndexIndicator(),n.captionEl&&(n.addCaptionHTMLFn(e.currItem,m),u(m,"caption--empty",!e.currItem.title)),0)),r||h(),k()},s.updateFullscreen=function(n){n&&setTimeout(function(){e.setScrollOffset(0,t.getScrollY())},50),t[(a.isFullscreen()?"add":"remove")+"Class"](e.template,"pswp--fs")},s.updateIndexIndicator=function(){n.counterEl&&(w.innerHTML=e.getCurrentIndex()+1+n.indexIndicatorSep+n.getNumItemsFn())},s.onGlobalTap=function(o){var i=(o=o||window.event).target||o.srcElement;if(!p)if(o.detail&&"mouse"===o.detail.pointerType)b(i)?e.close():t.hasClass(i,"pswp__img")&&(1===e.getZoomLevel()&&e.getZoomLevel()<=e.currItem.fitRatio?n.clickToCloseNonZoomable&&e.close():e.toggleDesktopZoom(o.detail.releasePoint));else if(n.tapToToggleControls&&(c?s.hideControls():s.showControls()),n.tapToClose&&(t.hasClass(i,"pswp__img")||b(i)))return void e.close()},s.onMouseOver=function(e){e=(e=e||window.event).target||e.srcElement,u(o,"ui--over-close",b(e))},s.hideControls=function(){t.addClass(o,"pswp__ui--hidden"),c=!1},s.showControls=function(){c=!0,F||s.update(),t.removeClass(o,"pswp__ui--hidden")},s.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},s.getFullscreenAPI=function(){var t,s=document.documentElement,o="fullscreenchange";return s.requestFullscreen?t={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:o}:s.mozRequestFullScreen?t={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+o}:s.webkitRequestFullscreen?t={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+o}:s.msRequestFullscreen&&(t={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),t&&(t.enter=function(){return T=n.closeOnScroll,n.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?e.template[this.enterK]():void e.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return n.closeOnScroll=T,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}}),((e,t)=>{"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()})(this,function(){return function(e,t,n,s){var i={features:null,bind:function(e,t,n,s){var o,i=(s?"remove":"add")+"EventListener";t=t.split(" ");for(o=0;o<t.length;o++)t[o]&&e[i](t[o],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){return t=document.createElement(t||"div"),e&&(t.className=e),t},getScrollY:function(){var e=window.pageYOffset;return 0[0]!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){i.bind(e,t,n,!0)},removeClass:function(e,t){t=new RegExp("(\\s|^)"+t+"(\\s|$)"),e.className=e.className.replace(t," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){i.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(i.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var s=e.length;s--;)if(e[s][n]===t)return s;return-1},extend:function(e,t,n){for(var s in t)if(t.hasOwnProperty(s)){if(n&&e.hasOwnProperty(s))continue;e[s]=t[s]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(i.features)return i.features;var t,o,a,d=i.createEl().style,n="",e={};e.oldIE=document.all&&!document.addEventListener,e.touch="ontouchstart"in window,window.requestAnimationFrame&&(e.raf=window.requestAnimationFrame,e.caf=window.cancelAnimationFrame),e.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,e.pointerEvent||(a=navigator.userAgent,/iP(hone|od)/.test(navigator.platform)&&(t=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))&&0<t.length&&1<=(t=parseInt(t[1],10))&&t<8&&(e.isOldIOSPhone=!0),t=(t=a.match(/Android\s([0-9.]*)/))?t[1]:0,1<=(t=parseFloat(t))&&(t<4.4&&(e.isOldAndroid=!0),e.androidVersion=t),e.isMobileOpera=/opera mini|o
1pera mobi/i.test(a));for(var s,r,c,u=["transform","perspective","animationName"],h=["","webkit","Moz","ms","O"],l=0;l<4;l++){for(n=h[l],o=0;o<3;o++)s=u[o],r=n+(n?s.charAt(0).toUpperCase()+s.slice(1):s),!e[s]&&r in d&&(e[s]=r);n&&!e.raf&&(n=n.toLowerCase(),e.raf=window[n+"RequestAnimationFrame"],e.raf)&&(e.caf=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"])}return e.raf||(c=0,e.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-c)),s=window.setTimeout(function(){e(t+n)},n);return c=t+n,s},e.caf=function(e){clearTimeout(e)}),e.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,i.features=e}},o=(i.detectFeatures(),i.features.oldIE&&(i.bind=function(e,t,n,s){t=t.split(" ");for(var o,a=(s?"detach":"attach")+"Event",r=function(){n.handleEvent.call(n)},i=0;i<t.length;i++)if(o=t[i])if("object"==typeof n&&n.handleEvent){if(s){if(!n["oldIE"+o])return!1}else n["oldIE"+o]=r;e[a]("on"+o,n["oldIE"+o])}else e[a]("on"+o,n)}),this),Ht=25,a={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e||t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};i.extend(a,s);function K(){return{x:0,y:0}}function we(e,t){i.extend(o,t.publicMethods),mt.push(e)}function Xe(e){var t=C();return t-1<e?e-t:e<0?t+e:e}function m(e,t){return ze[e]||(ze[e]=[]),ze[e].push(t)}function qt(e,t,n,s){s===o.currItem.initialZoomLevel?n[e]=o.currItem.initialPosition[e]:(n[e]=ut(e,s),n[e]>t.min[e]?n[e]=t.min[e]:n[e]<t.max[e]&&(n[e]=t.max[e]))}function yn(e){var t="";a.escKey&&27===e.keyCode?t="close":a.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),!t||e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,o[t]())}function gn(e){e&&(de||ie||y||Ce)&&(e.preventDefault(),e.stopPropagation())}function Tt(){o.setScrollOffset(0,i.getScrollY())}function jn(e){var t;"mousedown"===e.type&&0<e.button||(me?e.preventDefault():ye&&"mousedown"===e.type||(Zt(e,!0)&&e.preventDefault(),d("pointerDown"),ae&&((t=i.arraySearch(P,e.pointerId,"id"))<0&&(t=P.length),P[t]={x:e.pageX,y:e.pageY,id:e.pointerId}),e=(t=Mt(e)).length,A=null,_e(),T&&1!==e||(T=ft=!0,i.bind(window,ke,o),bt=Je=Qe=Ce=G=de=vt=ie=!1,I=null,d("firstTouchStart",t),O(fe,r),V.x=V.y=0,O(j,t[0]),O(re,j),ne.x=x.x*$,oe=[{x:j.x,y:j.y}],Ge=zt=F(),rt(u,!0),_t(),rn()),!N&&1<e&&!y&&!G&&(Y=u,N=vt=!(ie=!1),V.y=V.x=0,O(fe,r),O(_,t[0]),O(Z,t[1]),Yt(_,Z,pe),Ae.x=Math.abs(pe.x)-r.x,Ae.y=Math.abs(pe.y)-r.y,Bt=Ft(_,Z))))}function bn(e){var t;e.preventDefault(),ae&&-1<(t=i.arraySearch(P,e.pointerId,"id"))&&((t=P[t]).x=e.pageX,t.y=e.pageY),T&&(t=Mt(e),I||de||N?A=t:L.x!==x.x*$?I="h":(e=Math.abs(t[0].x-j.x)-Math.abs(t[0].y-j.y),(e<0?-e:e)>=st&&(I=0<e?"h":"v",A=t)))}function hn(e){if(h.isOldAndroid){if(ye&&"mouseup"===e.type)return;-1<e.type.indexOf("touch")&&(clearTimeout(ye),ye=setTimeout(function(){ye=0},600))}d("pointerUp"),Zt(e,!1)&&e.preventDefault(),ae&&-1<(n=i.arraySearch(P,e.pointerId,"id"))&&(s=P.splice(n,1)[0],navigator.msPointerEnabled&&(s.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],s.type)||(s.type=e.pointerType||"mouse"));var n,s,c,l,t=(n=Mt(e)).length;if(2===(t="mouseup"===e.type?0:t))return!(A=null);if(1===t&&O(re,n[0]),0!==t||I||y||(s||("mouseup"===e.type?s={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(s={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),d("touchRelease",e,s)),n=-1,0===t&&(T=!1,i.unbind(window,ke,o),_t(),N?n=0:-1!==pt&&(n=F()-pt)),pt=1===t?F():-1,e=-1!==n&&n<150?"zoom":"swipe",N&&t<2&&(N=!1,1===t&&(e="zoomPointerUp"),d("zoomGestureEnded")),A=null,de||ie||y||Ce)if(_e(),(Ye=Ye||En()).calculateSwipeSpeed("x"),Ce)Dt()<a.verticalDragRange?o.close():(c=r.y,l=Ze,je("verticalDrag",0,1,300,i.easing.cubic.out,function(e){r.y=(o.currItem.initialPosition.y-c)*e+c,R((1-l)*e+l),p()}),d("onVerticalDrag",1));else{if((G||y)&&0===t){if(On(e,Ye))return;e="zoomPointerUp"}if(!y)return"swipe"!==e?void _n():0[0]}}var le,an,Ot,l,sn,ee,ke,Ue,u,g,Re,ue,ae,D,Pe,At,Kt,Ut,nt,h,Y,xt,Et,kt,et,f,Gt,Ve,Ke,Me,ie,de,Ie,A,N,G,Bt,c,y,H,J,tt,zt,Ge,Ye,bt,Ce,ye,T,vt,I,ft,Qe,Ze,Je,De,S,W,$e,V=K(),fe=K(),r=K(),v={},$=0,ge={},x=K(),M=0,He=!0,mt=[],Fe={},te=!1,ze={},d=function(e){var t,s,n=ze[e];if(n){s=Array.prototype.slice.call(arguments),s.shift();for(t=0;t<n.length;t++)n[t].apply(o,s)}},F=function(){return(new Date).getTime()},R=function(e){Ze=e,o.bg.style.opacity=e*a.bgOpacity},It=function(e,t,n,s,i){(!te||i&&i!==o.currItem)&&(s/=(i||o.currItem).fitRatio),e[ue]=xt+t+"px, "+n+"px"+Et+" scale("+s+")"},p=function(e){H&&(e&&(u>o.currItem.fitRatio?te||(se(o.currItem,!1,!0),te=!0):te&&(se(o.currItem),te=!1)),It(H,r.x,r.y,u))},Se=function(e){e.container&&It(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},ce=function(e,t){t[ue]=xt+e+"px, 0px"+Et},Be=function(e,t){var n;!a.loop&&t&&(t=l+(x.x*$-e)/x.x,n=Math.round(e-L.x),t<0&&0<n||t>=C()-1&&n<0)&&(e=L.x+n*a.mainScrollEndFriction),L.x=e,ce(e,sn)},ut=function(e,t){var n=Ae[e]-ge[e];return fe[e]+V[e]+n-t/Y*n},O=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Pt=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},lt=null,ct=function(){lt&&(i.unbind(document,"mousemove",ct),i.addClass(e,"pswp--has_mouse"),a.mouseUsed=!0,d("mouseUsed")),lt=setTimeout(function(){lt=null},100)},rt=function(e,t){return e=Te(o.currItem,v,e),t&&(c=e),e},Rt=function(e){return(e=e||o.currItem).initialZoomLevel},Lt=function(e){return 0<(e=e||o.currItem).w?a.maxSpreadZoom:1},E={},be=0,Oe=function(e){E[e]&&(E[e].raf&&At(E[e].raf),be--,delete E[e])},ot=function(e){E[e]&&Oe(e),E[e]||(be++,E[e]={})},_e=function(){for(var e in E)E.hasOwnProperty(e)&&Oe(e)},je=function(e,t,n,s,o,i,a){function c(){E[e]&&(r=F()-l,s<=r?(Oe(e),i(n),a&&a()):(i((n-t)*o(r/s)+t),E[e].raf=Pe(c)))}var r,l=F();ot(e),c()},s={shout:d,listen:m,viewportSize:v,options:a,isMainScrollAnimating:function(){return y},getZoomLevel:function(){return u},getCurrentIndex:function(){return l},isDragging:function(){return T},isZooming:function(){return N},setScrollOffset:function(e,t){ge.x=e,J=ge.y=t,d("updateScrollOffset",ge)},applyZoomPan:function(e,t,n,s){r.x=t,r.y=n,u=e,p(s)},init:function(){if(!le&&!an){o.framework=i,o.template=e,o.bg=i.getChildByClass(e,"pswp__bg"),Kt=e.className,le=!0,h=i.detectFeatures(),Pe=h.raf,At=h.caf,ue=h.transform,nt=h.oldIE,o.scrollWrap=i.getChildByClass(e,"pswp__scroll-wrap"),o.container=i.getChildByClass(o.scrollWrap,"pswp__container"),sn=o.container.style,o.itemHolders=f=[{el:o.container.children[0],wrap:0,index:-1},{el:o.container.children[1],wrap:0,index:-1},{el:o.container.children[2],wrap:0,index:-1}],f[0].el.style.display=f[2].el.style.display="none",ue?(c=h.perspective&&!D,xt="translate"+(c?"3d(":"("),Et=h.perspective?", 0px)":")"):(ue="left",i.addClass(e,"pswp--ie"),ce=function(e,t){t.left=e+"px"},Se=function(e){var n=1<e.fitRatio?1:e.fitRatio,t=e.container.style,s=n*e.h;
1t.width=n*e.w+"px",t.height=s+"px",t.left=e.initialPosition.x+"px",t.top=e.initialPosition.y+"px"},p=function(){var e,t,n,s;H&&(e=H,s=(n=1<(t=o.currItem).fitRatio?1:t.fitRatio)*t.h,e.width=n*t.w+"px",e.height=s+"px",e.left=r.x+"px",e.top=r.y+"px")}),g={resize:o.updateSize,orientationchange:function(){clearTimeout(tt),tt=setTimeout(function(){v.x!==o.scrollWrap.clientWidth&&o.updateSize()},500)},scroll:Tt,keydown:yn,click:gn};var n,s,c=h.isOldIOSPhone||h.isOldAndroid||h.isMobileOpera;for(h.animationName&&h.transform&&!c||(a.showAnimationDuration=a.hideAnimationDuration=0),n=0;n<mt.length;n++)o["init"+mt[n]]();t&&(o.ui=new t(o,i)).init(),d("firstUpdate"),l=l||a.index||0,(isNaN(l)||l<0||l>=C())&&(l=0),o.currItem=B(l),(h.isOldIOSPhone||h.isOldAndroid)&&(He=!1),e.setAttribute("aria-hidden","false"),a.modal&&(He?e.style.position="fixed":(e.style.position="absolute",e.style.top=i.getScrollY()+"px")),0[0]===J&&(d("initialLayout"),J=Ut=i.getScrollY()),s="pswp--open ";for(a.mainClass&&(s+=a.mainClass+" "),a.showHideOpacity&&(s+="pswp--animate_opacity "),s=(s=(s+=D?"pswp--touch":"pswp--notouch")+(h.animationName?" pswp--css_animation":""))+(h.svg?" pswp--svg":""),i.addClass(e,s),o.updateSize(),ee=-1,M=null,n=0;n<3;n++)ce((n+ee)*x.x,f[n].el.style);nt||i.bind(o.scrollWrap,Ue,o),m("initialZoomInEnd",function(){o.setContent(f[0],l-1),o.setContent(f[2],l+1),f[0].el.style.display=f[2].el.style.display="block",a.focus&&e.focus(),i.bind(document,"keydown",o),h.transform&&i.bind(o.scrollWrap,"click",o),a.mouseUsed||i.bind(document,"mousemove",ct),i.bind(window,"resize scroll orientationchange",o),d("bindEvents")}),o.setContent(f[1],l),o.updateCurrItem(),d("afterInit"),He||(kt=setInterval(function(){be||T||N||u!==o.currItem.initialZoomLevel||o.updateSize()},1e3)),i.addClass(e,"pswp--visible")}},close:function(){le&&(an=!(le=!1),d("close"),i.unbind(window,"resize scroll orientationchange",o),i.unbind(window,"scroll",g.scroll),i.unbind(document,"keydown",o),i.unbind(document,"mousemove",ct),h.transform&&i.unbind(o.scrollWrap,"click",o),T&&i.unbind(window,ke,o),clearTimeout(tt),d("unbindEvents"),Qt(o.currItem,null,!0,o.destroy))},destroy:function(){d("destroy"),X&&clearTimeout(X),e.setAttribute("aria-hidden","true"),e.className=Kt,kt&&clearInterval(kt),i.unbind(o.scrollWrap,Ue,o),i.unbind(window,"scroll",o),_t(),_e(),ze=null},panTo:function(e,t,n){n||(e>c.min.x?e=c.min.x:e<c.max.x&&(e=c.max.x),t>c.min.y?t=c.min.y:t<c.max.y&&(t=c.max.y)),r.x=e,r.y=t,p()},handleEvent:function(e){e=e||window.event,g[e.type]&&g[e.type](e)},goTo:function(e){var t=(e=Xe(e))-l;M=t,l=e,o.currItem=B(l),$-=t,Be(x.x*$),_e(),y=!1,o.updateCurrItem()},next:function(){o.goTo(l+1)},prev:function(){o.goTo(l-1)},updateCurrZoomItem:function(e){var t;e&&d("beforeChange",0),H=f[1].el.children.length&&(t=f[1].el.children[0],i.hasClass(t,"pswp__zoom-wrap"))?t.style:null,c=o.currItem.bounds,Y=u=o.currItem.initialZoomLevel,r.x=c.center.x,r.y=c.center.y,e&&d("afterChange")},invalidateCurrItems:function(){et=!0;for(var e=0;e<3;e++)f[e].item&&(f[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==M){var t,s,n=M<0?-M:M;if(!(e&&n<2)){o.currItem=B(l),te=!1,d("beforeChange",M),3<=n&&(ee+=M+(0<M?-3:3),n=3);for(s=0;s<n;s++)0<M?(t=f.shift(),f[2]=t,ce((++ee+2)*x.x,t.el.style),o.setContent(t,l-n+s+1+1)):(t=f.pop(),f.unshift(t),ce(--ee*x.x,t.el.style),o.setContent(t,l+n-s-1-1));H&&1===(M<0?-M:M)&&(e=B(Gt)).initialZoomLevel!==u&&(Te(e,v),se(e),Se(e)),M=0,o.updateCurrZoomItem(),Gt=l,d("afterChange")}}},updateSize:function(t){if(!He&&a.modal){var n,s,h,m,g=i.getScrollY();if(J!==g&&(e.style.top=g+"px",J=g),!t&&Fe.x===window.innerWidth&&Fe.y===window.innerHeight)return;Fe.x=window.innerWidth,Fe.y=window.innerHeight,e.style.height=Fe.y+"px"}if(v.x=o.scrollWrap.clientWidth,v.y=o.scrollWrap.clientHeight,Tt(),x.x=v.x+Math.round(v.x*a.spacing),x.y=v.y,Be(x.x*$),d("beforeResize"),0[0]!==ee){for(h=0;h<3;h++)m=f[h],ce((h+ee)*x.x,m.el.style),s=l+h-1,a.loop&&2<C()&&(s=Xe(s)),(n=B(s))&&(et||n.needsUpdate||!n.bounds)?(o.cleanSlide(n),o.setContent(m,s),1===h&&(o.currItem=n,o.updateCurrZoomItem(!0)),n.needsUpdate=!1):-1===m.index&&0<=s&&o.setContent(m,s),n&&n.container&&(Te(n,v),se(n),Se(n));et=!1}Y=u=o.currItem.initialZoomLevel,(c=o.currItem.bounds)&&(r.x=c.center.x,r.y=c.center.y,p(!0)),d("resize")},zoomTo:function(e,t,n,s,o){t&&(Y=u,Ae.x=Math.abs(t.x)-r.x,Ae.y=Math.abs(t.y)-r.y,O(fe,r));function l(t){1===t?(u=e,r.x=a.x,r.y=a.y):(u=(e-d)*t+d,r.x=(a.x-c.x)*t+c.x,r.y=(a.y-c.y)*t+c.y),o&&o(t),p(1===t)}var t=rt(e,!1),a={},d=(qt("x",t,a,e),qt("y",t,a,e),u),c={x:r.x,y:r.y};Pt(a),n?je("customZoomTo",0,1,n,s||i.easing.sine.inOut,l):l(1)}},on=30,st=10,_={},Z={},b={},j={},re={},P=[],ne={},oe=[],he={},Le=0,Ne=K(),pt=0,L=K(),Ae=K(),pe=K(),vn=function(e,t){return e.x===t.x&&e.y===t.y},Ft=function(e,t){return he.x=Math.abs(e.x-t.x),he.y=Math.abs(e.y-t.y),(he.x*he.x+he.y*he.y)**.5},_t=function(){Ie&&(At(Ie),Ie=null)},rn=function(){T&&(Ie=Pe(rn),kn())},mn=function(){return"fit"!==a.scaleMode||u!==o.currItem.initialZoomLevel},Jt=function(e,t){return!!e&&e!==document&&!(e.getAttribute("class")&&-1<e.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(t(e)?e:Jt(e.parentNode,t))},Ct={},Zt=function(e,t){return Ct.prevent=!Jt(e.target,a.isClickableElement),d("preventDragEvent",e,t,Ct),Ct.prevent},Xt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},Yt=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},un=function(e,t,n){var s;50<e-Ge&&((s=2<oe.length?oe.shift():{}).x=t,s.y=n,oe.push(s),Ge=e)},Dt=function(){var e=r.y-o.currItem.initialPosition.y;return 1-Math.abs(e/(v.y/2))},xe={},pn={},q=[],Mt=function(e){for(;0<q.length;)q.pop();return ae?(De=0,P.forEach(function(e){0===De?q[0]=e:1===De&&(q[1]=e),De++})):-1<e.type.indexOf("touch")?e.touches&&0<e.touches.length&&(q[0]=Xt(e.touches[0],xe),1<e.touches.length)&&(q[1]=Xt(e.touches[1],pn)):(xe.x=e.pageX,xe.y=e.pageY,xe.id="",q[0]=xe),q},Nt=function(e,t){var n,d,h,s=r[e]+t[e],i=L.x+t.x,m=L.x-ne.x,l=s>c.min[e]||s<c.max[e]?a.panEndFriction:1,s=r[e]+t[e]*l;return!a.allowPanToNext&&u!==o.currItem.initialZoomLevel||(H?"h"!==I||"x"!==e||ie||(0<t[e]?(s>c.min[e]&&(l=a.panEndFriction,c.min[e],d=c.min[e]-fe[e]),(d<=0||m<0)&&1<C()?(n=i,m<0&&i>ne.x&&(n=ne.x)):c.min.x!==c.max.x&&(h=s)):(s<c.max[e]&&(l=a.panEndFriction,c.max[e],d=fe[e]-c.max[e]),(d<=0||0<m)&&1<C()?(n=i,0<m&&i<ne.x&&(n=ne.x)):c.min.x!==c.max.x&&(h=s))):n=i,"x"!==e)?0[0]:(0[0]!==n&&(Be(n,!0),G=n!==ne.x),c.min.x!==c.max.x&&(0[0]!==h?r.x=h:G||(r.x+=t.x*l)),0[0]!==n)},kn=function(){var e,t,n,s,i,l;A&&0!==(i=A.length)&&(O(_,A[0]),b.x=_.x-j.x,b.y=_.y-j.y,N&&1<i?(j.x=_.x,j.y=_.y,!b.x&&!b.y&&vn(A[1],Z)||(O(Z,A[1]),ie||(ie=!0,d("zoomGestureStarted")),i=Ft(_,Z),(e=wn(i))>o.currItem.initialZoomLevel+o.currItem.initialZoomLevel/15&&(Je=!0),n=1,t=Rt(),l=Lt(),e<t?a.pinchToClose&&!Je&&Y<=o.currItem.initialZoomLevel?(R(s=1-(t-e)/(t/1.2)),d("onPinchClose",s),Qe=!0):e=t-(n=1<(n=(t-e)/t)?1:n)*(t/3):l<e&&(e=l+(n=1<(n=(e-l)/(6*t))?1:n)*t),n<0&&(n=0),Yt(_,Z,Ne),V.x+=Ne.x-pe.x,V.y+=Ne.y-pe.y,O(pe,Ne),r.x=ut("x",e),r.y=ut("y",e),bt=u<e,u=e,p())):I&&(ft&&(ft=!1,Math.abs(b.x)>=st&&(b.x-=A[0].x-re.x),Math.abs(b.y)>=st)&&(b.y-=A[0].y-re.y),j.x=_.x,j.y=_.y,0===b.x&&0===b.y||("v"===I&&a.closeOnVerticalDrag&&!mn()?(V.y+=b.y,r.y+=b.y,s=Dt(),Ce=!0,d("onVerticalDrag",s),R(s),p()):(un(F(),_.x,_.y),de=!0,c=o.currItem.bounds,Nt("x",b)||(Nt("y",b),Pt(r),p())))))},En=function(){var t,n,e={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{}
1,backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(s){n=(1<oe.length?(t=F()-Ge+50,oe[oe.length-2]):(t=F()-zt,re))[s],e.lastFlickOffset[s]=j[s]-n,e.lastFlickDist[s]=Math.abs(e.lastFlickOffset[s]),20<e.lastFlickDist[s]?e.lastFlickSpeed[s]=e.lastFlickOffset[s]/t:e.lastFlickSpeed[s]=0,Math.abs(e.lastFlickSpeed[s])<.1&&(e.lastFlickSpeed[s]=0),e.slowDownRatio[s]=.95,e.slowDownRatioReverse[s]=1-e.slowDownRatio[s],e.speedDecelerationRatio[s]=1},calculateOverBoundsAnimOffset:function(t,n){e.backAnimStarted[t]||(r[t]>c.min[t]?e.backAnimDestination[t]=c.min[t]:r[t]<c.max[t]&&(e.backAnimDestination[t]=c.max[t]),0[0]!==e.backAnimDestination[t]&&(e.slowDownRatio[t]=.7,e.slowDownRatioReverse[t]=1-e.slowDownRatio[t],e.speedDecelerationRatioAbs[t]<.05)&&(e.lastFlickSpeed[t]=0,e.backAnimStarted[t]=!0,je("bounceZoomPan"+t,r[t],e.backAnimDestination[t],n||300,i.easing.sine.out,function(e){r[t]=e,p()})))},calculateAnimOffset:function(t){e.backAnimStarted[t]||(e.speedDecelerationRatio[t]=e.speedDecelerationRatio[t]*(e.slowDownRatio[t]+e.slowDownRatioReverse[t]-e.slowDownRatioReverse[t]*e.timeDiff/10),e.speedDecelerationRatioAbs[t]=Math.abs(e.lastFlickSpeed[t]*e.speedDecelerationRatio[t]),e.distanceOffset[t]=e.lastFlickSpeed[t]*e.speedDecelerationRatio[t]*e.timeDiff,r[t]+=e.distanceOffset[t])},panAnimLoop:function(){E.zoomPan&&(E.zoomPan.raf=Pe(e.panAnimLoop),e.now=F(),e.timeDiff=e.now-e.lastNow,e.lastNow=e.now,e.calculateAnimOffset("x"),e.calculateAnimOffset("y"),p(),e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),e.speedDecelerationRatioAbs.x<.05)&&e.speedDecelerationRatioAbs.y<.05&&(r.x=Math.round(r.x),r.y=Math.round(r.y),p(),Oe("zoomPan"))}};return e},xn=function(e){return e.calculateSwipeSpeed("y"),c=o.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05?(e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0):(ot("zoomPan"),e.lastNow=F(),void e.panAnimLoop())},On=function(e,t){y||(Le=l),"swipe"===e&&(e=j.x-re.x,c=t.lastFlickDist.x<10,on<e&&(c||20<t.lastFlickOffset.x)?s=-1:e<-on&&(c||t.lastFlickOffset.x<-20)&&(s=1)),s&&((l+=s)<0?(l=a.loop?C()-1:0,u=!0):l>=C()&&(l=a.loop?0:C()-1,u=!0),u&&!a.loop||(M+=s,$-=s,n=!0));var n,s,u,e=x.x*$,c=Math.abs(e-L.x),r=n||e>L.x==0<t.lastFlickSpeed.x?(r=0<Math.abs(t.lastFlickSpeed.x)?c/Math.abs(t.lastFlickSpeed.x):333,r=Math.min(r,400),Math.max(r,250)):333;return Le===l&&(n=!1),y=!0,d("mainScrollAnimStart"),je("mainScroll",L.x,e,r,i.easing.cubic.out,Be,function(){_e(),y=!1,Le=-1,!n&&Le===l||o.updateCurrItem(),d("mainScrollAnimComplete")}),n&&o.updateCurrItem(!0),n},wn=function(e){return 1/Bt*e*Y},_n=function(){var n,a,e=u,t=Rt(),s=Lt();return u<t?e=t:s<u&&(e=s),n=Ze,Qe&&!bt&&!Je&&u<t?o.close():(Qe&&(a=function(e){R((1-n)*e+n)}),o.zoomTo(e,0,200,i.easing.cubic.out,a)),!0};we("Gestures",{publicMethods:{initGestures:function(){function e(e,t,n,s,o){Ve=e+t,Ke=e+n,Me=e+s,Re=o?e+o:""}(ae=h.pointerEvent)&&h.touch&&(h.touch=!1),ae?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):h.touch?(e("touch","start","move","end","cancel"),D=!0):e("mouse","down","move","up"),ke=Ke+" "+Me+" "+Re,Ue=Ve,ae&&!D&&(D=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),o.likelyTouchDevice=D,g[Ve]=jn,g[Ke]=bn,g[Me]=hn,Re&&(g[Re]=g[Me]),h.touch&&(Ue+=" mousedown",ke+=" mousemove mouseup",g.mousedown=g[Ve],g.mousemove=g[Ke],g.mouseup=g[Me]),D||(a.allowPanToNext=!1)}}});function Vt(e){function n(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null}e.loading=!0,e.loaded=!1;var t=e.img=i.createEl("pswp__img","img");t.onload=n,t.onerror=function(){e.loadError=!0,n()},t.src=e.src}function $t(e,t){return e.src&&e.loadError&&e.container&&(t&&(e.container.innerHTML=""),e.container.innerHTML=a.errorMsg.replace("%url%",e.
1src),1)}function Wt(){if(Q.length){for(var e,t=0;t<Q.length;t++)(e=Q[t]).holder.index===e.index&&We(e.index,e.item,e.baseDiv,e.img,!1,e.clearPlaceholder);Q=[]}}var U,X,St,me,C,B,Qt=function(t,n,s,c){function f(){Oe("initialZoom"),s?(o.template.removeAttribute("style"),o.bg.removeAttribute("style")):(R(1),n&&(n.style.display="block"),i.addClass(e,"pswp--animated-in"),d("initialZoom"+(s?"OutEnd":"InEnd"))),c&&c(),me=!1}X&&clearTimeout(X),St=me=!0,t.initialLayout?(h=t.initialLayout,t.initialLayout=null):h=a.getThumbBoundsFn&&a.getThumbBoundsFn(l);var h,g,v,m=s?a.hideAnimationDuration:a.showAnimationDuration;m&&h&&0[0]!==h.x?(v=Ot,g=!o.currItem.src||o.currItem.loadError||a.showHideOpacity,t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),s||(u=h.w/t.w,r.x=h.x,r.y=h.y-Ut,o[g?"template":"bg"].style.opacity=.001,p()),ot("initialZoom"),s&&!v&&i.removeClass(e,"pswp--animated-in"),g&&(s?i[(v?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout(function(){i.addClass(e,"pswp--animate_opacity")},30)),X=setTimeout(function(){var n,o,a,c,l;d("initialZoom"+(s?"Out":"In")),s?(o=h.w/t.w,n={x:r.x,y:r.y},a=u,c=Ze,l=function(t){1===t?(u=o,r.x=h.x,r.y=h.y-J):(u=(o-a)*t+a,r.x=(h.x-n.x)*t+n.x,r.y=(h.y-J-n.y)*t+n.y),p(),g?e.style.opacity=1-t:R(c-t*c)},v?je("initialZoom",0,1,m,i.easing.cubic.out,l,f):(l(1),X=setTimeout(f,m+20))):(u=t.initialZoomLevel,O(r,t.initialPosition),p(),R(1),g?e.style.opacity=1:R(1),X=setTimeout(f,m+20))},s?25:90)):(d("initialZoom"+(s?"Out":"In")),u=t.initialZoomLevel,O(r,t.initialPosition),p(),e.style.opacity=s?0:1,R(1),m?setTimeout(function(){f()},m):f())},k={},Q=[],dn={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return U.length}},tn=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},fn=function(e,t,n){var s=e.bounds;s.center.x=Math.round((k.x-t)/2),s.center.y=Math.round((k.y-n)/2)+e.vGap.top,s.max.x=t>k.x?Math.round(k.x-t):s.center.x,s.max.y=n>k.y?Math.round(k.y-n)+e.vGap.top:s.center.y,s.min.x=t>k.x?0:s.center.x,s.min.y=n>k.y?e.vGap.top:s.center.y},Te=function(e,t,n){var s,o;return e.src&&!e.loadError?((s=!n)&&(e.vGap||(e.vGap={top:0,bottom:0}),d("parseVerticalMargin",e)),k.x=t.x,k.y=t.y-e.vGap.top-e.vGap.bottom,s&&(t=k.x/e.w,o=k.y/e.h,e.fitRatio=t<o?t:o,"orig"===(t=a.scaleMode)?n=1:"fit"===t&&(n=e.fitRatio),e.initialZoomLevel=n=1<n?1:n,e.bounds||(e.bounds=tn())),n?(fn(e,e.w*n,e.h*n),s&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):0[0]):(e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=tn(),e.initialPosition=e.bounds.center,e.bounds)},We=function(e,t,n,s,i,a){t.loadError||s&&(t.imageAppended=!0,se(t,s,t===o.currItem&&te),n.appendChild(s),a)&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500)},se=function(e,t,n){var s;e.src&&(t=t||e.container.lastChild,s=n?e.w:Math.round(e.w*e.fitRatio),n=n?e.h:Math.round(e.h*e.fitRatio),e.placeholder&&!e.loaded&&(e.placeholder.style.width=s+"px",e.placeholder.style.height=n+"px"),t.style.width=s+"px",t.style.height=n+"px")};we("Controller",{publicMethods:{lazyLoadItem:function(e){e=Xe(e);var t=B(e);t&&(!t.loaded&&!t.loading||et)&&(d("gettingData",e,t),t.src)&&Vt(t)},initController:function(){i.extend(a,dn,!0),o.items=U=n,B=o.getItemAt,C=a.getNumItemsFn,a.loop,C()<3&&(a.loop=!1),m("beforeChange",function(e){for(var n=a.preload,s=null===e||0<=e,i=Math.min(n[0],C()),r=Math.min(n[1],C()),t=1;t<=(s?r:i);t++)o.lazyLoadItem(l+t);for(t=1;t<=(s?i:r);t++)o.lazyLoadItem(l-t)}),m("initialLayout",function(){o.currItem.initialLayout=a.getThumbBoundsFn&&a.getThumbBoundsFn(l)}),m("mainScrollAnimComplete",Wt),m("initialZoomInEnd",Wt),m("destroy",function(){for(var e,t=0;t<U.length;t++)(e=U[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);Q=null})},getItemAt:function(e){return 0<=e&&0[0]!==U[e]&&U[e]},allowProgressiveImg:function(){return a.forceProgressiveLoading||!D||a.mouseUsed||1200<screen.width},setContent:function(e,t){a.loop&&(t=Xe(t));var s,r,c,n=o.getItemAt(e.index);n&&(n.container=null),n=o.getItemAt(t),n?(d("gettingData",t,n),e.index=t,s=(e.item=n).container=i.createEl("pswp__zoom-wrap"),!n.src&&n.html&&(n.html.tagName?s.appendChild(n.html):s.innerHTML=n.html),$t(n),Te(n,v),!n.src||n.loadError||n.loaded?n.src&&!n.loadError&&((c=i.createEl("pswp__img","img")).style.opacity=1,c.src=n.src,se(n,c),We(t,n,s,c,!0)):(n.loadComplete=function(n){if(le){if(e&&e.index===t){if($t(n,!0))return n.loadComplete=n.img=null,Te(n,v),Se(n),0[0];n.imageAppended?!me&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):h.transform&&(y||me)?Q.push({item:n,baseDiv:s,img:n.img,index:t,holder:e,clearPlaceholder:!0}):We(t,n,s,n.img,y||me,!0)}n.loadComplete=null,n.img=null,d("imageLoadComplete",t,n)}},i.features.transform&&(r="pswp__img pswp__img--placeholder",r+=n.msrc?"":" pswp__img--placeholder--blank",r=i.createEl(r,n.msrc?"img":""),n.msrc&&(r.src=n.msrc),se(n,r),s.appendChild(r),n.placeholder=r),n.loading||Vt(n),o.allowProgressiveImg()&&(!St&&h.transform?Q.push({item:n,baseDiv:s,img:n.img,index:t,holder:e}):We(t,n,s,n.img,!0,!0))),St||t!==l?Se(n):(H=s.style,Qt(n,c||n.img)),e.el.innerHTML="",e.el.appendChild(s)):e.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});function wt(e,t,n){var s=document.createEvent("CustomEvent"),t={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};s.initCustomEvent("pswpTap",!0,!0,t),e.target.dispatchEvent(s)}$e={},we("Tap",{publicMethods:{initTap:function(){m("firstTouchStart",o.onTapStart),m("touchRelease",o.onTapRelease),m("destroy",function(){$e={},W=null})},onTapStart:function(e){1<e.length&&(clearTimeout(W),W=null)},onTapRelease:function(e,t){var n,s,o;!t||de||vt||be||(n=t,W&&(clearTimeout(W),W=null,s=n,o=$e,Math.abs(s.x-o.x)<Ht)&&Math.abs(s.y-o.y)<Ht?d("doubleTap",n):"mouse"===t.type?wt(e,t,"mouse"):"BUTTON"===e.target.tagName.toUpperCase()||i.hasClass(e.target,"pswp__single-tap")?wt(e,t):(O($e,n),W=setTimeout(function(){wt(e,t),W=null},300)))}}}),we("DesktopZoom",{publicMethods:{initDesktopZoom:function(){nt||(D?m("mouseUsed",function(){o.setupDesktopZoom()}):o.setupDesktopZoom(!0))},setupDesktopZoom:function(t){S={};var s,a,r="wheel mousewheel DOMMouseScroll";m("bindEvents",function(){i.bind(e,r,o.handleMouseWheel)}),m("unbindEvents",function(){S&&i.unbind(e,r,o.handleMouseWheel)}),o.mouseZoomedIn=!1;function n(){o.mouseZoomedIn&&(i.removeClass(e,"pswp--zoomed-in"),o.mouseZoomedIn=!1),u<1?i.addClass(e,"pswp--zoom-allowed"):i.removeClass(e,"pswp--zoom-allowed"),a()}a=function(){s&&(i.removeClass(e,"pswp--dragging"),s=!1)},m("resize",n),m("afterChange",n),m("pointerDown",function(){o.mouseZoomedIn&&(s=!0,i.addClass(e,"pswp--dragging"))}),m("pointerUp",a),t||n()},handleMouseWheel:function(e){if(u<=o.currItem.fitRatio)return a.modal&&(!a.closeOnScroll||be||T?e.preventDefault():ue&&2<Math.abs(e.deltaY)&&(Ot=!0,o.close())),!0;if(e.stopPropagation(),S.x=0,"deltaX"in e)1===e.deltaMode?(S.x=18*e.deltaX,S.y=18*e.deltaY):(S.x=e.deltaX,S.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(S.x=-.16*e.wheelDeltaX),S.y=e.wheelDeltaY?-.16*e.wheelDeltaY:-.16*e.wheelDelta;else{if(!("detail"in e))return;S.y=e.detail}rt(u,!0);var t=r.x-S.x,n=r.y-S.y;(a.modal||t<=c.min.x&&t>=c.max.x&&n<=c.min.y&&n>=c.max.y)&&e.preventDefault(),o.panTo(t,n)},toggleDesktopZoom:function(t){t=t||{x:v.x/2+ge.x,y:v.y/2+ge.y};var s=a.getDoubleTapZoom(!0,o.currItem),n=u===s;o.mouseZoomedIn=!n,o.zoomTo(n?o.currItem.initialZoomLevel:s,t,333),i[(n?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});function ln(){yt&&clearTimeout(yt),Ee&&clearTimeout(Ee)}function cn(){var e,n,s,i,o=at(),t={};if(!(o.length<5)){n=o.split("&");for(e=0;e<n.length;e++)!n[e]||(s=n[e].split("=")).length<2||(t[s[0]]=s[1]);if(a.galleryPIDs){for(i=t.pid,e=t.pid=0;e<U.length;e++)if(U[e].pid===i){t.pid=e;break}}else t.pid=parseInt(t.pid,10)-1;t.pid<0&&(t.pid=0)}return t}var yt,nn,Ee,qe,jt,en,w,ve,gt,ht,z,dt,Cn={history:!0,galleryUID:1},at=function(){return z.hash.substring(1)},it=function(){var e,t;Ee&&clearTimeout(Ee),be||T?Ee=setTimeout(it,500):(qe?clearTimeout(nn):qe=!0,t=l+1,(e=B(l)).hasOwnProperty("pid")&&(t=e.pid),e=w+"&gid="+a.galleryUID+"&pid="+t,ve||-1===z.hash.indexOf(e)&&(ht=!0),t=z.href.split("#")[0]+"#"+e,dt?"#"+e!==window.location.hash&&history[ve?"replaceState":"pushState"]("",document.title,t):ve?z.replace(t):z.hash=e,ve=!0,nn=setTimeout(function(){qe=!1},60))};we("History",{publicMethods:{initHistory:function(){var e,t;i.extend(a,Cn,!0),a.history&&(z=window.location,ve=gt=ht=!1,w=at(),dt="pushState"in history,-1<w.indexOf("gid=")&&(w=(w=w.split("&gid=")[0]).split("?gid=")[0]),m("afterChange",o.updateURL),m("unbindEvents",function(){i.unbind(window,"hashchange",o.onHashChange)}),e=function(){en=!0,gt||(ht?history.back():w?z.hash=w:dt?history.pushState("",document.title,z.pathname+z.search):z.hash=""),ln()},m("unbindEvents",function(){Ot&&e()}),m("destroy",function(){en||e()}),m("firstUpdate",function(){l=cn().pid}),-1<(t=w.indexOf("pid="))&&"&"===(w=w.substring(0,t)).slice(-1)&&(w=w.slice(0,-1)),setTimeout(function(){le&&i.bind(window,"hashchange",o.onHashChange)},40))},onHashChange:function(){return at()===w?(gt=!0,void o.close()):0[0]},updateURL:function(){ln(),jt||(ve?yt=setTimeout(it,800):it())}}}),i.extend(o,s)}}),(()=>{let n=window.matchMedia("(max-width: 767px)");var t,s=document.querySelector(".gh-head");let o=s.querySelector(".gh-head-menu"),e=o.querySelector(".nav");if(e){document.querySelector(".gh-head-logo");let a=e.innerHTML,i=(n.matches&&e.querySelectorAll("li").forEach(function(e,t){e.style.transitionDelay=.03*(t+1)+"s"}),function(){if(!n.matches){for(var s=[];e.offsetWidth+64>o.offsetWidth;){if(!e.lastElementChild)return;s.unshift(e.lastElementChild),e.lastElementChild.remove()}if(s.length){let n=document.createElement("button"),o=(n.setAttribute("class","nav-more-toggle"),n.setAttribute("aria-label","More"),n.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="currentColor"><path d="M21.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0zM13.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0zM5.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0z"></path></svg>',document.createElement("div"));o.setAttribute("class","gh-dropdown"),10<=s.length?(document.body.classList.add("is-dropdown-mega"),o.style.gridTemplateRows="repeat("+Math.ceil(s.length/2)+", 1fr)"):document.body.classList.remove("is-dropdown-mega"),s.forEac
1h(function(e){o.appendChild(e)}),n.appendChild(o),e.appendChild(n),document.body.classList.add("is-dropdown-loaded"),n.addEventListener("click",function(){document.body.classList.toggle("is-dropdown-open")}),t=function(e){!n.contains(e.target)&&document.body.classList.contains("is-dropdown-open")&&document.body.classList.remove("is-dropdown-open")},window.addEventListener("click",t)}else document.body.classList.add("is-dropdown-loaded")}});imagesLoaded(s,function(){i()}),window.addEventListener("resize",function(){setTimeout(function(){window.removeEventListener("click",t),e.innerHTML=a,i()},1)})}})(),((e,t)=>{var n,s,o,i,a,r,u,h;function m(){var i;404===this.status?(e.removeEventListener("scroll",l),e.removeEventListener("resize",d)):(this.response.querySelectorAll("article.post-card").forEach(function(e){h.appendChild(t.importNode(e,!0))}),(i=this.response.querySelector("link[rel=next]"))?r.href=i.href:(e.removeEventListener("scroll",l),e.removeEventListener("resize",d)),s=t.documentElement.scrollHeight,o=n=!1)}function f(){var t;o||(a+i<=s-u?n=!1:(o=!0,(t=new e.XMLHttpRequest).responseType="document",t.addEventListener("load",m),t.open("GET",r.href),t.send(null)))}function c(){n||e.requestAnimationFrame(f),n=!0}function l(){a=e.scrollY,c()}function d(){i=e.innerHeight,s=t.documentElement.scrollHeight,c()}t.documentElement.classList.contains("no-infinite-scroll")||(r=t.querySelector("link[rel=next]"))&&(h=t.querySelector(".post-feed"))&&(o=n=!(u=300),a=e.scrollY,i=e.innerHeight,s=t.documentElement.scrollHeight,e.addEventListener("scroll",l,{passive:!0}),e.addEventListener("resize",d),c())})(window,document),(()=>{let e=document.body,t=e.querySelector(".gh-burger");if(t){t.setAttribute("aria-expanded","false");let o=window.matchMedia("(max-width: 767px)"),s=document.documentElement,i=0;function n(){e.classList.contains("gh-head-open")&&(e.classList.remove("gh-head-open"),t.setAttribute("aria-expanded","false"),s.classList.remove("gh-navigation-open"),s.style.removeProperty("--gh-navigation-scroll-top"),window.scrollTo({top:i,behavior:"instant"}))}t.addEventListener("click",function(){e.classList.contains("gh-head-open")?n():o.matches&&(i=window.scrollY,s.style.setProperty("--gh-navigation-scroll-top",-i+"px"),s.classList.add("gh-navigation-open"),e.classList.add("gh-head-open"),t.setAttribute("aria-expanded","true"))}),o.addEventListener("change",function(){o.matches||n()})}})(),lightbox(".kg-image-card > .kg-image[width][height], .kg-gallery-image > img, .gh-feature-image")
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.