// @bun
var{defineProperty:x,getOwnPropertyNames:B,getOwnPropertyDescriptor:C}=Object,D=Object.prototype.hasOwnProperty;function E(c){return this[c]}var O=(c)=>{var j=(z??=new WeakMap).get(c),k;if(j)return j;if(j=x({},"__esModule",{value:!0}),c&&typeof c==="object"||typeof c==="function"){for(var v of B(c))if(!D.call(j,v))x(j,v,{get:E.bind(c,v),enumerable:!(k=C(c,v))||k.enumerable})}return z.set(c,j),j},z;var G=(c)=>c;function I(c,j){this[c]=G.bind(null,j)}var P=(c,j)=>{for(var k in j)x(c,k,{get:j[k],enumerable:!0,configurable:!0,set:I.bind(j,k)})};var Q=(c,j)=>()=>(c&&(j=c(c=0)),j);var R=import.meta.require;function K(c,j="_method"){let k=c.toUpperCase();if(k==="GET"||k==="POST")return"";return`<input type="hidden" name="${j}" value="${k}">`}function T(c){return c.replace(/@method\(\s*(['"])([^'"]+)\1\s*(?:,\s*(['"])([^'"]+)\3\s*)?\)/g,(j,k,v,L,A)=>{return K(v,A||"_method")})}function U(c,j="_method"){if(c&&typeof c[j]==="string")return c[j].toUpperCase();return null}export{T as processMethodDirectives,K as methodField,U as getOriginalMethod};
