//>>built
define("dojox/color/Colorspace",["./_base","dojo/_base/lang","dojox/math/matrix"],function(d,r,n){d.Colorspace=new function(){var g=this,k={2:{E:{x:1/3,y:1/3,t:5400},D50:{x:.34567,y:.3585,t:5E3},D55:{x:.33242,y:.34743,t:5500},D65:{x:.31271,y:.32902,t:6500},D75:{x:.29902,y:.31485,t:7500},A:{x:.44757,y:.40745,t:2856},B:{x:.34842,y:.35161,t:4874},C:{x:.31006,y:.31616,t:6774},9300:{x:.2848,y:.2932,t:9300},F2:{x:.37207,y:.37512,t:4200},F7:{x:.31285,y:.32918,t:6500},F11:{x:.38054,y:.37691,t:4E3}},10:{E:{x:1/
3,y:1/3,t:5400},D50:{x:.34773,y:.35952,t:5E3},D55:{x:.33411,y:.34877,t:5500},D65:{x:.31382,y:.331,t:6500},D75:{x:.29968,y:.3174,t:7500},A:{x:.45117,y:.40594,t:2856},B:{x:.3498,y:.3527,t:4874},C:{x:.31039,y:.31905,t:6774},F2:{x:.37928,y:.36723,t:4200},F7:{x:.31565,y:.32951,t:6500},F11:{x:.38543,y:.3711,t:4E3}}},h={"Adobe RGB 98":[2.2,"D65",.64,.33,.297361,.21,.71,.627355,.15,.06,.075285],"Apple RGB":[1.8,"D65",.625,.34,.244634,.28,.595,.672034,.155,.07,.083332],"Best RGB":[2.2,"D50",.7347,.2653,.228457,
.215,.775,.737352,.13,.035,.034191],"Beta RGB":[2.2,"D50",.6888,.3112,.303273,.1986,.7551,.663786,.1265,.0352,.032941],"Bruce RGB":[2.2,"D65",.64,.33,.240995,.28,.65,.683554,.15,.06,.075452],"CIE RGB":[2.2,"E",.735,.265,.176204,.274,.717,.812985,.167,.009,.010811],"ColorMatch RGB":[1.8,"D50",.63,.34,.274884,.295,.605,.658132,.15,.075,.066985],"DON RGB 4":[2.2,"D50",.696,.3,.27835,.215,.765,.68797,.13,.035,.03368],"ECI RGB":[1.8,"D50",.67,.33,.32025,.21,.71,.602071,.14,.08,.077679],"EktaSpace PS5":[2.2,
"D50",.695,.305,.260629,.26,.7,.734946,.11,.005,.004425],"NTSC RGB":[2.2,"C",.67,.33,.298839,.21,.71,.586811,.14,.08,.11435],"PAL/SECAM RGB":[2.2,"D65",.64,.33,.222021,.29,.6,.706645,.15,.06,.071334],"Pro Photo RGB":[1.8,"D50",.7347,.2653,.28804,.1596,.8404,.711874,.0366,1E-4,8.6E-5],"SMPTE/C RGB":[2.2,"D65",.63,.34,.212395,.31,.595,.701049,.155,.07,.086556],sRGB:[2.2,"D65",.64,.33,.212656,.3,.6,.715158,.15,.06,.072186],"Wide Gamut RGB":[2.2,"D50",.735,.265,.258187,.115,.826,.724938,.157,.018,.016875]},
e={"XYZ scaling":{ma:[[1,0,0],[0,1,0],[0,0,1]],mai:[[1,0,0],[0,1,0],[0,0,1]]},Bradford:{ma:[[.8951,-.7502,.0389],[.2664,1.7135,-.0685],[-.1614,.0367,1.0296]],mai:[[.986993,.432305,-.008529],[-.147054,.51836,.040043],[.159963,.049291,.968487]]},"Von Kries":{ma:[[.40024,-.2263,0],[.7076,1.16532,0],[-.08081,.0457,.91822]],mai:[[1.859936,.361191,0],[-1.129382,.638812,0],[.219897,-6E-6,1.089064]]}},c={XYZ:{xyY:function(a,b){b=dojo.mixin({whitepoint:"D65",observer:"10",useApproximation:!0},b||{});var c=
g.whitepoint(b.whitepoint,b.observer),d=a.X+a.Y+a.Z;if(0==d)var f=c.x,c=c.y;else f=a.X/d,c=a.Y/d;return{x:f,y:c,Y:a.Y}},Lab:function(a,b){b=dojo.mixin({whitepoint:"D65",observer:"10",useApproximation:!0},b||{});var c=g.kappa(b.useApproximation),d=g.epsilon(b.useApproximation),f=g.whitepoint(b.whitepoint,b.observer),p=a.X/f.x,e=a.Y/f.y,f=a.z/f.z,e=e>d?Math.pow(e,1/3):(c*e+16)/116;return{L:116*e-16,a:500*((p>d?Math.pow(p,1/3):(c*p+16)/116)-e),b:200*(e-(f>d?Math.pow(f,1/3):(c*f+16)/116))}},Luv:function(a,
b){b=dojo.mixin({whitepoint:"D65",observer:"10",useApproximation:!0},b||{});var c=g.kappa(b.useApproximation),d=g.epsilon(b.useApproximation),f=g.whitepoint(b.whitepoint,b.observer),e=a.Y/f.y,c=e>d?116*Math.pow(e,1/3)-16:c*e;return{L:c,u:13*c*(4*a.X/(a.X+15*a.Y+3*a.Z)-4*f.x/(f.x+15*f.y+3*f.z)),v:13*c*(9*a.Y/(a.X+15*a.Y+3*a.Z)-9*f.y/(f.x+15*f.y+3*f.z))}}},xyY:{XYZ:function(a){if(0==a.y){var b=0,c=0;a=0}else b=a.x*a.Y/a.y,c=a.Y,a=(1-a.x-a.y)*a.Y/a.y;return{X:b,Y:c,Z:a}}},Lab:{XYZ:function(a,b){b=dojo.mixin({whitepoint:"D65",
observer:"10",useApproximation:!0},b||{});var c=b.useApproximation,d=g.kappa(c),c=g.epsilon(c),f=g.whitepoint(b.whitepoint,b.observer),e=a.L>d*c?Math.pow((a.L+16)/116,3):a.L/d,h=e>c?(a.L+16)/116:(d*e+16)/116,k=a.a/500+h,h=h-a.b/200,l=Math.pow(k,3),m=Math.pow(h,3);return{X:(l>c?l:(116*k-16)/d)*f.x,Y:e*f.y,Z:(m>c?m:(116*h-16)/d)*f.z}},LCHab:function(a){var b=a.L,c=Math.pow(a.a*a.a+a.b*a.b,.5);a=180/Math.PI*Math.atan(a.b,a.a);0>a&&(a+=360);360>a&&(a-=360);return{L:b,C:c,H:a}}},LCHab:{Lab:function(a){var b=
a.L,c=a.C/Math.pow(Math.pow(Math.tan(Math.PI/180*a.H),2)+1,.5);90<lchH&&270>a.H&&(c=-c);var d=Math.pow(Math.pow(a.C,2)-Math.pow(c,2),.5);180<a.H&&(d=-d);return{L:b,a:c,b:d}}},Luv:{XYZ:function(a,b){b=dojo.mixin({whitepoint:"D65",observer:"10",useApproximation:!0},b||{});var c=b.useApproximation,d=g.kappa(c),f=g.epsilon(c),c=g.whitepoint(b.whitepoint,b.observer),e=9*c.y/(c.x+15*c.y+3*c.z),d=a.L>d*f?Math.pow((a.L+16)/116,3):a.L/d,f=1/3*(52*a.L/(a.u+4*c.x/(c.x+15*c.y+3*c.z)*a.L*13)-1),c=-5*d,e=(d*(39*
a.L/(a.v+13*a.L*e)-5)-c)/(f- -(1/3));return{X:e,Y:d,Z:e*f+c}},LCHuv:function(a){var b=a.L,c=Math.pow(a.u*a.u+a.v*a*v,.5);a=180/Math.PI*Math.atan(a.v,a.u);0>a&&(a+=360);360<a&&(a-=360);return{L:b,C:c,H:a}}},LCHuv:{Luv:function(a){var b=a.L,c=a.C/Math.pow(Math.pow(Math.tan(Math.PI/180*a.H),2)+1,.5),d=Math.pow(a.C*a.C-c*c,.5);90<a.H&&270<a.H&&(c*=-1);180<a.H&&(d*=-1);return{L:b,u:c,v:d}}}},l={CMY:{CMYK:function(a,b){return d.fromCmy(a).toCmyk()},HSL:function(a,b){return d.fromCmy(a).toHsl()},HSV:function(a,
b){return d.fromCmy(a).toHsv()},Lab:function(a,b){return c.XYZ.Lab(d.fromCmy(a).toXYZ(b))},LCHab:function(a,b){return c.Lab.LCHab(l.CMY.Lab(a))},LCHuv:function(a,b){return c.LCHuv.Luv(c.Luv.XYZ(d.fromCmy(a).toXYZ(b)))},Luv:function(a,b){return c.Luv.XYZ(d.fromCmy(a).toXYZ(b))},RGB:function(a,b){return d.fromCmy(a)},XYZ:function(a,b){return d.fromCmy(a).toXYZ(b)},xyY:function(a,b){return c.XYZ.xyY(d.fromCmy(a).toXYZ(b))}},CMYK:{CMY:function(a,b){return d.fromCmyk(a).toCmy()},HSL:function(a,b){return d.fromCmyk(a).toHsl()},
HSV:function(a,b){return d.fromCmyk(a).toHsv()},Lab:function(a,b){return c.XYZ.Lab(d.fromCmyk(a).toXYZ(b))},LCHab:function(a,b){return c.Lab.LCHab(l.CMYK.Lab(a))},LCHuv:function(a,b){return c.LCHuv.Luv(c.Luv.XYZ(d.fromCmyk(a).toXYZ(b)))},Luv:function(a,b){return c.Luv.XYZ(d.fromCmyk(a).toXYZ(b))},RGB:function(a,b){return d.fromCmyk(a)},XYZ:function(a,b){return d.fromCmyk(a).toXYZ(b)},xyY:function(a,b){return c.XYZ.xyY(d.fromCmyk(a).toXYZ(b))}},HSL:{CMY:function(a,b){return d.fromHsl(a).toCmy()},CMYK:function(a,
b){return d.fromHsl(a).toCmyk()},HSV:function(a,b){return d.fromHsl(a).toHsv()},Lab:function(a,b){return c.XYZ.Lab(d.fromHsl(a).toXYZ(b))},LCHab:function(a,b){return c.Lab.LCHab(l.CMYK.Lab(a))},LCHuv:function(a,b){return c.LCHuv.Luv(c.Luv.XYZ(d.fromHsl(a).toXYZ(b)))},Luv:function(a,b){return c.Luv.XYZ(d.fromHsl(a).toXYZ(b))},RGB:function(a,b){return d.fromHsl(a)},XYZ:function(a,b){return d.fromHsl(a).toXYZ(b)},xyY:function(a,b){return c.XYZ.xyY(d.fromHsl(a).toXYZ(b))}},HSV:{CMY:function(a,b){return d.fromHsv(a).toCmy()},
CMYK:function(a,b){return d.fromHsv(a).toCmyk()},HSL:function(a,b){return d.fromHsv(a).toHsl()},Lab:function(a,b){return c.XYZ.Lab(d.fromHsv(a).toXYZ(b))},LCHab:function(a,b){return c.Lab.LCHab(l.CMYK.Lab(a))},LCHuv:function(a,b){return c.LCHuv.Luv(c.Luv.XYZ(d.fromHsv(a).toXYZ(b)))},Luv:function(a,b){return c.Luv.XYZ(d.fromHsv(a).toXYZ(b))},RGB:function(a,b){return d.fromHsv(a)},XYZ:function(a,b){return d.fromHsv(a).toXYZ(b)},xyY:function(a,b){return c.XYZ.xyY(d.fromHsv(a).toXYZ(b))}},Lab:{CMY:function(a,
b){return d.fromXYZ(c.Lab.XYZ(a,b)).toCmy()},CMYK:function(a,b){return d.fromXYZ(c.Lab.XYZ(a,b)).toCmyk()},HSL:function(a,b){return d.fromXYZ(c.Lab.XYZ(a,b)).toHsl()},HSV:function(a,b){return d.fromXYZ(c.Lab.XYZ(a,b)).toHsv()},LCHab:function(a,b){return c.Lab.LCHab(a,b)},LCHuv:function(a,b){return c.Luv.LCHuv(c.Lab.XYZ(a,b),b)},Luv:function(a,b){return c.XYZ.Luv(c.Lab.XYZ(a,b),b)},RGB:function(a,b){return d.fromXYZ(c.Lab.XYZ(a,b))},XYZ:function(a,b){return c.Lab.XYZ(a,b)},xyY:function(a,b){return c.XYZ.xyY(c.Lab.XYZ(a,
b),b)}},LCHab:{CMY:function(a,b){return d.fromXYZ(c.Lab.XYZ(c.LCHab.Lab(a),b),b).toCmy()},CMYK:function(a,b){return d.fromXYZ(c.Lab.XYZ(c.LCHab.Lab(a),b),b).toCmyk()},HSL:function(a,b){return d.fromXYZ(c.Lab.XYZ(c.LCHab.Lab(a),b),b).toHsl()},HSV:function(a,b){return d.fromXYZ(c.Lab.XYZ(c.LCHab.Lab(a),b),b).toHsv()},Lab:function(a,b){return c.Lab.LCHab(a,b)},LCHuv:function(a,b){return c.Luv.LCHuv(c.XYZ.Luv(c.Lab.XYZ(c.LCHab.Lab(a),b),b),b)},Luv:function(a,b){return c.XYZ.Luv(c.Lab.XYZ(c.LCHab.Lab(a),
b),b)},RGB:function(a,b){return d.fromXYZ(c.Lab.XYZ(c.LCHab.Lab(a),b),b)},XYZ:function(a,b){return c.Lab.XYZ(c.LCHab.Lab(a,b),b)},xyY:function(a,b){return c.XYZ.xyY(c.Lab.XYZ(c.LCHab.Lab(a),b),b)}},LCHuv:{CMY:function(a,b){return d.fromXYZ(c.Luv.XYZ(c.LCHuv.Luv(a),b),b).toCmy()},CMYK:function(a,b){return d.fromXYZ(c.Luv.XYZ(c.LCHuv.Luv(a),b),b).toCmyk()},HSL:function(a,b){return d.fromXYZ(c.Luv.XYZ(c.LCHuv.Luv(a),b),b).toHsl()},HSV:function(a,b){return d.fromXYZ(c.Luv.XYZ(c.LCHuv.Luv(a),b),b).toHsv()},
Lab:function(a,b){return c.XYZ.Lab(c.Luv.XYZ(c.LCHuv.Luv(a),b),b)},LCHab:function(a,b){return c.Lab.LCHab(c.XYZ.Lab(c.Luv.XYZ(c.LCHuv.Luv(a),b),b),b)},Luv:function(a,b){return c.LCHuv.Luv(a,b)},RGB:function(a,b){return d.fromXYZ(c.Luv.XYZ(c.LCHuv.Luv(a),b),b)},XYZ:function(a,b){return c.Luv.XYZ(c.LCHuv.Luv(a),b)},xyY:function(a,b){return c.XYZ.xyY(c.Luv.XYZ(c.LCHuv.Luv(a),b),b)}},Luv:{CMY:function(a,b){return d.fromXYZ(c.Luv.XYZ(a,b),b).toCmy()},CMYK:function(a,b){return d.fromXYZ(c.Luv.XYZ(a,b),
b).toCmyk()},HSL:function(a,b){return d.fromXYZ(c.Luv.XYZ(a,b),b).toHsl()},HSV:function(a,b){return d.fromXYZ(c.Luv.XYZ(a,b),b).toHsv()},Lab:function(a,b){return c.XYZ.Lab(c.Luv.XYZ(a,b),b)},LCHab:function(a,b){return c.Lab.LCHab(c.XYZ.Lab(c.Luv.XYZ(a,b),b),b)},LCHuv:function(a,b){return c.Luv.LCHuv(a,b)},RGB:function(a,b){return d.fromXYZ(c.Luv.XYZ(a,b),b)},XYZ:function(a,b){return c.Luv.XYZ(a,b)},xyY:function(a,b){return c.XYZ.xyY(c.Luv.XYZ(a,b),b)}},RGB:{CMY:function(a,b){return a.toCmy()},CMYK:function(a,
b){return a.toCmyk()},HSL:function(a,b){return a.toHsl()},HSV:function(a,b){return a.toHsv()},Lab:function(a,b){return c.XYZ.Lab(a.toXYZ(b),b)},LCHab:function(a,b){return c.LCHab.Lab(c.XYZ.Lab(a.toXYZ(b),b),b)},LCHuv:function(a,b){return c.LCHuv.Luv(c.XYZ.Luv(a.toXYZ(b),b),b)},Luv:function(a,b){return c.XYZ.Luv(a.toXYZ(b),b)},XYZ:function(a,b){return a.toXYZ(b)},xyY:function(a,b){return c.XYZ.xyY(a.toXYZ(b),b)}},XYZ:{CMY:function(a,b){return d.fromXYZ(a,b).toCmy()},CMYK:function(a,b){return d.fromXYZ(a,
b).toCmyk()},HSL:function(a,b){return d.fromXYZ(a,b).toHsl()},HSV:function(a,b){return d.fromXYZ(a,b).toHsv()},Lab:function(a,b){return c.XYZ.Lab(a,b)},LCHab:function(a,b){return c.Lab.LCHab(c.XYZ.Lab(a,b),b)},LCHuv:function(a,b){return c.Luv.LCHuv(c.XYZ.Luv(a,b),b)},Luv:function(a,b){return c.XYZ.Luv(a,b)},RGB:function(a,b){return d.fromXYZ(a,b)},xyY:function(a,b){return c.XYZ.xyY(d.fromXYZ(a,b),b)}},xyY:{CMY:function(a,b){return d.fromXYZ(c.xyY.XYZ(a,b),b).toCmy()},CMYK:function(a,b){return d.fromXYZ(c.xyY.XYZ(a,
b),b).toCmyk()},HSL:function(a,b){return d.fromXYZ(c.xyY.XYZ(a,b),b).toHsl()},HSV:function(a,b){return d.fromXYZ(c.xyY.XYZ(a,b),b).toHsv()},Lab:function(a,b){return c.Lab.XYZ(c.xyY.XYZ(a,b),b)},LCHab:function(a,b){return c.LCHab.Lab(c.Lab.XYZ(c.xyY.XYZ(a,b),b),b)},LCHuv:function(a,b){return c.LCHuv.Luv(c.Luv.XYZ(c.xyY.XYZ(a,b),b),b)},Luv:function(a,b){return c.Luv.XYZ(c.xyY.XYZ(a,b),b)},RGB:function(a,b){return d.fromXYZ(c.xyY.XYZ(a,b),b)},XYZ:function(a,b){return c.xyY.XYZ(a,b)}}};this.whitepoint=
function(a,b){b=b||"10";var c=0,d=0,f=0;k[b]&&k[b][a]?(c=k[b][a].x,d=k[b][a].y,f=k[b][a].t):console.warn("dojox.color.Colorspace::whitepoint: either the observer or the whitepoint name was not found. ",b,a);return this.convert({x:c,y:d,z:1-c-d,t:f,Y:1},"xyY","XYZ")};this.tempToWhitepoint=function(a){if(4E3>a)return console.warn("dojox.color.Colorspace::tempToWhitepoint: can't find a white point for temperatures less than 4000K. (Passed ",a,")."),{x:0,y:0};if(25E3<a)return console.warn("dojox.color.Colorspace::tempToWhitepoint: can't find a white point for temperatures greater than 25000K. (Passed ",
a,")."),{x:0,y:0};var b=a*a,c=b*a,d=Math.pow(10,9),f=Math.pow(10,6),e=Math.pow(10,3);a=7E3>=a?-4.607*d/c+2.9678*f/b+.09911*e/a+.2444063:-2.0064*d/c+1.9018*f/b+.24748*e/a+.23704;return{x:a,y:-3*a*a+2.87*a-.275}};this.primaries=function(a){a=dojo.mixin({profile:"sRGB",whitepoint:"D65",observer:"10",adaptor:"Bradford"},a||{});var b=[];h[a.profile]?b=h[a.profile].slice(0):console.warn("dojox.color.Colorspace::primaries: the passed profile was not found.  ","Available profiles include: ",h,".  The profile passed was ",
a.profile);b={name:a.profile,gamma:b[0],whitepoint:b[1],xr:b[2],yr:b[3],Yr:b[4],xg:b[5],yg:b[6],Yg:b[7],xb:b[8],yb:b[9],Yb:b[10]};if(a.whitepoint!=b.whitepoint)var c=this.convert(this.adapt({color:this.convert({x:xr,y:yr,Y:Yr},"xyY","XYZ"),adaptor:a.adaptor,source:b.whitepoint,destination:a.whitepoint}),"XYZ","xyY"),d=this.convert(this.adapt({color:this.convert({x:xg,y:yg,Y:Yg},"xyY","XYZ"),adaptor:a.adaptor,source:b.whitepoint,destination:a.whitepoint}),"XYZ","xyY"),e=this.convert(this.adapt({color:this.convert({x:xb,
y:yb,Y:Yb},"xyY","XYZ"),adaptor:a.adaptor,source:b.whitepoint,destination:a.whitepoint}),"XYZ","xyY"),b=dojo.mixin(b,{xr:c.x,yr:c.y,Yr:c.Y,xg:d.x,yg:d.y,Yg:d.Y,xb:e.x,yb:e.y,Yb:e.Y,whitepoint:a.whitepoint});return dojo.mixin(b,{zr:1-b.xr-b.yr,zg:1-b.xg-b.yg,zb:1-b.xb-b.yb})};this.adapt=function(a){a.color&&a.source||console.error("dojox.color.Colorspace::adapt: color and source arguments are required. ",a);a=dojo.mixin({adaptor:"Bradford",destination:"D65"},a);var b=this.whitepoint(a.source),c=this.whitepoint(a.destination);
if(e[a.adaptor])var d=e[a.adaptor].ma,f=e[a.adaptor].mai;else console.warn("dojox.color.Colorspace::adapt: the passed adaptor '",a.adaptor,"' was not found.");b=n.multiply([[b.x,b.y,b.z]],d);c=n.multiply([[c.x,c.y,c.z]],d);d=n.multiply(n.multiply(d,[[c[0][0]/b[0][0],0,0],[0,c[0][1]/b[0][1],0],[0,0,c[0][2]/b[0][2]]]),f);a=n.multiply([[a.color.X,a.color.Y,a.color.Z]],d)[0];return{X:a[0],Y:a[1],Z:a[2]}};this.matrix=function(a,b){var c=this.whitepoint(b.whitepoint),d=b.xr/b.yr,e=(1-b.xr-b.yr)/b.yr,g=
b.xg/b.yg,h=(1-b.xg-b.yg)/b.yg,k=b.xb/b.yb,l=(1-b.xb-b.yb)/b.yb,m=n.multiply([[c.X,c.Y,c.Z]],n.inverse([[d,1,e],[g,1,h],[k,1,l]])),c=m[0][0],q=m[0][1],m=m[0][2],d=[[c*d,1*c,c*e],[q*g,1*q,q*h],[m*k,1*m,m*l]];return"RGB"==a?n.inverse(d):d};this.epsilon=function(a){return a||"undefined"==typeof a?.008856:216/24289};this.kappa=function(a){return a||"undefined"==typeof a?903.3:24389/27};this.convert=function(a,b,c,d){if(l[b]&&l[b][c])return l[b][c](a,d);console.warn("dojox.color.Colorspace::convert: Can't convert ",
a," from ",b," to ",c,".")}};dojo.mixin(d,{fromXYZ:function(g,k){k=k||{};var h=d.Colorspace.primaries(k),e=d.Colorspace.matrix("RGB",h),c=dojox.math.matrix.multiply([[g.X,g.Y,g.Z]],e),l=c[0][0],e=c[0][1],c=c[0][2];"sRGB"==h.profile?(l=.0031308<l?1.055*Math.pow(l,1/2.4)-.055:12.92*l,e=.0031308<e?1.055*Math.pow(e,1/2.4)-.055:12.92*e,h=.0031308<c?1.055*Math.pow(c,1/2.4)-.055:12.92*c):(l=Math.pow(l,1/h.gamma),e=Math.pow(e,1/h.gamma),h=Math.pow(c,1/h.gamma));return new d.Color({r:Math.floor(255*l),g:Math.floor(255*
e),b:Math.floor(255*h)})}});dojo.extend(d.Color,{toXYZ:function(g){g=g||{};var k=d.Colorspace.primaries(g);g=d.Colorspace.matrix("XYZ",k);var h=this.r/255,e=this.g/255,c=this.b/255;"sRGB"==k.profile?(h=.04045<h?Math.pow((h+.055)/1.055,2.4):h/12.92,e=.04045<e?Math.pow((e+.055)/1.055,2.4):e/12.92,k=.04045<c?Math.pow((c+.055)/1.055,2.4):c/12.92):(h=Math.pow(h,k.gamma),e=Math.pow(e,k.gamma),k=Math.pow(c,k.gamma));g=n([[h,e,k]],g);return{X:g[0][0],Y:g[0][1],Z:g[0][2]}}});return d.Colorspace});