<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Relay · Agent workspace</title></head><body><p id="loading" role="status">Opening Relay from Base Sepolia…</p><div id="root"></div><script>// The build replaces RELEASE with immutable transaction hashes.
(async function openRelease(release) {
  const rpcs = [
    "https://base-sepolia-rpc.publicnode.com",
    "https://sepolia.base.org",
    "https://base-sepolia.drpc.org",
  ];
  const status = document.querySelector("#loading");
  const hex = (bytes) =>
    Array.from(new Uint8Array(bytes), (b) =>
      b.toString(16).padStart(2, "0"),
    ).join("");
  async function readTransaction(hash) {
    for (const endpoint of rpcs) {
      try {
        const response = await fetch(endpoint, {
          method: "POST",
          headers: { "Content-Type": "application/json" },
          body: JSON.stringify({
            jsonrpc: "2.0",
            id: 1,
            method: "eth_getTransactionByHash",
            params: [hash],
          }),
          signal: AbortSignal.timeout(9000),
        });
        const tx = (await response.json()).result;
        if (
          tx?.hash === hash &&
          tx.blockHash &&
          tx.from.toLowerCase() === release.owner &&
          tx.to.toLowerCase() === release.owner
        )
          return Uint8Array.from(tx.input.slice(2).match(/../g), (pair) =>
            parseInt(pair, 16),
          );
      } catch {}
    }
    throw Error("No network endpoint returned the published application.");
  }
  try {
    async function load(part){
      const chunks=await Promise.all(part.transactions.map(readTransaction)),bytes=await new Blob(chunks).arrayBuffer();
      if(hex(await crypto.subtle.digest("SHA-256",bytes))!==part.sha256)throw Error("Release digest mismatch.");
      return new Response(new Blob([bytes]).stream().pipeThrough(new DecompressionStream("gzip"))).text();
    }
    let full=await load(release);
    if(release.base){
      const base=await load(release.base);
      full=JSON.parse(full).map(op=>typeof op==="string"?op:base.slice(op[0],op[0]+op[1])).join("");
      if(hex(await crypto.subtle.digest("SHA-256",new TextEncoder().encode(full)))!==release.finalDigest)throw Error("Reconstructed release digest mismatch.");
    }
    const files=JSON.parse(full);
    window.__RELAY_RELEASE__ = files.network;
    const fontLinks = new Map(
      files.fonts.map((item) => [
        item.name,
        URL.createObjectURL(
          new Blob(
            [Uint8Array.from(atob(item.bytes), (c) => c.charCodeAt(0))],
            { type: "font/woff2" },
          ),
        ),
      ]),
    );
    const style = document.createElement("style");
    style.textContent = files.css.replace(
      /url\((["']?)([^)"']+\.woff2)\1\)/g,
      (full, _, name) =>
        fontLinks.has(name.split("/").pop())
          ? "url(" + fontLinks.get(name.split("/").pop()) + ")"
          : full,
    );
    document.head.appendChild(style);
    const module = document.createElement("script");
    module.type = "module";
    module.src = URL.createObjectURL(
      new Blob([files.module], { type: "text/javascript" }),
    );
    module.onerror = () => {
      status.hidden = false;
      status.textContent = "Could not open this release. Reload to retry.";
    };
    document.body.appendChild(module);
    status.hidden = true;
  } catch (e) {
    status.textContent = e.message + " Reload to retry.";
  }
})({"owner":"0xbadefac5b2461113d6bbb18a85a33a208601790b","sha256":"0e03b9b966cc95b7c18d22aafbbb00a440cab67cc8066942e61334d1782ffcff","transactions":["0xbd9d21fccb2c7309570976459afdd605892a6c025a863c635dd1865e01ca9870","0x04f6415d00e7be1476f359143fe8d25404a235378ce29981427e80fdd6348fbd","0xd8a734d167518d3e7c78811f9545ebff6aac019b17bf10047b3c1d4fe3a6747b"],"base":{"transactions":["0x9194fb8fda87e95f9b955700c1d7615590358170f65d60a347cc793ce6c80985","0x4cd36f81149067a832b2a601e3ac7483bd41170b7c4b90e00474a16fe566e0a4","0x000a6e493bee9b28e415ed22634027708424e9055843231df3c091d9fc0dadfd","0xb5d6d2f549984a797dc9a0f7d6b23ad305c5b69af4c122895093e9d97fe8782a","0x1305603c51d08dfc2e1517907c0cc85066abacf7b545d3bddb43033bba10746d","0x3f07eae22ed9396d93b9c07844f0e86a6c9854445629b53b0143274f48ba669c","0x51bfa2cf4ddb16a4c3027cefe467f35d24fe14ca9197d6c30399d9df6d40292b","0x233e91c9a3d024c477c6acf4bd728e8389374640ea9919deabad90a76f9de37d"],"sha256":"ffb1ee41abe1cb533350929aa62650b90550fbf9509d89d1b406abba3004a3b6"},"finalDigest":"1748ba4c8621aa68e74ead29d660a5d9c712ca0378ba27ddfb4f398e8dbbdbfa"});
</script></body></html>