drill.init(async(e,c)=>{let l=c.que(".allpics"),s=c.que(".pic_viwer"),a=c.que(".viewer_ele"),d=c.que(".viewer_name"),i=c.que(".viewer_checked_con");l.on("click",".pic_block",e=>{let{delegateTarget:c}=e,t=l.que(".selected");t!=c&&(t&&t.class.remove("selected"),c?(c.class.add("selected"),s.class.remove("hide"),a.style["background-image"]=`url(${c.path})`,d.text=c.name,i.queAll("input").forEach(e=>{let{name:l}=e.ele;c.tagid.includes(l)?e.ele.checked=!0:e.ele.checked=!1})):s.class.add("hide"))}),c.que(".pic_con").on("click",e=>{let{target:c}=e;if(c.is("source-block")||(c=c.parents("source-block")[0]),!c){let e=l.que(".selected");e&&e.class.remove("selected"),s.class.add("hide")}})});