import{a as e}from"./chunk-FKLXONKR.mjs";var h=(t,n)=>{let r=t.split("."),o=r.pop()||"";return`${r.join(".").slice(0,n)}.${o}`},p=(t,n)=>{if(t.length<=n)return t;let[r,...o]=t.split("/"),a=o.join("/"),i=Math.max(12,Math.floor(n/2)),s=h(r,i),c=Math.max(0,n-s.length-1),m=e(a,c);return`${s}/${m}`};export{p as a};
