((t,e,a,l)=>{"use strict";let o,r,n,s=0,i=null;const d={opacity(t,e){t.opacity=e},translate(t,e){t.transform+=` translate(${e}px, ${e}px)`},"translate-x"(t,e){t.transform+=` translateX(${e}px)`},"translate-y"(t,e){t.transform+=` translateY(${e}px)`},scale(t,e){t.transform+=` scale(${e})`},"scale-x"(t,e){t.transform+=` scaleX(${e})`},"scale-y"(t,e){t.transform+=` scaleY(${e})`},skew(t,e){t.transform+=` skew(${e}deg, ${e}deg)`},"skew-x"(t,e){t.transform+=` skewX(${e}deg)`},"skew-y"(t,e){t.transform+=` skewY(${e}deg)`},rotate(t,e){t.transform+=` rotate(${e}deg)`},"rotate-x"(t,e){t.transform+=` rotateX(${e}deg)`},"rotate-y"(t,e){t.transform+=` rotateY(${e}deg)`},"hue-rotate"(t,e){t.filter+=` hue-rotate(${e}deg)`},blur(t,e){t.filter+=` blur(${e}px)`}},f=[],x=(t,e)=>{let a=0;for(;t[a][0]<=e&&void 0!==t[a+1];)a+=1;const l=t[a][0],o=void 0===t[a-1]?l:t[a-1][0],r=t[a][1],n=void 0===t[a-1]?r:t[a-1][1];return Math.min(Math.max((e-o)/(l-o),0),1)*(r-n)+n},c=t=>"("===t[0]?Function("return "+t)():parseFloat(t),p=e=>{const l=e.getBoundingClientRect(),o={el:e,originalStyle:{transform:e.style.transform,filter:e.style.filter},transforms:{}};if(e.attributes["data-lax-anchor-top"]||(o.top=~~l.top+a.scrollY,e.removeAttribute("data-lax-anchor-top")),e.attributes["data-lax-optimize"]){const a=e.getBoundingClientRect();e.setAttribute("data-lax-opacity",`${-a.height-1} 0, ${-a.height} 1, ${t.h} 1, ${t.h+1} 0`)}for(let a=e.attributes.length-1;-1<a;--a){let r=e.attributes[a],n=r.name;if(0===n.indexOf("data-lax")&&(n=n.replace("data-lax-",""),void 0!==d[n])){let e=r.value.replace(/\s+/g," ").replaceAll("vw",t.w).replaceAll("vh",t.h).replaceAll("elh",l.height).replaceAll("elw",l.width);o.transforms[n]=e.split(",").map((t=>t.trim().split(" ").map(c))).sort(((t,e)=>t[0]-e[0]))}}f.push(o),y(o)},y=t=>{const{originalStyle:e,top:a,transforms:l,el:o}=t,r={transform:e.transform,filter:e.filter},n=a?a-s:s;for(let t in l)d[t](r,x(l[t],n));if(0===r.opacity)o.style.opacity=0;else for(let t in r)o.style[t]=r[t]},u=()=>{for(let t=f.length-1;-1<t;--t)y(f[t])};t.on("tf_lax_init",(d=>{void 0===d.length&&(d=[d]);const x=t.h,c=["scale","rotate","blur","opacity","translate-x","translate-y"];let y=e.body.getBoundingClientRect().top;for(let t=d.length-1;t>-1;--t){let a=d[t];if(!a.hasAttribute("data-lax"))continue;a.removeAttribute("data-lax");let l=a.cloneNode(!1),r=getComputedStyle(a),n=l.dataset.boxPosition,s=r.getPropertyValue("z-index");if(l.className="tf_lax_done tf_rel",l.removeAttribute("style"),s&&"auto"!==s&&(l.style.zIndex=s),n&&(l.style.transformOrigin=n,a.removeAttribute("data-box-position")),l.hasAttribute("data-lax-opacity")&&(l.className+=" tf_opacity",a.removeAttribute("data-lax-opacity")),l.hasAttribute("data-lax-rotate")&&(l.style.width=r.getPropertyValue("width"),null===i&&(i=new ResizeObserver((t=>{for(let e=t.length-1;e>-1;--e){let a=t[e].target.parentNode,l=parseInt(t[e].contentRect.width);parseInt(a.style.width)!==l&&(a.style.width=l+"px")}})),i.observe(a))),l.hasAttribute("data-lax-scale")){let t=a.closest(".entry-content");null!==t&&t.classList.add("themify-no-overflow-x"),!0!==o&&(o=!0,e.body.classList.add("themify-no-overflow-x"),y=e.body.getBoundingClientRect().top,e.tfId("tb_inline_styles").textContent+=".themify-no-overflow-x{overflow-x:hidden}")}let f=a.getBoundingClientRect().top-y;if(f+130<x){f=f<0?x:~~f,l.dataset.laxAnchorTop=1;for(let t=5;t>-1;--t){let e="data-lax-"+c[t],a=l.getAttribute(e);if(a){a=a.split(",");let t=a[1].split(" ");l.setAttribute(e,t[0]+" "+a[0].split(" ")[1]+","+f+" "+t[1])}}}a.before(l),l.appendChild(a),p(l)}if(!0!==n){n=!0;const e=()=>{if(!0===t.is_builder_active)return;const e=a.scrollY;s!==e&&(s=e,u()),o()},o=()=>{requestAnimationFrame(e)};a.tfOn("scroll",o,{once:!0,passive:!0}),t.on("tfsmartresize",(t=>{let e="desktop";if(t.w<=l.breakpoints.mobile?e="mobile":t.w<=l.breakpoints.tablet[1]?e="tablet":t.w<=l.breakpoints.tablet_landscape[1]&&(e="tablet_landscape"),r!==e){r=e;for(let t=f.length-1;t>-1;--t){let e=f[t],l=e.el,o=getComputedStyle(l.firstChild),r=o.getPropertyValue("z-index"),n=l.style;if(n.zIndex!==r&&(n.zIndex=r),l.hasAttribute("data-lax-rotate")){let t=o.getPropertyValue("width");n.width!==t&&(n.width=t)}void 0!==e.top&&(e.top=~~l.getBoundingClientRect().top+a.scrollY)}}u()}))}}))})(Themify,document,window,themify_vars);