@cruglobal/godtools-shared 1.1.2-SNAPSHOT.1691 → 1.1.2-SNAPSHOT.1698
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kermit-kermit-core.js +42 -42
- package/Kermit-kermit.js +5 -5
- package/antlr-kotlin-antlr-kotlin-runtime.js +3116 -3116
- package/colormath-root-colormath.js +906 -906
- package/fluid-locale.js +144 -144
- package/kotlin-js.js +34 -34
- package/kotlin-kotlin-stdlib.js +1981 -1951
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-common.js +3 -3
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +385 -385
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +2653 -2608
- package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-state.js +247 -247
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.d.ts +2 -1
- package/kotlinx-atomicfu.js +20 -20
- package/kotlinx-coroutines-core.js +2823 -2823
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -24,24 +24,24 @@
|
|
|
24
24
|
var VOID = kotlin_kotlin.$_$.d;
|
|
25
25
|
var Companion_instance = kotlin_kotlin.$_$.k2;
|
|
26
26
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.y1;
|
|
27
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
27
|
+
var createFailure = kotlin_kotlin.$_$.y9;
|
|
28
28
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.b2;
|
|
29
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
29
|
+
var THROW_CCE = kotlin_kotlin.$_$.r9;
|
|
30
30
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.a2;
|
|
31
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
31
|
+
var startsWith = kotlin_kotlin.$_$.o8;
|
|
32
32
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
33
33
|
var initMetadataForObject = kotlin_kotlin.$_$.q6;
|
|
34
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
34
|
+
var endsWith = kotlin_kotlin.$_$.a8;
|
|
35
35
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.e3;
|
|
36
36
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
37
37
|
var checkIndexOverflow = kotlin_kotlin.$_$.d3;
|
|
38
38
|
var Unit_instance = kotlin_kotlin.$_$.l2;
|
|
39
39
|
var get_lastIndex = kotlin_kotlin.$_$.f4;
|
|
40
|
-
var dropLast = kotlin_kotlin.$_$.
|
|
41
|
-
var toDouble = kotlin_kotlin.$_$.
|
|
40
|
+
var dropLast = kotlin_kotlin.$_$.z7;
|
|
41
|
+
var toDouble = kotlin_kotlin.$_$.u8;
|
|
42
42
|
var charSequenceLength = kotlin_kotlin.$_$.a6;
|
|
43
43
|
var coerceIn = kotlin_kotlin.$_$.k7;
|
|
44
|
-
var Enum = kotlin_kotlin.$_$.
|
|
44
|
+
var Enum = kotlin_kotlin.$_$.h9;
|
|
45
45
|
var equals = kotlin_kotlin.$_$.d6;
|
|
46
46
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
47
47
|
var dropLast_0 = kotlin_kotlin.$_$.o3;
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
var numberToInt = kotlin_kotlin.$_$.y6;
|
|
51
51
|
var roundToInt = kotlin_kotlin.$_$.e7;
|
|
52
52
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t1;
|
|
53
|
-
var padStart = kotlin_kotlin.$_$.
|
|
53
|
+
var padStart = kotlin_kotlin.$_$.i8;
|
|
54
54
|
var charArrayOf = kotlin_kotlin.$_$.y5;
|
|
55
|
-
var trimEnd = kotlin_kotlin.$_$.
|
|
56
|
-
var isNaN_0 = kotlin_kotlin.$_$.
|
|
55
|
+
var trimEnd = kotlin_kotlin.$_$.b9;
|
|
56
|
+
var isNaN_0 = kotlin_kotlin.$_$.aa;
|
|
57
57
|
var joinTo_0 = kotlin_kotlin.$_$.c4;
|
|
58
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
58
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ca;
|
|
59
59
|
var numberToDouble = kotlin_kotlin.$_$.x6;
|
|
60
60
|
var getStringHashCode = kotlin_kotlin.$_$.j6;
|
|
61
61
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
|
|
@@ -63,53 +63,53 @@
|
|
|
63
63
|
var toString_0 = kotlin_kotlin.$_$.x1;
|
|
64
64
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
65
65
|
var listOf = kotlin_kotlin.$_$.j4;
|
|
66
|
-
var to = kotlin_kotlin.$_$.
|
|
66
|
+
var to = kotlin_kotlin.$_$.ha;
|
|
67
67
|
var mapOf = kotlin_kotlin.$_$.l4;
|
|
68
68
|
var withSign = kotlin_kotlin.$_$.f7;
|
|
69
|
-
var trimMargin = kotlin_kotlin.$_$.
|
|
69
|
+
var trimMargin = kotlin_kotlin.$_$.c9;
|
|
70
70
|
var hashCode = kotlin_kotlin.$_$.k6;
|
|
71
71
|
var coerceAtLeast = kotlin_kotlin.$_$.g7;
|
|
72
72
|
var getNumberHashCode = kotlin_kotlin.$_$.h6;
|
|
73
73
|
var isInterface = kotlin_kotlin.$_$.t6;
|
|
74
74
|
var objectCreate = kotlin_kotlin.$_$.z6;
|
|
75
|
-
var Char = kotlin_kotlin.$_$.
|
|
76
|
-
var toInt = kotlin_kotlin.$_$.
|
|
75
|
+
var Char = kotlin_kotlin.$_$.e9;
|
|
76
|
+
var toInt = kotlin_kotlin.$_$.y8;
|
|
77
77
|
var numberRangeToNumber = kotlin_kotlin.$_$.u6;
|
|
78
|
-
var slice = kotlin_kotlin.$_$.
|
|
78
|
+
var slice = kotlin_kotlin.$_$.k8;
|
|
79
79
|
var contentEquals = kotlin_kotlin.$_$.i3;
|
|
80
80
|
var coerceAtLeast_0 = kotlin_kotlin.$_$.i7;
|
|
81
81
|
var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.f2;
|
|
82
82
|
var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.g2;
|
|
83
83
|
var coerceIn_0 = kotlin_kotlin.$_$.l7;
|
|
84
84
|
var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.d2;
|
|
85
|
-
var uintToDouble = kotlin_kotlin.$_$.
|
|
85
|
+
var uintToDouble = kotlin_kotlin.$_$.ja;
|
|
86
86
|
var toByte = kotlin_kotlin.$_$.b7;
|
|
87
87
|
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.c2;
|
|
88
|
-
var UInt = kotlin_kotlin.$_$.
|
|
88
|
+
var UInt = kotlin_kotlin.$_$.u9;
|
|
89
89
|
var UInt__hashCode_impl_z2mhuw = kotlin_kotlin.$_$.h2;
|
|
90
90
|
//endregion
|
|
91
91
|
//region block: pre-declaration
|
|
92
92
|
initMetadataForCompanion(Companion);
|
|
93
93
|
function toHSL() {
|
|
94
|
-
return this.
|
|
94
|
+
return this.e1o().f1o();
|
|
95
95
|
}
|
|
96
96
|
function toXYZ() {
|
|
97
|
-
return this.
|
|
97
|
+
return this.e1o().l1o();
|
|
98
98
|
}
|
|
99
99
|
function toLAB() {
|
|
100
|
-
return this.
|
|
100
|
+
return this.l1o().m1o();
|
|
101
101
|
}
|
|
102
102
|
function toLCHab() {
|
|
103
|
-
return this.
|
|
103
|
+
return this.m1o().s1o();
|
|
104
104
|
}
|
|
105
105
|
function toHWB() {
|
|
106
|
-
return this.
|
|
106
|
+
return this.e1o().y1o();
|
|
107
107
|
}
|
|
108
108
|
function toOklab() {
|
|
109
|
-
return this.
|
|
109
|
+
return this.l1o().z1o();
|
|
110
110
|
}
|
|
111
111
|
function toOklch() {
|
|
112
|
-
return this.
|
|
112
|
+
return this.z1o().a1p();
|
|
113
113
|
}
|
|
114
114
|
initMetadataForInterface(Color, 'Color');
|
|
115
115
|
initMetadataForClass(ColorComponentInfo, 'ColorComponentInfo');
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
initMetadataForClass(ICtCp, 'ICtCp', VOID, VOID, [Color]);
|
|
129
129
|
initMetadataForObject(PqNonlinearity, 'PqNonlinearity');
|
|
130
130
|
function invoke(l, a, b, alpha) {
|
|
131
|
-
return this.
|
|
131
|
+
return this.g1q(numberToDouble(l), numberToDouble(a), numberToDouble(b), numberToDouble(alpha));
|
|
132
132
|
}
|
|
133
133
|
initMetadataForInterface(LABColorSpace, 'LABColorSpace', VOID, VOID, [WhitePointColorSpace]);
|
|
134
134
|
initMetadataForCompanion(Companion_2, VOID, [LABColorSpace]);
|
|
@@ -147,14 +147,14 @@
|
|
|
147
147
|
initMetadataForClass(GammaTransferFunctions, 'GammaTransferFunctions');
|
|
148
148
|
initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
|
|
149
149
|
function invoke_0(r, g, b, alpha) {
|
|
150
|
-
return this.
|
|
150
|
+
return this.g1q(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
151
151
|
}
|
|
152
152
|
function from255(r, g, b, alpha) {
|
|
153
|
-
return this.
|
|
153
|
+
return this.g1q(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
154
154
|
}
|
|
155
155
|
function from255$default(r, g, b, alpha, $super) {
|
|
156
156
|
alpha = alpha === VOID ? 255 : alpha;
|
|
157
|
-
return $super === VOID ? this.
|
|
157
|
+
return $super === VOID ? this.k1s(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
158
158
|
}
|
|
159
159
|
function invoke_1(hex) {
|
|
160
160
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
} else {
|
|
170
170
|
tmp_2 = 255;
|
|
171
171
|
}
|
|
172
|
-
return this.
|
|
172
|
+
return this.k1s(tmp, tmp_0, tmp_1, tmp_2);
|
|
173
173
|
}
|
|
174
174
|
initMetadataForInterface(RGBColorSpace, 'RGBColorSpace', VOID, VOID, [WhitePointColorSpace]);
|
|
175
175
|
initMetadataForCompanion(Companion_6, VOID, [RGBColorSpace]);
|
|
@@ -186,11 +186,11 @@
|
|
|
186
186
|
initMetadataForCompanion(Companion_7);
|
|
187
187
|
initMetadataForClass(RGBInt, 'RGBInt', VOID, VOID, [Color]);
|
|
188
188
|
function invoke_2(x, y, z, alpha) {
|
|
189
|
-
return this.
|
|
189
|
+
return this.g1q(numberToDouble(x), numberToDouble(y), numberToDouble(z), numberToDouble(alpha));
|
|
190
190
|
}
|
|
191
191
|
function invoke$default(x, y, z, alpha, $super) {
|
|
192
192
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
193
|
-
return $super === VOID ? this.
|
|
193
|
+
return $super === VOID ? this.f1t(x, y, z, alpha) : invoke_2(x, y, z, alpha);
|
|
194
194
|
}
|
|
195
195
|
initMetadataForInterface(XYZColorSpace, 'XYZColorSpace', VOID, VOID, [WhitePointColorSpace]);
|
|
196
196
|
initMetadataForCompanion(Companion_8, VOID, [XYZColorSpace]);
|
|
@@ -208,15 +208,15 @@
|
|
|
208
208
|
function Color() {
|
|
209
209
|
}
|
|
210
210
|
function convertTo(_this__u8e3s4, space) {
|
|
211
|
-
return space.
|
|
211
|
+
return space.f1p(_this__u8e3s4);
|
|
212
212
|
}
|
|
213
213
|
function ColorComponentInfo(name, isPolar, min, max) {
|
|
214
|
-
this.
|
|
215
|
-
this.
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
214
|
+
this.g1p_1 = name;
|
|
215
|
+
this.h1p_1 = isPolar;
|
|
216
|
+
this.i1p_1 = min;
|
|
217
|
+
this.j1p_1 = max;
|
|
218
218
|
// Inline function 'kotlin.require' call
|
|
219
|
-
if (!(this.
|
|
219
|
+
if (!(this.i1p_1 <= this.j1p_1)) {
|
|
220
220
|
// Inline function 'com.github.ajalt.colormath.ColorComponentInfo.<anonymous>' call
|
|
221
221
|
var message = 'min must be less than or equal to max';
|
|
222
222
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
}
|
|
238
238
|
function parseOrNull(_this__u8e3s4, color_0, customColorSpaces) {
|
|
239
239
|
customColorSpaces = customColorSpaces === VOID ? emptyMap() : customColorSpaces;
|
|
240
|
-
var keywordColor = CssColors_getInstance().
|
|
240
|
+
var keywordColor = CssColors_getInstance().n1p_1.n2(color_0);
|
|
241
241
|
var tmp;
|
|
242
242
|
if (!(keywordColor == null)) {
|
|
243
243
|
tmp = keywordColor;
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
try {
|
|
248
248
|
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
249
249
|
// Inline function 'kotlin.Companion.success' call
|
|
250
|
-
var value = Companion_getInstance_6().
|
|
250
|
+
var value = Companion_getInstance_6().f1q(color_0);
|
|
251
251
|
tmp_0 = _Result___init__impl__xyqfz8(value);
|
|
252
252
|
} catch ($p) {
|
|
253
253
|
var tmp_1;
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
}
|
|
272
272
|
tmp = tmp_2;
|
|
273
273
|
} else {
|
|
274
|
-
var tmp0_safe_receiver = PATTERNS_getInstance().
|
|
274
|
+
var tmp0_safe_receiver = PATTERNS_getInstance().u1p_1.bd(color_0);
|
|
275
275
|
var tmp_4;
|
|
276
276
|
if (tmp0_safe_receiver == null) {
|
|
277
277
|
tmp_4 = null;
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
var tmp1_elvis_lhs = tmp_4;
|
|
284
284
|
var tmp_5;
|
|
285
285
|
if (tmp1_elvis_lhs == null) {
|
|
286
|
-
var tmp2_safe_receiver = PATTERNS_getInstance().
|
|
286
|
+
var tmp2_safe_receiver = PATTERNS_getInstance().v1p_1.bd(color_0);
|
|
287
287
|
var tmp_6;
|
|
288
288
|
if (tmp2_safe_receiver == null) {
|
|
289
289
|
tmp_6 = null;
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
var tmp3_elvis_lhs = tmp_5;
|
|
300
300
|
var tmp_7;
|
|
301
301
|
if (tmp3_elvis_lhs == null) {
|
|
302
|
-
var tmp4_safe_receiver = PATTERNS_getInstance().
|
|
302
|
+
var tmp4_safe_receiver = PATTERNS_getInstance().w1p_1.bd(color_0);
|
|
303
303
|
var tmp_8;
|
|
304
304
|
if (tmp4_safe_receiver == null) {
|
|
305
305
|
tmp_8 = null;
|
|
@@ -315,7 +315,7 @@
|
|
|
315
315
|
var tmp5_elvis_lhs = tmp_7;
|
|
316
316
|
var tmp_9;
|
|
317
317
|
if (tmp5_elvis_lhs == null) {
|
|
318
|
-
var tmp6_safe_receiver = PATTERNS_getInstance().
|
|
318
|
+
var tmp6_safe_receiver = PATTERNS_getInstance().x1p_1.bd(color_0);
|
|
319
319
|
var tmp_10;
|
|
320
320
|
if (tmp6_safe_receiver == null) {
|
|
321
321
|
tmp_10 = null;
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
var tmp7_elvis_lhs = tmp_9;
|
|
332
332
|
var tmp_11;
|
|
333
333
|
if (tmp7_elvis_lhs == null) {
|
|
334
|
-
var tmp8_safe_receiver = PATTERNS_getInstance().
|
|
334
|
+
var tmp8_safe_receiver = PATTERNS_getInstance().y1p_1.bd(color_0);
|
|
335
335
|
var tmp_12;
|
|
336
336
|
if (tmp8_safe_receiver == null) {
|
|
337
337
|
tmp_12 = null;
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
var tmp9_elvis_lhs = tmp_11;
|
|
348
348
|
var tmp_13;
|
|
349
349
|
if (tmp9_elvis_lhs == null) {
|
|
350
|
-
var tmp10_safe_receiver = PATTERNS_getInstance().
|
|
350
|
+
var tmp10_safe_receiver = PATTERNS_getInstance().z1p_1.bd(color_0);
|
|
351
351
|
var tmp_14;
|
|
352
352
|
if (tmp10_safe_receiver == null) {
|
|
353
353
|
tmp_14 = null;
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
var tmp11_elvis_lhs = tmp_13;
|
|
364
364
|
var tmp_15;
|
|
365
365
|
if (tmp11_elvis_lhs == null) {
|
|
366
|
-
var tmp12_safe_receiver = PATTERNS_getInstance().
|
|
366
|
+
var tmp12_safe_receiver = PATTERNS_getInstance().a1q_1.bd(color_0);
|
|
367
367
|
var tmp_16;
|
|
368
368
|
if (tmp12_safe_receiver == null) {
|
|
369
369
|
tmp_16 = null;
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
var tmp13_elvis_lhs = tmp_15;
|
|
380
380
|
var tmp_17;
|
|
381
381
|
if (tmp13_elvis_lhs == null) {
|
|
382
|
-
var tmp14_safe_receiver = PATTERNS_getInstance().
|
|
382
|
+
var tmp14_safe_receiver = PATTERNS_getInstance().b1q_1.bd(color_0);
|
|
383
383
|
var tmp_18;
|
|
384
384
|
if (tmp14_safe_receiver == null) {
|
|
385
385
|
tmp_18 = null;
|
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
var tmp15_elvis_lhs = tmp_17;
|
|
396
396
|
var tmp_19;
|
|
397
397
|
if (tmp15_elvis_lhs == null) {
|
|
398
|
-
var tmp16_safe_receiver = PATTERNS_getInstance().
|
|
398
|
+
var tmp16_safe_receiver = PATTERNS_getInstance().c1q_1.bd(color_0);
|
|
399
399
|
var tmp_20;
|
|
400
400
|
if (tmp16_safe_receiver == null) {
|
|
401
401
|
tmp_20 = null;
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
var tmp17_elvis_lhs = tmp_19;
|
|
412
412
|
var tmp_21;
|
|
413
413
|
if (tmp17_elvis_lhs == null) {
|
|
414
|
-
var tmp18_safe_receiver = PATTERNS_getInstance().
|
|
414
|
+
var tmp18_safe_receiver = PATTERNS_getInstance().d1q_1.bd(color_0);
|
|
415
415
|
var tmp_22;
|
|
416
416
|
if (tmp18_safe_receiver == null) {
|
|
417
417
|
tmp_22 = null;
|
|
@@ -430,22 +430,22 @@
|
|
|
430
430
|
}
|
|
431
431
|
function PATTERNS() {
|
|
432
432
|
PATTERNS_instance = this;
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
439
|
-
this.
|
|
440
|
-
this.
|
|
441
|
-
this.
|
|
442
|
-
this.
|
|
443
|
-
this.
|
|
444
|
-
this.
|
|
445
|
-
this.
|
|
446
|
-
this.
|
|
447
|
-
this.
|
|
448
|
-
this.
|
|
433
|
+
this.o1p_1 = '[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?';
|
|
434
|
+
this.p1p_1 = '(?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?)';
|
|
435
|
+
this.q1p_1 = '[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?';
|
|
436
|
+
this.r1p_1 = '\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*';
|
|
437
|
+
this.s1p_1 = '\\s*(?:,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*';
|
|
438
|
+
this.t1p_1 = '(?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?)';
|
|
439
|
+
this.u1p_1 = Regex_init_$Create$('rgba?\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
440
|
+
this.v1p_1 = Regex_init_$Create$('rgba?\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*,\\s*((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*,\\s*((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*(?:,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
441
|
+
this.w1p_1 = Regex_init_$Create$('hsla?\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
442
|
+
this.x1p_1 = Regex_init_$Create$('hsla?\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?))\\s*,\\s*((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*,\\s*((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*(?:,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
443
|
+
this.y1p_1 = Regex_init_$Create$('lab\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
444
|
+
this.z1p_1 = Regex_init_$Create$('lch\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?))\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
445
|
+
this.a1q_1 = Regex_init_$Create$('hwb\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
446
|
+
this.b1q_1 = Regex_init_$Create$('oklab\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
447
|
+
this.c1q_1 = Regex_init_$Create$('oklch\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?))\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
448
|
+
this.d1q_1 = Regex_init_$Create$('color\\(([\\w\\-]+)\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?)(?:\\s+(?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))*)\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
449
449
|
}
|
|
450
450
|
var PATTERNS_instance;
|
|
451
451
|
function PATTERNS_getInstance() {
|
|
@@ -454,91 +454,91 @@
|
|
|
454
454
|
return PATTERNS_instance;
|
|
455
455
|
}
|
|
456
456
|
function rgb(match) {
|
|
457
|
-
var r = percentOrNumber(match.
|
|
458
|
-
var g = percentOrNumber(match.
|
|
459
|
-
var b = percentOrNumber(match.
|
|
460
|
-
var a = alpha(match.
|
|
457
|
+
var r = percentOrNumber(match.xd().o(1), Companion_getInstance_6().l1p().o(0).j1p_1);
|
|
458
|
+
var g = percentOrNumber(match.xd().o(2), Companion_getInstance_6().l1p().o(1).j1p_1);
|
|
459
|
+
var b = percentOrNumber(match.xd().o(3), Companion_getInstance_6().l1p().o(2).j1p_1);
|
|
460
|
+
var a = alpha(match.xd().o(4));
|
|
461
461
|
var tmp;
|
|
462
|
-
if (endsWith(match.
|
|
463
|
-
tmp = Companion_getInstance_6().
|
|
462
|
+
if (endsWith(match.xd().o(1), '%')) {
|
|
463
|
+
tmp = Companion_getInstance_6().g1q(r, g, b, a);
|
|
464
464
|
} else {
|
|
465
|
-
tmp = Companion_getInstance_6().
|
|
465
|
+
tmp = Companion_getInstance_6().g1q(r / 255.0, g / 255.0, b / 255.0, a);
|
|
466
466
|
}
|
|
467
467
|
return tmp;
|
|
468
468
|
}
|
|
469
469
|
function hsl(match) {
|
|
470
|
-
var h = hue(match.
|
|
471
|
-
var s = percentOrNumber(match.
|
|
472
|
-
var l = percentOrNumber(match.
|
|
473
|
-
var a = alpha(match.
|
|
470
|
+
var h = hue(match.xd().o(1));
|
|
471
|
+
var s = percentOrNumber(match.xd().o(2), Companion_getInstance_0().h1q_1.o(1).j1p_1);
|
|
472
|
+
var l = percentOrNumber(match.xd().o(3), Companion_getInstance_0().h1q_1.o(2).j1p_1);
|
|
473
|
+
var a = alpha(match.xd().o(4));
|
|
474
474
|
return new HSL(h, s, l, a);
|
|
475
475
|
}
|
|
476
476
|
function lab(match) {
|
|
477
|
-
var l = percentOrNumber(match.
|
|
478
|
-
var a = percentOrNumber(match.
|
|
479
|
-
var b = percentOrNumber(match.
|
|
480
|
-
var alpha_0 = alpha(match.
|
|
481
|
-
return LABColorSpaces_getInstance().
|
|
477
|
+
var l = percentOrNumber(match.xd().o(1), Companion_getInstance_2().l1p().o(0).j1p_1);
|
|
478
|
+
var a = percentOrNumber(match.xd().o(2), Companion_getInstance_2().l1p().o(1).j1p_1);
|
|
479
|
+
var b = percentOrNumber(match.xd().o(3), Companion_getInstance_2().l1p().o(2).j1p_1);
|
|
480
|
+
var alpha_0 = alpha(match.xd().o(4));
|
|
481
|
+
return LABColorSpaces_getInstance().k1q_1.g1q(l, a, b, alpha_0);
|
|
482
482
|
}
|
|
483
483
|
function lch(match) {
|
|
484
|
-
var l = percentOrNumber(match.
|
|
485
|
-
var c = percentOrNumber(match.
|
|
486
|
-
var h = hue(match.
|
|
487
|
-
var a = alpha(match.
|
|
488
|
-
return LCHabColorSpaces_getInstance().
|
|
484
|
+
var l = percentOrNumber(match.xd().o(1), Companion_getInstance_3().l1p().o(0).j1p_1);
|
|
485
|
+
var c = percentOrNumber(match.xd().o(2), Companion_getInstance_3().l1p().o(1).j1p_1);
|
|
486
|
+
var h = hue(match.xd().o(3));
|
|
487
|
+
var a = alpha(match.xd().o(4));
|
|
488
|
+
return LCHabColorSpaces_getInstance().n1q_1.g1q(l, c, h, a);
|
|
489
489
|
}
|
|
490
490
|
function hwb(match) {
|
|
491
|
-
var h = hue(match.
|
|
492
|
-
var w = percentOrNumber(match.
|
|
493
|
-
var b = percentOrNumber(match.
|
|
494
|
-
var a = alpha(match.
|
|
491
|
+
var h = hue(match.xd().o(1));
|
|
492
|
+
var w = percentOrNumber(match.xd().o(2), Companion_getInstance_1().o1q_1.o(1).j1p_1);
|
|
493
|
+
var b = percentOrNumber(match.xd().o(3), Companion_getInstance_1().o1q_1.o(2).j1p_1);
|
|
494
|
+
var a = alpha(match.xd().o(4));
|
|
495
495
|
return new HWB(h, w, b, a);
|
|
496
496
|
}
|
|
497
497
|
function oklab(match) {
|
|
498
|
-
var l = percentOrNumber(match.
|
|
499
|
-
var a = percentOrNumber(match.
|
|
500
|
-
var b = percentOrNumber(match.
|
|
501
|
-
var alpha_0 = alpha(match.
|
|
498
|
+
var l = percentOrNumber(match.xd().o(1), Companion_getInstance_4().p1q_1.o(0).j1p_1);
|
|
499
|
+
var a = percentOrNumber(match.xd().o(2), Companion_getInstance_4().p1q_1.o(1).j1p_1);
|
|
500
|
+
var b = percentOrNumber(match.xd().o(3), Companion_getInstance_4().p1q_1.o(2).j1p_1);
|
|
501
|
+
var alpha_0 = alpha(match.xd().o(4));
|
|
502
502
|
return new Oklab(l, a, b, alpha_0);
|
|
503
503
|
}
|
|
504
504
|
function oklch(match) {
|
|
505
|
-
var l = percentOrNumber(match.
|
|
506
|
-
var c = percentOrNumber(match.
|
|
507
|
-
var h = hue(match.
|
|
508
|
-
var a = alpha(match.
|
|
505
|
+
var l = percentOrNumber(match.xd().o(1), Companion_getInstance_5().q1q_1.o(0).j1p_1);
|
|
506
|
+
var c = percentOrNumber(match.xd().o(2), Companion_getInstance_5().q1q_1.o(1).j1p_1);
|
|
507
|
+
var h = hue(match.xd().o(3));
|
|
508
|
+
var a = alpha(match.xd().o(4));
|
|
509
509
|
return new Oklch(l, c, h, a);
|
|
510
510
|
}
|
|
511
511
|
function color(match, customColorSpaces) {
|
|
512
|
-
var name = match.
|
|
512
|
+
var name = match.xd().o(1);
|
|
513
513
|
var tmp;
|
|
514
514
|
switch (name) {
|
|
515
515
|
case 'srgb':
|
|
516
516
|
tmp = SRGB_getInstance();
|
|
517
517
|
break;
|
|
518
518
|
case 'srgb-linear':
|
|
519
|
-
tmp = RGBColorSpaces_getInstance().
|
|
519
|
+
tmp = RGBColorSpaces_getInstance().s1q_1;
|
|
520
520
|
break;
|
|
521
521
|
case 'display-p3':
|
|
522
|
-
tmp = RGBColorSpaces_getInstance().
|
|
522
|
+
tmp = RGBColorSpaces_getInstance().b1r_1;
|
|
523
523
|
break;
|
|
524
524
|
case 'a98-rgb':
|
|
525
|
-
tmp = RGBColorSpaces_getInstance().
|
|
525
|
+
tmp = RGBColorSpaces_getInstance().x1q_1;
|
|
526
526
|
break;
|
|
527
527
|
case 'prophoto-rgb':
|
|
528
|
-
tmp = RGBColorSpaces_getInstance().
|
|
528
|
+
tmp = RGBColorSpaces_getInstance().c1r_1;
|
|
529
529
|
break;
|
|
530
530
|
case 'rec2020':
|
|
531
|
-
tmp = RGBColorSpaces_getInstance().
|
|
531
|
+
tmp = RGBColorSpaces_getInstance().y1q_1;
|
|
532
532
|
break;
|
|
533
533
|
case 'xyz':
|
|
534
534
|
case 'xyz-d50':
|
|
535
|
-
tmp = XYZColorSpaces_getInstance().
|
|
535
|
+
tmp = XYZColorSpaces_getInstance().e1r_1;
|
|
536
536
|
break;
|
|
537
537
|
case 'xyz-d65':
|
|
538
|
-
tmp = XYZColorSpaces_getInstance().
|
|
538
|
+
tmp = XYZColorSpaces_getInstance().d1r_1;
|
|
539
539
|
break;
|
|
540
540
|
default:
|
|
541
|
-
var tmp0 = customColorSpaces.
|
|
541
|
+
var tmp0 = customColorSpaces.q2();
|
|
542
542
|
var tmp$ret$1;
|
|
543
543
|
$l$block: {
|
|
544
544
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
while (_iterator__ex2g4s.k()) {
|
|
547
547
|
var element = _iterator__ex2g4s.l();
|
|
548
548
|
// Inline function 'com.github.ajalt.colormath.color.<anonymous>' call
|
|
549
|
-
if (element.
|
|
549
|
+
if (element.j2() === name) {
|
|
550
550
|
tmp$ret$1 = element;
|
|
551
551
|
break $l$block;
|
|
552
552
|
}
|
|
@@ -555,7 +555,7 @@
|
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
558
|
-
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
558
|
+
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k2();
|
|
559
559
|
break;
|
|
560
560
|
}
|
|
561
561
|
var tmp1_elvis_lhs = tmp;
|
|
@@ -566,10 +566,10 @@
|
|
|
566
566
|
tmp_0 = tmp1_elvis_lhs;
|
|
567
567
|
}
|
|
568
568
|
var space = tmp_0;
|
|
569
|
-
var tmp2 = match.
|
|
569
|
+
var tmp2 = match.xd().o(2);
|
|
570
570
|
// Inline function 'kotlin.text.split' call
|
|
571
571
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
572
|
-
var this_0 = Regex_init_$Create$('\\s+').
|
|
572
|
+
var this_0 = Regex_init_$Create$('\\s+').fd(tmp2, 0);
|
|
573
573
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
574
574
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
575
575
|
var index = 0;
|
|
@@ -580,12 +580,12 @@
|
|
|
580
580
|
index = _unary__edvuaz + 1 | 0;
|
|
581
581
|
// Inline function 'com.github.ajalt.colormath.color.<anonymous>' call
|
|
582
582
|
var i = checkIndexOverflow(_unary__edvuaz);
|
|
583
|
-
var tmp$ret$3 = percentOrNumber(item, space.
|
|
583
|
+
var tmp$ret$3 = percentOrNumber(item, space.l1p().o(i).j1p_1);
|
|
584
584
|
destination.e(tmp$ret$3);
|
|
585
585
|
}
|
|
586
586
|
var values = destination;
|
|
587
587
|
var tmp_1 = 0;
|
|
588
|
-
var tmp_2 = space.
|
|
588
|
+
var tmp_2 = space.l1p().m();
|
|
589
589
|
var tmp_3 = new Float32Array(tmp_2);
|
|
590
590
|
while (tmp_1 < tmp_2) {
|
|
591
591
|
var tmp_4 = tmp_1;
|
|
@@ -601,8 +601,8 @@
|
|
|
601
601
|
tmp_1 = tmp_1 + 1 | 0;
|
|
602
602
|
}
|
|
603
603
|
var components = tmp_3;
|
|
604
|
-
components[get_lastIndex(components)] = alpha(match.
|
|
605
|
-
return space.
|
|
604
|
+
components[get_lastIndex(components)] = alpha(match.xd().o(3));
|
|
605
|
+
return space.m1p(components);
|
|
606
606
|
}
|
|
607
607
|
function percentOrNumber(str, max) {
|
|
608
608
|
var tmp;
|
|
@@ -726,7 +726,7 @@
|
|
|
726
726
|
legacyName = legacyName === VOID ? false : legacyName;
|
|
727
727
|
legacyFormat = legacyFormat === VOID ? false : legacyFormat;
|
|
728
728
|
customColorSpaces = customColorSpaces === VOID ? emptyMap() : customColorSpaces;
|
|
729
|
-
var tmp0 = customColorSpaces.
|
|
729
|
+
var tmp0 = customColorSpaces.q2();
|
|
730
730
|
var tmp$ret$1;
|
|
731
731
|
$l$block: {
|
|
732
732
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
while (_iterator__ex2g4s.k()) {
|
|
735
735
|
var element = _iterator__ex2g4s.l();
|
|
736
736
|
// Inline function 'com.github.ajalt.colormath.formatCssStringOrNull.<anonymous>' call
|
|
737
|
-
if (equals(element.
|
|
737
|
+
if (equals(element.k2(), _this__u8e3s4.d1o())) {
|
|
738
738
|
tmp$ret$1 = element;
|
|
739
739
|
break $l$block;
|
|
740
740
|
}
|
|
@@ -742,7 +742,7 @@
|
|
|
742
742
|
tmp$ret$1 = null;
|
|
743
743
|
}
|
|
744
744
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
745
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
745
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j2();
|
|
746
746
|
var tmp;
|
|
747
747
|
if (tmp1_safe_receiver == null) {
|
|
748
748
|
tmp = null;
|
|
@@ -756,17 +756,17 @@
|
|
|
756
756
|
if (tmp2_elvis_lhs == null) {
|
|
757
757
|
var tmp_1;
|
|
758
758
|
if (_this__u8e3s4 instanceof RGB) {
|
|
759
|
-
var tmp4_subject = _this__u8e3s4.
|
|
760
|
-
tmp_1 = equals(tmp4_subject, SRGB_getInstance()) ? renderSRGB(_this__u8e3s4, legacyFormat, legacyName, unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().
|
|
759
|
+
var tmp4_subject = _this__u8e3s4.k1o_1;
|
|
760
|
+
tmp_1 = equals(tmp4_subject, SRGB_getInstance()) ? renderSRGB(_this__u8e3s4, legacyFormat, legacyName, unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().b1r_1) ? renderFn(_this__u8e3s4, 'display-p3', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().x1q_1) ? renderFn(_this__u8e3s4, 'a98-rgb', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().c1r_1) ? renderFn(_this__u8e3s4, 'prophoto-rgb', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().y1q_1) ? renderFn(_this__u8e3s4, 'rec2020', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().s1q_1) ? renderFn(_this__u8e3s4, 'srgb-linear', unitsPercent, alphaPercent, renderAlpha) : null;
|
|
761
761
|
} else {
|
|
762
762
|
if (_this__u8e3s4 instanceof HSL) {
|
|
763
763
|
tmp_1 = renderHsl(_this__u8e3s4, legacyFormat, legacyName, hueUnit, alphaPercent, renderAlpha);
|
|
764
764
|
} else {
|
|
765
765
|
if (_this__u8e3s4 instanceof LAB) {
|
|
766
|
-
tmp_1 = renderLab(convertTo(_this__u8e3s4, LABColorSpaces_getInstance().
|
|
766
|
+
tmp_1 = renderLab(convertTo(_this__u8e3s4, LABColorSpaces_getInstance().k1q_1), alphaPercent, renderAlpha);
|
|
767
767
|
} else {
|
|
768
768
|
if (_this__u8e3s4 instanceof LCHab) {
|
|
769
|
-
tmp_1 = renderLCH(convertTo(_this__u8e3s4, LCHabColorSpaces_getInstance().
|
|
769
|
+
tmp_1 = renderLCH(convertTo(_this__u8e3s4, LCHabColorSpaces_getInstance().n1q_1), hueUnit, alphaPercent, renderAlpha);
|
|
770
770
|
} else {
|
|
771
771
|
if (_this__u8e3s4 instanceof HWB) {
|
|
772
772
|
tmp_1 = renderHWB(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha);
|
|
@@ -778,7 +778,7 @@
|
|
|
778
778
|
tmp_1 = renderOklch(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha);
|
|
779
779
|
} else {
|
|
780
780
|
if (_this__u8e3s4 instanceof XYZ) {
|
|
781
|
-
tmp_1 = _this__u8e3s4.
|
|
781
|
+
tmp_1 = _this__u8e3s4.r1o_1.k1p().equals(Illuminant_getInstance().l1r_1) ? renderFn(_this__u8e3s4, 'xyz-d65', unitsPercent, alphaPercent, renderAlpha) : renderFn(_this__u8e3s4.f1r(XYZColorSpaces_getInstance().e1r_1), 'xyz', unitsPercent, alphaPercent, renderAlpha);
|
|
782
782
|
} else {
|
|
783
783
|
tmp_1 = null;
|
|
784
784
|
}
|
|
@@ -800,40 +800,40 @@
|
|
|
800
800
|
// Inline function 'kotlin.apply' call
|
|
801
801
|
var this_0 = StringBuilder_init_$Create$();
|
|
802
802
|
// Inline function 'com.github.ajalt.colormath.renderFn.<anonymous>' call
|
|
803
|
-
this_0.
|
|
804
|
-
var tmp = dropLast_0(_this__u8e3s4.
|
|
803
|
+
this_0.q8('color(').q8(name).q8(' ');
|
|
804
|
+
var tmp = dropLast_0(_this__u8e3s4.x5(), 1);
|
|
805
805
|
joinTo(tmp, this_0, ' ', VOID, VOID, VOID, VOID, renderFn$lambda(unitsPercent));
|
|
806
|
-
this_0.
|
|
807
|
-
this_0.
|
|
806
|
+
this_0.q8(renderAlpha(_this__u8e3s4, false, renderAlpha_0, alphaPercent));
|
|
807
|
+
this_0.q8(')');
|
|
808
808
|
return this_0.toString();
|
|
809
809
|
}
|
|
810
810
|
function get_dashName(_this__u8e3s4) {
|
|
811
|
-
var tmp0 = _this__u8e3s4.
|
|
811
|
+
var tmp0 = _this__u8e3s4.d1o().t2();
|
|
812
812
|
// Inline function 'kotlin.text.replace' call
|
|
813
813
|
// Inline function 'kotlin.text.lowercase' call
|
|
814
814
|
// Inline function 'kotlin.js.asDynamic' call
|
|
815
|
-
return '--' + Regex_init_$Create$('\\W').
|
|
815
|
+
return '--' + Regex_init_$Create$('\\W').cd(tmp0, '-').toLowerCase();
|
|
816
816
|
}
|
|
817
817
|
function renderSRGB(_this__u8e3s4, commas, namedRgba, rgbPercent, alphaPercent, renderAlpha) {
|
|
818
|
-
return renderColorFn(_this__u8e3s4, namedRgba ? 'rgba' : 'rgb', [rgbPercent ? render(_this__u8e3s4.
|
|
818
|
+
return renderColorFn(_this__u8e3s4, namedRgba ? 'rgba' : 'rgb', [rgbPercent ? render(_this__u8e3s4.g1o_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_r__impl__dulq0e(_this__u8e3s4.o1r())), rgbPercent ? render(_this__u8e3s4.h1o_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_g__impl__o93c71(_this__u8e3s4.o1r())), rgbPercent ? render(_this__u8e3s4.i1o_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_b__impl__m772ua(_this__u8e3s4.o1r()))], alphaPercent, renderAlpha, commas);
|
|
819
819
|
}
|
|
820
820
|
function renderHsl(_this__u8e3s4, commas, namedHsla, hueUnit, alphaPercent, renderAlpha) {
|
|
821
|
-
return renderColorFn(_this__u8e3s4, namedHsla ? 'hsla' : 'hsl', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.
|
|
821
|
+
return renderColorFn(_this__u8e3s4, namedHsla ? 'hsla' : 'hsl', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.q1r_1, true), render(_this__u8e3s4.r1r_1, true)], alphaPercent, renderAlpha, commas);
|
|
822
822
|
}
|
|
823
823
|
function renderLab(_this__u8e3s4, alphaPercent, renderAlpha) {
|
|
824
|
-
return renderColorFn(_this__u8e3s4, 'lab', [render(_this__u8e3s4.
|
|
824
|
+
return renderColorFn(_this__u8e3s4, 'lab', [render(_this__u8e3s4.t1o_1 / 100, true), render(_this__u8e3s4.u1o_1), render(_this__u8e3s4.v1o_1)], alphaPercent, renderAlpha);
|
|
825
825
|
}
|
|
826
826
|
function renderLCH(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
|
|
827
|
-
return renderColorFn(_this__u8e3s4, 'lch', [render(_this__u8e3s4.
|
|
827
|
+
return renderColorFn(_this__u8e3s4, 'lch', [render(_this__u8e3s4.t1r_1 / 100, true), render(_this__u8e3s4.u1r_1), renderHue(_this__u8e3s4, hueUnit)], alphaPercent, renderAlpha);
|
|
828
828
|
}
|
|
829
829
|
function renderHWB(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
|
|
830
|
-
return renderColorFn(_this__u8e3s4, 'hwb', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.
|
|
830
|
+
return renderColorFn(_this__u8e3s4, 'hwb', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.z1r_1, true), render(_this__u8e3s4.a1s_1, true)], alphaPercent, renderAlpha);
|
|
831
831
|
}
|
|
832
832
|
function renderOklab(_this__u8e3s4, alphaPercent, renderAlpha) {
|
|
833
|
-
return renderColorFn(_this__u8e3s4, 'oklab', [render(_this__u8e3s4.
|
|
833
|
+
return renderColorFn(_this__u8e3s4, 'oklab', [render(_this__u8e3s4.b1p_1, true), render(_this__u8e3s4.c1p_1), render(_this__u8e3s4.d1p_1)], alphaPercent, renderAlpha);
|
|
834
834
|
}
|
|
835
835
|
function renderOklch(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
|
|
836
|
-
return renderColorFn(_this__u8e3s4, 'oklch', [render(_this__u8e3s4.
|
|
836
|
+
return renderColorFn(_this__u8e3s4, 'oklch', [render(_this__u8e3s4.c1s_1, true), render(_this__u8e3s4.d1s_1), renderHue(_this__u8e3s4, hueUnit)], alphaPercent, renderAlpha);
|
|
837
837
|
}
|
|
838
838
|
function render(_this__u8e3s4, percent, precision) {
|
|
839
839
|
percent = percent === VOID ? false : percent;
|
|
@@ -860,8 +860,8 @@
|
|
|
860
860
|
}
|
|
861
861
|
function renderAlpha(_this__u8e3s4, commas, renderAlpha, alphaPercent) {
|
|
862
862
|
var tmp;
|
|
863
|
-
if (renderAlpha.equals(RenderCondition_ALWAYS_getInstance()) || (renderAlpha.equals(RenderCondition_AUTO_getInstance()) && !isNaN_0(_this__u8e3s4.
|
|
864
|
-
tmp = (commas ? ', ' : ' / ') + render(nanToOne(_this__u8e3s4.
|
|
863
|
+
if (renderAlpha.equals(RenderCondition_ALWAYS_getInstance()) || (renderAlpha.equals(RenderCondition_AUTO_getInstance()) && !isNaN_0(_this__u8e3s4.c1o()) && !(_this__u8e3s4.c1o() === 1.0))) {
|
|
864
|
+
tmp = (commas ? ', ' : ' / ') + render(nanToOne(_this__u8e3s4.c1o()), alphaPercent);
|
|
865
865
|
} else {
|
|
866
866
|
tmp = '';
|
|
867
867
|
}
|
|
@@ -874,24 +874,24 @@
|
|
|
874
874
|
var this_0 = StringBuilder_init_$Create$();
|
|
875
875
|
// Inline function 'com.github.ajalt.colormath.renderColorFn.<anonymous>' call
|
|
876
876
|
var sep = commas ? ', ' : ' ';
|
|
877
|
-
this_0.
|
|
877
|
+
this_0.q8(name).q8('(');
|
|
878
878
|
joinTo_0(components, this_0, sep);
|
|
879
|
-
this_0.
|
|
880
|
-
this_0.
|
|
879
|
+
this_0.q8(renderAlpha(_this__u8e3s4, commas, renderAlpha_0, alphaPercent));
|
|
880
|
+
this_0.q8(')');
|
|
881
881
|
return this_0.toString();
|
|
882
882
|
}
|
|
883
883
|
function renderHue(_this__u8e3s4, hueUnit) {
|
|
884
884
|
var tmp;
|
|
885
|
-
if (isNaN_0(_this__u8e3s4.
|
|
885
|
+
if (isNaN_0(_this__u8e3s4.g1s())) {
|
|
886
886
|
tmp = 'none';
|
|
887
887
|
} else {
|
|
888
888
|
var tmp_0;
|
|
889
|
-
switch (hueUnit.
|
|
889
|
+
switch (hueUnit.s2_1) {
|
|
890
890
|
case 0:
|
|
891
|
-
tmp_0 = render(_this__u8e3s4.
|
|
891
|
+
tmp_0 = render(_this__u8e3s4.g1s());
|
|
892
892
|
break;
|
|
893
893
|
case 1:
|
|
894
|
-
tmp_0 = render(_this__u8e3s4.
|
|
894
|
+
tmp_0 = render(_this__u8e3s4.g1s()) + 'deg';
|
|
895
895
|
break;
|
|
896
896
|
case 2:
|
|
897
897
|
tmp_0 = render(hueAsRad(_this__u8e3s4)) + 'rad';
|
|
@@ -928,27 +928,27 @@
|
|
|
928
928
|
return AngleUnit_AUTO_instance;
|
|
929
929
|
}
|
|
930
930
|
function hueOr(_this__u8e3s4, whenNaN) {
|
|
931
|
-
return isNaN_0(_this__u8e3s4.
|
|
931
|
+
return isNaN_0(_this__u8e3s4.g1s()) ? numberToDouble(whenNaN) : _this__u8e3s4.g1s();
|
|
932
932
|
}
|
|
933
933
|
function hueAsRad(_this__u8e3s4) {
|
|
934
|
-
return degToRad(_this__u8e3s4.
|
|
934
|
+
return degToRad(_this__u8e3s4.g1s());
|
|
935
935
|
}
|
|
936
936
|
function hueAsGrad(_this__u8e3s4) {
|
|
937
|
-
return degToGrad(_this__u8e3s4.
|
|
937
|
+
return degToGrad(_this__u8e3s4.g1s());
|
|
938
938
|
}
|
|
939
939
|
function hueAsTurns(_this__u8e3s4) {
|
|
940
|
-
return degToTurns(_this__u8e3s4.
|
|
940
|
+
return degToTurns(_this__u8e3s4.g1s());
|
|
941
941
|
}
|
|
942
942
|
function WhitePoint(name, chromaticity) {
|
|
943
|
-
this.
|
|
944
|
-
this.
|
|
943
|
+
this.h1s_1 = name;
|
|
944
|
+
this.i1s_1 = chromaticity;
|
|
945
945
|
}
|
|
946
946
|
protoOf(WhitePoint).toString = function () {
|
|
947
|
-
return this.
|
|
947
|
+
return this.h1s_1;
|
|
948
948
|
};
|
|
949
949
|
protoOf(WhitePoint).hashCode = function () {
|
|
950
|
-
var result = getStringHashCode(this.
|
|
951
|
-
result = imul(result, 31) + this.
|
|
950
|
+
var result = getStringHashCode(this.h1s_1);
|
|
951
|
+
result = imul(result, 31) + this.i1s_1.hashCode() | 0;
|
|
952
952
|
return result;
|
|
953
953
|
};
|
|
954
954
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -957,22 +957,22 @@
|
|
|
957
957
|
if (!(other instanceof WhitePoint))
|
|
958
958
|
return false;
|
|
959
959
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
960
|
-
if (!(this.
|
|
960
|
+
if (!(this.h1s_1 === tmp0_other_with_cast.h1s_1))
|
|
961
961
|
return false;
|
|
962
|
-
if (!this.
|
|
962
|
+
if (!this.i1s_1.equals(tmp0_other_with_cast.i1s_1))
|
|
963
963
|
return false;
|
|
964
964
|
return true;
|
|
965
965
|
};
|
|
966
966
|
function Illuminant() {
|
|
967
967
|
Illuminant_instance = this;
|
|
968
|
-
this.
|
|
969
|
-
this.
|
|
970
|
-
this.
|
|
971
|
-
this.
|
|
972
|
-
this.
|
|
973
|
-
this.
|
|
974
|
-
this.
|
|
975
|
-
this.
|
|
968
|
+
this.g1r_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
969
|
+
this.h1r_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
970
|
+
this.i1r_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
971
|
+
this.j1r_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
972
|
+
this.k1r_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
973
|
+
this.l1r_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
974
|
+
this.m1r_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
975
|
+
this.n1r_1 = new WhitePoint('E', xyY_init_$Create$(1.0 / 3.0, 1.0 / 3.0));
|
|
976
976
|
}
|
|
977
977
|
var Illuminant_instance;
|
|
978
978
|
function Illuminant_getInstance() {
|
|
@@ -1002,7 +1002,7 @@
|
|
|
1002
1002
|
this_0.e(tmp$ret$0);
|
|
1003
1003
|
}
|
|
1004
1004
|
this_0.e(get_alphaInfo());
|
|
1005
|
-
return this_0.
|
|
1005
|
+
return this_0.s3();
|
|
1006
1006
|
}
|
|
1007
1007
|
function threeComponentInfo(n1, l1, r1, n2, l2, r2, n3, l3, r3) {
|
|
1008
1008
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -1025,7 +1025,7 @@
|
|
|
1025
1025
|
this_0.e(tmp$ret$0);
|
|
1026
1026
|
}
|
|
1027
1027
|
this_0.e(get_alphaInfo());
|
|
1028
|
-
return this_0.
|
|
1028
|
+
return this_0.s3();
|
|
1029
1029
|
}
|
|
1030
1030
|
function componentInfoList(c) {
|
|
1031
1031
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -1058,7 +1058,7 @@
|
|
|
1058
1058
|
}
|
|
1059
1059
|
function CssColors() {
|
|
1060
1060
|
CssColors_instance = this;
|
|
1061
|
-
this.
|
|
1061
|
+
this.n1p_1 = mapOf([to('black', Companion_getInstance_6().j1s(0, 0, 0)), to('silver', Companion_getInstance_6().j1s(192, 192, 192)), to('gray', Companion_getInstance_6().j1s(128, 128, 128)), to('white', Companion_getInstance_6().j1s(255, 255, 255)), to('maroon', Companion_getInstance_6().j1s(128, 0, 0)), to('red', Companion_getInstance_6().j1s(255, 0, 0)), to('purple', Companion_getInstance_6().j1s(128, 0, 128)), to('fuchsia', Companion_getInstance_6().j1s(255, 0, 255)), to('green', Companion_getInstance_6().j1s(0, 128, 0)), to('lime', Companion_getInstance_6().j1s(0, 255, 0)), to('olive', Companion_getInstance_6().j1s(128, 128, 0)), to('yellow', Companion_getInstance_6().j1s(255, 255, 0)), to('navy', Companion_getInstance_6().j1s(0, 0, 128)), to('blue', Companion_getInstance_6().j1s(0, 0, 255)), to('teal', Companion_getInstance_6().j1s(0, 128, 128)), to('aqua', Companion_getInstance_6().j1s(0, 255, 255)), to('orange', Companion_getInstance_6().j1s(255, 165, 0)), to('aliceblue', Companion_getInstance_6().j1s(240, 248, 255)), to('antiquewhite', Companion_getInstance_6().j1s(250, 235, 215)), to('aquamarine', Companion_getInstance_6().j1s(127, 255, 212)), to('azure', Companion_getInstance_6().j1s(240, 255, 255)), to('beige', Companion_getInstance_6().j1s(245, 245, 220)), to('bisque', Companion_getInstance_6().j1s(255, 228, 196)), to('blanchedalmond', Companion_getInstance_6().j1s(255, 235, 205)), to('blueviolet', Companion_getInstance_6().j1s(138, 43, 226)), to('brown', Companion_getInstance_6().j1s(165, 42, 42)), to('burlywood', Companion_getInstance_6().j1s(222, 184, 135)), to('cadetblue', Companion_getInstance_6().j1s(95, 158, 160)), to('chartreuse', Companion_getInstance_6().j1s(127, 255, 0)), to('chocolate', Companion_getInstance_6().j1s(210, 105, 30)), to('coral', Companion_getInstance_6().j1s(255, 127, 80)), to('cornflowerblue', Companion_getInstance_6().j1s(100, 149, 237)), to('cornsilk', Companion_getInstance_6().j1s(255, 248, 220)), to('crimson', Companion_getInstance_6().j1s(220, 20, 60)), to('cyan', Companion_getInstance_6().j1s(0, 255, 255)), to('darkblue', Companion_getInstance_6().j1s(0, 0, 139)), to('darkcyan', Companion_getInstance_6().j1s(0, 139, 139)), to('darkgoldenrod', Companion_getInstance_6().j1s(184, 134, 11)), to('darkgray', Companion_getInstance_6().j1s(169, 169, 169)), to('darkgreen', Companion_getInstance_6().j1s(0, 100, 0)), to('darkgrey', Companion_getInstance_6().j1s(169, 169, 169)), to('darkkhaki', Companion_getInstance_6().j1s(189, 183, 107)), to('darkmagenta', Companion_getInstance_6().j1s(139, 0, 139)), to('darkolivegreen', Companion_getInstance_6().j1s(85, 107, 47)), to('darkorange', Companion_getInstance_6().j1s(255, 140, 0)), to('darkorchid', Companion_getInstance_6().j1s(153, 50, 204)), to('darkred', Companion_getInstance_6().j1s(139, 0, 0)), to('darksalmon', Companion_getInstance_6().j1s(233, 150, 122)), to('darkseagreen', Companion_getInstance_6().j1s(143, 188, 143)), to('darkslateblue', Companion_getInstance_6().j1s(72, 61, 139)), to('darkslategray', Companion_getInstance_6().j1s(47, 79, 79)), to('darkslategrey', Companion_getInstance_6().j1s(47, 79, 79)), to('darkturquoise', Companion_getInstance_6().j1s(0, 206, 209)), to('darkviolet', Companion_getInstance_6().j1s(148, 0, 211)), to('deeppink', Companion_getInstance_6().j1s(255, 20, 147)), to('deepskyblue', Companion_getInstance_6().j1s(0, 191, 255)), to('dimgray', Companion_getInstance_6().j1s(105, 105, 105)), to('dimgrey', Companion_getInstance_6().j1s(105, 105, 105)), to('dodgerblue', Companion_getInstance_6().j1s(30, 144, 255)), to('firebrick', Companion_getInstance_6().j1s(178, 34, 34)), to('floralwhite', Companion_getInstance_6().j1s(255, 250, 240)), to('forestgreen', Companion_getInstance_6().j1s(34, 139, 34)), to('gainsboro', Companion_getInstance_6().j1s(220, 220, 220)), to('ghostwhite', Companion_getInstance_6().j1s(248, 248, 255)), to('gold', Companion_getInstance_6().j1s(255, 215, 0)), to('goldenrod', Companion_getInstance_6().j1s(218, 165, 32)), to('greenyellow', Companion_getInstance_6().j1s(173, 255, 47)), to('grey', Companion_getInstance_6().j1s(128, 128, 128)), to('honeydew', Companion_getInstance_6().j1s(240, 255, 240)), to('hotpink', Companion_getInstance_6().j1s(255, 105, 180)), to('indianred', Companion_getInstance_6().j1s(205, 92, 92)), to('indigo', Companion_getInstance_6().j1s(75, 0, 130)), to('ivory', Companion_getInstance_6().j1s(255, 255, 240)), to('khaki', Companion_getInstance_6().j1s(240, 230, 140)), to('lavender', Companion_getInstance_6().j1s(230, 230, 250)), to('lavenderblush', Companion_getInstance_6().j1s(255, 240, 245)), to('lawngreen', Companion_getInstance_6().j1s(124, 252, 0)), to('lemonchiffon', Companion_getInstance_6().j1s(255, 250, 205)), to('lightblue', Companion_getInstance_6().j1s(173, 216, 230)), to('lightcoral', Companion_getInstance_6().j1s(240, 128, 128)), to('lightcyan', Companion_getInstance_6().j1s(224, 255, 255)), to('lightgoldenrodyellow', Companion_getInstance_6().j1s(250, 250, 210)), to('lightgray', Companion_getInstance_6().j1s(211, 211, 211)), to('lightgreen', Companion_getInstance_6().j1s(144, 238, 144)), to('lightgrey', Companion_getInstance_6().j1s(211, 211, 211)), to('lightpink', Companion_getInstance_6().j1s(255, 182, 193)), to('lightsalmon', Companion_getInstance_6().j1s(255, 160, 122)), to('lightseagreen', Companion_getInstance_6().j1s(32, 178, 170)), to('lightskyblue', Companion_getInstance_6().j1s(135, 206, 250)), to('lightslategray', Companion_getInstance_6().j1s(119, 136, 153)), to('lightslategrey', Companion_getInstance_6().j1s(119, 136, 153)), to('lightsteelblue', Companion_getInstance_6().j1s(176, 196, 222)), to('lightyellow', Companion_getInstance_6().j1s(255, 255, 224)), to('limegreen', Companion_getInstance_6().j1s(50, 205, 50)), to('linen', Companion_getInstance_6().j1s(250, 240, 230)), to('magenta', Companion_getInstance_6().j1s(255, 0, 255)), to('mediumaquamarine', Companion_getInstance_6().j1s(102, 205, 170)), to('mediumblue', Companion_getInstance_6().j1s(0, 0, 205)), to('mediumorchid', Companion_getInstance_6().j1s(186, 85, 211)), to('mediumpurple', Companion_getInstance_6().j1s(147, 112, 219)), to('mediumseagreen', Companion_getInstance_6().j1s(60, 179, 113)), to('mediumslateblue', Companion_getInstance_6().j1s(123, 104, 238)), to('mediumspringgreen', Companion_getInstance_6().j1s(0, 250, 154)), to('mediumturquoise', Companion_getInstance_6().j1s(72, 209, 204)), to('mediumvioletred', Companion_getInstance_6().j1s(199, 21, 133)), to('midnightblue', Companion_getInstance_6().j1s(25, 25, 112)), to('mintcream', Companion_getInstance_6().j1s(245, 255, 250)), to('mistyrose', Companion_getInstance_6().j1s(255, 228, 225)), to('moccasin', Companion_getInstance_6().j1s(255, 228, 181)), to('navajowhite', Companion_getInstance_6().j1s(255, 222, 173)), to('oldlace', Companion_getInstance_6().j1s(253, 245, 230)), to('olivedrab', Companion_getInstance_6().j1s(107, 142, 35)), to('orangered', Companion_getInstance_6().j1s(255, 69, 0)), to('orchid', Companion_getInstance_6().j1s(218, 112, 214)), to('palegoldenrod', Companion_getInstance_6().j1s(238, 232, 170)), to('palegreen', Companion_getInstance_6().j1s(152, 251, 152)), to('paleturquoise', Companion_getInstance_6().j1s(175, 238, 238)), to('palevioletred', Companion_getInstance_6().j1s(219, 112, 147)), to('papayawhip', Companion_getInstance_6().j1s(255, 239, 213)), to('peachpuff', Companion_getInstance_6().j1s(255, 218, 185)), to('peru', Companion_getInstance_6().j1s(205, 133, 63)), to('pink', Companion_getInstance_6().j1s(255, 192, 203)), to('plum', Companion_getInstance_6().j1s(221, 160, 221)), to('powderblue', Companion_getInstance_6().j1s(176, 224, 230)), to('rosybrown', Companion_getInstance_6().j1s(188, 143, 143)), to('royalblue', Companion_getInstance_6().j1s(65, 105, 225)), to('saddlebrown', Companion_getInstance_6().j1s(139, 69, 19)), to('salmon', Companion_getInstance_6().j1s(250, 128, 114)), to('sandybrown', Companion_getInstance_6().j1s(244, 164, 96)), to('seagreen', Companion_getInstance_6().j1s(46, 139, 87)), to('seashell', Companion_getInstance_6().j1s(255, 245, 238)), to('sienna', Companion_getInstance_6().j1s(160, 82, 45)), to('skyblue', Companion_getInstance_6().j1s(135, 206, 235)), to('slateblue', Companion_getInstance_6().j1s(106, 90, 205)), to('slategray', Companion_getInstance_6().j1s(112, 128, 144)), to('slategrey', Companion_getInstance_6().j1s(112, 128, 144)), to('snow', Companion_getInstance_6().j1s(255, 250, 250)), to('springgreen', Companion_getInstance_6().j1s(0, 255, 127)), to('steelblue', Companion_getInstance_6().j1s(70, 130, 180)), to('tan', Companion_getInstance_6().j1s(210, 180, 140)), to('thistle', Companion_getInstance_6().j1s(216, 191, 216)), to('tomato', Companion_getInstance_6().j1s(255, 99, 71)), to('turquoise', Companion_getInstance_6().j1s(64, 224, 208)), to('violet', Companion_getInstance_6().j1s(238, 130, 238)), to('wheat', Companion_getInstance_6().j1s(245, 222, 179)), to('whitesmoke', Companion_getInstance_6().j1s(245, 245, 245)), to('yellowgreen', Companion_getInstance_6().j1s(154, 205, 50)), to('rebeccapurple', Companion_getInstance_6().j1s(102, 51, 153)), to('transparent', Companion_getInstance_6().k1s(0, 0, 0, 0))]);
|
|
1062
1062
|
}
|
|
1063
1063
|
var CssColors_instance;
|
|
1064
1064
|
function CssColors_getInstance() {
|
|
@@ -1144,22 +1144,22 @@
|
|
|
1144
1144
|
function Matrix__equals_impl_g5p8p9($this, other) {
|
|
1145
1145
|
if (!(other instanceof Matrix))
|
|
1146
1146
|
return false;
|
|
1147
|
-
var tmp0_other_with_cast = other instanceof Matrix ? other.
|
|
1147
|
+
var tmp0_other_with_cast = other instanceof Matrix ? other.l1s_1 : THROW_CCE();
|
|
1148
1148
|
if (!equals($this, tmp0_other_with_cast))
|
|
1149
1149
|
return false;
|
|
1150
1150
|
return true;
|
|
1151
1151
|
}
|
|
1152
1152
|
function Matrix(rowMajor) {
|
|
1153
|
-
this.
|
|
1153
|
+
this.l1s_1 = rowMajor;
|
|
1154
1154
|
}
|
|
1155
1155
|
protoOf(Matrix).toString = function () {
|
|
1156
|
-
return Matrix__toString_impl_l0abk0(this.
|
|
1156
|
+
return Matrix__toString_impl_l0abk0(this.l1s_1);
|
|
1157
1157
|
};
|
|
1158
1158
|
protoOf(Matrix).hashCode = function () {
|
|
1159
|
-
return Matrix__hashCode_impl_s9ntm9(this.
|
|
1159
|
+
return Matrix__hashCode_impl_s9ntm9(this.l1s_1);
|
|
1160
1160
|
};
|
|
1161
1161
|
protoOf(Matrix).equals = function (other) {
|
|
1162
|
-
return Matrix__equals_impl_g5p8p9(this.
|
|
1162
|
+
return Matrix__equals_impl_g5p8p9(this.l1s_1, other);
|
|
1163
1163
|
};
|
|
1164
1164
|
function inverse(_this__u8e3s4, inPlace) {
|
|
1165
1165
|
inPlace = inPlace === VOID ? false : inPlace;
|
|
@@ -1241,21 +1241,21 @@
|
|
|
1241
1241
|
}
|
|
1242
1242
|
function Companion_0() {
|
|
1243
1243
|
Companion_instance_1 = this;
|
|
1244
|
-
this.
|
|
1244
|
+
this.h1q_1 = polarComponentInfo('HSL', 0.0, 1.0);
|
|
1245
1245
|
}
|
|
1246
|
-
protoOf(Companion_0).
|
|
1246
|
+
protoOf(Companion_0).t2 = function () {
|
|
1247
1247
|
return 'HSL';
|
|
1248
1248
|
};
|
|
1249
|
-
protoOf(Companion_0).
|
|
1250
|
-
return this.
|
|
1249
|
+
protoOf(Companion_0).l1p = function () {
|
|
1250
|
+
return this.h1q_1;
|
|
1251
1251
|
};
|
|
1252
|
-
protoOf(Companion_0).
|
|
1253
|
-
return color.
|
|
1252
|
+
protoOf(Companion_0).f1p = function (color) {
|
|
1253
|
+
return color.f1o();
|
|
1254
1254
|
};
|
|
1255
|
-
protoOf(Companion_0).
|
|
1255
|
+
protoOf(Companion_0).m1p = function (components) {
|
|
1256
1256
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1257
1257
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1258
|
-
var size = this.
|
|
1258
|
+
var size = this.l1p().m();
|
|
1259
1259
|
var containsLower = size - 1 | 0;
|
|
1260
1260
|
var containsArg = components.length;
|
|
1261
1261
|
// Inline function 'kotlin.require' call
|
|
@@ -1300,53 +1300,53 @@
|
|
|
1300
1300
|
function HSL(h, s, l, alpha) {
|
|
1301
1301
|
Companion_getInstance_0();
|
|
1302
1302
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1305
|
-
this.
|
|
1306
|
-
this.
|
|
1303
|
+
this.p1r_1 = h;
|
|
1304
|
+
this.q1r_1 = s;
|
|
1305
|
+
this.r1r_1 = l;
|
|
1306
|
+
this.s1r_1 = alpha;
|
|
1307
1307
|
}
|
|
1308
|
-
protoOf(HSL).
|
|
1309
|
-
return this.
|
|
1308
|
+
protoOf(HSL).g1s = function () {
|
|
1309
|
+
return this.p1r_1;
|
|
1310
1310
|
};
|
|
1311
|
-
protoOf(HSL).
|
|
1312
|
-
return this.
|
|
1311
|
+
protoOf(HSL).c1o = function () {
|
|
1312
|
+
return this.s1r_1;
|
|
1313
1313
|
};
|
|
1314
|
-
protoOf(HSL).
|
|
1314
|
+
protoOf(HSL).d1o = function () {
|
|
1315
1315
|
return Companion_getInstance_0();
|
|
1316
1316
|
};
|
|
1317
|
-
protoOf(HSL).
|
|
1318
|
-
if (this.
|
|
1319
|
-
return Companion_getInstance_6().
|
|
1317
|
+
protoOf(HSL).e1o = function () {
|
|
1318
|
+
if (this.q1r_1 < 1.0E-7)
|
|
1319
|
+
return Companion_getInstance_6().g1q(this.r1r_1, this.r1r_1, this.r1r_1, this.s1r_1);
|
|
1320
1320
|
var h = normalizeDeg_0(hueOr(this, 0)) / 30.0;
|
|
1321
|
-
var s = this.
|
|
1322
|
-
var l = this.
|
|
1323
|
-
return SRGB_getInstance().
|
|
1321
|
+
var s = this.q1r_1;
|
|
1322
|
+
var l = this.r1r_1;
|
|
1323
|
+
return SRGB_getInstance().g1q(toSRGB$f(h, s, l, 0), toSRGB$f(h, s, l, 8), toSRGB$f(h, s, l, 4), this.s1r_1);
|
|
1324
1324
|
};
|
|
1325
|
-
protoOf(HSL).
|
|
1325
|
+
protoOf(HSL).f1o = function () {
|
|
1326
1326
|
return this;
|
|
1327
1327
|
};
|
|
1328
|
-
protoOf(HSL).
|
|
1328
|
+
protoOf(HSL).x5 = function () {
|
|
1329
1329
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1330
|
-
return new Float32Array([this.
|
|
1330
|
+
return new Float32Array([this.p1r_1, this.q1r_1, this.r1r_1, this.s1r_1]);
|
|
1331
1331
|
};
|
|
1332
|
-
protoOf(HSL).
|
|
1332
|
+
protoOf(HSL).n1s = function (h, s, l, alpha) {
|
|
1333
1333
|
return new HSL(h, s, l, alpha);
|
|
1334
1334
|
};
|
|
1335
|
-
protoOf(HSL).
|
|
1336
|
-
h = h === VOID ? this.
|
|
1337
|
-
s = s === VOID ? this.
|
|
1338
|
-
l = l === VOID ? this.
|
|
1339
|
-
alpha = alpha === VOID ? this.
|
|
1340
|
-
return $super === VOID ? this.
|
|
1335
|
+
protoOf(HSL).o1s = function (h, s, l, alpha, $super) {
|
|
1336
|
+
h = h === VOID ? this.p1r_1 : h;
|
|
1337
|
+
s = s === VOID ? this.q1r_1 : s;
|
|
1338
|
+
l = l === VOID ? this.r1r_1 : l;
|
|
1339
|
+
alpha = alpha === VOID ? this.s1r_1 : alpha;
|
|
1340
|
+
return $super === VOID ? this.n1s(h, s, l, alpha) : $super.n1s.call(this, h, s, l, alpha);
|
|
1341
1341
|
};
|
|
1342
1342
|
protoOf(HSL).toString = function () {
|
|
1343
|
-
return 'HSL(h=' + this.
|
|
1343
|
+
return 'HSL(h=' + this.p1r_1 + ', s=' + this.q1r_1 + ', l=' + this.r1r_1 + ', alpha=' + this.s1r_1 + ')';
|
|
1344
1344
|
};
|
|
1345
1345
|
protoOf(HSL).hashCode = function () {
|
|
1346
|
-
var result = getNumberHashCode(this.
|
|
1347
|
-
result = imul(result, 31) + getNumberHashCode(this.o1r_1) | 0;
|
|
1348
|
-
result = imul(result, 31) + getNumberHashCode(this.p1r_1) | 0;
|
|
1346
|
+
var result = getNumberHashCode(this.p1r_1);
|
|
1349
1347
|
result = imul(result, 31) + getNumberHashCode(this.q1r_1) | 0;
|
|
1348
|
+
result = imul(result, 31) + getNumberHashCode(this.r1r_1) | 0;
|
|
1349
|
+
result = imul(result, 31) + getNumberHashCode(this.s1r_1) | 0;
|
|
1350
1350
|
return result;
|
|
1351
1351
|
};
|
|
1352
1352
|
protoOf(HSL).equals = function (other) {
|
|
@@ -1355,33 +1355,33 @@
|
|
|
1355
1355
|
if (!(other instanceof HSL))
|
|
1356
1356
|
return false;
|
|
1357
1357
|
var tmp0_other_with_cast = other instanceof HSL ? other : THROW_CCE();
|
|
1358
|
-
if (!equals(this.n1r_1, tmp0_other_with_cast.n1r_1))
|
|
1359
|
-
return false;
|
|
1360
|
-
if (!equals(this.o1r_1, tmp0_other_with_cast.o1r_1))
|
|
1361
|
-
return false;
|
|
1362
1358
|
if (!equals(this.p1r_1, tmp0_other_with_cast.p1r_1))
|
|
1363
1359
|
return false;
|
|
1364
1360
|
if (!equals(this.q1r_1, tmp0_other_with_cast.q1r_1))
|
|
1365
1361
|
return false;
|
|
1362
|
+
if (!equals(this.r1r_1, tmp0_other_with_cast.r1r_1))
|
|
1363
|
+
return false;
|
|
1364
|
+
if (!equals(this.s1r_1, tmp0_other_with_cast.s1r_1))
|
|
1365
|
+
return false;
|
|
1366
1366
|
return true;
|
|
1367
1367
|
};
|
|
1368
1368
|
function Companion_1() {
|
|
1369
1369
|
Companion_instance_2 = this;
|
|
1370
|
-
this.
|
|
1370
|
+
this.o1q_1 = polarComponentInfo('HWB', 0.0, 1.0);
|
|
1371
1371
|
}
|
|
1372
|
-
protoOf(Companion_1).
|
|
1372
|
+
protoOf(Companion_1).t2 = function () {
|
|
1373
1373
|
return 'HWB';
|
|
1374
1374
|
};
|
|
1375
|
-
protoOf(Companion_1).
|
|
1376
|
-
return this.
|
|
1375
|
+
protoOf(Companion_1).l1p = function () {
|
|
1376
|
+
return this.o1q_1;
|
|
1377
1377
|
};
|
|
1378
|
-
protoOf(Companion_1).
|
|
1379
|
-
return color.
|
|
1378
|
+
protoOf(Companion_1).f1p = function (color) {
|
|
1379
|
+
return color.y1o();
|
|
1380
1380
|
};
|
|
1381
|
-
protoOf(Companion_1).
|
|
1381
|
+
protoOf(Companion_1).m1p = function (components) {
|
|
1382
1382
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1383
1383
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1384
|
-
var size = this.
|
|
1384
|
+
var size = this.l1p().m();
|
|
1385
1385
|
var containsLower = size - 1 | 0;
|
|
1386
1386
|
var containsArg = components.length;
|
|
1387
1387
|
// Inline function 'kotlin.require' call
|
|
@@ -1415,28 +1415,28 @@
|
|
|
1415
1415
|
function HWB(h, w, b, alpha) {
|
|
1416
1416
|
Companion_getInstance_1();
|
|
1417
1417
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
1418
|
-
this.
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
1421
|
-
this.
|
|
1418
|
+
this.y1r_1 = h;
|
|
1419
|
+
this.z1r_1 = w;
|
|
1420
|
+
this.a1s_1 = b;
|
|
1421
|
+
this.b1s_1 = alpha;
|
|
1422
1422
|
}
|
|
1423
|
-
protoOf(HWB).
|
|
1424
|
-
return this.
|
|
1423
|
+
protoOf(HWB).g1s = function () {
|
|
1424
|
+
return this.y1r_1;
|
|
1425
1425
|
};
|
|
1426
|
-
protoOf(HWB).
|
|
1427
|
-
return this.
|
|
1426
|
+
protoOf(HWB).c1o = function () {
|
|
1427
|
+
return this.b1s_1;
|
|
1428
1428
|
};
|
|
1429
|
-
protoOf(HWB).
|
|
1429
|
+
protoOf(HWB).d1o = function () {
|
|
1430
1430
|
return Companion_getInstance_1();
|
|
1431
1431
|
};
|
|
1432
|
-
protoOf(HWB).
|
|
1433
|
-
var h = this.
|
|
1434
|
-
var w = this.
|
|
1435
|
-
var b = this.
|
|
1436
|
-
var a = this.
|
|
1432
|
+
protoOf(HWB).e1o = function () {
|
|
1433
|
+
var h = this.y1r_1 / 60.0;
|
|
1434
|
+
var w = this.z1r_1;
|
|
1435
|
+
var b = this.a1s_1;
|
|
1436
|
+
var a = this.b1s_1;
|
|
1437
1437
|
if (w + b >= 1) {
|
|
1438
1438
|
var gray = w / (w + b);
|
|
1439
|
-
return Companion_getInstance_6().
|
|
1439
|
+
return Companion_getInstance_6().g1q(gray, gray, gray, a);
|
|
1440
1440
|
}
|
|
1441
1441
|
var v = 1 - b;
|
|
1442
1442
|
var i = numberToInt(h);
|
|
@@ -1444,34 +1444,34 @@
|
|
|
1444
1444
|
var n = w + f * (v - w);
|
|
1445
1445
|
switch (i) {
|
|
1446
1446
|
case 1:
|
|
1447
|
-
return Companion_getInstance_6().
|
|
1447
|
+
return Companion_getInstance_6().g1q(n, v, w, a);
|
|
1448
1448
|
case 2:
|
|
1449
|
-
return Companion_getInstance_6().
|
|
1449
|
+
return Companion_getInstance_6().g1q(w, v, n, a);
|
|
1450
1450
|
case 3:
|
|
1451
|
-
return Companion_getInstance_6().
|
|
1451
|
+
return Companion_getInstance_6().g1q(w, n, v, a);
|
|
1452
1452
|
case 4:
|
|
1453
|
-
return Companion_getInstance_6().
|
|
1453
|
+
return Companion_getInstance_6().g1q(n, w, v, a);
|
|
1454
1454
|
case 5:
|
|
1455
|
-
return Companion_getInstance_6().
|
|
1455
|
+
return Companion_getInstance_6().g1q(v, w, n, a);
|
|
1456
1456
|
default:
|
|
1457
|
-
return Companion_getInstance_6().
|
|
1457
|
+
return Companion_getInstance_6().g1q(v, n, w, a);
|
|
1458
1458
|
}
|
|
1459
1459
|
};
|
|
1460
|
-
protoOf(HWB).
|
|
1460
|
+
protoOf(HWB).y1o = function () {
|
|
1461
1461
|
return this;
|
|
1462
1462
|
};
|
|
1463
|
-
protoOf(HWB).
|
|
1463
|
+
protoOf(HWB).x5 = function () {
|
|
1464
1464
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1465
|
-
return new Float32Array([this.
|
|
1465
|
+
return new Float32Array([this.y1r_1, this.z1r_1, this.a1s_1, this.b1s_1]);
|
|
1466
1466
|
};
|
|
1467
1467
|
protoOf(HWB).toString = function () {
|
|
1468
|
-
return 'HWB(h=' + this.
|
|
1468
|
+
return 'HWB(h=' + this.y1r_1 + ', w=' + this.z1r_1 + ', b=' + this.a1s_1 + ', alpha=' + this.b1s_1 + ')';
|
|
1469
1469
|
};
|
|
1470
1470
|
protoOf(HWB).hashCode = function () {
|
|
1471
|
-
var result = getNumberHashCode(this.
|
|
1472
|
-
result = imul(result, 31) + getNumberHashCode(this.x1r_1) | 0;
|
|
1473
|
-
result = imul(result, 31) + getNumberHashCode(this.y1r_1) | 0;
|
|
1471
|
+
var result = getNumberHashCode(this.y1r_1);
|
|
1474
1472
|
result = imul(result, 31) + getNumberHashCode(this.z1r_1) | 0;
|
|
1473
|
+
result = imul(result, 31) + getNumberHashCode(this.a1s_1) | 0;
|
|
1474
|
+
result = imul(result, 31) + getNumberHashCode(this.b1s_1) | 0;
|
|
1475
1475
|
return result;
|
|
1476
1476
|
};
|
|
1477
1477
|
protoOf(HWB).equals = function (other) {
|
|
@@ -1480,14 +1480,14 @@
|
|
|
1480
1480
|
if (!(other instanceof HWB))
|
|
1481
1481
|
return false;
|
|
1482
1482
|
var tmp0_other_with_cast = other instanceof HWB ? other : THROW_CCE();
|
|
1483
|
-
if (!equals(this.w1r_1, tmp0_other_with_cast.w1r_1))
|
|
1484
|
-
return false;
|
|
1485
|
-
if (!equals(this.x1r_1, tmp0_other_with_cast.x1r_1))
|
|
1486
|
-
return false;
|
|
1487
1483
|
if (!equals(this.y1r_1, tmp0_other_with_cast.y1r_1))
|
|
1488
1484
|
return false;
|
|
1489
1485
|
if (!equals(this.z1r_1, tmp0_other_with_cast.z1r_1))
|
|
1490
1486
|
return false;
|
|
1487
|
+
if (!equals(this.a1s_1, tmp0_other_with_cast.a1s_1))
|
|
1488
|
+
return false;
|
|
1489
|
+
if (!equals(this.b1s_1, tmp0_other_with_cast.b1s_1))
|
|
1490
|
+
return false;
|
|
1491
1491
|
return true;
|
|
1492
1492
|
};
|
|
1493
1493
|
function get_ICTCP_RGB_TO_LMS() {
|
|
@@ -1528,45 +1528,45 @@
|
|
|
1528
1528
|
var ICTCP_LMS_TO_XYZ;
|
|
1529
1529
|
function ICtCp() {
|
|
1530
1530
|
}
|
|
1531
|
-
protoOf(ICtCp).
|
|
1532
|
-
var fo = RGBColorSpaces_getInstance().
|
|
1531
|
+
protoOf(ICtCp).t1s = function () {
|
|
1532
|
+
var fo = RGBColorSpaces_getInstance().y1q_1.u1s();
|
|
1533
1533
|
var tmp0 = get_ICTCP_ICTCP_to_LMS();
|
|
1534
|
-
var tmp1 = this.
|
|
1535
|
-
var tmp2 = this.
|
|
1534
|
+
var tmp1 = this.p1s_1;
|
|
1535
|
+
var tmp2 = this.q1s_1;
|
|
1536
1536
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1537
|
-
var v2 = this.
|
|
1537
|
+
var v2 = this.r1s_1;
|
|
1538
1538
|
var tmp4 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
1539
1539
|
var tmp5 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
1540
1540
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>' call
|
|
1541
1541
|
var s = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
|
|
1542
1542
|
var tmp0_0 = get_ICTCP_LMS_to_RGB();
|
|
1543
|
-
var tmp1_0 = PqNonlinearity_instance.
|
|
1544
|
-
var tmp2_0 = PqNonlinearity_instance.
|
|
1543
|
+
var tmp1_0 = PqNonlinearity_instance.d1t(tmp4);
|
|
1544
|
+
var tmp2_0 = PqNonlinearity_instance.d1t(tmp5);
|
|
1545
1545
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1546
|
-
var v2_0 = PqNonlinearity_instance.
|
|
1546
|
+
var v2_0 = PqNonlinearity_instance.d1t(s);
|
|
1547
1547
|
var tmp4_0 = Matrix__get_impl_xogbpk(tmp0_0, 0, 0) * tmp1_0 + Matrix__get_impl_xogbpk(tmp0_0, 1, 0) * tmp2_0 + Matrix__get_impl_xogbpk(tmp0_0, 2, 0) * v2_0;
|
|
1548
1548
|
var tmp5_0 = Matrix__get_impl_xogbpk(tmp0_0, 0, 1) * tmp1_0 + Matrix__get_impl_xogbpk(tmp0_0, 1, 1) * tmp2_0 + Matrix__get_impl_xogbpk(tmp0_0, 2, 1) * v2_0;
|
|
1549
1549
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>.<anonymous>' call
|
|
1550
1550
|
var b = Matrix__get_impl_xogbpk(tmp0_0, 0, 2) * tmp1_0 + Matrix__get_impl_xogbpk(tmp0_0, 1, 2) * tmp2_0 + Matrix__get_impl_xogbpk(tmp0_0, 2, 2) * v2_0;
|
|
1551
|
-
return RGBColorSpaces_getInstance().
|
|
1551
|
+
return RGBColorSpaces_getInstance().y1q_1.g1q(fo.e1t(tmp4_0), fo.e1t(tmp5_0), fo.e1t(b), this.s1s_1);
|
|
1552
1552
|
};
|
|
1553
1553
|
function PqNonlinearity() {
|
|
1554
|
-
this.
|
|
1555
|
-
this.
|
|
1556
|
-
this.
|
|
1557
|
-
this.
|
|
1558
|
-
this.
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1561
|
-
this.
|
|
1562
|
-
}
|
|
1563
|
-
protoOf(PqNonlinearity).
|
|
1554
|
+
this.v1s_1 = 0.1593017578125;
|
|
1555
|
+
this.w1s_1 = 78.84375;
|
|
1556
|
+
this.x1s_1 = 0.8359375;
|
|
1557
|
+
this.y1s_1 = 18.8515625;
|
|
1558
|
+
this.z1s_1 = 18.6875;
|
|
1559
|
+
this.a1t_1 = 10000.0;
|
|
1560
|
+
this.b1t_1 = 6.277394636015326;
|
|
1561
|
+
this.c1t_1 = 0.012683313515655966;
|
|
1562
|
+
}
|
|
1563
|
+
protoOf(PqNonlinearity).d1t = function (x) {
|
|
1564
1564
|
var vp = spow(x, 0.012683313515655966);
|
|
1565
1565
|
var n = coerceAtLeast(vp - 0.8359375, 0.0);
|
|
1566
1566
|
var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
|
|
1567
1567
|
return 10000.0 * l;
|
|
1568
1568
|
};
|
|
1569
|
-
protoOf(PqNonlinearity).
|
|
1569
|
+
protoOf(PqNonlinearity).e1t = function (x) {
|
|
1570
1570
|
var yp = spow_0(x / 10000.0, 0.1593017578125);
|
|
1571
1571
|
return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
|
|
1572
1572
|
};
|
|
@@ -1590,34 +1590,34 @@
|
|
|
1590
1590
|
}
|
|
1591
1591
|
function Companion_2() {
|
|
1592
1592
|
Companion_instance_3 = this;
|
|
1593
|
-
this.
|
|
1593
|
+
this.i1q_1 = LABColorSpaces_getInstance().j1q_1;
|
|
1594
1594
|
}
|
|
1595
1595
|
protoOf(Companion_2).equals = function (other) {
|
|
1596
|
-
return equals(LABColorSpaces_getInstance().
|
|
1596
|
+
return equals(LABColorSpaces_getInstance().j1q_1, other);
|
|
1597
1597
|
};
|
|
1598
1598
|
protoOf(Companion_2).hashCode = function () {
|
|
1599
|
-
return hashCode(LABColorSpaces_getInstance().
|
|
1599
|
+
return hashCode(LABColorSpaces_getInstance().j1q_1);
|
|
1600
1600
|
};
|
|
1601
|
-
protoOf(Companion_2).
|
|
1602
|
-
return this.
|
|
1601
|
+
protoOf(Companion_2).g1q = function (l, a, b, alpha) {
|
|
1602
|
+
return this.i1q_1.g1q(l, a, b, alpha);
|
|
1603
1603
|
};
|
|
1604
|
-
protoOf(Companion_2).
|
|
1605
|
-
return this.
|
|
1604
|
+
protoOf(Companion_2).f1t = function (l, a, b, alpha) {
|
|
1605
|
+
return this.i1q_1.f1t(l, a, b, alpha);
|
|
1606
1606
|
};
|
|
1607
|
-
protoOf(Companion_2).
|
|
1608
|
-
return this.
|
|
1607
|
+
protoOf(Companion_2).k1p = function () {
|
|
1608
|
+
return this.i1q_1.k1p();
|
|
1609
1609
|
};
|
|
1610
|
-
protoOf(Companion_2).
|
|
1611
|
-
return this.
|
|
1610
|
+
protoOf(Companion_2).t2 = function () {
|
|
1611
|
+
return this.i1q_1.t2();
|
|
1612
1612
|
};
|
|
1613
|
-
protoOf(Companion_2).
|
|
1614
|
-
return this.
|
|
1613
|
+
protoOf(Companion_2).l1p = function () {
|
|
1614
|
+
return this.i1q_1.l1p();
|
|
1615
1615
|
};
|
|
1616
|
-
protoOf(Companion_2).
|
|
1617
|
-
return this.
|
|
1616
|
+
protoOf(Companion_2).f1p = function (color) {
|
|
1617
|
+
return this.i1q_1.f1p(color);
|
|
1618
1618
|
};
|
|
1619
|
-
protoOf(Companion_2).
|
|
1620
|
-
return this.
|
|
1619
|
+
protoOf(Companion_2).m1p = function (components) {
|
|
1620
|
+
return this.i1q_1.m1p(components);
|
|
1621
1621
|
};
|
|
1622
1622
|
var Companion_instance_3;
|
|
1623
1623
|
function Companion_getInstance_2() {
|
|
@@ -1627,34 +1627,34 @@
|
|
|
1627
1627
|
}
|
|
1628
1628
|
function LAB(l, a, b, alpha, space) {
|
|
1629
1629
|
Companion_getInstance_2();
|
|
1630
|
-
this.
|
|
1631
|
-
this.
|
|
1632
|
-
this.
|
|
1633
|
-
this.
|
|
1634
|
-
this.
|
|
1630
|
+
this.t1o_1 = l;
|
|
1631
|
+
this.u1o_1 = a;
|
|
1632
|
+
this.v1o_1 = b;
|
|
1633
|
+
this.w1o_1 = alpha;
|
|
1634
|
+
this.x1o_1 = space;
|
|
1635
1635
|
}
|
|
1636
|
-
protoOf(LAB).
|
|
1637
|
-
return this.
|
|
1636
|
+
protoOf(LAB).c1o = function () {
|
|
1637
|
+
return this.w1o_1;
|
|
1638
1638
|
};
|
|
1639
|
-
protoOf(LAB).
|
|
1640
|
-
return this.
|
|
1639
|
+
protoOf(LAB).d1o = function () {
|
|
1640
|
+
return this.x1o_1;
|
|
1641
1641
|
};
|
|
1642
|
-
protoOf(LAB).
|
|
1643
|
-
return this.
|
|
1644
|
-
};
|
|
1645
|
-
protoOf(LAB).
|
|
1646
|
-
var xyzSpace = XYZColorSpace_0(this.
|
|
1647
|
-
if (this.
|
|
1648
|
-
return xyzSpace.
|
|
1649
|
-
var fy = (this.
|
|
1650
|
-
var fz = fy - this.
|
|
1651
|
-
var fx = this.
|
|
1642
|
+
protoOf(LAB).e1o = function () {
|
|
1643
|
+
return this.t1o_1 === 0.0 ? Companion_getInstance_6().g1q(0.0, 0.0, 0.0, this.w1o_1) : this.l1o().e1o();
|
|
1644
|
+
};
|
|
1645
|
+
protoOf(LAB).l1o = function () {
|
|
1646
|
+
var xyzSpace = XYZColorSpace_0(this.x1o_1.k1p());
|
|
1647
|
+
if (this.t1o_1 === 0.0)
|
|
1648
|
+
return xyzSpace.g1t(0.0, 0.0, 0.0);
|
|
1649
|
+
var fy = (this.t1o_1 + 16) / 116.0;
|
|
1650
|
+
var fz = fy - this.v1o_1 / 200.0;
|
|
1651
|
+
var fx = this.u1o_1 / 500.0 + fy;
|
|
1652
1652
|
var tmp;
|
|
1653
|
-
if (this.
|
|
1653
|
+
if (this.t1o_1 > 8.0) {
|
|
1654
1654
|
// Inline function 'kotlin.math.pow' call
|
|
1655
1655
|
tmp = Math.pow(fy, 3);
|
|
1656
1656
|
} else {
|
|
1657
|
-
tmp = this.
|
|
1657
|
+
tmp = this.t1o_1 / 903.2962962962963;
|
|
1658
1658
|
}
|
|
1659
1659
|
var yr = tmp;
|
|
1660
1660
|
// Inline function 'kotlin.math.pow' call
|
|
@@ -1667,13 +1667,13 @@
|
|
|
1667
1667
|
// Inline function 'com.github.ajalt.colormath.model.LAB.toXYZ.<anonymous>' call
|
|
1668
1668
|
var it_0 = Math.pow(fx, 3);
|
|
1669
1669
|
var xr = it_0 > 0.008856451679035631 ? it_0 : (116 * fx - 16) / 903.2962962962963;
|
|
1670
|
-
var wp = this.
|
|
1671
|
-
return xyzSpace.
|
|
1670
|
+
var wp = this.x1o_1.k1p().i1s_1;
|
|
1671
|
+
return xyzSpace.f1t(xr * wp.k1t(), yr * wp.j1t_1, zr * wp.l1t(), this.w1o_1);
|
|
1672
1672
|
};
|
|
1673
|
-
protoOf(LAB).
|
|
1674
|
-
var tmp0 = this.
|
|
1673
|
+
protoOf(LAB).s1o = function () {
|
|
1674
|
+
var tmp0 = this.u1o_1;
|
|
1675
1675
|
// Inline function 'com.github.ajalt.colormath.internal.toPolarModel' call
|
|
1676
|
-
var b = this.
|
|
1676
|
+
var b = this.v1o_1;
|
|
1677
1677
|
// Inline function 'kotlin.math.sqrt' call
|
|
1678
1678
|
var x = tmp0 * tmp0 + b * b;
|
|
1679
1679
|
var c = Math.sqrt(x);
|
|
@@ -1688,24 +1688,24 @@
|
|
|
1688
1688
|
var h = tmp;
|
|
1689
1689
|
// Inline function 'com.github.ajalt.colormath.model.LAB.toLCHab.<anonymous>' call
|
|
1690
1690
|
var h_0 = normalizeDeg_0(h);
|
|
1691
|
-
return LCHabColorSpace_0(this.
|
|
1691
|
+
return LCHabColorSpace_0(this.x1o_1.k1p()).g1q(this.t1o_1, c, h_0, this.w1o_1);
|
|
1692
1692
|
};
|
|
1693
|
-
protoOf(LAB).
|
|
1693
|
+
protoOf(LAB).m1o = function () {
|
|
1694
1694
|
return this;
|
|
1695
1695
|
};
|
|
1696
|
-
protoOf(LAB).
|
|
1696
|
+
protoOf(LAB).x5 = function () {
|
|
1697
1697
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1698
|
-
return new Float32Array([this.
|
|
1698
|
+
return new Float32Array([this.t1o_1, this.u1o_1, this.v1o_1, this.w1o_1]);
|
|
1699
1699
|
};
|
|
1700
1700
|
protoOf(LAB).toString = function () {
|
|
1701
|
-
return 'LAB(l=' + this.
|
|
1701
|
+
return 'LAB(l=' + this.t1o_1 + ', a=' + this.u1o_1 + ', b=' + this.v1o_1 + ', alpha=' + this.w1o_1 + ', space=' + toString(this.x1o_1) + ')';
|
|
1702
1702
|
};
|
|
1703
1703
|
protoOf(LAB).hashCode = function () {
|
|
1704
|
-
var result = getNumberHashCode(this.
|
|
1705
|
-
result = imul(result, 31) + getNumberHashCode(this.s1o_1) | 0;
|
|
1706
|
-
result = imul(result, 31) + getNumberHashCode(this.t1o_1) | 0;
|
|
1704
|
+
var result = getNumberHashCode(this.t1o_1);
|
|
1707
1705
|
result = imul(result, 31) + getNumberHashCode(this.u1o_1) | 0;
|
|
1708
|
-
result = imul(result, 31) +
|
|
1706
|
+
result = imul(result, 31) + getNumberHashCode(this.v1o_1) | 0;
|
|
1707
|
+
result = imul(result, 31) + getNumberHashCode(this.w1o_1) | 0;
|
|
1708
|
+
result = imul(result, 31) + hashCode(this.x1o_1) | 0;
|
|
1709
1709
|
return result;
|
|
1710
1710
|
};
|
|
1711
1711
|
protoOf(LAB).equals = function (other) {
|
|
@@ -1714,27 +1714,27 @@
|
|
|
1714
1714
|
if (!(other instanceof LAB))
|
|
1715
1715
|
return false;
|
|
1716
1716
|
var tmp0_other_with_cast = other instanceof LAB ? other : THROW_CCE();
|
|
1717
|
-
if (!equals(this.r1o_1, tmp0_other_with_cast.r1o_1))
|
|
1718
|
-
return false;
|
|
1719
|
-
if (!equals(this.s1o_1, tmp0_other_with_cast.s1o_1))
|
|
1720
|
-
return false;
|
|
1721
1717
|
if (!equals(this.t1o_1, tmp0_other_with_cast.t1o_1))
|
|
1722
1718
|
return false;
|
|
1723
1719
|
if (!equals(this.u1o_1, tmp0_other_with_cast.u1o_1))
|
|
1724
1720
|
return false;
|
|
1725
1721
|
if (!equals(this.v1o_1, tmp0_other_with_cast.v1o_1))
|
|
1726
1722
|
return false;
|
|
1723
|
+
if (!equals(this.w1o_1, tmp0_other_with_cast.w1o_1))
|
|
1724
|
+
return false;
|
|
1725
|
+
if (!equals(this.x1o_1, tmp0_other_with_cast.x1o_1))
|
|
1726
|
+
return false;
|
|
1727
1727
|
return true;
|
|
1728
1728
|
};
|
|
1729
1729
|
function LABColorSpace() {
|
|
1730
1730
|
}
|
|
1731
1731
|
function LABColorSpace_0(whitePoint) {
|
|
1732
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1732
|
+
return whitePoint.equals(Illuminant_getInstance().l1r_1) ? LABColorSpaces_getInstance().j1q_1 : whitePoint.equals(Illuminant_getInstance().j1r_1) ? LABColorSpaces_getInstance().k1q_1 : new LABColorSpaceImpl(whitePoint);
|
|
1733
1733
|
}
|
|
1734
1734
|
function LABColorSpaces() {
|
|
1735
1735
|
LABColorSpaces_instance = this;
|
|
1736
|
-
this.
|
|
1737
|
-
this.
|
|
1736
|
+
this.j1q_1 = new LABColorSpaceImpl(Illuminant_getInstance().l1r_1);
|
|
1737
|
+
this.k1q_1 = new LABColorSpaceImpl(Illuminant_getInstance().j1r_1);
|
|
1738
1738
|
}
|
|
1739
1739
|
var LABColorSpaces_instance;
|
|
1740
1740
|
function LABColorSpaces_getInstance() {
|
|
@@ -1743,37 +1743,37 @@
|
|
|
1743
1743
|
return LABColorSpaces_instance;
|
|
1744
1744
|
}
|
|
1745
1745
|
function LABColorSpaceImpl(whitePoint) {
|
|
1746
|
-
this.
|
|
1747
|
-
this.
|
|
1746
|
+
this.m1t_1 = whitePoint;
|
|
1747
|
+
this.n1t_1 = threeComponentInfo('L', 0.0, 100.0, 'A', -128.0, 128.0, 'B', -128.0, 128.0);
|
|
1748
1748
|
}
|
|
1749
|
-
protoOf(LABColorSpaceImpl).
|
|
1750
|
-
return this.
|
|
1749
|
+
protoOf(LABColorSpaceImpl).k1p = function () {
|
|
1750
|
+
return this.m1t_1;
|
|
1751
1751
|
};
|
|
1752
|
-
protoOf(LABColorSpaceImpl).
|
|
1752
|
+
protoOf(LABColorSpaceImpl).t2 = function () {
|
|
1753
1753
|
return 'LAB';
|
|
1754
1754
|
};
|
|
1755
|
-
protoOf(LABColorSpaceImpl).
|
|
1756
|
-
return this.
|
|
1755
|
+
protoOf(LABColorSpaceImpl).l1p = function () {
|
|
1756
|
+
return this.n1t_1;
|
|
1757
1757
|
};
|
|
1758
|
-
protoOf(LABColorSpaceImpl).
|
|
1758
|
+
protoOf(LABColorSpaceImpl).f1p = function (color) {
|
|
1759
1759
|
// Inline function 'com.github.ajalt.colormath.internal.adaptToThis' call
|
|
1760
1760
|
var tmp;
|
|
1761
|
-
var tmp_0 = color.
|
|
1761
|
+
var tmp_0 = color.d1o();
|
|
1762
1762
|
var tmp0_safe_receiver = isInterface(tmp_0, WhitePointColorSpace) ? tmp_0 : null;
|
|
1763
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1764
|
-
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().
|
|
1763
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1p();
|
|
1764
|
+
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().l1r_1 : tmp1_elvis_lhs).equals(this.k1p())) {
|
|
1765
1765
|
// Inline function 'com.github.ajalt.colormath.model.LABColorSpaceImpl.convert.<anonymous>' call
|
|
1766
|
-
tmp = color.
|
|
1766
|
+
tmp = color.m1o();
|
|
1767
1767
|
} else {
|
|
1768
1768
|
// Inline function 'com.github.ajalt.colormath.model.LABColorSpaceImpl.convert.<anonymous>' call
|
|
1769
|
-
tmp = color.
|
|
1769
|
+
tmp = color.l1o().f1r(XYZColorSpace_0(this.k1p())).m1o();
|
|
1770
1770
|
}
|
|
1771
1771
|
return tmp;
|
|
1772
1772
|
};
|
|
1773
|
-
protoOf(LABColorSpaceImpl).
|
|
1773
|
+
protoOf(LABColorSpaceImpl).m1p = function (components) {
|
|
1774
1774
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1775
1775
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1776
|
-
var size = this.
|
|
1776
|
+
var size = this.l1p().m();
|
|
1777
1777
|
var containsLower = size - 1 | 0;
|
|
1778
1778
|
var containsArg = components.length;
|
|
1779
1779
|
// Inline function 'kotlin.require' call
|
|
@@ -1796,21 +1796,21 @@
|
|
|
1796
1796
|
}
|
|
1797
1797
|
// Inline function 'com.github.ajalt.colormath.model.LABColorSpaceImpl.create.stub_for_inlining' call
|
|
1798
1798
|
var p3 = tmp;
|
|
1799
|
-
return this.
|
|
1799
|
+
return this.g1q(tmp3, tmp4, tmp5, p3);
|
|
1800
1800
|
};
|
|
1801
1801
|
protoOf(LABColorSpaceImpl).toString = function () {
|
|
1802
|
-
return 'LABColorSpace(' + this.
|
|
1802
|
+
return 'LABColorSpace(' + this.m1t_1.toString() + ')';
|
|
1803
1803
|
};
|
|
1804
|
-
protoOf(LABColorSpaceImpl).
|
|
1804
|
+
protoOf(LABColorSpaceImpl).g1q = function (l, a, b, alpha) {
|
|
1805
1805
|
return new LAB(l, a, b, alpha, this);
|
|
1806
1806
|
};
|
|
1807
1807
|
protoOf(LABColorSpaceImpl).hashCode = function () {
|
|
1808
|
-
return this.
|
|
1808
|
+
return this.m1t_1.hashCode();
|
|
1809
1809
|
};
|
|
1810
1810
|
protoOf(LABColorSpaceImpl).equals = function (other) {
|
|
1811
1811
|
var tmp;
|
|
1812
1812
|
if (!(other == null) ? isInterface(other, LABColorSpace) : false) {
|
|
1813
|
-
tmp = this.
|
|
1813
|
+
tmp = this.m1t_1.equals(other.k1p());
|
|
1814
1814
|
} else {
|
|
1815
1815
|
tmp = false;
|
|
1816
1816
|
}
|
|
@@ -1818,31 +1818,31 @@
|
|
|
1818
1818
|
};
|
|
1819
1819
|
function Companion_3() {
|
|
1820
1820
|
Companion_instance_4 = this;
|
|
1821
|
-
this.
|
|
1821
|
+
this.l1q_1 = LCHabColorSpaces_getInstance().m1q_1;
|
|
1822
1822
|
}
|
|
1823
1823
|
protoOf(Companion_3).equals = function (other) {
|
|
1824
|
-
return equals(LCHabColorSpaces_getInstance().
|
|
1824
|
+
return equals(LCHabColorSpaces_getInstance().m1q_1, other);
|
|
1825
1825
|
};
|
|
1826
1826
|
protoOf(Companion_3).hashCode = function () {
|
|
1827
|
-
return hashCode(LCHabColorSpaces_getInstance().
|
|
1827
|
+
return hashCode(LCHabColorSpaces_getInstance().m1q_1);
|
|
1828
1828
|
};
|
|
1829
|
-
protoOf(Companion_3).
|
|
1830
|
-
return this.
|
|
1829
|
+
protoOf(Companion_3).g1q = function (l, c, h, alpha) {
|
|
1830
|
+
return this.l1q_1.g1q(l, c, h, alpha);
|
|
1831
1831
|
};
|
|
1832
|
-
protoOf(Companion_3).
|
|
1833
|
-
return this.
|
|
1832
|
+
protoOf(Companion_3).k1p = function () {
|
|
1833
|
+
return this.l1q_1.k1p();
|
|
1834
1834
|
};
|
|
1835
|
-
protoOf(Companion_3).
|
|
1836
|
-
return this.
|
|
1835
|
+
protoOf(Companion_3).t2 = function () {
|
|
1836
|
+
return this.l1q_1.t2();
|
|
1837
1837
|
};
|
|
1838
|
-
protoOf(Companion_3).
|
|
1839
|
-
return this.
|
|
1838
|
+
protoOf(Companion_3).l1p = function () {
|
|
1839
|
+
return this.l1q_1.l1p();
|
|
1840
1840
|
};
|
|
1841
|
-
protoOf(Companion_3).
|
|
1842
|
-
return this.
|
|
1841
|
+
protoOf(Companion_3).f1p = function (color) {
|
|
1842
|
+
return this.l1q_1.f1p(color);
|
|
1843
1843
|
};
|
|
1844
|
-
protoOf(Companion_3).
|
|
1845
|
-
return this.
|
|
1844
|
+
protoOf(Companion_3).m1p = function (components) {
|
|
1845
|
+
return this.l1q_1.m1p(components);
|
|
1846
1846
|
};
|
|
1847
1847
|
var Companion_instance_4;
|
|
1848
1848
|
function Companion_getInstance_3() {
|
|
@@ -1852,55 +1852,55 @@
|
|
|
1852
1852
|
}
|
|
1853
1853
|
function LCHab(l, c, h, alpha, space) {
|
|
1854
1854
|
Companion_getInstance_3();
|
|
1855
|
-
this.
|
|
1856
|
-
this.
|
|
1857
|
-
this.
|
|
1858
|
-
this.
|
|
1859
|
-
this.
|
|
1855
|
+
this.t1r_1 = l;
|
|
1856
|
+
this.u1r_1 = c;
|
|
1857
|
+
this.v1r_1 = h;
|
|
1858
|
+
this.w1r_1 = alpha;
|
|
1859
|
+
this.x1r_1 = space;
|
|
1860
1860
|
}
|
|
1861
|
-
protoOf(LCHab).
|
|
1862
|
-
return this.t1r_1;
|
|
1863
|
-
};
|
|
1864
|
-
protoOf(LCHab).a1o = function () {
|
|
1865
|
-
return this.u1r_1;
|
|
1866
|
-
};
|
|
1867
|
-
protoOf(LCHab).b1o = function () {
|
|
1861
|
+
protoOf(LCHab).g1s = function () {
|
|
1868
1862
|
return this.v1r_1;
|
|
1869
1863
|
};
|
|
1870
1864
|
protoOf(LCHab).c1o = function () {
|
|
1871
|
-
return this.
|
|
1865
|
+
return this.w1r_1;
|
|
1866
|
+
};
|
|
1867
|
+
protoOf(LCHab).d1o = function () {
|
|
1868
|
+
return this.x1r_1;
|
|
1872
1869
|
};
|
|
1873
|
-
protoOf(LCHab).
|
|
1874
|
-
return this.
|
|
1870
|
+
protoOf(LCHab).e1o = function () {
|
|
1871
|
+
return this.m1o().e1o();
|
|
1875
1872
|
};
|
|
1876
|
-
protoOf(LCHab).
|
|
1877
|
-
|
|
1873
|
+
protoOf(LCHab).l1o = function () {
|
|
1874
|
+
return this.m1o().l1o();
|
|
1875
|
+
};
|
|
1876
|
+
protoOf(LCHab).m1o = function () {
|
|
1877
|
+
var tmp0 = this.u1r_1;
|
|
1878
1878
|
// Inline function 'com.github.ajalt.colormath.internal.fromPolarModel' call
|
|
1879
|
-
var h = this.
|
|
1879
|
+
var h = this.v1r_1;
|
|
1880
1880
|
var hDegrees = isNaN_0(h) ? 0.0 : degToRad(h);
|
|
1881
1881
|
// Inline function 'kotlin.math.cos' call
|
|
1882
1882
|
var a = tmp0 * Math.cos(hDegrees);
|
|
1883
1883
|
// Inline function 'kotlin.math.sin' call
|
|
1884
1884
|
var b = tmp0 * Math.sin(hDegrees);
|
|
1885
1885
|
// Inline function 'com.github.ajalt.colormath.model.LCHab.toLAB.<anonymous>' call
|
|
1886
|
-
return LABColorSpace_0(this.
|
|
1886
|
+
return LABColorSpace_0(this.x1r_1.k1p()).g1q(this.t1r_1, a, b, this.w1r_1);
|
|
1887
1887
|
};
|
|
1888
|
-
protoOf(LCHab).
|
|
1888
|
+
protoOf(LCHab).s1o = function () {
|
|
1889
1889
|
return this;
|
|
1890
1890
|
};
|
|
1891
|
-
protoOf(LCHab).
|
|
1891
|
+
protoOf(LCHab).x5 = function () {
|
|
1892
1892
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1893
|
-
return new Float32Array([this.
|
|
1893
|
+
return new Float32Array([this.t1r_1, this.u1r_1, this.v1r_1, this.w1r_1]);
|
|
1894
1894
|
};
|
|
1895
1895
|
protoOf(LCHab).toString = function () {
|
|
1896
|
-
return 'LCHab(l=' + this.
|
|
1896
|
+
return 'LCHab(l=' + this.t1r_1 + ', c=' + this.u1r_1 + ', h=' + this.v1r_1 + ', alpha=' + this.w1r_1 + ', space=' + toString(this.x1r_1) + ')';
|
|
1897
1897
|
};
|
|
1898
1898
|
protoOf(LCHab).hashCode = function () {
|
|
1899
|
-
var result = getNumberHashCode(this.
|
|
1900
|
-
result = imul(result, 31) + getNumberHashCode(this.s1r_1) | 0;
|
|
1901
|
-
result = imul(result, 31) + getNumberHashCode(this.t1r_1) | 0;
|
|
1899
|
+
var result = getNumberHashCode(this.t1r_1);
|
|
1902
1900
|
result = imul(result, 31) + getNumberHashCode(this.u1r_1) | 0;
|
|
1903
|
-
result = imul(result, 31) +
|
|
1901
|
+
result = imul(result, 31) + getNumberHashCode(this.v1r_1) | 0;
|
|
1902
|
+
result = imul(result, 31) + getNumberHashCode(this.w1r_1) | 0;
|
|
1903
|
+
result = imul(result, 31) + hashCode(this.x1r_1) | 0;
|
|
1904
1904
|
return result;
|
|
1905
1905
|
};
|
|
1906
1906
|
protoOf(LCHab).equals = function (other) {
|
|
@@ -1909,27 +1909,27 @@
|
|
|
1909
1909
|
if (!(other instanceof LCHab))
|
|
1910
1910
|
return false;
|
|
1911
1911
|
var tmp0_other_with_cast = other instanceof LCHab ? other : THROW_CCE();
|
|
1912
|
-
if (!equals(this.r1r_1, tmp0_other_with_cast.r1r_1))
|
|
1913
|
-
return false;
|
|
1914
|
-
if (!equals(this.s1r_1, tmp0_other_with_cast.s1r_1))
|
|
1915
|
-
return false;
|
|
1916
1912
|
if (!equals(this.t1r_1, tmp0_other_with_cast.t1r_1))
|
|
1917
1913
|
return false;
|
|
1918
1914
|
if (!equals(this.u1r_1, tmp0_other_with_cast.u1r_1))
|
|
1919
1915
|
return false;
|
|
1920
1916
|
if (!equals(this.v1r_1, tmp0_other_with_cast.v1r_1))
|
|
1921
1917
|
return false;
|
|
1918
|
+
if (!equals(this.w1r_1, tmp0_other_with_cast.w1r_1))
|
|
1919
|
+
return false;
|
|
1920
|
+
if (!equals(this.x1r_1, tmp0_other_with_cast.x1r_1))
|
|
1921
|
+
return false;
|
|
1922
1922
|
return true;
|
|
1923
1923
|
};
|
|
1924
1924
|
function LCHabColorSpace() {
|
|
1925
1925
|
}
|
|
1926
1926
|
function LCHabColorSpace_0(whitePoint) {
|
|
1927
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1927
|
+
return whitePoint.equals(Illuminant_getInstance().l1r_1) ? LCHabColorSpaces_getInstance().m1q_1 : whitePoint.equals(Illuminant_getInstance().j1r_1) ? LCHabColorSpaces_getInstance().n1q_1 : new LCHabColorSpaceImpl(whitePoint);
|
|
1928
1928
|
}
|
|
1929
1929
|
function LCHabColorSpaces() {
|
|
1930
1930
|
LCHabColorSpaces_instance = this;
|
|
1931
|
-
this.
|
|
1932
|
-
this.
|
|
1931
|
+
this.m1q_1 = new LCHabColorSpaceImpl(Illuminant_getInstance().l1r_1);
|
|
1932
|
+
this.n1q_1 = new LCHabColorSpaceImpl(Illuminant_getInstance().j1r_1);
|
|
1933
1933
|
}
|
|
1934
1934
|
var LCHabColorSpaces_instance;
|
|
1935
1935
|
function LCHabColorSpaces_getInstance() {
|
|
@@ -1938,37 +1938,37 @@
|
|
|
1938
1938
|
return LCHabColorSpaces_instance;
|
|
1939
1939
|
}
|
|
1940
1940
|
function LCHabColorSpaceImpl(whitePoint) {
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1941
|
+
this.o1t_1 = whitePoint;
|
|
1942
|
+
this.p1t_1 = componentInfoList([new ColorComponentInfo('L', false, 0.0, 100.0), new ColorComponentInfo('C', false, 0.0, 150.0), new ColorComponentInfo('H', true, 0.0, 360.0)]);
|
|
1943
1943
|
}
|
|
1944
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1945
|
-
return this.
|
|
1944
|
+
protoOf(LCHabColorSpaceImpl).k1p = function () {
|
|
1945
|
+
return this.o1t_1;
|
|
1946
1946
|
};
|
|
1947
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1947
|
+
protoOf(LCHabColorSpaceImpl).t2 = function () {
|
|
1948
1948
|
return 'LCHab';
|
|
1949
1949
|
};
|
|
1950
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1951
|
-
return this.
|
|
1950
|
+
protoOf(LCHabColorSpaceImpl).l1p = function () {
|
|
1951
|
+
return this.p1t_1;
|
|
1952
1952
|
};
|
|
1953
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1953
|
+
protoOf(LCHabColorSpaceImpl).f1p = function (color) {
|
|
1954
1954
|
// Inline function 'com.github.ajalt.colormath.internal.adaptToThis' call
|
|
1955
1955
|
var tmp;
|
|
1956
|
-
var tmp_0 = color.
|
|
1956
|
+
var tmp_0 = color.d1o();
|
|
1957
1957
|
var tmp0_safe_receiver = isInterface(tmp_0, WhitePointColorSpace) ? tmp_0 : null;
|
|
1958
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1959
|
-
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().
|
|
1958
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1p();
|
|
1959
|
+
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().l1r_1 : tmp1_elvis_lhs).equals(this.k1p())) {
|
|
1960
1960
|
// Inline function 'com.github.ajalt.colormath.model.LCHabColorSpaceImpl.convert.<anonymous>' call
|
|
1961
|
-
tmp = color.
|
|
1961
|
+
tmp = color.s1o();
|
|
1962
1962
|
} else {
|
|
1963
1963
|
// Inline function 'com.github.ajalt.colormath.model.LCHabColorSpaceImpl.convert.<anonymous>' call
|
|
1964
|
-
tmp = color.
|
|
1964
|
+
tmp = color.l1o().f1r(XYZColorSpace_0(this.k1p())).s1o();
|
|
1965
1965
|
}
|
|
1966
1966
|
return tmp;
|
|
1967
1967
|
};
|
|
1968
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1968
|
+
protoOf(LCHabColorSpaceImpl).m1p = function (components) {
|
|
1969
1969
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1970
1970
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1971
|
-
var size = this.
|
|
1971
|
+
var size = this.l1p().m();
|
|
1972
1972
|
var containsLower = size - 1 | 0;
|
|
1973
1973
|
var containsArg = components.length;
|
|
1974
1974
|
// Inline function 'kotlin.require' call
|
|
@@ -1991,21 +1991,21 @@
|
|
|
1991
1991
|
}
|
|
1992
1992
|
// Inline function 'com.github.ajalt.colormath.model.LCHabColorSpaceImpl.create.stub_for_inlining' call
|
|
1993
1993
|
var p3 = tmp;
|
|
1994
|
-
return this.
|
|
1994
|
+
return this.g1q(tmp3, tmp4, tmp5, p3);
|
|
1995
1995
|
};
|
|
1996
1996
|
protoOf(LCHabColorSpaceImpl).toString = function () {
|
|
1997
|
-
return 'LCHabColorSpace(' + this.
|
|
1997
|
+
return 'LCHabColorSpace(' + this.o1t_1.toString() + ')';
|
|
1998
1998
|
};
|
|
1999
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1999
|
+
protoOf(LCHabColorSpaceImpl).g1q = function (l, c, h, alpha) {
|
|
2000
2000
|
return new LCHab(l, c, h, alpha, this);
|
|
2001
2001
|
};
|
|
2002
2002
|
protoOf(LCHabColorSpaceImpl).hashCode = function () {
|
|
2003
|
-
return this.
|
|
2003
|
+
return this.o1t_1.hashCode();
|
|
2004
2004
|
};
|
|
2005
2005
|
protoOf(LCHabColorSpaceImpl).equals = function (other) {
|
|
2006
2006
|
var tmp;
|
|
2007
2007
|
if (!(other == null) ? isInterface(other, LCHabColorSpace) : false) {
|
|
2008
|
-
tmp = this.
|
|
2008
|
+
tmp = this.o1t_1.equals(other.k1p());
|
|
2009
2009
|
} else {
|
|
2010
2010
|
tmp = false;
|
|
2011
2011
|
}
|
|
@@ -2013,21 +2013,21 @@
|
|
|
2013
2013
|
};
|
|
2014
2014
|
function Companion_4() {
|
|
2015
2015
|
Companion_instance_5 = this;
|
|
2016
|
-
this.
|
|
2016
|
+
this.p1q_1 = threeComponentInfo('l', 0.0, 1.0, 'a', -0.4, 0.4, 'b', -0.4, 0.4);
|
|
2017
2017
|
}
|
|
2018
|
-
protoOf(Companion_4).
|
|
2018
|
+
protoOf(Companion_4).t2 = function () {
|
|
2019
2019
|
return 'Oklab';
|
|
2020
2020
|
};
|
|
2021
|
-
protoOf(Companion_4).
|
|
2022
|
-
return this.
|
|
2021
|
+
protoOf(Companion_4).l1p = function () {
|
|
2022
|
+
return this.p1q_1;
|
|
2023
2023
|
};
|
|
2024
|
-
protoOf(Companion_4).
|
|
2025
|
-
return color.
|
|
2024
|
+
protoOf(Companion_4).f1p = function (color) {
|
|
2025
|
+
return color.z1o();
|
|
2026
2026
|
};
|
|
2027
|
-
protoOf(Companion_4).
|
|
2027
|
+
protoOf(Companion_4).m1p = function (components) {
|
|
2028
2028
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2029
2029
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2030
|
-
var size = this.
|
|
2030
|
+
var size = this.l1p().m();
|
|
2031
2031
|
var containsLower = size - 1 | 0;
|
|
2032
2032
|
var containsArg = components.length;
|
|
2033
2033
|
// Inline function 'kotlin.require' call
|
|
@@ -2069,45 +2069,45 @@
|
|
|
2069
2069
|
function Oklab(l, a, b, alpha) {
|
|
2070
2070
|
Companion_getInstance_4();
|
|
2071
2071
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
2072
|
-
this.
|
|
2073
|
-
this.
|
|
2074
|
-
this.
|
|
2075
|
-
this.
|
|
2072
|
+
this.b1p_1 = l;
|
|
2073
|
+
this.c1p_1 = a;
|
|
2074
|
+
this.d1p_1 = b;
|
|
2075
|
+
this.e1p_1 = alpha;
|
|
2076
2076
|
}
|
|
2077
|
-
protoOf(Oklab).
|
|
2078
|
-
return this.
|
|
2077
|
+
protoOf(Oklab).c1o = function () {
|
|
2078
|
+
return this.e1p_1;
|
|
2079
2079
|
};
|
|
2080
|
-
protoOf(Oklab).
|
|
2080
|
+
protoOf(Oklab).d1o = function () {
|
|
2081
2081
|
return Companion_getInstance_4();
|
|
2082
2082
|
};
|
|
2083
|
-
protoOf(Oklab).
|
|
2083
|
+
protoOf(Oklab).e1o = function () {
|
|
2084
2084
|
// Inline function 'com.github.ajalt.colormath.model.Oklab.calculateConeResponse' call
|
|
2085
|
-
var ll = this.
|
|
2086
|
-
var mm = this.
|
|
2087
|
-
var ss = this.
|
|
2085
|
+
var ll = this.b1p_1 + 0.3963377774 * this.c1p_1 + 0.2158037573 * this.d1p_1;
|
|
2086
|
+
var mm = this.b1p_1 - 0.1055613458 * this.c1p_1 - 0.0638541728 * this.d1p_1;
|
|
2087
|
+
var ss = this.b1p_1 - 0.0894841775 * this.c1p_1 - 1.291485548 * this.d1p_1;
|
|
2088
2088
|
var l = ll * ll * ll;
|
|
2089
2089
|
var m = mm * mm * mm;
|
|
2090
2090
|
var s = ss * ss * ss;
|
|
2091
2091
|
var r = +4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s;
|
|
2092
2092
|
var g = -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s;
|
|
2093
2093
|
var b = -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s;
|
|
2094
|
-
var f = Companion_getInstance_6().
|
|
2095
|
-
return Companion_getInstance_6().
|
|
2094
|
+
var f = Companion_getInstance_6().u1s();
|
|
2095
|
+
return Companion_getInstance_6().g1q(f.e1t(r), f.e1t(g), f.e1t(b), this.e1p_1);
|
|
2096
2096
|
};
|
|
2097
|
-
protoOf(Oklab).
|
|
2097
|
+
protoOf(Oklab).l1o = function () {
|
|
2098
2098
|
// Inline function 'com.github.ajalt.colormath.model.Oklab.calculateConeResponse' call
|
|
2099
|
-
var ll = this.
|
|
2100
|
-
var mm = this.
|
|
2101
|
-
var ss = this.
|
|
2099
|
+
var ll = this.b1p_1 + 0.3963377774 * this.c1p_1 + 0.2158037573 * this.d1p_1;
|
|
2100
|
+
var mm = this.b1p_1 - 0.1055613458 * this.c1p_1 - 0.0638541728 * this.d1p_1;
|
|
2101
|
+
var ss = this.b1p_1 - 0.0894841775 * this.c1p_1 - 1.291485548 * this.d1p_1;
|
|
2102
2102
|
var l = ll * ll * ll;
|
|
2103
2103
|
var m = mm * mm * mm;
|
|
2104
2104
|
var s = ss * ss * ss;
|
|
2105
|
-
return Companion_getInstance_8().
|
|
2105
|
+
return Companion_getInstance_8().f1t(+1.2270138511 * l - 0.5577999807 * m + 0.281256149 * s, -0.0405801784 * l + 1.1122568696 * m - 0.0716766787 * s, -0.0763812845 * l - 0.4214819784 * m + 1.5861632204 * s, this.e1p_1);
|
|
2106
2106
|
};
|
|
2107
|
-
protoOf(Oklab).
|
|
2108
|
-
var tmp0 = this.
|
|
2107
|
+
protoOf(Oklab).a1p = function () {
|
|
2108
|
+
var tmp0 = this.c1p_1;
|
|
2109
2109
|
// Inline function 'com.github.ajalt.colormath.internal.toPolarModel' call
|
|
2110
|
-
var b = this.
|
|
2110
|
+
var b = this.d1p_1;
|
|
2111
2111
|
// Inline function 'kotlin.math.sqrt' call
|
|
2112
2112
|
var x = tmp0 * tmp0 + b * b;
|
|
2113
2113
|
var c = Math.sqrt(x);
|
|
@@ -2122,23 +2122,23 @@
|
|
|
2122
2122
|
var h = tmp;
|
|
2123
2123
|
// Inline function 'com.github.ajalt.colormath.model.Oklab.toOklch.<anonymous>' call
|
|
2124
2124
|
var h_0 = normalizeDeg_0(h);
|
|
2125
|
-
return new Oklch(this.
|
|
2125
|
+
return new Oklch(this.b1p_1, c, h_0, this.e1p_1);
|
|
2126
2126
|
};
|
|
2127
|
-
protoOf(Oklab).
|
|
2127
|
+
protoOf(Oklab).z1o = function () {
|
|
2128
2128
|
return this;
|
|
2129
2129
|
};
|
|
2130
|
-
protoOf(Oklab).
|
|
2130
|
+
protoOf(Oklab).x5 = function () {
|
|
2131
2131
|
// Inline function 'kotlin.floatArrayOf' call
|
|
2132
|
-
return new Float32Array([this.
|
|
2132
|
+
return new Float32Array([this.b1p_1, this.c1p_1, this.d1p_1, this.e1p_1]);
|
|
2133
2133
|
};
|
|
2134
2134
|
protoOf(Oklab).toString = function () {
|
|
2135
|
-
return 'Oklab(l=' + this.
|
|
2135
|
+
return 'Oklab(l=' + this.b1p_1 + ', a=' + this.c1p_1 + ', b=' + this.d1p_1 + ', alpha=' + this.e1p_1 + ')';
|
|
2136
2136
|
};
|
|
2137
2137
|
protoOf(Oklab).hashCode = function () {
|
|
2138
|
-
var result = getNumberHashCode(this.
|
|
2139
|
-
result = imul(result, 31) + getNumberHashCode(this.a1p_1) | 0;
|
|
2140
|
-
result = imul(result, 31) + getNumberHashCode(this.b1p_1) | 0;
|
|
2138
|
+
var result = getNumberHashCode(this.b1p_1);
|
|
2141
2139
|
result = imul(result, 31) + getNumberHashCode(this.c1p_1) | 0;
|
|
2140
|
+
result = imul(result, 31) + getNumberHashCode(this.d1p_1) | 0;
|
|
2141
|
+
result = imul(result, 31) + getNumberHashCode(this.e1p_1) | 0;
|
|
2142
2142
|
return result;
|
|
2143
2143
|
};
|
|
2144
2144
|
protoOf(Oklab).equals = function (other) {
|
|
@@ -2147,33 +2147,33 @@
|
|
|
2147
2147
|
if (!(other instanceof Oklab))
|
|
2148
2148
|
return false;
|
|
2149
2149
|
var tmp0_other_with_cast = other instanceof Oklab ? other : THROW_CCE();
|
|
2150
|
-
if (!equals(this.z1o_1, tmp0_other_with_cast.z1o_1))
|
|
2151
|
-
return false;
|
|
2152
|
-
if (!equals(this.a1p_1, tmp0_other_with_cast.a1p_1))
|
|
2153
|
-
return false;
|
|
2154
2150
|
if (!equals(this.b1p_1, tmp0_other_with_cast.b1p_1))
|
|
2155
2151
|
return false;
|
|
2156
2152
|
if (!equals(this.c1p_1, tmp0_other_with_cast.c1p_1))
|
|
2157
2153
|
return false;
|
|
2154
|
+
if (!equals(this.d1p_1, tmp0_other_with_cast.d1p_1))
|
|
2155
|
+
return false;
|
|
2156
|
+
if (!equals(this.e1p_1, tmp0_other_with_cast.e1p_1))
|
|
2157
|
+
return false;
|
|
2158
2158
|
return true;
|
|
2159
2159
|
};
|
|
2160
2160
|
function Companion_5() {
|
|
2161
2161
|
Companion_instance_6 = this;
|
|
2162
|
-
this.
|
|
2162
|
+
this.q1q_1 = componentInfoList([new ColorComponentInfo('l', false, 0.0, 1.0), new ColorComponentInfo('c', false, 0.0, 0.4), new ColorComponentInfo('h', true, 0.0, 360.0)]);
|
|
2163
2163
|
}
|
|
2164
|
-
protoOf(Companion_5).
|
|
2164
|
+
protoOf(Companion_5).t2 = function () {
|
|
2165
2165
|
return 'Oklch';
|
|
2166
2166
|
};
|
|
2167
|
-
protoOf(Companion_5).
|
|
2168
|
-
return this.
|
|
2167
|
+
protoOf(Companion_5).l1p = function () {
|
|
2168
|
+
return this.q1q_1;
|
|
2169
2169
|
};
|
|
2170
|
-
protoOf(Companion_5).
|
|
2171
|
-
return color.
|
|
2170
|
+
protoOf(Companion_5).f1p = function (color) {
|
|
2171
|
+
return color.a1p();
|
|
2172
2172
|
};
|
|
2173
|
-
protoOf(Companion_5).
|
|
2173
|
+
protoOf(Companion_5).m1p = function (components) {
|
|
2174
2174
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2175
2175
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2176
|
-
var size = this.
|
|
2176
|
+
var size = this.l1p().m();
|
|
2177
2177
|
var containsLower = size - 1 | 0;
|
|
2178
2178
|
var containsArg = components.length;
|
|
2179
2179
|
// Inline function 'kotlin.require' call
|
|
@@ -2207,53 +2207,53 @@
|
|
|
2207
2207
|
function Oklch(l, c, h, alpha) {
|
|
2208
2208
|
Companion_getInstance_5();
|
|
2209
2209
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
2210
|
-
this.
|
|
2211
|
-
this.
|
|
2212
|
-
this.
|
|
2213
|
-
this.
|
|
2210
|
+
this.c1s_1 = l;
|
|
2211
|
+
this.d1s_1 = c;
|
|
2212
|
+
this.e1s_1 = h;
|
|
2213
|
+
this.f1s_1 = alpha;
|
|
2214
2214
|
}
|
|
2215
|
-
protoOf(Oklch).
|
|
2216
|
-
return this.
|
|
2215
|
+
protoOf(Oklch).g1s = function () {
|
|
2216
|
+
return this.e1s_1;
|
|
2217
2217
|
};
|
|
2218
|
-
protoOf(Oklch).
|
|
2219
|
-
return this.
|
|
2218
|
+
protoOf(Oklch).c1o = function () {
|
|
2219
|
+
return this.f1s_1;
|
|
2220
2220
|
};
|
|
2221
|
-
protoOf(Oklch).
|
|
2221
|
+
protoOf(Oklch).d1o = function () {
|
|
2222
2222
|
return Companion_getInstance_5();
|
|
2223
2223
|
};
|
|
2224
|
-
protoOf(Oklch).
|
|
2225
|
-
return this.
|
|
2224
|
+
protoOf(Oklch).e1o = function () {
|
|
2225
|
+
return this.z1o().e1o();
|
|
2226
2226
|
};
|
|
2227
|
-
protoOf(Oklch).
|
|
2228
|
-
return this.
|
|
2227
|
+
protoOf(Oklch).l1o = function () {
|
|
2228
|
+
return this.z1o().l1o();
|
|
2229
2229
|
};
|
|
2230
|
-
protoOf(Oklch).
|
|
2231
|
-
var tmp0 = this.
|
|
2230
|
+
protoOf(Oklch).z1o = function () {
|
|
2231
|
+
var tmp0 = this.d1s_1;
|
|
2232
2232
|
// Inline function 'com.github.ajalt.colormath.internal.fromPolarModel' call
|
|
2233
|
-
var h = this.
|
|
2233
|
+
var h = this.e1s_1;
|
|
2234
2234
|
var hDegrees = isNaN_0(h) ? 0.0 : degToRad(h);
|
|
2235
2235
|
// Inline function 'kotlin.math.cos' call
|
|
2236
2236
|
var a = tmp0 * Math.cos(hDegrees);
|
|
2237
2237
|
// Inline function 'kotlin.math.sin' call
|
|
2238
2238
|
var b = tmp0 * Math.sin(hDegrees);
|
|
2239
2239
|
// Inline function 'com.github.ajalt.colormath.model.Oklch.toOklab.<anonymous>' call
|
|
2240
|
-
return new Oklab(this.
|
|
2240
|
+
return new Oklab(this.c1s_1, a, b, this.f1s_1);
|
|
2241
2241
|
};
|
|
2242
|
-
protoOf(Oklch).
|
|
2242
|
+
protoOf(Oklch).a1p = function () {
|
|
2243
2243
|
return this;
|
|
2244
2244
|
};
|
|
2245
|
-
protoOf(Oklch).
|
|
2245
|
+
protoOf(Oklch).x5 = function () {
|
|
2246
2246
|
// Inline function 'kotlin.floatArrayOf' call
|
|
2247
|
-
return new Float32Array([this.
|
|
2247
|
+
return new Float32Array([this.c1s_1, this.d1s_1, this.e1s_1, this.f1s_1]);
|
|
2248
2248
|
};
|
|
2249
2249
|
protoOf(Oklch).toString = function () {
|
|
2250
|
-
return 'Oklch(l=' + this.
|
|
2250
|
+
return 'Oklch(l=' + this.c1s_1 + ', c=' + this.d1s_1 + ', h=' + this.e1s_1 + ', alpha=' + this.f1s_1 + ')';
|
|
2251
2251
|
};
|
|
2252
2252
|
protoOf(Oklch).hashCode = function () {
|
|
2253
|
-
var result = getNumberHashCode(this.
|
|
2254
|
-
result = imul(result, 31) + getNumberHashCode(this.b1s_1) | 0;
|
|
2255
|
-
result = imul(result, 31) + getNumberHashCode(this.c1s_1) | 0;
|
|
2253
|
+
var result = getNumberHashCode(this.c1s_1);
|
|
2256
2254
|
result = imul(result, 31) + getNumberHashCode(this.d1s_1) | 0;
|
|
2255
|
+
result = imul(result, 31) + getNumberHashCode(this.e1s_1) | 0;
|
|
2256
|
+
result = imul(result, 31) + getNumberHashCode(this.f1s_1) | 0;
|
|
2257
2257
|
return result;
|
|
2258
2258
|
};
|
|
2259
2259
|
protoOf(Oklch).equals = function (other) {
|
|
@@ -2262,30 +2262,30 @@
|
|
|
2262
2262
|
if (!(other instanceof Oklch))
|
|
2263
2263
|
return false;
|
|
2264
2264
|
var tmp0_other_with_cast = other instanceof Oklch ? other : THROW_CCE();
|
|
2265
|
-
if (!equals(this.a1s_1, tmp0_other_with_cast.a1s_1))
|
|
2266
|
-
return false;
|
|
2267
|
-
if (!equals(this.b1s_1, tmp0_other_with_cast.b1s_1))
|
|
2268
|
-
return false;
|
|
2269
2265
|
if (!equals(this.c1s_1, tmp0_other_with_cast.c1s_1))
|
|
2270
2266
|
return false;
|
|
2271
2267
|
if (!equals(this.d1s_1, tmp0_other_with_cast.d1s_1))
|
|
2272
2268
|
return false;
|
|
2269
|
+
if (!equals(this.e1s_1, tmp0_other_with_cast.e1s_1))
|
|
2270
|
+
return false;
|
|
2271
|
+
if (!equals(this.f1s_1, tmp0_other_with_cast.f1s_1))
|
|
2272
|
+
return false;
|
|
2273
2273
|
return true;
|
|
2274
2274
|
};
|
|
2275
2275
|
function GammaTransferFunctions(gamma) {
|
|
2276
|
-
this.
|
|
2276
|
+
this.r1t_1 = gamma;
|
|
2277
2277
|
}
|
|
2278
|
-
protoOf(GammaTransferFunctions).
|
|
2279
|
-
return spow(x, this.
|
|
2278
|
+
protoOf(GammaTransferFunctions).d1t = function (x) {
|
|
2279
|
+
return spow(x, this.r1t_1);
|
|
2280
2280
|
};
|
|
2281
|
-
protoOf(GammaTransferFunctions).
|
|
2282
|
-
return spow(x, 1.0 / this.
|
|
2281
|
+
protoOf(GammaTransferFunctions).e1t = function (x) {
|
|
2282
|
+
return spow(x, 1.0 / this.r1t_1);
|
|
2283
2283
|
};
|
|
2284
2284
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
2285
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
2285
|
+
return 'GammaTransferFunctions(gamma=' + this.r1t_1 + ')';
|
|
2286
2286
|
};
|
|
2287
2287
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
2288
|
-
return getNumberHashCode(this.
|
|
2288
|
+
return getNumberHashCode(this.r1t_1);
|
|
2289
2289
|
};
|
|
2290
2290
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
2291
2291
|
if (this === other)
|
|
@@ -2293,16 +2293,16 @@
|
|
|
2293
2293
|
if (!(other instanceof GammaTransferFunctions))
|
|
2294
2294
|
return false;
|
|
2295
2295
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
2296
|
-
if (!equals(this.
|
|
2296
|
+
if (!equals(this.r1t_1, tmp0_other_with_cast.r1t_1))
|
|
2297
2297
|
return false;
|
|
2298
2298
|
return true;
|
|
2299
2299
|
};
|
|
2300
2300
|
function LinearTransferFunctions() {
|
|
2301
2301
|
}
|
|
2302
|
-
protoOf(LinearTransferFunctions).
|
|
2302
|
+
protoOf(LinearTransferFunctions).d1t = function (x) {
|
|
2303
2303
|
return x;
|
|
2304
2304
|
};
|
|
2305
|
-
protoOf(LinearTransferFunctions).
|
|
2305
|
+
protoOf(LinearTransferFunctions).e1t = function (x) {
|
|
2306
2306
|
return x;
|
|
2307
2307
|
};
|
|
2308
2308
|
var LinearTransferFunctions_instance;
|
|
@@ -2313,49 +2313,49 @@
|
|
|
2313
2313
|
}
|
|
2314
2314
|
function Companion_6() {
|
|
2315
2315
|
Companion_instance_7 = this;
|
|
2316
|
-
this.
|
|
2316
|
+
this.e1q_1 = RGBColorSpaces_getInstance().r1q_1;
|
|
2317
2317
|
}
|
|
2318
2318
|
protoOf(Companion_6).equals = function (other) {
|
|
2319
|
-
return equals(RGBColorSpaces_getInstance().
|
|
2319
|
+
return equals(RGBColorSpaces_getInstance().r1q_1, other);
|
|
2320
2320
|
};
|
|
2321
2321
|
protoOf(Companion_6).hashCode = function () {
|
|
2322
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
2322
|
+
return hashCode(RGBColorSpaces_getInstance().r1q_1);
|
|
2323
2323
|
};
|
|
2324
|
-
protoOf(Companion_6).
|
|
2325
|
-
return this.
|
|
2324
|
+
protoOf(Companion_6).g1q = function (r, g, b, alpha) {
|
|
2325
|
+
return this.e1q_1.g1q(r, g, b, alpha);
|
|
2326
2326
|
};
|
|
2327
|
-
protoOf(Companion_6).
|
|
2328
|
-
return this.
|
|
2327
|
+
protoOf(Companion_6).f1t = function (r, g, b, alpha) {
|
|
2328
|
+
return this.e1q_1.f1t(r, g, b, alpha);
|
|
2329
2329
|
};
|
|
2330
|
-
protoOf(Companion_6).
|
|
2331
|
-
return this.
|
|
2330
|
+
protoOf(Companion_6).f1q = function (hex) {
|
|
2331
|
+
return this.e1q_1.f1q(hex);
|
|
2332
2332
|
};
|
|
2333
|
-
protoOf(Companion_6).
|
|
2334
|
-
return this.
|
|
2333
|
+
protoOf(Companion_6).k1s = function (r, g, b, alpha) {
|
|
2334
|
+
return this.e1q_1.k1s(r, g, b, alpha);
|
|
2335
2335
|
};
|
|
2336
|
-
protoOf(Companion_6).
|
|
2337
|
-
return this.
|
|
2336
|
+
protoOf(Companion_6).u1s = function () {
|
|
2337
|
+
return this.e1q_1.u1s();
|
|
2338
2338
|
};
|
|
2339
|
-
protoOf(Companion_6).
|
|
2340
|
-
return this.
|
|
2339
|
+
protoOf(Companion_6).s1t = function () {
|
|
2340
|
+
return this.e1q_1.s1t();
|
|
2341
2341
|
};
|
|
2342
|
-
protoOf(Companion_6).
|
|
2343
|
-
return this.
|
|
2342
|
+
protoOf(Companion_6).t1t = function () {
|
|
2343
|
+
return this.e1q_1.t1t();
|
|
2344
2344
|
};
|
|
2345
|
-
protoOf(Companion_6).
|
|
2346
|
-
return this.
|
|
2345
|
+
protoOf(Companion_6).k1p = function () {
|
|
2346
|
+
return this.e1q_1.k1p();
|
|
2347
2347
|
};
|
|
2348
|
-
protoOf(Companion_6).
|
|
2349
|
-
return this.
|
|
2348
|
+
protoOf(Companion_6).t2 = function () {
|
|
2349
|
+
return this.e1q_1.t2();
|
|
2350
2350
|
};
|
|
2351
|
-
protoOf(Companion_6).
|
|
2352
|
-
return this.
|
|
2351
|
+
protoOf(Companion_6).l1p = function () {
|
|
2352
|
+
return this.e1q_1.l1p();
|
|
2353
2353
|
};
|
|
2354
|
-
protoOf(Companion_6).
|
|
2355
|
-
return this.
|
|
2354
|
+
protoOf(Companion_6).f1p = function (color) {
|
|
2355
|
+
return this.e1q_1.f1p(color);
|
|
2356
2356
|
};
|
|
2357
|
-
protoOf(Companion_6).
|
|
2358
|
-
return this.
|
|
2357
|
+
protoOf(Companion_6).m1p = function (components) {
|
|
2358
|
+
return this.e1q_1.m1p(components);
|
|
2359
2359
|
};
|
|
2360
2360
|
var Companion_instance_7;
|
|
2361
2361
|
function Companion_getInstance_6() {
|
|
@@ -2365,37 +2365,37 @@
|
|
|
2365
2365
|
}
|
|
2366
2366
|
function RGB(r, g, b, alpha, space) {
|
|
2367
2367
|
Companion_getInstance_6();
|
|
2368
|
-
this.
|
|
2369
|
-
this.
|
|
2370
|
-
this.
|
|
2371
|
-
this.
|
|
2372
|
-
this.
|
|
2368
|
+
this.g1o_1 = r;
|
|
2369
|
+
this.h1o_1 = g;
|
|
2370
|
+
this.i1o_1 = b;
|
|
2371
|
+
this.j1o_1 = alpha;
|
|
2372
|
+
this.k1o_1 = space;
|
|
2373
2373
|
}
|
|
2374
|
-
protoOf(RGB).
|
|
2375
|
-
return this.
|
|
2374
|
+
protoOf(RGB).c1o = function () {
|
|
2375
|
+
return this.j1o_1;
|
|
2376
2376
|
};
|
|
2377
|
-
protoOf(RGB).
|
|
2378
|
-
return this.
|
|
2377
|
+
protoOf(RGB).d1o = function () {
|
|
2378
|
+
return this.k1o_1;
|
|
2379
2379
|
};
|
|
2380
|
-
protoOf(RGB).
|
|
2380
|
+
protoOf(RGB).o1r = function () {
|
|
2381
2381
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
2382
2382
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toRGBInt.<anonymous>' call
|
|
2383
|
-
var $this$toSRGB = this.
|
|
2384
|
-
return _RGBInt___init__impl__lqova7_1($this$toSRGB.
|
|
2383
|
+
var $this$toSRGB = this.u1t(SRGB_getInstance());
|
|
2384
|
+
return _RGBInt___init__impl__lqova7_1($this$toSRGB.g1o_1, $this$toSRGB.h1o_1, $this$toSRGB.i1o_1, nanToOne($this$toSRGB.j1o_1));
|
|
2385
2385
|
};
|
|
2386
|
-
protoOf(RGB).
|
|
2387
|
-
var f = SRGB_getInstance().
|
|
2388
|
-
return equals(this.
|
|
2386
|
+
protoOf(RGB).u1t = function (space) {
|
|
2387
|
+
var f = SRGB_getInstance().u1s();
|
|
2388
|
+
return equals(this.k1o_1, space) ? this : equals(this.k1o_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().s1q_1) ? space.g1q(f.d1t(this.g1o_1), f.d1t(this.h1o_1), f.d1t(this.i1o_1), this.j1o_1) : equals(this.k1o_1, RGBColorSpaces_getInstance().s1q_1) && equals(space, SRGB_getInstance()) ? space.g1q(f.e1t(this.g1o_1), f.e1t(this.h1o_1), f.e1t(this.i1o_1), this.j1o_1) : this.l1o().w1t(space);
|
|
2389
2389
|
};
|
|
2390
|
-
protoOf(RGB).
|
|
2390
|
+
protoOf(RGB).f1o = function () {
|
|
2391
2391
|
var tmp$ret$3;
|
|
2392
2392
|
$l$block: {
|
|
2393
2393
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
2394
2394
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
2395
|
-
var $this$toSRGB = this.
|
|
2396
|
-
var r = $this$toSRGB.
|
|
2397
|
-
var g = $this$toSRGB.
|
|
2398
|
-
var b = $this$toSRGB.
|
|
2395
|
+
var $this$toSRGB = this.u1t(SRGB_getInstance());
|
|
2396
|
+
var r = $this$toSRGB.g1o_1;
|
|
2397
|
+
var g = $this$toSRGB.h1o_1;
|
|
2398
|
+
var b = $this$toSRGB.i1o_1;
|
|
2399
2399
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2400
2400
|
var min = Math.min(r, g, b);
|
|
2401
2401
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -2406,33 +2406,33 @@
|
|
|
2406
2406
|
var h_0 = normalizeDeg(h);
|
|
2407
2407
|
var l = (min + max) / 2.0;
|
|
2408
2408
|
var s = max === min ? 0.0 : l <= 0.5 ? chroma / (max + min) : chroma / (2 - max - min);
|
|
2409
|
-
tmp$ret$3 = new HSL(h_0, s, l, this.
|
|
2409
|
+
tmp$ret$3 = new HSL(h_0, s, l, this.j1o_1);
|
|
2410
2410
|
break $l$block;
|
|
2411
2411
|
}
|
|
2412
2412
|
return tmp$ret$3;
|
|
2413
2413
|
};
|
|
2414
|
-
protoOf(RGB).
|
|
2415
|
-
var f = this.
|
|
2416
|
-
var tmp0 = _Matrix___init__impl__q3kp4w(this.
|
|
2417
|
-
var tmp1 = f.
|
|
2418
|
-
var tmp2 = f.
|
|
2414
|
+
protoOf(RGB).l1o = function () {
|
|
2415
|
+
var f = this.k1o_1.u1s();
|
|
2416
|
+
var tmp0 = _Matrix___init__impl__q3kp4w(this.k1o_1.s1t());
|
|
2417
|
+
var tmp1 = f.d1t(this.g1o_1);
|
|
2418
|
+
var tmp2 = f.d1t(this.h1o_1);
|
|
2419
2419
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
2420
|
-
var v2 = f.
|
|
2420
|
+
var v2 = f.d1t(this.i1o_1);
|
|
2421
2421
|
var tmp4 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
2422
2422
|
var tmp5 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
2423
2423
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
2424
2424
|
var z = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
|
|
2425
|
-
return XYZColorSpace_0(this.
|
|
2425
|
+
return XYZColorSpace_0(this.k1o_1.k1p()).g1q(tmp4, tmp5, z, this.j1o_1);
|
|
2426
2426
|
};
|
|
2427
|
-
protoOf(RGB).
|
|
2427
|
+
protoOf(RGB).y1o = function () {
|
|
2428
2428
|
var tmp$ret$3;
|
|
2429
2429
|
$l$block: {
|
|
2430
2430
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
2431
2431
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
2432
|
-
var $this$toSRGB = this.
|
|
2433
|
-
var r = $this$toSRGB.
|
|
2434
|
-
var g = $this$toSRGB.
|
|
2435
|
-
var b = $this$toSRGB.
|
|
2432
|
+
var $this$toSRGB = this.u1t(SRGB_getInstance());
|
|
2433
|
+
var r = $this$toSRGB.g1o_1;
|
|
2434
|
+
var g = $this$toSRGB.h1o_1;
|
|
2435
|
+
var b = $this$toSRGB.i1o_1;
|
|
2436
2436
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2437
2437
|
var min = Math.min(r, g, b);
|
|
2438
2438
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -2441,17 +2441,17 @@
|
|
|
2441
2441
|
var h = (chroma < 1.0E-7 ? NaN : r === max ? (g - b) / chroma : g === max ? 2 + (b - r) / chroma : b === max ? 4 + (r - g) / chroma : 0.0) * 60;
|
|
2442
2442
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHWB.<anonymous>' call
|
|
2443
2443
|
var hue = normalizeDeg(h);
|
|
2444
|
-
tmp$ret$3 = new HWB(hue, min, 1.0 - max, this.
|
|
2444
|
+
tmp$ret$3 = new HWB(hue, min, 1.0 - max, this.j1o_1);
|
|
2445
2445
|
break $l$block;
|
|
2446
2446
|
}
|
|
2447
2447
|
return tmp$ret$3;
|
|
2448
2448
|
};
|
|
2449
|
-
protoOf(RGB).
|
|
2450
|
-
if (!equals(this.
|
|
2451
|
-
return this.
|
|
2452
|
-
var r = this.
|
|
2453
|
-
var g = this.
|
|
2454
|
-
var b = this.
|
|
2449
|
+
protoOf(RGB).z1o = function () {
|
|
2450
|
+
if (!equals(this.k1o_1, RGBColorSpaces_getInstance().r1q_1))
|
|
2451
|
+
return this.l1o().z1o();
|
|
2452
|
+
var r = this.k1o_1.u1s().d1t(this.g1o_1);
|
|
2453
|
+
var g = this.k1o_1.u1s().d1t(this.h1o_1);
|
|
2454
|
+
var b = this.k1o_1.u1s().d1t(this.i1o_1);
|
|
2455
2455
|
var l = 0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b;
|
|
2456
2456
|
var m = 0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b;
|
|
2457
2457
|
var s = 0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b;
|
|
@@ -2461,24 +2461,24 @@
|
|
|
2461
2461
|
var mm = Math.cbrt(m);
|
|
2462
2462
|
// Inline function 'kotlin.math.cbrt' call
|
|
2463
2463
|
var ss = Math.cbrt(s);
|
|
2464
|
-
return Oklab_init_$Create$(0.21045426 * ll + 0.7936178 * mm - 0.004072047 * ss, 1.9779985 * ll - 2.4285922 * mm + 0.4505937 * ss, 0.025904037 * ll + 0.78277177 * mm - 0.80867577 * ss, this.
|
|
2464
|
+
return Oklab_init_$Create$(0.21045426 * ll + 0.7936178 * mm - 0.004072047 * ss, 1.9779985 * ll - 2.4285922 * mm + 0.4505937 * ss, 0.025904037 * ll + 0.78277177 * mm - 0.80867577 * ss, this.j1o_1);
|
|
2465
2465
|
};
|
|
2466
|
-
protoOf(RGB).
|
|
2467
|
-
return this.
|
|
2466
|
+
protoOf(RGB).e1o = function () {
|
|
2467
|
+
return this.u1t(RGBColorSpaces_getInstance().r1q_1);
|
|
2468
2468
|
};
|
|
2469
|
-
protoOf(RGB).
|
|
2469
|
+
protoOf(RGB).x5 = function () {
|
|
2470
2470
|
// Inline function 'kotlin.floatArrayOf' call
|
|
2471
|
-
return new Float32Array([this.
|
|
2471
|
+
return new Float32Array([this.g1o_1, this.h1o_1, this.i1o_1, this.j1o_1]);
|
|
2472
2472
|
};
|
|
2473
2473
|
protoOf(RGB).toString = function () {
|
|
2474
|
-
return 'RGB(r=' + this.
|
|
2474
|
+
return 'RGB(r=' + this.g1o_1 + ', g=' + this.h1o_1 + ', b=' + this.i1o_1 + ', alpha=' + this.j1o_1 + ', space=' + toString(this.k1o_1) + ')';
|
|
2475
2475
|
};
|
|
2476
2476
|
protoOf(RGB).hashCode = function () {
|
|
2477
|
-
var result = getNumberHashCode(this.
|
|
2478
|
-
result = imul(result, 31) + getNumberHashCode(this.f1o_1) | 0;
|
|
2479
|
-
result = imul(result, 31) + getNumberHashCode(this.g1o_1) | 0;
|
|
2477
|
+
var result = getNumberHashCode(this.g1o_1);
|
|
2480
2478
|
result = imul(result, 31) + getNumberHashCode(this.h1o_1) | 0;
|
|
2481
|
-
result = imul(result, 31) +
|
|
2479
|
+
result = imul(result, 31) + getNumberHashCode(this.i1o_1) | 0;
|
|
2480
|
+
result = imul(result, 31) + getNumberHashCode(this.j1o_1) | 0;
|
|
2481
|
+
result = imul(result, 31) + hashCode(this.k1o_1) | 0;
|
|
2482
2482
|
return result;
|
|
2483
2483
|
};
|
|
2484
2484
|
protoOf(RGB).equals = function (other) {
|
|
@@ -2487,16 +2487,16 @@
|
|
|
2487
2487
|
if (!(other instanceof RGB))
|
|
2488
2488
|
return false;
|
|
2489
2489
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
2490
|
-
if (!equals(this.e1o_1, tmp0_other_with_cast.e1o_1))
|
|
2491
|
-
return false;
|
|
2492
|
-
if (!equals(this.f1o_1, tmp0_other_with_cast.f1o_1))
|
|
2493
|
-
return false;
|
|
2494
2490
|
if (!equals(this.g1o_1, tmp0_other_with_cast.g1o_1))
|
|
2495
2491
|
return false;
|
|
2496
2492
|
if (!equals(this.h1o_1, tmp0_other_with_cast.h1o_1))
|
|
2497
2493
|
return false;
|
|
2498
2494
|
if (!equals(this.i1o_1, tmp0_other_with_cast.i1o_1))
|
|
2499
2495
|
return false;
|
|
2496
|
+
if (!equals(this.j1o_1, tmp0_other_with_cast.j1o_1))
|
|
2497
|
+
return false;
|
|
2498
|
+
if (!equals(this.k1o_1, tmp0_other_with_cast.k1o_1))
|
|
2499
|
+
return false;
|
|
2500
2500
|
return true;
|
|
2501
2501
|
};
|
|
2502
2502
|
function parseHex(_this__u8e3s4, startIndex) {
|
|
@@ -2582,17 +2582,17 @@
|
|
|
2582
2582
|
}
|
|
2583
2583
|
var ACES_AP1_B;
|
|
2584
2584
|
function RGBColorSpaces$SRGB$lambda($this$RGBColorSpaceImpl, it) {
|
|
2585
|
-
return it.
|
|
2585
|
+
return it.e1o();
|
|
2586
2586
|
}
|
|
2587
2587
|
function RGBColorSpaces$BT2020$lambda($this$RGBColorSpaceImpl, color) {
|
|
2588
2588
|
var tmp;
|
|
2589
2589
|
if (color instanceof RGB) {
|
|
2590
|
-
tmp = color.
|
|
2590
|
+
tmp = color.u1t($this$RGBColorSpaceImpl);
|
|
2591
2591
|
} else {
|
|
2592
2592
|
if (color instanceof ICtCp) {
|
|
2593
|
-
tmp = color.
|
|
2593
|
+
tmp = color.t1s();
|
|
2594
2594
|
} else {
|
|
2595
|
-
tmp = color.
|
|
2595
|
+
tmp = color.l1o().w1t($this$RGBColorSpaceImpl);
|
|
2596
2596
|
}
|
|
2597
2597
|
}
|
|
2598
2598
|
return tmp;
|
|
@@ -2600,29 +2600,29 @@
|
|
|
2600
2600
|
function RGBColorSpaces() {
|
|
2601
2601
|
RGBColorSpaces_instance = this;
|
|
2602
2602
|
var tmp = this;
|
|
2603
|
-
var tmp_0 = Illuminant_getInstance().
|
|
2603
|
+
var tmp_0 = Illuminant_getInstance().l1r_1;
|
|
2604
2604
|
var tmp_1 = SRGBTransferFunctions_instance;
|
|
2605
2605
|
var tmp_2 = get_SRGB_R();
|
|
2606
2606
|
var tmp_3 = get_SRGB_G();
|
|
2607
2607
|
var tmp_4 = get_SRGB_B();
|
|
2608
|
-
tmp.
|
|
2609
|
-
this.
|
|
2610
|
-
this.
|
|
2611
|
-
this.
|
|
2612
|
-
this.
|
|
2613
|
-
this.
|
|
2614
|
-
this.
|
|
2608
|
+
tmp.r1q_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
|
|
2609
|
+
this.s1q_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().l1r_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
2610
|
+
this.t1q_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
2611
|
+
this.u1q_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2612
|
+
this.v1q_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2613
|
+
this.w1q_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2614
|
+
this.x1q_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().l1r_1, new GammaTransferFunctions(2.19921875), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.21, 0.71), xyY_init_$Create$(0.15, 0.06));
|
|
2615
2615
|
var tmp_5 = this;
|
|
2616
|
-
var tmp_6 = Illuminant_getInstance().
|
|
2616
|
+
var tmp_6 = Illuminant_getInstance().l1r_1;
|
|
2617
2617
|
var tmp_7 = BT2020TransferFunctions_getInstance();
|
|
2618
2618
|
var tmp_8 = xyY_init_$Create$(0.708, 0.292);
|
|
2619
2619
|
var tmp_9 = xyY_init_$Create$(0.17, 0.797);
|
|
2620
2620
|
var tmp_10 = xyY_init_$Create$(0.131, 0.046);
|
|
2621
|
-
tmp_5.
|
|
2622
|
-
this.
|
|
2623
|
-
this.
|
|
2624
|
-
this.
|
|
2625
|
-
this.
|
|
2621
|
+
tmp_5.y1q_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
|
|
2622
|
+
this.z1q_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().l1r_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
2623
|
+
this.a1r_1 = RGBColorSpace_0('DCI P3', new WhitePoint('DCI P3', xyY_init_$Create$(0.314, 0.351)), new GammaTransferFunctions(2.6), xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
2624
|
+
this.b1r_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().l1r_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
2625
|
+
this.c1r_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().j1r_1, ROMMTransferFunctions_instance, xyY_init_$Create$(0.7347, 0.2653), xyY_init_$Create$(0.1596, 0.8404), xyY_init_$Create$(0.0366, 1.0E-4));
|
|
2626
2626
|
}
|
|
2627
2627
|
var RGBColorSpaces_instance;
|
|
2628
2628
|
function RGBColorSpaces_getInstance() {
|
|
@@ -2632,52 +2632,52 @@
|
|
|
2632
2632
|
}
|
|
2633
2633
|
function SRGB() {
|
|
2634
2634
|
SRGB_instance = this;
|
|
2635
|
-
this.
|
|
2635
|
+
this.m1s_1 = RGBColorSpaces_getInstance().r1q_1;
|
|
2636
2636
|
}
|
|
2637
2637
|
protoOf(SRGB).equals = function (other) {
|
|
2638
|
-
return equals(RGBColorSpaces_getInstance().
|
|
2638
|
+
return equals(RGBColorSpaces_getInstance().r1q_1, other);
|
|
2639
2639
|
};
|
|
2640
2640
|
protoOf(SRGB).hashCode = function () {
|
|
2641
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
2641
|
+
return hashCode(RGBColorSpaces_getInstance().r1q_1);
|
|
2642
2642
|
};
|
|
2643
2643
|
protoOf(SRGB).toString = function () {
|
|
2644
2644
|
return 'sRGB';
|
|
2645
2645
|
};
|
|
2646
|
-
protoOf(SRGB).
|
|
2647
|
-
return this.
|
|
2646
|
+
protoOf(SRGB).g1q = function (r, g, b, alpha) {
|
|
2647
|
+
return this.m1s_1.g1q(r, g, b, alpha);
|
|
2648
2648
|
};
|
|
2649
|
-
protoOf(SRGB).
|
|
2650
|
-
return this.
|
|
2649
|
+
protoOf(SRGB).f1t = function (r, g, b, alpha) {
|
|
2650
|
+
return this.m1s_1.f1t(r, g, b, alpha);
|
|
2651
2651
|
};
|
|
2652
|
-
protoOf(SRGB).
|
|
2653
|
-
return this.
|
|
2652
|
+
protoOf(SRGB).f1q = function (hex) {
|
|
2653
|
+
return this.m1s_1.f1q(hex);
|
|
2654
2654
|
};
|
|
2655
|
-
protoOf(SRGB).
|
|
2656
|
-
return this.
|
|
2655
|
+
protoOf(SRGB).k1s = function (r, g, b, alpha) {
|
|
2656
|
+
return this.m1s_1.k1s(r, g, b, alpha);
|
|
2657
2657
|
};
|
|
2658
|
-
protoOf(SRGB).
|
|
2659
|
-
return this.
|
|
2658
|
+
protoOf(SRGB).u1s = function () {
|
|
2659
|
+
return this.m1s_1.u1s();
|
|
2660
2660
|
};
|
|
2661
|
-
protoOf(SRGB).
|
|
2662
|
-
return this.
|
|
2661
|
+
protoOf(SRGB).s1t = function () {
|
|
2662
|
+
return this.m1s_1.s1t();
|
|
2663
2663
|
};
|
|
2664
|
-
protoOf(SRGB).
|
|
2665
|
-
return this.
|
|
2664
|
+
protoOf(SRGB).t1t = function () {
|
|
2665
|
+
return this.m1s_1.t1t();
|
|
2666
2666
|
};
|
|
2667
|
-
protoOf(SRGB).
|
|
2668
|
-
return this.
|
|
2667
|
+
protoOf(SRGB).k1p = function () {
|
|
2668
|
+
return this.m1s_1.k1p();
|
|
2669
2669
|
};
|
|
2670
|
-
protoOf(SRGB).
|
|
2671
|
-
return this.
|
|
2670
|
+
protoOf(SRGB).t2 = function () {
|
|
2671
|
+
return this.m1s_1.t2();
|
|
2672
2672
|
};
|
|
2673
|
-
protoOf(SRGB).
|
|
2674
|
-
return this.
|
|
2673
|
+
protoOf(SRGB).l1p = function () {
|
|
2674
|
+
return this.m1s_1.l1p();
|
|
2675
2675
|
};
|
|
2676
|
-
protoOf(SRGB).
|
|
2677
|
-
return this.
|
|
2676
|
+
protoOf(SRGB).f1p = function (color) {
|
|
2677
|
+
return this.m1s_1.f1p(color);
|
|
2678
2678
|
};
|
|
2679
|
-
protoOf(SRGB).
|
|
2680
|
-
return this.
|
|
2679
|
+
protoOf(SRGB).m1p = function (components) {
|
|
2680
|
+
return this.m1s_1.m1p(components);
|
|
2681
2681
|
};
|
|
2682
2682
|
var SRGB_instance;
|
|
2683
2683
|
function SRGB_getInstance() {
|
|
@@ -2686,36 +2686,36 @@
|
|
|
2686
2686
|
return SRGB_instance;
|
|
2687
2687
|
}
|
|
2688
2688
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
|
|
2689
|
-
this.
|
|
2690
|
-
this.
|
|
2691
|
-
this.
|
|
2692
|
-
this.
|
|
2693
|
-
this.
|
|
2694
|
-
this.
|
|
2695
|
-
this.
|
|
2696
|
-
this.
|
|
2697
|
-
this.
|
|
2698
|
-
this.
|
|
2699
|
-
}
|
|
2700
|
-
protoOf(RGBColorSpaceImpl).
|
|
2701
|
-
return this.v1t_1;
|
|
2702
|
-
};
|
|
2703
|
-
protoOf(RGBColorSpaceImpl).i1p = function () {
|
|
2704
|
-
return this.w1t_1;
|
|
2705
|
-
};
|
|
2706
|
-
protoOf(RGBColorSpaceImpl).s1s = function () {
|
|
2689
|
+
this.x1t_1 = name;
|
|
2690
|
+
this.y1t_1 = whitePoint;
|
|
2691
|
+
this.z1t_1 = transferFunctions;
|
|
2692
|
+
this.a1u_1 = r;
|
|
2693
|
+
this.b1u_1 = g;
|
|
2694
|
+
this.c1u_1 = b;
|
|
2695
|
+
this.d1u_1 = convertImpl;
|
|
2696
|
+
this.e1u_1 = zeroOneComponentInfo('RGB');
|
|
2697
|
+
this.f1u_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.y1t_1, this.a1u_1, this.b1u_1, this.c1u_1));
|
|
2698
|
+
this.g1u_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.f1u_1)));
|
|
2699
|
+
}
|
|
2700
|
+
protoOf(RGBColorSpaceImpl).t2 = function () {
|
|
2707
2701
|
return this.x1t_1;
|
|
2708
2702
|
};
|
|
2709
|
-
protoOf(RGBColorSpaceImpl).
|
|
2710
|
-
return this.
|
|
2703
|
+
protoOf(RGBColorSpaceImpl).k1p = function () {
|
|
2704
|
+
return this.y1t_1;
|
|
2705
|
+
};
|
|
2706
|
+
protoOf(RGBColorSpaceImpl).u1s = function () {
|
|
2707
|
+
return this.z1t_1;
|
|
2708
|
+
};
|
|
2709
|
+
protoOf(RGBColorSpaceImpl).l1p = function () {
|
|
2710
|
+
return this.e1u_1;
|
|
2711
2711
|
};
|
|
2712
|
-
protoOf(RGBColorSpaceImpl).
|
|
2713
|
-
return this.
|
|
2712
|
+
protoOf(RGBColorSpaceImpl).f1p = function (color) {
|
|
2713
|
+
return this.d1u_1(this, color);
|
|
2714
2714
|
};
|
|
2715
|
-
protoOf(RGBColorSpaceImpl).
|
|
2715
|
+
protoOf(RGBColorSpaceImpl).m1p = function (components) {
|
|
2716
2716
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2717
2717
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2718
|
-
var size = this.
|
|
2718
|
+
var size = this.l1p().m();
|
|
2719
2719
|
var containsLower = size - 1 | 0;
|
|
2720
2720
|
var containsArg = components.length;
|
|
2721
2721
|
// Inline function 'kotlin.require' call
|
|
@@ -2738,18 +2738,18 @@
|
|
|
2738
2738
|
}
|
|
2739
2739
|
// Inline function 'com.github.ajalt.colormath.model.RGBColorSpaceImpl.create.stub_for_inlining' call
|
|
2740
2740
|
var p3 = tmp;
|
|
2741
|
-
return this.
|
|
2741
|
+
return this.g1q(tmp3, tmp4, tmp5, p3);
|
|
2742
2742
|
};
|
|
2743
|
-
protoOf(RGBColorSpaceImpl).
|
|
2744
|
-
return this.
|
|
2743
|
+
protoOf(RGBColorSpaceImpl).s1t = function () {
|
|
2744
|
+
return this.f1u_1;
|
|
2745
2745
|
};
|
|
2746
|
-
protoOf(RGBColorSpaceImpl).
|
|
2747
|
-
return this.
|
|
2746
|
+
protoOf(RGBColorSpaceImpl).t1t = function () {
|
|
2747
|
+
return this.g1u_1;
|
|
2748
2748
|
};
|
|
2749
2749
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
2750
|
-
return this.
|
|
2750
|
+
return this.x1t_1;
|
|
2751
2751
|
};
|
|
2752
|
-
protoOf(RGBColorSpaceImpl).
|
|
2752
|
+
protoOf(RGBColorSpaceImpl).g1q = function (r, g, b, alpha) {
|
|
2753
2753
|
return new RGB(r, g, b, alpha, this);
|
|
2754
2754
|
};
|
|
2755
2755
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -2757,42 +2757,42 @@
|
|
|
2757
2757
|
return true;
|
|
2758
2758
|
if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
|
|
2759
2759
|
return false;
|
|
2760
|
-
if (!(this.
|
|
2760
|
+
if (!(this.x1t_1 === other.t2()))
|
|
2761
2761
|
return false;
|
|
2762
|
-
if (!this.
|
|
2762
|
+
if (!this.y1t_1.equals(other.k1p()))
|
|
2763
2763
|
return false;
|
|
2764
|
-
if (!equals(this.
|
|
2764
|
+
if (!equals(this.z1t_1, other.u1s()))
|
|
2765
2765
|
return false;
|
|
2766
2766
|
if (other instanceof RGBColorSpaceImpl) {
|
|
2767
|
-
if (!this.
|
|
2767
|
+
if (!this.a1u_1.equals(other.a1u_1))
|
|
2768
2768
|
return false;
|
|
2769
|
-
if (!this.
|
|
2769
|
+
if (!this.b1u_1.equals(other.b1u_1))
|
|
2770
2770
|
return false;
|
|
2771
|
-
if (!this.
|
|
2771
|
+
if (!this.c1u_1.equals(other.c1u_1))
|
|
2772
2772
|
return false;
|
|
2773
2773
|
} else {
|
|
2774
|
-
if (!contentEquals(this.
|
|
2774
|
+
if (!contentEquals(this.f1u_1, other.s1t()))
|
|
2775
2775
|
return false;
|
|
2776
|
-
if (!contentEquals(this.
|
|
2776
|
+
if (!contentEquals(this.g1u_1, other.t1t()))
|
|
2777
2777
|
return false;
|
|
2778
2778
|
}
|
|
2779
2779
|
return true;
|
|
2780
2780
|
};
|
|
2781
2781
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
2782
|
-
var result = getStringHashCode(this.
|
|
2783
|
-
result = imul(31, result) + this.w1t_1.hashCode() | 0;
|
|
2784
|
-
result = imul(31, result) + hashCode(this.x1t_1) | 0;
|
|
2782
|
+
var result = getStringHashCode(this.x1t_1);
|
|
2785
2783
|
result = imul(31, result) + this.y1t_1.hashCode() | 0;
|
|
2786
|
-
result = imul(31, result) + this.z1t_1
|
|
2784
|
+
result = imul(31, result) + hashCode(this.z1t_1) | 0;
|
|
2787
2785
|
result = imul(31, result) + this.a1u_1.hashCode() | 0;
|
|
2786
|
+
result = imul(31, result) + this.b1u_1.hashCode() | 0;
|
|
2787
|
+
result = imul(31, result) + this.c1u_1.hashCode() | 0;
|
|
2788
2788
|
return result;
|
|
2789
2789
|
};
|
|
2790
2790
|
function SRGBTransferFunctions() {
|
|
2791
2791
|
}
|
|
2792
|
-
protoOf(SRGBTransferFunctions).
|
|
2792
|
+
protoOf(SRGBTransferFunctions).e1t = function (x) {
|
|
2793
2793
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
|
|
2794
2794
|
};
|
|
2795
|
-
protoOf(SRGBTransferFunctions).
|
|
2795
|
+
protoOf(SRGBTransferFunctions).d1t = function (x) {
|
|
2796
2796
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
2797
2797
|
};
|
|
2798
2798
|
var SRGBTransferFunctions_instance;
|
|
@@ -2805,18 +2805,18 @@
|
|
|
2805
2805
|
}
|
|
2806
2806
|
function ACESccTransferFunctions() {
|
|
2807
2807
|
ACESccTransferFunctions_instance = this;
|
|
2808
|
-
this.
|
|
2809
|
-
this.
|
|
2810
|
-
this.
|
|
2808
|
+
this.h1u_1 = 3.0517578125E-5;
|
|
2809
|
+
this.i1u_1 = 1.52587890625E-5;
|
|
2810
|
+
this.j1u_1 = -0.3013698630136986;
|
|
2811
2811
|
var tmp = this;
|
|
2812
2812
|
// Inline function 'kotlin.math.log2' call
|
|
2813
|
-
tmp.
|
|
2813
|
+
tmp.k1u_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
2814
2814
|
}
|
|
2815
|
-
protoOf(ACESccTransferFunctions).
|
|
2815
|
+
protoOf(ACESccTransferFunctions).d1t = function (x) {
|
|
2816
2816
|
var tmp;
|
|
2817
2817
|
if (x <= -0.3013698630136986) {
|
|
2818
2818
|
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
|
|
2819
|
-
} else if (x < this.
|
|
2819
|
+
} else if (x < this.k1u_1) {
|
|
2820
2820
|
// Inline function 'kotlin.math.pow' call
|
|
2821
2821
|
var x_0 = x * 17.52 - 9.72;
|
|
2822
2822
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -2825,7 +2825,7 @@
|
|
|
2825
2825
|
}
|
|
2826
2826
|
return tmp;
|
|
2827
2827
|
};
|
|
2828
|
-
protoOf(ACESccTransferFunctions).
|
|
2828
|
+
protoOf(ACESccTransferFunctions).e1t = function (x) {
|
|
2829
2829
|
var tmp;
|
|
2830
2830
|
if (x < 3.0517578125E-5) {
|
|
2831
2831
|
// Inline function 'kotlin.math.log2' call
|
|
@@ -2845,17 +2845,17 @@
|
|
|
2845
2845
|
}
|
|
2846
2846
|
function ACEScctTransferFunctions() {
|
|
2847
2847
|
ACEScctTransferFunctions_instance = this;
|
|
2848
|
-
this.
|
|
2849
|
-
this.
|
|
2848
|
+
this.l1u_1 = 10.5402377416545;
|
|
2849
|
+
this.m1u_1 = 0.0729055341958355;
|
|
2850
2850
|
var tmp = this;
|
|
2851
2851
|
// Inline function 'kotlin.math.log2' call
|
|
2852
|
-
tmp.
|
|
2852
|
+
tmp.n1u_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
2853
2853
|
}
|
|
2854
|
-
protoOf(ACEScctTransferFunctions).
|
|
2854
|
+
protoOf(ACEScctTransferFunctions).d1t = function (x) {
|
|
2855
2855
|
var tmp;
|
|
2856
2856
|
if (x <= 0.155251141552511) {
|
|
2857
2857
|
tmp = (x - 0.0729055341958355) / 10.5402377416545;
|
|
2858
|
-
} else if (x < this.
|
|
2858
|
+
} else if (x < this.n1u_1) {
|
|
2859
2859
|
// Inline function 'kotlin.math.pow' call
|
|
2860
2860
|
var x_0 = x * 17.52 - 9.72;
|
|
2861
2861
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -2864,7 +2864,7 @@
|
|
|
2864
2864
|
}
|
|
2865
2865
|
return tmp;
|
|
2866
2866
|
};
|
|
2867
|
-
protoOf(ACEScctTransferFunctions).
|
|
2867
|
+
protoOf(ACEScctTransferFunctions).e1t = function (x) {
|
|
2868
2868
|
var tmp;
|
|
2869
2869
|
if (x < 0.0078125) {
|
|
2870
2870
|
tmp = 10.5402377416545 * x + 0.0729055341958355;
|
|
@@ -2882,16 +2882,16 @@
|
|
|
2882
2882
|
}
|
|
2883
2883
|
function BT2020TransferFunctions() {
|
|
2884
2884
|
BT2020TransferFunctions_instance = this;
|
|
2885
|
-
this.
|
|
2886
|
-
this.
|
|
2885
|
+
this.o1u_1 = 1.0993;
|
|
2886
|
+
this.p1u_1 = 0.0181;
|
|
2887
2887
|
var tmp = this;
|
|
2888
2888
|
// Inline function 'kotlin.math.pow' call
|
|
2889
|
-
tmp.
|
|
2889
|
+
tmp.q1u_1 = 1.0993 * Math.pow(0.0181, 0.45) - (1.0993 - 1);
|
|
2890
2890
|
}
|
|
2891
|
-
protoOf(BT2020TransferFunctions).
|
|
2892
|
-
return numberToDouble(x < this.
|
|
2891
|
+
protoOf(BT2020TransferFunctions).d1t = function (x) {
|
|
2892
|
+
return numberToDouble(x < this.q1u_1 ? x / 4.5 : spow_0((x + (1.0993 - 1)) / 1.0993, 1 / 0.45));
|
|
2893
2893
|
};
|
|
2894
|
-
protoOf(BT2020TransferFunctions).
|
|
2894
|
+
protoOf(BT2020TransferFunctions).e1t = function (x) {
|
|
2895
2895
|
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - (1.0993 - 1);
|
|
2896
2896
|
};
|
|
2897
2897
|
var BT2020TransferFunctions_instance;
|
|
@@ -2902,12 +2902,12 @@
|
|
|
2902
2902
|
}
|
|
2903
2903
|
function BT709TransferFunctions() {
|
|
2904
2904
|
BT709TransferFunctions_instance = this;
|
|
2905
|
-
this.
|
|
2905
|
+
this.r1u_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
2906
2906
|
}
|
|
2907
|
-
protoOf(BT709TransferFunctions).
|
|
2908
|
-
return numberToDouble(x < this.
|
|
2907
|
+
protoOf(BT709TransferFunctions).d1t = function (x) {
|
|
2908
|
+
return numberToDouble(x < this.r1u_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
|
|
2909
2909
|
};
|
|
2910
|
-
protoOf(BT709TransferFunctions).
|
|
2910
|
+
protoOf(BT709TransferFunctions).e1t = function (x) {
|
|
2911
2911
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
2912
2912
|
};
|
|
2913
2913
|
var BT709TransferFunctions_instance;
|
|
@@ -2917,12 +2917,12 @@
|
|
|
2917
2917
|
return BT709TransferFunctions_instance;
|
|
2918
2918
|
}
|
|
2919
2919
|
function ROMMTransferFunctions() {
|
|
2920
|
-
this.
|
|
2920
|
+
this.s1u_1 = 0.001953;
|
|
2921
2921
|
}
|
|
2922
|
-
protoOf(ROMMTransferFunctions).
|
|
2922
|
+
protoOf(ROMMTransferFunctions).d1t = function (x) {
|
|
2923
2923
|
return x < 16 * 0.001953 ? x / 16.0 : spow(x, 1.8);
|
|
2924
2924
|
};
|
|
2925
|
-
protoOf(ROMMTransferFunctions).
|
|
2925
|
+
protoOf(ROMMTransferFunctions).e1t = function (x) {
|
|
2926
2926
|
return x < 0.001953 ? x * 16.0 : spow(x, 1.0 / 1.8);
|
|
2927
2927
|
};
|
|
2928
2928
|
var ROMMTransferFunctions_instance;
|
|
@@ -2931,13 +2931,13 @@
|
|
|
2931
2931
|
}
|
|
2932
2932
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
2933
2933
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
2934
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
2935
|
-
var wp = whitePoint.
|
|
2934
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.h1t_1, g.h1t_1, b.h1t_1, r.i1t_1, g.i1t_1, b.i1t_1, r.t1u(), g.t1u(), b.t1u());
|
|
2935
|
+
var wp = whitePoint.i1s_1;
|
|
2936
2936
|
var tmp0 = inverse(primaries);
|
|
2937
|
-
var tmp1 = wp.
|
|
2938
|
-
var tmp2 = wp.
|
|
2937
|
+
var tmp1 = wp.k1t();
|
|
2938
|
+
var tmp2 = wp.j1t_1;
|
|
2939
2939
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
2940
|
-
var v2 = wp.
|
|
2940
|
+
var v2 = wp.l1t();
|
|
2941
2941
|
var tmp4 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
2942
2942
|
var tmp5 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
2943
2943
|
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
@@ -2948,9 +2948,9 @@
|
|
|
2948
2948
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
2949
2949
|
var tmp;
|
|
2950
2950
|
if (color instanceof RGB) {
|
|
2951
|
-
tmp = color.
|
|
2951
|
+
tmp = color.u1t($this$RGBColorSpaceImpl);
|
|
2952
2952
|
} else {
|
|
2953
|
-
tmp = color.
|
|
2953
|
+
tmp = color.l1o().w1t($this$RGBColorSpaceImpl);
|
|
2954
2954
|
}
|
|
2955
2955
|
return tmp;
|
|
2956
2956
|
}
|
|
@@ -2978,24 +2978,24 @@
|
|
|
2978
2978
|
}
|
|
2979
2979
|
function Companion_7() {
|
|
2980
2980
|
Companion_instance_8 = this;
|
|
2981
|
-
this.
|
|
2981
|
+
this.u1u_1 = threeComponentInfo('R', 0.0, 255.0, 'G', 0.0, 255.0, 'B', 0.0, 255.0);
|
|
2982
2982
|
}
|
|
2983
|
-
protoOf(Companion_7).
|
|
2983
|
+
protoOf(Companion_7).t2 = function () {
|
|
2984
2984
|
return 'RGBInt';
|
|
2985
2985
|
};
|
|
2986
|
-
protoOf(Companion_7).
|
|
2987
|
-
return this.
|
|
2986
|
+
protoOf(Companion_7).l1p = function () {
|
|
2987
|
+
return this.u1u_1;
|
|
2988
2988
|
};
|
|
2989
|
-
protoOf(Companion_7).
|
|
2990
|
-
return color.
|
|
2989
|
+
protoOf(Companion_7).v1u = function (color) {
|
|
2990
|
+
return color.e1o().o1r();
|
|
2991
2991
|
};
|
|
2992
|
-
protoOf(Companion_7).
|
|
2993
|
-
return new RGBInt(this.
|
|
2992
|
+
protoOf(Companion_7).f1p = function (color) {
|
|
2993
|
+
return new RGBInt(this.v1u(color));
|
|
2994
2994
|
};
|
|
2995
|
-
protoOf(Companion_7).
|
|
2995
|
+
protoOf(Companion_7).w1u = function (components) {
|
|
2996
2996
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2997
2997
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2998
|
-
var size = this.
|
|
2998
|
+
var size = this.l1p().m();
|
|
2999
2999
|
var containsLower = size - 1 | 0;
|
|
3000
3000
|
var containsArg = components.length;
|
|
3001
3001
|
// Inline function 'kotlin.require' call
|
|
@@ -3020,8 +3020,8 @@
|
|
|
3020
3020
|
var a = tmp;
|
|
3021
3021
|
return _RGBInt___init__impl__lqova7_0(numberToInt(tmp2), numberToInt(tmp3), numberToInt(tmp4), numberToInt(a));
|
|
3022
3022
|
};
|
|
3023
|
-
protoOf(Companion_7).
|
|
3024
|
-
return new RGBInt(this.
|
|
3023
|
+
protoOf(Companion_7).m1p = function (components) {
|
|
3024
|
+
return new RGBInt(this.w1u(components));
|
|
3025
3025
|
};
|
|
3026
3026
|
var Companion_instance_8;
|
|
3027
3027
|
function Companion_getInstance_7() {
|
|
@@ -3153,7 +3153,7 @@
|
|
|
3153
3153
|
return (_UByte___get_data__impl__jof9qr(this_0) & 255) / 255.0;
|
|
3154
3154
|
}
|
|
3155
3155
|
function RGBInt__toSRGB_impl_m0acyy($this) {
|
|
3156
|
-
return Companion_getInstance_6().
|
|
3156
|
+
return Companion_getInstance_6().g1q(_RGBInt___get_redFloat__impl__lnt6cx($this), _RGBInt___get_greenFloat__impl__opq1mn($this), _RGBInt___get_blueFloat__impl__jt6mw2($this), _RGBInt___get_alpha__impl__yl2tay($this));
|
|
3157
3157
|
}
|
|
3158
3158
|
function RGBInt__toArray_impl_73rlu9($this) {
|
|
3159
3159
|
// Inline function 'kotlin.UByte.toFloat' call
|
|
@@ -3192,65 +3192,65 @@
|
|
|
3192
3192
|
function RGBInt__equals_impl_qmmpmc($this, other) {
|
|
3193
3193
|
if (!(other instanceof RGBInt))
|
|
3194
3194
|
return false;
|
|
3195
|
-
if (!($this === (other instanceof RGBInt ? other.
|
|
3195
|
+
if (!($this === (other instanceof RGBInt ? other.v1t_1 : THROW_CCE())))
|
|
3196
3196
|
return false;
|
|
3197
3197
|
return true;
|
|
3198
3198
|
}
|
|
3199
3199
|
function RGBInt(argb) {
|
|
3200
3200
|
Companion_getInstance_7();
|
|
3201
|
-
this.
|
|
3201
|
+
this.v1t_1 = argb;
|
|
3202
3202
|
}
|
|
3203
|
-
protoOf(RGBInt).
|
|
3204
|
-
return _RGBInt___get_alpha__impl__yl2tay(this.
|
|
3203
|
+
protoOf(RGBInt).c1o = function () {
|
|
3204
|
+
return _RGBInt___get_alpha__impl__yl2tay(this.v1t_1);
|
|
3205
3205
|
};
|
|
3206
|
-
protoOf(RGBInt).
|
|
3207
|
-
return _RGBInt___get_space__impl__emgnsy(this.
|
|
3206
|
+
protoOf(RGBInt).d1o = function () {
|
|
3207
|
+
return _RGBInt___get_space__impl__emgnsy(this.v1t_1);
|
|
3208
3208
|
};
|
|
3209
|
-
protoOf(RGBInt).
|
|
3210
|
-
return RGBInt__toSRGB_impl_m0acyy(this.
|
|
3209
|
+
protoOf(RGBInt).e1o = function () {
|
|
3210
|
+
return RGBInt__toSRGB_impl_m0acyy(this.v1t_1);
|
|
3211
3211
|
};
|
|
3212
|
-
protoOf(RGBInt).
|
|
3213
|
-
return RGBInt__toArray_impl_73rlu9(this.
|
|
3212
|
+
protoOf(RGBInt).x5 = function () {
|
|
3213
|
+
return RGBInt__toArray_impl_73rlu9(this.v1t_1);
|
|
3214
3214
|
};
|
|
3215
3215
|
protoOf(RGBInt).toString = function () {
|
|
3216
|
-
return RGBInt__toString_impl_cf5r29(this.
|
|
3216
|
+
return RGBInt__toString_impl_cf5r29(this.v1t_1);
|
|
3217
3217
|
};
|
|
3218
3218
|
protoOf(RGBInt).hashCode = function () {
|
|
3219
|
-
return RGBInt__hashCode_impl_y6bnv4(this.
|
|
3219
|
+
return RGBInt__hashCode_impl_y6bnv4(this.v1t_1);
|
|
3220
3220
|
};
|
|
3221
3221
|
protoOf(RGBInt).equals = function (other) {
|
|
3222
|
-
return RGBInt__equals_impl_qmmpmc(this.
|
|
3222
|
+
return RGBInt__equals_impl_qmmpmc(this.v1t_1, other);
|
|
3223
3223
|
};
|
|
3224
3224
|
function Companion_8() {
|
|
3225
3225
|
Companion_instance_9 = this;
|
|
3226
|
-
this.
|
|
3226
|
+
this.q1t_1 = XYZColorSpaces_getInstance().d1r_1;
|
|
3227
3227
|
}
|
|
3228
3228
|
protoOf(Companion_8).hashCode = function () {
|
|
3229
|
-
return hashCode(XYZColorSpaces_getInstance().
|
|
3229
|
+
return hashCode(XYZColorSpaces_getInstance().d1r_1);
|
|
3230
3230
|
};
|
|
3231
3231
|
protoOf(Companion_8).equals = function (other) {
|
|
3232
|
-
return equals(XYZColorSpaces_getInstance().
|
|
3232
|
+
return equals(XYZColorSpaces_getInstance().d1r_1, other);
|
|
3233
3233
|
};
|
|
3234
|
-
protoOf(Companion_8).
|
|
3235
|
-
return this.
|
|
3234
|
+
protoOf(Companion_8).g1q = function (x, y, z, alpha) {
|
|
3235
|
+
return this.q1t_1.g1q(x, y, z, alpha);
|
|
3236
3236
|
};
|
|
3237
|
-
protoOf(Companion_8).
|
|
3238
|
-
return this.
|
|
3237
|
+
protoOf(Companion_8).f1t = function (x, y, z, alpha) {
|
|
3238
|
+
return this.q1t_1.f1t(x, y, z, alpha);
|
|
3239
3239
|
};
|
|
3240
|
-
protoOf(Companion_8).
|
|
3241
|
-
return this.
|
|
3240
|
+
protoOf(Companion_8).k1p = function () {
|
|
3241
|
+
return this.q1t_1.k1p();
|
|
3242
3242
|
};
|
|
3243
|
-
protoOf(Companion_8).
|
|
3244
|
-
return this.
|
|
3243
|
+
protoOf(Companion_8).t2 = function () {
|
|
3244
|
+
return this.q1t_1.t2();
|
|
3245
3245
|
};
|
|
3246
|
-
protoOf(Companion_8).
|
|
3247
|
-
return this.
|
|
3246
|
+
protoOf(Companion_8).l1p = function () {
|
|
3247
|
+
return this.q1t_1.l1p();
|
|
3248
3248
|
};
|
|
3249
|
-
protoOf(Companion_8).
|
|
3250
|
-
return this.
|
|
3249
|
+
protoOf(Companion_8).f1p = function (color) {
|
|
3250
|
+
return this.q1t_1.f1p(color);
|
|
3251
3251
|
};
|
|
3252
|
-
protoOf(Companion_8).
|
|
3253
|
-
return this.
|
|
3252
|
+
protoOf(Companion_8).m1p = function (components) {
|
|
3253
|
+
return this.q1t_1.m1p(components);
|
|
3254
3254
|
};
|
|
3255
3255
|
var Companion_instance_9;
|
|
3256
3256
|
function Companion_getInstance_8() {
|
|
@@ -3259,18 +3259,18 @@
|
|
|
3259
3259
|
return Companion_instance_9;
|
|
3260
3260
|
}
|
|
3261
3261
|
function adaptToM($this, space, m, mi) {
|
|
3262
|
-
if (space.
|
|
3262
|
+
if (space.k1p().equals($this.r1o_1.k1p()))
|
|
3263
3263
|
return $this;
|
|
3264
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
3265
|
-
var tmp1 = $this.
|
|
3266
|
-
var tmp2 = $this.
|
|
3264
|
+
var transform = chromaticAdaptationMatrix(space, $this.r1o_1.k1p().i1s_1, m, mi);
|
|
3265
|
+
var tmp1 = $this.n1o_1;
|
|
3266
|
+
var tmp2 = $this.o1o_1;
|
|
3267
3267
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
3268
|
-
var v2 = $this.
|
|
3268
|
+
var v2 = $this.p1o_1;
|
|
3269
3269
|
var tmp4 = Matrix__get_impl_xogbpk(transform, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(transform, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(transform, 2, 0) * v2;
|
|
3270
3270
|
var tmp5 = Matrix__get_impl_xogbpk(transform, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(transform, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(transform, 2, 1) * v2;
|
|
3271
3271
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
3272
3272
|
var zz = Matrix__get_impl_xogbpk(transform, 0, 2) * tmp1 + Matrix__get_impl_xogbpk(transform, 1, 2) * tmp2 + Matrix__get_impl_xogbpk(transform, 2, 2) * v2;
|
|
3273
|
-
return space.
|
|
3273
|
+
return space.g1q(tmp4, tmp5, zz, $this.q1o_1);
|
|
3274
3274
|
}
|
|
3275
3275
|
function toLAB$f(t) {
|
|
3276
3276
|
var tmp;
|
|
@@ -3284,100 +3284,100 @@
|
|
|
3284
3284
|
}
|
|
3285
3285
|
function XYZ(x, y, z, alpha, space) {
|
|
3286
3286
|
Companion_getInstance_8();
|
|
3287
|
-
this.
|
|
3288
|
-
this.
|
|
3289
|
-
this.
|
|
3290
|
-
this.
|
|
3291
|
-
this.
|
|
3287
|
+
this.n1o_1 = x;
|
|
3288
|
+
this.o1o_1 = y;
|
|
3289
|
+
this.p1o_1 = z;
|
|
3290
|
+
this.q1o_1 = alpha;
|
|
3291
|
+
this.r1o_1 = space;
|
|
3292
3292
|
}
|
|
3293
|
-
protoOf(XYZ).
|
|
3294
|
-
return this.
|
|
3293
|
+
protoOf(XYZ).c1o = function () {
|
|
3294
|
+
return this.q1o_1;
|
|
3295
3295
|
};
|
|
3296
|
-
protoOf(XYZ).
|
|
3297
|
-
return this.
|
|
3296
|
+
protoOf(XYZ).d1o = function () {
|
|
3297
|
+
return this.r1o_1;
|
|
3298
3298
|
};
|
|
3299
|
-
protoOf(XYZ).
|
|
3299
|
+
protoOf(XYZ).f1r = function (space) {
|
|
3300
3300
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
3301
3301
|
};
|
|
3302
|
-
protoOf(XYZ).
|
|
3303
|
-
var _destruct__k2r9zo = this.
|
|
3304
|
-
var x = _destruct__k2r9zo.
|
|
3305
|
-
var y = _destruct__k2r9zo.
|
|
3306
|
-
var z = _destruct__k2r9zo.
|
|
3307
|
-
var f = space.
|
|
3302
|
+
protoOf(XYZ).w1t = function (space) {
|
|
3303
|
+
var _destruct__k2r9zo = this.f1r(XYZColorSpace_0(space.k1p()));
|
|
3304
|
+
var x = _destruct__k2r9zo.uf();
|
|
3305
|
+
var y = _destruct__k2r9zo.vf();
|
|
3306
|
+
var z = _destruct__k2r9zo.x1u();
|
|
3307
|
+
var f = space.u1s();
|
|
3308
3308
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
3309
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
3309
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.t1t());
|
|
3310
3310
|
var tmp4 = Matrix__get_impl_xogbpk(this_0, 0, 0) * x + Matrix__get_impl_xogbpk(this_0, 1, 0) * y + Matrix__get_impl_xogbpk(this_0, 2, 0) * z;
|
|
3311
3311
|
var tmp5 = Matrix__get_impl_xogbpk(this_0, 0, 1) * x + Matrix__get_impl_xogbpk(this_0, 1, 1) * y + Matrix__get_impl_xogbpk(this_0, 2, 1) * z;
|
|
3312
3312
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
3313
3313
|
var b = Matrix__get_impl_xogbpk(this_0, 0, 2) * x + Matrix__get_impl_xogbpk(this_0, 1, 2) * y + Matrix__get_impl_xogbpk(this_0, 2, 2) * z;
|
|
3314
|
-
return space.
|
|
3314
|
+
return space.g1q(f.e1t(tmp4), f.e1t(tmp5), f.e1t(b), this.q1o_1);
|
|
3315
3315
|
};
|
|
3316
|
-
protoOf(XYZ).
|
|
3317
|
-
return this.
|
|
3316
|
+
protoOf(XYZ).e1o = function () {
|
|
3317
|
+
return this.w1t(RGBColorSpaces_getInstance().r1q_1);
|
|
3318
3318
|
};
|
|
3319
|
-
protoOf(XYZ).
|
|
3320
|
-
var fx = toLAB$f(this.
|
|
3321
|
-
var fy = toLAB$f(this.
|
|
3322
|
-
var fz = toLAB$f(this.
|
|
3319
|
+
protoOf(XYZ).m1o = function () {
|
|
3320
|
+
var fx = toLAB$f(this.n1o_1 / this.r1o_1.k1p().i1s_1.k1t());
|
|
3321
|
+
var fy = toLAB$f(this.o1o_1 / this.r1o_1.k1p().i1s_1.j1t_1);
|
|
3322
|
+
var fz = toLAB$f(this.p1o_1 / this.r1o_1.k1p().i1s_1.l1t());
|
|
3323
3323
|
var l = 116 * fy - 16;
|
|
3324
3324
|
var a = 500 * (fx - fy);
|
|
3325
3325
|
var b = 200 * (fy - fz);
|
|
3326
|
-
return LABColorSpace_0(this.
|
|
3326
|
+
return LABColorSpace_0(this.r1o_1.k1p()).f1t(l, a, b, this.q1o_1);
|
|
3327
3327
|
};
|
|
3328
|
-
protoOf(XYZ).
|
|
3328
|
+
protoOf(XYZ).z1o = function () {
|
|
3329
3329
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toD65' call
|
|
3330
3330
|
var tmp;
|
|
3331
|
-
if (equals(this.
|
|
3332
|
-
var l = +0.8189330101 * this.
|
|
3333
|
-
var m = +0.0329845436 * this.
|
|
3334
|
-
var s = +0.0482003018 * this.
|
|
3331
|
+
if (equals(this.r1o_1, XYZColorSpaces_getInstance().d1r_1)) {
|
|
3332
|
+
var l = +0.8189330101 * this.n1o_1 + 0.3618667424 * this.o1o_1 - 0.1288597137 * this.p1o_1;
|
|
3333
|
+
var m = +0.0329845436 * this.n1o_1 + 0.9293118715 * this.o1o_1 + 0.0361456387 * this.p1o_1;
|
|
3334
|
+
var s = +0.0482003018 * this.n1o_1 + 0.2643662691 * this.o1o_1 + 0.633851707 * this.p1o_1;
|
|
3335
3335
|
// Inline function 'kotlin.math.cbrt' call
|
|
3336
3336
|
var ll = Math.cbrt(l);
|
|
3337
3337
|
// Inline function 'kotlin.math.cbrt' call
|
|
3338
3338
|
var mm = Math.cbrt(m);
|
|
3339
3339
|
// Inline function 'kotlin.math.cbrt' call
|
|
3340
3340
|
var ss = Math.cbrt(s);
|
|
3341
|
-
return Oklab_init_$Create$(+0.2104542553 * ll + 0.793617785 * mm - 0.0040720468 * ss, +1.9779984951 * ll - 2.428592205 * mm + 0.4505937099 * ss, +0.0259040371 * ll + 0.7827717662 * mm - 0.808675766 * ss, this.
|
|
3341
|
+
return Oklab_init_$Create$(+0.2104542553 * ll + 0.793617785 * mm - 0.0040720468 * ss, +1.9779984951 * ll - 2.428592205 * mm + 0.4505937099 * ss, +0.0259040371 * ll + 0.7827717662 * mm - 0.808675766 * ss, this.q1o_1);
|
|
3342
3342
|
} else {
|
|
3343
|
-
var $this$toD65 = this.
|
|
3344
|
-
var l_0 = +0.8189330101 * $this$toD65.
|
|
3345
|
-
var m_0 = +0.0329845436 * $this$toD65.
|
|
3346
|
-
var s_0 = +0.0482003018 * $this$toD65.
|
|
3343
|
+
var $this$toD65 = this.f1r(XYZColorSpaces_getInstance().d1r_1);
|
|
3344
|
+
var l_0 = +0.8189330101 * $this$toD65.n1o_1 + 0.3618667424 * $this$toD65.o1o_1 - 0.1288597137 * $this$toD65.p1o_1;
|
|
3345
|
+
var m_0 = +0.0329845436 * $this$toD65.n1o_1 + 0.9293118715 * $this$toD65.o1o_1 + 0.0361456387 * $this$toD65.p1o_1;
|
|
3346
|
+
var s_0 = +0.0482003018 * $this$toD65.n1o_1 + 0.2643662691 * $this$toD65.o1o_1 + 0.633851707 * $this$toD65.p1o_1;
|
|
3347
3347
|
// Inline function 'kotlin.math.cbrt' call
|
|
3348
3348
|
var ll_0 = Math.cbrt(l_0);
|
|
3349
3349
|
// Inline function 'kotlin.math.cbrt' call
|
|
3350
3350
|
var mm_0 = Math.cbrt(m_0);
|
|
3351
3351
|
// Inline function 'kotlin.math.cbrt' call
|
|
3352
3352
|
var ss_0 = Math.cbrt(s_0);
|
|
3353
|
-
return Oklab_init_$Create$(+0.2104542553 * ll_0 + 0.793617785 * mm_0 - 0.0040720468 * ss_0, +1.9779984951 * ll_0 - 2.428592205 * mm_0 + 0.4505937099 * ss_0, +0.0259040371 * ll_0 + 0.7827717662 * mm_0 - 0.808675766 * ss_0, $this$toD65.
|
|
3353
|
+
return Oklab_init_$Create$(+0.2104542553 * ll_0 + 0.793617785 * mm_0 - 0.0040720468 * ss_0, +1.9779984951 * ll_0 - 2.428592205 * mm_0 + 0.4505937099 * ss_0, +0.0259040371 * ll_0 + 0.7827717662 * mm_0 - 0.808675766 * ss_0, $this$toD65.q1o_1);
|
|
3354
3354
|
}
|
|
3355
3355
|
};
|
|
3356
|
-
protoOf(XYZ).
|
|
3356
|
+
protoOf(XYZ).l1o = function () {
|
|
3357
3357
|
return this;
|
|
3358
3358
|
};
|
|
3359
|
-
protoOf(XYZ).
|
|
3359
|
+
protoOf(XYZ).x5 = function () {
|
|
3360
3360
|
// Inline function 'kotlin.floatArrayOf' call
|
|
3361
|
-
return new Float32Array([this.
|
|
3362
|
-
};
|
|
3363
|
-
protoOf(XYZ).tf = function () {
|
|
3364
|
-
return this.l1o_1;
|
|
3361
|
+
return new Float32Array([this.n1o_1, this.o1o_1, this.p1o_1, this.q1o_1]);
|
|
3365
3362
|
};
|
|
3366
3363
|
protoOf(XYZ).uf = function () {
|
|
3367
|
-
return this.m1o_1;
|
|
3368
|
-
};
|
|
3369
|
-
protoOf(XYZ).v1u = function () {
|
|
3370
3364
|
return this.n1o_1;
|
|
3371
3365
|
};
|
|
3366
|
+
protoOf(XYZ).vf = function () {
|
|
3367
|
+
return this.o1o_1;
|
|
3368
|
+
};
|
|
3369
|
+
protoOf(XYZ).x1u = function () {
|
|
3370
|
+
return this.p1o_1;
|
|
3371
|
+
};
|
|
3372
3372
|
protoOf(XYZ).toString = function () {
|
|
3373
|
-
return 'XYZ(x=' + this.
|
|
3373
|
+
return 'XYZ(x=' + this.n1o_1 + ', y=' + this.o1o_1 + ', z=' + this.p1o_1 + ', alpha=' + this.q1o_1 + ', space=' + toString(this.r1o_1) + ')';
|
|
3374
3374
|
};
|
|
3375
3375
|
protoOf(XYZ).hashCode = function () {
|
|
3376
|
-
var result = getNumberHashCode(this.
|
|
3377
|
-
result = imul(result, 31) + getNumberHashCode(this.m1o_1) | 0;
|
|
3378
|
-
result = imul(result, 31) + getNumberHashCode(this.n1o_1) | 0;
|
|
3376
|
+
var result = getNumberHashCode(this.n1o_1);
|
|
3379
3377
|
result = imul(result, 31) + getNumberHashCode(this.o1o_1) | 0;
|
|
3380
|
-
result = imul(result, 31) +
|
|
3378
|
+
result = imul(result, 31) + getNumberHashCode(this.p1o_1) | 0;
|
|
3379
|
+
result = imul(result, 31) + getNumberHashCode(this.q1o_1) | 0;
|
|
3380
|
+
result = imul(result, 31) + hashCode(this.r1o_1) | 0;
|
|
3381
3381
|
return result;
|
|
3382
3382
|
};
|
|
3383
3383
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -3386,27 +3386,27 @@
|
|
|
3386
3386
|
if (!(other instanceof XYZ))
|
|
3387
3387
|
return false;
|
|
3388
3388
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
3389
|
-
if (!equals(this.l1o_1, tmp0_other_with_cast.l1o_1))
|
|
3390
|
-
return false;
|
|
3391
|
-
if (!equals(this.m1o_1, tmp0_other_with_cast.m1o_1))
|
|
3392
|
-
return false;
|
|
3393
3389
|
if (!equals(this.n1o_1, tmp0_other_with_cast.n1o_1))
|
|
3394
3390
|
return false;
|
|
3395
3391
|
if (!equals(this.o1o_1, tmp0_other_with_cast.o1o_1))
|
|
3396
3392
|
return false;
|
|
3397
3393
|
if (!equals(this.p1o_1, tmp0_other_with_cast.p1o_1))
|
|
3398
3394
|
return false;
|
|
3395
|
+
if (!equals(this.q1o_1, tmp0_other_with_cast.q1o_1))
|
|
3396
|
+
return false;
|
|
3397
|
+
if (!equals(this.r1o_1, tmp0_other_with_cast.r1o_1))
|
|
3398
|
+
return false;
|
|
3399
3399
|
return true;
|
|
3400
3400
|
};
|
|
3401
3401
|
function XYZColorSpace() {
|
|
3402
3402
|
}
|
|
3403
3403
|
function XYZColorSpace_0(whitePoint) {
|
|
3404
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
3404
|
+
return whitePoint.equals(Illuminant_getInstance().l1r_1) ? XYZColorSpaces_getInstance().d1r_1 : whitePoint.equals(Illuminant_getInstance().j1r_1) ? XYZColorSpaces_getInstance().e1r_1 : new XYZColorSpaceImpl(whitePoint);
|
|
3405
3405
|
}
|
|
3406
3406
|
function XYZColorSpaces() {
|
|
3407
3407
|
XYZColorSpaces_instance = this;
|
|
3408
|
-
this.
|
|
3409
|
-
this.
|
|
3408
|
+
this.d1r_1 = new XYZColorSpaceImpl(Illuminant_getInstance().l1r_1);
|
|
3409
|
+
this.e1r_1 = new XYZColorSpaceImpl(Illuminant_getInstance().j1r_1);
|
|
3410
3410
|
}
|
|
3411
3411
|
var XYZColorSpaces_instance;
|
|
3412
3412
|
function XYZColorSpaces_getInstance() {
|
|
@@ -3417,31 +3417,31 @@
|
|
|
3417
3417
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
3418
3418
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
3419
3419
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
3420
|
-
var dstWp = _this__u8e3s4.
|
|
3421
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
3422
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
3420
|
+
var dstWp = _this__u8e3s4.k1p().i1s_1;
|
|
3421
|
+
var src = dot_0(xyzToLms, srcWp.k1t(), srcWp.j1t_1, srcWp.l1t());
|
|
3422
|
+
var dst = dot_0(xyzToLms, dstWp.k1t(), dstWp.j1t_1, dstWp.l1t());
|
|
3423
3423
|
return dot(dotDiagonal(lmsToXyz, _Vector___get_l__impl__envr1l(dst) / _Vector___get_l__impl__envr1l(src), _Vector___get_m__impl__e5qq0m(dst) / _Vector___get_m__impl__e5qq0m(src), _Vector___get_s__impl__pzuljk(dst) / _Vector___get_s__impl__pzuljk(src)), xyzToLms);
|
|
3424
3424
|
}
|
|
3425
3425
|
function XYZColorSpaceImpl(whitePoint) {
|
|
3426
|
-
this.
|
|
3427
|
-
this.
|
|
3426
|
+
this.y1u_1 = whitePoint;
|
|
3427
|
+
this.z1u_1 = zeroOneComponentInfo('XYZ');
|
|
3428
3428
|
}
|
|
3429
|
-
protoOf(XYZColorSpaceImpl).
|
|
3430
|
-
return this.
|
|
3429
|
+
protoOf(XYZColorSpaceImpl).k1p = function () {
|
|
3430
|
+
return this.y1u_1;
|
|
3431
3431
|
};
|
|
3432
|
-
protoOf(XYZColorSpaceImpl).
|
|
3432
|
+
protoOf(XYZColorSpaceImpl).t2 = function () {
|
|
3433
3433
|
return 'XYZ';
|
|
3434
3434
|
};
|
|
3435
|
-
protoOf(XYZColorSpaceImpl).
|
|
3436
|
-
return this.
|
|
3435
|
+
protoOf(XYZColorSpaceImpl).l1p = function () {
|
|
3436
|
+
return this.z1u_1;
|
|
3437
3437
|
};
|
|
3438
|
-
protoOf(XYZColorSpaceImpl).
|
|
3439
|
-
return color.
|
|
3438
|
+
protoOf(XYZColorSpaceImpl).f1p = function (color) {
|
|
3439
|
+
return color.l1o().f1r(this);
|
|
3440
3440
|
};
|
|
3441
|
-
protoOf(XYZColorSpaceImpl).
|
|
3441
|
+
protoOf(XYZColorSpaceImpl).m1p = function (components) {
|
|
3442
3442
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
3443
3443
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
3444
|
-
var size = this.
|
|
3444
|
+
var size = this.l1p().m();
|
|
3445
3445
|
var containsLower = size - 1 | 0;
|
|
3446
3446
|
var containsArg = components.length;
|
|
3447
3447
|
// Inline function 'kotlin.require' call
|
|
@@ -3464,21 +3464,21 @@
|
|
|
3464
3464
|
}
|
|
3465
3465
|
// Inline function 'com.github.ajalt.colormath.model.XYZColorSpaceImpl.create.stub_for_inlining' call
|
|
3466
3466
|
var p3 = tmp;
|
|
3467
|
-
return this.
|
|
3467
|
+
return this.g1q(tmp3, tmp4, tmp5, p3);
|
|
3468
3468
|
};
|
|
3469
3469
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
3470
|
-
return 'XYZColorSpace(' + this.
|
|
3470
|
+
return 'XYZColorSpace(' + this.y1u_1.toString() + ')';
|
|
3471
3471
|
};
|
|
3472
|
-
protoOf(XYZColorSpaceImpl).
|
|
3472
|
+
protoOf(XYZColorSpaceImpl).g1q = function (x, y, z, alpha) {
|
|
3473
3473
|
return new XYZ(x, y, z, alpha, this);
|
|
3474
3474
|
};
|
|
3475
3475
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
3476
|
-
return this.
|
|
3476
|
+
return this.y1u_1.hashCode();
|
|
3477
3477
|
};
|
|
3478
3478
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
3479
3479
|
var tmp;
|
|
3480
3480
|
if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
|
|
3481
|
-
tmp = this.
|
|
3481
|
+
tmp = this.y1u_1.equals(other.k1p());
|
|
3482
3482
|
} else {
|
|
3483
3483
|
tmp = false;
|
|
3484
3484
|
}
|
|
@@ -3494,26 +3494,26 @@
|
|
|
3494
3494
|
}
|
|
3495
3495
|
function xyY(x, y, Y) {
|
|
3496
3496
|
Y = Y === VOID ? 1.0 : Y;
|
|
3497
|
-
this.
|
|
3498
|
-
this.
|
|
3499
|
-
this.
|
|
3497
|
+
this.h1t_1 = x;
|
|
3498
|
+
this.i1t_1 = y;
|
|
3499
|
+
this.j1t_1 = Y;
|
|
3500
3500
|
}
|
|
3501
|
-
protoOf(xyY).
|
|
3502
|
-
return 1 - this.
|
|
3501
|
+
protoOf(xyY).t1u = function () {
|
|
3502
|
+
return 1 - this.h1t_1 - this.i1t_1;
|
|
3503
3503
|
};
|
|
3504
|
-
protoOf(xyY).
|
|
3505
|
-
return this.
|
|
3504
|
+
protoOf(xyY).k1t = function () {
|
|
3505
|
+
return this.h1t_1 * this.j1t_1 / this.i1t_1;
|
|
3506
3506
|
};
|
|
3507
|
-
protoOf(xyY).
|
|
3508
|
-
return (1 - this.
|
|
3507
|
+
protoOf(xyY).l1t = function () {
|
|
3508
|
+
return (1 - this.h1t_1 - this.i1t_1) * this.j1t_1 / this.i1t_1;
|
|
3509
3509
|
};
|
|
3510
3510
|
protoOf(xyY).toString = function () {
|
|
3511
|
-
return 'xyY(x=' + this.
|
|
3511
|
+
return 'xyY(x=' + this.h1t_1 + ', y=' + this.i1t_1 + ', Y=' + this.j1t_1 + ')';
|
|
3512
3512
|
};
|
|
3513
3513
|
protoOf(xyY).hashCode = function () {
|
|
3514
|
-
var result = getNumberHashCode(this.
|
|
3515
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3516
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3514
|
+
var result = getNumberHashCode(this.h1t_1);
|
|
3515
|
+
result = imul(result, 31) + getNumberHashCode(this.i1t_1) | 0;
|
|
3516
|
+
result = imul(result, 31) + getNumberHashCode(this.j1t_1) | 0;
|
|
3517
3517
|
return result;
|
|
3518
3518
|
};
|
|
3519
3519
|
protoOf(xyY).equals = function (other) {
|
|
@@ -3522,67 +3522,67 @@
|
|
|
3522
3522
|
if (!(other instanceof xyY))
|
|
3523
3523
|
return false;
|
|
3524
3524
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
3525
|
-
if (!equals(this.
|
|
3525
|
+
if (!equals(this.h1t_1, tmp0_other_with_cast.h1t_1))
|
|
3526
3526
|
return false;
|
|
3527
|
-
if (!equals(this.
|
|
3527
|
+
if (!equals(this.i1t_1, tmp0_other_with_cast.i1t_1))
|
|
3528
3528
|
return false;
|
|
3529
|
-
if (!equals(this.
|
|
3529
|
+
if (!equals(this.j1t_1, tmp0_other_with_cast.j1t_1))
|
|
3530
3530
|
return false;
|
|
3531
3531
|
return true;
|
|
3532
3532
|
};
|
|
3533
3533
|
//region block: post-declaration
|
|
3534
|
-
protoOf(HSL).
|
|
3535
|
-
protoOf(HSL).
|
|
3536
|
-
protoOf(HSL).
|
|
3537
|
-
protoOf(HSL).
|
|
3538
|
-
protoOf(HSL).
|
|
3539
|
-
protoOf(HSL).
|
|
3540
|
-
protoOf(HWB).
|
|
3541
|
-
protoOf(HWB).
|
|
3542
|
-
protoOf(HWB).
|
|
3543
|
-
protoOf(HWB).
|
|
3544
|
-
protoOf(HWB).
|
|
3545
|
-
protoOf(HWB).
|
|
3546
|
-
protoOf(LAB).
|
|
3547
|
-
protoOf(LAB).
|
|
3548
|
-
protoOf(LAB).
|
|
3549
|
-
protoOf(LAB).
|
|
3550
|
-
protoOf(LABColorSpaceImpl).
|
|
3551
|
-
protoOf(LCHab).
|
|
3552
|
-
protoOf(LCHab).
|
|
3553
|
-
protoOf(LCHab).
|
|
3554
|
-
protoOf(LCHab).
|
|
3555
|
-
protoOf(Oklab).
|
|
3556
|
-
protoOf(Oklab).
|
|
3557
|
-
protoOf(Oklab).
|
|
3558
|
-
protoOf(Oklab).
|
|
3559
|
-
protoOf(Oklch).
|
|
3560
|
-
protoOf(Oklch).
|
|
3561
|
-
protoOf(Oklch).
|
|
3562
|
-
protoOf(Oklch).
|
|
3563
|
-
protoOf(Companion_6).
|
|
3564
|
-
protoOf(RGB).
|
|
3565
|
-
protoOf(RGB).
|
|
3566
|
-
protoOf(RGB).
|
|
3567
|
-
protoOf(SRGB).
|
|
3568
|
-
protoOf(RGBColorSpaceImpl).
|
|
3569
|
-
protoOf(RGBColorSpaceImpl).
|
|
3570
|
-
protoOf(RGBColorSpaceImpl).
|
|
3571
|
-
protoOf(RGBColorSpaceImpl).
|
|
3572
|
-
protoOf(RGBInt).
|
|
3573
|
-
protoOf(RGBInt).
|
|
3574
|
-
protoOf(RGBInt).
|
|
3575
|
-
protoOf(RGBInt).
|
|
3576
|
-
protoOf(RGBInt).
|
|
3577
|
-
protoOf(RGBInt).
|
|
3578
|
-
protoOf(RGBInt).
|
|
3579
|
-
protoOf(Companion_8).
|
|
3580
|
-
protoOf(XYZ).
|
|
3581
|
-
protoOf(XYZ).
|
|
3582
|
-
protoOf(XYZ).
|
|
3583
|
-
protoOf(XYZ).
|
|
3584
|
-
protoOf(XYZColorSpaceImpl).
|
|
3585
|
-
protoOf(XYZColorSpaceImpl).
|
|
3534
|
+
protoOf(HSL).l1o = toXYZ;
|
|
3535
|
+
protoOf(HSL).m1o = toLAB;
|
|
3536
|
+
protoOf(HSL).s1o = toLCHab;
|
|
3537
|
+
protoOf(HSL).y1o = toHWB;
|
|
3538
|
+
protoOf(HSL).z1o = toOklab;
|
|
3539
|
+
protoOf(HSL).a1p = toOklch;
|
|
3540
|
+
protoOf(HWB).f1o = toHSL;
|
|
3541
|
+
protoOf(HWB).l1o = toXYZ;
|
|
3542
|
+
protoOf(HWB).m1o = toLAB;
|
|
3543
|
+
protoOf(HWB).s1o = toLCHab;
|
|
3544
|
+
protoOf(HWB).z1o = toOklab;
|
|
3545
|
+
protoOf(HWB).a1p = toOklch;
|
|
3546
|
+
protoOf(LAB).f1o = toHSL;
|
|
3547
|
+
protoOf(LAB).y1o = toHWB;
|
|
3548
|
+
protoOf(LAB).z1o = toOklab;
|
|
3549
|
+
protoOf(LAB).a1p = toOklch;
|
|
3550
|
+
protoOf(LABColorSpaceImpl).f1t = invoke;
|
|
3551
|
+
protoOf(LCHab).f1o = toHSL;
|
|
3552
|
+
protoOf(LCHab).y1o = toHWB;
|
|
3553
|
+
protoOf(LCHab).z1o = toOklab;
|
|
3554
|
+
protoOf(LCHab).a1p = toOklch;
|
|
3555
|
+
protoOf(Oklab).f1o = toHSL;
|
|
3556
|
+
protoOf(Oklab).m1o = toLAB;
|
|
3557
|
+
protoOf(Oklab).s1o = toLCHab;
|
|
3558
|
+
protoOf(Oklab).y1o = toHWB;
|
|
3559
|
+
protoOf(Oklch).f1o = toHSL;
|
|
3560
|
+
protoOf(Oklch).m1o = toLAB;
|
|
3561
|
+
protoOf(Oklch).s1o = toLCHab;
|
|
3562
|
+
protoOf(Oklch).y1o = toHWB;
|
|
3563
|
+
protoOf(Companion_6).j1s = from255$default;
|
|
3564
|
+
protoOf(RGB).m1o = toLAB;
|
|
3565
|
+
protoOf(RGB).s1o = toLCHab;
|
|
3566
|
+
protoOf(RGB).a1p = toOklch;
|
|
3567
|
+
protoOf(SRGB).j1s = from255$default;
|
|
3568
|
+
protoOf(RGBColorSpaceImpl).f1t = invoke_0;
|
|
3569
|
+
protoOf(RGBColorSpaceImpl).f1q = invoke_1;
|
|
3570
|
+
protoOf(RGBColorSpaceImpl).k1s = from255;
|
|
3571
|
+
protoOf(RGBColorSpaceImpl).j1s = from255$default;
|
|
3572
|
+
protoOf(RGBInt).f1o = toHSL;
|
|
3573
|
+
protoOf(RGBInt).l1o = toXYZ;
|
|
3574
|
+
protoOf(RGBInt).m1o = toLAB;
|
|
3575
|
+
protoOf(RGBInt).s1o = toLCHab;
|
|
3576
|
+
protoOf(RGBInt).y1o = toHWB;
|
|
3577
|
+
protoOf(RGBInt).z1o = toOklab;
|
|
3578
|
+
protoOf(RGBInt).a1p = toOklch;
|
|
3579
|
+
protoOf(Companion_8).g1t = invoke$default;
|
|
3580
|
+
protoOf(XYZ).f1o = toHSL;
|
|
3581
|
+
protoOf(XYZ).s1o = toLCHab;
|
|
3582
|
+
protoOf(XYZ).y1o = toHWB;
|
|
3583
|
+
protoOf(XYZ).a1p = toOklch;
|
|
3584
|
+
protoOf(XYZColorSpaceImpl).f1t = invoke_2;
|
|
3585
|
+
protoOf(XYZColorSpaceImpl).g1t = invoke$default;
|
|
3586
3586
|
//endregion
|
|
3587
3587
|
//region block: init
|
|
3588
3588
|
Companion_instance_0 = new Companion();
|