here you are vs there you are

here you are

phrase
  • Said when handing something over to someone or doing a favour to them, usually to draw the recipient's attention to the exchange; equivalent to “thank you” when receiving something. 

there you are

phrase
  • Used while giving someone something. Here you are; there you go. 

  • said to indicate that one has finished talking, or to express finality or fatalism, particularly regarding unpleasant news. 

How often have the words here you are and there you are occurred in a corpus of books? (source: Google Ngram Viewer )