function i(e){if(!e)return"Unknown error";const t=e.match(/HTTP error (\d+)/i);if(t)return`Your Ethereum RPC returned HTTP ${t[1]}. The URL may be wrong, or the endpoint is down. Open Options to update it.`;const n=e.match(/out of sync:\s*(\d+)\s*seconds behind/i);return n?`Helios is out of sync with the consensus chain (${n[1]}s behind). The consensus RPC's blocks endpoint may be rate-limiting. Try again, or switch the consensus RPC in Options.`:/import\(\) is disallowed on ServiceWorkerGlobalScope/i.test(e)?"The Ethereum RPC call failed. The configured RPC may be unreachable. Open Options to check it.":e}export{i as h};
//# sourceMappingURL=chunk-M4cBMd8n.js.map
