Realization of the infinite-dimensional symmetries of conformal mechanics