Which ספר מנורת המאור Sefer Menoras Hamaor came first?
Between the two sefarim called ספר מנורת המאור Sefer Menoras Hamaor - One written by Rav Yisrael ben Yoseph Alnakaweh, and one written by Rav Yitzchak Abuhav I have heard that the latter was originally thought to be based on the previous work. Later I heard that many have disagreed and claimed the opposite to be true, and the Sefer of R' Abuhav came was the original Menoras Hamaor which the Menoras Hamaor of R' Al-Nakaweh was based on. I heard a 3rd opinion that they were written indepententally of each other without either affecting the other.
Can someone supply some more insight, sources, detail on this matter?
PS I would prefer, if available, a little more than just citings of sources stating one way or another.