var ThemifyStyles;((e,t,i,r)=>{"use strict";var n,o=null,a={},s={},l={},_={},u={},f={},d={},c=async e=>{if(!window.CompressionStream)throw"err";const t=(new TextEncoder).encode(e),i=new CompressionStream("gzip"),r=i.writable.getWriter();r.write(t),r.close();const n=await new Response(i.readable).arrayBuffer();return btoa(String.fromCharCode(...new Uint8Array(n)))};function h(e,t){return e===r||null===e||""===(e=(""+e).trim())?"":/^var\s*\(/i.test(e)?e:/^--[a-zA-Z0-9_-]+$/.test(e)?"var("+e+")":"0"===e?"0":e+(t||"px")}function g(e,t,i){if(!(i=((i||"")+"").trim()))return null;const r=i.indexOf(":"),n=r>=0?i.slice(0,r):i,o=r>=0?i.slice(r):"",a=n.replace(/\+/g," ").trim(),s=a.match(/^var\(\s*(--[a-zA-Z0-9_-]+)\s*\)$/i),l=a.match(/^--([a-zA-Z0-9_-]+)$/i);let _=s?s[1]:l?"--"+l[1]:"";if(!_)return a.split(" ").join("+")+o;0!==_.indexOf("--")&&(_="--"+_.replace(/^--+/,""));let u="";try{u=e.getComputedStyle(t.documentElement).getPropertyValue(_).trim()}catch(e){}if(u){const e=u.split(",")[0].replace(/^["'\s]+|["'\s]+$/g,"").trim();if(e&&!/^var\(/i.test(e))return e.split(" ").join("+")+o}const f=_.replace(/^--+/,"").toLowerCase(),d=e.tfSVData||e.themifyBuilder&&e.themifyBuilder.tf_sv;if(d&&d.vars){const e=[].concat(d.vars.theme||[],d.vars.user||[]);for(let t=0;t-1;--i){let r=e[i];for(let e=["mobile","tablet","tablet_landscape","desktop"],i=e.length-1;i>-1;--i){let n="desktop"===e[i]?t:t["breakpoint_"+e[i]];void 0!==n?.["_margin_"+r+"_divider"]&&(n["md_"+r]=n["_margin_"+r+"_divider"],delete n["_margin_"+r+"_divider"],n["_margin_"+r+"_divider_unit"]&&(n["md_"+r+"_unit"]=n["_margin_"+r+"_divider_unit"],delete n["_margin_"+r+"_divider_unit"]))}}else!t?.alignment||t.g_t_a||"overlay-content"!==e&&"cart-icon"!==e||(t.g_t_a=t.alignment);return t},normalizeArea(e,t){if(!e||-1!==e.indexOf("var")||-1===e.indexOf(" "))return e;e=e.replace(/\s\s+/g," ").trim().split('" "');for(var i=[],r=0;r0&&(r[n]+="%"),u[n]=r[n];this.breakpointsReverse=t,f=e,o="undefined"!=typeof tb_app&&tb_app.isVisual,this.t(i)},getRules:e=>e?a[e]:a,getStyleData(e,t){const i={};for(let t in e)"label"!==t&&"units"!==t&&"description"!==t&&"after"!==t&&"options"!==t&&"wrap_class"!==t&&"option_js"!==t&&"class"!==t&&"binding"!==t&&(i[t]=e[t]);return i.p=t,i},parseFontName(e){let t="";if(e){if(0===(e=(""+e).trim()).indexOf("var("))return e;if(0===e.indexOf("--"))return"var("+e+")";for(let i=0,r=(e=e.split(",")).length;i1;--m)for(var b=13;b>-1;--b)if(p[b]!==m)for(var v=3;v>-1;--v){var y=h.getPropertyValue(S="--area"+g[v]+m+"_"+p[b]);y&&(l[S]=y.replace(/col/gi,"").replace(/\s\s+/g," ").trim())}for(m=13;m>-1;--m){var k=h.getPropertyValue(S="--c"+p[m]);k&&(_[S]=k.replace(/\s\s+/g," ").replace(/\s0\./g," .").replace(/\.+0*?fr/g,"fr").replace(/\.+0*?\%/g,"%").replace(/\.+0*?em/g,"em").replace(/\.+0*?px/g,"px").trim())}!0===c&&d.remove()}if(e)if(-1!==e.indexOf("var"))f=e;else if(-1!==e.indexOf("_"))f="var(--area"+e.replace("--area","")+")";else{var w=(e=e.replace(/\s\s+/g," ").trim()).replace(/col/gi,""),x="--area",z=null;for(var S in s=x+o[0],u=x+a,-1!==o.indexOf("_")&&(s+=o.split("_")[1][0]),s+=a,l)if(l[S]===w){if(0===S.indexOf(s)){f="var("+S+")";break}null===z&&0===S.indexOf(u)&&(z="var("+S+")")}null===f&&(f=null===z?e:z)}return null!==f?(!1===n&&-1!==f.indexOf("--area")&&(f=f.replace(/ /g,""),s&&(f=f.replace(s,"")),u&&(f=f.replace(u,"")),"_"===(f=(f=f.replace(/var|\(|--areat|--areatl|--aream|--area|\)/g,"")).trim())[0]&&(f=f.substring(1))),f):l},getAreaValue(e){return 0===i.keys(l).length&&this.getArea(),e="--area"+e.replace("--area","").replace("area","").trim(),l[e]||!1},getColSize(e,t){var r=null;if(0===i.keys(_).length&&this.getArea(),e)if("auto"===(e=e.trim())||"none"===e||"initial"===e||-1!==e.indexOf("var"))r=e;else if(-1===e.indexOf(" "))r="var(--c"+e+")";else for(var n in r=e=e.replace(/\s\s+/g," ").replace(/\s0\./g," .").replace(/\.+0*?fr/g,"fr").replace(/\.+0*?\%/g,"%").replace(/\.+0*?em/g,"em").replace(/\.+0*?px/g,"px").trim(),_)if(_[n]===e){r="var("+n+")";break}return null!==r?(-1===r.indexOf("--c")||!1!==t&&-1===r.indexOf(" ")||-1===(r=r.replace(/var|\(|--c|\)/g,"")).indexOf(" ")&&(r=r.replace(/ /g,"")),r):_},getColSizeValue(e){return 0===i.keys(_).length&&this.getArea(),e="--c"+e.replace("--c","").replace("c","").replace("var(","").replace(")","").trim(),_[e]!==r&&_[e]},getGutter(e){if(e===r)return u;for(var t in u)if(u[t]===e||0===u[t]&&0===parseFloat(e))return t;return e},getGutterValue:e=>u[e=(""+e).trim()]!==r?""+u[e]:e,extend(){var e={},t=!1,r=this,n=0,o=arguments.length;!0===arguments[0]&&(t=arguments[0],++n);for(var a=n=>{for(var o in n)i.prototype.hasOwnProperty.call(n,o)&&(e[o]=t&&"[object Object]"===i.prototype.toString.call(n[o])?r.extend(!0,e[o],n[o]):n[o])};n-1;--n){var a=t.createElement("style");a.id=this.styleName+i[n]+"_global","desktop"!==i[n]&&!0===o&&(a.media="(max-width:"+tb_app.Utils.getBPWidth(i[n])+"px)"),r.appendChild(a)}for(n=i.length-1;n>-1;--n)(a=t.createElement("style")).id=this.styleName+i[n],"desktop"!==i[n]&&!0===o&&(a.media="(max-width:"+tb_app.Utils.getBPWidth(i[n])+"px)"),r.appendChild(a);var s=t.tfId("tb_active_style_"+e);null!==s?s.parentNode.replaceChild(r,s):null!==(s=t.tfId("themify_concate-css"))?s.parentNode.insertBefore(r,s.nextSibling):t.body.appendChild(r)},getSheet(e,i){return!0===i&&(e+="_global"),t.tfId(this.styleName+e).sheet},getBaseSelector(e,t,i,n){let a=".themify_builder_content-"+t+" .tb_"+i;return"row"!==e&&"column"!==e&&"subrow"!==e&&(a+=".module-"+e),!1===o&&n!==r&&"desktop"!==n&&"undefined"!=typeof tb_app&&(a=".builder-breakpoint-"+n+" "+a),a},getNestedSelector(e){if(null===this.disableNestedSel){const t=["p","blockquote","h1","h2","h3","h4","h5","h6","li","span"],i=t.length;for(let r=(e=e.slice(0)).length-1;r>-1;--r)if(e[r].includes(".tb_text_wrap")){let n=e[r].trimRight();if(n.endsWith(".tb_text_wrap"))for(let r=0;r=.99&&(n=1),i?"rgba("+parseInt(i[1],16)+", "+parseInt(i[2],16)+", "+parseInt(i[3],16)+", "+n+")":"#"!==e[0]?"#"+e:e}"#"!==e[0]&&(e="#"+e)}else e="";return e},rgbToHex(e){if(e.includes("rgb")){const t=e.replace(")","").split("(")[1].split(",");if(t[2]!==r){if(t[3]!==r)if(1==t[3])t.splice(3,1);else if(0==t[3])return"transparent";t[3]===r&&(e="#"+((1<<24)+(parseFloat(t[0].trim())<<16)+(parseFloat(t[1].trim())<<8)+parseFloat(t[2].trim())).toString(16).slice(1))}}return"#"===e[0]&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]&&(e="#"+e[1]+e[3]+e[5]),e},getStyleVal(e,t,i){let n=r;if(e){if(0!==(e=""+e).indexOf("tf_sv_")){const n=e.endsWith("_unit")?e.slice(0,-5):e,o=this.getStyleVal("tf_sv_"+n,t,i);if(o!==r&&""!==o){if(e.endsWith("_unit"))return"";let t=(""+o).trim().replace(/_undefined$/i,"");if(""!==t&&"undefined"!==t.toLowerCase())return 0===t.indexOf("var(")?t:0===t.indexOf("--")?"var("+t+")":"var(--"+t.replace(/^--+/,"")+")"}}if("desktop"===i)n=""!==t[e]?t[e]:r;else if(t["breakpoint_"+i]!==r&&t["breakpoint_"+i][e]!==r&&""!==t["breakpoint_"+i][e])n=t["breakpoint_"+i][e];else for(let o=this.breakpointsReverse,a=o.indexOf(i)+1,s=o.length;a{e&&-1===i.indexOf(e)&&i.push(e)};return r(e),"background_image-gradient"!==e&&"background_image"!==t||(r("background_gradient"),r("background_gradient-gradient")),"background_gradient"!==e&&"background_gradient"!==t||(r("background_image-gradient"),r("background_gradient-gradient")),"bg_i_h-gradient"!==e&&"bg_i_h"!==t||(r("b_g_h"),r("b_g_h-gradient")),"b_g_h"!==e&&"b_g_h"!==t||(r("bg_i_h-gradient"),r("b_g_h-gradient")),i},getGradientValue(e,t,i,n){const o=this.getGradientAliases(e,t);for(let e=0;e{t[i]!==r&&-1===e.indexOf(i)&&e.push(i)},s=[["background_image","background_image-gradient","background_gradient"],["bg_i_h","bg_i_h-gradient","b_g_h"]];for(let e=0;e"repeat"===e||"repeat-x"===e||"repeat-y"===e||"repeat-none"===e||"space"===e||"round"===e,k(e,t,i){const n=this.getStyleVal("background_size_w"+i,e,t),o=this.getStyleVal("background_size_h"+i,e,t);if(!(n!==r&&""!==n||o!==r&&""!==o))return"";const a=this.getStyleVal("background_size_w"+i+"_unit",e,t)||"px",s=this.getStyleVal("background_size_h"+i+"_unit",e,t)||"px",l=n!==r&&""!==n?h(n,a):"",_=o!==r&&""!==o?h(o,s):"";return""!==l&&""!==_?l+" "+_:""!==l?l+" auto":"auto "+_},m(e){if(!e||"object"!=typeof e)return"";const t=e.background_size_w,i=e.background_size_h;if(!(t!==r&&""!==t||i!==r&&""!==i))return"";const n=e.background_size_h_unit||"px",o=t!==r&&""!==t?h(t,e.background_size_w_unit||"px"):"",a=i!==r&&""!==i?h(i,n):"";return""!==o&&""!==a?o+" "+a:""!==o?o+" auto":"auto "+a},mergeAdditionalBgLayerStacks(e,t){const i=[],r=[],n=[],o=[],a=[],s=e=>{i.push(e.img),r.push(e.rep),n.push(e.size),o.push(e.pos),a.push(e.att)};if(e&&e.length)for(let t=e.length-1;t>-1;--t){const i=e[t];if(i&&"object"==typeof i)if("gradient"===i.type){const e=this.o(i);e&&s({img:e,rep:"no-repeat",size:"cover",pos:"50% 50%",att:"scroll"})}else{const e=this.l(i);e&&s(e)}}if(t&&t.imgs&&t.imgs.length)for(let e=0;e({main:"main",main_hover:"main_hover",inner:"inner",inner_hover:"inner_hover"}[e]||"main"),T(e,t,i,n,o,a){const s=this.getStyleVal(e+"-type",t,i);if(s===r||""===s)return a();if("gradient"===s||"hover_gradient"===s){const r=this.S(e,t,i);return r?{imgs:[r],reps:["no-repeat"],sizes:["cover"],poss:["50% 50%"],atts:["scroll"]}:a()}if("image"===s){const r=n&&n.repeatId,s=n&&n.posId;if(!r||!s)return a();const l=this.getStyleVal(r,t,i);if(l&&o[l])return null;const _=this.getStyleVal(e,t,i);if(!_||"none"===_)return a();const u=this.getStyleVal(s,t,i);return this.B(_,l,u,"scroll",!1,t,i,null)||a()}return a()},getMainCompositeBgStacksForPair(e,t,i,n,o){const a={"builder-parallax-scrolling":1,"builder-zoom-scrolling":1,"builder-zooming":1},s=()=>({imgs:[],reps:[],sizes:[],poss:[],atts:[]}),l=o&&o[n]?o[n]:null;if("main"===e){if("background_image"===n){const e=this.getBackgroundType("background_image",t,i);if("slider"===e||"video"===e)return null;if("gradient"===e){const e=this.S("background_image",t,i);return e?{imgs:[e],reps:["no-repeat"],sizes:["cover"],poss:["50% 50%"],atts:["scroll"]}:s()}if("image"===e){const e=this.getStyleVal("background_repeat",t,i);if(e&&a[e])return null;let n=this.getStyleVal("background_image",t,i);if("desktop"!==i&&"none"===this.getStyleVal("resp_no_bg",t,i)&&(n=""),!n||"none"===n)return s();const o=this.getStyleVal("background_zoom",t,i),l=o!==r&&!1!==o&&""!==o&&-1!==(""+o).indexOf("zoom"),_=this.getStyleVal("background_position",t,i),u=this.getStyleVal("background_attachment",t,i)||"scroll";return this.B(n,e,_,u,l,t,i,"")||s()}return s()}const e=[{img:"bg_i",rep:"bg_r",pos:"bg_p",attId:null},{img:"b_i_w_t",rep:"b_r_w_t",pos:"b_p_w_t",attId:null},{img:"b_i",rep:"b_r",pos:"b_p",attId:null}];for(let o=0;o({imgs:[],reps:[],sizes:[],poss:[],atts:[]});if("main"===e){const e=this.getBackgroundType("background_image",t,i);if("slider"===e||"video"===e)return null;if("gradient"===e){const e=this.S("background_image",t,i);return e?{imgs:[e],reps:["no-repeat"],sizes:["cover"],poss:["50% 50%"],atts:["scroll"]}:o()}if("image"===e){const e=this.getStyleVal("background_repeat",t,i);if(e&&n[e])return null;let a=this.getStyleVal("background_image",t,i);if("desktop"!==i&&"none"===this.getStyleVal("resp_no_bg",t,i)&&(a=""),!a||"none"===a)return o();const s=this.getStyleVal("background_zoom",t,i),l=s!==r&&!1!==s&&""!==s&&-1!==(""+s).indexOf("zoom"),_=this.getStyleVal("background_position",t,i),u=this.getStyleVal("background_attachment",t,i)||"scroll";return this.B(a,e,_,u,l,t,i,"")||o()}const a=[{img:"bg_i",rep:"bg_r",pos:"bg_p",attId:null},{img:"b_i_w_t",rep:"b_r_w_t",pos:"b_p_w_t",attId:null},{img:"b_i",rep:"b_r",pos:"b_p",attId:null}];for(let e=0;e-1;--t)-1!==e[t].indexOf(".tb_visual_hover")&&e.splice(t,1);r=e.join(","),e=null}a.push(e+r)}return a.join(",").trim().replace(/\s\s+/g," ")},applyMergedBgToStylesMap(e,t,i){if(!t||!i)return;const n={"background-image":1,"background-repeat":1,"background-size":1,"background-position":1,"background-attachment":1},o=["background-image","background-repeat","background-size","background-position","background-attachment"];e[t]===r&&(e[t]=[]);const a=e[t];for(let e=a.length-1;e>-1;--e){const t=a[e].indexOf(":");n[-1===t?"":a[e].slice(0,t)]&&a.splice(e,1)}for(let e=0;e{if(s[t][i]!==r)return s[t][i];if(e.is_overlay===r&&"frame"!==e.type&&"video"!==e.type&&("radio"!==e.type||e.prop!==r)){var a=e.p,l=e.type,_=e.is_responsive,u=null,f=e.is_hover,d=e.prop;if("select"===l||"icon_radio"===l||"radio"===l||"checkbox"===l||"icon_checkbox"===l)for(var c in e)if(!0===e[c]&&"option_js"!==c){u=c;break}var h=()=>{for(var e in n)if(a===n[e].p&&d===n[e].prop&&l===n[e].type&&f===n[e].is_hover&&(null===u||!0===n[e][u])&&_===n[e].is_responsive)return s[t][i]=e,!0;return!1};if(!0===h())return s[t][i];if("background-image"!==d||"image"!==l&&"imageGradient"!==l){if("margin-top"===d||"margin-bottom"===d)if("row"===t||"column"===t){if("margin"===l&&"row"!==o&&"column"!==o&&(l="range",!0===h()))return s[t][i]}else if("range"===l&&("row"===o||"column"===o)&&(l="margin",!0===h()))return s[t][i]}else if(l="imageGradient",!0===h())return s[t][i]}return s[t][i]=!1,!1},_=o.length,u=0;u-1;--g)if("desktop"===o[g])for(var p in d){if(-1!==p.indexOf("-frame_width")||-1!==p.indexOf("-frame_height")?n[p]=h[p]={}:"font_gradient_color-gradient"===p&&h[p]===r&&(h[p]=h.font_gradient_color),h[p]!==r&&(a[p]===r||""===a[p]||!1===a[p]))((v=n[p]!==r?p:l(h[p],p,c))===p||!1!==v&&!a[v]&&"0"!=a[v])&&(a[v]=d[p])}else if(d["breakpoint_"+o[g]]!==r){var m=!0,b="breakpoint_"+o[g];for(var p in a[b]===r&&(a[b]={},m=!1),d[b]){var v;if(h[p]!==r&&h[p].is_responsive===r&&(a[b][p]===r||""===a[b][p]||!1===a[b][p]))((v=n[p]!==r?p:l(h[p],p,c))===p||!1!==v&&!a[b][v]&&"0"!=a[b][v])&&(a[b][v]=d[b][p],m=!0)}!1===m&&delete a[b]}}}return a},async createCss(e,t,n,o,a,s,l){n||(n="row"),this.saving=o;var _=this.breakpointsReverse,u=_.length,f={},d={},c=this,h=async(e,t,n)=>{var o=async(e,t,n,o,l)=>{if(o!==r&&null!==o){if("row"!==t&&"column"!==t&&"subrow"!==t&&(o=c.convertPreset(t,o)),a!==r&&o.global_styles!==r&&""!==o.global_styles){const i=c.generateGSstyles(o.global_styles.split(" "),t,a),s=await c.createCss(e,[{styling:i,element_id:n}],t,c.saving,r,!0);c.GS=c.extend(!0,{},c.GS,s)}o.builder_content!==r&&("string"==typeof o.builder_content&&(o.builder_content=JSON.parse(o.builder_content)),await s(o.builder_content,n,"tab"===t||"accordion"===t?"subrow":"row"))}await(async(e,t,n,o,a)=>{var s=o!==r?c.extend(!0,{},o):{};if("row"===t||"subrow"===t){var l,d=a.cols?a.cols.length:0;if(a.sizes!==r){l=i.assign({},a.sizes);for(var h=0;h1){a.gutter!==r&&""!==a.gutter&&"gutter-default"!==a.gutter&&"gutter"!==a.gutter&&(l.desktop_gutter=a.gutter.replace("gutter-","")),g=0;for(var p,m=[],b=[],v=l.desktop_gutter||"def",y=!1,k=!1,w=c.getOldColsSizes(v),x=a.cols.length;g0&&(k=-1!==(p=c.gridBackwardCompatibility(b)).indexOf("_")),!0===k){var S=Math.min.apply(null,m);for(g=m.length-1;g>-1;--g)m[g]=S===m[g]?"1fr":parseFloat((m[g]/S).toFixed(5))+"fr";p=m.join(" ").trim()}else m=null,!p&&b.length>0&&(p=c.gridBackwardCompatibility(b));for("rtl"!==a.desktop_dir||!0!==y&&-1===(""+p).indexOf("_")||(p=(p=(p=p.split(!0===y?" ":"_")).reverse()).join(!0===y?" ":"_")),l.desktop_size=p,b=null,h=u-1;h>-1;--h)if(l[(j=_[h])+"_dir"]=a[j+"_dir"]||"ltr","desktop"!==j){var B=a["col_"+j]&&"auto"!==a["col_"+j]&&"-auto"!==a["col_"+j]?c.gridBackwardCompatibility(a["col_"+j]):"auto";if("auto"===B)if(!0===y)B=p;else{var T,C=j[0];if(-1!==j.indexOf("_")&&(C+=j.split("_")[1][0]),(T=c.getAreaValue(C+d+"_"+B))||(T=c.getAreaValue(d+"_"+B)),!T){for(g=h+1;g0&&B<6&&d-1;--h)l[_[h]+"_size"]===r&&(l[_[h]+"_size"]="auto")}a.column_h!==r&&""!==a.column_h&&(l.desktop_auto_h="1"),a.column_alignment!==r&&""!==a.column_alignment&&(l.desktop_align=a.column_alignment)}for(h=0;h-1;--h){var j=_[h];for(var P in l)0!==P.indexOf(j)||"tablet"===j&&-1!==P.indexOf("tablet_landscape")||("desktop"===j?(s.grid===r&&(s.grid={count:d}),s.grid[P]=l[P]):(s["breakpoint_"+j]===r&&(s["breakpoint_"+j]={}),s["breakpoint_"+j].grid===r&&(s["breakpoint_"+j].grid={count:d}),s["breakpoint_"+j].grid[P]=l[P]))}s.grid===r&&(s.grid={count:d})}if(0!==i.keys(s).length)for(let o=u-1;o>-1;--o){let a=null;if("desktop"===_[o]?a=await c.C(e,n,_[o],t,s,s):s["breakpoint_"+_[o]]!==r&&0!==i.keys(s["breakpoint_"+_[o]]).length&&(a=await c.C(e,n,_[o],t,s["breakpoint_"+_[o]],s)),a&&0!==i.keys(a).length){f[_[o]]===r&&(f[_[o]]={});for(let e in a)if(f[_[o]][e]===r)f[_[o]][e]=a[e];else for(let t=a[e].length-1;t>-1;--t)f[_[o]][e].push(a[e][t])}}})(e,t,n,o,l)},s=async(e,t,i)=>{for(let n in e){let a=e[n],l=a.styling||a.mod_settings;if(a.element_id!==r&&await o(t,i,a.element_id,l,a),a.cols!==r)for(let e=0;e-1;--t){let i=e[t].replace(/font-family:|;|\'/gi,"").trim();i&&this.fields.font_select.call(this,t+1,"inline",{},{[t+1]:i},null,"desktop")}e=null,i.keys(this.fonts).length>0&&(d.fonts=this.fonts),0!==i.keys(this.cf_fonts).length&&(d.cf_fonts=this.cf_fonts),0!==i.keys(this.GS).length&&(d.gs=this.GS),i.keys(this.bgImages),this.fonts={},this.GS={},this.cf_fonts={},this.bgImages=[],this.saving=null}c=h=null;for(var g=u-1;g>-1;--g)f[_[g]]!==r&&(d[_[g]]=f[_[g]]);return _=u=null,this.optimizeCss(d,l)},getStyleOptions(e){if(a[e]===r){const t=f;if(t[e]===r)return!1;{a[e]={};const i=(t,n)=>{for(var o in t)if(null!==t[o]){let l=t[o],_=l.type,u=l.selector;if("expand"===_||"multi"===_||"group"===_){let e=n;"expand"===_&&l.label!==r&&(e=l.label.replace(/\s/g,""),n!==r&&(e=n+"_"+e)),i(l.options,e)}else if("tabs"===_)for(let e in l.options){i(l.options[e].options||l.options[e],n===r?e:n+"_"+e)}else if("mask_image"===_)a[e][l.prefix+"mask"]={type:"image",selector:l.selector,prop:"mask-image",id:l.prefix+"mask"},a[e][l.prefix+"mask_r"]={type:"select",selector:l.selector,prop:"mask-repeat",id:l.prefix+"mask_r",size:l.prefix+"mask_size"},a[e][l.prefix+"mask_p"]={type:"position_box",selector:l.selector,prop:"mask-position",id:l.prefix+"mask_p"},a[e][l.prefix+"mask_size"]={type:"range",selector:l.selector,prop:"mask-size",id:l.prefix+"mask_size",repeat:l.prefix+"mask_r"};else if(l.id!==r){let t=l.id;if(l.prop!==r){a[e][t]=this.getStyleData(l,n);let i=l.prop;if("font-size"!==i&&"line-height"!==i&&"letter-spacing"!==i&&("range"!==_||"margin-top"!==i&&"margin-bottom"!==i)||(a[e][t+"_unit"]={type:"select",p:n}),"box_shadow"===_||"text_shadow"===_){let i="box_shadow"===_?["hOffset","vOffset","blur","spread","color"]:["hShadow","vShadow","blur","color"];for(let r=i.length-1;r>-1;--r){let o=t+"_"+i[r];a[e][o]=this.getStyleData(l,n),"color"!==i[r]&&(a[e][o+"_unit"]={type:"select",p:n})}"box_shadow"===_&&(a[e][t+"_inset"]={type:"checkbox",p:n})}else if("fontColor"===_)a[e][l.s]===r&&(a[e][l.s]={type:"color",prop:"color",isFontColor:!0,selector:u,origId:t,p:n}),a[e][l.g]===r&&(a[e][l.g]={type:"gradient",p:n},a[e][l.g]=a[e][l.g+"-gradient-angle"]=a[e][l.g+"-circle-radial"]=a[e][l.g+"-gradient-type"]={type:"gradient",p:n});else if("fontStyle"===_)a[e][t+"_regular"]=this.getStyleData(l,n),a[e][t+"_regular"].type="icon_radio",a[e][l.id2]={type:"icon_radio",prop:"font-weight",selector:u,p:n};else if("padding"===_||"margin"===_||"border"===_||"border_radius"===_){let r=["top","right","bottom","left"],o="border"===_,u=!1===o&&"border_radius"===_;!0===o?a[e][t+"-type"]={type:"radio",p:n}:(a[e]["checkbox_"+t+"_apply_all"]={type:"checkbox",p:n},!1===u&&(a[e][t+"_opp_top"]={type:"checkbox",p:n},a[e][t+"_opp_left"]={type:"checkbox",p:n}));for(let _=r.length-1;_>-1;--_){let f=t+"_"+r[_];if(!0===o&&(a[e][f+"_style"]=this.getStyleData(l,n),a[e][f+"_color"]=this.getStyleData(l,n),a[e][f+"_style"].prop=i+"-"+r[_]+"-style",a[e][f+"_color"].prop=i+"-"+r[_]+"-color",a[e][f+"_color"].type="color",f+="_width"),a[e][f]=this.getStyleData(l,n),a[e][f+"_unit"]={type:"select",p:n},!0===u){var s="border-";"top"===r[_]?s+="top-left-radius":"right"===r[_]?s+="top-right-radius":"left"===r[_]?s+="bottom-left-radius":"bottom"===r[_]&&(s+="bottom-right-radius"),a[e][f].prop=s}else a[e][f].prop=i+"-"+r[_]}}else if("gradient"===_||"imageGradient"===_)a[e][t+"-gradient"]=this.getStyleData(l,n),a[e][t+"-gradient-angle"]=a[e][t+"-circle-radial"]=a[e][t+"-gradient-type"]={type:"gradient",p:n},"imageGradient"===_&&(a[e][t+"-type"]={type:"radio",p:n},a[e][l.colorId]=this.getStyleData(l,n),a[e][l.colorId].prop="background-color",a[e][l.colorId].type="color",a[e][l.colorId].id=l.colorId,a[e]["additional_backgrounds_"+t]={type:"additional_backgrounds",selector:u!==r?u:"",layer_scope:!0===l.h?"main_hover":"main",pair_with:t,p:n});else if("multiColumns"===_)a[e][t+"_gap"]={type:_,p:n,prop:"column-gap",selector:u},a[e][t+"_gap_unit"]={type:"select",p:n},a[e][t+"_divider_color"]={type:_,p:n,prop:"column-rule-color",selector:u},a[e][t+"_divider_width"]={type:_,p:n,prop:"column-rule-width",selector:u},a[e][t+"_divider_width_unit"]={type:"select",p:n},a[e][t+"_divider_style"]={type:_,p:n,prop:"column-rule-style",selector:u};else if("font_select"===_)a[e][t+"_w"]={type:"font_weight"};else if("filters"===_){let i=["hue","saturation","brightness","contrast","invert","sepia","opacity","blur"];for(let r=i.length-1;r>-1;--r)a[e][t+"_"+i[r]]=this.getStyleData(l,n);a[e][l.mid]={prop:"mix-blend-mode",selector:u,type:"select"},l.h&&(a[e][l.mid].h=!0)}else if("width"===_||"height"===_){let i="width"===_?"max_"+t:l.maxid||"mx_h";a[e]["width"===_?"min_"+t:l.minid||"mi_h"]={prop:"min-"+_,selector:u,type:_,p:n},a[e][i]={prop:"max-"+_,selector:u,type:_,p:n},a[e][t+"_auto_"+_]={prop:_,selector:u,type:_,p:n},a[e][t+"_unit"]={type:"select",p:n}}else if("transform"===_){let i=this.getStyleData(l,n);for(let r=["scale","translate","skew"],n=r.length-1;n>-1;--n){let o=t+"_"+r[n];a[e][o+"_top"]=a[e][o+"_bottom"]=i}for(let r=["x","y","z"],n=r.length-1;n>-1;--n)a[e][t+"_rotate_"+r[n]]=i;a[e][t+"_position"]={prop:"transform-origin",type:"position_box",selector:i.selector}}else if("frame-custom"===i&&t.includes("frame_type")){let i=t.split("-")[0]+"-",r=["frame_custom","frame_color","frame_width","frame_height","frame_repeat","frame_sh_x","frame_sh_y","frame_sh_b","frame_sh_c","frame_ani_dur","frame_ani_rev"];for(let t=r.length-1;t>-1;--t){let n=i+r[t];a[e][n]||(a[e][n]={}),a[e][n].prop="frame-custom",a[e][n].type="radio",a[e][n].selector=u}}}else a[e][t]||(a[e][t]=this.getStyleData(l,n))}else"margin_opposity"===_&&(a[e][l.topId]={prop:"margin-top",selector:u,type:"range",p:n},a[e][l.bottomId]={prop:"margin-bottom",selector:u,type:"range",p:n},a[e][l.topId+"_unit"]={type:"select",p:n},a[e][l.bottomId+"_unit"]={type:"select",p:n},a[e][l.topId+"_opp_top"]={type:"checkbox",p:n})}};i(t[e].styling!==r?t[e].styling.options.length!==r?t[e].styling.options:t[e].styling:t[e].type===r?t[e]:[t[e]])}}return a[e]},async C(e,t,n,a,s,l){if(f[a]!==r){const _={},u=this.getStyleOptions(a),f=this.getBaseSelector(a,e,t),d=!0===this.saving;s.resp_no_bg!==r&&!1!==s.resp_no_bg&&(s[u.resp_no_bg.origId]="none"),["top","right","bottom","left"].forEach((e=>{s[e+"-frame_layout"]&&!s[e+"-frame_type"]&&(s[e+"-frame_type"]=e+"-presets")}));const c=i.keys(s);for(let e=c.length-1;e>-1;--e){let t=c[e];if(0===t.indexOf("tf_sv_")&&s[t]&&""!==s[t]){let e=t.substring(6);u[e]!==r&&u[e].selector!==r&&-1===c.indexOf(e)&&c.push(e)}}this.queueBackgroundGradientKeys(c,u,s,l,n);for(let e=c.length-1;e>-1;--e){let i=c[e];if(u[i]!==r&&u[i].selector!==r){let e=u[i].type;"margin"===e?e="padding":"letterSpace"===e||"lineHeight"===e||"fontSize"===e||"zIndex"===e?e="range":u[i].style_handler!==r&&(e=u[i].style_handler);let c=await this.fields[e].call(this,i,a,u[i],s,t,l,n);if(!1!==c){let e=Array.isArray(u[i].selector)?u[i].selector:[u[i].selector],t=!0===u[i].h||!0===u[i].ishover,n=[];e=this.getNestedSelector(e);for(let i=0;i-1;--t)-1!==e[t].indexOf(".tb_visual_hover")&&e.splice(t,1);r=e.join(","),e=null}n.push(f+r)}n=n.join(",").trim().replace(/\s\s+/g," "),_[n]===r&&(_[n]=[]),c=c.split("#@#");for(let e=0;e!1,image(e,t,i,n,o,a,s){let l=this.getStyleVal(e,a,s),_=!1;if(l!==r){if("background_image"===e||"bg_i_h"===e){let t="background_image"===e?"background_type":"b_t_h";if(t=this.getStyleVal(t,a,s),t!==r&&""!==t||"background_image"!==e||(t=this.getStyleVal("background_image-type",a,s)),t!==r&&""!==t||"bg_i_h"!==e||(t=this.getStyleVal("bg_i_h-type",a,s)),t&&"image"!==t&&"video"!==t)return!1;l="desktop"!==s&&"none"===this.getStyleVal("resp_no_bg",a,s)?"":l}""===l||"none"===l?"desktop"!==s&&(_=i.prop+":none#@#","mask-image"===i.prop&&(_+="-webkit-mask-image: none#@#")):(!0===this.saving&&this.bgImages.push(l),_=i.prop+":url("+l+")#@#","mask-image"===i.prop&&(_+='-webkit-mask-image: url("'+l+'")#@#'))}return _},gradient(e,t,i,n,o,a,s){let l=!1,_=i.id||e.replace("-gradient",""),u=this.getGradientValue(e,_,a,s);if(!_)return!1;if("background_image"===_||"background_gradient"===_||"bg_i_h"===_||"b_g_h"===_||"cover_gradient"===_||"cover_gradient_hover"===_){const e=this.getBackgroundType(_,a,s);if(e!==r&&""!==e&&"gradient"!==e&&"hover_gradient"!==e&&"cover_gradient"!==e)return!1}if(u){let e,t=u.split("|"),r=this.getGradientOption(_,"gradient-type",a,s)||"linear",n=[];"radial"===r?e=this.getGradientOption(_,"circle-radial",a,s)?"circle":"":(e=this.getGradientOption(_,"gradient-angle",a,s)||"180",e+="deg"),""!==e&&(e+=",");for(let e=0;e0&&(l=i.prop+":"+r+"-gradient("+e+n.join(",")+")#@#")}return l},icon_radio(e,t,i,r,n,o,a){const s=this.getStyleVal(e,o,a);return!!s&&i.prop+":"+s+"#@#"},color(e,t,i,n,o,a,s){if("column-rule-color"===i.prop)return!1;let l=this.getStyleVal(e,a,s);if(l===r)return delete n[e],!1;let _=this.toRGBA(l);if(""===_||"_"===_)return delete n[e],!1;if(!0===i.isFontColor)return this.fields.fontColor.call(this,i.origId,t,{s:e},n,o,a,s);let u=i.prop+":"+_+"#@#";if(i.colorId!==e||i.origId===r||this.getStyleVal(i.origId,a,s)){if(!("b_c_h"!==e&&"b_c_i_h"!==e||"row"!==t&&"column"!==t&&"subrow"!==t)){if(!this.getStyleVal("b_c_h"===e?"bg_i_h":"b_i_i_h",a,s)){const t="b_c_h"===e?this.getBackgroundType("b_g_h",a,s):r;("b_c_h"!==e||"gradient"!==t&&"hover_gradient"!==t)&&(u+="background-image:none#@#")}}}else{const e=this.getBackgroundType(i.origId,a,s);if("gradient"===e||"hover_gradient"===e)return!1;u+="background-image:none#@#"}return u},fontColor(e,t,i,n,o,a,s){let l=this.getStyleVal(e,a,s),_=!1;return l===r||-1===l.indexOf("_gradient")?(_=this.fields.color.call(this,i.s!==r?i.s:l.replace(/_solid$/gi,""),t,{prop:"color"},n,o,a,s),!1!==_&&(_+="background-image:none#@#background-clip:border-box#@#")):l!==r&&(_=this.fields.gradient.call(this,l.replace(/_gradient$/gi,"-gradient"),t,{prop:"background-image",id:i.g},n,o,a,s),!1!==_&&(_+="background-clip:text#@#-webkit-background-clip:text#@#color:transparent#@#")),_},padding(e,t,i,n,o,a,s){let l=i.prop,_=-1!==l.indexOf("padding")?"padding":"margin",u=i.id,f=this.getStyleVal(e,a,s),c=this.getStyleVal("checkbox_"+u+"_apply_all",a,s);if(f===r||"padding"===_&&f<0)return delete n[e+"_unit"],!1;if(c&&"|"!==c&&"false"!==c){if(l!==_+"-top")return!1;l=_}let h=this.getStyleVal(e+"_unit",a,s)||"px",g=(""+f).split(",");return"%"===h&&"column"===t&&g[0]&&g[1]===r&&-1!==["padding_top","padding_bottom","padding_left","padding_right","margin-bottom","margin-top"].indexOf(e)&&(d[s]===r&&(d[s]={}),d[s][o]===r&&(d[s][o]=[]),d[s][o].push(e)),f=g[1]!==r&&""!==g[1]?g[1]:g[0],f=f.trim(),"0"===f&&(h=""),0===f.indexOf("var(")?l+":"+f+"#@#":0===f.indexOf("--")?l+":var("+f+")#@#":l+":"+f+h+"#@#"},box_shadow(e,t,i,n,o,a,s){let l=i.prop,_=i.id;if(this.getStyleVal(e,a,s)===r)return delete n[e+"_unit"],!1;let u="box-shadow"===l?["hOffset","vOffset","blur","spread"]:["hShadow","vShadow","blur"],f="",d=!0;for(let e=0;e-1;--e)delete n[t[e]];return!1}let t=this.getStyleVal(e+"_gap",a,s);""!==t&&t!==r&&(_="column-gap:"+h(t,this.getStyleVal(e+"_gap_unit",a,s)||"px")+"#@#");let i=this.getStyleVal(e+"_divider_style",a,s),o=this.getStyleVal(e+"_width",a,s);if("none"===i)delete n[e+"_divider_color"],delete n[e+"_width"],_+="column-rule:none#@#";else if(""===o||o===r)delete n[e+"_divider_color"],delete n[e+"_width"],delete n[e+"_divider_style"];else{i||(i="solid"),_+="column-rule:"+h(o,this.getStyleVal(e+"_width_unit",a,s)||"px")+" "+i;var g=this.getStyleVal(e+"_divider_color",a,s);""!==g&&g!==r&&(_+=" "+this.toRGBA(g)),_+="#@#"}}else if("vertical-align"===l){if("inline-block"!==n[i.origID])return delete n[e],!1;""!==u&&!0!==this.saving&&r!==themifyBuilder&&(_+="align-self:"+("top"===u?"start":"middle"===u?"center":"end")+"#@#")}else if(!0===i.display&&!0!==this.saving&&r!==themifyBuilder){if("none"===u)return!1;_+="inline-block"===u?"width:auto#@#":"width:100%#@#"}return _+=l+":"+u+"#@#","mask-repeat"===l&&(_+="-webkit-mask-repeat:"+u+"#@#"),_},grid_flow(e,t,i,n,o,a,s){let l=i.prop,_=this.getStyleVal(e,a,s);return _!==r&&""!==_&&("row"!==_||"desktop"!==s)&&l+":"+_+"#@#"},gap(e,t,i,n,o,a,s){let l=i.prop,_=this.getStyleVal(e,a,s),u=this.getStyleVal(e+"_unit",a,s)||"px";const f=i.default||0;return _!==r&&""!==_&&(parseInt(_)!==f||"desktop"!==s)&&(_=(""+_).trim(),0===_.indexOf("var(")?l+":"+_+"#@#":0===_.indexOf("--")?l+":var("+_+")#@#":l+":"+_+u+"#@#")},position_box(e,t,i,n,o,a,s){let l=i.prop,_=this.getStyleVal(e,a,s)?.toString();if(_===r||""===_)return!1;if(!("background-position"!==l||this.getStyleVal(i.origId,a,s)||n.F&&n.F[i.origId]!==r&&""!==n.F[i.origId]))return!1;const u=_.trim();if(/^\s*-?\d+(?:\.\d+)?\s*,\s*-?\d+(?:\.\d+)?\s*$/.test(u)){const e=u.split(",");_=(parseFloat(e[0])||0)+"% "+(parseFloat(e[1])||0)+"%"}else/^[a-z-]+$/i.test(u)&&u.includes("-")&&!/\d/.test(u)&&(_=u.replace(/-/g," "));var f=l+":"+_+"#@#";return"mask-position"===l&&(f+="-webkit-mask-position:"+_+"#@#"),f},font_select(e,t,i,n,o,a,s){let l=a||n,_=this.getStyleVal(e,l,s),u="";if("default"===_||""===_||_===r)return delete n[e],delete n[e+"_w"],!1;let f="undefined"!=typeof ThemifyConstructor&&ThemifyConstructor.font_select.google[_]!==r||"undefined"!=typeof ThemifyBuilderStyle&&ThemifyBuilderStyle.google[_]!==r,d=!0!==f&&("undefined"!=typeof ThemifyConstructor&&ThemifyConstructor.font_select.cf[_]!==r||"undefined"!=typeof ThemifyBuilderStyle&&ThemifyBuilderStyle.cf[_]!==r);f||d||(f="undefined"!=typeof themifyBuilder&&null!==themifyBuilder.google&&themifyBuilder.google[_]!==r,d=!0!==f&&("undefined"!=typeof themifyBuilder&&null!==themifyBuilder.cf&&themifyBuilder.cf[_]!==r));const c=(""+_).trim();if(0===c.indexOf("var("))return delete n[e+"_w"],i.prop+":"+c+"#@#";if(0===c.indexOf("--"))return delete n[e+"_w"],i.prop+":var("+c+")#@#";if(f||d){let t=this.getStyleVal(e+"_w",l,s)?.toString()||"",i=!0===f?"fonts":"cf_fonts";if(this[i][_]===r&&(this[i][_]=[]),t){const e={normal:"normal",regular:400,italic:400,bold:700};-1===this[i][_].indexOf(t)&&this[i][_].push(e[t]||t);const r=-1!==t.indexOf("italic")?";font-style:italic":"";t=e[t]||t.replace(/[^0-9]/g,""),t+=r,u="font-weight:"+t+"#@#"}}else delete n[e+"_w"];return _=this.parseFontName(_),_&&(u+=i.prop+":"+_+"#@#"),u},frame:(e,t,i,r,n,o,a)=>!1,range(e,t,i,n,o,a,s){if(!0===i.tb_bg_size)return!1;if("column-gap"===i.prop&&!i.grid_gap||"column-rule-width"===i.prop)return!1;let l=this.getStyleVal(e,a,s);if(""===l||l===r)return delete n[e],delete n[e+"_unit"],!1;l=""+l;let _="z-index"!==i.prop?this.getStyleVal(e+"_unit",a,s)||"px":"",u=l.split(",");l="%"!==_||"column"!==t||"margin-bottom"!==e&&"margin-top"!==e||u[1]===r||""===u[1]?u[0]:u[1],l=l.trim(),/^var\s*\(/i.test(l)?(_="","backdrop-filter"===i.prop?l="blur("+l+")":"mask-size"===i.prop&&(l=l+" "+l)):0===l.indexOf("--")?(l="backdrop-filter"===i.prop?"blur(var("+l+"))":"mask-size"===i.prop?"var("+l+") var("+l+")":"var("+l+")",_=""):("0"===l&&(_=""),"backdrop-filter"===i.prop?(l="blur("+l+"px)",_=""):"mask-size"===i.prop&&(l=l+_+" "+l+_,_=""));var f=i.prop+":"+l+_+"#@#";return"mask-size"===i.prop&&(f+="-webkit-mask-size: "+l+"#@#"),f},async radio(e,i,n,a,s,l,_){if("frame-custom"===n.prop){let i=e.split("-")[0],n="",a=i+"-presets",s=this.getStyleVal(i+"-frame_type",l,_)||a,u=this.getStyleVal(s===a?i+"-frame_layout":i+"-frame_custom",l,_),f=this.getStyleVal(i+"-frame_width",l,_),d=this.getStyleVal(i+"-frame_height",l,_),c=this.getStyleVal(i+"-frame_width_unit",l,_)||"%",h=this.getStyleVal(i+"-frame_height_unit",l,_)||"%";if(!u||"none"===u)return!(!u||"desktop"===_)&&"background-image:none#@#";if(s===a){u.startsWith("corner")&&(f||(f=150,c="px"),d||(d=150,h="px"),"bottom"===i?n+="left: auto#@#":"left"===i&&(n+="top: auto#@#")),"left"!==i&&"right"!==i||(u+="-l");const e=this.fields.frameCache;if(e[u]===r){let i=t.tfId("tmpl-frame_"+u);if(null!==i)e[u]=i.textContent.trim();else{const t=!0!==o&&"undefined"!=typeof themifyBuilder?themifyBuilder.builder_url:ThemifyBuilderStyle.builder_url,i=await Themify.fetch("","text",{method:"GET"},t+"/img/row-frame/"+u+".svg");e[u]=i}}let a=this.getStyleVal(i+"-frame_color",l,_),s=e[u];a!==r&&""!==a&&(s=s.replace(/\#D3D3D3/gi,this.toRGBA(a))),n+='background-image:url("data:image/svg+xml;utf8,'+encodeURIComponent(s)+'")#@#'}else n='background-image:url("'+u+'")#@#';let g=this.getStyleVal(i+"-frame_repeat",l,_),p=parseFloat(this.getStyleVal(i+"-frame_ani_dur",l,_)),m=p>0,b=[this.getStyleVal(i+"-frame_sh_x",l,_),this.getStyleVal(i+"-frame_sh_y",l,_),this.getStyleVal(i+"-frame_sh_b",l,_),this.getStyleVal(i+"-frame_sh_c",l,_)];if(m&&("left"===i||"right"===i?(d=200,h="%"):(f=200,c="%"),g=g?2*parseInt(g):2),f&&(n+="width:"+f+c+"#@#"),d&&(n+="height:"+d+h+"#@#"),g){const e=100/g;n+="background-size:",n+="left"===i||"right"===i?"100% "+e:e+"% 100",n+="%#@#"}return m&&(n+="animation-name:tb_frame_"+("left"===i||"right"===i?"vertical":"horizontal")+"#@#",n+="animation-iteration-count:infinite#@#",n+="animation-timing-function:linear#@#",n+="animation-duration:"+p+"s#@#",n+="animation-direction:"+("1"===this.getStyleVal(i+"-frame_ani_rev",l,_)?"reverse":"")+"#@#"),s!==a||"bottom"!==i&&"right"!==i||(n+="transform:rotate(180deg) translateZ(0)#@#"),b[2]&&b[3]!==r&&""!==b[3]&&(b[0]=b[0]?b[0]+"px":0,b[1]=b[1]?b[1]+"px":0,b[2]+="px",b[3]=this.toRGBA(b[3]),n+="filter:drop-shadow( "+b.join(" ")+")#@#"),""!==n&&n}return!1},multiColumns(e,t,i,n,o,a,s){if("column-gap"===i.prop){let t=this.getStyleVal(e,a,s);return""!==t&&t!==r&&"column-gap:"+h(t,this.getStyleVal(e+"_unit",a,s)||"px")+"#@#"}if("column-rule-width"===i.prop){let t=this.getStyleVal(e,a,s);if(t){let i=this.getStyleVal(e.replace(/_width$/,"_style"),a,s),n=this.getStyleVal(e.replace(/_width$/,"_color"),a,s),o="column-rule:"+h(t,this.getStyleVal(e+"_unit",a,s)||"px")+" ";return o+=i||"solid",o+=""!==n&&n!==r?" "+this.toRGBA(n):"",o+"#@#"}return!1}if("column-rule-color"===i.prop){let t=this.getStyleVal(e,a,s);return""!==t&&t!==r&&"column-rule-color:"+this.toRGBA(t)+"#@#"}if("column-rule-style"===i.prop){let t=this.getStyleVal(e,a,s);return!!t&&"column-rule-style:"+t+"#@#"}if("column-count"!==i.prop)return!1;let l=this.getStyleVal(e,a,s),_=!1;if(l==r||""===l||"0"==l||0===l)return delete n[e],delete n[e+"_gap"],delete n[e+"_divider_color"],delete n[e+"_divider_width"],delete n[e+"_divider_style"],!1;if(l){_=i.prop+":"+l+"#@#";let t=this.getStyleVal(e+"_gap",a,s),o=this.getStyleVal(e+"_divider_width",a,s);if(""!==t&&t!==r?_+="column-gap:"+h(t,this.getStyleVal(e+"_gap_unit",a,s)||"px")+"#@#":delete n[e+"_gap"],o){let t=this.getStyleVal(e+"_divider_style",a,s),i=this.getStyleVal(e+"_divider_color",a,s);_+="column-rule:"+h(o,this.getStyleVal(e+"_divider_width_unit",a,s)||"px")+" ",_+=t||"solid",_+=""!==i&&i!==r?" "+this.toRGBA(i):"",_+="#@#"}else delete n[e+"_divider_color"],delete n[e+"_divider_width"],delete n[e+"_divider_style"]}else delete n[e],delete n[e+"_gap"],delete n[e+"_divider_color"],delete n[e+"_divider_width"],delete n[e+"_divider_style"];return _},filters(e,t,i,n,o,a,s){let l={hue:{unit:"deg",prop:"hue-rotate"},saturation:{unit:"%",prop:"saturate"},brightness:{unit:"%",prop:"brightness"},contrast:{unit:"%",prop:"contrast"},invert:{unit:"%",prop:"invert"},sepia:{unit:"%",prop:"sepia"},opacity:{unit:"%",prop:"opacity"},blur:{unit:"px",prop:"blur"}},_="";for(let t in l){let o=this.getStyleVal(i.id+"_"+t,a,s);o!==r?_+=l[t].prop+"("+o+l[t].unit+") ":delete n[e+"_"+t]}return""!==_&&"filter:"+_+"#@#"},text(e,t,i,n,o,a,s){let l=this.getStyleVal(e,a,s),_=!1;return l!==r&&""!==l&&(_=i.prop+":"+l+"#@#"),_},number(e,t,i,r,n,o,a,s){return this.fields.text.call(this,e,t,i,r,n,o,a,s)},width(e,t,i,n,o,a,s,l){let _=i.prop,u=!1,f=this.getStyleVal(e,a,s);if(!1!==f&&("width"!==_&&"height"!==_||"auto"!==this.getStyleVal(e+"_auto_"+_,a,s)||(f="auto"),f!==r)){let t="auto"===f?"":this.getStyleVal(e+"_unit",a,s)||"px";f=(""+f).trim(),0===f.indexOf("var(")?t="":0===f.indexOf("--")&&(f="var("+f+")",t=""),u=_+":"+f+t+"#@#"}return u},height(e,t,i,r,n,o,a,s){return this.fields.width.call(this,e,t,i,r,n,o,a,s)},position(e,t,i,n,o,a,s){let l=!1,_=this.getStyleVal(e,a,s);if(_!==r&&(l="position:"+_+"#@#",""!==_&&"static"!==_))for(let t=["top","right","bottom","left"],i=t.length-1;i>-1;--i){let n=this.getStyleVal(e+"_"+t[i]+"_auto",a,s);"auto"!==n&&(n=this.getStyleVal(e+"_"+t[i],a,s),n=n===r||isNaN(n)?"":n+(this.getStyleVal(e+"_"+t[i]+"_unit",a,s)||"px")),""!==n&&(l+=""!==n?t[i]+":"+n+"#@#":"")}return l},transform(e,t,i,n,o,a,s){let l,_="",u=["skew","rotate","translate","scale"],f=e.split("_")[0];for(let e=u.length-1;e>-1;--e){let t=u[e];switch(t){case"scale":case"translate":case"skew":let e=this.getStyleVal(f+"_"+t+"_top",a,s),i=this.getStyleVal(f+"_"+t+"_bottom",a,s),n="skew"===t?"deg":"",o="translate"===t;o&&(n={x:this.getStyleVal(f+"_"+t+"_top_unit",a,s)||"px",y:this.getStyleVal(f+"_"+t+"_bottom_unit",a,s)||"px"}),e===r&&i===r||(e!==r&&this.getStyleVal(f+"_"+t+"_opp_bottom",a,s)?_+=t+"("+e+(o?n.x:n)+") ":_+=e!==r&&i!==r?t+"("+e+(o?n.x:n)+","+i+(o?n.y:n)+") ":e!==r?t+"X("+e+(o?n.x:n)+") ":t+"Y("+i+(o?n.y:n)+") ");break;case"rotate":for(let e=["z","y","x"],i=e.length-1;i>-1;--i)l=this.getStyleVal(f+"_"+t+"_"+e[i],a,s),l!==r&&(_+=t+e[i].toUpperCase()+"("+l+"deg) ");break}}return""!==_?(_="transform:"+_+"#@#",l=this.getStyleVal(f+"_position",a,s),l&&(l=l.split(","),_+="transform-origin:"+l[0]+"% "+l[1]+"%#@#")):_=!1,_},aspectRatio(e,t,i,r,n,o,a,s){let l=!1,_=this.getStyleVal(e,o,a);return _&&(l=i.prop+":"+_+"#@#"),l},grid(n,o,a,s,l,_,u,f){var d={},c=null,h=s[n],g=!0===Themify.is_builder_active&&e.tb_app&&tb_app.Builder&&tb_app.Builder.get&&tb_app.Builder.get()&&tb_app.Builder.get().el?tb_app.Builder.get().el.querySelector(".tb_"+l):null,p=h.count;g||(g=t.tfClass("tb_"+l)[0]),g&&(g.classList.contains("module_row")&&(g=g.querySelector(".row_inner")),g&&(p=g.querySelectorAll(":scope>.module_column").length));var m=null!==_&&i.keys(_).length>0?_:null,b=["dir","align","gutter","area","size","auto_h"],v=[];for(var y in h){var k=h[y];if(k&&0===y.indexOf(u)&&("tablet"!==u||-1===y.indexOf("tablet_landscape"))){var w=b.indexOf(y.replace(u+"_",""));if(-1===w||!h[u+"_"+b[w]]||1===p&&"align"!==b[w])continue;if(k=""+h[u+"_"+(w=b[w])],v.push(w),"size"===w){if(!k.includes(" ")){if("desktop"!==u){var x=u[0];u.includes("_")&&(x+=u.split("_")[1][0]);var z="--area"+x+p+"_"+k,S="";if((B=this.getAreaValue(z))||(B=this.getAreaValue(z="--area"+p+"_"+k)),B||h[u+"_area"])S=h[u+"_area"]?this.normalizeArea(h[u+"_area"]):"var("+z+")",k=-1!==k.indexOf("_")?k:"none";else{var B,T=!0,C=(B="auto"!==k?this.getColSizeValue(k):null)?B.replace(/\s\s+/g," ").trim().split(" ").length:p,F=p%C;if(p>=(k.includes("_")?0:parseInt(k))){C>p&&(F=0,k=""+(k=C=p));for(var A=p-F,I=1;I<=A;++I)!0===T&&(S+='"',T=!1),S+="col"+I+" ",I%C!=0&&I!==A||(S=S.trim(),S+='" ',T=!0);if(F>0){var G=[];for(I=p;I>A;--I)G.push("col"+I);for(G.reverse(),I=G.length;I1&&(c=k)}}if("desktop"===u&&1!==p&&(!0!==f||-1!==v.indexOf("area")||-1!==v.indexOf("size"))){var N=[];for(I=1;I<=p;++I)N.push("col"+I);d["--area"]||(d["--area"]='"'+N.join(" ")+'"')}if(null!==c&&p>1&&"desktop"!==u){var j=d["--area"]||!1,P=d["--col"]||!1,R=this;if(null!==m){"none"===P&&"auto"===(P=!!(m["breakpoint_"+u]&&m["breakpoint_"+u][n]&&m["breakpoint_"+u][n][u+"_size"])&&m["breakpoint_"+u][n][u+"_size"])&&(P=!1);var V=c;if(!0===(m[n]!==r&&"rtl"===m[n].desktop_dir)&&(c="rtl"===c?"ltr":"rtl"),!1===j||!1===P){var L=ThemifyStyles.breakpointsReverse,D=L.length;for(y=L.indexOf(u)+1;y{var i=[];if(t&&"none"!==t&&"initial"!==t&&"auto"!==t&&(t=-1===(t=t.replace(/[\r\n]/gm,"").replace(/ +/g," ").trim()).indexOf(" ")?"var(--c"+(t=t.replace("var(--c","").replace(")","").trim().split("_").reverse().join("_"))+")":t.split(" ").reverse().join(" ")),e){-1!==e.indexOf("var")&&(e=e.replace("var(","").replace(")","").trim(),e=R.getAreaValue(e));var r=e.split('" "')[0].split(" ").length,n=[],o=0;e=e.replace(/[\r\n]/gm,"").replace(/\"/g,"").replace(/ +/g," ").trim().split(" ").reverse();while("."===e[0])e.push(e.splice(0,1)[0]);for(var a=0,s=e.length;a0&&o%r==0||a===s-1)&&(i.push('"'+n.join(" ")+'"'),n=[],o=0);i=i.join(" ")}else i=e;return{area:i,cols:t}})(j,P);"rtl"===c&&(j=Z.area),P=Z.cols}if(j){if(P=((e,t)=>{if(t&&"none"!==t){e.includes("var")&&(e=e.replace("var(","").replace(")","").trim(),e=R.getAreaValue(e));var i=e.split('" "')[0].split(" ").length,r=R.getColSizeValue(t);r||(r=t),r.split(" ").length!==i&&(t="none")}return t})(j,P),null!==m&&!0===Themify.is_builder_active){var q=h.model?h.model:g?tb_app.Registry.get(g.closest("[data-cid]").dataset.cid):null;!q||"row"!==q.type&&"subrow"!==q.type||(-1===j.indexOf("--area")&&q.setCols({area:j.replace(/col/g,"")},u),P&&"none"!==P&&"initial"!==P&&q.setCols({size:(""+P).replace("var(--c","").replace(")","").trim()},u),delete q.fields.sizes[u+"_dir"])}d["--area"]=this.normalizeArea(j),P&&(d["--col"]=P)}}d["--area"]&&("desktop"===u||d["--area"].includes("var")?"desktop"===u&&p<9&&(d["--area"]=""):(d["--area"]=this.getArea(d["--area"],!0,u,p),1===(this.getAreaValue(d["--area"])||d["--area"]).split('" "')[0].split(" ").length&&(d["--col"]="none")));if("none"===d["--col"]&&"desktop"===u)delete d["--col"];else if(d["--col"]){if(d["--col"].includes(" ")){var U=d["--col"].split(" ");d["--area"]&&(U=U.slice(0,d["--area"].split('" "')[0].replace(/\s\s+/g," ").trim().split(" ").length));for(I=U.length-1;I>-1;--I){var H=parseFloat(U[I].trim());1!==H&&(U[I]=U[I].replace(""+H,""+parseFloat(H.toFixed(4))))}d["--col"]=U.join(" ")}d["--col"]=this.getColSize(d["--col"])}if(!0!==f){var K="";for(y in d)""!==d[y]&&(K+=y+":"+d[y]+"#@#");d=""!==K&&K}return d}},optimizeCss(e,t){for(var n,o=this.breakpointsReverse,a=o.length,s=["left","bottom","right","top"],l=["bottom-left","bottom-right","top-right","top-left"],_=["family","line-height","size","weight","variant","style"],u=_.length-1,f=e=>{if(!e||-1!==e.indexOf("var")||-1!==e.indexOf('" "')||-1===e.indexOf(" "))return!1;for(var t=e.replace(/col|"/gi,"").replace(/\s\s+/g," ").trim().split(" "),i=t.length-1;i>0;--i)if(parseInt(t[i])<=parseInt(t[i-1]))return!1;return!0},d=0;d-1;--S)h[x+"-"+s[S]]!==r&&z.push(h[x+"-"+s[S]]);if(4===z.length){for(S=z.length-1;S>-1;--S)";"===z[S][z[S].length-1]&&(z[S]=z[S].slice(0,-1));for(z[0]===z[2]&&z[1]===z[3]?(z[2]=z[3]=null,z[0]===z[1]&&(z[1]=null)):z[1]===z[3]&&(z[3]=null),S=3;S>-1;--S)null===z[S]&&z.splice(S,1);for(y=x,k=z.join(" "),S=3;S>-1;--S)delete h[x+"-"+s[S]]}}else if("border"===x){if("radius"===w[3]){for(z=[],S=3;S>-1;--S)h[x+"-"+l[S]+"-radius"]!==r&&z.push(h[x+"-"+l[S]+"-"+w[3]]);if(4===z.length){for(S=z.length-1;S>-1;--S)";"===z[S][z[S].length-1]&&(z[S]=z[S].slice(0,-1));for(z[0]===z[2]&&z[1]===z[3]?(z[2]=z[3]=null,z[0]===z[1]&&(z[1]=null)):z[1]===z[3]&&(z[3]=null),S=3;S>-1;--S)null===z[S]&&z.splice(S,1);for(y=x+"-"+w[3],k=z.join(" "),S=3;S>-1;--S)delete h[x+"-"+l[S]+"-"+w[3]]}}}else if("font"===x){if(h["font-family"]!==r&&h["font-size"]!==r){for(z=[],S=u;S>-1;--S){if(h[B="line-height"===_[S]?_[S]:x+"-"+_[S]]!==r)z.push("line-height"===_[S]?"/"+h[B]:h[B])}if(z.length===u+1){for(y=x,S=z.length-1;S>-1;--S)";"===z[S][z[S].length-1]&&(z[S]=z[S].slice(0,-1));for(k=z.join(" "),S=u;S>-1;--S){var B;delete h[B="line-height"===_[S]?_[S]:x+"-"+_[S]]}}}}else"color"===x?-1===k.indexOf("var(")&&(k=this.rgbToHex(k.replace(";",""))):"background"===x||"--area"===x&&"tablet_landscape"===n&&f(k)&&(k="");if(""!==k&&k!==r&&!1!==k&&null!==k){if("background"!==x||"background-color"===y){if(k.includes("rgb")&&-1===k.indexOf("var(")){var T=k.match(/(rgb.+?\))/gi);if(null!==T)for(S=T.length-1;S>-1;--S){var C=this.rgbToHex(T[S].replace(";",""));C!==T[S]&&(k=k.replace(T[S],C))}}k=k.replace(/\s0\./g," .").replace(/\s\s+/g," ").replace(/\.+0*?fr/g,"fr").replace(/\.+0*?\%/g,"%").replace(/\.+0*?rem/g,"rem").replace(/\.+0*?em/g,"em").replace(/\.+0*?px/g,"px").replace(/\b(?:0px|0%|0em|0fr|0rem)/g,"0")}"@"!==y[0]&&";"!==k.slice(-1)&&(k+=";"),g.push(y+":"+k)}}}e[n][c]=g}if(!0===t){for(d=0;d-1;--p){b=V[p].indexOf(":"),y=V[p].substring(0,b);var F=V[p].substring(b+1);if(";"===F[F.length-1]&&(F=F.slice(0,-1)),"none"!==F||"--col"!==y||"tablet_landscape"!==n||e.desktop!==r&&e.desktop[c]!==r&&-1!==e.desktop[c].join("").indexOf("--col:"))if("--area"!==y||"tablet"!==n||e.tablet_landscape!==r&&e.tablet_landscape[c]!==r&&-1!==e.tablet_landscape[c].join("").indexOf("--area:")||!f(F)){for(var A=d+1;A-1;--O)if(-1!==I[O].indexOf(y)){var N=I[O].indexOf(":"),j=I[O].substring(0,N),P=I[O].substring(N+1);if(j===y){";"===P[P.length-1]&&(P=P.slice(0,-1)),P===F&&V.splice(p,1),G=!0;break}}if(!0===G)break}}else V.splice(p,1);else V.splice(p,1)}0===V.length&&delete e[n][c]}0===i.keys(e[n]).length&&delete e[n]}if(e.mobile!==r)for(var c in e.mobile)if(e.tablet===r||e.tablet[c]===r||-1===e.tablet[c].join("").indexOf("--area:"))for(p=(V=e.mobile[c]).length-1;p>-1;--p)if(-1!==V[p].indexOf("--area:")){f(V[p].split(":")[1])&&e.mobile[c].splice(p,1);break}if(e.desktop!==r)for(var c in e.desktop){-1===(b=e.desktop[c].indexOf("--tbBg:0;"))&&(b=e.desktop[c].indexOf("--tbBg:0")),-1!==b&&e.desktop[c].splice(b,1)}for(d=0;d-1;--p)L.push(V[p]);R[L=L.join("A#_B#")]===r&&(R[L]=[]),R[L].push(c)}for(var D in R){for(p=R[D].length-1;p>-1;--p)delete e[n][R[D][p]];c=R[D].join(","),";"===D[D.length-1]&&(D=D.slice(0,-1)),e[n][c]=D.split("A#_B#")}if("@"===c[0]){v=c.split("{")[0];e[n][c.replace(","+v+"{",",")]=e[n][c],delete e[n][c]}}}return e},gridBackwardCompatibility(e){if("-auto"===e||"auto"===e)return"auto";var t,i=Array.isArray(e),n=!1;if(!0===i){for(var o=e.length-1;o>-1;--o)!1===n&&(n=-1!==e[o].indexOf("col")),e[o]=(""+e[o]).replace(/tb_3col|tablet_landscape|tablet|mobile|column|col|first|last/gi,"").replaceAll("-","_").trim(),-1!==e[o].indexOf(" ")&&(e[o]=e[o].split(" ")[0].trim()),"4_1_4_2"===e[o]?e[o]="4_1_4_1_4_2":"4_2_4_1"===e[o]&&(e[o]="4_2_4_1_4_1");t=e[0]}else-1!==(e=(""+e).trim()).indexOf(" ")&&(e=e.split(" ")[0].trim()),t=e;return t=""+t,!1===n&&(n=-1!==t.indexOf("col")),"4_1_4_2"===(t=t.replace(/tb_3col|tablet_landscape|tablet|mobile|column|col|first|last/gi,"").replaceAll("-","_").trim())?"1_1_2":"4_2_4_1"===t?"2_1_1":"_full"===t?"1":"4_2"===t&&(!1===i||"4_2"===e[1])||"2_1"===t&&!0===i&&"2_1"===e[1]?"2":"1"===t||"2"===t||"3"===t||"4"===t||"5"===t||"6"===t||"1"===t[0]||!1===n&&("2_1"===t||"3_1"===t||"2_1_1"===t)?t:"6_1"===t||"5_1"===t||"4_1"===t&&(!1===i||e[3]!==r)||"3_1"===t&&(!1===i||e[2]!==r)?t[0]:!1===i?t.replaceAll(t[0]+"_","").trim():(e=e.join("_")).replaceAll(e[0]+"_","").trim()},getOldColsSizes(e){const t={def:{"col6-1":14,"col5-1":17.44,"col4-1":22.6,"col3-1":31.2,"col4-2":48.4,"col3-2":65.6,"col4-3":74.2},narrow:{"col6-1":15.33,"col5-1":18.72,"col4-1":23.8,"col3-1":32.266,"col4-2":49.2,"col3-2":66.05,"col4-3":74.539},none:{"col6-1":16.666,"col5-1":20,"col4-1":25,"col3-1":33.333,"col4-2":50,"col3-2":66.666,"col4-3":75}};return e!==r?t[e]!==r&&t[e]:t}},"undefined"==typeof ThemifyBuilderStyle){const e=t.getElementById("tb_builder_js_style-js-extra");if(e&&e.type&&"text/javascript"!==e.type){const i=t.createElement("script");i.innerHTML=e.innerHTML,i.id=e.id,e.replaceWith(i)}}if("undefined"!=typeof ThemifyBuilderStyle){const o=async()=>{let o,a=i.keys(ThemifyBuilderStyle.points).reverse();if(a.push("desktop"),await(()=>{const t={method:"GET"},r=[];for(let n=ThemifyBuilderStyle.style_json,o=n.length-1;o>-1;--o){let a=new Promise((async(r,a)=>{try{const a=new URL(n[o]),s=e.location.origin;a.origin!==s&&(a.origin=s);const l=await Themify.fetch("",null,t,""+a);i.assign(ThemifyBuilderStyle.styles,l),r()}catch(e){a(e)}}));r.push(a)}return Promise.all(r)})(),ThemifyStyles.init(ThemifyBuilderStyle.styles,a,ThemifyBuilderStyle.gutters),ThemifyBuilderStyle.styles=a=null,ThemifyBuilderStyle.google!==r){o=ThemifyBuilderStyle.google,ThemifyBuilderStyle.google={};for(var s=o.length-1;s>-1;--s)""!==o[s].value&&"default"!==o[s].value&&(ThemifyBuilderStyle.google[o[s].value]={n:o[s].name,v:o[s].variant});o=null}if(ThemifyBuilderStyle.cf!==r){o=ThemifyBuilderStyle.cf,ThemifyBuilderStyle.cf={};for(s=o.length-1;s>-1;--s)""!==o[s].value&&"default"!==o[s].value&&(ThemifyBuilderStyle.cf[o[s].value]={n:o[s].name,v:o[s].variant});o=null}const l=async()=>{const o=e.innerWidth;for(let f in e)if(0===f.indexOf("themify_builder_data_")&&null!==e[f]){let d,h,p=f.replace("themify_builder_data_",""),m={},b=await ThemifyStyles.createCss(p,e[f].data,null,!0,e[f].gs),v={fonts:[],cf_fonts:[]},y=t.tfId("themify_builder_content-"+p),k={},w="",x=t.createDocumentFragment();if(b.gs!==r)for(d in b.gs){var a=t.createElement("style");if(a.id="tb_temp_global_styles_"+p,"desktop"!==d){var s=ThemifyBuilderStyle.points[d];"mobile"!==d&&(s=s[1]),a.media="(max-width:"+s+"px)"}for(h in b.gs[d]){w+=h+"{"+b.gs[d][h].join("@"===h[0]?";":" ")+"}","@"===h[0]&&(w+="}")}a.appendChild(t.createTextNode(w)),x.appendChild(a)}for(d in b)if("gs"!==d&&"bg"!==d)if("fonts"!==d&&"cf_fonts"!==d){let e=t.createElement("style");if(e.id="tb_temp_styles_"+d+"_"+p,w="","desktop"!==d){let t=ThemifyBuilderStyle.points[d];"mobile"!==d&&(t=t[1]),e.media="(max-width:"+t+"px)"}for(h in b[d]){w+=h+"{"+b[d][h].join("@"===h[0]?";":" ")+"}","@"===h[0]&&(w+="}")}e.appendChild(t.createTextNode(w)),x.appendChild(e)}else for(h in b[d]){var l=h.split(" ").join("+");b[d][h].length>0&&(l+=":"+b[d][h].join(","));var _=g(e,t,l);_&&v[d].push(_)}let z=i.keys(v);for(let e=z.length-1;e>=0;--e)if(v[z[e]].length>0){var u="fonts"===z[e]?"https://fonts.googleapis.com/css?family="+v[z[e]].join("|"):ThemifyBuilderStyle.cf_api_url+v[z[e]].join("|");Themify.loadCss(u,null,!1).catch((()=>{}))}else delete b[z[e]];if(v=z=null,void 0!==e[f].custom_css){let i=t.createElement("style");i.id="tb_temp_styles_custom_css_"+p,i.innerHTML=e[f].custom_css,x.appendChild(i)}let S=i.keys(m).length>0&&n?x.cloneNode(!0):null;if(t.head.appendChild(x),null!==S){let e=t.createElement("style");e.textContent="html,body,body *,div,a{transition:none!important;animation:none!important;pointer-events:none!important}",S.appendChild(e),n.contentWindow.document.head.appendChild(S);let i=ThemifyStyles.breakpointsReverse;for(d=i.length-1;d>-1;--d){let e=i[d];if(b[e]!==r&&m[e]!==r){let a="max-width",s=1*ThemifyBuilderStyle.points[e],l=t.tfId("tb_temp_styles_"+e+"_"+p),_=null;for(h in(!s||s>=o+5)&&(a="min-width",s||(s=ThemifyBuilderStyle.points.tablet_landscape[1]+1,s-1;--u){let f=b[e][h][u];if(-1!==f.indexOf("%")&&(0===f.indexOf("padding")||0===f.indexOf("margin"))){let c=f.split(":"),g=c[0],p="p"===g[0]?g.replace("-","_"):g;if("padding"===g&&-1===m[e][s].indexOf("padding_top")||"padding"!==g&&-1===m[e][s].indexOf(p))continue;if(null===a){if(a=n.contentWindow.document.querySelector(h),null===a)continue;let e=getComputedStyle(a).getPropertyValue("position");if("absolute"===e||"fixed"===e)continue;a.style.setProperty("padding","0","important"),t=a.parentNode.getBoundingClientRect().width,o=a.getBoundingClientRect().width}let v=100*parseFloat(parseFloat(c[1])/100*t/o);if(v=parseFloat(parseFloat(v.toFixed(2)))+"%",b[e][h][u]=g+":"+v+";",null!==_){let t=!1;for(let e=_.length-1;e>-1;--e)if(_[e].selectorText===h&&_[e].style.getPropertyValue(g)){_[e].style.setProperty(g,v),t=!0;break}!1===t&&l.insertRule(h+"{"+b[e][h][u]+"}",_.length)}if(k[s]===r&&(k[s]={}),k[s][e]===r&&(k[s][e]={}),v=v.replace("%",""),"padding"===g?(k[s][e][p+"_top"]=v,k[s][e][p+"_top_unit"]="%"):(k[s][e][p]=v,k[s][e][p+"_unit"]="%"),"mobile"!==e){let e=i[d-1],t=b[e],n=!1;if(t&&t[h]){let e=-1!==g.indexOf("padding");for(let i=t[h].length-1;i>-1;--i){let r=t[h][i];if(!0===e&&0===r.indexOf("padding")||!1===e&&0===r.indexOf("margin")){let t=r.split(":")[0];if(t===g||!0===e&&"padding"===t||!1===e&&"margin"===t){n=!0;break}}}}!1===n&&(t===r&&(t={}),t[h]===r&&(t[h]=[]),t[h].push(f),m[e]===r&&(m[e]={}),m[e][s]===r&&(m[e][s]=[]),m[e][s].push(p))}}}}}}}null!==y&&(y.style.visibility=y.style.opacity="",y.classList.remove("tb_generate_css")),await(async()=>{i.keys(k).length>0&&Themify.fetch({data:k,action:"tb_update_old_data",nonce:ThemifyBuilderStyle.nonce,bid:p});try{const t=JSON.stringify(ThemifyStyles.optimizeCss(b,!0)),i={action:"tb_generate_on_fly",nonce:ThemifyBuilderStyle.nonce,bid:p,mode:"gzip"};void 0!==e[f].custom_css&&(i.custom_css=e[f].custom_css);try{i.css=await c(t);const e=await Themify.fetch(i);if(!e?.success)throw""}catch(e){delete i.mode,i.css=t,Themify.fetch(i)}}catch(e){console.error(e)}})()}n&&(n.parentNode.removeChild(n),n=null),ThemifyStyles.isWorking=!1};function _(){if("tb_regenerate_css_iframe"!==e.name){var i=!0,o=["padding_top","padding_bottom","padding_left","padding_right","margin-bottom","margin-top"],a=ThemifyStyles.breakpointsReverse,s=a.length,_=e=>{for(var t=5;t>-1;--t){if("%"===e[o[t]+"_unit"]&&e[o[t]]&&-1===(""+e[o[t]]).indexOf(","))return!0;for(var i=s-2;i>-1;--i)if(e["breakpoint_"+a[i]]){var n=e["breakpoint_"+a[i]][o[t]];if(""!==n&&n!==r&&-1===(""+n).indexOf(",")&&"%"===ThemifyStyles.getStyleVal(o[t]+"_unit",e,a[i]))return!0}}};for(var u in e){if(!1===i)break;if(0===u.indexOf("themify_builder_data_")&&e[u])for(var f=e[u].data,d=f.length-1;d>-1;--d){if(!1===i)break;var c=f[d];if(c.cols!==r)for(var h in c.cols){if(!1===i)break;var g=c.cols[h];if(g.styling&&_(g.styling)){i=!1;break}if(g.modules!==r)for(var p in g.modules){if(!1===i)break;var m=g.modules[p];if(m&&m.cols!==r)for(var b in m.cols){var v=m.cols[b];if(v.styling&&_(v.styling)){i=!1;break}}}}}}if(!1===i){ThemifyStyles.isWorking=!0,(n=t.createElement("iframe")).id=n.name="tb_regenerate_css_iframe",n.style.setProperty("position","fixed","important"),n.style.setProperty("top","-100000000px","important"),n.style.setProperty("left","-100000000px","important"),n.style.setProperty("visibility","hidden","important"),n.style.setProperty("min-width","auto","important"),n.style.setProperty("max-height","none","important"),n.style.setProperty("min-height","auto","important"),n.style.setProperty("contain","none","important"),n.style.setProperty("width","100%","important"),n.style.setProperty("height","100%","important"),n.style.setProperty("opacity","0","important"),n.src="about:blank",t.body.appendChild(n);let e=n.contentWindow.document;e.open(),e.write(""+t.documentElement.outerHTML),n.tfOn("load",(()=>{e.tfId("tb_regenerate_css_iframe").remove(),e=null,l()}),{passive:!0,once:!0}),e.close()}else l()}}"complete"===t.readyState?_():e.tfOn("load",_,{passive:!0,once:!0}),t.tfOn("tb_regenerate_css",_,{passive:!0})};o()}else if(e.themifyBuilder!==r){var p;if(themifyBuilder.google!==r&&Array.isArray(themifyBuilder.google)){p=themifyBuilder.google,themifyBuilder.google={};for(var m=p.length-1;m>-1;--m)""!==p[m].value&&"default"!==p[m].value&&(themifyBuilder.google[p[m].value]={n:p[m].name,v:p[m].variant})}if(themifyBuilder.cf!==r&&Array.isArray(themifyBuilder.cf)){p=themifyBuilder.cf,themifyBuilder.cf={};for(m=p.length-1;m>-1;--m)""!==p[m].value&&"default"!==p[m].value&&(themifyBuilder.cf[p[m].value]={n:p[m].name,v:p[m].variant})}}})(window,document,Object,void 0);