Parses a mode identifier.
Accepted values are `initial-setup`, `installer`, and `existing-user`. Any other value causes a fatal error.
the mode identifier
the parsed mode