Ours and theirs are nominal possessive pronouns without nouns.
Library Library is a noun, so we were chosen.
They have no nouns after the second space, so choose them.
Their library is equivalent to theirs on this issue.