Whoever introduced it to Twitter must have been optimizing in complication and write-only code.
Anyone can see that this code has a bus factor of less than 3 and counting down as you add more code to this monstrosity.