"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["29090"],{9913:function(e,n,r){r.d(n,{createLogMessage:function(){return o}});r(16280),r(30067),r(4294),r(44114),r(18111),r(61701),r(33110),r(3362),r(27495),r(25440),r(62953),r(3296),r(2222),r(27208),r(48408),r(14603),r(47566),r(98721);var a=r(726),s=r(27031);const t=/^\/(?:home-assistant\/frontend\/[^/]+|unknown|\/{2}\.)\//,o=async(e,n,r,i)=>{const f=[];if(n){const e=new s.O,{name:r="unknown browser",version:a=""}=e.getBrowser(),{name:t="unknown OS",version:o=""}=e.getOS(),i=`${r} ${a}`.trim(),u=`${t} ${o}`.trim();f.push(`${n} from ${i} on ${u}`)}if(e instanceof Error){f.push(e.toString()||r);const n=(await(0,a.fromError)(e)).slice(0,10).map(e=>{var n;return null!==(n=e.fileName)&&void 0!==n||(e.fileName=""),URL.canParse(e.fileName)&&(e.fileName=new URL(e.fileName).pathname),e.fileName=e.fileName.replace(t,""),e.toString()});if(f.push(...n.length>0?n:[i]),e.cause&&f.push(`Caused by: ${await o(e.cause)}`),e instanceof AggregateError){const n=e.errors.map(async(e,n)=>[n,await o(e)]);for await(const[r,a]of n)f.push(`Part ${r+1} of ${e.errors.length}: ${a}`)}}else{const n=JSON.stringify(e,null,2);f.push(r,n===r?"":n,i)}return f.filter(Boolean).join("\n")}}}]);
//# sourceMappingURL=29090.d0c0dcf023f24127.js.map