Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 3.143.205.184
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

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