In the UK, we don’t have primaries (the political parties pick their leaders by a private vote of members/affiliates etc.), so there is never any requirement for a voter to declare a party before voting.
In the US, who pays for the primaries? Not the campaigning, but the provision of voting places, counting, security etc.?