Republic of New York legislative election