"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["29090"],{9913:function(n,e,r){r.d(e,{createLogMessage:function(){return f}});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);const o=/^\/(?:home-assistant\/frontend\/[^/]+|unknown|\/{2}\.)\//,s=[[/Edg\/(\S+)/,"Edge"],[/OPR\/(\S+)/,"Opera"],[/Chrome\/(\S+)/,"Chrome"],[/Firefox\/(\S+)/,"Firefox"],[/Version\/(\S+).*Safari/,"Safari"]],i=[[/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"]],t=(n,e,r)=>{for(const[o,s]of e){const e=n.match(o);if(e){var a;const n=null===(a=e[1])||void 0===a?void 0:a.replace(/_/g,".");return n?`${s} ${n}`:s}}return r},f=async(n,e,r,c)=>{const u=[];if(e){const n=navigator.userAgent,r=t(n,s,"unknown browser"),a=t(n,i,"unknown OS");u.push(`${e} from ${r} on ${a}`)}if(n instanceof Error){u.push(n.toString()||r);const e=(await(0,a.fromError)(n)).slice(0,10).map(n=>{var e;return null!==(e=n.fileName)&&void 0!==e||(n.fileName=""),URL.canParse(n.fileName)&&(n.fileName=new URL(n.fileName).pathname),n.fileName=n.fileName.replace(o,""),n.toString()});if(u.push(...e.length>0?e:[c]),n.cause&&u.push(`Caused by: ${await f(n.cause)}`),n instanceof AggregateError){const e=n.errors.map(async(n,e)=>[e,await f(n)]);for await(const[r,a]of e)u.push(`Part ${r+1} of ${n.errors.length}: ${a}`)}}else{const e=JSON.stringify(n,null,2);u.push(r,e===r?"":e,c)}return u.filter(Boolean).join("\n")}}}]);
//# sourceMappingURL=29090.0615c3022caa03a5.js.map