I was playing, and I could have sworn I heard a POP (I had multiple pedals engaged). Then I noticed that the Noise Ensemble wasn't working. When I opened it up, this component was rattling around inside - LM 7805 AC

I'm not able to fix it myself probably (I'm a crummy solderer) but maybe my friend can fix it, if he knows what to do. Can anyone explain? Only thing I can figure is that maybe it slots into the sockets (?) directly above the stomp switch (?) but in what orientation?
Also, it has a slight burnt smell

This is one of my favorite pedals of all time. HELP, I'M NOT SMART!