import{l as o}from"./p-e19711df.js";import{g as r}from"./p-2a0c7fc9.js";let t=[];function c(c,e,n){for(const r of(null==n?void 0:n.partials)||[])o.registerPartial(r.id,(null==r?void 0:r.html)||"");try{const c=Object.keys((null==n?void 0:n.helpers)||[]).length?n.helpers:r();for(const[r,e]of Object.entries(c))try{t.includes(r)&&o.unregisterHelper(r),o.registerHelper(r,e),t.includes(r)||(t=[...t,r])}catch(o){console.log(`Error setting helper ${r}.`,o)}}catch(o){console.log("Error setting helpers.")}return o.compile(c)(e)}export{c as r}