function r(t){return t?t.replace(/\\n/g,` `).replace(/\r\n/g,` `).replace(/\r/g,` `):""}function u(t){return r(t).trim()}function a(t,e=40){if(!t)return{truncated:"",full:"",isTruncated:!1};const n=u(t);return n.length<=e?{truncated:n,full:n,isTruncated:!1}:{truncated:n.substring(0,e),full:n,isTruncated:!0}}export{u as n,a as t};