/*
 Themify Builder - Asynchronous Script and Styles Loader */
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(c,g,b){c instanceof String&&(c=String(c));for(var d=c.length,k=0;k<d;k++){var w=c[k];if(g.call(b,w,k,c))return{i:k,v:w}}return{i:-1,v:void 0}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(c,g,b){c!=Array.prototype&&c!=Object.prototype&&(c[g]=b.value)};$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global&&null!=global?global:c};
$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(c,g,b,d){if(g){b=$jscomp.global;c=c.split(".");for(d=0;d<c.length-1;d++){var k=c[d];k in b||(b[k]={});b=b[k]}c=c[c.length-1];d=b[c];g=g(d);g!=d&&null!=g&&$jscomp.defineProperty(b,c,{configurable:!0,writable:!0,value:g})}};$jscomp.polyfill("Array.prototype.find",function(c){return c?c:function(c,b){return $jscomp.findInternal(this,c,b).v}},"es6-impl","es3");
(function(c,g,b,d,k){c(b).ready(function(){function w(){if(tinymce!==k&&tinyMCE){tinyMCEPreInit.mceInit.tb_lb_hidden_editor.wp_autoresize_on=!1;var b=tinyMCEPreInit.mceInit.tb_lb_hidden_editor.content_css.split(",");tinyMCEPreInit.mceInit.tb_lb_hidden_editor.content_css=b[1]!==k?b[1]:b[0];tinyMCEPreInit.mceInit.tb_lb_hidden_editor.plugins="charmap,colorpicker,hr,lists,media,paste,tabfocus,textcolor,fullscreen,wordpress,wpautoresize,wpeditimage,wpemoji,wpgallery,wpdialogs,wptextpattern,wpview,wplink";
tinyMCEPreInit.mceInit.tb_lb_hidden_editor.indent="simple";tinyMCEPreInit.mceInit.tb_lb_hidden_editor.ie7_compat=!1;tinyMCEPreInit.mceInit.tb_lb_hidden_editor.root_name="div";tinyMCEPreInit.mceInit.tb_lb_hidden_editor.relative_urls=!0;tinyMCE.execCommand("mceRemoveEditor",!0,"tb_lb_hidden_editor");c("#wp-tb_lb_hidden_editor-editor-container,#wp-tb_lb_hidden_editor-editor-tools").remove()}}function B(){d.body.on("click.tbloader",".toggle_tb_builder > a, a.js-turn-on-builder",function(a){a.preventDefault();
a.stopPropagation();var e=d.body.hasClass("tb_restriction");d.LoadAsync(tbLocalScript.builder_url+"/js/themify-ticks.js",function(){e&&(TB_Ticks.init(tbLocalScript.ticks).show(),B())},null,null,function(){return"undefined"!==typeof TB_Ticks});if(!e){var h=this.classList.contains("js-turn-on-builder")?this.childNodes[0].getAttribute("data-id"):x;if(h&&!this.parentNode.classList.contains("tb_disabled_turn_on")){d.body.off("click.tbloader");setTimeout(w,1);var n=d.body.children();a=b.createDocumentFragment();
if(null!==tbLoaderVars.styles){for(var f=tbLoaderVars.styles.length-1;-1<f;--f)if(""!==tbLoaderVars.styles[f]){var l=b.createElement("link");l.href=tbLoaderVars.styles[f]+"?ver="+tbLocalScript.version;l.rel="preload";l.setAttribute("as","style");a.appendChild(l)}b.head.appendChild(a)}var t,q=[],p=c(b).scrollTop(),r=Array.prototype.slice.call(b.head.getElementsByTagName("link")),u=Array.prototype.slice.call(b.head.getElementsByTagName("script")).concat(Array.prototype.slice.call(b.head.getElementsByTagName("style"))),
y=b.createElement("div");a=b.createElement("div");var f=b.createElement("div"),l=b.createElement("div"),v=b.createElement("div"),m=b.createElement("iframe");y.className="tb_workspace_container";a.className="tb_vertical_bars";f.id="tb_left_bar";l.id="tb_right_bar";f.className=l.className="tb_middle_bar";v.className="tb_vertical_change_tooltip";m.className="tb_iframe";m.id=m.name="tb_iframe";m.scrolling=C?"no":"yes";m.src=z+"&id="+h;a.appendChild(f);a.appendChild(m);a.appendChild(l);a.appendChild(v);
y.appendChild(a);b.body.appendChild(y);if(null!==tbLoaderVars.styles)for(f=0,A=tbLoaderVars.styles.length;f<A;++f)""!==tbLoaderVars.styles[f]&&(d.LoadCss(tbLoaderVars.styles[f]),q[tbLoaderVars.styles[f]+"?ver="+tbLocalScript.version]=1);tbLoaderVars.styles=null;setTimeout(function(){t=b.createElement("div");var c=b.createElement("div"),a=b.createElement("div"),d=b.getElementsByClassName("tb_front_icon")[0];t.id="tb_alert";t.className="tb_busy";c.id="tb_fixed_bottom_scroll";c.className="tb_fixed_scroll";
a.id="builder_progress";a.appendChild(b.createElement("div"));b.body.insertAdjacentElement("afterbegin",c);b.body.appendChild(t);d!==k&&d.parentNode.appendChild(a)},1);d.body.off("builder_load_module_partial themify_builder_ready");c(b).off("ajaxComplete");m.addEventListener("load",function(){var a=this;d.body.one("themify_builder_ready",function(a){c(t).fadeOut(100,function(){this.classList.remove("tb_busy")});d.body[0].className+=" themify_builder_active builder-breakpoint-desktop";d.body[0].removeAttribute("style");
C&&(d.body[0].className+=" tb_touch");"1"===tbLoaderVars.isGlobalStylePost&&(d.body[0].className+=" gs_post");y.style.display="block";f.scrollTo(0,p);d.iframe=m;d.is_builder_active=!0;setTimeout(function(){n.hide();for(var a=0,e=u.length;a<e;++a)u[a]&&u[a].parentNode&&u[a].parentNode.removeChild(u[a]);u=null;for(a=r.length-1;-1<a;--a)r[a]&&r[a].parentNode&&(e=r[a].href,q[e]===k&&-1===e.indexOf("wp-includes")&&-1===e.indexOf("admin-bar")&&(r[a].setAttribute("disabled",!0),r[a].parentNode.removeChild(r[a])));
r=q=tbLoaderVars=t=null;c(".themify_builder_content,#wpadminbar,header").remove();n.filter("ul,a,video,audio").filter(":not(:has(link))").remove();for(var e="scroll tfsmartresize debouncedresize throttledresize resize mouseenter keydown keyup mousedown assignVideo".split(" "),h=c(g),m=c(b),a=e.length-1;-1<a;--a)h.off(e[a]),m.off(e[a]),d.body.off(e[a]);b.documentElement.removeAttribute("style");b.documentElement.removeAttribute("class");var p=tbLocalScript.ticks;l.hasClass("tb_restriction")?setTimeout(function(){b.body.appendChild(l.find("#tmpl-builder-restriction")[0]);
TB_Ticks.init(p,f).show()},1E3):setTimeout(function(){TB_Ticks.init(p,f).ticks()},5E3);setTimeout(function(){"undefined"!==typeof Rellax&&(Rellax.disableCheckPosition(),Rellax.destroy());for(var a="ThemifyBuilderModuleJs c _wpemojiSettings twemoji themifyScript tbLocalScript themify_vars tbScrollHighlight google ThemifyGallery Animation $f Froogaloop SliderProSlide SliderProUtils ThemifySlider FixedHeader LayoutAndFilter WOW Waypoint $slidernav google Microsoft Rellax module$contents$MapsEvent_MapsEvent module$contents$mapsapi$overlay$OverlayView_OverlayView wc_add_to_cart_params woocommerce_params wc_cart_fragments_params wc_single_product_params tf_mobile_menu_trigger_point themifyMobileMenuTrigger".split(" "),
b=0,c=a.length;b<c;++b)"undefined"!==typeof g[a[b]]&&(g[a[b]]=null);g.wp.emoji=null},3E3)},800)});if("__rocketLoaderLoadProgressSimulator"in a.contentWindow)var e=setInterval(function(){"complete"===a.contentWindow.__rocketLoaderLoadProgressSimulator.simulatedReadyState&&(clearInterval(e),f=a.contentWindow,l=f.jQuery("body"),f.themifyBuilder.post_ID=h,l.trigger("builderiframeloaded.themify",a))},10);else{var f=a.contentWindow;var l=f.jQuery("body");f.themifyBuilder.post_ID=h;l.trigger("builderiframeloaded.themify",
a)}},{once:!0})}}})}var C=tbLoaderVars.isTouch?!0:!1;if(wp===k||wp.customize===k){var e=b.getElementsByClassName("themify_builder_content");var h=b.getElementsByClassName("toggle_tb_builder")[0];var x=h!==k?h.getElementsByClassName("tb_front_icon")[0].getAttribute("data-id"):!1;for(var p=!1,a=e.length-1;-1<a;--a){var n=e[a].getAttribute("data-postid");n===x&&(p=!0);var q=b.createElement("a"),v=b.createElement("span");q.href="javascript:void(0);";q.className="tb_turn_on js-turn-on-builder";v.className=
"dashicons dashicons-edit";v.setAttribute("data-id",n);q.appendChild(v);q.appendChild(b.createTextNode(e[a].parentNode.classList.contains("tbp_template")?tbLoaderVars.editTemplate:tbLoaderVars.turnOnBuilder));e[a].insertAdjacentElement("afterEnd",q)}h===k&&(h=b.getElementsByClassName("js-turn-on-builder")[0],h!==k&&(x=h.getElementsByClassName("dashicons-edit")[0].getAttribute("data-id")));!1===p?(x=null,h.classList.add("tb_disabled_turn_on")):h.classList.remove("tb_disabled_turn_on");e=h=null}var z=
0<g.location.href.indexOf("?")?"&":"?",z=g.location.href.replace(g.location.hash,"").replace("#","")+z+"tb-preview=1&ver="+tbLocalScript.version;B();if(!b.body.classList.contains("tb_restriction"))if("#builder_active"===g.location.hash)c(".toggle_tb_builder > a").first().trigger("click"),g.location.hash="";else{h=b.createDocumentFragment();a=b.createElement("link");e=tinyMCEPreInit.mceInit.tb_lb_hidden_editor.content_css;p=tinyMCEPreInit.mceInit.tb_lb_hidden_editor.cache_suffix;a.href=z;a.rel="prerender prefetch";
h.appendChild(a);if(e)for(var e=e.split(","),a=0,A=e.length;a<A;++a)e[a]+=(-1<e[a].indexOf("?")?"&":"?")+p,n=b.createElement("link"),n.href=e[a],n.rel="prefetch",n.setAttribute("crossorigin",!0),h.appendChild(n);b.head.appendChild(h)}})})(jQuery,window,document,Themify,void 0);
