/*! For license information please see 6282fb780684154862180e9525dac2d7.js.LICENSE.txt */ (wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/6282fb780684154862180e9525dac2d7"],{"./src/common/bluetooth/color/xyz.js":function(o,t,a){var n=a("./src/common/bluetooth/color/rgb.js"),h={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"],whitepoint:{2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}}};h.max=h.whitepoint[2].D65,h.rgb=function(o,t){t=t||h.whitepoint[2].E;var a,n,i,c=o[0]/t[0],e=o[1]/t[1],p=o[2]/t[2];return n=-.96924363628087*c+1.87596750150772*e+.041555057407175*p,i=.055630079696993*c+-.20397695888897*e+1.056971514242878*p,a=(a=3.240969941904521*c+-1.537383177570093*e+-.498610760293*p)>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,[255*(a=Math.min(Math.max(0,a),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},n.xyz=function(o,t){var a=o[0]/255,n=o[1]/255,i=o[2]/255,c=.21263900587151*(a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92)+.71516867876775*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.072192315360733*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92),e=.019330818715591*a+.11919477979462*n+.95053215224966*i;return[(.41239079926595*a+.35758433938387*n+.18048078840183*i)*(t=t||h.whitepoint[2].E)[0],c*t[1],e*t[2]]},o.exports=h}}]);