((e,t)=>{"use strict";let l,o,a=null;const i=e=>{const l=e.style;l.whiteSpace="nowrap",l.width="auto",l.position="absolute",l.fontSize="";const o=t(e.getBoundingClientRect().width),a=t(getComputedStyle(e).getPropertyValue("font-size")),i=t(o/a);l.whiteSpace=l.width=l.position="",l.fontSize=t(e.getBoundingClientRect().width)/i-1+"px"},n=e=>{null===a&&(a=new ResizeObserver(((e,t)=>{o&&clearTimeout(o),o=setTimeout((()=>{l&&cancelAnimationFrame(l),l=requestAnimationFrame((()=>{for(let l=e.length-1;l>-1;--l){let o=e[l].target;o.isConnected?i(o):t.unobserve(o)}}))}),100)}))),a.observe(e)};e.on("builder_load_module_partial",((t,l)=>{if(!0!==l||t.classList.contains("module-fittext"))for(let l=e.selectWithParent("module-fittext",t),o=l.length-1;o>-1;--o){let e=l[o].tfTag("span")[0];n(e),i(e)}}))})(Themify,parseFloat);