From depinning transition to plastic yielding of amorphous media: A soft-modes perspective.