((e,t,n)=>{"use strict";if(!e.is_builder_active){const i=t.createElement("style"),o=t.tfClass("tbp_read_bar")[0],s=o.closest(".module");let a,r,c,l;function d(){const i=s.getBoundingClientRect();a=i.top+n.scrollY-e.h;r=Math.abs(a+i.height+e.h-a),t.tfOn("scroll",m,{passive:!0}),new IntersectionObserver((e=>{l=e[0].isIntersecting})).observe(s)}function m(){l&&(cancelAnimationFrame(c),c=requestAnimationFrame((()=>{let e=(n.scrollY-a)/r;e=e>1?1:e<0?0:e,o.style.transform="scaleX("+e+")"})))}i.textContent=".tbp_read_bar{height:5px;position:fixed;background:#f00;z-index:999999;transform-origin:0 50%;transition:transform .3s;contain:strict}",t.head.prepend(i),"complete"===t.readyState?d():n.tfOn("load",d,{passive:!0,once:!0}),o.style.transform="scaleX(0)",o.classList.remove("tf_hide")}})(Themify,document,window);