function r(n){return n.replace(/^@/,"").replace(/\//g,"-")}function o(n){const e=(n==null?void 0:n.trim())??"";if(!e||e==="/")return"/";const t=e.split("/").map(i=>i.trim()).filter(Boolean);return t.length>0?`/${t.join("/")}`:"/"}function l(n,e){const t=o(e),i=`/settings/plugins/${r(n)}`;return t==="/"?i:`${i}${t}`}export{l as b,o as n,r as p};
