File: /var/www/html/wppartneramazingsecret/wp-content/themes/themify-ultra/themify/js/modules/lax.min.js
'use strict';(function(k,q,l){let w=null,x=null,r=null,t=null,h=q.getElementById("tb_inline_styles"),m=[],n=[],y=null;const u={p:{},b:{}},B=function(){const d=[];!0===r&&(r=!1,d.push("[data-lax-opacity].tf_lax_done{opacity:0}"));!0===t&&(t=!1,d.push("[data-lax-no-op].tf_lax_done{opacity:1!important}"));for(var e=m.length-1;-1<e;--e)u.p[m[e]]||(u.p[m[e]]=!0,d.push('[data-box-position="'+m[e]+'"].tf_lax_done{transform-origin:'+m[e]+"}"));m=[];for(e=n.length-1;-1<e;--e)u.b[n[e]]||(u.b[n[e]]=!0,d.push('[data-lax-b="'+
n[e]+'"].tf_lax_done{filter:blur('+n[e]+"px)}"));n=[];0<d.length&&(h.textContent+=d.join(""))},A=function(d){const e=k.h,v=[];let z=q.body.getBoundingClientRect().top;for(let p=d.length-1;-1<p;--p){let f=d[p];if(!f.hasAttribute("data-lax"))continue;f.removeAttribute("data-lax");let a=f.cloneNode(!1);var c=a.style.zIndex;a.className="tf_lax_done tf_rel";a.removeAttribute("style");c&&(a.style.zIndex=c);a.hasAttribute("data-box-position")&&(c=a.getAttribute("data-box-position"),-1!==c.indexOf("%")?a.style.transformOrigin=
c:m.push(c),f.removeAttribute("data-box-position"));a.hasAttribute("data-lax-b")&&(n.push(a.getAttribute("data-lax-b")),f.removeAttribute("data-lax-b"));a.hasAttribute("data-lax-scale")&&(c=f.closest(".entry-content"),null!==c&&c.classList.add("themify-no-overflow-x"),null===w&&(k.body[0].classList.add("themify-no-overflow-x"),z=q.body.getBoundingClientRect().top,w=!0));a.hasAttribute("data-lax-no-op")&&(f.removeAttribute("data-lax-b"),null===t&&(t=!0));f.removeAttribute("data-lax-opacity");c=f.getBoundingClientRect().top-
z;if(c+130<e){c=0>c?e:Math.floor(c);f.removeAttribute("data-lax-anchor");a.removeAttribute("data-lax-anchor");if(a.hasAttribute("data-lax-translate-y")){var b=a.getAttribute("data-lax-translate-y").split(","),g=b[0].split(" ");b=b[1].split(" ");a.setAttribute("data-lax-translate-y",b[0]+" "+g[1]+","+c+" "+b[1])}a.hasAttribute("data-lax-translate-x")&&(b=a.getAttribute("data-lax-translate-x").split(","),g=b[0].split(" "),b=b[1].split(" "),a.setAttribute("data-lax-translate-x",b[0]+" "+g[1]+","+c+" "+
b[1]));a.hasAttribute("data-lax-opacity")&&(null===r&&(r=!0),b=a.getAttribute("data-lax-opacity").split(","),g=b[0].split(" "),b=b[1].split(" "),a.setAttribute("data-lax-opacity",b[0]+" "+g[1]+","+c+" "+b[1]));a.hasAttribute("data-lax-blur")&&(b=a.getAttribute("data-lax-blur").split(","),g=b[0].split(" "),b=b[1].split(" "),a.setAttribute("data-lax-blur",b[0]+" "+g[1]+","+c+" "+b[1]));a.hasAttribute("data-lax-rotate")&&(b=a.getAttribute("data-lax-rotate").split(","),g=b[0].split(" "),b=b[1].split(" "),
a.setAttribute("data-lax-rotate",b[0]+" "+g[1]+","+c+" "+b[1]));a.hasAttribute("data-lax-scale")&&(b=a.getAttribute("data-lax-scale").split(","),g=b[0].split(" "),b=b[1].split(" "),a.setAttribute("data-lax-scale",b[0]+" "+g[1]+","+c+" "+b[1]))}f.parentNode.insertBefore(a,f);a.appendChild(f);v.push(a)}B();for(d=v.length-1;-1<d;--d)l.lax.addElement(v[d]);if(null===y){y=!0;let p=null;const f=function(){const a=l.scrollY;if(x!==a&&(x=a,l.lax.update(a),!0===k.is_builder_active))return;null!==p&&cancelAnimationFrame(p);
p=requestAnimationFrame(f)};l.addEventListener("scroll",function(){requestAnimationFrame(f)},{once:!0,passive:!0});k.on("tfsmartresize",function(){l.lax.updateElements()})}};h||(h=q.createElement("style"),h.id="tb_inline_styles",q.head.appendChild(h));h.textContent+=".themify-no-overflow-x{overflow-x:hidden}";k.on("tf_lax_init",function(d){l.lax?A(d):k.LoadAsync(k.jsUrl+"themify.lax.min.js",function(){A(d)},"1.0",null,function(){return!!l.lax})})})(Themify,document,window);