PageSourceSearch

https://www.thefantasycompass.com/assets/built/content.min.js?v=vX_7aATMmemtc8x9

js thefantasycompass.com collected 2026-10-04 08:04:23 UTC 43,375 bytes, 1 lines download raw bytes

1function lightbox(e){document.querySelectorAll(e).forEach(function(e){e.addEventListener("click",function(e){var t=e;t.preventDefault();for(var n,o=[],i=0,a=t.target.closest(".kg-card").previousElementSibling;a&&(a.classList.contains("kg-image-card")||a.classList.contains("kg-gallery-card"));){var r=[];a.querySelectorAll("img").forEach(function(e){r.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),i+=1}),a=a.previousElementSibling,o=r.concat(o)}t.target.classList.contains("kg-image")?o.push({src:t.target.getAttribute("src"),msrc:t.target.getAttribute("src"),w:t.target.getAttribute("width"),h:t.target.getAttribute("height"),el:t.target}):(n=!1,t.target.closest(".kg-gallery-card").querySelectorAll("img").forEach(function(e){o.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),n||e===t.target?n=!0:i+=1}));for(var l=t.target.closest(".kg-card").nextElementSibling;l&&(l.classList.contains("kg-image-card")||l.classList.contains("kg-gallery-card"));)l.querySelectorAll("img").forEach(function(e){o.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e})}),l=l.nextElementSibling;e=document.querySelectorAll(".pswp")[0];new PhotoSwipe(e,PhotoSwipeUI_Default,o,{bgOpacity:.9,closeOnScroll:!0,fullscreenEl:!1,history:!1,index:i,shareEl:!1,zoomEl:!1,getThumbBoundsFn:function(e){var e=o[e].el,t=window.pageYOffset||document.documentElement.scrollTop,e=e.getBoundingClientRect();return{x:e.left,y:e.top+t,w:e.width}}}).init()})})}((e,t)=>{"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()})(this,function(){return function(o,l){function e(e){if(E)return!0;e=e||window.event,T.timeToIdle&&T.mouseUsed&&!w&&r();for(var t,n,o=(e.target||e.srcElement).getAttribute("class")||"",i=0;i<L.length;i++)(t=L[i]).onTap&&-1<o.indexOf("pswp__"+t.name)&&(t.onTap(),n=!0);n&&(e.stopPropagation&&e.stopPropagation(),E=!0,e=l.features.isOldAndroid?600:30,setTimeout(function(){E=!1},e))}function n(){var e=1===T.getNumItemsFn();e!==I&&(O(d,"ui--one-slide",e),I=e)}function t(){O(g,"share-modal--hidden",M)}function i(){for(var e,t,n,o,i="",a=0;a<T.shareButtons.length;a++)e=T.shareButtons[a],t=T.getImageURLForShare(e),n=T.getPageURLForShare(e),o=T.getTextForShare(e),i+='<a href="'+e.url.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{text}}",encodeURIComponent(o))+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",T.parseShareButtonOut&&(i=T.parseShareButtonOut(e,i));g.children[0].innerHTML=i,g.children[0].onclick=N}function a(e){for(var t=0;t<T.closeElClasses.length;t++)if(l.hasClass(e,"pswp__"+T.closeElClasses[t]))return!0}function r(){clearTimeout(A),R=0,w&&D.setIdle(!1)}function s(e){(e=(e=e||window.event).relatedTarget||e.toElement)&&"HTML"!==e.nodeName||(clearTimeout(A),A=setTimeout(function(){D.setIdle(!0)},T.timeToIdleOutside))}function c(e){b!==e&&(O(v,"preloader--active",!e),b=e)}function P(e){var t,n=e.vGap;!o.likelyTouchDevice||T.mouseUsed||screen.width>T.fitControlsWidth?(t=T.barsSize,T.captionEl&&"auto"===t.bottom?(m||((m=l.createEl("pswp__caption pswp__caption--fake")).appendChild(l.createEl("pswp__caption__center")),d.insertBefore(m,p),l.addClass(d,"pswp__ui--fit")),T.addCaptionHTMLFn(e,m,!0)?(e=m.clientHeight,n.bottom=parseInt(e,10)||44):n.bottom=t.top):n.bottom="auto"===t.bottom?0:t.bottom,n.top=t.top):n.top=n.bottom=0}function Z(){function e(e){if(e)for(var t=e.length,n=0;n<t;n++){i=e[n],a=i.className;for(var o=0;o<L.length;o++)r=L[o],-1<a.indexOf("pswp__"+r.name)&&(T[r.option]?(l.removeClass(i,"pswp__element--disabled"),r.onInit&&r.onInit(i)):l.addClass(i,"pswp__element--disabled"))}}e(d.children);var i,a,r,t=l.getChildByClass(d,"pswp__top-bar");t&&e(t.children)}var u,d,p,m,f,h,g,y,w,x,v,b,C,I,T,E,S,A,D=this,k=!1,_=!0,M=!0,z={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 o.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return o.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},O=function(e,t,n){l[(n?"add":"remove")+"Class"](e,"pswp__"+t)},F=function(){return(M=!M)?(l.removeClass(g,"pswp__share-modal--fade-in"),setTimeout(function(){M&&t()},300)):(t(),setTimeout(function(){M||l.addClass(g,"pswp__share-modal--fade-in")},30)),M||i(),!1},N=function(e){var t=(e=e||window.event).target||e.srcElement;return o.shout("shareLinkClick",e,t),!(!t.href||!t.hasAttribute("download")&&(window.open(t.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)),M||F(),1))},R=0,L=[{name:"caption",option:"captionEl",onInit:function(e){p=e}},{name:"share-modal",option:"shareEl",onInit:function(e){g=e},onTap:function(){F()}},{name:"button--share",option:"shareEl",onInit:function(e){h=e},onTap:function(){F()}},{name:"button--zoom",option:"zoomEl",onTap:o.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){f=e}},{name:"button--close",option:"closeEl",onTap:o.close},{name:"button--arrow--left",option:"arrowEl",onTap:o.prev},{name:"button--arrow--right",option:"arrowEl",onTap:o.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){u.isFullscreen()?u.exit():u.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){v=e}}];D.init=function(){var t;l.extend(o.options,z,!0),T=o.options,d=l.getChildByClass(o.scrollWrap,"pswp__ui"),(x=o.listen)("onVerticalDrag",function(e){_&&e<.95?D.hideControls():!_&&.95<=e&&D.showControls()}),x("onPinchClose",function(e){_&&e<.9?(D.hideControls(),t=!0):t&&!_&&.9<e&&D.showControls()}),x("zoomGestureEnded",function(){(t=!1)&&!_&&D.showControls()}),x("beforeChange",D.update),x("doubleTap",function(e){var t=o.currItem.initialZoomLevel;o.getZoomLevel()!==t?o.zoomTo(t,e,333):o.zoomTo(T.getDoubleTapZoom(!1,o.currItem),e,333)}),x("preventDragEvent",function(e,t,n){var o=e.target||e.srcElement;o&&o.getAttribute("class")&&-1<e.type.indexOf("mouse")&&(0<o.getAttribute("class").indexOf("__caption")||/(SMALL|STRONG|EM)/i.test(o.tagName))&&(n.prevent=!1)}),x("bindEvents",function(){l.bind(d,"pswpTap click",e),l.bind(o.scrollWrap,"pswpTap",D.onGlobalTap),o.likelyTouchDevice||l.bind(o.scrollWrap,"mouseover",D.onMouseOver)}),x("unbindEvents",function(){M||F(),S&&clearInterval(S),l.unbind(document,"mouseout",s),l.unbind(document,"mousemove",r),l.unbind(d,"pswpTap click",e),l.unbind(o.scrollWrap,"pswpTap",D.onGlobalTap),l.unbind(o.scrollWrap,"mouseover",D.onMouseOver),u&&(l.unbind(document,u.eventK,D.updateFullscreen),u.isFullscreen()&&(T.hideAnimationDuration=0,u.exit()),u=null)}),x("destroy",function(){T.captionEl&&(m&&d.removeChild(m),l.removeClass(p,"pswp__caption--empty")),g&&(g.children[0].onclick=null),l.removeClass(d,"pswp__ui--over-close"),l.addClass(d,"pswp__ui--hidden"),D.setIdle(!1)}),T.showAnimationDuration||l.removeClass(d,"pswp__ui--hidden"),x("initialZoomIn",function(){T.showAnimationDuration&&l.removeClass(d,"pswp__ui--hidden")}),x("initialZoomOut",function(){l.addClass(d,"pswp__ui--hidden")}),x("parseVerticalMargin",P),Z(),T.shareEl&&h&&g&&(M=!0),n(),T.timeToIdle&&x("mouseUsed",function(){l.bind(document,"mousemove",r),l.bind(document,"mouseout",s),S=setInterval(function(){2===++R&&D.setIdle(!0)},T.timeToIdle/2)}),T.fullscreenEl&&!l.features.isOldAndroid&&((u=u||D.getFullscreenAPI())?(l.bind(document,u.eventK,D.updateFullscreen),D.updateFullscreen(),l.addClass(o.template,"pswp--supports-fs")):l.removeClass(o.template,"pswp--supports-fs")),T.preloaderEl&&(c(!0),x("beforeChange",function(){clearTimeout(C),C=setTimeout(function(){o.currItem&&o.currItem.loading?o.allowProgressiveImg()&&(!o.currItem.img||o.currItem.img.naturalWi
1dth)||c(!1):c(!0)},T.loadingIndicatorDelay)}),x("imageLoadComplete",function(e,t){o.currItem===t&&c(!0)}))},D.setIdle=function(e){O(d,"ui--idle",w=e)},D.update=function(){k=!(!_||!o.currItem||(D.updateIndexIndicator(),T.captionEl&&(T.addCaptionHTMLFn(o.currItem,p),O(p,"caption--empty",!o.currItem.title)),0)),M||F(),n()},D.updateFullscreen=function(e){e&&setTimeout(function(){o.setScrollOffset(0,l.getScrollY())},50),l[(u.isFullscreen()?"add":"remove")+"Class"](o.template,"pswp--fs")},D.updateIndexIndicator=function(){T.counterEl&&(f.innerHTML=o.getCurrentIndex()+1+T.indexIndicatorSep+T.getNumItemsFn())},D.onGlobalTap=function(e){var t=(e=e||window.event).target||e.srcElement;if(!E)if(e.detail&&"mouse"===e.detail.pointerType)a(t)?o.close():l.hasClass(t,"pswp__img")&&(1===o.getZoomLevel()&&o.getZoomLevel()<=o.currItem.fitRatio?T.clickToCloseNonZoomable&&o.close():o.toggleDesktopZoom(e.detail.releasePoint));else if(T.tapToToggleControls&&(_?D.hideControls():D.showControls()),T.tapToClose&&(l.hasClass(t,"pswp__img")||a(t)))return void o.close()},D.onMouseOver=function(e){e=(e=e||window.event).target||e.srcElement;O(d,"ui--over-close",a(e))},D.hideControls=function(){l.addClass(d,"pswp__ui--hidden"),_=!1},D.showControls=function(){_=!0,k||D.update(),l.removeClass(d,"pswp__ui--hidden")},D.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},D.getFullscreenAPI=function(){var e,t=document.documentElement,n="fullscreenchange";return t.requestFullscreen?e={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:n}:t.mozRequestFullScreen?e={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+n}:t.webkitRequestFullscreen?e={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+n}:t.msRequestFullscreen&&(e={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),e&&(e.enter=function(){return y=T.closeOnScroll,T.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?o.template[this.enterK]():void o.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return T.closeOnScroll=y,document[this.exitK]()},e.isFullscreen=function(){return document[this.elementK]}),e}}}),((e,t)=>{"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()})(this,function(){return function(p,Z,t,z){var m={features:null,bind:function(e,t,n,o){var i=(o?"remove":"add")+"EventListener";t=t.split(" ");for(var a=0;a<t.length;a++)t[a]&&e[i](t[a],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){t=document.createElement(t||"div");return e&&(t.className=e),t},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){m.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){m.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(m.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var o=e.length;o--;)if(e[o][n]===t)return o;return-1},extend:function(e,t,n){for(var o in t)if(t.hasOwnProperty(o)){if(n&&e.hasOwnProperty(o))continue;e[o]=t[o]}},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(m.features)return m.features;var e,t,n=m.createEl().style,o="",i={};i.oldIE=document.all&&!document.addEventListener,i.touch="ontouchstart"in window,window.requestAnimationFrame&&(i.raf=window.requestAnimationFrame,i.caf=window.cancelAnimationFrame),i.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,i.pointerEvent||(e=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&&(i.isOldIOSPhone=!0),t=(t=e.match(/Android\s([0-9\.]*)/))?t[1]:0,1<=(t=parseFloat(t))&&(t<4.4&&(i.isOldAndroid=!0),i.androidVersion=t),i.isMobileOpera=/opera mini|o
1pera mobi/i.test(e));for(var a,r,l,s=["transform","perspective","animationName"],c=["","webkit","Moz","ms","O"],u=0;u<4;u++){for(var o=c[u],d=0;d<3;d++)a=s[d],r=o+(o?a.charAt(0).toUpperCase()+a.slice(1):a),!i[a]&&r in n&&(i[a]=r);o&&!i.raf&&(o=o.toLowerCase(),i.raf=window[o+"RequestAnimationFrame"],i.raf)&&(i.caf=window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"])}return i.raf||(l=0,i.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-l)),o=window.setTimeout(function(){e(t+n)},n);return l=t+n,o},i.caf=function(e){clearTimeout(e)}),i.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,m.features=i}},f=(m.detectFeatures(),m.features.oldIE&&(m.bind=function(e,t,n,o){t=t.split(" ");for(var i,a=(o?"detach":"attach")+"Event",r=function(){n.handleEvent.call(n)},l=0;l<t.length;l++)if(i=t[l])if("object"==typeof n&&n.handleEvent){if(o){if(!n["oldIE"+i])return!1}else n["oldIE"+i]=r;e[a]("on"+i,n["oldIE"+i])}else e[a]("on"+i,n)}),this),N=25,h={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"};m.extend(h,z);function e(){return{x:0,y:0}}function U(e,t){m.extend(f,t.publicMethods),qe.push(e)}function K(e){var t=F();return t-1<e?e-t:e<0?t+e:e}function a(e,t){return Ve[e]||(Ve[e]=[]),Ve[e].push(t)}function B(e,t,n,o){o===f.currItem.initialZoomLevel?n[e]=f.currItem.initialPosition[e]:(n[e]=Qe(e,o),n[e]>t.min[e]?n[e]=t.min[e]:n[e]<t.max[e]&&(n[e]=t.max[e]))}function H(e){var t="";h.escKey&&27===e.keyCode?t="close":h.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,f[t]())}function W(e){e&&(ke||De||w||Ee)&&(e.preventDefault(),e.stopPropagation())}function q(){f.setScrollOffset(0,m.getScrollY())}function Y(e){var t;"mousedown"===e.type&&0<e.button||(Qt?e.preventDefault():Se&&"mousedown"===e.type||(Mt(e,!0)&&e.preventDefault(),I("pointerDown"),me&&((t=m.arraySearch(ht,e.pointerId,"id"))<0&&(t=ht.length),ht[t]={x:e.pageX,y:e.pageY,id:e.pointerId}),e=(t=Nt(e)).length,c=null,ct(),s&&1!==e||(s=Le=!0,m.bind(window,ee,f),Te=ze=Pe=Ee=Me=ke=Ae=De=!1,Re=null,I("firstTouchStart",t),A(Ke,x),Ue.x=Ue.y=0,A(M,t[0]),A(ft,M),gt.x=b.x*Be,yt=[{x:M.x,y:M.y}],Ce=be=T(),ot(y,!0),St(),At()),!u&&1<e&&!w&&!Me&&(ne=y,u=Ae=!(De=!1),Ue.y=Ue.x=0,A(Ke,x),A(k,t[0]),A(mt,t[1]),Ft(k,mt,It),Ct.x=Math.abs(It.x)-x.x,Ct.y=Math.abs(It.y)-x.y,Oe=Et(k,mt))))}function G(e){var t;e.preventDefault(),me&&-1<(t=m.arraySearch(ht,e.pointerId,"id"))&&((t=ht[t]).x=e.pageX,t.y=e.pageY),s&&(t=Nt(e),Re||ke||u?c=t:O.x!==b.x*Be?Re="h":(e=Math.abs(t[0].x-M.x)-Math.abs(t[0].y-M.y),Math.abs(e)>=pt&&(Re=0<e?"h":"v",c=t)))}function V(e){if(l.isOldAndroid){if(Se&&"mouseup"===e.type)return;-1<e.type.indexOf("touch")&&(clearTimeout(Se),Se=setTimeout(function(){Se=0},600))}var t;I("pointerUp"),Mt(e,!1)&&e.preventDefault(),me&&-1<(a=m.arraySearch(ht,e.pointerId,"id"))&&(t=ht.splice(a,1)[0],navigator.msPointerEnabled&&(t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type)||(t.type=e.pointerType||"mouse"));var n=(a=Nt(e)).length;if(2===(n="mouseup"===e.type?0:n))return!(c=null);1===n&&A(ft,a[0]),0!==n||Re||w||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),I("touchRelease",e,t));var o,i,a=-1;if(0===n&&(s=!1,m.unbind(window,ee,f),St(),u?a=0:-1!==bt&&(a=T()-bt)),bt
1=1===n?T():-1,e=-1!==a&&a<150?"zoom":"swipe",u&&n<2&&(u=!1,1===n&&(e="zoomPointerUp"),I("zoomGestureEnded")),c=null,ke||De||w||Ee)if(ct(),(Ie=Ie||Bt()).calculateSwipeSpeed("x"),Ee)Lt()<h.verticalDragRange?f.close():(o=x.y,i=Ze,ut("verticalDrag",0,1,300,m.easing.cubic.out,function(e){x.y=(f.currItem.initialPosition.y-o)*e+o,E((1-i)*e+i),S()}),I("onVerticalDrag",1));else{if((Me||w)&&0===n){if(Wt(e,Ie))return;e="zoomPointerUp"}if(!w)return"swipe"!==e?void Yt():void(!Me&&y>f.currItem.fitRatio&&Ht(Ie))}}var X,j,$,g,J,Q,ee,te,o,y,ne,oe,ie,ae,re,r,le,se,ce,ue,de,pe,me,i,fe,he,ge,ye,we,xe,l,ve,be,Ce,Ie,Te,Ee,Se,s,Ae,De,ke,_e,Me,c,u,Oe,d,Fe,w,Re,Le,Pe,Ze,ze,Ne,Ue=e(),Ke=e(),x=e(),v={},Be=0,He={},b=e(),C=0,We=!0,qe=[],Ye={},Ge=!1,Ve={},I=function(e){var t=Ve[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var o=0;o<t.length;o++)t[o].apply(f,n)}},T=function(){return(new Date).getTime()},E=function(e){Ze=e,f.bg.style.opacity=e*h.bgOpacity},Xe=function(e,t,n,o,i){(!Ge||i&&i!==f.currItem)&&(o/=(i||f.currItem).fitRatio),e[pe]=oe+t+"px, "+n+"px"+ie+" scale("+o+")"},S=function(e){Fe&&(e&&(y>f.currItem.fitRatio?Ge||(cn(f.currItem,!1,!0),Ge=!0):Ge&&(cn(f.currItem),Ge=!1)),Xe(Fe,x.x,x.y,y))},je=function(e){e.container&&Xe(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},$e=function(e,t){t[pe]=oe+e+"px, 0px"+ie},Je=function(e,t){var n;!h.loop&&t&&(t=g+(b.x*Be-e)/b.x,n=Math.round(e-O.x),t<0&&0<n||t>=F()-1&&n<0)&&(e=O.x+n*h.mainScrollEndFriction),O.x=e,$e(e,J)},Qe=function(e,t){var n=Ct[e]-He[e];return Ke[e]+Ue[e]+n-t/ne*n},A=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},et=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},tt=null,nt=function(){tt&&(m.unbind(document,"mousemove",nt),m.addClass(p,"pswp--has_mouse"),h.mouseUsed=!0,I("mouseUsed")),tt=setTimeout(function(){tt=null},100)},ot=function(e,t){e=ln(f.currItem,v,e);return t&&(d=e),e},it=function(e){return(e=e||f.currItem).initialZoomLevel},at=function(e){return 0<(e=e||f.currItem).w?h.maxSpreadZoom:1},D={},rt=0,lt=function(e){D[e]&&(D[e].raf&&he(D[e].raf),rt--,delete D[e])},st=function(e){D[e]&&lt(e),D[e]||(rt++,D[e]={})},ct=function(){for(var e in D)D.hasOwnProperty(e)&&lt(e)},ut=function(e,t,n,o,i,a,r){function l(){D[e]&&(s=T()-c,o<=s?(lt(e),a(n),r&&r()):(a((n-t)*i(s/o)+t),D[e].raf=fe(l)))}var s,c=T();st(e);l()},z={shout:I,listen:a,viewportSize:v,options:h,isMainScrollAnimating:function(){return w},getZoomLevel:function(){return y},getCurrentIndex:function(){return g},isDragging:function(){return s},isZooming:function(){return u},setScrollOffset:function(e,t){He.x=e,xe=He.y=t,I("updateScrollOffset",He)},applyZoomPan:function(e,t,n,o){x.x=t,x.y=n,y=e,S(o)},init:function(){if(!X&&!j){f.framework=m,f.template=p,f.bg=m.getChildByClass(p,"pswp__bg"),ge=p.className,X=!0,l=m.detectFeatures(),fe=l.raf,he=l.caf,pe=l.transform,we=l.oldIE,f.scrollWrap=m.getChildByClass(p,"pswp__scroll-wrap"),f.container=m.getChildByClass(f.scrollWrap,"pswp__container"),J=f.container.style,f.itemHolders=r=[{el:f.container.children[0],wrap:0,index:-1},{el:f.container.children[1],wrap:0,index:-1},{el:f.container.children[2],wrap:0,index:-1}],r[0].el.style.display=r[2].el.style.display="none",pe?(t=l.perspective&&!i,oe="translate"+(t?"3d(":"("),ie=l.perspective?", 0px)":")"):(pe="left",m.addClass(p,"pswp--ie"),$e=function(e,t){t.left=e+"px"},je=function(e){var t=1<e.fitRatio?1:e.fitRatio,n=e.container.style,o=t*e.h;n.width=t*e.w+"px",n.height=o+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},S=function(){var e,t,n,o;Fe&&(e=Fe,o=(n=1<(t=f.currItem).fitRatio?1:t.fitRatio)*t.h,e.width=n*t.w+"px",e.height=o+"px",e.left=x.x+"px",e.top=x.y+"px")}),o={resize:f.updateSize,orientationchange:function(){clearTimeout(ve),ve=setTimeout(function(){v.x!==f.scrollWrap.clientWidth&&f.updateSize()},500)},scroll:q,keydown:H,click:W};var e,t=l.isOldIOSPhone||l.isOldAndroid||l.isMobileOpera;for(l.animationName&&l.transform&&!t||(h.showAnimationDuration=h.hideAnimationDuration=0),e=0;e<qe.length;e++)f["init"+qe[e]]();Z&&(f.ui=new Z(f,m)).init(),I("firstUpdate"),g=g||h.index||0,(isNaN(g)||g<0||g>=F())&&(g=0),f.currItem=en(g),(l.isOldIOSPhone||l.isOldAndroid)&&(We=!1),p.setAttribute("aria-hidden","false"),h.modal&&(We?p.style.position="fixed":(p.style.position="absolute",p.style.top=m.getScrollY()+"px")),void 0===xe&&(I("initialLayout"),xe=ye=m.getScrollY());var n="pswp--open ";for(h.mainClass&&(n+=h.mainClass+" "),h.showHideOpacity&&(n+="pswp--animate_opacity "),n=(n=(n+=i?"pswp--touch":"pswp--notouch")+(l.animationName?" pswp--css_animation":""))+(l.svg?" pswp--svg":""),m.addClass(p,n),f.updateSize(),Q=-1,C=null,e=0;e<3;e++)$e((e+Q)*b.x,r[e].el.style);we||m.bind(f.scrollWrap,te,f),a("initialZoomInEnd",function(){f.setContent(r[0],g-1),f.setContent(r[2],g+1),r[0].el.style.display=r[2].el.style.display="block",h.focus&&p.focus(),m.bind(document,"keydown",f),l.transform&&m.bind(f.scrollWrap,"click",f),h.mouseUsed||m.bind(document,"mousemove",nt),m.bind(window,"resize scroll orientationchange",f),I("bindEvents")}),f.setContent(r[1],g),f.updateCurrItem(),I("afterInit"),We||(ae=setInterval(function(){rt||s||u||y!==f.currItem.initialZoomLevel||f.updateSize()},1e3)),m.addClass(p,"pswp--visible")}var t},close:function(){X&&(j=!(X=!1),I("close"),m.unbind(window,"resize scroll orientationchange",f),m.unbind(window,"scroll",o.scroll),m.unbind(document,"keydown",f),m.unbind(document,"mousemove",nt),l.transform&&m.unbind(f.scrollWrap,"click",f),s&&m.unbind(window,ee,f),clearTimeout(ve),I("unbindEvents"),tn(f.currItem,
1null,!0,f.destroy))},destroy:function(){I("destroy"),jt&&clearTimeout(jt),p.setAttribute("aria-hidden","true"),p.className=ge,ae&&clearInterval(ae),m.unbind(f.scrollWrap,te,f),m.unbind(window,"scroll",f),St(),ct(),Ve=null},panTo:function(e,t,n){n||(e>d.min.x?e=d.min.x:e<d.max.x&&(e=d.max.x),t>d.min.y?t=d.min.y:t<d.max.y&&(t=d.max.y)),x.x=e,x.y=t,S()},handleEvent:function(e){e=e||window.event,o[e.type]&&o[e.type](e)},goTo:function(e){var t=(e=K(e))-g;C=t,g=e,f.currItem=en(g),Be-=t,Je(b.x*Be),ct(),w=!1,f.updateCurrItem()},next:function(){f.goTo(g+1)},prev:function(){f.goTo(g-1)},updateCurrZoomItem:function(e){var t;e&&I("beforeChange",0),Fe=r[1].el.children.length&&(t=r[1].el.children[0],m.hasClass(t,"pswp__zoom-wrap"))?t.style:null,d=f.currItem.bounds,ne=y=f.currItem.initialZoomLevel,x.x=d.center.x,x.y=d.center.y,e&&I("afterChange")},invalidateCurrItems:function(){re=!0;for(var e=0;e<3;e++)r[e].item&&(r[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==C){var t,n=Math.abs(C);if(!(e&&n<2)){f.currItem=en(g),Ge=!1,I("beforeChange",C),3<=n&&(Q+=C+(0<C?-3:3),n=3);for(var o=0;o<n;o++)0<C?(t=r.shift(),r[2]=t,$e((++Q+2)*b.x,t.el.style),f.setContent(t,g-n+o+1+1)):(t=r.pop(),r.unshift(t),$e(--Q*b.x,t.el.style),f.setContent(t,g+n-o-1-1));Fe&&1===Math.abs(C)&&(e=en(le)).initialZoomLevel!==y&&(ln(e,v),cn(e),je(e)),C=0,f.updateCurrZoomItem(),le=g,I("afterChange")}}},updateSize:function(e){if(!We&&h.modal){var t=m.getScrollY();if(xe!==t&&(p.style.top=t+"px",xe=t),!e&&Ye.x===window.innerWidth&&Ye.y===window.innerHeight)return;Ye.x=window.innerWidth,Ye.y=window.innerHeight,p.style.height=Ye.y+"px"}if(v.x=f.scrollWrap.clientWidth,v.y=f.scrollWrap.clientHeight,q(),b.x=v.x+Math.round(v.x*h.spacing),b.y=v.y,Je(b.x*Be),I("beforeResize"),void 0!==Q){for(var n,o,i,a=0;a<3;a++)n=r[a],$e((a+Q)*b.x,n.el.style),i=g+a-1,h.loop&&2<F()&&(i=K(i)),(o=en(i))&&(re||o.needsUpdate||!o.bounds)?(f.cleanSlide(o),f.setContent(n,i),1===a&&(f.currItem=o,f.updateCurrZoomItem(!0)),o.needsUpdate=!1):-1===n.index&&0<=i&&f.setContent(n,i),o&&o.container&&(ln(o,v),cn(o),je(o));re=!1}ne=y=f.currItem.initialZoomLevel,(d=f.currItem.bounds)&&(x.x=d.center.x,x.y=d.center.y,S(!0)),I("resize")},zoomTo:function(t,e,n,o,i){e&&(ne=y,Ct.x=Math.abs(e.x)-x.x,Ct.y=Math.abs(e.y)-x.y,A(Ke,x));function a(e){1===e?(y=t,x.x=r.x,x.y=r.y):(y=(t-l)*e+l,x.x=(r.x-s.x)*e+s.x,x.y=(r.y-s.y)*e+s.y),i&&i(e),S(1===e)}var e=ot(t,!1),r={},l=(B("x",e,r,t),B("y",e,r,t),y),s={x:x.x,y:x.y};et(r);n?ut("customZoomTo",0,1,n,o||m.easing.sine.inOut,a):a(1)}},dt=30,pt=10,k={},mt={},_={},M={},ft={},ht=[],gt={},yt=[],wt={},xt=0,vt=e(),bt=0,O=e(),Ct=e(),It=e(),Tt=function(e,t){return e.x===t.x&&e.y===t.y},Et=function(e,t){return wt.x=Math.abs(e.x-t.x),wt.y=Math.abs(e.y-t.y),Math.sqrt(wt.x*wt.x+wt.y*wt.y)},St=function(){_e&&(he(_e),_e=null)},At=function(){s&&(_e=fe(At),Kt())},Dt=function(){return!("fit"===h.scaleMode&&y===f.currItem.initialZoomLevel)},kt=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&-1<e.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(t(e)?e:kt(e.parentNode,t))},_t={},Mt=function(e,t){return _t.prevent=!kt(e.target,h.isClickableElement),I("preventDragEvent",e,t,_t),_t.prevent},Ot=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},Ft=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},Rt=function(e,t,n){var o;50<e-Ce&&((o=2<yt.length?yt.shift():{}).x=t,o.y=n,yt.push(o),Ce=e)},Lt=function(){var e=x.y-f.currItem.initialPosition.y;return 1-Math.abs(e/(v.y/2))},Pt={},Zt={},zt=[],Nt=function(e){for(;0<zt.length;)zt.pop();return me?(Ne=0,ht.forEach(function(e){0===Ne?zt[0]=e:1===Ne&&(zt[1]=e),Ne++})):-1<e.type.indexOf("touch")?e.touches&&0<e.touches.length&&(zt[0]=Ot(e.touches[0],Pt),1<e.touches.length)&&(zt[1]=Ot(e.touches[1],Zt)):(Pt.x=e.pageX,Pt.y=e.pageY,Pt.id="",zt[0]=Pt),zt},Ut=function(e,t){var n,o,i,a=x[e]+t[e],r=O.x+t.x,l=O.x-gt.x,s=a>d.min[e]||a<d.max[e]?h.panEndFriction:1,a=x[e]+t[e]*s;return!h.allowPanToNext&&y!==f.currItem.initialZoomLevel||(Fe?"h"!==Re||"x"!==e||De||(0<t[e]?(a>d.min[e]&&(s=h.panEndFriction,d.min[e],n=d.min[e]-Ke[e]),(n<=0||l<0)&&1<F()?(i=r,l<0&&r>gt.x&&(i=gt.x)):d.min.x!==d.max.x&&(o=a)):(a<d.max[e]&&(s=h.panEndFriction,d.max[e],n=Ke[e]-d.max[e]),(n<=0||0<l)&&1<F()?(i=r,0<l&&r<gt.x&&(i=gt.x)):d.min.x!==d.max.x&&(o=a))):i=r,"x"!==e)?void(w||Me||y>f.currItem.fitRatio&&(x[e]+=t[e]*s)):(void 0!==i&&(Je(i,!0),Me=i!==gt.x),d.min.x!==d.max.x&&(void 0!==o?x.x=o:Me||(x.x+=t.x*s)),void 0!==i)},Kt=function(){var e,t,n,o,i,a;c&&0!==(e=c.length)&&(A(k,c[0]),_.x=k.x-M.x,_.y=k.y-M.y,u&&1<e?(M.x=k.x,M.y=k.y,!_.x&&!_.y&&Tt(c[1],mt)||(A(mt,c[1]),De||(De=!0,I("zoomGestureStarted")),e=Et(k,mt),(t=qt(e))>f.currItem.initialZoomLevel+f.currItem.initialZoomLevel/15&&(ze=!0),n=1,o=it(),i=at(),t<o?h.pinchToClose&&!ze&&ne<=f.currItem.initialZoomLevel?(E(a=1-(o-t)/(o/1.2)),I("onPinchClose",a),Pe=!0):t=o-(n=1<(n=(o-t)/o)?1:n)*(o/3):i<t&&(t=i+(n=1<(n=(t-i)/(6*o))?1:n)*o),n<0&&(n=0),Ft(k,mt,vt),Ue.x+=vt.x-It.x,Ue.y+=vt.y-It.y,A(It,vt),x.x=Qe("x",t),x.y=Qe("y",t),Te=y<t,y=t,S())):Re&&(Le&&(Le=!1,Math.abs(_.x)>=pt&&(_.x-=c[0].x-ft.x),Math.abs(_.y)>=pt)&&(_.y-=c[0].y-ft.y),M.x=k.x,M.y=k.y,0===_.x&&0===_.y||("v"===Re&&h.closeOnVerticalDrag&&!Dt()?(Ue.y+=_.y,x.y+=_.y,a=Lt(),Ee=!0,I("onVerticalDrag",a),E(a),S()):(Rt(T(),k.x,k.y),ke=!0,d=f.currItem.bounds,Ut("x",_)||(Ut("y",_),et(x),S())))))},Bt=function(){var t,n,o={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{}
1,backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){n=(1<yt.length?(t=T()-Ce+50,yt[yt.length-2]):(t=T()-be,ft))[e],o.lastFlickOffset[e]=M[e]-n,o.lastFlickDist[e]=Math.abs(o.lastFlickOffset[e]),20<o.lastFlickDist[e]?o.lastFlickSpeed[e]=o.lastFlickOffset[e]/t:o.lastFlickSpeed[e]=0,Math.abs(o.lastFlickSpeed[e])<.1&&(o.lastFlickSpeed[e]=0),o.slowDownRatio[e]=.95,o.slowDownRatioReverse[e]=1-o.slowDownRatio[e],o.speedDecelerationRatio[e]=1},calculateOverBoundsAnimOffset:function(t,e){o.backAnimStarted[t]||(x[t]>d.min[t]?o.backAnimDestination[t]=d.min[t]:x[t]<d.max[t]&&(o.backAnimDestination[t]=d.max[t]),void 0!==o.backAnimDestination[t]&&(o.slowDownRatio[t]=.7,o.slowDownRatioReverse[t]=1-o.slowDownRatio[t],o.speedDecelerationRatioAbs[t]<.05)&&(o.lastFlickSpeed[t]=0,o.backAnimStarted[t]=!0,ut("bounceZoomPan"+t,x[t],o.backAnimDestination[t],e||300,m.easing.sine.out,function(e){x[t]=e,S()})))},calculateAnimOffset:function(e){o.backAnimStarted[e]||(o.speedDecelerationRatio[e]=o.speedDecelerationRatio[e]*(o.slowDownRatio[e]+o.slowDownRatioReverse[e]-o.slowDownRatioReverse[e]*o.timeDiff/10),o.speedDecelerationRatioAbs[e]=Math.abs(o.lastFlickSpeed[e]*o.speedDecelerationRatio[e]),o.distanceOffset[e]=o.lastFlickSpeed[e]*o.speedDecelerationRatio[e]*o.timeDiff,x[e]+=o.distanceOffset[e])},panAnimLoop:function(){D.zoomPan&&(D.zoomPan.raf=fe(o.panAnimLoop),o.now=T(),o.timeDiff=o.now-o.lastNow,o.lastNow=o.now,o.calculateAnimOffset("x"),o.calculateAnimOffset("y"),S(),o.calculateOverBoundsAnimOffset("x"),o.calculateOverBoundsAnimOffset("y"),o.speedDecelerationRatioAbs.x<.05)&&o.speedDecelerationRatioAbs.y<.05&&(x.x=Math.round(x.x),x.y=Math.round(x.y),S(),lt("zoomPan"))}};return o},Ht=function(e){return e.calculateSwipeSpeed("y"),d=f.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):(st("zoomPan"),e.lastNow=T(),void e.panAnimLoop())},Wt=function(e,t){var n,o,i;w||(xt=g),"swipe"===e&&(e=M.x-ft.x,a=t.lastFlickDist.x<10,dt<e&&(a||20<t.lastFlickOffset.x)?o=-1:e<-dt&&(a||t.lastFlickOffset.x<-20)&&(o=1)),o&&((g+=o)<0?(g=h.loop?F()-1:0,i=!0):g>=F()&&(g=h.loop?0:F()-1,i=!0),i&&!h.loop||(C+=o,Be-=o,n=!0));var e=b.x*Be,a=Math.abs(e-O.x),r=n||e>O.x==0<t.lastFlickSpeed.x?(r=0<Math.abs(t.lastFlickSpeed.x)?a/Math.abs(t.lastFlickSpeed.x):333,r=Math.min(r,400),Math.max(r,250)):333;return xt===g&&(n=!1),w=!0,I("mainScrollAnimStart"),ut("mainScroll",O.x,e,r,m.easing.cubic.out,Je,function(){ct(),w=!1,xt=-1,!n&&xt===g||f.updateCurrItem(),I("mainScrollAnimComplete")}),n&&f.updateCurrItem(!0),n},qt=function(e){return 1/Oe*e*ne},Yt=function(){var e=y,t=it(),n=at();y<t?e=t:n<y&&(e=n);var o,i=Ze;return Pe&&!Te&&!ze&&y<t?f.close():(Pe&&(o=function(e){E((1-i)*e+i)}),f.zoomTo(e,0,200,m.easing.cubic.out,o)),!0};U("Gestures",{publicMethods:{initGestures:function(){function e(e,t,n,o,i){se=e+t,ce=e+n,ue=e+o,de=i?e+i:""}(me=l.pointerEvent)&&l.touch&&(l.touch=!1),me?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):l.touch?(e("touch","start","move","end","cancel"),i=!0):e("mouse","down","move","up"),ee=ce+" "+ue+" "+de,te=se,me&&!i&&(i=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),f.likelyTouchDevice=i,o[se]=Y,o[ce]=G,o[ue]=V,de&&(o[de]=o[ue]),l.touch&&(te+=" mousedown",ee+=" mousemove mouseup",o.mousedown=o[se],o.mousemove=o[ce],o.mouseup=o[ue]),i||(h.allowPanToNext=!1)}}});function Gt(e){function t(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,n.onload=n.onerror=null,n=null}e.loading=!0,e.loaded=!1;var n=e.img=m.createEl("pswp__img","img");n.onload=t,n.onerror=function(){e.loadError=!0,t()},n.src=e.src}function Vt(e,t){return e.src&&e.loadError&&e.container&&(t&&(e.container.innerHTML=""),e.container.innerHTML=h.errorMsg.replace("%url%",e.
1src),1)}function Xt(){if(nn.length){for(var e,t=0;t<nn.length;t++)(e=nn[t]).holder.index===e.index&&sn(e.index,e.item,e.baseDiv,e.img,!1,e.clearPlaceholder);nn=[]}}var jt,$t,Jt,Qt,en,F,tn=function(a,e,r,t){function l(){lt("initialZoom"),r?(f.template.removeAttribute("style"),f.bg.removeAttribute("style")):(E(1),e&&(e.style.display="block"),m.addClass(p,"pswp--animated-in"),I("initialZoom"+(r?"OutEnd":"InEnd"))),t&&t(),Qt=!1}jt&&clearTimeout(jt),Jt=Qt=!0,a.initialLayout?(s=a.initialLayout,a.initialLayout=null):s=h.getThumbBoundsFn&&h.getThumbBoundsFn(g);var s,c,u,d=r?h.hideAnimationDuration:h.showAnimationDuration;d&&s&&void 0!==s.x?(c=$,u=!f.currItem.src||f.currItem.loadError||h.showHideOpacity,a.miniImg&&(a.miniImg.style.webkitBackfaceVisibility="hidden"),r||(y=s.w/a.w,x.x=s.x,x.y=s.y-ye,f[u?"template":"bg"].style.opacity=.001,S()),st("initialZoom"),r&&!c&&m.removeClass(p,"pswp--animated-in"),u&&(r?m[(c?"remove":"add")+"Class"](p,"pswp--animate_opacity"):setTimeout(function(){m.addClass(p,"pswp--animate_opacity")},30)),jt=setTimeout(function(){var t,n,o,i,e;I("initialZoom"+(r?"Out":"In")),r?(t=s.w/a.w,n={x:x.x,y:x.y},o=y,i=Ze,e=function(e){1===e?(y=t,x.x=s.x,x.y=s.y-xe):(y=(t-o)*e+o,x.x=(s.x-n.x)*e+n.x,x.y=(s.y-xe-n.y)*e+n.y),S(),u?p.style.opacity=1-e:E(i-e*i)},c?ut("initialZoom",0,1,d,m.easing.cubic.out,e,l):(e(1),jt=setTimeout(l,d+20))):(y=a.initialZoomLevel,A(x,a.initialPosition),S(),E(1),u?p.style.opacity=1:E(1),jt=setTimeout(l,d+20))},r?25:90)):(I("initialZoom"+(r?"Out":"In")),y=a.initialZoomLevel,A(x,a.initialPosition),S(),p.style.opacity=r?0:1,E(1),d?setTimeout(function(){l()},d):l())},R={},nn=[],on={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 $t.length}},an=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},rn=function(e,t,n){var o=e.bounds;o.center.x=Math.round((R.x-t)/2),o.center.y=Math.round((R.y-n)/2)+e.vGap.top,o.max.x=t>R.x?Math.round(R.x-t):o.center.x,o.max.y=n>R.y?Math.round(R.y-n)+e.vGap.top:o.center.y,o.min.x=t>R.x?0:o.center.x,o.min.y=n>R.y?e.vGap.top:o.center.y},ln=function(e,t,n){var o,i;return e.src&&!e.loadError?((o=!n)&&(e.vGap||(e.vGap={top:0,bottom:0}),I("parseVerticalMargin",e)),R.x=t.x,R.y=t.y-e.vGap.top-e.vGap.bottom,o&&(t=R.x/e.w,i=R.y/e.h,e.fitRatio=t<i?t:i,"orig"===(t=h.scaleMode)?n=1:"fit"===t&&(n=e.fitRatio),e.initialZoomLevel=n=1<n?1:n,e.bounds||(e.bounds=an())),n?(rn(e,e.w*n,e.h*n),o&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):void 0):(e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=an(),e.initialPosition=e.bounds.center,e.bounds)},sn=function(e,t,n,o,i,a){t.loadError||o&&(t.imageAppended=!0,cn(t,o,t===f.currItem&&Ge),n.appendChild(o),a)&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500)},cn=function(e,t,n){var o;e.src&&(t=t||e.container.lastChild,o=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=o+"px",e.placeholder.style.height=n+"px"),t.style.width=o+"px",t.style.height=n+"px")};U("Controller",{publicMethods:{lazyLoadItem:function(e){e=K(e);var t=en(e);t&&(!t.loaded&&!t.loading||re)&&(I("gettingData",e,t),t.src)&&Gt(t)},initController:function(){m.extend(h,on,!0),f.items=$t=t,en=f.getItemAt,F=h.getNumItemsFn,h.loop,F()<3&&(h.loop=!1),a("beforeChange",function(e){for(var t=h.preload,n=null===e||0<=e,o=Math.min(t[0],F()),i=Math.min(t[1],F()),a=1;a<=(n?i:o);a++)f.lazyLoadItem(g+a);for(a=1;a<=(n?o:i);a++)f.lazyLoadItem(g-a)}),a("initialLayout",function(){f.currItem.initialLayout=h.getThumbBoundsFn&&h.getThumbBoundsFn(g)}),a("mainScrollAnimComplete",Xt),a("initialZoomInEnd",Xt),a("destroy",function(){for(var e,t=0;t<$t.length;t++)(e=$t[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);nn=null})},getItemAt:function(e){return 0<=e&&void 0!==$t[e]&&$t[e]},allowProgressiveImg:function(){return h.forceProgressiveLoading||!i||h.mou
1seUsed||1200<screen.width},setContent:function(t,n){h.loop&&(n=K(n));var e=f.getItemAt(t.index);e&&(e.container=null);var o,i,a,e=f.getItemAt(n);e?(I("gettingData",n,e),t.index=n,i=(t.item=e).container=m.createEl("pswp__zoom-wrap"),!e.src&&e.html&&(e.html.tagName?i.appendChild(e.html):i.innerHTML=e.html),Vt(e),ln(e,v),!e.src||e.loadError||e.loaded?e.src&&!e.loadError&&((o=m.createEl("pswp__img","img")).style.opacity=1,o.src=e.src,cn(e,o),sn(n,e,i,o,!0)):(e.loadComplete=function(e){if(X){if(t&&t.index===n){if(Vt(e,!0))return e.loadComplete=e.img=null,ln(e,v),je(e),void(t.index===g&&f.updateCurrZoomItem());e.imageAppended?!Qt&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null):l.transform&&(w||Qt)?nn.push({item:e,baseDiv:i,img:e.img,index:n,holder:t,clearPlaceholder:!0}):sn(n,e,i,e.img,w||Qt,!0)}e.loadComplete=null,e.img=null,I("imageLoadComplete",n,e)}},m.features.transform&&(a="pswp__img pswp__img--placeholder",a+=e.msrc?"":" pswp__img--placeholder--blank",a=m.createEl(a,e.msrc?"img":""),e.msrc&&(a.src=e.msrc),cn(e,a),i.appendChild(a),e.placeholder=a),e.loading||Gt(e),f.allowProgressiveImg()&&(!Jt&&l.transform?nn.push({item:e,baseDiv:i,img:e.img,index:n,holder:t}):sn(n,e,i,e.img,!0,!0))),Jt||n!==g?je(e):(Fe=i.style,tn(e,o||e.img)),t.el.innerHTML="",t.el.appendChild(i)):t.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});function un(e,t,n){var o=document.createEvent("CustomEvent"),t={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};o.initCustomEvent("pswpTap",!0,!0,t),e.target.dispatchEvent(o)}var dn,L,pn={};U("Tap",{publicMethods:{initTap:function(){a("firstTouchStart",f.onTapStart),a("touchRelease",f.onTapRelease),a("destroy",function(){pn={},dn=null})},onTapStart:function(e){1<e.length&&(clearTimeout(dn),dn=null)},onTapRelease:function(e,t){var n,o,i;!t||ke||Ae||rt||(n=t,dn&&(clearTimeout(dn),dn=null,o=n,i=pn,Math.abs(o.x-i.x)<N)&&Math.abs(o.y-i.y)<N?I("doubleTap",n):"mouse"===t.type?un(e,t,"mouse"):"BUTTON"===e.target.tagName.toUpperCase()||m.hasClass(e.target,"pswp__single-tap")?un(e,t):(A(pn,n),dn=setTimeout(function(){un(e,t),dn=null},300)))}}}),U("DesktopZoom",{publicMethods:{initDesktopZoom:function(){we||(i?a("mouseUsed",function(){f.setupDesktopZoom()}):f.setupDesktopZoom(!0))},setupDesktopZoom:function(e){L={};var t="wheel mousewheel DOMMouseScroll";a("bindEvents",function(){m.bind(p,t,f.handleMouseWheel)}),a("unbindEvents",function(){L&&m.unbind(p,t,f.handleMouseWheel)}),f.mouseZoomedIn=!1;function n(){f.mouseZoomedIn&&(m.removeClass(p,"pswp--zoomed-in"),f.mouseZoomedIn=!1),y<1?m.addClass(p,"pswp--zoom-allowed"):m.removeClass(p,"pswp--zoom-allowed"),i()}var o,i=function(){o&&(m.removeClass(p,"pswp--dragging"),o=!1)};a("resize",n),a("afterChange",n),a("pointerDown",function(){f.mouseZoomedIn&&(o=!0,m.addClass(p,"pswp--dragging"))}),a("pointerUp",i),e||n()},handleMouseWheel:function(e){if(y<=f.currItem.fitRatio)return h.modal&&(!h.closeOnScroll||rt||s?e.preventDefault():pe&&2<Math.abs(e.deltaY)&&($=!0,f.close())),!0;if(e.stopPropagation(),L.x=0,"deltaX"in e)1===e.deltaMode?(L.x=18*e.deltaX,L.y=18*e.deltaY):(L.x=e.deltaX,L.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(L.x=-.16*e.wheelDeltaX),L.y=e.wheelDeltaY?-.16*e.wheelDeltaY:-.16*e.wheelDelta;else{if(!("detail"in e))return;L.y=e.detail}ot(y,!0);var t=x.x-L.x,n=x.y-L.y;(h.modal||t<=d.min.x&&t>=d.max.x&&n<=d.min.y&&n>=d.max.y)&&e.preventDefault(),f.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:v.x/2+He.x,y:v.y/2+He.y};var t=h.getDoubleTapZoom(!0,f.currItem),n=y===t;f.mouseZoomedIn=!n,f.zoomTo(n?f.currItem.initialZoomLevel:t,e,333),m[(n?"remove":"add")+"Class"](p,"pswp--zoomed-in")}}});function mn(){hn&&clearTimeout(hn),yn&&clearTimeout(yn)}function fn(){var e=Sn(),t={};if(!(e.length<5)){var n,o=e.split("&");for(a=0;a<o.length;a++)!o[a]||(n=o[a].split("=")).length<2||(t[n[0]]=n[1]);if(h.galleryPIDs){for(var i=t.pid,a=t.pid=0;a<$t.length;a++)if($t[a].pid===i){t.pid=a;break}}else t.pid=parseInt(t.pid,10)-1;t.pid<0&&(t.pid=0)}return t}var hn,gn,yn,wn,xn,vn,n,bn,Cn,In,P,Tn,En={history:!0,galleryUID:1},Sn=function(){return P.hash.substring(1)},An=function(){var e,t;yn&&clearTimeout(yn),rt||s?yn=setTimeout(An,500):(wn?clearTimeout(gn):wn=!0,t=g+1,(e=en(g)).hasOwnProperty("pid")&&(t=e.pid),e=n+"&gid="+h.galleryUID+"&pid="+t,bn||-1===P.hash.indexOf(e)&&(In=!0),t=P.href.split("#")[0]+"#"+e,Tn?"#"+e!==window.location.hash&&history[bn?"replaceState":"pushState"]("",document.title,t):bn?P.replace(t):P.hash=e,bn=!0,gn=setTimeout(function(){wn=!1},60))};U("History",{publicMethods:{initHistory:function(){var e,t;m.extend(h,En,!0),h.history&&(P=window.location,bn=Cn=In=!1,n=Sn(),Tn="pushState"in history,-1<n.indexOf("gid=")&&(n=(n=n.split("&gid=")[0]).split("?gid=")[0]),a("afterChange",f.updateURL),a("unbindEvents",function(){m.unbind(window,"hashchange",f.onHashChange)}),e=function(){vn=!0,Cn||(In?history.back():n?P.hash=n:Tn?history.pushState("",document.title,P.pathname+P.search):P.hash=""),mn()},a("unbindEvents",function(){$&&e()}),a("destroy",function(){vn||e()}),a("firstUpdate",function(){g=fn().pid}),-1<(t=n.indexOf("pid="))&&"&"===(n=n.substring(0,t)).slice(-1)&&(n=n.slice(0,-1)),setTimeout(function(){X&&m.bind(window,"hashchange",f.onHashChange)},40))},onHashChange:function(){return Sn()===n?(Cn=!0,void f.close()):void(wn||(xn=!0,f.goTo(fn().pid),xn=!1))},updateURL:function(){mn(),xn||(bn?hn=setTimeout(An,800):An())}}}),m.extend(f,z)}}),((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).reframe=t()})(this,function(){function t(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],r=0,l=a.length;r<l;r++,i++)o[i]=a[r];return o}return function(e,i){return void 0===i&&(i="js-reframe"),("string"==typeof e?t(document.querySelectorAll(e)):"length"in e?t(e):[e]).forEac
1h(function(e){var t,n,o;-1!==e.className.split(" ").indexOf(i)||-1<e.style.width.indexOf("%")||(t=e.getAttribute("height")||e.offsetHeight,n=e.getAttribute("width")||e.offsetWidth,t=("string"==typeof t?parseInt(t):t)/("string"==typeof n?parseInt(n):n)*100,(n=document.createElement("div")).className=i,(o=n.style).position="relative",o.width="100%",o.paddingTop=t+"%",(o=e.style).position="absolute",o.width="100%",o.height="100%",o.left="0",o.top="0",null!=(t=e.parentNode)&&t.insertBefore(n,e),null!=(o=e.parentNode)&&o.removeChild(e),n.appendChild(e))})}}),lightbox(".kg-image-card > .kg-image[width][height], .kg-gallery-image > img"),reframe(document.querySelectorAll(['.gh-content iframe[src*="youtube.com"]','.gh-content iframe[src*="youtube-nocookie.com"]','.gh-content iframe[src*="player.vimeo.com"]','.gh-content iframe[src*="kickstarter.com"][src*="video.html"]',".gh-content object",".gh-content embed"].join(",")));

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.