var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,d,b){a instanceof String&&(a=String(a));for(var e=a.length,c=0;c<e;c++){var g=a[c];if(d.call(b,g,c,a))return{i:c,v:g}}return{i:-1,v:void 0}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,d,b){a!=Array.prototype&&a!=Object.prototype&&(a[d]=b.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};
$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,d,b,e){if(d){b=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var c=a[e];c in b||(b[c]={});b=b[c]}a=a[a.length-1];e=b[a];d=d(e);d!=e&&null!=d&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:d})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,b){return $jscomp.findInternal(this,a,b).v}},"es6-impl","es3");
(function(a){a.fn.ThemifyMegaMenu=function(d){var b=a.extend({events:"mouseenter"},d),e={};return this.each(function(){var c=a(this),d=a(".mega-menu-posts",c);c.on(b.events+" touchend",".mega-link",function(b){if(!(a(window).width()<tf_mobile_menu_trigger_point)){b.preventDefault();var c=a(this),f=c.data("termid");b=c.data("tax");"string"==typeof e[f]?d.html(e[f]):c.hasClass("loading")||(c.addClass("loading"),a.post(themifyScript.ajax_url,{action:"themify_theme_mega_posts",termid:f,tax:b},function(a){d.html(a);
e[f]=a;c.removeClass("loading")}))}});c.on("mouseenter","> a",function(){a(this).closest("li").find(".mega-sub-menu .mega-link:first").trigger(b.events)}).on("dropdown_open",function(){a(this).find(".mega-sub-menu .mega-link:first").trigger(b.events)})})};a(document).ready(function(){"undefined"!==typeof a.fn.ThemifyMegaMenu&&(a(".has-mega-sub-menu").each(function(){a(this).find("> ul").removeAttr("class").wrap('<div class="mega-sub-menu sub-menu" />').after('<div class="mega-menu-posts" />').find("li.menu-item-type-taxonomy").addClass("mega-link")}),
a(".has-mega-sub-menu").ThemifyMegaMenu({events:themifyScript.events}))})})(jQuery);
