var window=function(r){"use strict";var e=window.document,l=window.Math,n=e.createElement("canvas").getContext("2d"),a=function(r,e,n){r/=255,e/=255,n/=255;var t,o=l.max(r,e,n),a=l.min(r,e,n),u=o,i=o-a,c=0===o?0:i/o;if(o===a)t=0;else{switch(o){case r:t=(e-n)/i+(e