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,r,a,i){wp.customize(r,function(t){t.bind(function(t){if(t.desktop||t.mobile||t.tablet){r=(r=r.replace("[","-")).replace("]",""),jQuery("style#"+r+"-"+s).remove();var e="",o="",n="";""!=t.desktop&&(e=a+": "+t.desktop),""!=t.tablet&&(o=a+": "+t.tablet),""!=t.mobile&&(n=a+": "+t.mobile),jQuery("head").append('")}else wp.customize.preview.send("refresh"),jQuery("style#"+r+"-"+s).remove()})})}function astra_responsive_font_size(r,a){wp.customize(r,function(t){t.bind(function(t){if(t.desktop||t.mobile||t.tablet){r=(r=r.replace("[","-")).replace("]",""),jQuery("style#"+r+"-"+s).remove();var e="",o="",n="",s="font-size";""!=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#"+r).remove()})})}function astra_responsive_spacing(i,u,c,m){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 m&&(t=(t=m+"").replace(/,/g,"-")),null!=typeof c&&(n=c+""),i=(i=i.replace("[","-")).replace("]",""),jQuery("style#"+i+"-"+n+"-"+t).remove();var s="",r="",a="",e=null!=typeof m?m:["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]&&(r+=n+"-"+e+": "+o.tablet[e]+o["tablet-unit"]+";")}),jQuery.each(e,function(t,e){""!=o.mobile[e]&&(a+=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?(void 0!==s&&("url"===s?t="url("+t+")":t+=s),jQuery("style#"+e+"-"+o).remove(),jQuery("head").append('")):jQuery("style#"+e).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="",r=e["background-image"],a=e["background-color"];""===a&&""===r?t.preview.send("refresh"):(""!==r&&""!==a?void 0!==a&&(s="background-image: linear-gradient(to right, "+a+", "+a+"), url("+r+");"):""!==r?s="background-image: url("+r+");":""!==a&&(s="background-color: "+a+";",s+="background-image: none;"),""!==r&&(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_apply_background_css(t,i,u){wp.customize(t,function(t){t.bind(function(t,e){var o=JSON.parse(t);if(bg_obj=o[i],""!==bg_obj&&void 0!==bg_obj){jQuery("style#"+i).remove();var n="",s=bg_obj["background-image"],r=bg_obj["background-color"];""!==s&&""!==r?void 0!==r&&(n="background-image: linear-gradient(to right, "+r+", "+r+"), url("+s+");"):""!==s?n="background-image: url("+s+");":""!==r&&(n="background-color: "+r+";"),""==s?n+="background-image: none;":(n+="background-repeat: "+bg_obj["background-repeat"]+";",n+="background-position: "+bg_obj["background-position"]+";",n+="background-size: "+bg_obj["background-size"]+";",n+="background-attachment: "+bg_obj["background-attachment"]+";");var a='";jQuery("head").append(a)}})})}function astra_generate_outside_font_family_css(r,a){wp.customize(r,function(t){t.bind(function(t,e){var o="font-family",n="";if(s=(s=t.split(",")[0]).replace(/'/g,""),r=(r=r.replace("[","-")).replace("]",""),jQuery("style#"+r+"-"+o).remove(),s in astraCustomizer.googleFonts){var s=s.split(" ").join("+");jQuery("link#"+r).remove(),n=''}jQuery("head").append('"+n)})})}function astra_generate_font_weight_css(e,o,n,s){wp.customize(o,function(t){t.bind(function(t){o=(o=o.replace("[","-")).replace("]",""),t?("undefined"!=typeof unit&&("url"===unit?t="url("+t+")":t+=unit),fontName=wp.customize._value[e]._value,fontName=fontName.split(","),fontName=fontName[0].replace(/'/g,""),jQuery("style#"+o+"-"+n).remove(),fontName in astraCustomizer.googleFonts&&(jQuery("#"+e).remove(),link=''),jQuery("head").append('"+link)):jQuery("style#"+o).remove()})})}function astra_apply_responsive_background_css(c,m,d,b,l){wp.customize(c,function(t){t.bind(function(t){if(b=b||"",l=(l=l||"")||"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"],r=t[d]["background-color"],a=!!t.tablet["background-image"],i=!!t.desktop["background-image"];if(""!==o&&""!==r&&void 0!==r?e="background-image: linear-gradient(to right, "+r+", "+r+"), url("+o+");":""!==o?e="background-image: url("+o+");":""!==r&&("mobile"===d?1==i&&1==a?e="background-image: linear-gradient(to right, "+r+", "+r+"), url("+n+");":1==i?e="background-image: linear-gradient(to right, "+r+", "+r+"), url("+s+");":1==a?e="background-image: linear-gradient(to right, "+r+", "+r+"), url("+n+");":(e="background-color: "+r+";",e+="background-image: none;"):"tablet"===d&&1==i?e="background-image: linear-gradient(to right, "+r+", "+r+"), url("+s+");":(e="background-color: "+r+";",e+="background-image: none;"),m.includes(b)||(m+=", "+b)),""!=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+"-"+l).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(o){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;} .astra-logo-svg{width: "+t.desktop+"px;} @media( max-width: 768px ) { #masthead .site-logo-img .custom-logo-link img { max-width: "+t.tablet+"px;} .astra-logo-svg{width: "+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;} .astra-logo-svg{width: "+t.mobile+"px; } }"),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[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