import{U as I,j as _,V as N,Z as R,aa as x,ab as D,ac as F,a9 as S,ad as p,a7 as C,_ as b,a4 as L,aw as U,ag as Z,an as j,ao as q,a1 as w}from"./7RXv2Ffc.js";function O(g,T,y=!1){_&&N();var r=g,t=null,s=null,e=U,E=y?R:0,l=!1;const k=(f,a=!0)=>{l=!0,d(a,f)};var n=null;function o(){n!==null&&(n.lastChild.remove(),r.before(n),n=null);var f=e?t:s,a=e?s:t;f&&j(f),a&&q(a,()=>{e?s=null:t=null})}const d=(f,a)=>{if(e===(e=f))return;let u=!1;if(_){const A=x(r)===D;!!e===A&&(r=F(),S(r),p(!1),u=!0)}var v=Z(),i=r;if(v&&(n=document.createDocumentFragment(),n.append(i=C())),e?t??=a&&b(()=>a(i)):s??=a&&b(()=>a(i)),v){var c=L,h=e?t:s,m=e?s:t;h&&c.skipped_effects.delete(h),m&&c.skipped_effects.add(m),c.add_callback(o)}else o();u&&p(!0)};I(()=>{l=!1,T(k),l||d(null,null)},E),_&&(r=w)}export{O as i};
