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_refresh_customizer(t){wp.customize(t,function(t){t.bind(function(t){wp.customize.preview.send("refresh")})})}function astra_color_responsive_css(n,r,a,i){wp.customize(r,function(t){t.bind(function(t){var e,o,s;t.desktop||t.mobile||t.tablet?(r=(r=r.replace("[","-")).replace("]",""),jQuery("style#"+r+"-"+n).remove(),(s=o=e="")!=t.desktop&&(e=a+": "+t.desktop),""!=t.tablet&&(o=a+": "+t.tablet),""!=t.mobile&&(s=a+": "+t.mobile),jQuery("head").append('")):jQuery("style#"+r+"-"+n).remove()})})}function astra_responsive_font_size(r,a){wp.customize(r,function(t){t.bind(function(t){var e,o,s,n;t.desktop||t.mobile||t.tablet?(r=(r=r.replace("[","-")).replace("]",""),s=o=e="",n="font-size",jQuery("style#"+r+"-"+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#"+r+"-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,u,l,c){wp.customize(i,function(t){t.bind(function(o){var s,n,r,t,e="",a="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 c&&(e=(e=c+"").replace(/,/g,"-")),null!=typeof l&&(a=l+""),i=(i=i.replace("[","-")).replace("]",""),jQuery("style#"+i+"-"+a+"-"+e).remove(),r=n=s="",t=null!=typeof c?c:["top","bottom","right","left"],jQuery.each(t,function(t,e){""!=o.desktop[e]&&(s+=a+"-"+e+": "+o.desktop[e]+o["desktop-unit"]+";")}),jQuery.each(t,function(t,e){""!=o.tablet[e]&&(n+=a+"-"+e+": "+o.tablet[e]+o["tablet-unit"]+";")}),jQuery.each(t,function(t,e){""!=o.mobile[e]&&(r+=a+"-"+e+": "+o.mobile[e]+o["mobile-unit"]+";")}),jQuery("head").append('")):(wp.customize.preview.send("refresh"),jQuery("style#"+i+"-"+a+"-"+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,r,a=!1){wp.customize(o,function(t){t.bind(function(t){var e;o=(o=o.replace("[","-")).replace("]",""),(t||0===t)&&(void 0!==r&&("url"===r?t="url("+t+")":t+=r),e=a?" !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,r,a="",i=e["background-image"],u=e["background-color"];""===u&&""===i?jQuery("style#"+o).remove():(void 0!==e["background-type"]&&""!==e["background-type"]&&("color"===e["background-type"]?""!==i&&""!==u&&void 0!==u&&"unset"!==u?a="background-image: linear-gradient(to right, "+u+", "+u+"), url("+i+");":void 0!==i&&""!==i&&"unset"!==i||(a="background-color: "+u+";"):"image"===e["background-type"]?""!==i&&(a="overlay-type"in e&&"none"!==e["overlay-type"]?(n="overlay-color"in e?e["overlay-color"]:"",r="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"]&&""!==r?"background-image: "+r+", url("+i+");":"background-image: url("+i+");"):"background-image: url("+i+");"):"gradient"===e["background-type"]&&""!==u&&"unset"!==u&&(a="background-image: "+u+";")),""!==i&&(a=(a=(a=(a+="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}}",a)))}function astra_generate_outside_font_family_css(r,a){wp.customize(r,function(t){t.bind(function(t,e){var o="font-family",s="",n=t.split(",")[0];n=n.replace(/'/g,""),r=(r=r.replace("[","-")).replace("]",""),jQuery("style#"+r+"-"+o).remove(),n in astraCustomizer.googleFonts&&(n=n.split(" ").join("+"),jQuery("link#"+r).remove(),s=''),jQuery("head").append('"+s)})})}function astra_builder_advanced_css(o,s){wp.customize("astra-settings["+o+"-padding]",function(t){t.bind(function(t){var e;t.hasOwnProperty("desktop")&&(""!=t.desktop.bottom||""!=t.desktop.top||""!=t.desktop.left||""!=t.desktop.right||""!=t.tablet.bottom||""!=t.tablet.top||""!=t.tablet.left||""!=t.tablet.right||""!=t.mobile.bottom||""!=t.mobile.top||""!=t.mobile.left||""!=t.mobile.right?(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e="")+s+" {padding-left: "+t.desktop.left+t["desktop-unit"]+";")+"padding-right: "+t.desktop.right+t["desktop-unit"]+";")+"padding-top: "+t.desktop.top+t["desktop-unit"]+";")+"padding-bottom: "+t.desktop.bottom+t["desktop-unit"]+";} @media (max-width: 921px) {")+s+" {padding-left: "+t.tablet.left+t["tablet-unit"]+";")+"padding-right: "+t.tablet.right+t["tablet-unit"]+";")+"padding-top: "+t.tablet.top+t["tablet-unit"]+";")+"padding-bottom: "+t.tablet.bottom+t["tablet-unit"]+";} } @media (max-width: 544px) {")+s+" {padding-left: "+t.mobile.left+t["mobile-unit"]+";")+"padding-right: "+t.mobile.right+t["mobile-unit"]+";")+"padding-top: "+t.mobile.top+t["mobile-unit"]+";")+"padding-bottom: "+t.mobile.bottom+t["mobile-unit"]+";",astra_add_dynamic_css(o+"-padding-toggle-button",e=e+"} "+"} ")):astra_add_dynamic_css(o+"-padding-toggle-button",""))})}),wp.customize("astra-settings["+o+"-margin]",function(t){t.bind(function(t){var e;t.hasOwnProperty("desktop")&&(""!=t.desktop.bottom||""!=t.desktop.top||""!=t.desktop.left||""!=t.desktop.right||""!=t.tablet.bottom||""!=t.tablet.top||""!=t.tablet.left||""!=t.tablet.right||""!=t.mobile.bottom||""!=t.mobile.top||""!=t.mobile.left||""!=t.mobile.right?(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e="")+s+" {margin-left: "+t.desktop.left+t["desktop-unit"]+";")+"margin-right: "+t.desktop.right+t["desktop-unit"]+";")+"margin-top: "+t.desktop.top+t["desktop-unit"]+";")+"margin-bottom: "+t.desktop.bottom+t["desktop-unit"]+";} @media (max-width: 921px) {")+s+" {margin-left: "+t.tablet.left+t["tablet-unit"]+";")+"margin-right: "+t.tablet.right+t["tablet-unit"]+";")+"margin-top: "+t.tablet.top+t["tablet-unit"]+";")+"margin-bottom: "+t.tablet.bottom+t["tablet-unit"]+";} } @media (max-width: 544px) {")+s+" {margin-left: "+t.mobile.left+t["mobile-unit"]+";")+"margin-right: "+t.mobile.right+t["mobile-unit"]+";")+"margin-top: "+t.mobile.top+t["mobile-unit"]+";")+"margin-bottom: "+t.mobile.bottom+t["mobile-unit"]+";",astra_add_dynamic_css(o+"-margin-toggle-button",e=e+"} "+"} ")):astra_add_dynamic_css(o+"-margin-toggle-button",""))})})}function astra_border_spacing_advanced_css(o,s){wp.customize("astra-settings["+o+"-border-width]",function(t){t.bind(function(t){var e=s+" {",e=(e=(e=(e=(e=(e=(e=(e+=t.top?"border-top-style: solid;":"")+(t.right?"border-right-style: solid;":""))+(t.bottom?"border-bottom-style: solid;":""))+(t.left?"border-left-style: solid;":""))+("border-top-width:"+t.top+"px;"))+("border-right-width:"+t.right+"px;"))+("border-left-width:"+t.left+"px;"))+("border-bottom-width:"+t.bottom+"px;");astra_add_dynamic_css("astra-settings["+o+"-border-width]",e+="} ")})}),wp.customize("astra-settings["+o+"-border-radius]",function(t){t.bind(function(t){var e;""===t.top&&""===t.right&&""===t.bottom||""===t.left?wp.customize.preview.send("refresh"):(e=s+" {",e=(e=(e=(e+="border-top-left-radius:"+t.top+"px;")+"border-top-right-radius:"+t.right+"px;")+"border-bottom-left-radius:"+t.left+"px;")+"border-bottom-right-radius:"+t.bottom+"px;",astra_add_dynamic_css("astra-settings["+o+"-border-radius]",e+="} "))})}),astra_css("astra-settings["+o+"-border-color]","border-color",s),astra_builder_advanced_css(o,s)}function astra_generate_font_weight_css(s,n,r,a){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+"-"+r).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(l,c,d,t,b){wp.customize(l,function(t){t.bind(function(t){var e,o,s,n,r,a,i,u;b=(b=b||"")||"header",l=(l=l.replace("[","-")).replace("]",""),""!==t[d]&&void 0!==t[d]&&(i="",e=t[d]["background-image"],a=t.tablet["background-image"],o=t.desktop["background-image"],s=t[d]["background-color"],r=!!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+");":r?i="background-image: linear-gradient(to right, "+s+", "+s+"), url("+a+");":(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"]?(r=void 0!==t[d]["overlay-color"]?t[d]["overlay-color"]:"",a=void 0!==t[d]["overlay-gradient"]?t[d]["overlay-gradient"]:"","classic"===t[d]["overlay-type"]&&""!==r?"background-image: linear-gradient(to right, "+r+", "+r+"), url("+e+");":"gradient"===t[d]["overlay-type"]&&""!==a?"background-image: "+a+", 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#"+l+"-"+d+"-"+b).remove(),"desktop"==d&&(u='"),"tablet"==d&&(u='"),"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;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(r){wp.customize("astra-settings[ast-header-responsive-logo-width]",function(t){t.bind(function(t){var e=astraCustomizer.tablet_breakpoint||921,o=astraCustomizer.mobile_breakpoint||544;""!=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; height: "+t.desktop+"px; width: 100%; } @media( max-width: "+e+"px ) { #masthead .site-logo-img .custom-logo-link img { max-width: "+t.tablet+"px; height: "+t.tablet+"px; width: 100%; } #masthead .site-logo-img img { max-height: "+t.tablet+"px; } } @media( max-width: "+o+"px ) { #masthead .site-logo-img .custom-logo-link img { max-width: "+t.mobile+"px; height: "+t.mobile+"px; width: 100%; }#masthead .site-logo-img img { max-width: "+t.mobile+"px; max-height: "+t.mobile+"px; width: 100%; height: 100%; } }"),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: "+e+"px ) { .ast-header-break-point #masthead .site-logo-img .custom-mobile-logo-link img { max-width: "+t.tablet+"px; } @media( max-width: "+o+"px ) { .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||921)+"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