function e(e){let t=!!e?.token?.trim(),n=!!e?.password?.trim();return t&&n?`token+password`:t?`token`:n?`password`:`none`}function t(e){if(!e)return e;let t=e;return t=t.replace(/(\b(?:access[_-]?token|refresh[_-]?token|token|password|secret|api[_-]?key)\b\s*[:=]\s*)("?)([^"\\s]+)("?)/gi,`$1$2***$4`),t=t.replace(/\bBearer\s+[A-Za-z0-9._-]+\b/g,`Bearer ***`),t=t.replace(/\bsk-[A-Za-z0-9]{10,}\b/g,`sk-***`),t}export{t as n,e as t};
