According to [0], it seems that "whoever" would be correct here.
> Rule 1. The presence of whoever or whomever indicates a dependent clause. Use whoever or whomever to agree with the verb in that dependent clause, regardless of the rest of the sentence.
> Examples:
> Give it to whoever/whomever asks for it first.
> He asks for it first. Therefore, whoever is correct.