export const __rspack_esm_id="29090";export const __rspack_esm_ids=["29090"];export const __webpack_modules__={9913(e,n,r){r.d(n,{createLogMessage:()=>t});r(44114),r(18111),r(61701),r(33110),r(2222),r(14603),r(47566),r(98721);var s=r(726),o=r(27031);const a=/^\/(?:home-assistant\/frontend\/[^/]+|unknown|\/{2}\.)\//,t=async(e,n,r,i)=>{const c=[];if(n){const e=new o.O,{name:r="unknown browser",version:s=""}=e.getBrowser(),{name:a="unknown OS",version:t=""}=e.getOS(),i=`${r} ${s}`.trim(),f=`${a} ${t}`.trim();c.push(`${n} from ${i} on ${f}`)}if(e instanceof Error){c.push(e.toString()||r);const n=(await(0,s.fromError)(e)).slice(0,10).map(e=>(e.fileName??="",URL.canParse(e.fileName)&&(e.fileName=new URL(e.fileName).pathname),e.fileName=e.fileName.replace(a,""),e.toString()));if(c.push(...n.length>0?n:[i]),e.cause&&c.push(`Caused by: ${await t(e.cause)}`),e instanceof AggregateError){const n=e.errors.map(async(e,n)=>[n,await t(e)]);for await(const[r,s]of n)c.push(`Part ${r+1} of ${e.errors.length}: ${s}`)}}else{const n=JSON.stringify(e,null,2);c.push(r,n===r?"":n,i)}return c.filter(Boolean).join("\n")}}};
//# sourceMappingURL=29090.18d35e3322eca686.js.map