// Button loading-state helpers ported from mnw.js:343,407. The delegated HTMX // loading listeners (beforeRequest/afterRequest/etc.) live in htmx-glue (Phase-1 // cutover); these two are the reusable pieces feature code calls directly. /** * Resolve the button that should reflect loading state for an interaction. * Preference: the element itself if it's a `