Square \(ABCD\) has side length \(13\), and points \(E\) and \(F\) are exterior to the square such that \(BE=DF=5\) and \(AE=CF=12\). Find \(EF^{2}\).

(第二十五届AIME2 2007 第3题)