Streamline HMR message handling (#83336)
For unknown reasons, 3 of the 17 different HMR messages used an `event` property instead of `action`, leading to an unnecessarily convoluted handling of the HMR messages, where the `in` operator had to be used.
> [!TIP]
> Best reviewed with hidden whitespace changes.