(t)
| 1215 | var b = {}; |
| 1216 | for (var x in l) b[l[x]] = x; |
| 1217 | var y = function (t) { |
| 1218 | return t instanceof y |
| 1219 | ? t |
| 1220 | : this instanceof y |
| 1221 | ? ((this.valid = !1), |
| 1222 | (this.values = { |
| 1223 | rgb: [0, 0, 0], |
| 1224 | hsl: [0, 0, 0], |
| 1225 | hsv: [0, 0, 0], |
| 1226 | hwb: [0, 0, 0], |
| 1227 | cmyk: [0, 0, 0, 0], |
| 1228 | alpha: 1, |
| 1229 | }), |
| 1230 | void ("string" == typeof t |
| 1231 | ? (e = u.getRgba(t)) |
| 1232 | ? this.setValues("rgb", e) |
| 1233 | : (e = u.getHsla(t)) |
| 1234 | ? this.setValues("hsl", e) |
| 1235 | : (e = u.getHwb(t)) && this.setValues("hwb", e) |
| 1236 | : "object" == typeof t && |
| 1237 | (void 0 !== (e = t).r || void 0 !== e.red |
| 1238 | ? this.setValues("rgb", e) |
| 1239 | : void 0 !== e.l || void 0 !== e.lightness |
| 1240 | ? this.setValues("hsl", e) |
| 1241 | : void 0 !== e.v || void 0 !== e.value |
| 1242 | ? this.setValues("hsv", e) |
| 1243 | : void 0 !== e.w || void 0 !== e.whiteness |
| 1244 | ? this.setValues("hwb", e) |
| 1245 | : (void 0 === e.c && void 0 === e.cyan) || |
| 1246 | this.setValues("cmyk", e)))) |
| 1247 | : new y(t); |
| 1248 | var e; |
| 1249 | }; |
| 1250 | (y.prototype = { |
| 1251 | isValid: function () { |
| 1252 | return this.valid; |
nothing calls this directly
no outgoing calls
no test coverage detected