The stochastic Korteweg–de Vries equation with loss and non-uniformity terms