drill.ext("fixUrlObj",(e,t,l)=>{let d=t(...e);if("dcode"==d.fileType){let e=d.link.replace(/\.dcode(\??.*)/,".html$1");e&&(d.link=e)}return d}),drill.ext(e=>{let{loaders:t}=e;t.set("dcode",async e=>{let t;try{t=await fetch(e.link)}catch(t){return void(e.stat=2)}let l=(await t.text()).match(/<body>([\d\D]*)<\/body>/);l&&(l=l[1]);let d=document.createElement("div");d.innerHTML=l;let r=d.querySelectorAll("[domcode]"),o={};r&&Array.from(r).forEach(e=>{let t=e.getAttribute("domcode");e.removeAttribute("domcode"),"none"==e.style.display&&(e.style.display=""),t&&(o[t]=e.outerHTML)}),e.getPack=(async()=>o),e.stat=3})});