// @bun
var{defineProperty:F,getOwnPropertyNames:I,getOwnPropertyDescriptor:J}=Object,K=Object.prototype.hasOwnProperty;function L(q){return this[q]}var V=(q)=>{var z=(G??=new WeakMap).get(q),A;if(z)return z;if(z=F({},"__esModule",{value:!0}),q&&typeof q==="object"||typeof q==="function"){for(var B of I(q))if(!K.call(z,B))F(z,B,{get:L.bind(q,B),enumerable:!(A=J(q,B))||A.enumerable})}return G.set(q,z),z},G;var O=(q)=>q;function Q(q,z){this[q]=O.bind(null,z)}var W=(q,z)=>{for(var A in z)F(q,A,{get:z[A],enumerable:!0,configurable:!0,set:Q.bind(z,A)})};var S=(q,z)=>()=>(q&&(z=q(q=0)),z);var X=import.meta.require;function Z(q,z){if(!D.exact[q])D.exact[q]=[];D.exact[q].push(z)}function _(q,z){let A=typeof q==="string"?new RegExp(q):q;D.patterns.push({pattern:A,callback:z})}async function $(q,z){let A=q.split("/").pop()?.split(".")[0]||"";if(D.exact[q])for(let B of D.exact[q])await Promise.resolve(B(z,q));if(D.exact[A])for(let B of D.exact[A])await Promise.resolve(B(z,q));for(let{pattern:B,callback:H}of D.patterns)if(B.test(q)||B.test(A))await Promise.resolve(H(z,q))}function j(){D.patterns=[],D.exact={}}var D;var T=S(()=>{D={patterns:[],exact:{}}});T();export{$ as runComposers,_ as composerPattern,Z as composer,j as clearComposers};
