!function(){"use strict";var e={n:function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t=window.ctEvents,n=e.n(t),r=window.ctFrontend;const o=function(e){return function(e,t,n){var r=new RegExp("([?&])"+t+"=.*?(&|#|$)","i");if(e.match(r))return e.replace(r,"$1"+t+"="+n+"$2");var o="";-1!==e.indexOf("#")&&(o=e.replace(/.*#/,"#"),e=e.replace(/#.*/,""));var c=-1!==e.indexOf("?")?"&":"?";return e+c+t+"="+n+o}(e.href,"blocksy_prefix",e.closest("[data-prefix]").dataset.prefix)},c=function(e){a(o(e)).then(function(e){return e.text()}).then(function(t){const r=document.createElement("div");r.innerHTML=t;const o=r.querySelector("#main .entries");if(r.querySelector("title")&&(document.title=r.querySelector("title").innerText),r.querySelector(".hero-section .entry-header")&&document.querySelector(".hero-section .entry-header")){const e=document.querySelector(".hero-section .entry-header");e.insertAdjacentHTML("afterend",r.querySelector(".hero-section .entry-header").outerHTML),e.remove()}const c=document.querySelector("#main .entries");o?(setTimeout(function(){c.innerHTML=o.innerHTML,[...c.children].map(function(e){e.dataset.reveal||(e.dataset.reveal="no")});let e=document.querySelector("#main .ct-pagination");e&&e.infiniteScroll&&e.infiniteScroll.destroy(),setTimeout(function(){e&&e.remove(),r.querySelector("#main .ct-pagination")&&c.after(r.querySelector("#main .ct-pagination")),n().trigger("blocksy:frontend:init")})},200),e.closest(".ct-posts-shortcode")||history.pushState({},"",e.href)):c.innerHTML=""}).catch(function(e){console.warn("Something went wrong.",e)})},i={};let u=[];const a=function(e){return i[e]?new Promise(function(t){t(i[e]),window.ct_customizer_localizations||(i[e]=i[e].clone())}):new Promise(function(t){return fetch(e).then(function(n){t(n),window.ct_customizer_localizations||(i[e]=n.clone())})})},l=function(e){e.preloaded||(e.preloaded=!0,a(o(e)).then(function(e){return e.text()}).then(function(){[...u].map(function(e){i[o(e)]&&(c(e),u=u.filter(function(t){return t!==e}))})}))};(0,r.registerDynamicChunk)("blocksy_adv_cpt_filtering",{mount:function(e,{event:t}){"click"===t.type?(l(e),function(e){e.classList.contains("active")||(e.closest(".ct-dynamic-filter").querySelector(".active")&&e.closest(".ct-dynamic-filter").querySelector(".active").classList.remove("active"),e.classList.add("active"),i[o(e)]?c(e):u.push(e))}(e)):[...document.querySelectorAll(".ct-dynamic-filter a")].map(function(e){return l(e)})}})}();