!function(t){function e(e){for(var n,r,i=e[0],c=e[1],a=0,l=[];a=16;if("objectFit"in document.documentElement.style!=0&&!e)return void(window.objectFitPolyfill=function(){return!1});var n=function(t){var e=t.parentNode;(function(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("position"),o=e.getPropertyValue("overflow"),r=e.getPropertyValue("display");n&&"static"!==n||(t.style.position="relative"),"hidden"!==o&&(t.style.overflow="hidden"),r&&"inline"!==r||(t.style.display="block"),0===t.clientHeight&&(t.style.height="100%"),-1===t.className.indexOf("object-fit-polyfill")&&(t.className=t.className+" object-fit-polyfill")})(e),function(t){var e=window.getComputedStyle(t,null),n={"max-width":"none","max-height":"none","min-width":"0px","min-height":"0px",top:"auto",right:"auto",bottom:"auto",left:"auto","margin-top":"0px","margin-right":"0px","margin-bottom":"0px","margin-left":"0px"};for(var o in n)e.getPropertyValue(o)!==n[o]&&(t.style[o]=n[o])}(t),t.style.position="absolute",t.style.height="100%",t.style.width="auto",t.clientWidth>e.clientWidth?(t.style.top="0",t.style.marginTop="0",t.style.left="50%",t.style.marginLeft=t.clientWidth/-2+"px"):(t.style.width="100%",t.style.height="auto",t.style.left="0",t.style.marginLeft="0",t.style.top="50%",t.style.marginTop=t.clientHeight/-2+"px")},o=function(t){if(void 0===t)t=document.querySelectorAll("[data-object-fit]");else if(t&&t.nodeName)t=[t];else{if("object"!=typeof t||!t.length||!t[0].nodeName)return!1;t=t}for(var o=0;o0?n(t[o]):t[o].addEventListener("loadedmetadata",function(){n(this)})):t[o].complete?n(t[o]):t[o].addEventListener("load",function(){n(this)})}return!0};document.addEventListener("DOMContentLoaded",function(){o()}),window.addEventListener("resize",function(){o()}),window.objectFitPolyfill=o}}()},function(t,e){window.ctEvents=new function(){var t={},e=1,n=!1;function o(t,e){if("string"!=typeof t)return t;for(var n=t.replace(/\s\s+/g," ").trim().split(" "),o=n.length,r=Object.create(null),i=0;i0&&(c=r.apply(this,arguments)),a<=1&&(r=null),c})),n&&i("✚ ["+e+"]")}),this},this.off=function(e,c){return r(o(e,c),function(e,o){t[e]&&(o?t[e].splice(t[e].indexOf(o)>>>0,1):t[e]=[],n&&i("✖ "+e))}),this},this.trigger=function(n,c){return r(o(n),function(e){i("╭─ "+e,c),a(1);try{"fw:options:init"===e&&fw.options.startListeningToEvents(c.$elements||document.body),(t[e]||[]).map(n),(t.all||[]).map(n)}catch(t){if(console.log("%c [Events] Exception raised. Please contact support in https://github.com/ThemeFuse/Unyson/issues/new. Don't forget to attach this stack trace to the issue.","color: red; font-weight: bold;"),"undefined"==typeof console)throw t;console.error(t)}function n(t){t&&t.call(window,c)}a(-1),i("╰─ "+e,c)}),this;function a(t){void 0!==t&&(e+=t>0?1:-1),e<0&&(e=0)}},this.hasListeners=function(e){return!!t&&(t[e]||[]).length>0}}},function(t,e){t.exports=window.jQuery},function(t,e,n){"use strict";n.r(e);n(2),n(3),n(4);var o=n(0),r=n.n(o);document.addEventListener("DOMContentLoaded",function(){n.e(7).then(n.bind(null,19)).then(function(t){var e=new(0,t.default)({data_src:"original",data_srcset:"original-set",callback_set:function(t){objectFitPolyfill()},callback_load:function(t){var e=t.closest(".ct-image-container"),n=function(){e&&(e.classList.remove("ct-lazy"),e.classList.add("ct-lazy-loading-start"),requestAnimationFrame(function(){var t,n,o,r;e.classList.remove("ct-lazy-loading-start"),e.classList.add("ct-lazy-loading"),t=e.firstElementChild,n=function(){e.classList.remove("ct-lazy-loading"),e.classList.add("ct-lazy-loaded")},o=function(){t.removeEventListener("transitionend",r),n()},r=function(e){e.target===t&&o()},t.addEventListener("transitionend",r)}))};navigator.userAgent.toLowerCase().indexOf("firefox")>-1?setTimeout(n,500):n()}});r.a.on("ct:images:lazyload:update",function(){return e.update()})})});n(5);document.addEventListener("DOMContentLoaded",function(){if(document.querySelector(".ct-comments")){var t=[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&t.classList.add("ct-not-empty")})};e(),t.map(function(t){return t.addEventListener("input",e)})}}),document.addEventListener("DOMContentLoaded",function(){if(window.addComment&&window.addComment.moveForm){var t=addComment.moveForm;addComment.moveForm=function(){for(var e=arguments.length,n=Array(e),o=0;o .primary-menu .menu-item-has-children > .sub-menu'))).map(function(t){return-1===getComputedStyle(document.querySelector(".mobile-menu-toggle"),":before").content.indexOf("mobile")&&Promise.all([n.e(3),n.e(4)]).then(n.bind(null,16)).then(function(e){return(0,e.handleUpdate)(t)})})},d=function(){return[].concat(a(document.querySelectorAll("header.site-header .mobile-menu .menu-arrow"))).map(function(t){return n.e(5).then(n.bind(null,17)).then(function(e){return(0,e.handleArrow)(t)})})},s=function(){return[].concat(a(document.querySelectorAll([".ct-modal-action","header.site-header .search-button"]))).map(function(t){return n.e(6).then(n.bind(null,18)).then(function(e){return(0,e.initSingleModal)(t)})})};document.addEventListener("DOMContentLoaded",function(){l(),d(),s()}),ctEvents.on("ct:header:update",function(){l(),d(),s()})},function(t,e){t.exports=window.wp.i18n}]);