diff --git a/assets/built/main.min.js b/assets/built/main.min.js index 652d65c..28b8c90 100644 --- a/assets/built/main.min.js +++ b/assets/built/main.min.js @@ -1,2 +1,2 @@ -function lightbox(n,l,s,c,u){function o(e,t){var o,n,i,r,a=document.querySelectorAll(".pswp")[0];r=[],t.querySelectorAll(l).forEach(function(e){(n=e).querySelector(s),i={src:(u?n.querySelector("img"):n).getAttribute("src"),w:0,h:0},c&&n.querySelector(c)&&(i.title=n.querySelector(c).innerHTML),r.push(i)}),(o=new PhotoSwipe(a,PhotoSwipeUI_Default,r,{arrowEl:!1,bgOpacity:.9,closeEl:!1,closeOnScroll:!1,fullscreenEl:!1,history:!1,index:e,shareEl:!1,showAnimationDuration:0,showHideOpacity:!0,zoomEl:!1})).listen("gettingData",function(e,t){var n;(t.w<1||t.h<1)&&((n=new Image).onload=function(){t.w=this.width,t.h=this.height,o.updateSize(!0)},n.src=t.src)}),o.init()}document.querySelectorAll(s).forEach(function(e){e.addEventListener("click",function(e){!function(e){e.preventDefault();var t=e.target.closest(n).querySelectorAll(l),t=Array.prototype.slice.call(t).indexOf(e.target.closest(l)),e=e.target.closest(n);o(t,e)}(e)})})}function pagination(t){var n,o,i,r,a,l,s,c=document.querySelector(".gh-loadmore"),u=document.querySelector("link[rel=next]");function d(){if(404===this.status)return window.removeEventListener("scroll",m),window.removeEventListener("resize",f),void c.remove();this.response.querySelectorAll(".gh-feed:not(.gh-featured):not(.gh-related) .gh-card").forEach(function(e){n.appendChild(document.importNode(e,!0))});var e=this.response.querySelector("link[rel=next]");e?u.href=e.href:(window.removeEventListener("scroll",m),window.removeEventListener("resize",f),c.remove()),s=document.documentElement.scrollHeight,r=i=!1}function e(){var e;r||(t&&a+l<=s-o?i=!1:(r=!0,(e=new window.XMLHttpRequest).responseType="document",e.addEventListener("load",d),e.open("GET",u.href),e.send(null)))}function p(){i||window.requestAnimationFrame(e),i=!0}function m(){a=window.scrollY,p()}function f(){l=window.innerHeight,s=document.documentElement.scrollHeight,p()}u||!c?(n=document.querySelector(".gh-feed:not(.gh-featured):not(.gh-related)"))&&(r=i=!(o=300),a=window.scrollY,l=window.innerHeight,s=document.documentElement.scrollHeight,t?(window.addEventListener("scroll",m,{passive:!0}),window.addEventListener("resize",f),p()):c.addEventListener("click",p)):c.remove()}!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(o,l){function e(e){if(D)return!0;e=e||window.event,S.timeToIdle&&S.mouseUsed&&!x&&Z();for(var t,n,o=(e.target||e.srcElement).getAttribute("class")||"",i=0;iS.fitControlsWidth?(t=S.barsSize,S.captionEl&&"auto"===t.bottom?(h||((h=l.createEl("pswp__caption pswp__caption--fake")).appendChild(l.createEl("pswp__caption__center")),m.insertBefore(h,f),l.addClass(m,"pswp__ui--fit")),S.addCaptionHTMLFn(e,h,!0)?(e=h.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 d(){function e(e){if(e)for(var t=e.length,n=0;n"+e.label+"",S.parseShareButtonOut&&(i=S.parseShareButtonOut(e,i));y.children[0].innerHTML=i,y.children[0].onclick=a},P=0,Z=function(){clearTimeout(_),P=0,x&&A.setIdle(!1)},z=function(e){I!==e&&(t(C,"preloader--active",!e),I=e)},N=[{name:"caption",option:"captionEl",onInit:function(e){f=e}},{name:"share-modal",option:"shareEl",onInit:function(e){y=e},onTap:function(){r()}},{name:"button--share",option:"shareEl",onInit:function(e){v=e},onTap:function(){r()}},{name:"button--zoom",option:"zoomEl",onTap:o.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){g=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(){p.isFullscreen()?p.exit():p.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){C=e}}];A.init=function(){var t;l.extend(o.options,L,!0),S=o.options,m=l.getChildByClass(o.scrollWrap,"pswp__ui"),(b=o.listen)("onVerticalDrag",function(e){O&&e<.95?A.hideControls():!O&&.95<=e&&A.showControls()}),b("onPinchClose",function(e){O&&e<.9?(A.hideControls(),t=!0):t&&!O&&.9=Yt()-1&&t<0)&&(e=xt.x+t*g.mainScrollEndFriction)),xt.x=e,ot(e,W)}function s(e,t){var n=bt[e]-Ge[e];return Ke[e]+qe[e]+n-t/j*n}function w(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)}function c(e){e.x=Math.round(e.x),e.y=Math.round(e.y)}function p(e,t){return e=$t(h.currItem,Be,e),t&&(Fe=e),e}function x(e){return(e=e||h.currItem).initialZoomLevel}function b(e){return 0<(e=e||h.currItem).w?g.maxSpreadZoom:1}function C(e,t,n,o){return o===h.currItem.initialZoomLevel?(n[e]=h.currItem.initialPosition[e],!0):(n[e]=s(e,o),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]Fe.min[e]||rFe.min[e]&&(c=g.panEndFriction,Fe.min[e],n=Fe.min[e]-Ke[e]),(n<=0||s<0)&&1ft.x&&(i=ft.x)):Fe.min.x!==Fe.max.x&&(o=r)):(rh.currItem.fitRatio&&(We[e]+=t[e]*c)):(void 0!==i&&(d(i,!0),_e=i!==ft.x),Fe.min.x!==Fe.max.x&&(void 0!==o?We.x=o:_e||(We.x+=t.x*c)),void 0!==i)}function Z(e){var t;"mousedown"===e.type&&0h.currItem.fitRatio&&Ot(xe))}}var U,H,q,K,W,B,Y,G,V,X,j,$,J,Q,ee,te,ne,oe,ie,re,ae,le,se,ce,ue,de,pe,me,fe,he,ge,ve,ye,we,xe,be,Ce,Ie,Te,Ee,Se,De,ke,_e,Ae,Me,Oe,Fe,Le,Re,Pe,Ze,ze,Ne,Ue,He,qe=o(),Ke=o(),We=o(),Be={},Ye=0,Ge={},Ve=o(),Xe=0,je=!0,$e=[],Je={},Qe=!1,et={},tt=function(e){Le&&(e&&(X>h.currItem.fitRatio?Qe||(Jt(h.currItem,!1,!0),Qe=!0):Qe&&(Jt(h.currItem),Qe=!1)),l(Le,We.x,We.y,X))},nt=function(e){e.container&&l(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},ot=function(e,t){t[le]=$+e+"px, 0px"+J},it=null,rt=function(){it&&(f.unbind(document,"mousemove",rt),f.addClass(m,"pswp--has_mouse"),g.mouseUsed=!0,v("mouseUsed")),it=setTimeout(function(){it=null},100)},at={},lt=0,t={shout:v,listen:r,viewportSize:Be,options:g,isMainScrollAnimating:function(){return Re},getZoomLevel:function(){return X},getCurrentIndex:function(){return K},isDragging:function(){return Te},isZooming:function(){return Me},setScrollOffset:function(e,t){Ge.x=e,he=Ge.y=t,v("updateScrollOffset",Ge)},applyZoomPan:function(e,t,n,o){We.x=t,We.y=n,X=e,tt(o)},init:function(){if(!U&&!H){var e;h.framework=f,h.template=m,h.bg=f.getChildByClass(m,"pswp__bg"),pe=m.className,U=!0,ge=f.detectFeatures(),ue=ge.raf,de=ge.caf,le=ge.transform,fe=ge.oldIE,h.scrollWrap=f.getChildByClass(m,"pswp__scroll-wrap"),h.container=f.getChildByClass(h.scrollWrap,"pswp__container"),W=h.container.style,h.itemHolders=te=[{el:h.container.children[0],wrap:0,index:-1},{el:h.container.children[1],wrap:0,index:-1},{el:h.container.children[2],wrap:0,index:-1}],te[0].el.style.display=te[2].el.style.display="none",function(){if(le){var e=ge.perspective&&!ce;return $="translate"+(e?"3d(":"("),J=ge.perspective?", 0px)":")"}le="left",f.addClass(m,"pswp--ie"),ot=function(e,t){t.left=e+"px"},nt=function(e){var t=1=Yt())&&(K=0),h.currItem=Bt(K),(ge.isOldIOSPhone||ge.isOldAndroid)&&(je=!1),m.setAttribute("aria-hidden","false"),g.modal&&(je?m.style.position="fixed":(m.style.position="absolute",m.style.top=f.getScrollY()+"px")),void 0===he&&(v("initialLayout"),he=me=f.getScrollY());t="pswp--open ";for(g.mainClass&&(t+=g.mainClass+" "),g.showHideOpacity&&(t+="pswp--animate_opacity "),t+=ce?"pswp--touch":"pswp--notouch",t+=ge.animationName?" pswp--css_animation":"",t+=ge.svg?" pswp--svg":"",f.addClass(m,t),h.updateSize(),B=-1,Xe=null,e=0;e<3;e++)ot((e+B)*Ve.x,te[e].el.style);fe||f.bind(h.scrollWrap,G,h),r("initialZoomInEnd",function(){h.setContent(te[0],K-1),h.setContent(te[2],K+1),te[0].el.style.display=te[2].el.style.display="block",g.focus&&m.focus(),f.bind(document,"keydown",h),ge.transform&&f.bind(h.scrollWrap,"click",h),g.mouseUsed||f.bind(document,"mousemove",rt),f.bind(window,"resize scroll orientationchange",h),v("bindEvents")}),h.setContent(te[1],K),h.updateCurrItem(),v("afterInit"),je||(Q=setInterval(function(){lt||Te||Me||X!==h.currItem.initialZoomLevel||h.updateSize()},1e3)),f.addClass(m,"pswp--visible")}},close:function(){U&&(H=!(U=!1),v("close"),f.unbind(window,"resize scroll orientationchange",h),f.unbind(window,"scroll",V.scroll),f.unbind(document,"keydown",h),f.unbind(document,"mousemove",rt),ge.transform&&f.unbind(h.scrollWrap,"click",h),Te&&f.unbind(window,Y,h),clearTimeout(ve),v("unbindEvents"),Gt(h.currItem,null,!0,h.destroy))},destroy:function(){v("destroy"),Ht&&clearTimeout(Ht),m.setAttribute("aria-hidden","true"),m.className=pe,Q&&clearInterval(Q),f.unbind(h.scrollWrap,G,h),f.unbind(window,"scroll",h),It(),k(),et=null},panTo:function(e,t,n){n||(e>Fe.min.x?e=Fe.min.x:eFe.min.y?t=Fe.min.y:th.currItem.initialZoomLevel+h.currItem.initialZoomLevel/15&&(Ue=!0),n=1,e=x(),r=b(),iFe.min[t]?o.backAnimDestination[t]=Fe.min[t]:We[t]=Yt()&&(K=g.loop?0:Yt()-1,i=!0),i&&!g.loop||(Xe+=r,Ye-=r,n=!0));var i=Ve.x*Ye,r=Math.abs(i-xt.x),a=n||i>xt.x==0The image could not be loaded.',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return qt.length}},$t=function(e,t,n){if(!e.src||e.loadError)return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=Pt(),e.initialPosition=e.bounds.center,e.bounds;var o,i,r,a=!n;return a&&(e.vGap||(e.vGap={top:0,bottom:0}),v("parseVerticalMargin",e)),Vt.x=t.x,Vt.y=t.y-e.vGap.top-e.vGap.bottom,a&&(o=Vt.x/e.w,i=Vt.y/e.h,e.fitRatio=oVt.x?Math.round(Vt.x-o):r.center.x,r.max.y=i>Vt.y?Math.round(Vt.y-i)+t.vGap.top:r.center.y,r.min.x=o>Vt.x?0:r.center.x,r.min.y=i>Vt.y?t.vGap.top:r.center.y,a&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):void 0},Jt=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")};i("Controller",{publicMethods:{lazyLoadItem:function(e){e=a(e);var t=Bt(e);t&&(!t.loaded&&!t.loading||ee)&&(v("gettingData",e,t),t.src&&zt(t))},initController:function(){f.extend(g,jt,!0),h.items=qt=e,Bt=h.getItemAt,Yt=g.getNumItemsFn,g.loop,Yt()<3&&(g.loop=!1),r("beforeChange",function(e){for(var t=g.preload,n=null===e||0<=e,o=Math.min(t[0],Yt()),i=Math.min(t[1],Yt()),r=1;r<=(n?i:o);r++)h.lazyLoadItem(K+r);for(r=1;r<=(n?o:i);r++)h.lazyLoadItem(K-r)}),r("initialLayout",function(){h.currItem.initialLayout=g.getThumbBoundsFn&&g.getThumbBoundsFn(K)}),r("mainScrollAnimComplete",Ut),r("initialZoomInEnd",Ut),r("destroy",function(){for(var e,t=0;t=Fe.max.x&&n<=Fe.min.y&&n>=Fe.max.y)&&e.preventDefault(),h.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:Be.x/2+Ge.x,y:Be.y/2+Ge.y};var t=g.getDoubleTapZoom(!0,h.currItem),n=X===t;h.mouseZoomedIn=!n,h.zoomTo(n?h.currItem.initialZoomLevel:t,e,333),f[(n?"remove":"add")+"Class"](m,"pswp--zoomed-in")}}});function on(){return vn.hash.substring(1)}function rn(){ln&&clearTimeout(ln),cn&&clearTimeout(cn)}function an(){var e=on(),t={};if(e.length<5)return t;var n,o=e.split("&");for(r=0;rS.fitControlsWidth?(t=S.barsSize,S.captionEl&&"auto"===t.bottom?(h||((h=l.createEl("pswp__caption pswp__caption--fake")).appendChild(l.createEl("pswp__caption__center")),m.insertBefore(h,f),l.addClass(m,"pswp__ui--fit")),S.addCaptionHTMLFn(e,h,!0)?(e=h.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 d(){function e(e){if(e)for(var t=e.length,n=0;n