import{w as _,x as v,s as d,b as m,v as p,a as b,y as h,z as k,U as I,A as g}from"./runtime-C3rQLW--.js";function y(o,l,u){var n=o,r=I,e,s,a=null,i=_()?v:d;function c(){e&&g(e),a!==null&&(a.lastChild.remove(),n.before(a),a=null),e=s}m(()=>{if(i(r,r=l())){var f=n,t=k();t&&(a=document.createDocumentFragment(),a.append(f=p())),s=b(()=>u(f)),t?h.add_callback(c):c()}})}export{y as k};