PageSourceSearch

https://swaminarayan.in/media/com_eventgallery/dist/eventgallery.js?v=6.5.0&e=1

js swaminarayan.in collected 2026-10-02 10:09:45 UTC 169,112 bytes, 2 lines download raw bytes

1(()=>{"use strict";var __webpack_modules__={9259(__unused_webpack_module,__webpack_exports__,__webpack_require__){function removeElement(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function mergeObjects(t,e){if(null===e||null===t)return t;for(let i in e)t[i]=e[i];return t}function getElementWidth(t){return t?parseFloat(getComputedStyle(t,null).width.replace("px","")):0}function getElementHeight(t){return t?parseFloat(getComputedStyle(t,null).height.replace("px","")):0}function calcBorderWidth(t,e){let i=0;for(let s=0;s<t.length;s++){let n=getComputedStyle(t[s],null);for(let t=0;t<e.length;t++){let s=parseFloat(n[e[t]]);isNaN(s)||(i+=s)}}return i}function addUrlHashParameter(t,e,i){let s,n=removeUrlHashParameter(t,e).split("#"),o=n[0],r=n.length>1?n[1].split("&"):[];return r.push(encodeURIComponent(e)+"="+encodeURIComponent(i)),s=r.length>0?o+"#"+r.join("&"):o,s}function getUrlHashParameterValue(t,e){let i,s=t.split("#"),n=s.length>1?s[1].split("&"):[];if(n.length>0){let t=encodeURIComponent(e)+"=";for(let e=0;e<n.length;e++)0===n[e].indexOf(t,0)&&(i=n[e].replace(t,""))}return i}function removeUrlHashParameter(t,e){let i,s=t.split("#"),n=s[0],o=s.length>1?s[1].split("&"):[];if(o.length>0){let t=encodeURIComponent(e)+"=",i=[];for(let e=0;e<o.length;e++)0!==o[e].indexOf(t,0)&&i.push(o[e]);o=i}return i=o.length>0?n+"#"+o.join("&"):n,i}function addUrlParameter(t,e,i){let s,n=removeUrlParameter(t,e).split("#"),o=n[0].split("?");return s=1===o.length?o[0]+"?"+encodeURIComponent(e)+"="+encodeURIComponent(i):o.join("?")+"&"+encodeURIComponent(e)+"="+encodeURIComponent(i),n.length>1?s+"#"+n[1]:s}function removeUrlParameter(t,e){let i,s=t.split("#"),n=s[0].split("?");if(n.length>1){let t=encodeURIComponent(e)+"=",s=n[1].split("&");for(let e=0;e<s.length;e++)0===s[e].indexOf(t,0)&&s.splice(e,1);i=s.length>0?n[0]+"?"+s.join("&"):n[0]}else i=n[0];return s.length>1?i+"#"+s[1]:i}function setCSSStyle(t,e,i){for(let s=0;s<t.length;s++)t[s].style[e]=i}function getOuterHeight(t){let e=t.offsetHeight,i=getComputedStyle(t);return e+=parseInt(i.marginTop)+parseInt(i.marginBottom),e}function getParents(t){let e=[];
1if(null===t)return e;for(;null!=t.parentElement;){let i=t.parentElement;e.push(i),t=i}return e}function getParent(t,e){let i=getParents(t);for(let t=0;t<i.length;t++)if(i[t].matches(e))return i[t];return null}function insertAndExecute(htmlElement,newContent){htmlElement.innerHTML=newContent;let scripts=Array.prototype.slice.call(htmlElement.getElementsByTagName("script"));for(let i=0;i<scripts.length;i++)if(""!==scripts[i].src){let t=document.createElement("script");t.src=scripts[i].src,document.getElementsByTagName("head")[0].appendChild(t)}else try{eval(scripts[i].innerHTML)}catch(t){console.error(t)}}function forEach(t,e){if(!t)return 0;for(let i=0;i<t.length;i++)e(t[i],i);return t.length}const serializeForm=function(t){let e=[],i=t.querySelectorAll("input,select,textarea");for(let t=0;t<i.length;t++){let s=i[t];if(s.name&&!s.disabled&&"file"!==s.type&&"reset"!==s.type&&"submit"!==s.type&&"button"!==s.type)if("select-multiple"===s.type)for(let t=0;t<s.options.length;t++)s.options[t].selected&&e.push(encodeURIComponent(s.name)+"="+encodeURIComponent(s.options[t].value));else("checkbox"!==s.type&&"radio"!==s.type||s.checked)&&e.push(encodeURIComponent(s.name)+"="+encodeURIComponent(s.value))}return e.join("&")},Helpers={getOuterHeight,removeElement,addUrlHashParameter,calcBorderWidth,mergeObjects,getElementWidth,getElementHeight,addUrlParameter,getUrlHashParameterValue,removeUrlHashParameter,removeUrlParameter,setCSSStyle,getParents,serializeForm,getParent,insertAndExecute,forEach};__webpack_require__.d(__webpack_exports__,["M",0,Helpers])},1535(t,e,i){var s=i(8409),n=i(3417),o=i(5296);function r(t,e,i){const s=new o.A;let n=!1,r=!1;const a={mount(){this._a=e.Html.wrapper.querySelectorAll("a,span,img"),this.bind(),r=!1},bind(){s.on("click",e.Html.wrapper,this.click,!0)},unbind(){s.off("click",e.Html.wrapper)},click(t){n&&(t.stopPropagation(),t.preventDefault())},detach(){return n=!0,this},attach(){return n=!1,this}};return Object.defineProperty(a,"items",{get:()=>a._a}),i.on("swipe.move",()=>{a.detach()}),i.on("swipe.end",()=>{e.Transition.after(()=>{a.attach()})}),i.on("destroy",()=>{a.attach(),a.unbind(),s.destroy()}),a}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,s)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach(function(e){p(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function u(t,e,i){return e&&d(t.prototype,e),i&&d(t,i),t}function p(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e){return g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},g(t,e)}function v(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var i,s=m(t);if(e){var n=m(this).constructor;i=Reflect.construct(s,arguments,n)}else i=s.apply(this,arguments);return v(this,i)}}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,
vendor: 9,194 bytes, line 1
1i){var s=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(s){var n=Object.getOwnPropertyDescriptor(s,e);return n.get?n.get.call(arguments.length<3?t:i):n.value}},y.apply(this,arguments)}i.dn(r);var w={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function _(t){console.error("[Glide warn]: ".concat(t))}function b(t){return parseInt(t)}function S(t){return"string"==typeof t}function C(t){var e=h(t);return"function"===e||"object"===e&&!!t}function E(t){return"function"==typeof t}function x(t){return void 0===t}function L(t){return t.constructor===Array}function A(t,e,i){Object.defineProperty(t,e,i)}function P(t,e){var i=Object.assign({},t,e);if(e.hasOwnProperty("classes")){i.classes=Object.assign({},t.classes,e.classes);["direction","type","slide","arrow","nav"].forEach(function(s){e.classes.hasOwnProperty(s)&&(i.classes[s]=l(l({},t.classes[s]),e.classes[s]))})}return e.hasOwnProperty("breakpoints")&&(i.breakpoints=Object.assign({},t.breakpoints,e.breakpoints)),i}var T=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,t),this.events=e,this.hop=e.hasOwnProperty}return u(t,[{key:"on",value:function(t,e){if(!L(t)){this.hop.call(this.events,t)||(this.events[t]=[]);var i=this.events[t].push(e)-1;return{remove:function(){delete this.events[t][i]}}}for(var s=0;s<t.length;s++)this.on(t[s],e)}},{key:"emit",value:function(t,e){if(L(t))for(var i=0;i<t.length;i++)this.emit(t[i],e);else this.hop.call(this.events,t)&&this.events[t].forEach(function(t){t(e||{})})}}]),t}(),I=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,t),this._c={},this._t=[],this._e=new T,this.disabled=!1,this.selector=e,this.settings=P(w,i),this.index=this.settings.startAt}return u(t,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),C(t)?this._c=function(t,e,i){var s={};for(var n in e)E(e[n])?s[n]=e[n](t,s,i):_("Extension must be a function");for(var o in s)E(s[o].mount)&&s[o].mount();return s}(this,t,this._e):_("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return L(t)?this._t=t:_("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=P(this.settings,t),t.hasOwnProperty("startAt")&&(this.index=t.startAt),this._e.emit("update"),this}},{key:"go",value:function(t){return this._c.Run.make(t),this}},{key:"move",value:function(t){return this._c.Transition.disable(),this._c.Move.make(t),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&(this.settings.autoplay=t),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(t,e){return this._e.on(t,e),this}},{key:"isType",value:function(t){return this.settings.type===t}},{key:"settings",get:function(){return this._o},set:function(t){C(t)?this._o=t:_("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(t){this._i=b(t)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(t){this._d=!!t}}]),t}();function O(){return(new Date).getTime()}function k(t,e){var i,s,n,o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=0,l=function(){a=!1===r.leading?0:O(),i=null,o=t.apply(s,n),i||(s=n=null)},h=function(){var h=O();a||!1!==r.leading||(a=h);var c=e-(h-a);return s=this,n=arguments,c<=0||c>e?(i&&(clearTimeout(i),i=null),a=h,o=t.apply(s,n),i||(s=n=null)):i||!1===r.trailing||(i=setTimeout(l,c)),o};return h.cancel=function(){clearTimeout(i),a=0,i=s=n=null},h}var z={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function R(t){if(t&&t.parentNode){for(var e=t.parentNode.firstChild,i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}return[]}function D(t){return Array.prototype.slice.call(t)}var M=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,t),this.listeners=e}return u(t,[{key:"on",value:function(t,e,i){var s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];S(t)&&(t=[t]);for(var n=0;n<t.length;n++)this.listeners[t[n]]=i,e.addEventListener(t[n],this.listeners[t[n]],s)}},{key:"off",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];S(t)&&(t=[t]);for(var s=0;s<t.length;s++)e.removeEventListener(t[s],this.listeners[t[s]],i)}},{key:"destroy",value:function(){delete this.listeners}}]),t}();var B=["ltr","rtl"],H={">":"<","<":">","=":"="};function q(t,e){return{modify:function(t){return e.Direction.is("rtl")?-t:t}}}function F(t,e){return{modify:function(t){var i=Math.floor(t/e.Sizes.slideWidth);return t+e.Gaps.value*i}}}function N(t,e){return{modify:function(t){return t+e.Clones.grow/2}}}function U(t,e){return{modify:function(i){if(t.settings.focusAt>=0){var s=e.Peek.value;return C(s)?i-s.before:i-s}return i}}}function Z(t,e){return{modify:function(i){var s=e.Gaps.value,n=e.Sizes.width,o=t.settings.focusAt,r=e.Sizes.slideWidth;return"center"===o?i-(n/2-r/2):i-r*o-s*o}}}var W=!1;try{var j=Object.defineProperty({},"passive",{get:function(){W=!0}});window.addEventListener("testPassive",null,j),window.removeEventListener("testPassive",null,j)}catch(t){}var V=W,G=["touchstart","mousedown"],Y=["touchmove","mousemove"],K=["touchend","touchcancel","mouseup","mouseleave"],X=["mousedown","mousemove","mouseup","mouseleave"];function J(t,e,i){var s=new M,n=0,o=0,r=0,a=!1,l=!!V&&{passive:!0},h={mount:function(){this.bindSwipeStart()},start:function(e){if(!a&&!t.disabled){this.disable();var s=this.touches(e);n=null,o=b(s.pageX),r=b(s.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),i.emit("swipe.start")}},move:function(s){if(!t.disabled){var a=t.settings,l=a.touchAngle,h=a.touchRatio,c=a.classes,d=this.touches(s),u=b(d.pageX)-o,p=b(d.pageY)-r,m=Math.abs(u<<2),g=Math.abs(p<<2),v=Math.sqrt(m+g),f=Math.sqrt(g);if(!(180*(n=Math.asin(f/v))/Math.PI<l))return!1;s.stopPropagation(),e.Move.make(u*parseFloat(h)),e.Html.root.classList.add(c.dragging),i.emit("swipe.move")}},end:function(s){if(!t.disabled){var r=t.settings,a=r.perSwipe,l=r.touchAngle,h=r.classes,c=this.touches(s),d=this.threshold(s),u=c.pageX-o,p=180*n/Math.PI;this.enable(),u>d&&p<l?e.Run.make(e.Direction.resolve("".concat(a,"<"))):u<-d&&p<l?e.Run.make(e.Direction.resolve("".concat(a,">"))):e.Move.make(),e.Html.root.classList.remove(h.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),i.emit("swipe.end")}},bindSwipeStart:function(){var i=this,n=t.settings,o=n.swipeThreshold,r=n.dragThreshold;o&&s.on(G[0],e.Html.wrapper,function(t){i.start(t)},l),r&&s.on(G[1],e.Html.wrapper,function(t){i.start(t)},l)},unbindSwipeStart:function(){s.off(G[0],e.Html.wrapper,l),s.off(G[1],e.Html.wrapper,l)},bindSwipeMove:function(){var i=this;s.on(Y,e.Html.wrapper,k(function(t){i.move(t)},t.settings.throttle),l)},unbindSwipeMove:function(){s.off(Y,e.Html.wrapper,l)},bindSwipeEnd:function(){var t=this;s.on(K,e.Html.wrapper,function(e){t.end(e)})},unbindSwipeEnd:function(){s.off(K,e.Html.wrapper)},touches:function(t){return X.indexOf(t.type)>-1?t:t.touches[0]||t.changedTouches[0]},threshold:function(e){var i=t.settings;return X.indexOf(e.type)>-1?i.dragThreshold:i.swipeThreshold},enable:function(){return a=!1,e.Transition.enable(),this},disable:function(){return a=!0,e.Transition.disable(),this}};return i.on("build.after",function(){e.Html.root.classList.add(t.settings.classes.swipeable)}),i.on("destroy",function(){h.unbindSwipeStart(),h.unbindSwipeMove(),h.unbindSwipeEnd(),s.destroy()}),h}function $(t,e,i){var s=new M,n={mount:function(){this.bind()},bind:function(){s.on("dragstart",e.Html.wrapper,this.dragstart)},unbind:function(){s.off("dragstart",e.Html.wrapper)},dragstart:function(t){t.preventDefault()}};return i.on("destroy",function(){n.unbind(),s.destroy()}),n}var Q='[data-glide-el^="controls"]',tt="".concat(Q,' [data-glide-dir*="<"]'),et="".concat(Q,' [data-glide-dir*=">"]');function it(t,e,i){var s=new M,n=!!V&&{passive:!0},o={mount:function(){this._n=e.Html.root.querySelectorAll('[data-glide-el="
1controls[nav]"]'),this._c=e.Html.root.querySelectorAll(Q),this._arrowControls={previous:e.Html.root.querySelectorAll(tt),next:e.Html.root.querySelectorAll(et)},this.addBindings()},setActive:function(){for(var t=0;t<this._n.length;t++)this.addClass(this._n[t].children)},removeActive:function(){for(var t=0;t<this._n.length;t++)this.removeClass(this._n[t].children)},addClass:function(e){var i=t.settings,s=e[t.index];s&&(s.classList.add(i.classes.nav.active),R(s).forEach(function(t){t.classList.remove(i.classes.nav.active)}))},removeClass:function(e){var i=e[t.index];null==i||i.classList.remove(t.settings.classes.nav.active)},setArrowState:function(){if(!t.settings.rewind){var i=o._arrowControls.next,s=o._arrowControls.previous;this.resetArrowState(i,s),0===t.index&&this.disableArrow(s),t.index===e.Run.length&&this.disableArrow(i)}},resetArrowState:function(){for(var e=t.settings,i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];s.forEach(function(t){D(t).forEach(function(t){t.classList.remove(e.classes.arrow.disabled)})})},disableArrow:function(){for(var e=t.settings,i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];s.forEach(function(t){D(t).forEach(function(t){t.classList.add(e.classes.arrow.disabled)})})},addBindings:function(){for(var t=0;t<this._c.length;t++)this.bind(this._c[t].children)},removeBindings:function(){for(var t=0;t<this._c.length;t++)this.unbind(this._c[t].children)},bind:function(t){for(var e=0;e<t.length;e++)s.on("click",t[e],this.click),s.on("touchstart",t[e],this.click,n)},unbind:function(t){for(var e=0;e<t.length;e++)s.off(["click","touchstart"],t[e])},click:function(t){V||"touchstart"!==t.type||t.preventDefault();var i=t.currentTarget.getAttribute("data-glide-dir");e.Run.make(e.Direction.resolve(i))}};return A(o,"items",{get:function(){return o._c}}),i.on(["mount.after","move.after"],function(){o.setActive()}),i.on(["mount.after","run"],function(){o.setArrowState()}),i.on("destroy",function(){o.removeBindings(),o.removeActive(),s.destroy()}),o}function st(t,e,i){var s=new M,n={mount:function(){this.enable(),this.start(),t.settings.hoverpause&&this.bind()},enable:function(){this._e=!0},disable:function(){this._e=!1},start:function(){var s=this;this._e&&(this.enable(),t.settings.autoplay&&x(this._i)&&(this._i=setInterval(function(){s.stop(),e.Run.make(">"),s.start(),i.emit("autoplay")},this.time)))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var t=this;s.on("mouseover",e.Html.root,function(){t._e&&t.stop()}),s.on("mouseout",e.Html.root,function(){t._e&&t.start()})},unbind:function(){s.off(["mouseover","mouseout"],e.Html.root)}};return A(n,"time",{get:function(){var i=e.Html.slides[t.index].getAttribute("data-glide-autoplay");return b(i||t.settings.autoplay)}}),i.on(["destroy","update"],function(){n.unbind()}),i.on(["run.before","swipe.start","update"],function(){n.stop()}),i.on(["pause","destroy"],function(){n.disable(),n.stop()}),i.on(["run.after","swipe.end"],function(){n.start()}),i.on(["play"],function(){n.enable(),n.start()}),i.on("update",function(){n.mount()}),i.on("destroy",function(){s.destroy()}),n}function nt(t){return C(t)?(e=t,Object.keys(e).sort().reduce(function(t,i){return t[i]=e[i],t[i],t},{})):(_("Breakpoints option must be an object"),{});var e}function ot(t,e,i){var s=new M,n=t.settings,o=nt(n.breakpoints),r=Object.assign({},n),a={match:function(t){if(void 0!==window.matchMedia)for(var e in t)if(t.hasOwnProperty(e)&&window.matchMedia("(max-width: ".concat(e,"px)")).matches)return t[e];return r}};return Object.assign(n,a.match(o)),s.on("resize",window,k(function(){t.settings=P(n,a.match(o))},t.settings.throttle)),i.on("update",function(){o=nt(o),r=Object.assign({},n)}),i.on("destroy",function(){s.off("resize",window)}),a}var rt={Html:function(t,e,i){var s={mount:function(){this.root=t.selector,this.track=this.root.querySelector('[data-glide-el="track"]'),this.collectSlides()},collectSlides:function(){this.slides=D(this.wrapper.children).filter(function(e){return!e.classList.contains(t.settings.classes.slide.clone)})}};return A(s,"root",{get:function(){return s._r},set:function(t){S(t)&&(t=document.querySelector(t)),null!==t?s._r=t:_("Root element must be a existing Html node")}}),A(s,"track",{get:function(){return s._t},set:function(t){s._t=t}}),A(s,"wrapper",{get:function(){return s.track.children[0]}}),i.on("update",function(){s.collectSlides()}),s}
vendor: 8,919 bytes, line 1
1,Translate:function(t,e,i){var s={set:function(i){var s=function(t,e,i){var s=[F,N,U,Z].concat(t._t,[q]);return{mutate:function(n){for(var o=0;o<s.length;o++){var r=s[o];E(r)&&E(r().modify)?n=r(t,e,i).modify(n):_("Transformer should be a function that returns an object with `modify()` method")}return n}}}(t,e).mutate(i),n="translate3d(".concat(-1*s,"px, 0px, 0px)");e.Html.wrapper.style.mozTransform=n,e.Html.wrapper.style.webkitTransform=n,e.Html.wrapper.style.transform=n},remove:function(){e.Html.wrapper.style.transform=""},getStartIndex:function(){var i=e.Sizes.length,s=t.index,n=t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?i+(s-n):(s+n)%i},getTravelDistance:function(){var i=e.Sizes.slideWidth*t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?-1*i:i}};return i.on("move",function(n){if(!t.isType("carousel")||!e.Run.isOffset())return s.set(n.movement);e.Transition.after(function(){i.emit("translate.jump"),s.set(e.Sizes.slideWidth*t.index)});var o=e.Sizes.slideWidth*e.Translate.getStartIndex();return s.set(o-e.Translate.getTravelDistance())}),i.on("destroy",function(){s.remove()}),s},Transition:function(t,e,i){var s=!1,n={compose:function(e){var i=t.settings;return s?"".concat(e," 0ms ").concat(i.animationTimingFunc):"".concat(e," ").concat(this.duration,"ms ").concat(i.animationTimingFunc)},set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";e.Html.wrapper.style.transition=this.compose(t)},remove:function(){e.Html.wrapper.style.transition=""},after:function(t){setTimeout(function(){t()},this.duration)},enable:function(){s=!1,this.set()},disable:function(){s=!0,this.set()}};return A(n,"duration",{get:function(){var i=t.settings;return t.isType("slider")&&e.Run.offset?i.rewindDuration:i.animationDuration}}),i.on("move",function(){n.set()}),i.on(["build.before","resize","translate.jump"],function(){n.disable()}),i.on("run",function(){n.enable()}),i.on("destroy",function(){n.remove()}),n},Direction:function(t,e,i){var s={mount:function(){this.value=t.settings.direction},resolve:function(t){var e=t.slice(0,1);return this.is("rtl")?t.split(e).join(H[e]):t},is:function(t){return this.value===t},addClass:function(){e.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){e.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return A(s,"value",{get:function(){return s._v},set:function(t){B.indexOf(t)>-1?s._v=t:_("Direction value must be `ltr` or `rtl`")}}),i.on(["destroy","update"],function(){s.removeClass()}),i.on("update",function(){s.mount()}),i.on(["build.before","update"],function(){s.addClass()}),s},Peek:function(t,e,i){var s={mount:function(){this.value=t.settings.peek}};return A(s,"value",{get:function(){return s._v},set:function(t){C(t)?(t.before=b(t.before),t.after=b(t.after)):t=b(t),s._v=t}}),A(s,"reductor",{get:function(){var e=s.value,i=t.settings.perView;return C(e)?e.before/i+e.after/i:2*e/i}}),i.on(["resize","update"],function(){s.mount()}),s},Sizes:function(t,e,i){var s={setupSlides:function(){for(var t="".concat(this.slideWidth,"px"),i=e.Html.slides,s=0;s<i.length;s++)i[s].style.width=t},setupWrapper:function(){e.Html.wrapper.style.width="".concat(this.wrapperSize,"px")},remove:function(){for(var t=e.Html.slides,i=0;i<t.length;i++)t[i].style.width="";e.Html.wrapper.style.width=""}};return A(s,"length",{get:function(){return e.Html.slides.length}}),A(s,"width",{get:function(){return e.Html.track.offsetWidth}}),A(s,"wrapperSize",{get:function(){return s.slideWidth*s.length+e.Gaps.grow+e.Clones.grow}}),A(s,"slideWidth",{get:function(){return s.width/t.settings.perView-e.Peek.reductor-e.Gaps.reductor}}),i.on(["build.before","resize","update"],function(){s.setupSlides(),s.setupWrapper()}),i.on("destroy",function(){s.remove()}),s},Gaps:function(t,e,i){var s={apply:function(t){for(var i=0,s=t.length;i<s;i++){var n=t[i].style,o=e.Direction.value;n[z[o][0]]=0!==i?"".concat(this.value/2,"px"):"",i!==t.length-1?n[z[o][1]]="".concat(this.value/2,"px"):n[z[o][1]]=""}},remove:function(t){for(var e=0,i=t.length;e<i;e++){var s=t[e].style;s.marginLeft="",s.marginRight=""}}};return A(s,"value",{get:function(){return b(t.settings.gap)}}),A(s,"grow",{get:function(){return s.value*e.Sizes.length}}),A(s,"reductor",{get:function(){var e=t.settings.perView;return s.value*(e-1)/e}}),i.on(["build.after","update"],k(function(){s.apply(e.Html.wrapper.children)},30)),i.on("destroy",function(){s.remove(e.Html.wrapper.children)}),s},Move:function(t,e,i){var s={mount:function(){this._o=0},make:function(){var t=this,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.offset=s,i.emit("move",{movement:this.value}),e.Transition.after(function(){i.emit("move.after",{movement:t.value})})}};return A(s,"offset",{get:function(){return s._o},set:function(t){s._o=x(t)?0:b(t)}}),A(s,"translate",{get:function(){return e.Sizes.slideWidth*t.index}}),A(s,"value",{get:function(){var t=this.offset,i=this.translate;return e.Direction.is("rtl")?i+t:i-t}}),i.on(["build.before","run"],function(){s.make()}),s},Clones:function(t,e,i){var s={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=e.Html.slides,n=t.settings,o=n.perView,r=n.classes,a=n.cloningRatio;if(s.length>0)for(var l=o+ +!!t.settings.peek+Math.round(o/2),h=s.slice(0,l).reverse(),c=s.slice(-1*l),d=0;d<Math.max(a,Math.floor(o/s.length));d++){for(var u=0;u<h.length;u++){var p=h[u].cloneNode(!0);p.classList.add(r.slide.clone),i.push(p)}for(var m=0;m<c.length;m++){var g=c[m].cloneNode(!0);g.classList.add(r.slide.clone),i.unshift(g)}}return i},append:function(){for(var t=this.items,i=e.Html,s=i.wrapper,n=i.slides,o=Math.floor(t.length/2),r=t.slice(0,o).reverse(),a=t.slice(-1*o).reverse(),l="".concat(e.Sizes.slideWidth,"px"),h=0;h<a.length;h++)s.appendChild(a[h]);for(var c=0;c<r.length;c++)s.insertBefore(r[c],n[0]);for(var d=0;d<t.length;d++)t[d].style.width=l},remove:function(){for(var t=this.items,i=0;i<t.length;i++)e.Html.wrapper.removeChild(t[i])}};return A(s,"grow",{get:function(){return(e.Sizes.slideWidth+e.Gaps.value)*s.items.length}}),i.on("update",function(){s.remove(),s.mount(),s.append()}),i.on("build.before",function(){t.isType("carousel")&&s.append()}),i.on("destroy",function(){s.remove()}),s},Resize:function(t,e,i){var s=new M,n={mount:function(){this.bind()},bind:function(){s.on("resize",window,k(function(){i.emit("resize")},t.settings.throttle))},unbind:function(){s.off("resize",window)}};return i.on("destroy",function(){n.unbind(),s.destroy()}),n},Build:function(t,e,i){var s={mount:function(){i.emit("build.before"),this.typeClass(),this.activeClass(),i.emit("build.after")},typeClass:function(){e.Html.root.classList.add(t.settings.classes.type[t.settings.type])},activeClass:function(){var i=t.settings.classes,s=e.Html.slides[t.index];s&&(s.classList.add(i.slide.active),R(s).forEach(function(t){t.classList.remove(i.slide.active)}))},removeClasses:function(){var i=t.settings.classes,s=i.type,n=i.slide;e.Html.root.classList.remove(s[t.settings.type]),e.Html.slides.forEach(function(t){t.classList.remove(n.active)})}};return i.on(["destroy","update"],function(){s.removeClasses()}),i.on(["resize","update"],function(){s.mount()}),i.on("move.after",function(){s.activeClass()}),s},Run:function(t,e,i){var s={mount:function(){this._o=!1},make:function(s){var n=this;t.disabled||(!t.settings.waitForTransition||t.disable(),this.move=s,i.emit("run.before",this.move),this.calculate(),i.emit("run",this.move),e.Transition.after(function(){n.isStart()&&i.emit("run.start",n.move),n.isEnd()&&i.emit("run.end",n.move),n.isOffset()&&(n._o=!1,i.emit("run.offset",n.move)),i.emit("run.after",n.move),t.enable()}))},calculate:function(){var e=this.move,i=this.length,n=e.steps,o=e.direction,r=1;if("="===o)return t.settings.bound&&b(n)>i?void(t.index=i):void(t.index=n);if(">"!==o||">"!==n)if("<"!==o||"<"!==n){if("|"===o&&(r=t.settings.perView||1),">"===o||"|"===o&&">"===n){var a=function(e){var i=t.index;if(t.isType("carousel"))return i+e;return i+(e-i%e)}(r);return a>i&&(this._o=!0),void(t.index=function(e,i){var n=s.length;if(e<=n)return e;if(t.isType("carousel"))return e-(n+1);if(t.settings.rewind)return s.isBound()&&!s.isEnd()?n:0;if(s.isBound())return n;return Math.floor(n/i)*i}(a,r))}if("<"===o||"|"===o&&"<"===n){var l=function(e){var i=t.index;if(t.isType("carousel"))return i-e;var s=Math.ceil(i/e);return(s-1)*e}(r);return l<0&&(this._o=!0),void(t.index=function(e,i){var n=s.length;if(e>=0)return e;if(t.isType("carousel"))return e+(n+1);if(t.settings.rewind)return s.isBound()&&s.isStart()?n:Math.floor(n/i)*i;return 0}(l,r))}_("Invalid direction pattern [".concat(o).concat(n,"] has been used"))}else t.index=0;else t.index=i},isStart:function(){return t.index<=0},isEnd:function(){return t.index>
1=this.length},isOffset:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t?!!this._o&&("|>"===t?"|"===this.move.direction&&">"===this.move.steps:"|<"===t?"|"===this.move.direction&&"<"===this.move.steps:this.move.direction===t):this._o},isBound:function(){return t.isType("slider")&&"center"!==t.settings.focusAt&&t.settings.bound}};return A(s,"move",{get:function(){return this._m},set:function(t){var e=t.substr(1);this._m={direction:t.substr(0,1),steps:e?b(e)?b(e):e:0}}}),A(s,"length",{get:function(){var i=t.settings,s=e.Html.slides.length;return this.isBound()?s-1-(b(i.perView)-1)+b(i.focusAt):s-1}}),A(s,"offset",{get:function(){return this._o}}),s}},at=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(i,t);var e=f(i);function i(){return c(this,i),e.apply(this,arguments)}return u(i,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(m(i.prototype),"mount",this).call(this,Object.assign({},rt,t))}}]),i}(I),lt=i(5331);const ht=".glide";class ct{constructor(t,e,i){this.elementSelector=e,this.sourceGroupElement=t,this.doShowNav=i,this.sourceElements=this.getSourceElements()}getSourceElements(){return null===this.sourceGroupElement?null:this.sourceGroupElement.querySelectorAll(this.elementSelector)}transform(t){if(null===this.sourceGroupElement||null===this.sourceElements)return null;if(0===this.sourceElements.length)return null;let e=this.sourceGroupElement.querySelector(ht);null!==e&&e.remove();let i=document.createRange().createContextualFragment('\n<div class="glide">\n    <div class="glide__track" data-glide-el="track">\n        <ul class="glide__slides">            \n        </ul>\n    </div>\n    <div class="glide__arrows" data-glide-el="controls">\n        <button class="glide__arrow glide__arrow--left" data-glide-dir="<">prev</button>\n        <button class="glide__arrow glide__arrow--right" data-glide-dir=">">next</button>\n    </div>\n</div>');if(!this.doShowNav){let t=i.querySelector(".glide__arrows");lt.A.removeHtmlElementNode(t)}let s=i.querySelector(".glide__slides"),n=null;for(let e=0;e<this.sourceElements.length;e++){let i=this.sourceElements[e];e%t===0&&(n=document.createElement("li"),n.className="glide__slide",s.appendChild(n)),n.appendChild(i)}return this.sourceGroupElement.appendChild(i),this.sourceGroupElement.querySelector(ht)}}class dt{static toCamelCase(t){return t.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})}}const ut="data-slider-";class pt{constructor(t){this.element=t,this.options=Object.assign({autoplay:!1,slidesElementsSelector:"",numberOfRowsPerSlide:1,showNav:"true"},pt._parseOptions(t))}static _parseOptions(t){let e={},i=t.attributes;for(let t=0;t<i.length;t++)0===i[t].name.indexOf(ut)&&(e[dt.toCamelCase(i[t].name.replace(ut,""))]=i[t].value);return e}getAutoPlay(){return!1!==this.options.autoplay&&parseInt(this.options.autoplay)}getSlidesElementsSelector(){return this.options.slidesElementsSelector}doShowNav(){return"true"===this.options.showNav}getNumberOfRowsPerSlide(){return parseInt(this.options.numberOfRowsPerSlide)}}class mt{static getOuterWidth(t){var e=t.getBoundingClientRect();let i=getComputedStyle(t),s=parseFloat(i.marginLeft),n=parseFloat(i.marginRight);return e.width+s+n}static calclateNumberOfFittingItemsPerSlide(t,e,i){if(null==e||null==t)return 1;var s=t.getBoundingClientRect();let n=Math.floor(s.width/mt.getOuterWidth(e))*i;return n<1&&(n=1*i),n}}function gt(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class vt{constructor(){this.options={elementSelector:"img.eventgallery-lazyme",classForLoaded:"eventgallery-lazyload-loaded",classForLoading:"eventgallery-lazyload-loading"},"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&("isIntersecting"in window.IntersectionObserverEntry.prototype||Ob
1ject.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}),this.imageObserver=new IntersectionObserver((t,e)=>{t.forEach(t=>{if(t.isIntersecting){const e=t.target;if(e.dataset.src&&!vt.knownImageUrls.includes(e.dataset.src)){e.setAttribute("srcset",e.dataset.src),vt.knownImageUrls.push(e.dataset.src),e.classList.remove("eventgallery-lazyload-unloaded"),e.classList.add("eventgallery-lazyload-loading"),e.classList.remove("eventgallery-lazyload-loaded");let t=document.createElement("img");t.src=e.dataset.src,t.onload=()=>{e.classList.remove("eventgallery-lazyload-loading"),e.classList.add("eventgallery-lazyload-loaded")}}}})}))}static watchImages(){if(vt.instance)return;vt.instance=new vt;let t=document.querySelectorAll(vt.instance.options.elementSelector);for(let e=0;e<t.length;e++){let i=t[e];i.dataset.src&&(vt.instance.imageObserver?vt.instance.imageObserver.observe(i):i.setAttribute("srcset",i.dataset.src))}}}gt(vt,"instance",null),gt(vt,"knownImageUrls",[]);class ft{constructor(t){this.sourceGroupElement=t,this.sliderTransformator=null}start(){this.sliderOptions=ft._loadOptions(this.sourceGroupElement);let t=this.sliderOptions.getSlidesElementsSelector(),e=this.sliderOptions.getAutoPlay(),i=this.sliderOptions.doShowNav(),s=mt.calclateNumberOfFittingItemsPerSlide(this.sourceGroupElement,this.sourceGroupElement.querySelector(t),this.sliderOptions.getNumberOfRowsPerSlide());null==this.sliderTransformator&&(this.sliderTransformator=new ct(this.sourceGroupElement,t,i));let n=this.sliderTransformator.transform(s);null!==n&&(vt.watchImages(),new at(n,{type:"carousel",perView:1,gap:15,keyboard:!1,autoplay:e}).mount({Swipe:J,Controls:it,Breakpoints:ot,Autoplay:st,Anchor:r,Images:$}))}static _loadOptions(t){return new pt(t)}}var yt=i(9259),wt=i(5598);class _t{constructor(t,e,i){this.options=yt.M.mergeObjects(this.options,i),this.imageTagContainer=t,this.index=e,this.calculatedWidth=0,this.calcSize()}calcSize(){let t=this.imageTagContainer.querySelector("img");if(!t)return;let e=[this.imageTagContainer,t];this.glueLeft=yt.M.calcBorderWidth(e,["paddingLeft","marginLeft","borderLeftWidth"]),this.glueRight=yt.M.calcBorderWidth(e,["paddingRight","marginRight","borderRightWidth"]),this.glueTop=yt.M.calcBorderWidth(e,["paddingTop","marginTop","borderTopWidth"]),this.glueBottom=yt.M.calcBorderWidth(e,["paddingBottom","marginBottom","borderBottomWidth"]),this.width=parseInt(t.getAttribute("data-width")),this.height=parseInt(t.getAttribute("data-height")),void 0===this.width&&(this.width=yt.M.getElementWidth(this.imageTagContainer)-this.glueLeft-this.glueRight),void 0===this.height&&(this.height=yt.M.getElementHeight(this.imageTagContainer)-this.glueTop-this.glueBottom)}getImageTagHeight(){return parseFloat(window.getComputedStyle(this.imageTagContainer).height)+this.glueTop+this.glueBottom}setSize(t,e){this.calcSize();let i=t-this.glueLeft-this.glueRight,s=e-this.glueTop-this.glueBottom,n=this.width/this.height,o=this.imageTagContainer.querySelector("img");if(!o)return;let r=new wt.A,a=o.getAttribute("data-src");a||(a="");let l=o.getAttribute("data-secret");if(null!==l){let t=o.getAttribute("data-secret_o"),e=o.getAttribute("data-secret_h"),n=o.getAttribute("data-secret_k"),h=o.getAttribute("data-farm"),c=o.getAttribute("data-server"),d=o.getAttribute("data-id");a=r.getFlickrURL(h,c,l,e,n,t,d,i,s,this.width,this.height)}else{let t=r.getSize(i,s,n);a=r.adjustImageURL(a,t)}o.setAttribute("data-src",a),o.setAttribute("srcset",a),o.style.display="block",o.style.margin="auto",i>0&&(o.style.width=i+"px"),s>0&&(o.style.height=s+"px")}hide(){this.imageTagContainer.style.display="none"}show(){this.imageTagContainer.style.display="block"}}class bt{constructor(t){this.options={maxWidth:960,maxHeight:250,heightJitter:0,adjustHeight:!0,doFillLastRow:!0},this.options=yt.M.mergeObjects(this.options,t),this.isLastRow=!1,this.images=[],this.width=0,this.options.heightJitter>0&&(this.options.maxHeight=Math.floor(this.options.maxHeight+2*Math.random()*this.options.heightJitter-this.options.heightJitter))}add(t){let e=Math.floor(t.width/t.height*this.options.maxHeight),i=this.width+e<=this.options.maxWidth||0===this.images.length;if(!i){Math.abs(this.options.maxWidth-this.width-e)/this.options.maxWidth<.2&&(i=!0)}return!!i&&(this.images.push(t),t.calculatedWidth=e,this.width=this.width+e,!0)}processRow(){let t,e,i;for(t=this.options.maxWidth-this.width,this.isLastRow&&!1===this.options.doFillLastRow&&t>=0?(t>=0&&(t=0),e=this.options.maxHeight):e=this.options.maxHeight/(this.width/this.options.maxWidth),!1===this.options.adjustHeight&&(e=this.options.maxHeight),i=0;i<this.images.length;i++){var s=this.images[i],n=s.calculatedWidth,o=n/this.width*t;s.setSize(n+o,e)}}}class St{constructor(t){this.options={rowHeightPercentage:100,rowHeight:150,rowHeightJitter:0,minImageWidth:150,doFillLastRow:!1,imagesetContainer:null,imageset:null,firstImageRowHeight:2,initComplete:function(){},resizeStart:function(){},resizeComplete:function(){}},this.images=[],this.eventgalleryPageWidth=0,this.width=null,this.options=yt.M.mergeObjects(this.options,t),void 0!==t&&this.initialize()}initialize(){this.width=yt.M.getElementWidth(this.options.imagesetContainer),this.eventgalleryPageWidth=this.width,this.images=[],yt.M.forEach(this.options.imageset,(t,e)=>{this.images.push(new _t(t,e))}),window.addEventListener("resize",()=>{window.clearTimeout(this.eventgalleryTimer),this.eventgalleryTimer=setTimeout(()=>{let t=yt.M.getElementWidth(this.options.imagesetContainer);this.width=t,this.eventgalleryPageWidth!==t&&(this.options.resizeStart(),this.eventgalleryPageWidth=t,this.options.imagesetContainer.style.minHeight=this.options.rowHeight*this.images.length+"px",this.processList(),this.options.imagesetContainer.style.minHeight="0px",this.options.resizeComplete())},500)}),this.options.imagesetContainer&&(this.options.imagesetContainer.style.minHeight=this.options.rowHeight*this.images.length+"px",this.processList(),this.options.imagesetContainer.style.minHeight="0px"),window.setTimeout(this.options.initComplete,1)}getRowWidth(){var t=this.width;if(window.getComputedStyle){let e=window.getComputedStyle(this.options.imagesetContainer);if("border-box"===e.boxSizing){let i=parseFloat(e.paddingLeft),s=parseFloat(e.paddingRight),n=parseFloat(e.borderLeftWidth),o=parseFloat(e.borderRightWidth);t=Math.floor(parseFloat(e.width)-i-s-n-o)-1}else t=Math.floor(parseFloat(e.width))-1}else t-=1;return t}processList(){let t,e=this.getRowWidth(),i=this.images.slice(0);if(0!==i.length){if(this.options.firstImageRowHeight>1){let s=i.shift();s.hide(),e=this.getRowWidth(),s.show();let n=this.options.firstImageRowHeight*this.options.rowHeight,o=Math.floor(s.width/s.height*n);o+this.options.minImageWidth>=e&&(o=e),s.setSize(o,n);let r=this.options.rowHeight;r=(n+.05)/this.options.firstImageRowHeight,n>s.getImageTagHeight()&&(r=(n+1)/this.options.firstImageRowHeight),t={maxWidth:e-o,maxHeight:r,adjustHeight:!1},t.maxWidth>0?this.generateRows(i,this.options.firstImageRowHeight,t,!1):i.unshift(s)}t={maxWidth:e,maxHeight:this.options.rowHeight,heightJitter:this.options.rowHeightJitter,doFillLastRow:this.options.doFillLastRow},this.generateRows(i,99999,t,!0)}}generateRows(t,e,i,s){let n=new bt(i);for(;t.length>0&&e>0;){if(n.add(t[0]))t.shift();else{if(n.processRow(),0===--e)break;n=new bt(i)}}s&&(n.isLastRow=!0),n.processRow()}}class Ct extends St{constructor(t){super(t)}processList(){let t=this.width;yt.M.forEach(this.images,e=>{let i=Math.ceil(t*this.options.rowHeightPercentage/100);e.setSize(t,i)})}}class Et extends St{constructor(t){super(t)}processList(){let t=this.width;yt.M.forEach(this.images,e=>{let i=Math.round(e.height/e.width*t),s=t;"height"==this.options.adjustMode&&e.height>e.width&&(i=t,s=Math.round(e.width/e.height*i)),e.setSize(s,i)})}}class xt extends St{constructor(t){super(t)}processList(){var t=this.width;yt.M.forEach(this.images,e=>
1{e.setSize(t,t)})}}class Lt{constructor(t){this.options={tiles:null,tilesContainer:[]},this.options=yt.M.mergeObjects(this.options,t),this.tiles=this.options.tiles,this.tilesContainer=this.options.tilesContainer}calculate(){let t=1;if(yt.M.forEach(this.tiles,t=>{t.style.visibility="hidden",t.style.position="static",t.style.float="left"}),!this.tiles.length)return;let e=this.tiles[0],i=e.offsetWidth,s=e.offsetTop;for(let e=1;e<this.tiles.length&&this.tiles[e].offsetTop===s;e++)t++;let n=[];for(let e=0;e<t;e++)n.push(0);yt.M.forEach(this.tiles,t=>{let e=this.getSmallestColumn(n);t.style.left=e*i+"px",t.style.top=n[e]+"px",n[e]=n[e]+t.offsetHeight,t.style.visibility="visible",t.style.position="absolute",t.style.float="none"}),this.tilesContainer.style.height=n[this.getHighestColumn(n)]+"px"}getSmallestColumn(t){let e=t[0],i=0;for(let s=0;s<t.length;s++)e>t[s]&&(e=t[s],i=s);return i}getHighestColumn(t){let e=t[0],i=0;for(let s=0;s<t.length;s++)e<t[s]&&(e=t[s],i=s);return i}}!function(t){document.addEventListener("DOMContentLoaded",()=>{function e(){vt.watchImages()}yt.M.forEach(document.querySelectorAll(".eventgallery-events-gridlist"),t=>{let i=t.querySelectorAll(".event-thumbnails .event-thumbnail"),s={rowHeightPercentage:100,imagesetContainer:t.querySelector(".event-thumbnails"),imageset:i,initComplete:function(){e()},resizeStart:function(){},resizeComplete:function(){document.dispatchEvent(lt.A.createNewEvent("scroll",null))}};i.length>0&&new Ct(s)}),yt.M.forEach(document.querySelectorAll(".eventgallery-events-tiles-list"),t=>{var i={imagesetContainer:t.querySelector(".event-thumbnails"),imageset:t.querySelectorAll(".event-thumbnail"),eventgalleryTilesCollection:null,initComplete:function(){e();var s={tiles:t.querySelectorAll(".eventgallery-tiles .eventgallery-tile"),tilesContainer:t.querySelector(".eventgallery-tiles")};i.eventgalleryTilesCollection=new Lt(s),i.eventgalleryTilesCollection.calculate(),window.addEventListener("load",function(){i.eventgalleryTilesCollection.calculate()})},resizeStart:function(){},resizeComplete:function(){i.eventgalleryTilesCollection.calculate(),document.dispatchEvent(lt.A.createNewEvent("scroll",null))}};new Et(i)}),yt.M.forEach(document.querySelectorAll(".eventgallery-event-tiles-list"),t=>{let i={imagesetContainer:t.querySelector(".event-thumbnails"),imageset:t.querySelectorAll(".event-thumbnail"),adjustMode:"width",eventgalleryTilesCollection:null,initComplete:function(){let s={tiles:t.querySelectorAll(".eventgallery-tiles .eventgallery-tile"),tilesContainer:t.querySelector(".eventgallery-tiles")};i.eventgalleryTilesCollection=new Lt(s),i.eventgalleryTilesCollection.calculate(),window.addEventListener("load",function(){i.eventgalleryTilesCollection.calculate()}),e()},resizeStart:function(){},resizeComplete:function(){i.eventgalleryTilesCollection.calculate(),document.dispatchEvent(lt.A.createNewEvent("scroll",null))}};new Et(i)}),yt.M.forEach(document.querySelectorAll(".eventgallery-event-gridlist"),t=>{let i={imagesetContainer:t.querySelector(".event-thumbnails"),imageset:t.querySelectorAll(".event-thumbnail"),adjustMode:"height",initComplete:function(){e()},resizeStart:function(){},resizeComplete:function(){document.dispatchEvent(lt.A.createNewEvent("scroll",null))}};new Et(i)}),yt.M.forEach(document.querySelectorAll(".eventgallery-imagelist"),t=>{let i={rowHeight:parseInt(t.getAttribute("data-rowheight")),rowHeightJitter:parseInt(t.getAttribute("data-rowheightjitter")),firstImageRowHeight:parseInt(t.getAttribute("data-firstimagerowheight")),doFillLastRow:"true"===t.getAttribute("data-dofilllastrow"),imagesetContainer:t,imageset:t.querySelectorAll(".thumbnail"),initComplete:function(){e()},resizeStart:function(){},resizeComplete:function(){document.dispatchEvent(lt.A.createNewEvent("scroll",null))}};new St(i)}),yt.M.forEach(document.querySelectorAll(".eventgallery-event-square-list"),t=>{let i={imagesetContainer:t.querySelector(".event-thumbnails"),imageset:t.querySelectorAll(".event-thumbnail"),adjustMode:"width",initComplete:function(){e()},resizeStart:function(){},resizeComplete:function(){document.dispatchEvent(lt.A.createNewEvent("scroll",null))}};new xt(i)}),t.lightbox=new s.default,t.lightbox.initPhotoSwipe(),window.EventGalleryLightboxConfiguration&&window.EventGalleryLightboxConfiguration.doTrackImageHits&&document.addEventListener("eventgallery-lightbox-changed",t=>{const e=window.EventGalleryLightboxConfiguration.trackImageHitsUrl;fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:t.detail.id})}).catch(t=>{console.error("Error while tracking event:",t)})}),yt.M.forEach(document.querySelectorAll(".singleimage-zoom"),t=>{t.addEventListener("click",t=>{t.preventDefault(),document.getElementById("bigimagelink").click()})}),yt.M.forEach(document.querySelectorAll("a[data-eventgallery-overlay]"),t=>{let e=t.getAttribute("href");t.addEventListener("click",t=>{t.preventDefault(),(new n.A).openOverlay(document.getElementById(e.replace("#","")).innerHTML)})}),document.dispatchEvent(lt.A.createNewEvent("eventgallery-images-added"));
1let i=document.querySelectorAll('div[data-slider="1"]');for(let t=0;t<i.length;t++){let e=new ft(i[t]),s=null;e.start(),window.addEventListener("resize",()=>{null!=s&&clearTimeout(s),s=setTimeout(()=>e.start(),1e3)},!1)}let o=document.querySelectorAll("*[data-eg-link]");for(let t=0;t<o.length;t++){o[t].addEventListener("click",t=>{if("A"===t.target.nodeName)return;t.stopPropagation(),t.preventDefault();let e=t.currentTarget.getAttribute("data-eg-link");e&&(window.location.href=e)},!1)}})}(window.Eventgallery)},5598(t,e,i){i.d(e,{A:()=>n});var s=i(9259);class n{constructor(t){this.options={availableSizes:[160,320,512,720,1024,1440],flickrSizes:{100:"t",240:"m",320:"n",500:"-",640:"z",800:"c",1024:"b",1600:"h",2048:"k"}},this.options=s.M.mergeObjects(this.options,t)}adjustImageURL(t,e){return t=(t=(t=(t=(t=(t=(t=t.replace(/=w(\d+)$/,"=w"+e)).replace(/=w(\d+)-nu$/,"=w"+e+"-nu")).replace(/\/s(\d*)\//,"/s"+e+"/")).replace(/\/s(\d*)-c\//,"/s"+e+"-c/")).replace(/width=(\d+)/,"width="+e)).replace(/\/mainimage_nocrop_(\d+)_/,"/mainimage_nocrop_"+e+"_")).replace(/\/nocrop_(\d+)_/,"/nocrop_"+e+"_")}getFlickrURL(t,e,i,s,n,o,r,a,l,h,c){let d,u,p,m,g,v=this.getMinSizes(a,l,h,c);if(v.width>v.height?(d=v.width,u=h):(d=v.height,u=c),p="o",u>=d)for(let t in this.options.flickrSizes)if(t>d){p=this.options.flickrSizes[t];break}switch("o"===p&&""===o&&(p="k"),"k"===p&&""===n&&(p="h"),"h"===p&&""===s&&(p="b"),p){case"o":m=o;break;case"h":m=s;break;case"k":m=n;break;default:m=i}return g="-"==p?"":"_"+p,"https://live.staticflickr.com/"+e+"/"+r+"_"+m+g+".jpg"}getSize(t,e,i){let s=this.options.availableSizes[0];for(let n=0;n<this.options.availableSizes.length;n++){let o,r,a=this.options.availableSizes[n];if(s>this.options.availableSizes[0])break;let l=n==this.options.availableSizes.length-1;i>=1?(o=a>t,r=a/i>e,(o&&r||l)&&(s=a)):(r=a>e,o=a*i>t,(o&&r||l)&&(s=a))}return s}getMinSizes(t,e,i,s){let n,o,r=i/s;return i>s?t>e?(o=t,n=t/r,n<e&&(n=e,o=e*r)):(n=e,o=e*r,o<t&&(o=t,n=e*r)):t>e?(o=t,n=t/r,n<e&&(n=e,o=e*r)):(n=e,o=e*r,o<t&&(o=t,n=t/r)),{width:Math.ceil(o),height:Math.ceil(n)}}}},3417(t,e,i){i.d(e,{A:()=>o});var s=i(5331),n=i(9259);class o{constructor(t=document.body){this.isOpen=!1,this.myDialogElement=null,this.parent=t,this.onClosed=void 0,this.onLoad=void 0}openOverlay(t,e=void 0){this.isOpen=!0;const i=document.getElementById("eventgallery-overlay");i&&i.remove(),this.myDialogElement=document.createElement("dialog"),this.myDialogElement.id="eventgallery-overlay",this.myDialogElement.innerHTML='<i class="egfa egfa-2x egfa-cog egfa-spin"></i>',this.parent.append(this.myDialogElement),this.myDialogElement.addEventListener("click",t=>{t.target===t.currentTarget&&this.closeOverlay()}),this.myDialogElement.showModal(),t.startsWith("http")||t.startsWith("/")?o._getRemoteData(t,t=>{this._addContent(t)},e):this._addContent('<button class="btn-close-overlay eventgallery-close-overlay"><i class="egfa egfa-2x egfa-times-circle"></i></button>'+t)}static _getRemoteData(t,e,i=void 0){fetch(t,i).then(t=>t.text()).then(t=>e(t))}_addContent(t){n.M.insertAndExecute(this.myDialogElement,t);let e=this.myDialogElement.getElementsByClassName("eventgallery-close-overlay");for(let t=0;t<e.length;t++)e[t].addEventListener("click",t=>{t.preventDefault(),this.closeOverlay()});void 0!==this.onLoad&&this.onLoad(),document.dispatchEvent(s.A.createNewEvent("eventgallery-images-added",{isOverlay:!0}))}closeOverlay(){this.isOpen=!1,this.myDialogElement&&(this.myDialogElement.close(),s.A.removeHtmlElementNode(this.myDialogElement),this.myDialogElement=null),void 0!==this.onClosed&&this.onClosed()}}},2739(t,e,i){var s=i(1767);let n=new(i(5296).A);var o=i(3417),r=i(9259),a=i(5598);class l{constructor(t,e,i,s,n){this.options={prevHandle:null,nextHandle:null,countHandle:null,titleTarget:null,initialIndex:-1,showSocialMediaButton:!0,showCartButton:!0,showCartConnector:!1,cartConnectorLinkRel:"",activeClass:"thumbnail-active",touchContainerSelector:"#bigimageContainer",maxHeight:280,...n},this.galleryElement=t,this.nav=t.querySelector(".navigation"),this.image=t.querySelector(".image"),this.abortController=new AbortController,this.currentIndex=-1,this.currentPageNumber=-1,this.imagesPerFirstPage=0,this.imagesPerPage=0,this.lastPage=1,this.thumbs=Array.from(e),this.bigImageContainer=i,this.bigImage=i.querySelector("img"),this.pageContainer=s,this.introElement=s.querySelector(".information-inline"),this.countLinks=[],this.convertThumbs();let o=document.location.href;this.initialIndex=parseInt(r.M.getUrlHashParameterValue(o,"imageno")),isNaN(this.initialIndex)&&(this.initialIndex=0),this.createControls(),this.createGallerySlides(),this.adjustImageSize(),this.distribute(),this.gotoPage(0),-1!==this.options.initialIndex?this.selectByIndex(this.options.initialIndex):0!==this.initialIndex&&this.selectByIndex(this.initialIndex),this.nav.classList.add("is-ready");const a=this.abortController.signal;window.addEventListener("load",()=>{this.resizePage()},{signal:a}),window.addEventListener("resize",()=>{this.resizePage()},{signal:a}),window.addEventListener("popstate",()=>{this.selectFromUrl()},{signal:a}),this.observeLayoutChanges()}get selectedContainer(){return-1===this.currentIndex?void 0:this.thumbs[this.currentIndex]}measureThumbSize(){const t=this.thumbs[0],e=t.querySelector("a.event-thumbnail")??t;this.galleryElement.classList.add("is-measuring");const i={width:Math.round(e.getBoundingClientRect().width),height:Math.round(t.getBoundingClientRect().height)};return this.galleryElement.classList.remove("is-measuring"),i.width>0&&this.galleryElement.style.setProperty("--eg-thumb-size",i.width+"px"),i}measureIntroHeight(t){const e=t.parentElement;return null!==e&&this.introElement?Math.max(0,t.getBoundingClientRect().top-e.getBoundingClientRect().top):0}measureCapacity(){const t=this.pageContainer.querySelector(".event-thumbnails");if(null===t)return{perFirstPage:this.thumbs.length,perPage:this.thumbs.length};const e=this.measureThumbSize(),i=window.getComputedStyle(t),s=parseFloat(i.rowGap)||0,n=i.gridTemplateColumns;let o=n&&"none"!==n?n.split(" ").filter(t=>""!==t).length:0;o<1&&(o=1);const r=e.height+s,a=t=>r>0?Math.max(1,Math.floor((t+s)/r)):1,l=this.options.maxHeight;
1return{perFirstPage:o*a(l-this.measureIntroHeight(t)),perPage:o*a(l)}}distribute(t=!1){if(0===this.thumbs.length)return!1;const e=this.measureCapacity();return!(!t&&e.perFirstPage===this.imagesPerFirstPage&&e.perPage===this.imagesPerPage)&&(this.imagesPerFirstPage=e.perFirstPage,this.imagesPerPage=e.perPage,this.lastPage=this.pageForIndex(this.thumbs.length-1)+1,this.buildPages(),this.resetPagingBar(),this.currentPageNumber=-1,!0)}buildPages(){const t=[];for(let e=0;e<this.lastPage;e++){const i=document.createElement("div");i.classList.add("page"),0===e&&this.introElement&&i.appendChild(this.introElement);const s=document.createElement("div");s.classList.add("event-thumbnails");const n=this.firstIndexOfPage(e),o=Math.min(n+(0===e?this.imagesPerFirstPage:this.imagesPerPage),this.thumbs.length);for(let t=n;t<o;t++)s.appendChild(this.thumbs[t]);i.appendChild(s),t.push(i)}this.pageContainer.replaceChildren(...t)}resetPagingBar(){this.countLinks.forEach(t=>t.remove()),this.countLinks=[]}pageForIndex(t){return t<this.imagesPerFirstPage?0:Math.floor((t-this.imagesPerFirstPage)/this.imagesPerPage)+1}firstIndexOfPage(t){return t<=0?0:(t-1)*this.imagesPerPage+this.imagesPerFirstPage}destroy(){this.abortController.abort(),window.clearTimeout(this.eventgalleryAjaxResizeTimer),this.resizeObserver?.disconnect(),[this.prevLink,this.zoomLink,this.nextLink,this.add2cartLink,this.cartConnectorLink,this.socialmediabutton,this.bigImageBackdrop].forEach(t=>t?.remove()),this.resetPagingBar(),this.nav.classList.remove("is-ready"),this.selectedContainer&&this.deselect(this.selectedContainer),this.currentIndex=-1}adjustImageSize(){let t=new a.A;const e=r.M.getElementWidth(this.bigImageContainer),i=r.M.getElementHeight(this.bigImageContainer);this.nav.querySelectorAll("#thumbs .event-thumbnail").forEach(s=>{let n,o=s.getAttribute("data-width"),r=s.getAttribute("data-height"),a=o/r,l=s.getAttribute("data-secret"),h=e,c=Math.round(e/a);if(i>0&&c>i&&(c=Math.round(i),h=Math.round(i*a)),null!==l){let e=s.getAttribute("data-secret_o"),i=s.getAttribute("data-secret_h"),a=s.getAttribute("data-secret_k"),d=s.getAttribute("data-farm"),u=s.getAttribute("data-server"),p=s.getAttribute("data-file");n=t.getFlickrURL(d,u,l,i,a,e,p,h,c,o,r)}else{let e=t.getSize(h,c,a);n=t.adjustImageURL(s.getAttribute("rel"),e)}s.setAttribute("rel",n)})}resizePage(){window.clearTimeout(this.eventgalleryAjaxResizeTimer),this.eventgalleryAjaxResizeTimer=setTimeout(()=>this.refreshLayout(),500)}refreshLayout(){this.adjustImageSize(),this.distribute(),this.resetThumbs(),this.showPage(this.pageForIndex(this.currentIndex))}observeLayoutChanges(){document.fonts?.ready?.then(()=>this.refreshLayout()).catch(()=>{}),"undefined"!=typeof ResizeObserver&&(this.lastObservedWidth=this.nav.getBoundingClientRect().width,this.resizeObserver=new ResizeObserver(t=>{const e=t[0].contentRect.width;e!==this.lastObservedWidth&&(this.lastObservedWidth=e,this.resizePage())}),this.resizeObserver.observe(this.nav))}createGallerySlides(){this.slides=this.thumbs.map(t=>{let e=t.getElementsByTagName("A")[0],i=decodeURIComponent(e.getAttribute("data-description")),s={w:e.getAttribute("data-width"),h:e.getAttribute("data-height"),src:e.getAttribute("href"),title:i,type:e.getAttribute("data-type")};return"video"===s.type&&(e.dataset.pswpVideoSources?s.videoSources=JSON.parse(e.dataset.pswpVideoSources):e.dataset.pswpVideoSrc?s.videoSrc=e.dataset.pswpVideoSrc:s.videoSrc=e.getAttribute("href")),s})}createControls(){const t=this.abortController.signal;if(this.bigImageBackdrop=document.createElement("img"),this.bigImageBackdrop.id="bigImageBackdrop",this.bigImageBackdrop.alt="",this.bigImageBackdrop.setAttribute("aria-hidden","true"),this.bigImageContainer.prepend(this.bigImageBackdrop),this.prevLink=document.createElement("a"),this.prevLink.href="#",this.prevLink.classList.add("link","jsgallery-prev"),this.prevLink.addEventListener("click",t=>this.prevImage(t),{signal:t}),this.zoomLink=document.createElement("a"),this.zoomLink.href="#",this.zoomLink.classList.add("link","jsgallery-zoom"),this.zoomLink.addEventListener("click",t=>{t.preventDefault(),this.bigImageClickHandler()},{signal:t}),this.nextLink=document.createElement("a"),this.nextLink.href="#",this.nextLink.classList.add("link","jsgallery-next"),this.nextLink.addEventListener("click",t=>this.nextImage(t),{signal:t}),this.bigImage.parentElement.appendChild(this.prevLink),this.bigImage.parentElement.appendChild(this.zoomLink),this.bigImage.parentElement.appendChild(this.nextLink),this.bigImage.addEventListener("load",()=>this.showBigImage(),{signal:t}),this.options.showCartButton&&(this.add2cartLink=document.createElement("a"),this.add2cartLink.href="#",this.add2cartLink.classList.add("eventgallery-add2cart","eventgallery-openAdd2cart","jsgallery-add2cart"),this.add2cartLink.innerHTML='<i class="egfa egfa-2x egfa-cart-plus"></i>',this.bigImage.parentElement.appendChild(this.add2cartLink),this.dispatchRebindAdd2CartButtons()),this.options.showCartConnector&&(this.cartConnectorLink=document.createElement("a"),this.cartConnectorLink.href="#",this.cartConnectorLink.id="ajax-cartconnector",this.cartConnectorLink.classList.add("button-cart-connector","jsgallery-cartconnector"),this.cartConnectorLink.innerHTML='<i class="egfa egfa-2x egfa-cart-plus"></i>',this.cartConnectorLink.setAttribute("rel",this.options.cartConnectorLinkRel),this.bigImage.parentElement.appendChild(this.cartConnectorLink)),this.options.showSocialMediaButton){let e=document.createElement("div");e.innerHTML='<a id="ajax-social-media-button" class="social-share-button jsgallery-socialmedia" rel="nofollow" href="#"><i class="egfa egfa-2x egfa-share-alt-square"></i></a>',this.socialmediabutton=e.firstChild,this.socialmediabutton.addEventListener("click",t=>{t.preventDefault();let e=this.socialmediabutton.getAttribute("data-href");(new o.A).openOverlay(e)},{signal:t}),this.bigImage.parentElement.appendChild(this.socialmediabutton)}document.addEventListener("keydown",t=>this.keyboardHandler(t),{signal:t});
1!function(t,e,i,s,o){let r,a,l,h,c=!1,d=!1;n.off("touchstart",t),n.off("touchend",t),n.on("touchstart",t,t=>{l=t.targetTouches[0]},!1,!0),n.on("touchend",t,t=>(h=t.changedTouches[0],!!h&&(a=h.pageY-l.pageY,r=h.pageX-l.pageX,a=h.pageY-l.pageY,Math.abs(a)>=50&&(c=!0),r=h.pageX-l.pageX,!c&&Math.abs(r)>=50&&(d=!0),c?(c=!1,Math.abs(a)>=100&&o&&o()):d?(d=!1,r>=50?e&&e():r<=-50&&i&&i()):Math.abs(a)<5&&Math.abs(r)<5&&(void 0!==s?s():t.target.click()),!0)),!1,!0)}(document.querySelector(this.options.touchContainerSelector),t=>{this.prevImage(t)},t=>{this.nextImage(t)},()=>{this.bigImage.click()},null)}dispatchRebindAdd2CartButtons(){document.dispatchEvent(new CustomEvent(s.s.rebindAdd2CartButtons,{detail:null}))}keyboardHandler(t){if(!0===window.Eventgallery.lightbox?.isOpen())return;const e=t.key;return/^[1-9]$/.test(e)?(t.preventDefault(),void this.gotoPage(parseInt(e,10)-1)):"ArrowLeft"===e?(t.preventDefault(),void this.prevImage(t)):void("ArrowRight"===e&&(t.preventDefault(),this.nextImage(t)))}resetThumbs(){this.selectIndex(this.currentIndex,!0)}convertThumbs(){this.thumbs.forEach((t,e)=>{this.convertThumb(t,e)})}convertThumb(t,e){void 0!==t&&(t.addEventListener("click",e=>{e.preventDefault(),this.select(t)},{signal:this.abortController.signal}),t.setAttribute("data-counter",e))}select(t,e=!1){return this.selectIndex(this.thumbs.indexOf(t),e)}selectIndex(t,e=!1){if(t<0||t>=this.thumbs.length)return!1;if(t===this.currentIndex&&!e)return!1;void 0!==this.selectedContainer&&this.deselect(this.selectedContainer),this.currentIndex=t;const i=this.thumbs[t];this.updateUrl(t),this.showPage(this.pageForIndex(t)),i.classList.add(this.options.activeClass);let s=i.children[0];return this.options.showCartButton&&("image"===i.getElementsByTagName("A")[0]?.getAttribute("data-type")?(this.add2cartLink.setAttribute("data-id",s.getAttribute("data-id")),this.add2cartLink.style.display="block"):this.add2cartLink.style.display="none"),this.options.showCartConnector&&(this.cartConnectorLink.setAttribute("data-folder",s.getAttribute("data-folder")),this.cartConnectorLink.setAttribute("data-file",s.getAttribute("data-file")),this.cartConnectorLink.setAttribute("href",decodeURIComponent(s.getAttribute("data-cart-connector-link")))),this.options.showSocialMediaButton&&this.socialmediabutton.setAttribute("data-href",decodeURIComponent(s.getAttribute("data-social-sharing-link"))),this.dispatchRebindAdd2CartButtons(),this.setImage(s),!0}selectByIndex(t){(t<0||this.thumbs.length<=t)&&(t=0),this.selectIndex(t)}updateUrl(t){history&&history.replaceState&&history.replaceState(history.state,"",r.M.addUrlHashParameter(window.location.href,"imageno",t))}selectFromUrl(){const t=parseInt(r.M.getUrlHashParameterValue(document.location.href,"imageno"));isNaN(t)||t===this.currentIndex||this.selectByIndex(t)}deselect(t){t.classList.remove(this.options.activeClass)}bigImageClickHandler(){this.createGallerySlides(),window.Eventgallery.lightbox.openPhotoSwipe(this.currentIndex,this.slides,!0,!1,!1),window.Eventgallery.lightbox.setAfterChangeEventListener(()=>{let t=window.Eventgallery.lightbox.getCurrentSlide().gid;this.slides.length>0&&t===this.slides[0].gid&&this.selectByIndex(window.Eventgallery.lightbox.getCurrentIndex())})}setImage(t){this.bigImage.style.opacity="0.1";let e=t.getAttribute("rel"),i=decodeURIComponent(t.getAttribute("data-description"));!0===window.Eventgallery.lightbox?.isOpen()&&window.Eventgallery.lightbox.gotoSlide(this.currentIndex);const s=this.options.titleTarget?this.galleryElement.querySelector(this.options.titleTarget):null;s&&(s.innerHTML=i??""),this.bigImage.setAttribute("src",e),this.bigImageBackdrop.setAttribute("src",e)}showBigImage(){this.image.style.opacity=1,this.bigImage.style.opacity=1}prevImage(t){void 0!==t&&t.preventDefault(),this.selectByIndex(this.currentIndex-1)}nextImage(t){void 0!==t&&t.preventDefault(),this.selectByIndex(this.currentIndex+1)}showPage(t){return!(t<0||t>=this.lastPage)&&(t===this.currentPageNumber||(this.currentPageNumber=t,this.pageContainer.style.transform="translateX(calc((-100% - var(--eg-page-gap, 0px)) * "+t+"))",this.updateHandles()),!0)}gotoPage(t){this.showPage(t)&&this.selectIndex(this.firstIndexOfPage(t))}updateHandles(){this.options.prevHandle&&(this.options.prevHandle.style.opacity=0===this.currentPageNumber?0:1),this.options.nextHandle&&(this.options.nextHandle.style.opacity=this.currentPageNumber===this.lastPage-1?0:1),this.options.countHandle&&this.updatePagingBar(this.currentPageNumber,this.lastPage)}
1updatePagingBar(t,e){if(!(e<=1)){if(0===this.countLinks.length)for(let t=0;t<e;t++)this.createCountLink(t);if(e>9){this.countLinks.forEach(t=>{t.hidden=!1});let i=e,s=0,n=e-t-1;t>4&&n>4?(s=t-4,i=t+5):(t<=4&&(s=0,i=t+5+(4-t)),n<=4&&(s=t-4-(4-n),i=e));for(let t=0;t<s;t++)this.countLinks[t].hidden=!0;for(let t=i;t<e;t++)this.countLinks[t].hidden=!0}this.countLinks.forEach(t=>t.classList.remove("active")),this.countLinks[t].classList.add("active")}}createCountLink(t){let e=document.createElement("A");e.href="#",e.classList.add("page-link"),e.textContent=t+1,e.addEventListener("click",e=>{e.preventDefault(),this.gotoPage(t)},{signal:this.abortController.signal});let i=document.createElement("LI");i.classList.add("count"),i.classList.add("page-item"),i.id="count"+t,i.appendChild(e),this.countLinks.push(i),this.options.countHandle.appendChild(i)}}document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".ajaxpaging").forEach(t=>{new l(t,t.querySelectorAll(".ajax-thumbnail-container"),t.querySelector("#bigimageContainer"),t.querySelector("#pageContainer"),{prevHandle:t.querySelector("#prev"),nextHandle:t.querySelector("#next"),countHandle:t.querySelector("#count"),titleTarget:"#bigImageDescription",showSocialMediaButton:"true"==t.getAttribute("data-showSocialMediaButton"),showCartButton:"true"==t.getAttribute("data-showCartButton"),showCartConnector:"true"==t.getAttribute("data-showCartConnector"),cartConnectorLinkRel:t.getAttribute("data-cartConnectorLinkRel"),maxHeight:parseInt(t.getAttribute("data-maxHeight"),10)||280})})})},8409(t,e,i){function s(t,e,i){const s=document.createElement(e);return t&&(s.className=t),i&&i.appendChild(s),s}function n(t,e){return t.x=e.x,t.y=e.y,void 0!==e.id&&(t.id=e.id),t}function o(t){t.x=Math.round(t.x),t.y=Math.round(t.y)}function r(t,e){const i=Math.abs(t.x-e.x),s=Math.abs(t.y-e.y);return Math.sqrt(i*i+s*s)}function a(t,e){return t.x===e.x&&t.y===e.y}function l(t,e,i){return Math.min(Math.max(t,e),i)}function h(t,e,i){let s=`translate3d(${t}px,${e||0}px,0)`;return void 0!==i&&(s+=` scale3d(${i},${i},1)`),s}function c(t,e,i,s){t.style.transform=h(e,i,s)}i.r(e),i.d(e,{default:()=>Ct});function d(t,e,i,s){t.style.transition=e?`${e} ${i}ms ${s||"cubic-bezier(.4,0,.22,1)"}`:"none"}function u(t,e,i){t.style.width="number"==typeof e?`${e}px`:e,t.style.height="number"==typeof i?`${i}px`:i}const p="idle",m="loading",g="loaded",v="error";function f(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}let y=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{y=!0}}))}catch(t){}class w{constructor(){this._pool=[]}add(t,e,i,s){this._toggleListener(t,e,i,s)}remove(t,e,i,s){this._toggleListener(t,e,i,s,!0)}removeAll(){this._pool.forEach(t=>{this._toggleListener(t.target,t.type,t.listener,t.passive,!0,!0)}),this._pool=[]}_toggleListener(t,e,i,s,n,o){if(!t)return;const r=n?"removeEventListener":"addEventListener";e.split(" ").forEach(e=>{if(e){o||(n?this._pool=this._pool.filter(s=>s.type!==e||s.listener!==i||s.target!==t):this._pool.push({target:t,type:e,listener:i,passive:s}));const a=!!y&&{passive:s||!1};t[r](e,i,a)}})}}function _(t,e){if(t.getViewportSizeFn){const i=t.getViewportSizeFn(t,e);if(i)return i}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function b(t,e,i,s,n){let o=0;if(e.paddingFn)o=e.paddingFn(i,s,n)[t];else if(e.padding)o=e.padding[t];else{const i="padding"+t[0].toUpperCase()+t.slice(1);e[i]&&(o=e[i])}return Number(o)||0}function S(t,e,i,s){return{x:e.x-b("left",t,e,i,s)-b("right",t,e,i,s),y:e.y-b("top",t,e,i,s)-b("bottom",t,e,i,s)}}class C{constructor(t){this.slide=t,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(t){this.currZoomLevel=t,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(t){const{pswp:e}=this.slide,i=this.slide["x"===t?"width":"height"]*this.currZoomLevel,s=b("x"===t?"left":"top",e.options,e.viewportSize,this.slide.data,this.slide.index),n=this.slide.panAreaSize[t];this.center[t]=Math.round((n-i)/2)+s,this.max[t]=i>n?Math.round(n-i)+s:this.center[t],this.min[t]=i>n?s:this.center[t]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(t,e){return l(e,this.max[t],this.min[t])}}class E{constructor(t,e,i,s){this.pswp=s,this.options=t,this.itemData=e,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,e,i){const s={x:t,y:e};this.elementSize=s,this.panAreaSize=i;const n=i.x/s.x,o=i.y/s.y;this.fit=Math.min(1,n<o?n:o),this.fill=Math.min(1,n>o?n:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){const e=t+"ZoomLevel",i=this.options[e];if(i)return"function"==typeof i?i(this):"fill"===i?this.fill:"fit"===i?this.fit:Number(i)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,3*this.fit),this.elementSize&&t*this.elementSize.x>4e3&&(t=4e3/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}class x{constructor(t,e,i){this.data=t,this.index=e,this.pswp=i,this.isActive=e===i.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!i.opener.isOpen,this.zoomLevels=new E(i.options,t,e,i),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:e}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=s("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new C(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(t){t&&!this.isActive?this.activate():!t&&this.isActive&&this.deactivate()}append(t){this.holderElement=t,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:t}=this;!this.heavyAppended&&t.opener.isOpen&&!t.mainScroll.isShifted()&&(this.isActive,1)&&(this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this})))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel!==this.zoomLevels.initial&&this.isActive?(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y)):(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize())}updateContentSize(t){const e=this.currentResolution||this.zoomLevels.initial;if(!e)return;const i=Math.round(this.width*e)||this.pswp.viewportSize.x,s=Math.round(this.height*e)||this.pswp.viewportSize.y;(this.sizeChanged(i,s)||t)&&this.content.setDisplayedSize(i,s)}sizeChanged(t,e){return(t!==this.prevDisplayedWidth||e!==this.prevDisplayedHeight)&&(this.prevDisplayedWidth=t,this.prevDisplayedHeight=e,!0)}getPlaceholderElement(){var t;return null===(t=this.content.placeholder)||void 0===t?void 0:t.element}
vendor: 15,585 bytes, line 1
1zoomTo(t,e,i,s){const{pswp:n}=this;if(!this.isZoomable()||n.mainScroll.isShifted())return;n.dispatch("beforeZoomTo",{destZoomLevel:t,centerPoint:e,transitionDuration:i}),n.animations.stopAllPan();const r=this.currZoomLevel;s||(t=l(t,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(t),this.pan.x=this.calculateZoomToPanOffset("x",e,r),this.pan.y=this.calculateZoomToPanOffset("y",e,r),o(this.pan);const a=()=>{this._setResolution(t),this.applyCurrentZoomPan()};i?n.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:a,duration:i,easing:n.options.easing}):a()}toggleZoom(t){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,t,this.pswp.options.zoomAnimationDuration)}setZoomLevel(t){this.currZoomLevel=t,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(t,e,i){if(0===this.bounds.max[t]-this.bounds.min[t])return this.bounds.center[t];e||(e=this.pswp.getViewportCenterPoint()),i||(i=this.zoomLevels.initial);const s=this.currZoomLevel/i;return this.bounds.correctPan(t,(this.pan[t]-e[t])*s+e[t])}panTo(t,e){this.pan.x=this.bounds.correctPan("x",t),this.pan.y=this.bounds.correctPan("y",e),this.applyCurrentZoomPan()}isPannable(){return Boolean(this.width)&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return Boolean(this.width)&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),n(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(t,e,i){i/=this.currentResolution||this.zoomLevels.initial,c(this.container,t,e,i)}calculateSize(){const{pswp:t}=this;n(this.panAreaSize,S(t.options,t.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),t.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const t=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return h(this.pan.x,this.pan.y,t)}_setResolution(t){t!==this.currentResolution&&(this.currentResolution=t,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}class L{constructor(t){this.gestures=t,this.pswp=t.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&n(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:t,prevP1:e,dragAxis:i}=this.gestures,{currSlide:s}=this.pswp;if("y"===i&&this.pswp.options.closeOnVerticalDrag&&s&&s.currZoomLevel<=s.zoomLevels.fit&&!this.gestures.isMultitouch){const i=s.pan.y+(t.y-e.y);if(!this.pswp.dispatch("verticalDrag",{panY:i}).defaultPrevented){this._setPanWithFriction("y",i,.6);const t=1-Math.abs(this._getVerticalDragRatio(s.pan.y));this.pswp.applyBgOpacity(t),s.applyCurrentZoomPan()}}else{this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),s&&(o(s.pan),s.applyCurrentZoomPan()))}}end(){const{velocity:t}=this.gestures,{mainScroll:e,currSlide:i}=this.pswp;let s=0;if(this.pswp.animations.stopAll(),e.isShifted()){const i=(e.x-e.getCurrSlideX())/this.pswp.viewportSize.x;t.x<-.5&&i<0||t.x<.1&&i<-.5?(s=1,t.x=Math.min(t.x,0)):(t.x>.5&&i>0||t.x>-.1&&i>.5)&&(s=-1,t.x=Math.max(t.x,0)),e.moveIndexBy(s,!0,t.x)}i&&i.currZoomLevel>i.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(t){const{velocity:e}=this.gestures,{currSlide:i}=this.pswp;if(!i)return;const{pan:s,bounds:n}=i,o=s[t],r=this.pswp.bgOpacity<1&&"y"===t,a=o+function(t,e){return t*e/(1-e)}(e[t],.995);if(r){const t=this._getVerticalDragRatio(o),e=this._getVerticalDragRatio(a);if(t<0&&e<-.4||t>0&&e>.4)return void this.pswp.close()}const h=n.correctPan(t,a);if(o===h)return;const c=h===a?1:.82,d=this.pswp.bgOpacity,u=h-o;this.pswp.animations.startSpring({name:"panGesture"+t,isPan:!0,start:o,end:h,velocity:e[t],dampingRatio:c,onUpdate:e=>{if(r&&this.pswp.bgOpacity<1){const t=1-(h-e)/u;this.pswp.applyBgOpacity(l(d+(1-d)*t,0,1))}s[t]=Math.floor(e),i.applyCurrentZoomPan()}})}_panOrMoveMainScroll(t){const{p1:e,dragAxis:i,prevP1:s,isMultitouch:n}=this.gestures,{currSlide:o,mainScroll:r}=this.pswp,a=e[t]-s[t],l=r.x+a;if(!a||!o)return!1;if("x"===t&&!o.isPannable()&&!n)return r.moveTo(l,!0),!0;const{bounds:h}=o,c=o.pan[t]+a;if(this.pswp.options.allowPanToNext&&"x"===i&&"x"===t&&!n){const e=r.getCurrSlideX(),i=r.x-e,s=a>0,n=!s;if(c>h.min[t]&&s){if(h.min[t]<=this.startPan[t])return r.moveTo(l,!0),!0;this._setPanWithFriction(t,c)}else if(c<h.max[t]&&n){if(this.startPan[t]<=h.max[t])return r.moveTo(l,!0),!0;this._setPanWithFriction(t,c)}else if(0!==i){if(i>0)return r.moveTo(Math.max(l,e),!0),!0;if(i<0)return r.moveTo(Math.min(l,e),!0),!0}else this._setPanWithFriction(t,c)}else"y"===t&&(r.isShifted()||h.min.y===h.max.y)||this._setPanWithFriction(t,c);return!1}_getVerticalDragRatio(t){var e,i;return(t-(null!==(e=null===(i=this.pswp.currSlide)||void 0===i?void 0:i.bounds.center.y)&&void 0!==e?e:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(t,e,i){const{currSlide:s}=this.pswp;if(!s)return;const{pan:n,bounds:o}=s;if(o.correctPan(t,e)!==e||i){const s=Math.round(e-n[t]);n[t]+=s*(i||.35)}else n[t]=e}}function A(t,e,i){return t.x=(e.x+i.x)/2,t.y=(e.y+i.y)/2,t}class P{constructor(t){this.gestures=t,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1}start(){const{currSlide:t}=this.gestures.pswp;t&&(this._startZoomLevel=t.currZoomLevel,n(this._startPan,t.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:t,startP1:e,p2:i,startP2:s,pswp:n}=this.gestures,{currSlide:o}=n;if(!o)return;const a=o.zoomLevels.min,l=o.zoomLevels.max;if(!o.isZoomable()||n.mainScroll.isShifted())return;A(this._startZoomPoint,e,s),A(this._zoomPoint,t,i);let h=1/r(e,s)*r(t,i)*this._startZoomLevel;if(h>o.zoomLevels.initial+o.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),h<a)if(n.options.pinchToClose&&!this._wasOverFitZoomLevel&&this._startZoomLevel<=o.zoomLevels.initial){const t=1-(a-h)/(a/1.2);n.dispatch("pinchClose",{bgOpacity:t}).defaultPrevented||n.applyBgOpacity(t)}else h=a-.15*(a-h);else h>l&&(h=l+.05*(h-l));o.pan.x=this._calculatePanForZoomLevel("x",h),o.pan.y=this._calculatePanForZoomLevel("y",h),o.setZoomLevel(h),o.applyCurrentZoomPan()}end(){const{pswp:t}=this.gestures,{currSlide:e}=t;(!e||e.currZoomLevel<e.zoomLevels.initial)&&!this._wasOverFitZoomLevel&&t.options.pinchToClose?t.close():this.correctZoomPan()}_calculatePanForZoomLevel(t,e){const i=e/this._startZoomLevel;return this._zoomPoint[t]-(this._startZoomPoint[t]-this._startPan[t])*i}correctZoomPan(t){const{pswp:e}=this.gestures,{currSlide:i}=e;if(null==i||!i.isZoomable())return;0===this._zoomPoint.x&&(t=!0);const s=i.currZoomLevel;let o,r=!0;s<i.zoomLevels.initial?o=i.zoomLevels.initial:s>i.zoomLevels.max?o=i.zoomLevels.max:(r=!1,o=s);const h=e.bgOpacity,c=e.bgOpacity<1,d=n({x:0,y:0},i.pan);let u=n({x:0,y:0},d);t&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=s,n(this._startPan,d)),r&&(u={x:this._calculatePanForZoomLevel("x",o),y:this._calculatePanForZoomLevel("y",o)}),i.setZoomLevel(o),u={x:i.bounds.correctPan("x",u.x),y:i.bounds.correctPan("y",u.y)},i.setZoomLevel(s);const p=!a(u,d);if(!p&&!r&&!c)return i._setResolution(o),void i.applyCurrentZoomPan();e.animations.stopAllPan(),e.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:t=>{if(t/=1e3,p||r){if(p&&(i.pan.x=d.x+(u.x-d.x)*t,i.pan.y=d.y+(u.y-d.y)*t),r){const e=s+(o-s)*t;i.setZoomLevel(e)}i.applyCurrentZoomPan()}c&&e.bgOpacity<1&&e.applyBgOpacity(l(h+(1-h)*t,0,1))},onComplete:()=>{i._setResolution(o),i.applyCurrentZoomPan()}})}}function T(t){return!!t.target.closest(".pswp__container")}class I{constructor(t){this.gestures=t}click(t,e){const i=e.target.classList,s=i.contains("pswp__img"),n=i.contains("pswp__item")||i.contains("pswp__zoom-wrap");s?this._doClickOrTapAction("imageClick",t,e):n&&this._doClickOrTapAction("bgClick",t,e)}tap(t,e){T(e)&&this._doClickOrTapAction("tap",t,e)}doubleTap(t,e){T(e)&&this._doClickOrTapAction("doubleTap",t,e)}_doClickOrTapAction(t,e,i){var s;const{pswp:n}=this.gestures,{currSlide:o}=n,r=t+"Action",a=n.options[r];if(!n.dispatch(r,{point:e,originalEvent:i}).defaultPrevented)if("function"!=typeof a)switch(a){case"close":case"next":n[a]();break;case"zoom":null==o||o.toggleZoom(e);break;case"zoom-or-close":null!=o&&o.isZoomable()&&o.zoomLevels.secondary!==o.zoomLevels.initial?o.toggleZoom(e):n.options.clickToCloseNonZoomable&&n.close();break;case"toggle-controls":null===(s=this.gestures.pswp.element)||void 0===s||s.classList.toggle("pswp--ui-visible")}else a.call(n,e,i)}}class O{constructor(t){this.pswp=t,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(t.options.allowPanToNext=!1),this.drag=new L(this),this.zoomLevels=new P(this),this.tapHandler=new I(this),t.on("bindEvents",()=>{t.events.add(t.scrollWrap,"click",this._onClick.bind(this)),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),t.scrollWrap&&(t.scrollWrap.ontouchmove=()=>{},t.scrollWrap.ontouchend=()=>{})):this._bindEvents("mouse","down","up")})}_bindEvents(t,e,i,s){const{pswp:n}=this,{events:o}=n,r=s?t+s:"";o.add(n.scrollWrap,t+e,this.onPointerDown.bind(this)),o.add(window,t+"move",this.onPointerMove.bind(this)),o.add(window,t+i,this.onPointerUp.bind(this)),r&&o.add(n.scrollWrap,r,this.onPointerUp.bind(this))}onPointerDown(t){const e="mousedown"===t.type||"mouse"===t.pointerType;if(e&&t.button>0)return;const{pswp:i}=this;i.opener.isOpen?i.dispatch("pointerDown",{originalEvent:t}).defaultPrevented||(e&&(i.mouseDetected(),this._preventPointerEventBehaviour(t,"down")),i.animations.stopAll(),this._updatePoints(t,"down"),1===this._numActivePoints&&(this.dragAxis=null,n(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1):t.preventDefault()}onPointerMove(t){this._preventPointerEventBehaviour(t,"move"),this._numActivePoints&&(this._updatePoints(t,"move"),this.pswp.dispatch("pointerMove",{originalEvent:t}).defaultPrevented||(1!==this._numActivePoints||this.isDragging?this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop()):(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,n(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop()))))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(t){this._numActivePoints&&(this._updatePoints(t,"up"),this.pswp.dispatch("pointerUp",{originalEvent:t}).defaultPrevented||(0===this._numActivePoints&&(this._rafStopLoop(),this.isDragging?this._finishDrag():this.isZooming||this.isMultitouch||this._finishTap(t)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),1===this._numActivePoints&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?a(this.p1,this.prevP1)||this.drag.change():a(this.p1,this.prevP1)&&a(this.p2,this.prevP2)||this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(t){const e=Date.now(),i=e-this._intervalTime;i<50&&!t||(this.velocity.x=this._getVelocity("x",i),this.velocity.y=this._getVelocity("y",i),this._intervalTime=e,n(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(t){const{mainScroll:e}=this.pswp;if(e.isShifted())return void e.moveIndexBy(0,!0);if(t.type.indexOf("cancel")>0)return;if("mouseup"===t.type||"mouse"===t.pointerType)return void this.tapHandler.click(this.startP1,t);const i=this.pswp.options.doubleTapAction?300:0;this._tapTimer?(this._clearTapTimer(),r(this._lastStartP1,this.startP1)<25&&this.tapHandler.doubleTap(this.startP1,t)):(n(this._lastStartP1,this.startP1),this._tapTimer=setTimeout(()=>{this.tapHandler.tap(this.startP1,t),this._clearTapTimer()},i))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(t,e){const i=this.p1[t]-this._intervalP1[t];return Math.abs(i)>1&&e>5?i/e:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(t,e){this.pswp.applyFilters("preventPointerEvent",!0,t,e)&&t.preventDefault()}_updatePoints(t,e){if(this._pointerEventEnabled){const i=t,s=this._ongoingPointers.findIndex(t=>t.id===i.pointerId);"up"===e&&s>-1?this._ongoingPointers.splice(s,1):"down"===e&&-1===s?this._ongoingPointers.push(this._convertEventPosToPoint(i,{x:0,y:0})):s>-1&&this._convertEventPosToPoint(i,this._ongoingPointers[s]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&n(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&n(this.p2,this._ongoingPointers[1])}else{const i=t;this._numActivePoints=0,i.type.indexOf("touch")>-1?i.touches&&i.touches.length>0&&(this._convertEventPosToPoint(i.touches[0],this.p1),this._numActivePoints++,i.touches.length>1&&(this._convertEventPosToPoint(i.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(t,this.p1),"up"===e?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){n(this.prevP1,this.p1),n(this.prevP2,this.p2)}_updateStartPoints(){n(this.startP1,this.p1),n(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{const t=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(0!==t){const e=t>0?"x":"y";Math.abs(this.p1[e]-this.startP1[e])>=10&&(this.dragAxis=e)}}}_convertEventPosToPoint(t,e){return e.x=t.pageX-this.pswp.offset.x,e.y=t.pageY-this.pswp.offset.y,"pointerId"in t?e.id=t.pointerId:void 0!==t.identifier&&(e.id=t.identifier),e}_onClick(t){this.pswp.mainScroll.isShifted()&&(t.preventDefault(),t.stopPropagation())}}class k{constructor(t){this.pswp=t,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]}resize(t){const{pswp:e}=this,i=Math.round(e.viewportSize.x+e.viewportSize.x*e.options.spacing),s=i!==this.slideWidth;s&&(this.slideWidth=i,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEac
vendor: 7,208 bytes, line 1
1h((e,i)=>{s&&c(e.el,(i+this._containerShiftIndex)*this.slideWidth),t&&e.slide&&e.slide.resize()})}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let t=0;t<3;t++){const e=s("pswp__item","div",this.pswp.container);e.setAttribute("role","group"),e.setAttribute("aria-roledescription","slide"),e.setAttribute("aria-hidden","true"),e.style.display=1===t?"block":"none",this.itemHolders.push({el:e})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(t,e,i){const{pswp:s}=this;let n=s.potentialIndex+t;const o=s.getNumItems();if(s.canLoop()){n=s.getLoopedIndex(n);const e=(t+o)%o;t=e<=o/2?e:e-o}else n<0?n=0:n>=o&&(n=o-1),t=n-s.potentialIndex;s.potentialIndex=n,this._currPositionIndex-=t,s.animations.stopMainScroll();const r=this.getCurrSlideX();if(e){s.animations.startSpring({isMainScroll:!0,start:this.x,end:r,velocity:i||0,naturalFrequency:30,dampingRatio:1,onUpdate:t=>{this.moveTo(t)},onComplete:()=>{this.updateCurrItem(),s.appendHeavy()}});let t=s.potentialIndex-s.currIndex;if(s.canLoop()){const e=(t+o)%o;t=e<=o/2?e:e-o}Math.abs(t)>1&&this.updateCurrItem()}else this.moveTo(r),this.updateCurrItem();return Boolean(t)}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){var t;const{pswp:e}=this,i=this._prevPositionIndex-this._currPositionIndex;if(!i)return;this._prevPositionIndex=this._currPositionIndex,e.currIndex=e.potentialIndex;let s,n=Math.abs(i);n>=3&&(this._containerShiftIndex+=i+(i>0?-3:3),n=3,this.itemHolders.forEach(t=>{var e;null===(e=t.slide)||void 0===e||e.destroy(),t.slide=void 0}));for(let t=0;t<n;t++)i>0?(s=this.itemHolders.shift(),s&&(this.itemHolders[2]=s,this._containerShiftIndex++,c(s.el,(this._containerShiftIndex+2)*this.slideWidth),e.setContent(s,e.currIndex-n+t+2))):(s=this.itemHolders.pop(),s&&(this.itemHolders.unshift(s),this._containerShiftIndex--,c(s.el,this._containerShiftIndex*this.slideWidth),e.setContent(s,e.currIndex+n-t-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),e.animations.stopAllPan(),this.itemHolders.forEach((t,e)=>{t.slide&&t.slide.setIsActive(1===e)}),e.currSlide=null===(t=this.itemHolders[1])||void 0===t?void 0:t.slide,e.contentLoader.updateLazy(i),e.currSlide&&e.currSlide.applyCurrentZoomPan(),e.dispatch("change")}moveTo(t,e){if(!this.pswp.canLoop()&&e){let e=(this.slideWidth*this._currPositionIndex-t)/this.slideWidth;e+=this.pswp.currIndex;const i=Math.round(t-this.x);(e<0&&i>0||e>=this.pswp.getNumItems()-1&&i<0)&&(t=this.x+.35*i)}this.x=t,this.pswp.container&&c(this.pswp.container,t),this.pswp.dispatch("moveMainScroll",{x:t,dragging:null!=e&&e})}}const z={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},R=(t,e)=>e?t:z[t];class D{constructor(t){this.pswp=t,this._wasFocused=!1,t.on("bindEvents",()=>{t.options.trapFocus&&(t.options.initialPointerPos||this._focusRoot(),t.events.add(document,"focusin",this._onFocusIn.bind(this))),t.events.add(document,"keydown",this._onKeyDown.bind(this))});const e=document.activeElement;t.on("destroy",()=>{t.options.returnFocus&&e&&this._wasFocused&&e.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(t){const{pswp:e}=this;if(e.dispatch("keydown",{originalEvent:t}).defaultPrevented)return;if(function(t){return"button"in t&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}(t))return;let i,s,n=!1;const o="key"in t;switch(o?t.key:t.keyCode){case R("Escape",o):e.options.escKey&&(i="close");break;case R("z",o):i="toggleZoom";break;case R("ArrowLeft",o):s="x";break;case R("ArrowUp",o):s="y";break;case R("ArrowRight",o):s="x",n=!0;break;case R("ArrowDown",o):n=!0,s="y";break;case R("Tab",o):this._focusRoot()}if(s){t.preventDefault();const{currSlide:o}=e;e.options.arrowKeys&&"x"===s&&e.getNumItems()>1?i=n?"next":"prev":o&&o.currZoomLevel>o.zoomLevels.fit&&(o.pan[s]+=n?-80:80,o.panTo(o.pan.x,o.pan.y))}i&&(t.preventDefault(),e[i]())}_onFocusIn(t){const{template:e}=this.pswp;e&&document!==t.target&&e!==t.target&&!e.contains(t.target)&&e.focus()}}const M="cubic-bezier(.4,0,.22,1)";class B{constructor(t){var e;this.props=t;const{target:i,onComplete:s,transform:n,onFinish:o=()=>{},duration:r=333,easing:a=M}=t;this.onFinish=o;const l=n?"transform":"opacity",h=null!==(e=t[l])&&void 0!==e?e:"";this._target=i,this._onComplete=s,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{d(i,l,r,a),this._helperTimeout=setTimeout(()=>{i.addEventListener("transitionend",this._onTransitionEnd,!1),i.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},r+500),i.style[l]=h},30)},0)}_onTransitionEnd(t){t.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._helperTimeout&&clearTimeout(this._helperTimeout),d(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}class H{constructor(t,e,i){this.velocity=1e3*t,this._dampingRatio=e||.75,this._naturalFrequency=i||12,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(t,e){let i,s=0;e/=1e3;const n=Math.E**(-this._dampingRatio*this._naturalFrequency*e);if(1===this._dampingRatio)i=this.velocity+this._naturalFrequency*t,s=(t+i*e)*n,this.velocity=s*-this._naturalFrequency+i*n;else if(this._dampingRatio<1){i=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*t+this.velocity);const o=Math.cos(this._dampedFrequency*e),r=Math.sin(this._dampedFrequency*e);s=n*(t*o+i*r),this.velocity=s*-this._naturalFrequency*this._dampingRatio+n*(-this._dampedFrequency*t*r+this._dampedFrequency*i*o)}return s}}class q{constructor(t){this.props=t,this._raf=0;const{start:e,end:i,velocity:s,onUpdate:n,onComplete:o,onFinish:r=()=>{},dampingRatio:a,naturalFrequency:l}=t;this.onFinish=r;const h=new H(s,a,l);let c=Date.now(),d=e-i;const u=()=>{this._raf&&(d=h.easeFrame(d,Date.now()-c),Math.abs(d)<1&&Math.abs(h.velocity)<50?(n(i),o&&o(),this.onFinish()):(c=Date.now(),n(d+i),this._raf=requestAnimationFrame(u)))};this._raf=requestAnimationFrame(u)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}}class F{constructor(){this.activeAnimations=[]}startSpring(t){this._start(t,!0)}startTransition(t){this._start(t)}_start(t,e){const i=e?new q(t):new B(t);return this.activeAnimations.push(i),i.onFinish=()=>this.stop(i),i}stop(t){t.destroy();const e=this.activeAnimations.indexOf(t);e>-1&&this.activeAnimations.splice(e,1)}stopAll(){this.activeAnimations.forEach(t=>{t.destroy()}),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter(t=>!t.props.isPan||(t.destroy(),!1))}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter(t=>
vendor: 5,572 bytes, line 1
1!t.props.isMainScroll||(t.destroy(),!1))}isPanRunning(){return this.activeAnimations.some(t=>t.props.isPan)}}class N{constructor(t){this.pswp=t,t.events.add(t.element,"wheel",this._onWheel.bind(this))}_onWheel(t){t.preventDefault();const{currSlide:e}=this.pswp;let{deltaX:i,deltaY:s}=t;if(e&&!this.pswp.dispatch("wheel",{originalEvent:t}).defaultPrevented)if(t.ctrlKey||this.pswp.options.wheelToZoom){if(e.isZoomable()){let i=-s;1===t.deltaMode?i*=.05:i*=t.deltaMode?1:.002,i=2**i;const n=e.currZoomLevel*i;e.zoomTo(n,{x:t.clientX,y:t.clientY})}}else e.isPannable()&&(1===t.deltaMode&&(i*=18,s*=18),e.panTo(e.pan.x-i,e.pan.y-s))}}class U{constructor(t,e){var i;const n=e.name||e.className;let o=e.html;if(!1===t.options[n])return;"string"==typeof t.options[n+"SVG"]&&(o=t.options[n+"SVG"]),t.dispatch("uiElementCreate",{data:e});let r="";e.isButton?(r+="pswp__button ",r+=e.className||`pswp__button--${e.name}`):r+=e.className||`pswp__${e.name}`;let a=e.isButton?e.tagName||"button":e.tagName||"div";a=a.toLowerCase();const l=s(r,a);if(e.isButton){"button"===a&&(l.type="button");let{title:i}=e;const{ariaLabel:s}=e;"string"==typeof t.options[n+"Title"]&&(i=t.options[n+"Title"]),i&&(l.title=i);const o=s||i;o&&l.setAttribute("aria-label",o)}l.innerHTML=function(t){if("string"==typeof t)return t;if(!t||!t.isCustomSVG)return"";const e=t;let i='<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 %d %d" width="%d" height="%d">';return i=i.split("%d").join(e.size||32),e.outlineID&&(i+='<use class="pswp__icn-shadow" xlink:href="#'+e.outlineID+'"/>'),i+=e.inner,i+="</svg>",i}(o),e.onInit&&e.onInit(l,t),e.onClick&&(l.onclick=i=>{"string"==typeof e.onClick?t[e.onClick]():"function"==typeof e.onClick&&e.onClick(i,l,t)});const h=e.appendTo||"bar";let c=t.element;"bar"===h?(t.topBar||(t.topBar=s("pswp__top-bar pswp__hide-on-close","div",t.scrollWrap)),c=t.topBar):(l.classList.add("pswp__hide-on-close"),"wrapper"===h&&(c=t.scrollWrap)),null===(i=c)||void 0===i||i.appendChild(t.applyFilters("uiElement",l,e))}}function Z(t,e,i){t.classList.add("pswp__button--arrow"),t.setAttribute("aria-controls","pswp__items"),e.on("change",()=>{e.options.loop||(t.disabled=i?!(e.currIndex<e.getNumItems()-1):!(e.currIndex>0))})}const W={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:Z},j={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<use xlink:href="#pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(t,e)=>{Z(t,e,!0)}},V={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>',outlineID:"pswp__icn-close"},onClick:"close"},G={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M17.426 19.926a6 6 0 1 1 1.5-1.5L23 22.5 21.5 24l-4.074-4.074z" id="pswp__icn-zoom"/><path fill="currentColor" class="pswp__zoom-icn-bar-h" d="M11 16v-2h6v2z"/><path fill="currentColor" class="pswp__zoom-icn-bar-v" d="M13 12h2v6h-2z"/>',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},Y={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2 16a5.2 5.2 0 1 1-5.2-5.2V8a8 8 0 1 0 8 8h-2.8Z" id="pswp__icn-loading"/>',outlineID:"pswp__icn-loading"},onInit:(t,e)=>{let i,s=null;const n=e=>{var s,n;i!==e&&(i=e,s="active",n=e,t.classList.toggle("pswp__preloader--"+s,n))},o=()=>{var t;if(null===(t=e.currSlide)||void 0===t||!t.content.isLoading())return n(!1),void(s&&(clearTimeout(s),s=null));s||(s=setTimeout(()=>{var t;n(Boolean(null===(t=e.currSlide)||void 0===t?void 0:t.content.isLoading())),s=null},e.options.preloaderDelay))};e.on("change",o),e.on("loadComplete",t=>{e.currSlide===t.slide&&o()}),e.ui&&(e.ui.updatePreloaderVisibility=o)}},K={name:"counter",order:5,onInit:(t,e)=>{e.on("change",()=>{t.innerText=e.currIndex+1+e.options.indexIndicatorSep+e.getNumItems()})}};function X(t,e){t.classList.toggle("pswp--zoomed-in",e)}class J{constructor(t){this.pswp=t,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this._lastUpdatedZoomLevel=void 0}init(){const{pswp:t}=this;this.isRegistered=!1,this.uiElementsData=[V,W,j,G,Y,K],t.dispatch("uiRegister"),this.uiElementsData.sort((t,e)=>(t.order||0)-(e.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(t=>{this.registerElement(t)}),t.on("change",()=>{var e;null===(e=t.element)||void 0===e||e.classList.toggle("pswp--one-slide",1===t.getNumItems())}),t.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(t){this.isRegistered?this.items.push(new U(this.pswp,t)):this.uiElementsData.push(t)}_onZoomPanUpdate(){const{template:t,currSlide:e,options:i}=this.pswp;if(this.pswp.opener.isClosing||!t||!e)return;let{currZoomLevel:s}=e;if(this.pswp.opener.isOpen||(s=e.zoomLevels.initial),s===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=s;const n=e.zoomLevels.initial-e.zoomLevels.secondary;if(Math.abs(n)<.01||!e.isZoomable())return X(t,!1),void t.classList.remove("pswp--zoom-allowed");t.classList.add("pswp--zoom-allowed");X(t,(s===e.zoomLevels.initial?e.zoomLevels.secondary:e.zoomLevels.initial)<=s),"zoom"!==i.imageClickAction&&"zoom-or-close"!==i.imageClickAction||t.classList.add("pswp--cl
1ick-to-zoom")}}class ${constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}}class Q{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){var s,n,o;this._filters[t]||(this._filters[t]=[]),null===(s=this._filters[t])||void 0===s||s.push({fn:e,priority:i}),null===(n=this._filters[t])||void 0===n||n.sort((t,e)=>t.priority-e.priority),null===(o=this.pswp)||void 0===o||o.addFilter(t,e,i)}removeFilter(t,e){this._filters[t]&&(this._filters[t]=this._filters[t].filter(t=>t.fn!==e)),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){var i;return null===(i=this._filters[t])||void 0===i||i.forEach(t=>{e[0]=t.fn.apply(this,e)}),e[0]}on(t,e){var i,s;this._listeners[t]||(this._listeners[t]=[]),null===(i=this._listeners[t])||void 0===i||i.push(e),null===(s=this.pswp)||void 0===s||s.on(t,e)}off(t,e){var i;this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(t=>e!==t)),null===(i=this.pswp)||void 0===i||i.off(t,e)}dispatch(t,e){var i;if(this.pswp)return this.pswp.dispatch(t,e);const s=new $(t,e);return null===(i=this._listeners[t])||void 0===i||i.forEach(t=>{t.call(this,s)}),s}}class tt{constructor(t,e){if(this.element=s("pswp__img pswp__img--placeholder",t?"img":"div",e),t){const e=this.element;e.decoding="async",e.alt="",e.src=t,e.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){this.element&&("IMG"===this.element.tagName?(u(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=h(0,0,t/250)):u(this.element,t,e))}destroy(){var t;null!==(t=this.element)&&void 0!==t&&t.parentNode&&this.element.remove(),this.element=null}}class et{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=p,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(t,e){if(this.slide&&this.usePlaceholder())if(this.placeholder){const t=this.placeholder.element;t&&!t.parentElement&&this.slide.container.prepend(t)}else{const t=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new tt(t,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=s("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=s("pswp__content","div"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var e,i;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const s=this.element;this.updateSrcsetSizes(),this.data.srcset&&(s.srcset=this.data.srcset),s.src=null!==(e=this.data.src)&&void 0!==e?e:"",s.alt=null!==(i=this.data.alt)&&void 0!==i?i:"",this.state=m,s.complete?this.onLoaded():(s.onload=()=>{this.onLoaded()},s.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=g,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),this.state!==g&&this.state!==v||this.removePlaceholder())}onError(){this.state=v,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===m,this)}isError(){return this.state===v}isImageContent(){return"image"===this.type}setDisplayedSize(t,e){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented&&(u(this.element,t,e),this.isImageContent()&&!this.isError()))){const i=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=e,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==v,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var t,e;let i=s("pswp__error-msg","div");i.innerText=null!==(t=null===(e=this.instance.options)||void 0===e?void 0:e.errorMsg)&&void 0!==t?t:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=s("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===v)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||f())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!f()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),this.state!==g&&this.state!==v||this.removePlaceholder()))}}function it(t,e,i){const s=e.createContentFromData(t,i);let n;const{options:o}=e;if(o){let r;n=new E(o,t,-1),r=e.pswp?e.pswp.viewportSize:_(o,e);const a=S(o,r,t,i);n.update(s.width,s.height,a)}return s.lazyLoad(),n&&s.setDisplayedSize(Math.ceil(s.width*n.initial),Math.ceil(s.height*n.initial)),s}class st{constructor(t){this.pswp=t,this.limit=Math.max(t.options.preload[0]+t.options.preload[1]+1,5),this._cachedItems=[]}updateLazy(t){const{pswp:e}=this;if(e.dispatch("lazyLoad").defaultPrevented)return;const{preload:i}=e.options,s=void 0===t||t>=0;let n;for(n=0;n<=i[1];n++)this.loadSlideByIndex(e.currIndex+(s?n:-n));for(n=1;n<=i[0];n++)this.loadSlideByIndex(e.currIndex+(s?-n:n))}loadSlideByIndex(t){const e=this.pswp.getLoopedIndex(t);let i=this.getContentByIndex(e);i||(i=function(t,e){const i=e.getItemData(t);
vendor: 7,632 bytes, line 1
1if(!e.dispatch("lazyLoadSlide",{index:t,itemData:i}).defaultPrevented)return it(i,e,t)}(e,this.pswp),i&&this.addToCache(i))}getContentBySlide(t){let e=this.getContentByIndex(t.index);return e||(e=this.pswp.createContentFromData(t.data,t.index),this.addToCache(e)),e.setSlide(t),e}addToCache(t){if(this.removeByIndex(t.index),this._cachedItems.push(t),this._cachedItems.length>this.limit){const t=this._cachedItems.findIndex(t=>!t.isAttached&&!t.hasSlide);if(-1!==t){this._cachedItems.splice(t,1)[0].destroy()}}}removeByIndex(t){const e=this._cachedItems.findIndex(e=>e.index===t);-1!==e&&this._cachedItems.splice(e,1)}getContentByIndex(t){return this._cachedItems.find(e=>e.index===t)}destroy(){this._cachedItems.forEach(t=>t.destroy()),this._cachedItems=[]}}class nt extends Q{getNumItems(){var t;let e=0;const i=null===(t=this.options)||void 0===t?void 0:t.dataSource;i&&"length"in i?e=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(e=i.items.length));const s=this.dispatch("numItems",{dataSource:i,numItems:e});return this.applyFilters("numItems",s.numItems,i)}createContentFromData(t,e){return new et(t,this,e)}getItemData(t){var e;const i=null===(e=this.options)||void 0===e?void 0:e.dataSource;let s={};Array.isArray(i)?s=i[t]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),s=i.items[t]);let n=s;n instanceof Element&&(n=this._domElementToItemData(n));const o=this.dispatch("itemData",{itemData:n||{},index:t});return this.applyFilters("itemData",o.itemData,t)}_getGalleryDOMElements(t){var e,i;return null!==(e=this.options)&&void 0!==e&&e.children||null!==(i=this.options)&&void 0!==i&&i.childSelector?function(t,e,i=document){let s=[];if(t instanceof Element)s=[t];else if(t instanceof NodeList||Array.isArray(t))s=Array.from(t);else{const n="string"==typeof t?t:e;n&&(s=Array.from(i.querySelectorAll(n)))}return s}(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){const e={element:t},i="A"===t.tagName?t:t.querySelector("a");if(i){e.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(e.srcset=i.dataset.pswpSrcset),e.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,e.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,e.w=e.width,e.h=e.height,i.dataset.pswpType&&(e.type=i.dataset.pswpType);const n=t.querySelector("img");var s;if(n)e.msrc=n.currentSrc||n.src,e.alt=null!==(s=n.getAttribute("alt"))&&void 0!==s?s:"";(i.dataset.pswpCropped||i.dataset.cropped)&&(e.thumbCropped=!0)}return this.applyFilters("domItemData",e,t,i)}lazyLoadData(t,e){return it(t,this,e)}}const ot=.003;class rt{constructor(t){this.pswp=t,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),t.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return;const t=this.pswp.currSlide;this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,t&&t.currZoomLevel*t.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout(()=>{this._start()},this._croppedZoom?30:0)}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){const t=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,t&&t.zoomLevels.initial*t.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){const{pswp:t}=this,e=this.pswp.currSlide,{options:i}=t;var s,n;("fade"===i.showHideAnimationType?(i.showHideOpacity=!0,this._thumbBounds=void 0):"none"===i.showHideAnimationType?(i.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&t._initialThumbBounds?this._thumbBounds=t._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=null==e?void 0:e.getPlaceholderElement(),t.animations.stopAll(),this._useAnimation=Boolean(this._duration&&this._duration>50),this._animateZoom=Boolean(this._thumbBounds)&&(null==e?void 0:e.content.usePlaceholder())&&(!this.isClosing||!t.mainScroll.isShifted()),this._animateZoom)?this._animateRootOpacity=null!==(s=i.showHideOpacity)&&void 0!==s&&s:(this._animateRootOpacity=!0,this.isOpening&&e&&(e.zoomAndPanToInitial(),e.applyCurrentZoomPan()));if(this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>ot,this._opacityElement=this._animateRootOpacity?t.element:t.bg,!this._useAnimation)return this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,void(this.isOpening&&(t.element&&(t.element.style.opacity=String(ot)),t.applyBgOpacity(1)));this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect?(this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=null===(n=this.pswp.currSlide)||void 0===n?void 0:n.holderElement,t.container&&(t.container.style.overflow="hidden",t.container.style.width=t.viewportSize.x+"px")):this._croppedZoom=!1;this.isOpening?(this._animateRootOpacity?(t.element&&(t.element.style.opacity=String(ot)),t.applyBgOpacity(1)):(this._animateBgOpacity&&t.bg&&(t.bg.style.opacity=String(ot)),t.element&&(t.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(ot)))):this.isClosing&&(t.mainScroll.itemHolders[0]&&(t.mainScroll.itemHolders[0].el.style.display="none"),t.mainScroll.itemHolders[2]&&(t.mainScroll.itemHolders[2].el.style.display="none"),this._croppedZoom&&0!==t.mainScroll.x&&(t.mainScroll.resetPosition(),t.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&"IMG"===this._placeholder.tagName?new Promise(t=>{let e=!1,i=!0;var s;(s=this._placeholder,"decode"in s?s.decode().catch(()=>{}):s.complete?Promise.resolve(s):new Promise((t,e)=>{s.onload=()=>t(s),s.onerror=e})).finally(()=>{e=!0,i||t(!0)}),setTimeout(()=>{i=!1,e&&t(!0)},50),setTimeout(t,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var t,e;null===(t=this.pswp.element)||void 0===t||t.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),null===(e=this.pswp.element)||void 0===e||e.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:t}=this;if(this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,t.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),t.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed)t.destroy();else if(this.isOpen){var e;this._animateZoom&&t.container&&(t.container.style.overflow="visible",t.container.style.width="100%"),null===(e=t.currSlide)||void 0===e||e.applyCurrentZoomPan()}}_animateToOpenState(){const{pswp:t}=this;this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,
10,0)"),this._animateTo(this._cropContainer2,"transform","none")),t.currSlide&&(t.currSlide.zoomAndPanToInitial(),this._animateTo(t.currSlide.container,"transform",t.currSlide.getCurrentTransform()))),this._animateBgOpacity&&t.bg&&this._animateTo(t.bg,"opacity",String(t.options.bgOpacity)),this._animateRootOpacity&&t.element&&this._animateTo(t.element,"opacity","1")}_animateToClosedState(){const{pswp:t}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&t.bgOpacity>.01&&t.bg&&this._animateTo(t.bg,"opacity","0"),this._animateRootOpacity&&t.element&&this._animateTo(t.element,"opacity","0")}_setClosedStateZoomPan(t){if(!this._thumbBounds)return;const{pswp:e}=this,{innerRect:i}=this._thumbBounds,{currSlide:s,viewportSize:o}=e;if(this._croppedZoom&&i&&this._cropContainer1&&this._cropContainer2){const e=-o.x+(this._thumbBounds.x-i.x)+i.w,s=-o.y+(this._thumbBounds.y-i.y)+i.h,n=o.x-i.w,r=o.y-i.h;t?(this._animateTo(this._cropContainer1,"transform",h(e,s)),this._animateTo(this._cropContainer2,"transform",h(n,r))):(c(this._cropContainer1,e,s),c(this._cropContainer2,n,r))}s&&(n(s.pan,i||this._thumbBounds),s.currZoomLevel=this._thumbBounds.w/s.width,t?this._animateTo(s.container,"transform",s.getCurrentTransform()):s.applyCurrentZoomPan())}_animateTo(t,e,i){if(!this._duration)return void(t.style[e]=i);const{animations:s}=this.pswp,n={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{s.activeAnimations.length||this._onAnimationComplete()},target:t};n[e]=i,s.startTransition(n)}}const at={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};class lt extends nt{constructor(t){super(),this.options=this._prepareOptions(t||{}),this.offset={x:0,y:0},this._prevViewportSize={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this._initialItemData={},this._initialThumbBounds=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new w,this.animations=new F,this.mainScroll=new k(this),this.gestures=new O(this),this.opener=new rt(this),this.keyboard=new D(this),this.contentLoader=new st(this)}init(){if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let t="pswp--open";return this.gestures.supportsTouch&&(t+=" pswp--touch"),this.options.mainClass&&(t+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+t),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new N(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",()=>{const{itemHolders:t}=this.mainScroll;t[0]&&(t[0].el.style.display="block",this.setContent(t[0],this.currIndex-1)),t[2]&&(t[2].el.style.display="block",this.setContent(t[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")}),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(t){const e=this.getNumItems();return this.options.loop&&(t>e-1&&(t-=e),t<0&&(t+=e)),l(t,0,e-1)}
1appendHeavy(){this.mainScroll.itemHolders.forEach(t=>{var e;null===(e=t.slide)||void 0===e||e.appendHeavy()})}goTo(t){this.mainScroll.moveIndexBy(this.getLoopedIndex(t)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...t){var e;null===(e=this.currSlide)||void 0===e||e.zoomTo(...t)}toggleZoom(){var t;null===(t=this.currSlide)||void 0===t||t.toggleZoom()}close(){this.opener.isOpen&&!this.isDestroying&&(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){var t;if(!this.isDestroying)return this.options.showHideAnimationType="none",void this.close();this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),null===(t=this.element)||void 0===t||t.remove(),this.mainScroll.itemHolders.forEach(t=>{var e;null===(e=t.slide)||void 0===e||e.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(t){this.contentLoader.removeByIndex(t),this.mainScroll.itemHolders.forEach((e,i)=>{var s,n;let o=(null!==(s=null===(n=this.currSlide)||void 0===n?void 0:n.index)&&void 0!==s?s:0)-1+i;var r;(this.canLoop()&&(o=this.getLoopedIndex(o)),o===t)&&(this.setContent(e,t,!0),1===i&&(this.currSlide=e.slide,null===(r=e.slide)||void 0===r||r.setIsActive(!0)))}),this.dispatch("change")}setContent(t,e,i){if(this.canLoop()&&(e=this.getLoopedIndex(e)),t.slide){if(t.slide.index===e&&!i)return;t.slide.destroy(),t.slide=void 0}if(!this.canLoop()&&(e<0||e>=this.getNumItems()))return;const s=this.getItemData(e);t.slide=new x(s,e,this),e===this.currIndex&&(this.currSlide=t.slide),t.slide.append(t.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(t){if(this.isDestroying)return;const e=_(this.options,this);!t&&a(e,this._prevViewportSize)||(n(this._prevViewportSize,e),this.dispatch("beforeResize"),n(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(t){this.bgOpacity=Math.max(t,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){var t;this.hasMouse||(this.hasMouse=!0,null===(t=this.element)||void 0===t||t.classList.add("pswp--has_mouse"))}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout(()=>{this.updateSize()},500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(t,e){this.offset.x=t,this.offset.y=e,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=s("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=s("pswp__bg","div",this.element),this.scrollWrap=s("pswp__scroll-wrap","section",this.element),this.container=s("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new J(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return function(t,e,i){const s=i.dispatch("thumbBounds",{index:t,itemData:e,instance:i});if(s.thumbBounds)return s.thumbBounds;const{element:n}=e;let o,r;if(n&&!1!==i.options.thumbSelector){const t=i.options.thumbSelector||"img";r=n.matches(t)?n:n.querySelector(t)}return r=i.applyFilters("thumbEl",r,e,t),r&&(o=e.thumbCropped?function(t,e,i){const s=t.getBoundingClientRect(),n=s.width/e,o=s.height/i,r=n>o?n:o,a=(s.width-e*r)/2,l=(s.height-i*r)/2,h={x:s.left+a,y:s.top+l,w:e*r};return h.innerRect={w:s.width,h:s.height,x:a,y:l},h}(r,e.width||e.w||0,e.height||e.h||0):function(t){const e=t.getBoundingClientRect();return{x:e.left,y:e.top,w:e.width}}(r)),i.applyFilters("thumbBounds",o,e,t)}(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(t){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(t.showHideAnimationType="none",t.zoomAnimationDuration=0),{...at,...t}}}const ht={videoAttributes:{controls:"",playsinline:"",preload:"auto"},autoplay:!0,preventDragOffset:40};function ct(t){return t&&t.data&&"video"===t.data.type}const dt=class{constructor(t,e){this.options=e,this.initLightboxEvents(t),t.on("init",()=>{this.initPswpEvents(t)})}initLightboxEvents(t){t.on("contentLoad",this.onContentLoad.bind(this)),t.on("contentDestroy",this.onContentDestroy.bind(this)),t.on("contentActivate",this.onContentActivate.bind(this)),t.on("contentDeactivate",this.onContentDeactivate.bind(this)),t.on("contentAppend",this.onContentAppend.bind(this)),t.on("contentResize",this.onContentResize.bind(this)),t.addFilter("isKeepingPlaceholder",this.isKeepingPlaceholder.bind(this)),t.addFilter("isContentZoomable",this.isContentZoomable.bind(this)),t.addFilter("useContentPlaceholder",this.useContentPlaceholder.bind(this)),t.addFilter("domItemData",(t,e,i)=>("video"===t.type&&i&&(i.dataset.pswpVideoSources?t.videoSources=JSON.parse(i.dataset.pswpVideoSources):i.dataset.pswpVideoSrc?t.videoSrc=i.dataset.pswpVideoSrc:t.videoSrc=i.href),t))}initPswpEvents(t){t.on("pointerDown",e=>{const i=t.currSlide;if(ct(i)&&this.options.preventDragOffset){const s=e.originalEvent;if("pointerdown"===s.type){const n=Math.ceil(i.height*i.currZoomLevel)+i.bounds.center.y,o=s.pageY-t.offset.y;o>n-this.options.preventDragOffset&&o<n&&e.preventDefault()}}}),t.on("appendHeavy",t=>{ct(t.slide)&&!t.slide.isActive&&t.preventDefault()}),t.on("close",()=>{ct(t.currSlide.content)&&(t.options.showHideAnimationType&&"zoom"!==t.options.showHideAnimationType||(t.options.showHideAnimationType="fade"),this.pauseVideo(t.currSlide.content))})}onContentDestroy({content:t}){ct(t)&&t._videoPosterImg&&(t._videoPosterImg.onload=t._videoPosterImg.onerror=null,t._videoPosterImg=null)}onContentResize(t){if(ct(t.content)){t.preventDefault();const e=t.width,i=t.height,s=t.content;if(s.element&&(s.element.style.width=e+"px",s.element.style.height=i+"px"),s.slide&&s.slide.placeholder){const t=s.slide.placeholder.element.style;
1t.transform="none",t.width=e+"px",t.height=i+"px"}}}isKeepingPlaceholder(t,e){return!ct(e)&&t}isContentZoomable(t,e){return!ct(e)&&t}onContentActivate({content:t}){ct(t)&&this.options.autoplay&&this.playVideo(t)}onContentDeactivate({content:t}){ct(t)&&this.pauseVideo(t)}onContentAppend(t){ct(t.content)&&(t.preventDefault(),t.content.isAttached=!0,t.content.appendImage())}onContentLoad(t){const e=t.content;if(ct(t.content)&&(t.preventDefault(),!e.element)){if(e.state="loading",e.type="video",e.element=document.createElement("video"),this.options.videoAttributes)for(let t in this.options.videoAttributes)e.element.setAttribute(t,this.options.videoAttributes[t]||"");e.data.msrc&&e.element.setAttribute("poster",e.data.msrc),this.preloadVideoPoster(e,e.data.msrc),e.element.style.position="absolute",e.element.style.left=0,e.element.style.top=0,e.data.videoSources?e.data.videoSources.forEach(t=>{let i=document.createElement("source");i.src=t.src,i.type=t.type,e.element.appendChild(i)}):e.data.videoSrc&&(e.element.src=e.data.videoSrc)}}preloadVideoPoster(t,e){!t._videoPosterImg&&e&&(t._videoPosterImg=new Image,t._videoPosterImg.src=e,t._videoPosterImg.complete?t.onLoaded():t._videoPosterImg.onload=t._videoPosterImg.onerror=()=>{t.onLoaded()})}playVideo(t){t.element&&t.element.play()}pauseVideo(t){t.element&&t.element.pause()}useContentPlaceholder(t,e){return!!ct(e)||t}};const ut=class{constructor(t,e){new dt(t,{...ht,...e})}};var pt=i(9259),mt=i(5331),gt=i(3417);class vt{constructor(t){window.EventGalleryLightboxConfiguration&&window.EventGalleryLightboxConfiguration.doUseSlideshow&&(this._photoSwipe=t,this._SlideShow_Running=!1,this._currentTimer=null,this._SlideShow_Delay=window?.EventGalleryLightboxConfiguration?.slideshowSpeed||2e3,this._SlideShow_Button=null,this._photoSwipe.ui.registerElement({name:"playpause-button",order:9,isButton:!0,html:"",onInit:t=>{this._SlideShow_Button=t,this._adjustNavigation()},onClick:(t,e)=>this.toggleSlideShowState()}),this._photoSwipe.on("change",()=>{this._planNextSwitch(!1)}),this._photoSwipe.on("destroy",()=>this._photoSwipeGallery=null),this._photoSwipe.on("keydown",t=>{t.originalEvent.target!==this._SlideShow_Button&&this._stopSlideshow()}),this._photoSwipe.on("pointerDown",t=>{t.originalEvent.target!==this._SlideShow_Button&&this._stopSlideshow()}),window.EventGalleryLightboxConfiguration.doUseAutoplay&&this.toggleSlideShowState())}setDelay(t){this._SlideShow_Delay=t}toggleSlideShowState(){this._SlideShow_Running?this._stopSlideshow():this._startSlideshow()}_stopSlideshow(){this._SlideShow_Running=!1,this._adjustNavigation()}_startSlideshow(){this._SlideShow_Running=!0,this._planNextSwitch(!0),this._adjustNavigation()}_adjustNavigation(){this._SlideShow_Button&&(this._SlideShow_Button.classList.remove(this._SlideShow_Running?"play":"pause"),this._SlideShow_Button.classList.add(this._SlideShow_Running?"pause":"play"))}_planNextSwitch(t){clearTimeout(this._currentTimer),this._currentTimer=setTimeout(()=>this._nextSlide(),t?this._SlideShow_Delay/2:this._SlideShow_Delay)}_nextSlide(){null!==this._photoSwipe&&this._SlideShow_Running&&this._photoSwipe.next()}}var ft=i(8787);function yt(t,e){return t&&(e(t)?t:yt(t.parentNode,e))}function wt(t){let e,i,s,n,o,r,a;if(1!==t.nodeType)return null;if(i=t.getElementsByTagName("IMG")[0],void 0===i)return null;if(s=t.getAttribute("data-height"),n=t.getAttribute("data-width"),o=t.getAttribute("data-pid"),r=t.getAttribute("data-gid"),a=t.getAttribute("data-eg-srcset"),null===s||null===n||null===o)return null;e=new ft.default,e.type=t.getAttribute("data-type"),"video"===e.type&&t&&(t.dataset.pswpVideoSources?e.videoSources=JSON.parse(t.dataset.pswpVideoSources):t.dataset.pswpVideoSrc?e.videoSrc=t.dataset.pswpVideoSrc:e.videoSrc=t.href),e.src=t.getAttribute("href"),e.srcset=a,e.width=parseInt(n,10),e.height=parseInt(s,10),e.title=decodeURIComponent(t.getAttribute("data-bs-title")||t.getAttribute("data-title")||""),e.pid=parseInt(o,10),e.gid=r,e.thumbEl=t;let l=t.querySelector(".social-share-button");l&&(e.shareUrl=l.getAttribute("data-href")),e.directDownloadButton=t.querySelector(".eg-download");let h=t.querySelector(".eventgallery-add2cart");return h&&(e.add2cartUrl=window.EventGalleryCartConfiguration?.add2cartdialogurl+"&"+h.getAttribute("data-id")),e}var _t=i(1767);function bt(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class St{constructor(t){bt(this,"browserBackHappened",!1),bt(this,"_close",()=>{this.browserBackHappened=!0,this.options.onClose()}),this.options={onClose:()=>{},window,history},this.options=pt.M.mergeObjects(this.options,t)}startUrlHistory(){if(!this.options.history)return;this.options.window.addEventListener("popstate",this._close),this.browserBackHappened=!1;let t=this.options.window.location.href;t=pt.M.removeUrlHashParameter(t,"gid"),t=pt.M.removeUrlHashParameter(t,"pid"),this.options.history.replaceState(null,"",t),this.options.history.pushState(null,"",null)}endUrlHistory(){this.options.history&&(this.options.window.removeEventListener("popstate",this._close),this.browserBackHappened||this.options.history.go(-1))}adjustUrlHistory(t){if(!this.options.history)return;let e=this.options.window.location.href;e=pt.M.addUrlHashParameter(e,"gid",t.gid),e=pt.M.addUrlHashParameter(e,"pid",t.pid),this.options.history.replaceState(null,"",e)}}class Ct{constructor(t){this._isOpen=!1,this._gallery=null,this._videoPlugin=null,this.options=pt.M.mergeObjects({doOverlapToolbar:!1,imagePadding:0,doOverlapImageWithCaption:!1,showHideAnimationType:"zoom"},t)}initPhotoSwipe(){this.translations=this._translate(),this._registerClickEvents();let t=function(t){let e={};if(t.length<5)return e;let i=t.split("&");for(let t=0;t<i.length;t++){if(!i[t])continue;let s=i[t].split("=");s.length<2||(e[s[0]]=s[1])}return e}(window.location.hash.substring(1));t.pid&&t.gid&&this.openPhotoSwipe(t.pid,this.getGalleries().get(t.gid),!0,!0)}_translate(){return window.EventGalleryLightboxConfiguration?{closeTitle:window.EventGalleryLightboxConfiguration.KEY_CLOSE,zoomTitle:window.EventGalleryLightboxConfiguration.KEY_ZOOM,arrowPrevTitle:window.EventGalleryLightboxConfiguration.KEY_PREVIOUS,arrowNextTitle:window.EventGalleryLightboxConfiguration.KEY_NEXT,errorMsg:"The image cannot be loaded",indexIndicatorSep:" / ",share:window.EventGalleryLightboxConfiguration.KEY_SHARE,download:window.EventGalleryLightboxConfiguration.KEY_DOWNLOAD,buy:window.EventGalleryLightboxConfiguration.KEY_BUY,"playpause-buttonTitle":window.EventGalleryLightboxConfiguration.KEY_PLAYSLIDESHOW,pause:window.EventGalleryLightboxConfiguration.KEY_PAUSESLIDESHOW}:{}}onThumbnailsClick(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1;let e=t.target||t.srcElement;if(null!==yt(e,function(t){return t.classList&&t.classList.contains("eventgallery-icon-container")}))return;let i=yt(e,function(t){return t.tagName&&"A"===t.tagName.toUpperCase()});if(!i)return;let s=this.getSlideBy(i),n=this.getIndexOfSlide(s),o=this.getGalleries().get(s.gid);return n>=0&&this.openPhotoSwipe(n,o),!1}openPhotoSwipe(t,e,i,s,n=!0){if(void 0===e||0===e.length)return;let o=pt.M.mergeObjects({pswpModule:lt,galleryPIDs:!0,bgOpacity:1,trapFocus:!1,showHideAnimationType:this.options.showHideAnimationType,galleryUID:e[0].gid,tapAction:()=>{this._gallery.element.classList.toggle("pswp--ui-visible"),this._gallery.element.classList.contains("pswp--ui-visible")?this._gallery.element.classList.remove("pswp--ui-invisible"):this._gallery.element.classList.add("pswp--ui-invisible"),this._gallery.updateSize(!0)},paddingFn:(t,e,i)=>{let s=0,n=0;if(!this._gallery.element.classList.contains("pswp--ui-invisible")&&(!1===this.options.doOverlapToolbar&&(s=pt.M.getElementHeight(document.querySelector(".pswp__top-bar"))),s+=this.options.imagePadding,!this.options.doOverlapImageWithCaption&&e.title)){const t=document.createElement("div");t.className="pswp__custom-caption",t.innerHTML=e.title,this._gallery.element.appendChild(t),n=pt.M.getElementHeight(t);let i=getComputedStyle(t);if(i.bottom){n+=parseInt(i.bottom,10),n+=Math.max(0,4-this.options.imagePadding)}mt.A.removeHtmlElementNode(t)}return{top:s,bottom:0+n,left:0,right:0}}},this.translations);if(o.pinchToClose=!o.add2cartEl,o.closeOnVerticalDrag=!o.add2cartEl,o.closeOnScroll=!o.add2cartEl,window.EventGalleryLightboxConfiguration&&parseInt(window.EventGalleryLightboxConfiguration.navigationFadeDelay)>0&&(o.timeToIdle=parseInt(window.EventGalleryLightboxConfiguration.navigationFadeDelay),o.timeToIdleOutside=parseInt(window.EventGalleryLightboxConfiguration.navigationFadeDelay)),s)if(o.galleryPIDs){t=parseInt(t,10);for(let i=0;i<e.length;i++)if(e[i].pid===t){o.index=i;break}}else o.index=parseInt(t,10)-1;else o.index=parseInt(t,10);if(isNaN(o.index))return;i&&(o.showAnimationDuration=0),o.dataSource=e,this._gallery=new lt(o),this._gallery.addFilter("thumbEl",(t,e,i)=>{if(e.thumbEl){const t=e.thumbEl.querySelector("img");if(t)return t}return t}),this._gallery.on("close",()=>this._isOpen=!1),this._gallery.on("change",()=>{this.overlay?.closeOverlay()});let r=new St({onClose:()=>this._gallery.close(),history:n?history:null});this._gallery.on("afterInit",()=>{r.startUrlHistory(),r.adjustUrlHistory(this.getCurrentSlide())}),this._gallery.on("change",()=>{r.adjustUrlHistory(this.getCurrentSlide())}),this._gallery.on("close",()=>{r.endUrlHistory()}),this._gallery.on("keydown",t=>{this.overlay?.isOpen&&(t.defaultPrevented=!0)}),this._gallery.on("close",()=>{this.overlay?.closeOverlay()}),this._gallery.on("change",()=>{let t={id:this.getCurrentSlide().pid};document.dispatchEvent(mt.A.createNewEvent("eventgallery-lightbox-changed",t))}),this._registerUIElements(),this._videoPlugin=new ut(this._gallery,{}),this._gallery.init(),this._isOpen=!0;let a={id:this.getCurrentSlide().pid};document.dispatchEvent(mt.A.createNewEvent("eventgallery-lightbox-opened",a))}_registerUIElements(){this._gallery.on("uiRegister",()=>{this._gallery.ui.registerElement({name:"custom-caption",order:9,isButton:!1,appendTo:"root",html:"Caption text",onInit:(t,e)=>{e.on("change",()=>{const e=this.getCurrentSlide();let i="";e&&(i=e.title),t.innerHTML=i||"",i.length>0?t.style.display="block":t.style.display="none"})}}),this._gallery.ui.registerElement({name:"share-button",ariaLabel:this.translations.share,title:this.translations.share,order:10,isButton:!0,html:"",onInit:(t,e)=>{e.on("change",e=>{this.getCurrentSlide().shareUrl?t.style.display="block":t.style.display="none"})},onClick:(t,e,i)=>{this.overlay=new gt.A;let s=this.getCurrentSlide().shareUrl;return this.overlay.openOverlay(s),!1}}),this._gallery.ui.registerElement({name:"add2cart-button",ariaLabel:this.translations.buy,title:this.translations.buy,order:11,isButton:!0,html:"",onInit:(t,e)=>{e.on("change",e=>{this.getCurrentSlide().add2cartUrl?t.style.display="block":t.style.display="none"})},onClick:(t,e,i)=>{this.overlay=new gt.A,this.overlay.onLoad=()=>{document.dispatchEvent(mt.A.createNewEvent(_t.s.prepareAdd2cartDialogContent,null))};let s=this.getCurrentSlide().add2cartUrl;return this.overlay.openOverlay(s),!1}}),this._gallery.ui.registerElement({name:"download-button",ariaLabel:this.translations.download,title:this.translations.download,order:12,isButton:!0,html:"",onInit:(t,e)=>{e.on("change",e=>{this.getCurrentSlide().directDownloadButton?t.style.display="block":t.style.display="none"})},onClick:(t,e)=>(this.getCurrentSlide().directDownloadButton?.click(),!1)}),new vt(this._gallery)})}_registerClickEvents(){let t=this.getGalleries();for(let e of t.values())for(let t=0,i=e.length;t<i;t++)e[t].thumbEl.onclick=t=>{this.onThumbnailsClick(t)}}getSlideBy(t){let e=this.getGalleries();for(let i of e.values())for(let e=0,s=i.length;e<s;e++)if(i[e].thumbEl===t)return i[e];return null}getIndexOfSlide(t){return this.getGalleries().get(t.gid).map(function(t){return t.hash()}).indexOf(t.hash())}getGalleries(){let t=new Map,e=function(){let t=document.querySelectorAll("a[data-eg-lightbox]");return Array.from(t).filter(t=>{let e=pt.M.getParents(t),i=!0;return e.forEach(t=>{i&&t.classList.contains("glide__slide--clone")&&(i=!1)}),i})}();for(let i=0;i<e.length;i++){let s,n=wt(e[i]);null!==n&&(void 0===t.get(n.gid)&&t.set(n.gid,[]),s=t.get(n.gid),s.push(n),t.set(n.gid,s))}return t}getCurrentSlide(){return this._gallery.currSlide.data}getCurrentIndex(){return this._gallery.currIndex}reload(){this._registerClickEvents()}isOpen(){return this._isOpen}setAfterChangeEventListener(t){this._gallery.on("change",t)}gotoSlide(t){this._gallery.goTo(t)}}}
1,8787(t,e,i){i.r(e),i.d(e,{default:()=>s});class s{constructor(){this.width=0,this.height=0,this.src="",this.srcset="",this.alt="",this.title="",this.pid="",this.gid="",this.thumbEl=null,this.msrc="",this.shareUrl="",this.add2cartUrl="",this.directDownloadButton="",this.type="",this.thumbCropped=!0,this.videoSrc="",this.videoSources=null}hash(){return this.gid+this.src+this.srcset}}},5296(t,e,i){function s(t){return"string"==typeof t}function n(t){return Array.isArray(t)}function o(t){return NodeList.prototype.isPrototypeOf(t)}i.d(e,{A:()=>r});class r{constructor(t={}){this.listeners=t}on(t,e,i,r=!1,a=!1){s(t)&&(t=[t]),o(e)||n(e)||(e=[e]),t.forEach(t=>{this.listeners[t]={closure:i,options:{capture:r,passive:a}};for(let i=0;i<e.length;i++)e[i].addEventListener(t,this.listeners[t].closure,this.listeners[t].options)})}off(t,e){s(t)&&(t=[t]),o(e)||n(e)||(e=[e]),t.forEach(t=>{for(let i=0;i<e.length;i++){let s=this.listeners[t];void 0!==s&&e[i].removeEventListener(t,s.closure,s.options)}})}destroy(){delete this.listeners}}},74(t,e,i){i.r(e)},6734(t,e,i){i.r(e)},5331(t,e,i){i.d(e,{A:()=>s});class s{static removeHtmlElementNode(t){null!==t.parentNode&&t.parentNode.removeChild(t)}static createNewEvent(t,e){let i=null;return"function"==typeof CustomEvent?i=new CustomEvent(t,{detail:e}):(i=document.createEvent("Event"),i.initEvent(t,!0,!0),i.detail=e),i}}},1767(t,e,i){var s;i.d(e,{s:()=>s}),function(t){t.reload="eventgallery-minicart-reload",t.prepareAdd2cartDialogContent="eventgallery-prepare-add2cartdialogcontent",t.rebindAdd2CartButtons="eventgallery-rebind-add2cart-buttons",t.busy="eventgallery-minicart-busy",t.error="eventgallery-minicart-error",t.selectionAdded="eventgallery-selection-added",t.buyModeChanged="eventgallery-buy-mode-changed"}(s||(s={}))},3097(t,e,i){var s,n=i(9259),o=i(5331),r=i(1767);!function(t){t[t.short=0]="short",t[t.long=1]="long"}(s||(s={}));class a{constructor(){this.buttonShowType="inline",this.emptyCartSelector=".eventgallery-empty-minicart",this.cartSelector=".eventgallery-minicart",this.cartItemsSelector=".cart-items",this.cartItemSelector=".cart-item",this.buttonExpandToggle=".expand-btn",this.buttonDownSelector=".toggle-down",this.buttonUpSelector=".toggle-up"}}class l{constructor(t,e,i){this.minicartMode=s.short,this.isHoverDevice=window.matchMedia("(hover: hover) and (pointer: fine)").matches,this.activeOverlay=null,this.hideTimeout=null,this.containerElement=e,this.cartProcessor=t,this.lineItems=[],this.options=n.M.mergeObjects(new a,i);let o=window.EventGalleryCartConfiguration;this.options=n.M.mergeObjects(this.options,o),this.initUI(),document.addEventListener(r.s.reload,t=>this.updateCartData(t.detail)),document.addEventListener(r.s.rebindAdd2CartButtons,()=>{this.updateAdd2CartIcons()});let l=null;window.addEventListener("resize",()=>{l&&window.clearTimeout(l),l=window.setTimeout(()=>this.resizeCartArea(this.minicartMode),500)})}initUI(){var t,e,i,n,o,r;this.cartElement=null===(t=this.containerElement)||void 0===t?void 0:t.querySelector(this.options.cartSelector),this.cartItemsElement=null===(e=this.cartElement)||void 0===e?void 0:e.querySelector(this.options.cartItemsSelector),this.emptyCartElement=null===(i=this.containerElement)||void 0===i?void 0:i.querySelector(this.options.emptyCartSelector),this.buttonExpandToggleElement=null===(n=this.cartElement)||void 0===n?void 0:n.querySelector(this.options.buttonExpandToggle),this.buttonToShort=null===(o=this.buttonExpandToggleElement)||void 0===o?void 0:o.querySelector(this.options.buttonUpSelector),this.buttonToLong=null===(r=this.buttonExpandToggleElement)||void 0===r?void 0:r.querySelector(this.options.buttonDownSelector),this.buttonExpandToggleElement.addEventListener("click",()=>{this.minicartMode=this.minicartMode==s.short?s.long:s.short,this.resizeCartArea(this.minicartMode),this.minicartMode==s.short&&this.cartElement.scrollIntoView({behavior:"smooth"})})}_generateId(t){return"folder="+encodeURIComponent(t.folder)+"&file="+encodeURIComponent(t.file)}updateAdd2CartIcons(){var t,e,i,s,n;const o=new Map;for(let e=0;e<this.lineItems.length;e++){const i=this._generateId(this.lineItems[e]);o.set(i,(null!==(t=o.get(i))&&void 0!==t?t:0)+(parseInt(this.lineItems[e].count)||0))}const r=document.querySelectorAll(".eventgallery-add2cart");for(let t=0;t<r.length;t++){const s=r[t],n=s.querySelector("i.egfa"),a=this.getOrCreateBadge(s),l=null!==(i=o.get(null!==(e=s.getAttribute("data-id"))&&void 0!==e?e:""))&&void 0!==i?i:0;n&&(n.classList.toggle("egfa-shopping-cart",l>0),n.classList.toggle("egfa-cart-plus",0===l)),a.textContent=l>0?String(l):"",a.hidden=0===l}const a=document.querySelectorAll(".eventgallery-select-toggle");for(let t=0;t<a.length;t++){const e=a[t],i=e.closest(".thumbnail-container, .ajax-thumbn
1ail-container, a");if(i&&i.querySelector(".eventgallery-add2cart"))continue;const r=null!==(n=o.get(null!==(s=e.getAttribute("data-id"))&&void 0!==s?s:""))&&void 0!==n?n:0,l=this.getOrCreateBadge(e);l.textContent=r>0?String(r):"",l.hidden=0===r,e.classList.toggle("is-in-cart",r>0)}}getOrCreateBadge(t){let e=t.querySelector(".eventgallery-add2cart-badge");return e||(e=document.createElement("span"),e.className="eventgallery-add2cart-badge",e.hidden=!0,t.appendChild(e)),e}resizeCartArea(t){let e=1,i=-1,o=-1,r=this.cartItemsElement.querySelectorAll(this.options.cartItemSelector);for(let t=0;t<r.length;t++){let s=r[t];i<0&&(i=n.M.getOuterHeight(s)),o>-1&&o!=s.offsetTop&&e++,o=s.offsetTop}let a=1;1===e?this.buttonExpandToggleElement.style.display="none":(this.buttonExpandToggleElement.style.display=this.options.buttonShowType,t===s.short?(this.buttonToLong.style.display=this.options.buttonShowType,this.buttonToLong.style.display=this.options.buttonShowType,this.buttonToShort.style.display="none"):(this.buttonToLong.style.display="none",this.buttonToShort.style.display=this.options.buttonShowType,this.buttonToShort.style.display=this.options.buttonShowType,a=e)),this.cartItemsElement.style.height=1===a&&e>1?i+"px":"auto"}updateCartData(t){this.lineItems=t.cart,this.lineItems.length>0?(this.cartElement.style.display="block",this.emptyCartElement&&(this.emptyCartElement.style.display="none")):(this.cartElement.style.display="none",this.emptyCartElement&&(this.emptyCartElement.style.display="block"));let e="";for(let t=this.lineItems.length-1;t>=0;t--)e+=`<div class="cart-item" data-id="lineitemid=${this.lineItems[t].lineitemid}">\n                    ${this.lineItems[t].imagetag}\n                    <div class="item-badge">${this.lineItems[t].count}</div>\n                    <div class="action-overlay">\n                        <button class="action-btn btn-view" title="View image">\n                            <i class="egfa egfa-magnifying-glass-plus"></i>\n                        </button>\n                        <button class="action-btn btn-delete eventgallery-removeFromCart" title="Remove from cart">\n                            <i class="egfa egfa-remove"></i>\n                        </button>\n                    </div>                    \n                </div>`;this.cartItemsElement.innerHTML=e,this.cartItemsElement.querySelectorAll(".cart-item").forEach(t=>{const e=t.querySelector(".action-overlay"),i=t.querySelector(".btn-view"),s=t.querySelector(".btn-delete");i.addEventListener("click",()=>{t.querySelector("a").click()},!0),s.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this.removeCartItem(t)},!0),this.isHoverDevice||t.addEventListener("click",t=>{t.target.closest(".action-btn")||(this.activeOverlay&&this.activeOverlay!==e&&this.activeOverlay.classList.remove("active"),e.classList.contains("active")||(t.preventDefault(),t.stopPropagation()),e.classList.add("active"),this.activeOverlay=e,this.hideTimeout&&window.clearTimeout(this.hideTimeout),this.hideTimeout=window.setTimeout(()=>{e.classList.remove("active"),this.activeOverlay=null},3e3))},!0)}),this.updateAdd2CartIcons(),this.resizeCartArea(this.minicartMode);let i=t.summary?t.summary.itemCount:0;t.summary||(i=this.lineItems.reduce((t,e)=>t+(parseInt(e.count)||0),0)),this.cartElement.querySelector(".item-count").textContent=String(i),void 0!==Eventgallery&&void 0!==Eventgallery.lightbox&&Eventgallery.lightbox.reload(),document.dispatchEvent(o.A.createNewEvent("eventgallery-images-added",{isOverlay:!0}))}removeCartItem(t){let e;e=t.getAttribute("data-id")?t.getAttribute("data-id"):t.parentElement.getAttribute("data-id"),this.cartProcessor.remove(e)}}class h{constructor(t,e){this.inputs=[],this.timers=new Map,this.lastCommitted=new Map,this.inFlight=new Set,this.root=t,this.options=e,this.bindAll()}bindAll(){this.inputs=Array.from(this.root.querySelectorAll(h.INPUT_SELECTOR)),this.inputs.forEach(t=>{this.lastCommitted.set(t,this.getValue(t)),t.addEventListener("change",()=>{this.setValue(t,this.clamp(t,this.getValue(t))),this.commit(t)}),t.addEventListener("keydown",e=>{var i;"Enter"===e.key?(e.preventDefault(),this.setValue(t,this.clamp(t,this.getValue(t))),this.commit(t)):"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),this.setValue(t,null!==(i=this.lastCommitted.get(t))&&void 0!==i?i:0),this.cancel(t))}),this.refreshButtons(t)}
1),this.root.querySelectorAll(h.PLUS_SELECTOR).forEach(t=>{t.addEventListener("click",e=>{e.preventDefault();const i=this.inputForButton(t);i&&this.step(i,1)})}),this.root.querySelectorAll(h.MINUS_SELECTOR).forEach(t=>{t.addEventListener("click",e=>{e.preventDefault();const i=this.inputForButton(t);i&&this.step(i,-1)})})}getInputs(){return this.inputs}getValue(t){const e=parseInt(t.value);return isNaN(e)?0:e}getMax(t){var e;const i=parseInt(null!==(e=t.getAttribute("data-maxorderquantity"))&&void 0!==e?e:"0");return isNaN(i)?0:i}syncValue(t,e){this.timers.has(t)||this.inFlight.has(t)||(this.lastCommitted.set(t,e),this.setValue(t,e))}flushAll(){Array.from(this.timers.keys()).forEach(t=>this.commit(t))}hasPending(){return this.timers.size>0}refreshButtons(t){var e;const i=this.getValue(t),s=this.getMax(t),n=this.buttonsFor(t);if(t.disabled)return n.plus&&(n.plus.disabled=!0),void(n.minus&&(n.minus.disabled=!0));if(n.plus){const o=s>0&&i>=s;n.plus.disabled=o,n.plus.title=o&&null!==(e=t.getAttribute("data-max-hint"))&&void 0!==e?e:""}n.minus&&(n.minus.disabled=i<=0)}step(t,e){this.setValue(t,this.clamp(t,this.getValue(t)+e)),this.schedule(t)}clamp(t,e){const i=this.getMax(t);return e=Math.max(0,e),i>0?Math.min(i,e):e}setValue(t,e){t.value=String(e),this.refreshButtons(t),this.options.onChange&&this.options.onChange(t,e)}schedule(t){this.cancel(t),this.options.debounceMs<=0?this.commit(t):this.timers.set(t,window.setTimeout(()=>this.commit(t),this.options.debounceMs))}cancel(t){const e=this.timers.get(t);void 0!==e&&(window.clearTimeout(e),this.timers.delete(t))}commit(t){this.cancel(t);const e=this.getValue(t);if(e===this.lastCommitted.get(t))return;this.lastCommitted.set(t,e);const i=t.closest(h.CONTROL_SELECTOR);i&&i.classList.add("is-busy"),this.inFlight.add(t);const s=()=>{this.inFlight.delete(t),i&&i.classList.remove("is-busy"),this.options.onSettled&&this.options.onSettled(t)},n=this.options.onCommit(t,e);n&&"function"==typeof n.then?n.then(s,s):s()}inputForButton(t){var e;const i=t.getAttribute("field");return i&&null!==(e=this.inputs.find(t=>t.name===i))&&void 0!==e?e:null}buttonsFor(t){const e=t.name,i=t=>{const i=this.root.querySelectorAll(t);for(let t=0;t<i.length;t++)if(i[t].getAttribute("field")===e)return i[t];return null};return{plus:i(h.PLUS_SELECTOR),minus:i(h.MINUS_SELECTOR)}}}h.INPUT_SELECTOR=".eventgallery-cartquantity",h.PLUS_SELECTOR=".eventgallery-qtyplus",h.MINUS_SELECTOR=".eventgallery-qtyminus",h.CONTROL_SELECTOR=".qty-control";class c{static update(t,e){const i=t.querySelector(c.SELECTOR);if(!i||!e)return;const s=i.querySelector(".cart-feedback-text");if(!s)return;let n=e.summary?e.summary.itemCount:0;const o=e.summary?e.summary.subtotal:"";!e.summary&&Array.isArray(e.cart)&&(n=e.cart.reduce((t,e)=>t+(parseInt(e.count)||0),0)),s.textContent=n>0?(i.getAttribute("data-template")||"").replace("{count}",String(n)).replace("{subtotal}",o):i.getAttribute("data-empty")||""}}c.SELECTOR=".eventgallery-cart-feedback";class d{constructor(t){this.isBusy=!1,this.pendingHref=null,this.cartProcessor=t,this.initialize()}initialize(){this.cartButton=document.querySelector(d.CART_BUTTON_QUERY_SELECTOR),this.closeButton=document.querySelector(d.CLOSE_BUTTON_QUERY_SELECTOR),document.addEventListener(r.s.busy,t=>{var e;if(this.isBusy=!0===(null===(e=t.detail)||void 0===e?void 0:e.busy),this.updateToCartButton(),!this.isBusy&&this.pendingHref){const t=this.pendingHref;this.pendingHref=null,document.location.href=t}}),document.addEventListener(r.s.error,()=>this.showError()),document.addEventListener(r.s.reload,t=>{this.syncQuantities(t.detail),this.updateFeedback(t.detail)}),this.updateFeedback(this.cartProcessor.getLastCartData()),this.quantityControl=new h(document,{debounceMs:d.COMMIT_DELAY,onChange:()=>this.updateToCartButton(),onCommit:(t,e)=>(this.hideError(),this.cartProcessor.add(t.getAttribute("data-id"),e)),onSettled:()=>this.syncQuantities(this.cartProcessor.getLastCartData())}),this.cartButton&&this.cartButton.addEventListener("click",t=>this.openCart(t)),this.closeButton&&this.closeButton.addEventListener("click",()=>this.quantityControl.flushAll(),{capture:!0}),document.querySelector("#eg-single-image-type-action-needed")&&this.cartProcessor.loadCart(),this.updateToCartButton()}showError(){let t=document.querySelector(d.ERROR_QUERY_SELECTOR);t&&(t.hidden=!1)}hideError(){let t=document.querySelector(d.ERROR_QUERY_SELECTOR);t&&(t.hidden=!0)}updateFeedback(t){c.update(document,t)}syncQuantities(t){t&&Array.isArray(t.cart)&&this.quantityControl&&(this.quantityControl.getInputs().forEac
1h(e=>{const i=new URLSearchParams(e.getAttribute("data-id")||""),s=i.get("folder"),n=i.get("file"),o=i.get("imagetypeid");let r=0;for(let e=0;e<t.cart.length;e++){const i=t.cart[e];if(i.folder===s&&i.file===n&&String(i.typeid)===o){r=parseInt(i.count)||0;break}}this.quantityControl.syncValue(e,r)}),this.updateToCartButton())}updateToCartButton(){let t=0;const e=this.quantityControl?this.quantityControl.getInputs():[];e.forEach(e=>{t+=parseInt(e.value)||0});const i=t>0||0===e.length;this.cartButton&&(this.cartButton.disabled=!i||this.isBusy),this.closeButton&&(this.closeButton.disabled=this.isBusy)}openCart(t){t.preventDefault();const e=this.cartButton.getAttribute("data-href");if(e){if(this.quantityControl.flushAll(),this.isBusy||this.cartProcessor.isBusy())return this.pendingHref=e,void this.updateToCartButton();document.location.href=e}}}d.CART_BUTTON_QUERY_SELECTOR=".eventgallery-opencart",d.CLOSE_BUTTON_QUERY_SELECTOR=".eventgallery-close-overlay",d.ERROR_QUERY_SELECTOR=".eventgallery-cart-error",d.COMMIT_DELAY=300;class u{constructor(t,e){if(this.items=[],this.isSending=!1,this.failed=!1,this.pendingHref=null,this.cartProcessor=t,this.container=e.querySelector(u.CONTAINER_SELECTOR),this.container){try{this.items=JSON.parse(this.container.getAttribute("data-items")||"[]")}catch(t){this.items=[]}this.addButton=this.container.querySelector(u.ADD_BUTTON_SELECTOR),this.cartButton=this.container.querySelector(u.CART_BUTTON_SELECTOR),this.quantityControl=new h(this.container,{debounceMs:0,onChange:()=>this.refresh(),onCommit:()=>this.refresh()}),this.addButton&&this.addButton.addEventListener("click",t=>this.addSelection(t)),this.cartButton&&this.cartButton.addEventListener("click",t=>this.openCart(t)),document.addEventListener(r.s.error,()=>{this.failed=!0}),document.addEventListener(r.s.reload,t=>c.update(this.container,t.detail)),document.addEventListener(r.s.busy,t=>{var e;if(!1===(null===(e=t.detail)||void 0===e?void 0:e.busy)&&this.pendingHref){const t=this.pendingHref;this.pendingHref=null,document.location.href=t}}),c.update(this.container,this.cartProcessor.getLastCartData()),this.refresh()}}totalCount(){let t=0;return this.quantityControl.getInputs().forEach(e=>{t+=this.quantityControl.getValue(e)}),t*this.items.length}refresh(){if(!this.addButton)return;const t=this.totalCount();this.addButton.disabled=0===t||this.isSending;const e=this.addButton.getAttribute("data-template")||"";t>0&&e&&(this.addButton.textContent=e.replace("{count}",String(t)))}buildRequests(){const t=[];return this.quantityControl.getInputs().forEach(e=>{const i=this.quantityControl.getValue(e),s=parseInt(e.getAttribute("data-imagetypeid")||"0");e.disabled||i<=0||!s||this.items.forEach(e=>{t.push({folder:e.folder,file:e.file,imagetypeid:s,quantity:i})})}),t}addSelection(t){t.preventDefault();const e=this.buildRequests();0===e.length||this.isSending||(this.isSending=!0,this.failed=!1,this.hide(u.ERROR_SELECTOR),this.refresh(),this.cartProcessor.addItems(e).then(()=>{if(this.isSending=!1,this.failed)return this.show(u.ERROR_SELECTOR),void this.refresh();this.showSuccess()}))}showSuccess(){var t;const e=null===(t=this.cartProcessor.getLastCartData())||void 0===t?void 0:t.bulk,i=e?Math.min(e.failed,this.items.length):0,s=this.items.length-i,n=this.container.querySelector(u.SUCCESS_SELECTOR);n&&s>0&&(n.textContent=(n.getAttribute("data-template")||"").replace("{count}",String(s)),n.hidden=!1);const a=this.container.querySelector(u.PARTIAL_SELECTOR);a&&i>0&&(a.textContent=(a.getAttribute("data-template")||"").replace("{count}",String(i)),a.hidden=!1),this.hide(u.SELECT_STATE_SELECTOR),this.show(u.DONE_STATE_SELECTOR),this.hide(u.FORMATS_SELECTOR),document.dispatchEvent(o.A.createNewEvent(r.s.selectionAdded,{count:s}))}openCart(t){t.preventDefault();const e=this.cartButton.getAttribute("data-href");e&&(this.cartProcessor.isBusy()?this.pendingHref=e:document.location.href=e)}show(t){const e=this.container.querySelector(t);e&&(e.hidden=!1)}hide(t){const e=this.container.querySelector(t);e&&(e.hidden=!0)}}u.CONTAINER_SELECTOR=".imagetypeselection-multi",u.ADD_BUTTON_SELECTOR=".eventgallery-add-selection",u.CART_BUTTON_SELECTOR=".eventgallery-opencart",u.SELECT_STATE_
1SELECTOR=".eg-multi-actions-select",u.DONE_STATE_SELECTOR=".eg-multi-actions-done",u.SUCCESS_SELECTOR=".eventgallery-multi-success",u.PARTIAL_SELECTOR=".eventgallery-multi-partial-error",u.ERROR_SELECTOR=".eventgallery-cart-error",u.FORMATS_SELECTOR=".imagetypeselection";var p=i(3417),m=i(5296);class g{constructor(t,e){this.eventHandler=new m.A,this.cartProcessor=t,this.add2cartdialogurl=e,this.initializeCartButtons(),document.addEventListener(r.s.rebindAdd2CartButtons,()=>{this.initializeCartButtons()})}initializeCartButtons(){let t=document.getElementsByClassName("eventgallery-openAdd2cart");Array.prototype.forEach.call(t,t=>{this.eventHandler.off("click",t),this.eventHandler.on("click",t,t=>{this.openAdd2CartDialog(t)})})}openAdd2CartDialog(t){t.preventDefault(),t.stopPropagation();let e=t.target;e.getAttribute("data-id")||(e=e.parentElement);let i=new p.A;return i.onLoad=()=>{new d(this.cartProcessor)},i.openOverlay(this.add2cartdialogurl+"&"+e.getAttribute("data-id")),!1}}class v{constructor(t){this.eventHandler=new m.A,this.isBusy=!1,this.pendingHref=null,this.initializeCartConnectorButtons(),document.addEventListener(r.s.rebindAdd2CartButtons,()=>{this.initializeCartConnectorButtons()}),document.addEventListener(r.s.busy,t=>{var e;if(this.isBusy=!0===(null===(e=t.detail)||void 0===e?void 0:e.busy),!this.isBusy&&this.pendingHref){let t=this.pendingHref;this.pendingHref=null,window.location.href=t}})}initializeCartConnectorButtons(){let t=document.getElementsByClassName("eventgallery-cart-connector");Array.prototype.forEach.call(t,t=>{this.eventHandler.off("click",t),this.eventHandler.on("click",t,t=>{this.openLink(t)})})}openLink(t){t.preventDefault(),t.stopPropagation();let e=t.target;e.getAttribute("data-href")||(e=n.M.getParent(e,"SPAN"));let i=e.getAttribute("data-href");this.isBusy?this.pendingHref=i:window.location.href=i}}class f{constructor(){this.removeUrl="",this.add2cartUrl="",this.add2cartBulkUrl="",this.getCartUrl="",this.add2cartdialogurl="",this.add2cartMultiDialogUrl="",this.token=""}}class y{constructor(){var t;this.lastCartData=null,this.pendingRequests=0,this.urls=window.EventGalleryCartConfiguration||f,this.add2CartButtonHandler=new g(this,null===(t=this.urls)||void 0===t?void 0:t.add2cartdialogurl),this.cartConnectorButtonHandler=new v(this)}add(t,e){return this.post(this.urls.add2cartUrl,new URLSearchParams(t+"&quantity="+e))}addItems(t){return this.post(this.urls.add2cartBulkUrl,new URLSearchParams({items:JSON.stringify(t)}))}remove(t){return this.post(this.urls.removeUrl,new URLSearchParams(t))}loadCart(){return this.request(this.urls.getCartUrl)}isBusy(){return this.pendingRequests>0}post(t,e){return this.request(t,{method:"POST",body:e,headers:{"X-CSRF-Token":this.urls.token||""}})}request(t,e){this.pendingRequests++,this.dispatchBusy();const i=()=>{this.pendingRequests--,this.dispatchBusy()};return fetch(t,e).then(t=>{if(!t.ok)throw new Error("The cart request failed with HTTP "+t.status);return t.json()}).then(t=>{this.dispatchCartData(t),i()}).catch(t=>{i(),this.dispatchError(t)})}dispatchCartData(t){const e=Array.isArray(t)?{cart:t,summary:null}:t;this.lastCartData=e,document.dispatchEvent(o.A.createNewEvent(r.s.reload,e))}getLastCartData(){return this.lastCartData}dispatchBusy(){document.dispatchEvent(o.A.createNewEvent(r.s.busy,{busy:this.isBusy()}))}dispatchError(t){console.error(t),document.dispatchEvent(o.A.createNewEvent(r.s.error,{error:t}))}}class w{constructor(t,e){var i,s,n;this.selected=new Map,this.bound=new WeakSet,this.cartProcessor=t,this.bar=e.querySelector(w.BAR_SELECTOR),this.countElement=this.bar?this.bar.querySelector(".selection-count"):null,this.chooseButton=this.bar?this.bar.querySelector(".selection-choose-format"):null,this.restore(),this.bind(),this.bar&&(null===(i=this.bar.querySelector(".selection-select-all"))||void 0===i||i.addEventListener("click",t=>{t.preventDefault(),this.selectAll()}),null===(s=this.bar.querySelector(".selection-clear"))||void 0===s||s.addEventListener("click",t=>{t.preventDefault(),this.clear()}),null===(n=this.chooseButton)||void 0===n||n.addEventListener("click",t=>{t.preventDefault(),this.openDialog()})),document.addEventListener(r.s.rebindAdd2CartButtons,()=>this.bind()),document.addEventListener("eventgallery-images-added",()=>this.bind()),document.addEventListener(r.s.selectionAdded,()=>this.clear()),this.render()}bind(){const t=document.querySelectorAll(w.TOGGLE_SELECTOR);for(let e=0;e<t.length;e++){const i=t[e];this.bound.has(i)||(this.bound.add(i),i.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),this.toggle(i)}),i.addEventListener("keydown",t=>{" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),t.stopPropagation(),this.toggle(i))})),this.applyState(i)}}toggle(t){const e=this.imageOf(t);if(!e)return;const i=this.idFor(e);this.selected.has(i)?this.selected.delete(i):this.selected.set(i,e),this.applyState(t),this.persist(),this.render(),this.dispatchChange()}selectAll(){const t=document.querySelectorAll(w.TOGGLE_SELECTOR);for(let e=0;e<t.length;e++){const i=this.imageOf(t[e]);i&&this.selected.set(this.idFor(i),i),this.applyState(t[e])}this.persist(),this.render(),this.dispatchChange()}clear(){this.selected.clear();const t=document.querySelectorAll(w.TOGGLE_SELECTOR);for(let e=0;e<t.length;e++)this.applyState(t[e]);this.persist(),this.render(),this.dispatchChange()}getSelected(){return Array.from(this.selected.values())}openDialog(){var t;const e=this.getSelected();if(0===e.length)return;const i=null===(t=window.Eventgallery)||void 0===t?void 0:t.cart;i&&"function"==typeof i.openMultiDialog&&i.openMultiDialog(e)}imageOf(t){const e=t.getAttribute("data-folder")||"",i=t.getAttribute("data-file")||"";return e&&i?{folder:e,file:i}:null}applyState(t){const e=this.imageOf(t),i=null!==e&&this.selected.has(this.idFor(e));t.classList.toggle(w.SELECTED_CLASS,i),t.setAttribute("aria-checked",i?"true":"false");const s=t.closest(w.THUMB_SELECTOR);s&&s.classList.toggle(w.SELECTED_CLASS,i)}
1render(){if(!this.bar)return;const t=this.selected.size;if(this.countElement){const e=t>0?this.bar.getAttribute("data-count-template")||"{count}":this.bar.getAttribute("data-count-none")||"";this.countElement.textContent=e.replace("{count}",String(t))}this.chooseButton&&(this.chooseButton.disabled=0===t)}storageKey(){return w.STORAGE_PREFIX+window.location.pathname}persist(){try{0===this.selected.size?window.sessionStorage.removeItem(this.storageKey()):window.sessionStorage.setItem(this.storageKey(),JSON.stringify(this.getSelected()))}catch(t){}}restore(){try{const t=window.sessionStorage.getItem(this.storageKey());if(!t)return;JSON.parse(t).forEach(t=>{t&&t.folder&&t.file&&this.selected.set(this.idFor(t),t)})}catch(t){this.selected.clear()}}idFor(t){return t.folder+"|"+t.file}dispatchChange(){document.dispatchEvent(o.A.createNewEvent("eventgallery-selection-changed",{count:this.selected.size}))}}w.TOGGLE_SELECTOR=".eventgallery-select-toggle",w.BAR_SELECTOR=".eventgallery-selection-bar",w.THUMB_SELECTOR=".thumbnail-container, .ajax-thumbnail-container",w.SELECTED_CLASS="is-selected",w.STORAGE_PREFIX="eventgallery.selection.";let _=null;document.addEventListener("DOMContentLoaded",()=>{try{let t=new y;_=t,document.addEventListener(r.s.prepareAdd2cartDialogContent,()=>{new d(t)}),window.Eventgallery=window.Eventgallery||{},window.Eventgallery.cart={openMultiDialog:e=>function(t,e){if(!e||0===e.length)return;const i=new p.A;i.onLoad=()=>{new u(t,i.myDialogElement)},i.openOverlay(t.urls.add2cartMultiDialogUrl,{method:"POST",body:new URLSearchParams({items:JSON.stringify(e)})})}(t,e)};let e=document.getElementsByClassName("eventgallery-minicart-container");if(0==e.length)return;for(let i=0;i<e.length;i++)new l(t,e[i],null);t.loadCart()}catch(t){console.log(t)}}),document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelector(".orderimages-container");if(!t)return;let e=t.querySelector(".orderimages-hide"),i=t.querySelector(".orderimages-show"),s=t.querySelector(".buy-bar-idle"),n=t.querySelector(".buy-bar-active");const a="eventgallery.buymode."+window.location.pathname;document.body.classList.add("eventgallery-buy-controls-"+(t.getAttribute("data-buy-controls")||"both")),document.body.appendChild(t);const l=()=>{document.documentElement.style.setProperty("--eg-buy-bar-height",t.offsetHeight+"px")};function h(e){t.classList.toggle("is-active",e),s&&(s.hidden=e),n&&(n.hidden=!e),document.body.classList.toggle("eventgallery-buy-mode",e),document.dispatchEvent(o.A.createNewEvent(r.s.buyModeChanged,{active:e}))}function c(t){try{t?window.sessionStorage.setItem(a,"1"):window.sessionStorage.removeItem(a)}catch(t){}}"undefined"!=typeof ResizeObserver?new ResizeObserver(l).observe(t):l(),_&&new w(_,t),null==i||i.addEventListener("click",t=>{t.preventDefault(),h(!0),c(!0)}),null==e||e.addEventListener("click",t=>{t.preventDefault(),h(!1),c(!1)}),h(function(){try{return"1"===window.sessionStorage.getItem(a)}catch(t){return!1}}())})},4354(t,e,i){class s{static download(t,e,i){t.preventDefault();let s=document.createElement("a");s.href=e,s.setAttribute("target","_blank"),s.download=i,document.body.appendChild(s),s.click(),document.body.removeChild(s)}}class n{static click(t,e){t.preventDefault(),document.location.href=e}}var o=i(3417);document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelectorAll(".social-share-button-open");for(let e=0;e<t.length;e++){let i=t[e].getAttribute("data-href");t[e].addEventListener("click",t=>{t.preventDefault(),(new o.A).openOverlay(i)},!0)}t=document.querySelectorAll(".eg-download");for(let e=0;e<t.length;e++){let i=t[e],o=i.getAttribute("data-href"),r=i.getAttribute("data-download");null!=r?i.addEventListener("click",t=>{s.download(t,o,r)},!0):i.addEventListener("click",t=>{n.click(t,o)},!0)}})}};const __webpack_module_cache__={};function __webpack_require__(t){const e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;const i=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t](i,i.exports,__webpack_require__),i.exports}__webpack_require__.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var s=e[i++],n=e[i++];__webpack_require__.o(t,s)?0===n&&i++:0===n?Object.defineProperty(t,s,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,s,{enumerable:!0,get:n})}else for(var s in e)__webpack_require__.o(e,s)&&!__webpack_require__.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.dn=t=>{var e=Object.getOwnPropertyDescriptor(t,"name");(!e||!e.writable&&e.configurable)&&Object.defineProperty(t,"name",{value:"default",configurable:!0})};let __webpack_exports__={};window.Eventgallery=window.Eventgallery||{},__webpack_require__(1535),__webpack_require__(8409),__webpack_require__(8787),__webpack_require__(74),__webpack_require__(6734),__webpack_require__(3097),__webpack_require__(4354),__webpack_require__(2739)})();
2//# sourceMappingURL=eventgallery.js.map

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.