'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkYXTI4MTI_cjs=require('../chunk-YXTI4MTI.cjs'),chunkTRRLWCL6_cjs=require('../chunk-TRRLWCL6.cjs');require('../chunk-PI5KJ3ZM.cjs');var chunkINDSIUQQ_cjs=require('../chunk-INDSIUQQ.cjs');require('../chunk-3V4MONNR.cjs');var chunkYISEJCI6_cjs=require('../chunk-YISEJCI6.cjs');var $=(r,n,o)=>chunkTRRLWCL6_cjs.a(...chunkYXTI4MTI_cjs.j(r,n,o)),A=(r,n,o)=>{let[e,t,m]=chunkYXTI4MTI_cjs.i(r,n,o);return [chunkINDSIUQQ_cjs.d(e),chunkINDSIUQQ_cjs.d(t),chunkINDSIUQQ_cjs.d(m)]},S=(r,n,o,e)=>{chunkYXTI4MTI_cjs.h(r,n,o,e),r[0]=chunkINDSIUQQ_cjs.d(r[0]),r[1]=chunkINDSIUQQ_cjs.d(r[1]),r[2]=chunkINDSIUQQ_cjs.d(r[2]);},E=(r,n,o)=>A(...chunkYXTI4MTI_cjs.s(r,n,o)),q=(r,n,o,e)=>{chunkYXTI4MTI_cjs.t(r,n,o,e),S(r,r[0],r[1],r[2]);},I=Math.PI/180,v=(r,n,o)=>A(...chunkYXTI4MTI_cjs.A(r,n,o)),M=(r,n,o,e)=>{chunkYXTI4MTI_cjs.B(r,n,o,e),S(r,r[0],r[1],r[2]);},z=(r,n,o)=>{let e=o*I;return v(r,n*Math.cos(e),n*Math.sin(e))},H=(r,n,o,e)=>{let t=e*I;M(r,n,o*Math.cos(t),o*Math.sin(t));},J=r=>chunkYXTI4MTI_cjs.q(r,chunkYXTI4MTI_cjs.n),_=(r,n,o)=>{r.toGamutRec2020=e=>{let t=chunkYXTI4MTI_cjs.r(e,chunkYXTI4MTI_cjs.n,$);if(t===null)return new r(e);let[m,b,a]=t.linear,[k,F,G]=chunkYXTI4MTI_cjs.j(m,b,a);return r._makeFromLinearSrgb(k,F,G,t.alpha)},r.prototype.toRec2020=function(e=4){let{r:t,g:m,b,alpha:a}=chunkYXTI4MTI_cjs.k(this._rawRgb());return {r:chunkYISEJCI6_cjs.b(t,e),g:chunkYISEJCI6_cjs.b(m,e),b:chunkYISEJCI6_cjs.b(b,e),alpha:a,colorSpace:"rec2020"}},r.prototype.toRec2020String=function(e=4){let{r:t,g:m,b,alpha:a}=this.toRec2020(e);return a<1?`color(rec2020 ${t} ${m} ${b} / ${a})`:`color(rec2020 ${t} ${m} ${b})`},n.push(chunkYXTI4MTI_cjs.m,chunkYXTI4MTI_cjs.l),o.push([chunkYXTI4MTI_cjs.m,"rec2020"],[chunkYXTI4MTI_cjs.l,"rec2020"]);},K=_;exports.default=K;exports.inGamutRec2020=J;exports.labToRec2020Channels=v;exports.labToRec2020ChannelsInto=M;exports.lchToRec2020Channels=z;exports.lchToRec2020ChannelsInto=H;exports.linearToRec2020Channels=A;exports.linearToRec2020ChannelsInto=S;exports.oklchToRec2020Channels=E;exports.oklchToRec2020ChannelsInto=q;//# sourceMappingURL=rec2020.cjs.map
//# sourceMappingURL=rec2020.cjs.map