// @bun
var{defineProperty:B,getOwnPropertyNames:I,getOwnPropertyDescriptor:J}=Object,K=Object.prototype.hasOwnProperty;function N(b){return this[b]}var U=(b)=>{var j=(D??=new WeakMap).get(b),q;if(j)return j;if(j=B({},"__esModule",{value:!0}),b&&typeof b==="object"||typeof b==="function"){for(var w of I(b))if(!K.call(j,w))B(j,w,{get:N.bind(b,w),enumerable:!(q=J(b,w))||q.enumerable})}return D.set(b,j),j},D;var O=(b)=>b;function P(b,j){this[b]=O.bind(null,j)}var V=(b,j)=>{for(var q in j)B(b,q,{get:j[q],enumerable:!0,configurable:!0,set:P.bind(j,q)})};var Q=(b,j)=>()=>(b&&(j=b(b=0)),j);var W=import.meta.require;function Y(){E=0,A.clear()}function Z(b,j){let q=E++,w=`<!--__STX_${b.toUpperCase()}_${q}__-->`;return A.set(w,{type:b,expression:j}),w}function _(){let b={};for(let[j,q]of A)b[j]={type:q.type,expression:q.expression};return b}function $(b){let j={},q=/<!--__STX_(EXPR|COND|RAW)_(\d+)__-->/g,w;while((w=q.exec(b))!==null){let z=w[0],F=w[1].toLowerCase(),G=A.get(z);j[z]={type:F,expression:G?.expression||""}}return j}function H(b,j){let q=b;for(let[w,z]of j)q=q.split(w).join(z);return q}function L(b){return b.includes("<!--__STX_")}var E=0,A;var S=Q(()=>{A=new Map});S();export{Y as resetPlaceholders,H as replacePlaceholders,L as hasPlaceholders,_ as getPlaceholderRegistry,$ as extractPlaceholders,Z as createPlaceholder};
