Major sources and outputs of water and electrolytes

Explain the major sources and outputs of water and electrolytes
Include the various factors that contribute to water and electrolyte imbalances.