function astra_font_size_rem(t,e,o){var s="";return""!=t&&(o=null!=typeof o?o:"desktop",s="font-size: "+t+"px;",e)&&((e=wp.customize("astra-settings[font-size-body]").get()).desktop=""!=e.desktop?e.desktop:15,e.tablet=""!=e.tablet?e.tablet:e.desktop,e.mobile=""!=e.mobile?e.mobile:e.tablet,s+="font-size: "+t/e[o]+"rem;"),s}function astra_color_responsive_css(n,a,r,i){wp.customize(a,function(t){t.bind(function(t){var e,o,s;t.desktop||t.mobile||t.tablet?(a=(a=a.replace("[","-")).replace("]",""),jQuery("style#"+a+"-"+n).remove(),(s=o=e="")!=t.desktop&&(e=r+": "+t.desktop),""!=t.tablet&&(o=r+": "+t.tablet),""!=t.mobile&&(s=r+": "+t.mobile),jQuery("head").append('")):jQuery("style#"+a+"-"+n).remove()})})}function astra_responsive_font_size(a,r){wp.customize(a,function(t){t.bind(function(t){var e,o,s,n;t.desktop||t.mobile||t.tablet?(a=(a=a.replace("[","-")).replace("]",""),s=o=e="",n="font-size",jQuery("style#"+a+"-"+n).remove(),""!=t.desktop&&(e="font-size: "+t.desktop+(null==t["desktop-unit"]?"px":t["desktop-unit"])),""!=t.tablet&&(o="font-size: "+t.tablet+(null==t["tablet-unit"]?"px":t["tablet-unit"])),""!=t.mobile&&(s="font-size: "+t.mobile+(null==t["mobile-unit"]?"px":t["mobile-unit"])),"px"==t["desktop-unit"]&&(e=astra_font_size_rem(t.desktop,!0,"desktop")),jQuery("head").append('")):jQuery("style#"+a+"-font-size").remove()})})}function astra_font_extras_css(o,s){wp.customize("astra-settings["+o+"]",function(t){t.bind(function(t){var e;t?(jQuery("style#"+o).remove(),e=s+" { line-height : "+t["line-height"]+t["line-height-unit"]+";",e=(e=(e+="letter-spacing : "+t["letter-spacing"]+t["letter-spacing-unit"]+";")+"text-decoration : "+t["text-decoration"]+";")+"text-transform : "+t["text-transform"]+";}",jQuery("head").append('")):jQuery("style#"+o).remove()})})}function astra_responsive_spacing(i,c,u,l){wp.customize(i,function(t){t.bind(function(o){var s,n,a,t,e="",r="padding";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&&(e=(e=l+"").replace(/,/g,"-")),null!=typeof u&&(r=u+""),i=(i=i.replace("[","-")).replace("]",""),jQuery("style#"+i+"-"+r+"-"+e).remove(),a=n=s="",t=null!=typeof l?l:["top","bottom","right","left"],jQuery.each(t,function(t,e){""!=o.desktop[e]&&(s+=r+"-"+e+": "+o.desktop[e]+o["desktop-unit"]+";")}),jQuery.each(t,function(t,e){""!=o.tablet[e]&&(n+=r+"-"+e+": "+o.tablet[e]+o["tablet-unit"]+";")}),jQuery.each(t,function(t,e){""!=o.mobile[e]&&(a+=r+"-"+e+": "+o.mobile[e]+o["mobile-unit"]+";")}),jQuery("head").append('")):(wp.customize.preview.send("refresh"),jQuery("style#"+i+"-"+r+"-"+e).remove())})})}function astra_css_font_size(o,s){wp.customize(o,function(t){t.bind(function(t){var e;t?(o=(o=o.replace("[","-")).replace("]",""),jQuery("style#"+o).remove(),e="font-size: "+t,(!isNaN(t)||0<=t.indexOf("px"))&&(e=astra_font_size_rem(t=t.replace("px",""),!0)),jQuery("head").append('")):jQuery("style#"+o).remove()})})}function get_hexdec(t){t=t.toString(16);return parseInt(t,16)}function astra_css(o,s,n,a,r=!1){wp.customize(o,function(t){t.bind(function(t){var e;o=(o=o.replace("[","-")).replace("]",""),(t||0===t)&&(void 0!==a&&("url"===a?t="url("+t+")":t+=a),e=r?" !important":"",jQuery("style#"+o+"-"+s).remove(),jQuery("head").append('"),"unset"!==t)||jQuery("style#"+o+"-"+s).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,s){var n,a,r="",i=e["background-image"],c=e["background-color"];""===c&&""===i?jQuery("style#"+o).remove():(void 0!==e["background-type"]&&""!==e["background-type"]&&("color"===e["background-type"]?""!==i&&""!==c&&void 0!==c&&"unset"!==c?r="background-image: linear-gradient(to right, "+c+", "+c+"), url("+i+");":void 0!==i&&""!==i&&"unset"!==i||(r="background-color: "+c+";"):"image"===e["background-type"]?""!==i&&(r="overlay-type"in e&&"none"!==e["overlay-type"]?(n="overlay-color"in e?e["overlay-color"]:"",a="overlay-gradient"in e?e["overlay-gradient"]:"","classic"===e["overlay-type"]&&""!==n?"background-image: linear-gradient(to right, "+e["overlay-color"]+", "+e["overlay-color"]+"), url("+i+");":"gradient"===e["overlay-type"]&&""!==a?"background-image: "+a+", url("+i+");":"background-image: url("+i+");"):"background-image: url("+i+");"):"gradient"===e["background-type"]&&""!==c&&"unset"!==c&&(r="background-image: "+c+";")),""!==i&&(r=(r=(r=(r+="background-repeat: "+e["background-repeat"]+";")+"background-position: "+e["background-position"]+";")+"background-size: "+e["background-size"]+";")+"background-attachment: "+e["background-attachment"]+";"),astra_add_dynamic_css(o,s.replace("{{css}}",r)))}function astra_generate_outside_font_family_css(a,r){wp.customize(a,function(t){t.bind(function(t,e){var o="font-family",s="",n=t.split(",")[0];n=n.replace(/'/g,""),a=(a=a.replace("[","-")).replace("]",""),jQuery("style#"+a+"-"+o).remove(),n in astraCustomizer.googleFonts&&(n=n.split(" ").join("+"),jQuery("link#"+a).remove(),s=''),jQuery("head").append('"+s)})})}function astra_generate_font_weight_css(s,n,a,r){wp.customize(n,function(t){t.bind(function(t){n=(n=n.replace("[","-")).replace("]","");var e,o="";t?("undefined"!=typeof unit&&("url"===unit?t="url("+t+")":t+=unit),e=(e=(e=wp.customize._value[s]._value).split(","))[0].replace(/'/g,""),jQuery("style#"+n+"-"+a).remove(),e in astraCustomizer.googleFonts&&(jQuery("#"+s).remove(),o="inherit"===t?'':''),jQuery("head").append('"+o)):jQuery("style#"+n).remove()})})}function astra_apply_responsive_background_css(u,l,d,t,b){wp.customize(u,function(t){t.bind(function(t){var e,o,s,n,a,r,i,c;b=(b=b||"")||"header",u=(u=u.replace("[","-")).replace("]",""),""!==t[d]&&void 0!==t[d]&&(i="",e=t[d]["background-image"],r=t.tablet["background-image"],o=t.desktop["background-image"],s=t[d]["background-color"],a=!!t.tablet["background-image"],n=!!t.desktop["background-image"],void 0!==t[d]["background-type"]&&""!==t[d]["background-type"]&&("color"===t[d]["background-type"]?""!==e&&""!==s&&void 0!==s&&"unset"!==s?i="background-image: linear-gradient(to right, "+s+", "+s+"), url("+e+");":"mobile"===d?n?i="background-image: linear-gradient(to right, "+s+", "+s+"), url("+o+");":a?i="background-image: linear-gradient(to right, "+s+", "+s+"), url("+r+");":(i="background-color: "+s+";",i+="background-image: none;"):"tablet"===d?n?i="background-image: linear-gradient(to right, "+s+", "+s+"), url("+o+");":(i="background-color: "+s+";",i+="background-image: none;"):void 0!==e&&""!==e||(i="background-color: "+s+";",i+="background-image: none;"):"image"===t[d]["background-type"]?""!==e&&(i=void 0!==t[d]["overlay-type"]&&"none"!==t[d]["overlay-type"]?(a=void 0!==t[d]["overlay-color"]?t[d]["overlay-color"]:"",r=void 0!==t[d]["overlay-gradient"]?t[d]["overlay-gradient"]:"","classic"===t[d]["overlay-type"]&&""!==a?"background-image: linear-gradient(to right, "+a+", "+a+"), url("+e+");":"gradient"===t[d]["overlay-type"]&&""!==r?"background-image: "+r+", url("+e+");":"background-image: url("+e+");"):"background-image: url("+e+");"):"gradient"===t[d]["background-type"]&&""!==s&&"unset"!==s&&(i="background-image: "+s+";")),""!==e&&(i=(i=(i=(i+="background-repeat: "+t[d]["background-repeat"]+";")+"background-position: "+t[d]["background-position"]+";")+"background-size: "+t[d]["background-size"]+";")+"background-attachment: "+t[d]["background-attachment"]+";"),jQuery("style#"+u+"-"+d+"-"+b).remove(),"desktop"==d&&(c='"),"tablet"==d&&(c='"),"mobile"==d&&(c='"),jQuery("head").append(c))})})}function getChangedKey(t,e){t=isJsonString(t)?JSON.parse(t):t,e=isJsonString(e)?JSON.parse(e):e;for(var o in t){if(!e.hasOwnProperty(o)||!t.hasOwnProperty(o))return o;if(!1===function(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}}(t[o],e[o]))return o}return!0}function isJsonString(t){try{JSON.parse(t)}catch(t){return!1}return!0}function hasWordPressWidgetBlockEditor(){return astraCustomizer.has_block_editor_support||!1}!function(a){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",t=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: "+t+";} }")})}),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",t=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: "+t+";} }")})}),wp.customize("astra-settings[site-content-width]",function(t){t.bind(function(t){var e=(e="@media (min-width: 554px) {")+(".ast-container, .fl-builder #content .entry-header { max-width: "+(40+parseInt(t))+"px } ")+"}";astra_add_dynamic_css("site-content-width",e=jQuery("body").hasClass("ast-page-builder-template")?(e+="@media (min-width: 554px) {")+".ast-page-builder-template .comments-area { max-width: "+(40+parseInt(t))+"px } }":e)})}),wp.customize("astra-settings[header-main-menu-label]",function(t){t.bind(function(t){var e;0