export const __rspack_esm_id="29090";export const __rspack_esm_ids=["29090"];export const __webpack_modules__={9913(e,r,n){n.d(r,{createLogMessage:()=>c});n(44114),n(18111),n(61701),n(33110),n(2222),n(14603),n(47566),n(98721);var o=n(726);const a=/^\/(?:home-assistant\/frontend\/[^/]+|unknown|\/{2}\.)\//,s=[[/Edg\/(\S+)/,"Edge"],[/OPR\/(\S+)/,"Opera"],[/Chrome\/(\S+)/,"Chrome"],[/Firefox\/(\S+)/,"Firefox"],[/Version\/(\S+).*Safari/,"Safari"]],t=[[/CrOS/,"Chrome OS"],[/Windows NT ([\d.]+)/,"Windows"],[/Android ([\d.]+)/,"Android"],[/iPhone OS ([\d_.]+)/,"iOS"],[/iPad; CPU OS ([\d_.]+)/,"iPadOS"],[/Mac OS X ([\d_.]+)/,"macOS"],[/Linux/,"Linux"]],i=(e,r,n)=>{for(const[n,o]of r){const r=e.match(n);if(r){const e=r[1]?.replace(/_/g,".");return e?`${o} ${e}`:o}}return n},c=async(e,r,n,f)=>{const d=[];if(r){const e=navigator.userAgent,n=i(e,s,"unknown browser"),o=i(e,t,"unknown OS");d.push(`${r} from ${n} on ${o}`)}if(e instanceof Error){d.push(e.toString()||n);const r=(await(0,o.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(d.push(...r.length>0?r:[f]),e.cause&&d.push(`Caused by: ${await c(e.cause)}`),e instanceof AggregateError){const r=e.errors.map(async(e,r)=>[r,await c(e)]);for await(const[n,o]of r)d.push(`Part ${n+1} of ${e.errors.length}: ${o}`)}}else{const r=JSON.stringify(e,null,2);d.push(n,r===n?"":r,f)}return d.filter(Boolean).join("\n")}}};
//# sourceMappingURL=29090.ac89660fba9de52e.js.map