import{U as c,j as f,V as _,W as d,X as l,Y as u,Z as h,_ as m,$ as v,a0 as y,a1 as o,a2 as g}from"./7RXv2Ffc.js";function E(r,s,...n){var t=r,e=v,a;c(()=>{e!==(e=s())&&(a&&(y(a),a=null),a=m(()=>e(t,...n)))},h),f&&(t=o)}function R(r){return(s,...n)=>{var t=r(...n),e;if(f)e=o,_();else{var a=t.render().trim(),p=d(a);e=g(p),s.before(e)}const i=t.setup?.(e);l(e,e),typeof i=="function"&&u(i)}}export{R as c,E as s};
