/*! For license information please see e2d407e25a353e560c8c555756781936.js.LICENSE.txt */ (wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/e2d407e25a353e560c8c555756781936"],{"./src/common/bluetooth/color/colorDiff.js":function(a){a.exports=function(a,t){var h=a,M=t,o=h[0],r=h[1],p=h[2],s=M[0],w=M[1],d=M[2],e=(o+s)/2,n=(Math.sqrt(Math.pow(r,2)+Math.pow(p,2))+Math.sqrt(Math.pow(w,2)+Math.pow(d,2)))/2,c=(1-Math.sqrt(Math.pow(n,7)/(Math.pow(n,7)+Math.pow(25,7))))/2,g=r*(1+c),u=w*(1+c),q=Math.sqrt(Math.pow(g,2)+Math.pow(p,2)),i=Math.sqrt(Math.pow(u,2)+Math.pow(d,2)),b=(q+i)/2,f=rad2deg(Math.atan2(p,g));f<0&&(f+=360);var v=rad2deg(Math.atan2(d,u));v<0&&(v+=360);var m=Math.abs(f-v)>180?(f+v+360)/2:(f+f)/2,x=1-.17*Math.cos(deg2rad(m-30))+.24*Math.cos(deg2rad(2*m))+.32*Math.cos(deg2rad(3*m+6))-.2*Math.cos(deg2rad(4*m-63)),l=v-f;Math.abs(l)>180&&(v<=f?l+=360:l-=360);var k=s-o,I=i-q;l=2*Math.sqrt(q*i)*Math.sin(deg2rad(l)/2);var J=1+.015*Math.pow(e-50,2)/Math.sqrt(20+Math.pow(e-50,2)),P=1+.045*b,j=1+.015*b*x,D=30*Math.exp(-Math.pow((m-275)/25,2)),y=-(2*Math.sqrt(Math.pow(b,7)/(Math.pow(b,7)+Math.pow(25,7))))*Math.sin(2*deg2rad(D));return Math.sqrt(Math.pow(k/(1*J),2)+Math.pow(I/(1*P),2)+Math.pow(l/(1*j),2)+y*(I/(1*P))*(l/(1*j)));function rad2deg(a){return 360*a/(2*Math.PI)}function deg2rad(a){return 2*Math.PI*a/360}}}}]);