I'd try to find her owners - if she's been missing a while, that could account for her current condition, mats, long nails and all. Definitely a bath is in order, and those mats trimmed off, too. Poor girl!