const i=[/.*secret.*/i],o=e=>i.some(r=>r.test(e)),t=e=>{if(!e)return e;if(Array.isArray(e))return e.map(r=>t(r)).filter(r=>r!==void 0);if(typeof e=="object"){const r={};for(const[n,s]of Object.entries(e))r[n]=o(n)?"**********":t(s);return r}return e},a=e=>{if(Array.isArray(e))return e.length>0?JSON.stringify(e.map(t)):void 0;const r=t(e);return r&&JSON.stringify(r)};export{a as getPortalConfigStats};
