(()=>{var t={2137(t){var e,n;e="undefined"!=typeof window?window:this,n=function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let n=this._events=this._events||{},r=n[t]=n[t]||[];return r.includes(e)||r.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this},e.off=function(t,e){let n=this._events&&this._events[t];if(!n||!n.length)return this;let r=n.indexOf(e);return-1!=r&&n.splice(r,1),this},e.emitEvent=function(t,e){let n=this._events&&this._events[t];if(!n||!n.length)return this;n=n.slice(0),e=e||[];let r=this._onceEvents&&this._onceEvents[t];for(let i of n)r&&r[i]&&(this.off(t,i),delete r[i]),i.apply(this,e);return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t},t.exports?t.exports=n():e.EvEmitter=n()},7943(t,e,n){!function(e,r){t.exports?t.exports=r(e,n(2137)):e.imagesLoaded=r(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){let n=t.jQuery,r=t.console;function i(t,e,a){if(!(this instanceof i))return new i(t,e,a);let s=t;var o;"string"==typeof t&&(s=document.querySelectorAll(t)),s?(this.elements=(o=s,Array.isArray(o)?o:"object"==typeof o&&"number"==typeof o.length?[...o]:[o]),this.options={},"function"==typeof e?a=e:Object.assign(this.options,e),a&&this.on("always",a),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error(`Bad element for imagesLoaded ${s||t}`)}i.prototype=Object.create(e.prototype),i.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const a=[1,9,11];i.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!a.includes(e))return;let n=t.querySelectorAll("img");for(let t of n)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const s=/url\((['"])?(.*?)\1\)/gi;function o(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}return i.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let n=s.exec(e.backgroundImage);for(;null!==n;){let r=n&&n[2];r&&this.addBackground(r,t),n=s.exec(e.backgroundImage)}},i.prototype.addImage=function(t){let e=new o(t);this.images.push(e)},i.prototype.addBackground=function(t,e){let n=new l(t,e);this.images.push(n)},i.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,n)=>{setTimeout(()=>{this.progress(t,e,n)})};this.images.forEach(function(e){e.once("progress",t),e.check()})},i.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&r&&r.log(`progress: ${n}`,t,e)},i.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},o.prototype=Object.create(e.prototype),o.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},o.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},o.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:n}=this.img,r="PICTURE"===n.nodeName?n:this.img;this.emitEvent("progress",[this,r,e])},o.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},o.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype=Object.create(o.prototype),l.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},i.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(n=e,n.fn.imagesLoaded=function(t,e){return new i(this,t,e).jqDeferred.promise(n(this))})},i.makeJQueryPlugin(),i})}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var a=e[r]={exports:{}};return t[r].call(a.exports,a,a.exports,n),a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=n(7943),e=n.n(t);function r(t){return t.naturalWidth>0&&t.naturalHeight>0}function i({root:t,relayout:e,imagesLoaded:n}){const i=function(t){let e;return function(...n){clearTimeout(e),e=setTimeout(()=>{t.apply(this,n)},80)}}(()=>{e()}),a=n(t);a.on("progress",i),a.on("always",i),function(t,e){t.querySelectorAll("img").forEach(t=>{if("1"===t.dataset.dsmFgLoadBound)return;t.dataset.dsmFgLoadBound="1";const n=()=>{r(t)&&e()};t.addEventListener("load",n,{passive:!0}),t.addEventListener("error",n,{passive:!0}),t.complete&&r(t)&&n()})}(t,i);const s=function(t,e){if("undefined"==typeof MutationObserver)return()=>{};let n=0;const r=new MutationObserver(()=>{n||(n=window.requestAnimationFrame(()=>{n=0,e()}))});return r.observe(t,{subtree:!0,attributes:!0,attributeFilter:["src","srcset","sizes","class","style","data-src","data-lazyloaded","data-ll-status","width","height"]}),()=>{n&&window.cancelAnimationFrame(n),r.disconnect()}}(t,i),o=()=>{i()};return window.addEventListener("load",o,{once:!0,passive:!0}),()=>{s(),window.removeEventListener("load",o)}}function a(){return"undefined"!=typeof window&&"function"==typeof window.Shuffle}function s(t){if(!t||"function"!=typeof t.closest)return!1;const e=t.querySelector(".dsm-filterable-gallery-inner-container");return!(!e||"1"!==e.dataset.dsmFgVbManaged&&"1"!==e.getAttribute("data-dsm-fg-vb-managed"))||!!function(){if("undefined"==typeof document)return!1;const t=document.body;return!(!t||!(t.classList.contains("et-fb")||t.classList.contains("et-fb-app-frame")||t.classList.contains("et_fb")))||Boolean(document.getElementById("et-fb-app-frame"))}()&&!t.closest(".dsm-library-layout-renderer")}function o(t=document){if(!a())return!1;!function(t=document){"undefined"!=typeof jQuery&&"function"==typeof jQuery.fn.magnificPopup&&t.querySelectorAll(".dsm-filterable-gallery-container").forEach(t=>{if(s(t))return;if("on"!==t.dataset.use_lightbox)return;const e=t.querySelector(".dsm-filterable-gallery-inner-container");e&&jQuery(e).magnificPopup({delegate:".dsm-filterable-gallery-item.dsm-fg-lightbox-in-set[data-mfp-src]",type:"image",mainClass:"dsm-filterable-gallery-lightbox",tLoading:"Loading image ",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{titleSrc:t=>function(t){var e,n,r;if(!t||"function"!=typeof t.getAttribute)return"";const i=null!==(e=t.getAttribute("data-lightbox_title"))&&void 0!==e?e:"",a=null!==(n=t.getAttribute("data-lightbox_caption"))&&void 0!==n?n:"",s=null!==(r=t.getAttribute("data-lightbox_description"))&&void 0!==r?r:"",o=t=>t.replace(/[^]/g,t=>"&#"+t.charCodeAt(0)+";");let l="";return""!==i&&(l+=o(i)),""!==a&&(l+=""+o(a)+""),""!==s&&(l+=""+o(s)+""),l}(t.el[0])},allowHTMLInTemplate:!0})})}(t);const n=t.querySelectorAll(".dsm-filterable-gallery-container");if(!n.length)return!1;let r=!1;return n.forEach(t=>{if(s(t))return;const n=t.querySelector(".dsm-filterable-gallery-inner-container");n&&"1"!==n.dataset.dsmFgShuffleBound&&(n.dataset.dsmFgShuffleBound="1",r=!0,window.requestAnimationFrame(()=>{!function(t,n){var r,a;n.classList.remove("dsm-fg-layout-pending"),n.classList.add("dsm-fg-layout-ready");let s={};try{s=JSON.parse(t.dataset.i18nPagination||"{}")}catch(t){s={}}const o=s.goToPage||"Go to page %d",l=t.querySelector(".dsm-gallery-loadmore-container"),d=l?l.querySelector(".dsm-gallery-loadmore-button"):null,u=t.querySelector(".dsm-gallery-number-pagination-container"),c=t.querySelectorAll(".dsm-filterable-gallery-filter-item"),g=t.querySelector('[role="tablist"]'),m=Number(t.dataset.per_page),f="on"===t.dataset.showpagination,p=t.dataset.paginationtype,h=Number(t.dataset.speed),y=u&&"on"===u.dataset.tidyPagination,b=new window.Shuffle(n,{itemSelector:".dsm-filterable-gallery-item",delimiter:",",speed:h,buffer:1,gutterWidth:()=>function(t){if(!t||!t.dataset)return 0;const e="undefined"!=typeof window?window.innerWidth:1200;let n=t.dataset.shuffleGutterDesktop||"0";e<=767?n=t.dataset.shuffleGutterPhone||t.dataset.shuffleGutterTablet||n:e<=980&&(n=t.dataset.shuffleGutterTablet||n);const r=parseFloat(String(n).replace(/[^0-9.-]/g,""));return Number.isFinite(r)?Math.max(0,r):0}(n)});n._dsmFgShuffleInstance=b;const v=()=>{try{b.update()}catch(t){}};let E;function w(t){const e=document.createElement("button");e.type="button",e.classList.add("dsm-gallery-number-pagination"),e.setAttribute("data-pagination",String(t)),e.textContent=String(t);const n=o.replace("%d",String(t));return e.setAttribute("aria-label",n),e}function A(){const e=Number(t.dataset.currentpage),n=Number(t.dataset.totalpages),r=n>5;if(!u)return;u.innerHTML="";const i=u.getAttribute("data-pagination-prev-text")||"",a=(()=>{const t=document.createElement("div");return t.innerHTML=i,(t.textContent||"").trim()})(),s=document.createElement("button");s.type="button",s.classList.add("dsm-gallery-number-pagination"),s.setAttribute("data-pagination","prev"),s.setAttribute("aria-label",a||"Previous page"),s.innerHTML=i;const o=document.createElement("span");if(o.classList.add("dsm-gallery-previous-dot"),o.setAttribute("aria-hidden","true"),o.textContent="...",u.appendChild(s),y&&e>5&&u.appendChild(o),r&&y){const t=new Array(n).fill(0).map((t,e)=>e+1);(e>=5?t.slice(e-3,e+2):[1,2,3,4,5]).forEach(t=>{u.appendChild(w(t))})}else for(let t=0;t{const t=document.createElement("div");return t.innerHTML=l,(t.textContent||"").trim()})(),c=document.createElement("button");c.type="button",c.classList.add("dsm-gallery-number-pagination"),c.setAttribute("data-pagination","next"),c.setAttribute("aria-label",d||"Next page"),c.innerHTML=l;const g=document.createElement("span");g.classList.add("dsm-gallery-next-dot"),g.setAttribute("aria-hidden","true"),g.textContent="...",y&&e>5&&u.appendChild(g),u.appendChild(c),function(){if(!u)return;const e=u.querySelectorAll(".dsm-gallery-number-pagination"),n=Number(t.dataset.currentpage)>1,r="true"===t.dataset.hasnextpage;e.forEach(e=>{e.classList.remove("dsm-active-pagination-item"),Number.isNaN(Number(e.dataset.pagination))||r||n?e.style.display="":e.style.display="none",Number(t.dataset.currentpage)===Number(e.dataset.pagination)&&e.classList.add("dsm-active-pagination-item")}),x||(x=!0,u.addEventListener("click",e=>{const n=e.target.closest(".dsm-gallery-number-pagination");if(!n)return;const r="true"===t.dataset.hasnextpage,i=u.querySelectorAll(".dsm-gallery-number-pagination");i.forEach(t=>t.classList.remove("dsm-active-pagination-item"));const a=Number(t.dataset.currentpage),s=n.dataset.pagination,o=L(),l=a>1;switch(s){case"next":{if(!r)return;const e=a+1;i.forEach(t=>{const n=t.dataset.pagination;e===Number(n)&&t.classList.add("dsm-active-pagination-item")}),t.setAttribute("data-currentpage",String(e)),I(o,e);break}case"prev":{if(!l)return;const e=a-1;i.forEach(t=>{const n=t.dataset.pagination;e===Number(n)&&t.classList.add("dsm-active-pagination-item")}),t.setAttribute("data-currentpage",String(e)),I(o,e);break}default:n.classList.add("dsm-active-pagination-item"),t.setAttribute("data-currentpage",s),I(o,Number(s))}}))}()}function L(){const t=Array.from(c).find(t=>t.classList.contains("dsm-active-filter"));return t&&t.hasAttribute("data-category")&&"undefined"!==t.dataset.category?t.dataset.category:"all"}function S(e){const n=t.querySelectorAll(".dsm-filterable-gallery-item"),r=Array.from(n).filter(t=>t.dataset.groups.split(",").includes(e)),i=function(t,e){const n=[];let r=0;const i=t.length;for(;r{t.setAttribute("data-inpage","-1")}),i.forEach((t,e)=>{const n=e+1;t.forEach(t=>{t.setAttribute("data-inpage",n.toString())})}),t.setAttribute("data-totalPages",i.length);const a=t.querySelectorAll(".dsm-filterable-gallery-item"),s=Array.from(a).filter(n=>{const r=Number(n.dataset.inpage),i=n.dataset.groups.split(",").includes(e);return r===Number(t.dataset.currentpage)+1&&i}),o=Array.from(a).filter(n=>{const r=Number(n.dataset.inpage),i=n.dataset.groups.split(",").includes(e);return r===Number(t.dataset.currentpage)-1&&i}),l=s.length>0,d=o.length>0;t.setAttribute("data-hasnextpage",String(l)),t.setAttribute("data-hasPrevpage",String(d)),y&&A()}i({root:n,relayout:v,imagesLoaded:e()}),window.addEventListener("resize",function(){window.clearTimeout(E),E=window.setTimeout(v,150)}),new IntersectionObserver(t=>{t[0].intersectionRatio>=.5&&b.update(),t[0].isIntersecting&&b.update()}).observe(n);let x=!1;function I(e,r=t.dataset.currentpage){r=Number(t.dataset.currentpage),b.filter(t=>{const n=Number(t.dataset.inpage),i=t.dataset.groups,a=("number"===p?n===r:n<=r)&&-1!==n;return i.split(",").includes(e)&&a}),function(t){c.forEach(e=>{const r=e.dataset.category;t===r?(e.classList.add("dsm-active-filter"),e.setAttribute("aria-selected","true"),e.id&&"tabpanel"===n.getAttribute("role")&&n.setAttribute("aria-labelledby",e.id)):(e.classList.remove("dsm-active-filter"),e.setAttribute("aria-selected","false"))})}(e),S(e),function(t,e,{currentPage:n,usePagination:r,paginationType:i}){t&&t.querySelectorAll(".dsm-filterable-gallery-item[data-mfp-src]").forEach(t=>{const a=(s=t.dataset.groups,"all"===(o=e)||String(s||"").split(",").includes(o));var s,o;const l=function(t,e,n,r){const i=Number(t);return n?!(!Number.isFinite(i)||-1===i)&&("number"===r?i===e:i<=e):!t||Number.isFinite(i)&&-1!==i}(t.dataset.inpage,n,r,i);t.classList.toggle("dsm-fg-lightbox-in-set",a&&l)})}(n,e,{currentPage:r,usePagination:f,paginationType:p})}c.forEach(e=>{e.addEventListener("click",()=>{const r=e.dataset.category;S(r),t.setAttribute("data-currentpage","1"),I(r),u&&A(),"tabpanel"===n.getAttribute("role")&&n.focus({preventScroll:!0})})}),g&&c.length>1&&g.addEventListener("keydown",t=>{if(!["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key))return;const e=Array.from(g.querySelectorAll('[role="tab"]'));if(e.length<2)return;t.preventDefault();const n=e.findIndex(t=>"true"===t.getAttribute("aria-selected")),r=n>=0?n:0;let i=r;"ArrowRight"===t.key||"ArrowDown"===t.key?i=(r+1)%e.length:"ArrowLeft"===t.key||"ArrowUp"===t.key?i=(r-1+e.length)%e.length:"Home"===t.key?i=0:"End"===t.key&&(i=e.length-1),e[i].click(),e[i].focus()}),d&&d.addEventListener("click",()=>function(){const e=Number(t.dataset.currentpage)+1,n=L();t.setAttribute("data-currentpage",e.toString()),S(n),I(n,e)}());const k=t.querySelector('.dsm-filterable-gallery-filter-item[aria-selected="true"]'),q=null!==(r=null!==(a=k?.dataset?.category)&&void 0!==a?a:c[0]?.dataset?.category)&&void 0!==r?r:"all";S(q),I(q),A(),v()}(t,n)}))}),r}function l(t){t&&a()&&(t.querySelectorAll(".dsm-filterable-gallery-container").forEach(t=>{const e=t.querySelector(".dsm-filterable-gallery-inner-container");if(e){if(e._dsmFgShuffleInstance&&"function"==typeof e._dsmFgShuffleInstance.destroy)try{e._dsmFgShuffleInstance.destroy()}catch(t){}delete e._dsmFgShuffleInstance,delete e.dataset.dsmFgShuffleBound}}),o(t))}"undefined"!=typeof window&&(window.dsmFilterableGalleryBoot=()=>o(document),window.dsmReinitFilterableGalleriesInRoot=l,["dsm:reinit-library-modules-in-root","dsm:reinit-carousels-in-root"].forEach(t=>{window.addEventListener(t,t=>{const e=t?.detail?.root;e&&l(e)})}),function(){const t=()=>{o()||a()||window.addEventListener("load",()=>{o()},{once:!0,passive:!0})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t,{once:!0,passive:!0}):t()}())})()})();