{"version":3,"file":"index.mjs","sources":["../../../../../../../../../node_modules/chroma-js/src/io/temp/index.js"],"sourcesContent":["import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport temperature2rgb from './temperature2rgb.js';\nimport rgb2temperature from './rgb2temperature.js';\n\nColor.prototype.temp =\n    Color.prototype.kelvin =\n    Color.prototype.temperature =\n        function () {\n            return rgb2temperature(this._rgb);\n        };\n\nconst temp = (...args) => new Color(...args, 'temp');\nObject.assign(chroma, { temp, kelvin: temp, temperature: temp });\n\ninput.format.temp =\n    input.format.kelvin =\n    input.format.temperature =\n        temperature2rgb;\n\nexport { temp, temp as kelvin, temp as temperature };\n"],"names":[],"mappings":";;;;;;AAMA,KAAK,CAAC,SAAS,CAAC,IAAI;AACpB,IAAI,KAAK,CAAC,SAAS,CAAC,MAAM;AAC1B,IAAI,KAAK,CAAC,SAAS,CAAC,WAAW;AAC/B,QAAQ,YAAY;AACpB,YAAY,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC;AAC7C,QAAQ,CAAC;;AAEJ,MAAC,IAAI,GAAG,CAAC,GAAG,IAAI,KAAK,IAAI,KAAK,CAAC,GAAG,IAAI,EAAE,MAAM;AACnD,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;;AAEhE,KAAK,CAAC,MAAM,CAAC,IAAI;AACjB,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM;AACvB,IAAI,KAAK,CAAC,MAAM,CAAC,WAAW;AAC5B,QAAQ,eAAe;;;;","x_google_ignoreList":[0]}