diff --git a/assets/built/main.min.js b/assets/built/main.min.js index 281b24f..e1c194c 100644 --- a/assets/built/main.min.js +++ b/assets/built/main.min.js @@ -1,2 +1,2 @@ -function lightbox(e){document.querySelectorAll(e).forEach(function(e){e.addEventListener("click",function(e){var t=e;t.preventDefault();for(var n,o=[],i=0,r=t.target.closest(".kg-card").previousElementSibling;r&&(r.classList.contains("kg-image-card")||r.classList.contains("kg-gallery-card"));){var a=[];r.querySelectorAll("img").forEach(function(e){a.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),i+=1}),r=r.previousElementSibling,o=a.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()})})}function pagination(u){var d,m,t,n,o,i,r,a=document.querySelector(".gh-loadmore"),l=document.querySelector("link[rel=next]");function p(){if(404===this.status)return window.removeEventListener("scroll",s),window.removeEventListener("resize",c),void a.remove();this.response.querySelectorAll(".gh-feed:not(.gh-featured):not(.gh-related) .gh-card").forEach(function(e){d.appendChild(document.importNode(e,!0))});var e=this.response.querySelector("link[rel=next]");e?l.href=e.href:(window.removeEventListener("scroll",s),window.removeEventListener("resize",c),a.remove()),r=document.documentElement.scrollHeight,n=t=!1}function f(){var e;n||(u&&o+i<=r-m?t=!1:(n=!0,(e=new window.XMLHttpRequest).responseType="document",e.addEventListener("load",p),e.open("GET",l.href),e.send(null)))}function e(){t||window.requestAnimationFrame(f),t=!0}function s(){o=window.scrollY,e()}function c(){i=window.innerHeight,r=document.documentElement.scrollHeight,e()}l||!a?(d=document.querySelector(".gh-feed:not(.gh-featured):not(.gh-related)"))&&(n=t=!(m=300),o=window.scrollY,i=window.innerHeight,r=document.documentElement.scrollHeight,u?(window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",c),e()):a.addEventListener("click",e)):a.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 d(e){if(_)return!0;e=e||window.event,c.timeToIdle&&c.mouseUsed&&!T&&g();for(var t,n,o=(e.target||e.srcElement).getAttribute("class")||"",i=0;i"+e.label+"",c.parseShareButtonOut&&(i=c.parseShareButtonOut(e,i));a.children[0].innerHTML=i,a.children[0].onclick=P}}function h(e){for(var t=0;tc.fitControlsWidth?(t=c.barsSize,c.captionEl&&"auto"===t.bottom?(C||((C=l.createEl("pswp__caption pswp__caption--fake")).appendChild(l.createEl("pswp__caption__center")),s.insertBefore(C,b),l.addClass(s,"pswp__ui--fit")),c.addCaptionHTMLFn(e,C,!0)?(e=C.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 x(){function e(e){if(e)for(var t=e.length,n=0;nt.min[e]?(n[e]=t.min[e],!0):n[e]=ot&&(ve=0f.currItem.fitRatio&&zt(ne))}}var T,S,A,g,D,k,_,M,O,v,F,L,R,P,Z,z,N,U,H,K,q,B,W,Y,G,V,X,j,$,J,a,Q,ee,te,ne,oe,ie,re,ae,le,se,ce,ue,de,me,pe,fe,u,he,ge,ve,we,ye,xe,be,Ce,Ie=o(),Ee=o(),w=o(),Te={},Se=0,Ae={},De=o(),ke=0,_e=!0,Me=[],Oe={},Fe=!1,Le={},y=function(e){var t=Le[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var o=0;of.currItem.fitRatio?Fe||(an(f.currItem,!1,!0),Fe=!0):Fe&&(an(f.currItem),Fe=!1)),Ze(he,w.x,w.y,v))},Ne=function(e){e.container&&Ze(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Ue=function(e,t){t[B]=L+e+"px, 0px"+R},He=function(e,t){var n;!h.loop&&t&&(t=g+(De.x*Se-e)/De.x,n=Math.round(e-gt.x),(t<0&&0=jt()-1&&n<0)&&(e=gt.x+n*h.mainScrollEndFriction)),gt.x=e,Ue(e,D)},Ke=function(e,t){var n=vt[e]-Ae[e];return Ee[e]+Ie[e]+n-t/F*n},qe=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Be=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},We=null,Ye=function(){We&&(p.unbind(document,"mousemove",Ye),p.addClass(m,"pswp--has_mouse"),h.mouseUsed=!0,y("mouseUsed")),We=setTimeout(function(){We=null},100)},Ge=function(e,t){e=on(f.currItem,Te,e);return t&&(u=e),e},Ve=function(e){return(e=e||f.currItem).initialZoomLevel},Xe=function(e){return 0<(e=e||f.currItem).w?h.maxSpreadZoom:1},je={},$e=0,Je=function(e){je[e]&&(je[e].raf&&V(je[e].raf),$e--,delete je[e])},Qe=function(e){je[e]&&Je(e),je[e]||($e++,je[e]={})},et=function(){for(var e in je)je.hasOwnProperty(e)&&Je(e)},tt=function(e,t,n,o,i,r,a){function l(){if(je[e]){if(s=Re()-c,o<=s)return Je(e),r(n),void(a&&a());r((n-t)*i(s/o)+t),je[e].raf=G(l)}}var s,c=Re();Qe(e);l()},t={shout:y,listen:s,viewportSize:Te,options:h,isMainScrollAnimating:function(){return ge},getZoomLevel:function(){return v},getCurrentIndex:function(){return g},isDragging:function(){return ae},isZooming:function(){return pe},setScrollOffset:function(e,t){Ae.x=e,J=Ae.y=t,y("updateScrollOffset",Ae)},applyZoomPan:function(e,t,n,o){w.x=t,w.y=n,v=e,ze(o)},init:function(){if(!T&&!S){f.framework=p,f.template=m,f.bg=p.getChildByClass(m,"pswp__bg"),X=m.className,T=!0,a=p.detectFeatures(),G=a.raf,V=a.caf,B=a.transform,$=a.oldIE,f.scrollWrap=p.getChildByClass(m,"pswp__scroll-wrap"),f.container=p.getChildByClass(f.scrollWrap,"pswp__container"),D=f.container.style,f.itemHolders=z=[{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}],z[0].el.style.display=z[2].el.style.display="none",function(){var e;if(B)return e=a.perspective&&!Y,L="translate"+(e?"3d(":"("),R=a.perspective?", 0px)":")";B="left",p.addClass(m,"pswp--ie"),Ue=function(e,t){t.left=e+"px"},Ne=function(e){var t=1=jt())&&(g=0),f.currItem=Xt(g),(a.isOldIOSPhone||a.isOldAndroid)&&(_e=!1),m.setAttribute("aria-hidden","false"),h.modal&&(_e?m.style.position="fixed":(m.style.position="absolute",m.style.top=p.getScrollY()+"px")),void 0===J&&(y("initialLayout"),J=j=p.getScrollY());t="pswp--open ";for(h.mainClass&&(t+=h.mainClass+" "),h.showHideOpacity&&(t+="pswp--animate_opacity "),t=(t=(t+=Y?"pswp--touch":"pswp--notouch")+(a.animationName?" pswp--css_animation":""))+(a.svg?" pswp--svg":""),p.addClass(m,t),f.updateSize(),k=-1,ke=null,e=0;e<3;e++)Ue((e+k)*De.x,z[e].el.style);$||p.bind(f.scrollWrap,M,f),s("initialZoomInEnd",function(){f.setContent(z[0],g-1),f.setContent(z[2],g+1),z[0].el.style.display=z[2].el.style.display="block",h.focus&&m.focus(),p.bind(document,"keydown",f),a.transform&&p.bind(f.scrollWrap,"click",f),h.mouseUsed||p.bind(document,"mousemove",Ye),p.bind(window,"resize scroll orientationchange",f),y("bindEvents")}),f.setContent(z[1],g),f.updateCurrItem(),y("afterInit"),_e||(P=setInterval(function(){$e||ae||pe||v!==f.currItem.initialZoomLevel||f.updateSize()},1e3)),p.addClass(m,"pswp--visible")}},close:function(){T&&(S=!(T=!1),y("close"),p.unbind(window,"resize scroll orientationchange",f),p.unbind(window,"scroll",O.scroll),p.unbind(document,"keydown",f),p.unbind(document,"mousemove",Ye),a.transform&&p.unbind(f.scrollWrap,"click",f),ae&&p.unbind(window,_,f),clearTimeout(Q),y("unbindEvents"),$t(f.currItem,null,!0,f.destroy))},destroy:function(){y("destroy"),Wt&&clearTimeout(Wt),m.setAttribute("aria-hidden","true"),m.className=X,P&&clearInterval(P),p.unbind(f.scrollWrap,M,f),p.unbind(window,"scroll",f),bt(),et(),Le=null},panTo:function(e,t,n){n||(e>u.min.x?e=u.min.x:eu.min.y?t=u.min.y:tu.min[e]||ru.min[e]&&(c=h.panEndFriction,u.min[e],n=u.min[e]-Ee[e]),(n<=0||s<0)&&1ut.x&&(i=ut.x)):u.min.x!==u.max.x&&(o=r)):(rf.currItem.fitRatio&&(w[e]+=t[e]*c)):(void 0!==i&&(He(i,!0),de=i!==ut.x),u.min.x!==u.max.x&&(void 0!==o?w.x=o:de||(w.x+=t.x*c)),void 0!==i)},Pt=function(){if(me){var e,t,n,o,i,r=me.length;if(0!==r)if(qe(it,me[0]),at.x=it.x-lt.x,at.y=it.y-lt.y,pe&&1f.currItem.initialZoomLevel+f.currItem.initialZoomLevel/15&&(be=!0),t=1,n=Ve(),o=Xe(),e=ot&&(at.x-=me[0].x-st.x),Math.abs(at.y)>=ot&&(at.y-=me[0].y-st.y)),lt.x=it.x,lt.y=it.y,0!==at.x||0!==at.y)){if("v"===ve&&h.closeOnVerticalDrag&&!It())return Ie.y+=at.y,w.y+=at.y,i=_t(),ie=!0,y("onVerticalDrag",i),Pe(i),void ze();kt(Re(),it.x,it.y),ce=!0,u=f.currItem.bounds,Rt("x",at)||(Rt("y",at),Be(w),ze())}}},Zt=function(){var t,n,o={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){n=1u.min[t]?o.backAnimDestination[t]=u.min[t]:w[t]=jt()&&(g=h.loop?0:jt()-1,i=!0),i&&!h.loop||(ke+=o,Se-=o,n=!0));var e=De.x*Se,r=Math.abs(e-gt.x),a=n||e>gt.x==0The image could not be loaded.',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Yt.length}},tn=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},nn=function(e,t,n){var o=e.bounds;o.center.x=Math.round((Jt.x-t)/2),o.center.y=Math.round((Jt.y-n)/2)+e.vGap.top,o.max.x=t>Jt.x?Math.round(Jt.x-t):o.center.x,o.max.y=n>Jt.y?Math.round(Jt.y-n)+e.vGap.top:o.center.y,o.min.x=t>Jt.x?0:o.center.x,o.min.y=n>Jt.y?e.vGap.top:o.center.y},on=function(e,t,n){var o,i;return e.src&&!e.loadError?((o=!n)&&(e.vGap||(e.vGap={top:0,bottom:0}),y("parseVerticalMargin",e)),Jt.x=t.x,Jt.y=t.y-e.vGap.top-e.vGap.bottom,o&&(t=Jt.x/e.w,i=Jt.y/e.h,e.fitRatio=t=u.max.x&&n<=u.min.y&&n>=u.max.y)&&e.preventDefault(),f.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:Te.x/2+Ae.x,y:Te.y/2+Ae.y};var t=h.getDoubleTapZoom(!0,f.currItem),n=v===t;f.mouseZoomedIn=!n,f.zoomTo(n?f.currItem.initialZoomLevel:t,e,333),p[(n?"remove":"add")+"Class"](m,"pswp--zoomed-in")}}});function dn(){pn&&clearTimeout(pn),hn&&clearTimeout(hn)}function mn(){var e=Sn(),t={};if(e.length<5)return t;var n,o=e.split("&");for(r=0;r .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(","))),pagination(!1); +function lightbox(e){document.querySelectorAll(e).forEach(function(e){e.addEventListener("click",function(e){var t=e;t.preventDefault();for(var n,o=[],i=0,r=t.target.closest(".kg-card").previousElementSibling;r&&(r.classList.contains("kg-image-card")||r.classList.contains("kg-gallery-card"));){var a=[];r.querySelectorAll("img").forEach(function(e){a.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),i+=1}),r=r.previousElementSibling,o=a.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()})})}function pagination(u){var d,m,t,n,o,i,r,a=document.querySelector(".gh-loadmore"),l=document.querySelector("link[rel=next]");function p(){if(404===this.status)return window.removeEventListener("scroll",s),window.removeEventListener("resize",c),void a.remove();this.response.querySelectorAll(".gh-feed:not(.gh-featured):not(.gh-related) .gh-card").forEach(function(e){d.appendChild(document.importNode(e,!0))});var e=this.response.querySelector("link[rel=next]");e?l.href=e.href:(window.removeEventListener("scroll",s),window.removeEventListener("resize",c),a.remove()),r=document.documentElement.scrollHeight,n=t=!1}function f(){var e;n||(u&&o+i<=r-m?t=!1:(n=!0,(e=new window.XMLHttpRequest).responseType="document",e.addEventListener("load",p),e.open("GET",l.href),e.send(null)))}function e(){t||window.requestAnimationFrame(f),t=!0}function s(){o=window.scrollY,e()}function c(){i=window.innerHeight,r=document.documentElement.scrollHeight,e()}l||!a?(d=document.querySelector(".gh-feed:not(.gh-featured):not(.gh-related)"))&&(n=t=!(m=300),o=window.scrollY,i=window.innerHeight,r=document.documentElement.scrollHeight,u?(window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",c),e()):a.addEventListener("click",e)):a.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 d(e){if(_)return!0;e=e||window.event,c.timeToIdle&&c.mouseUsed&&!T&&g();for(var t,n,o=(e.target||e.srcElement).getAttribute("class")||"",i=0;i