function astra_font_size_rem(t,e,o){var n="";if(""!=t){o=null!=typeof o?o:"desktop";if(n="font-size: "+t+"px;",e){var s=wp.customize("astra-settings[font-size-body]").get();s.desktop=""!=s.desktop?s.desktop:15,s.tablet=""!=s.tablet?s.tablet:s.desktop,s.mobile=""!=s.mobile?s.mobile:s.tablet,n+="font-size: "+t/s[o]+"rem;"}}return n}function astra_color_responsive_css(s,a,r,i){wp.customize(a,function(t){t.bind(function(t){if(t.desktop||t.mobile||t.tablet){a=(a=a.replace("[","-")).replace("]",""),jQuery("style#"+a+"-"+s).remove();var e="",o="",n="";""!=t.desktop&&(e=r+": "+t.desktop),""!=t.tablet&&(o=r+": "+t.tablet),""!=t.mobile&&(n=r+": "+t.mobile),jQuery("head").append('")}else jQuery("style#"+a+"-"+s).remove()})})}function astra_responsive_font_size(a,r){wp.customize(a,function(t){t.bind(function(t){if(t.desktop||t.mobile||t.tablet){a=(a=a.replace("[","-")).replace("]","");var e="",o="",n="",s="font-size";jQuery("style#"+a+"-"+s).remove(),""!=t.desktop&&(e="font-size: "+t.desktop+t["desktop-unit"]),""!=t.tablet&&(o="font-size: "+t.tablet+t["tablet-unit"]),""!=t.mobile&&(n="font-size: "+t.mobile+t["mobile-unit"]),"px"==t["desktop-unit"]&&(e=astra_font_size_rem(t.desktop,!0,"desktop")),jQuery("head").append('")}else jQuery("style#"+a+"-font-size").remove()})})}function astra_responsive_spacing(i,u,c,l){wp.customize(i,function(t){t.bind(function(o){var t="",n="padding";if(o.desktop.top||o.desktop.right||o.desktop.bottom||o.desktop.left||o.tablet.top||o.tablet.right||o.tablet.bottom||o.tablet.left||o.mobile.top||o.mobile.right||o.mobile.bottom||o.mobile.left){null!=typeof l&&(t=(t=l+"").replace(/,/g,"-")),null!=typeof c&&(n=c+""),i=(i=i.replace("[","-")).replace("]",""),jQuery("style#"+i+"-"+n+"-"+t).remove();var s="",a="",r="",e=null!=typeof l?l:["top","bottom","right","left"];jQuery.each(e,function(t,e){""!=o.desktop[e]&&(s+=n+"-"+e+": "+o.desktop[e]+o["desktop-unit"]+";")}),jQuery.each(e,function(t,e){""!=o.tablet[e]&&(a+=n+"-"+e+": "+o.tablet[e]+o["tablet-unit"]+";")}),jQuery.each(e,function(t,e){""!=o.mobile[e]&&(r+=n+"-"+e+": "+o.mobile[e]+o["mobile-unit"]+";")}),jQuery("head").append('")}else wp.customize.preview.send("refresh"),jQuery("style#"+i+"-"+n+"-"+t).remove()})})}function astra_css_font_size(o,n){wp.customize(o,function(t){t.bind(function(t){if(t){o=(o=o.replace("[","-")).replace("]",""),jQuery("style#"+o).remove();var e="font-size: "+t;(!isNaN(t)||0<=t.indexOf("px"))&&(e=astra_font_size_rem(t=t.replace("px",""),!0)),jQuery("head").append('")}else jQuery("style#"+o).remove()})})}function get_hexdec(t){var e=t.toString(16);return parseInt(e,16)}function astra_css(e,o,n,s){wp.customize(e,function(t){t.bind(function(t){e=(e=e.replace("[","-")).replace("]",""),t||0===t?(void 0!==s&&("url"===s?t="url("+t+")":t+=s),jQuery("style#"+e+"-"+o).remove(),jQuery("head").append('"),"unset"===t&&jQuery("style#"+e+"-"+o).remove()):jQuery("style#"+e+"-"+o).remove()})})}function astra_add_dynamic_css(t,e){t=(t=t.replace("[","-")).replace("]",""),jQuery("style#"+t).remove(),jQuery("head").append('")}function astra_background_obj_css(t,e,o,n){var s="",a=e["background-image"],r=e["background-color"];""===r&&""===a?jQuery("style#"+o).remove():(void 0!==e["background-type"]&&""!==e["background-type"]&&("color"===e["background-type"]?""!==a&&""!==r&&void 0!==r&&"unset"!==r?s="background-image: linear-gradient(to right, "+r+", "+r+"), url("+a+");":void 0!==a&&""!==a&&"unset"!==a||(s="background-color: "+r+";"):"image"===e["background-type"]?(""===a||""===r||void 0===r||"unset"===r||r.includes("linear-gradient")||r.includes("radial-gradient")||(s="background-image: linear-gradient(to right, "+r+", "+r+"), url("+a+");"),(void 0===r||""===r||"unset"===r||r.includes("linear-gradient")||r.includes("radial-gradient"))&&""!==a&&(s="background-image: url("+a+");")):"gradient"===e["background-type"]&&""!==r&&"unset"!==r&&(s="background-image: "+r+";")),""!==a&&(s+="background-repeat: "+e["background-repeat"]+";",s+="background-position: "+e["background-position"]+";",s+="background-size: "+e["background-size"]+";",s+="background-attachment: "+e["background-attachment"]+";"),astra_add_dynamic_css(o,n.replace("{{css}}",s)))}function astra_generate_outside_font_family_css(a,r){wp.customize(a,function(t){t.bind(function(t,e){var o="font-family",n="";if(s=(s=t.split(",")[0]).replace(/'/g,""),a=(a=a.replace("[","-")).replace("]",""),jQuery("style#"+a+"-"+o).remove(),s in astraCustomizer.googleFonts){var s=s.split(" ").join("+");jQuery("link#"+a).remove(),n=''}jQuery("head").append('"+n)})})}function astra_generate_font_weight_css(n,s,a,r){wp.customize(s,function(t){t.bind(function(t){s=(s=s.replace("[","-")).replace("]","");var e="";if(t){"undefined"!=typeof unit&&("url"===unit?t="url("+t+")":t+=unit);var o=wp.customize._value[n]._value;o=(o=o.split(","))[0].replace(/'/g,""),jQuery("style#"+s+"-"+a).remove(),o in astraCustomizer.googleFonts&&(jQuery("#"+n).remove(),e="inherit"===t?'':''),jQuery("head").append('"+e)}else jQuery("style#"+s).remove()})})}function astra_apply_responsive_background_css(c,l,d,t,m){wp.customize(c,function(t){t.bind(function(t){if("",m=(m=m||"")||"header",c=(c=c.replace("[","-")).replace("]",""),""!==t[d]&&void 0!==t[d]){var e="",o=t[d]["background-image"],n=t.tablet["background-image"],s=t.desktop["background-image"],a=t[d]["background-color"],r=!!t.tablet["background-image"],i=!!t.desktop["background-image"];if(void 0!==t[d]["background-type"]&&""!==t[d]["background-type"]&&("color"===t[d]["background-type"]?""!==o&&""!==a&&void 0!==a&&"unset"!==a?e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+o+");":"mobile"===d?i?e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+s+");":r?e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+n+");":(e="background-color: "+a+";",e+="background-image: none;"):"tablet"===d?i?e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+s+");":(e="background-color: "+a+";",e+="background-image: none;"):void 0!==o&&""!==o||(e="background-color: "+a+";",e+="background-image: none;"):"image"===t[d]["background-type"]?(""===o||""===a||void 0===a||"unset"===a||a.includes("linear-gradient")||a.includes("radial-gradient")||(e="background-image: linear-gradient(to right, "+a+", "+a+"), url("+o+");"),(void 0===a||""===a||"unset"===a||a.includes("linear-gradient")||a.includes("radial-gradient"))&&""!==o&&(e="background-image: url("+o+");")):"gradient"===t[d]["background-type"]&&""!==a&&"unset"!==a&&(e="background-image: "+a+";")),""!==o&&(e+="background-repeat: "+t[d]["background-repeat"]+";",e+="background-position: "+t[d]["background-position"]+";",e+="background-size: "+t[d]["background-size"]+";",e+="background-attachment: "+t[d]["background-attachment"]+";"),jQuery("style#"+c+"-"+d+"-"+m).remove(),"desktop"==d)var u='";if("tablet"==d)u='";if("mobile"==d)u='";jQuery("head").append(u)}})})}function getChangedKey(t,e){t=isJsonString(t)?JSON.parse(t):t,e=isJsonString(e)?JSON.parse(e):e;function o(t,e){var o=Object.prototype.toString.call(t);if(0<=["[object Array]","[object Object]"].indexOf(o)){if("string"==typeof getChangedKey(t,e))return!1}else{if(o!==Object.prototype.toString.call(e))return!1;if("[object Function]"===o){if(t.toString()!==e.toString())return!1}else if(t!==e)return!1}}for(var n in t){if(!e.hasOwnProperty(n)||!t.hasOwnProperty(n))return n;if(!1===o(t[n],e[n]))return n}return!0}function isJsonString(t){try{JSON.parse(t)}catch(t){return!1}return!0}!function(i){wp.customize("astra-settings[ast-header-responsive-logo-width]",function(t){t.bind(function(t){""!=t.desktop||""!=t.tablet||""!=t.mobile?(astra_add_dynamic_css("ast-header-responsive-logo-width","#masthead .site-logo-img .custom-logo-link img { max-width: "+t.desktop+"px; } @media( max-width: 768px ) { #masthead .site-logo-img .custom-logo-link img { max-width: "+t.tablet+"px; } #masthead .site-logo-img img { max-height: "+t.tablet+"px; } } @media( max-width: 544px ) { .ast-header-break-point .site-branding img, .ast-header-break-point #masthead .site-logo-img .custom-logo-link img { max-width: "+t.mobile+"px; }#masthead .site-logo-img img { max-height: "+t.mobile+"px; } .astra-logo-svg{width: "+t.mobile+"px !important; } }"),astra_add_dynamic_css("mobile-header-logo-width",".ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img { max-width: "+t.tablet+"px; } @media( max-width: 768px ) { .ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img { max-width: "+t.tablet+"px; } @media( max-width: 544px ) { .ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img { max-width: "+t.mobile+"px; }")):wp.customize.preview.send("refresh")})}),wp.customize("astra-settings[display-site-title-responsive]",function(t){t.bind(function(t){var e=t.desktop?"block":"none",o=t.tablet?"block":"none",n=t.mobile?"block":"none";astra_add_dynamic_css("display-site-title-responsive",".ast-site-title-wrap .site-title { display: "+e+";} @media( max-width: "+(astraBuilderPreview.tablet_break_point||768)+"px) { .ast-site-title-wrap .site-title { display: "+o+";} } @media( max-width: "+(astraBuilderPreview.mobile_break_point||544)+"px) { .ast-site-title-wrap .site-title { display: "+n+";} }")})}),wp.customize("astra-settings[display-site-tagline-responsive]",function(t){t.bind(function(t){var e=t.desktop?"block":"none",o=t.tablet?"block":"none",n=t.mobile?"block":"none";astra_add_dynamic_css("display-site-tagline-responsive",".ast-site-title-wrap .site-description { display: "+e+";} @media( max-width: "+(astraBuilderPreview.tablet_break_point||768)+"px) { .ast-site-title-wrap .site-description { display: "+o+";} } @media( max-width: "+(astraBuilderPreview.mobile_break_point||544)+"px) { .ast-site-title-wrap .site-description { display: "+n+";} }")})}),wp.customize("astra-settings[site-content-width]",function(t){t.bind(function(t){var e="@media (min-width: 554px) {";e+=".ast-container, .fl-builder #content .entry-header { max-width: "+(40+parseInt(t))+"px } ",e+="}",jQuery("body").hasClass("ast-page-builder-template")&&(e+="@media (min-width: 554px) {",e+=".ast-page-builder-template .comments-area { max-width: "+(40+parseInt(t))+"px } ",e+="}"),astra_add_dynamic_css("site-content-width",e)})}),wp.customize("astra-settings[header-main-menu-label]",function(t){t.bind(function(t){if(0