// @bun
import{getRouterScript as q}from"stx-router";async function y(z,w,A,B){let j=w[0]?.replace(/['"]/g,"")||"main",b=q();if(j!=="main")b=b.replace("container:'main'",`container:'${j}'`);return`<script data-stx-router>${b}</script>`}var I={name:"stxRouter",handler:y,hasEndTag:!1,description:"Inject the STX SPA router script for client-side navigation"};export{y as stxRouterHandler,I as stxRouterDirective};
