if(!window.Joomla)throw new Error("Joomla API was not properly initialised");const initScheduler=()=>{const e=Joomla.getOptions("plg_system_schedulerunner"),n=Joomla.getOptions("system.paths"),o=1e3*(e&&e.interval?parseInt(e.interval,10):300),t=`${n?`${n.root}/index.php`:window.location.pathname}?option=com_ajax&format=raw&plugin=RunSchedulerLazy&group=system`;setInterval((()=>navigator.sendBeacon(t)),o),navigator.sendBeacon(t)};(e=>{e.addEventListener("DOMContentLoaded",(()=>{initScheduler()}))})(document);