[Statechart] StateMachine implements AnyEventTarget.