Lyapunov's theorem for measures on D-posets