import{l as o}from"./p-e19711df.js";import{g as r}from"./p-95e9f2f6.js";let t=[];function e(e,n,s){for(const r of(null==s?void 0:s.partials)||[])o.registerPartial(r.id,(null==r?void 0:r.html)||"");try{const e=Object.keys((null==s?void 0:s.helpers)||[]).length?s.helpers:r();for(const[r,n]of Object.entries(e))try{t.includes(r)&&o.unregisterHelper(r),o.registerHelper(r,n),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(e)(n)}export{e as r}