text: /*
  	The XYZ D50 color space
  	-----------------------
   */
  
  import convertXyzToRgb from './convertXyzToRgb';
  import convertXyzToLab from '../lab/convertXyzToLab';
  import convertRgbToXyz from './convertRgbToXyz';
  import convertLabToXyz from '../lab/convertLabToXyz';
  import { interpolatorLinear } from '../interpolate/linear';
  import { fixupAlpha } from '../fixup/alpha';
  
  const definition = {
  	mode: 'xyz',
  	parsers: ['xyz', '--xyz-d50'],
  	serialize: 'color(--xyz-d50 ',
  
  	output: {
  		rgb: convertXyzToRgb,
  		lab: convertXyzToLab
  	},
  
  	input: {
  		rgb: convertRgbToXyz,
  		lab: convertLabToXyz
  	},
  
  	channels: ['x', 'y', 'z', 'alpha'],
  
  	ranges: {
  		x: [0, 0.964],
  		y: [0, 0.999],
  		z: [0, 0.825]
  	},
  
  	interpolate: {
  		x: interpolatorLinear,
  		y: interpolatorLinear,
  		z: interpolatorLinear,
  		alpha: { use: interpolatorLinear, fixup: fixupAlpha }
  	}
  };
  
  export default definition;
  