Microwave not working, sparks and discharges near magnetron
Conclusion - it's probably wise not to try to fix this.  As suggested by comments, it's just going to be too dangerous and not economically feasible. I will scavenge the parts from the old microwave and buy a new one to replace it.