!function(){"use strict";var t={n:function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,{a:i}),i},d:function(e,i){for(var o in i)t.o(i,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:i[o]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}},e=window.jQuery,i=t.n(e);const{VPData:o}=window,{__:__}=o,s=i()(window);function n(){if("function"==typeof window.Event)window.dispatchEvent(new window.Event("resize"));else{const t=window.document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}}const r={};let a=!1,l=!1,d=!1;function p(){if(clearTimeout(l),!a)return;const t=i()(".vp-portfolio__ready");if(t.length){let e=!1;t.each((function(){const{vpf:t}=this;if(!t)return;const i=r[t.uid]||"none";r[t.uid]=null===this.offsetParent?"hidden":"visible","hidden"===i&&"visible"===r[t.uid]&&(e=!0)})),e&&n()}else a=!1;l=setTimeout(p,500)}i()(document).on("inited.vpf",(t=>{"vpf"===t.namespace&&(a=!0,p())})),document.addEventListener("keydown",(function(t){t.metaKey||t.altKey||t.ctrlKey||(d=!0)}),!0),document.addEventListener("mousedown",(()=>{d=!1}),!0),document.addEventListener("pointerdown",(()=>{d=!1}),!0),document.addEventListener("touchstart",(()=>{d=!1}),!0);class v{constructor(t,e){const i=this;i.$item=t;const o=t[0].className.split(/\s+/);for(let t=0;t{this.emitEvent("imagesLoaded")}))}destroy(){const t=this;t.$item.removeClass("vp-portfolio__ready"),t.id&&(i()(`.vp-single-filter.vp-id-${t.id}`).removeClass("vp-single-filter__ready").parent(".vp-portfolio__layout-elements").removeClass("vp-portfolio__layout-elements__ready"),i()(`.vp-single-sort.vp-id-${t.id}`).removeClass("vp-single-sort__ready").parent(".vp-portfolio__layout-elements").removeClass("vp-portfolio__layout-elements__ready")),t.destroyEvents(),t.removeStyle(),t.renderStyle(),t.emitEvent("destroy"),t.destroyed=!0}addStyle(t,e,o){o=o||"";const s=this,{uid:n}=s;s.stylesList||(s.stylesList={}),void 0===s.stylesList[n]&&(s.stylesList[n]={}),void 0===s.stylesList[n][o]&&(s.stylesList[n][o]={}),void 0===s.stylesList[n][o][t]&&(s.stylesList[n][o][t]={}),s.stylesList[n][o][t]=i().extend(s.stylesList[n][o][t],e),s.emitEvent("addStyle",[t,e,o,s.stylesList])}removeStyle(t,e,i){i=i||"";const o=this,{uid:s}=o;o.stylesList||(o.stylesList={}),void 0===o.stylesList[s]||t||(o.stylesList[s]={}),void 0!==o.stylesList[s]&&void 0!==o.stylesList[s][i]&&void 0!==o.stylesList[s][i][t]&&t&&delete o.stylesList[s][i][t],o.emitEvent("removeStyle",[t,e,o.stylesList])}renderStyle(){const t=this,{uid:e}=t;let o="";t.stylesList||(t.stylesList={}),void 0!==t.stylesList[e]&&Object.keys(t.stylesList[e]).forEach((i=>{i&&(o+=`@media ${i} {`),Object.keys(t.stylesList[e][i]).forEach((s=>{const n=`.vp-uid-${e}`;let r=`${n} ${s}`;r=r.replace(/, |,/g,`, ${n} `),o+=`${r} {`,Object.keys(t.stylesList[e][i][s]).forEach((n=>{o+=`${n}:${t.stylesList[e][i][s][n]};`})),o+="}"})),i&&(o+="}")}));let s=i()(`#vp-style-${e}`);s.length||(s=i()("