import{DirectiveRegistry as f,Internals as p,processDOM as a}from"../index.js";const{block:d}=p,m=(t,e)=>{const n=t.cloneNode(!0),{clear:r,bounds:o}=a(e,n);return{clear:r,bounds:o,copy:n}},l={attribute:(t,e)=>e==="*if",process:({scopeNode:t,targetNode:e,expression:n})=>{const r=document.createComment("*if");e[d]="abort",e.removeAttribute("*if"),e.parentNode?.insertBefore(r,e);let o,c,s;return{update:i=>{i?(!o&&({copy:o,bounds:c,clear:s}=m(e,t)),c.forEach(u=>u()),r.parentNode?.insertBefore(o,r)):o&&(o.remove(),s(),o=c=s=void 0)},removeNode:!0,removeAttribute:!0}},noExecution:!1};f.add(l);
