@raystack/apsara 0.49.0 → 0.49.1
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/dist/components/calendar/range-picker.cjs +19 -18
- package/dist/components/calendar/range-picker.cjs.map +1 -1
- package/dist/components/calendar/range-picker.d.ts +5 -4
- package/dist/components/calendar/range-picker.d.ts.map +1 -1
- package/dist/components/calendar/range-picker.js +19 -18
- package/dist/components/calendar/range-picker.js.map +1 -1
- package/dist/components/color-picker/color-picker-alpha.cjs +15 -0
- package/dist/components/color-picker/color-picker-alpha.cjs.map +1 -0
- package/dist/components/color-picker/color-picker-alpha.d.ts +5 -0
- package/dist/components/color-picker/color-picker-alpha.d.ts.map +1 -0
- package/dist/components/color-picker/color-picker-alpha.js +13 -0
- package/dist/components/color-picker/color-picker-alpha.js.map +1 -0
- package/dist/components/color-picker/color-picker-area.cjs +73 -0
- package/dist/components/color-picker/color-picker-area.cjs.map +1 -0
- package/dist/components/color-picker/color-picker-area.d.ts +4 -0
- package/dist/components/color-picker/color-picker-area.d.ts.map +1 -0
- package/dist/components/color-picker/color-picker-area.js +71 -0
- package/dist/components/color-picker/color-picker-area.js.map +1 -0
- package/dist/components/color-picker/color-picker-hue.cjs +15 -0
- package/dist/components/color-picker/color-picker-hue.cjs.map +1 -0
- package/dist/components/color-picker/color-picker-hue.d.ts +5 -0
- package/dist/components/color-picker/color-picker-hue.d.ts.map +1 -0
- package/dist/components/color-picker/color-picker-hue.js +13 -0
- package/dist/components/color-picker/color-picker-hue.js.map +1 -0
- package/dist/components/color-picker/color-picker-input.cjs +16 -0
- package/dist/components/color-picker/color-picker-input.cjs.map +1 -0
- package/dist/components/color-picker/color-picker-input.d.ts +4 -0
- package/dist/components/color-picker/color-picker-input.d.ts.map +1 -0
- package/dist/components/color-picker/color-picker-input.js +14 -0
- package/dist/components/color-picker/color-picker-input.js.map +1 -0
- package/dist/components/color-picker/color-picker-mode.cjs +16 -0
- package/dist/components/color-picker/color-picker-mode.cjs.map +1 -0
- package/dist/components/color-picker/color-picker-mode.d.ts +8 -0
- package/dist/components/color-picker/color-picker-mode.d.ts.map +1 -0
- package/dist/components/color-picker/color-picker-mode.js +14 -0
- package/dist/components/color-picker/color-picker-mode.js.map +1 -0
- package/dist/components/color-picker/color-picker-root.cjs +53 -0
- package/dist/components/color-picker/color-picker-root.cjs.map +1 -0
- package/dist/components/color-picker/color-picker-root.d.ts +25 -0
- package/dist/components/color-picker/color-picker-root.d.ts.map +1 -0
- package/dist/components/color-picker/color-picker-root.js +50 -0
- package/dist/components/color-picker/color-picker-root.js.map +1 -0
- package/dist/components/color-picker/color-picker.cjs +19 -0
- package/dist/components/color-picker/color-picker.cjs.map +1 -0
- package/dist/components/color-picker/color-picker.js +17 -0
- package/dist/components/color-picker/color-picker.js.map +1 -0
- package/dist/components/color-picker/color-picker.module.css.cjs +8 -0
- package/dist/components/color-picker/color-picker.module.css.cjs.map +1 -0
- package/dist/components/color-picker/color-picker.module.css.js +4 -0
- package/dist/components/color-picker/color-picker.module.css.js.map +1 -0
- package/dist/components/color-picker/index.d.ts +2 -0
- package/dist/components/color-picker/index.d.ts.map +1 -0
- package/dist/components/color-picker/utils.cjs +18 -0
- package/dist/components/color-picker/utils.cjs.map +1 -0
- package/dist/components/color-picker/utils.d.ts +11 -0
- package/dist/components/color-picker/utils.d.ts.map +1 -0
- package/dist/components/color-picker/utils.js +15 -0
- package/dist/components/color-picker/utils.js.map +1 -0
- package/dist/components/filter-chip/filter-chip.cjs +1 -1
- package/dist/components/filter-chip/filter-chip.js +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/conversions.cjs +986 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/conversions.cjs.map +1 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/conversions.js +982 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/conversions.js.map +1 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/index.cjs +86 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/index.js +82 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/index.js.map +1 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/route.cjs +103 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/route.cjs.map +1 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/route.js +99 -0
- package/dist/node_modules/.pnpm/color-convert@3.1.0/node_modules/color-convert/route.js.map +1 -0
- package/dist/node_modules/.pnpm/color-name@2.0.0/node_modules/color-name/index.cjs +157 -0
- package/dist/node_modules/.pnpm/color-name@2.0.0/node_modules/color-name/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/color-name@2.0.0/node_modules/color-name/index.js +153 -0
- package/dist/node_modules/.pnpm/color-name@2.0.0/node_modules/color-name/index.js.map +1 -0
- package/dist/node_modules/.pnpm/color-string@2.0.1/node_modules/color-string/index.cjs +235 -0
- package/dist/node_modules/.pnpm/color-string@2.0.1/node_modules/color-string/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/color-string@2.0.1/node_modules/color-string/index.js +231 -0
- package/dist/node_modules/.pnpm/color-string@2.0.1/node_modules/color-string/index.js.map +1 -0
- package/dist/node_modules/.pnpm/color@5.0.0/node_modules/color/index.cjs +501 -0
- package/dist/node_modules/.pnpm/color@5.0.0/node_modules/color/index.cjs.map +1 -0
- package/dist/node_modules/.pnpm/color@5.0.0/node_modules/color/index.js +497 -0
- package/dist/node_modules/.pnpm/color@5.0.0/node_modules/color/index.js.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
import cs from '../../../color-string@2.0.1/node_modules/color-string/index.js';
|
|
2
|
+
import convert from '../../../color-convert@3.1.0/node_modules/color-convert/index.js';
|
|
3
|
+
|
|
4
|
+
const skippedModels = [
|
|
5
|
+
// To be honest, I don't really feel like keyword belongs in color convert, but eh.
|
|
6
|
+
'keyword',
|
|
7
|
+
|
|
8
|
+
// Gray conflicts with some method names, and has its own method defined.
|
|
9
|
+
'gray',
|
|
10
|
+
|
|
11
|
+
// Shouldn't really be in color-convert either...
|
|
12
|
+
'hex',
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
const hashedModelKeys = {};
|
|
16
|
+
for (const model of Object.keys(convert)) {
|
|
17
|
+
hashedModelKeys[[...convert[model].labels].sort().join('')] = model;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const limiters = {};
|
|
21
|
+
|
|
22
|
+
function Color(object, model) {
|
|
23
|
+
if (!(this instanceof Color)) {
|
|
24
|
+
return new Color(object, model);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (model && model in skippedModels) {
|
|
28
|
+
model = null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (model && !(model in convert)) {
|
|
32
|
+
throw new Error('Unknown model: ' + model);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
let i;
|
|
36
|
+
let channels;
|
|
37
|
+
|
|
38
|
+
if (object == null) { // eslint-disable-line no-eq-null,eqeqeq
|
|
39
|
+
this.model = 'rgb';
|
|
40
|
+
this.color = [0, 0, 0];
|
|
41
|
+
this.valpha = 1;
|
|
42
|
+
} else if (object instanceof Color) {
|
|
43
|
+
this.model = object.model;
|
|
44
|
+
this.color = [...object.color];
|
|
45
|
+
this.valpha = object.valpha;
|
|
46
|
+
} else if (typeof object === 'string') {
|
|
47
|
+
const result = cs.get(object);
|
|
48
|
+
if (result === null) {
|
|
49
|
+
throw new Error('Unable to parse color from string: ' + object);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
this.model = result.model;
|
|
53
|
+
channels = convert[this.model].channels;
|
|
54
|
+
this.color = result.value.slice(0, channels);
|
|
55
|
+
this.valpha = typeof result.value[channels] === 'number' ? result.value[channels] : 1;
|
|
56
|
+
} else if (object.length > 0) {
|
|
57
|
+
this.model = model || 'rgb';
|
|
58
|
+
channels = convert[this.model].channels;
|
|
59
|
+
const newArray = Array.prototype.slice.call(object, 0, channels);
|
|
60
|
+
this.color = zeroArray(newArray, channels);
|
|
61
|
+
this.valpha = typeof object[channels] === 'number' ? object[channels] : 1;
|
|
62
|
+
} else if (typeof object === 'number') {
|
|
63
|
+
// This is always RGB - can be converted later on.
|
|
64
|
+
this.model = 'rgb';
|
|
65
|
+
this.color = [
|
|
66
|
+
(object >> 16) & 0xFF,
|
|
67
|
+
(object >> 8) & 0xFF,
|
|
68
|
+
object & 0xFF,
|
|
69
|
+
];
|
|
70
|
+
this.valpha = 1;
|
|
71
|
+
} else {
|
|
72
|
+
this.valpha = 1;
|
|
73
|
+
|
|
74
|
+
const keys = Object.keys(object);
|
|
75
|
+
if ('alpha' in object) {
|
|
76
|
+
keys.splice(keys.indexOf('alpha'), 1);
|
|
77
|
+
this.valpha = typeof object.alpha === 'number' ? object.alpha : 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const hashedKeys = keys.sort().join('');
|
|
81
|
+
if (!(hashedKeys in hashedModelKeys)) {
|
|
82
|
+
throw new Error('Unable to parse color from object: ' + JSON.stringify(object));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
this.model = hashedModelKeys[hashedKeys];
|
|
86
|
+
|
|
87
|
+
const {labels} = convert[this.model];
|
|
88
|
+
const color = [];
|
|
89
|
+
for (i = 0; i < labels.length; i++) {
|
|
90
|
+
color.push(object[labels[i]]);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
this.color = zeroArray(color);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Perform limitations (clamping, etc.)
|
|
97
|
+
if (limiters[this.model]) {
|
|
98
|
+
channels = convert[this.model].channels;
|
|
99
|
+
for (i = 0; i < channels; i++) {
|
|
100
|
+
const limit = limiters[this.model][i];
|
|
101
|
+
if (limit) {
|
|
102
|
+
this.color[i] = limit(this.color[i]);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
this.valpha = Math.max(0, Math.min(1, this.valpha));
|
|
108
|
+
|
|
109
|
+
if (Object.freeze) {
|
|
110
|
+
Object.freeze(this);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
Color.prototype = {
|
|
115
|
+
toString() {
|
|
116
|
+
return this.string();
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
toJSON() {
|
|
120
|
+
return this[this.model]();
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
string(places) {
|
|
124
|
+
let self = this.model in cs.to ? this : this.rgb();
|
|
125
|
+
self = self.round(typeof places === 'number' ? places : 1);
|
|
126
|
+
const arguments_ = self.valpha === 1 ? self.color : [...self.color, this.valpha];
|
|
127
|
+
return cs.to[self.model](...arguments_);
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
percentString(places) {
|
|
131
|
+
const self = this.rgb().round(typeof places === 'number' ? places : 1);
|
|
132
|
+
const arguments_ = self.valpha === 1 ? self.color : [...self.color, this.valpha];
|
|
133
|
+
return cs.to.rgb.percent(...arguments_);
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
array() {
|
|
137
|
+
return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];
|
|
138
|
+
},
|
|
139
|
+
|
|
140
|
+
object() {
|
|
141
|
+
const result = {};
|
|
142
|
+
const {channels} = convert[this.model];
|
|
143
|
+
const {labels} = convert[this.model];
|
|
144
|
+
|
|
145
|
+
for (let i = 0; i < channels; i++) {
|
|
146
|
+
result[labels[i]] = this.color[i];
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (this.valpha !== 1) {
|
|
150
|
+
result.alpha = this.valpha;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return result;
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
unitArray() {
|
|
157
|
+
const rgb = this.rgb().color;
|
|
158
|
+
rgb[0] /= 255;
|
|
159
|
+
rgb[1] /= 255;
|
|
160
|
+
rgb[2] /= 255;
|
|
161
|
+
|
|
162
|
+
if (this.valpha !== 1) {
|
|
163
|
+
rgb.push(this.valpha);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
return rgb;
|
|
167
|
+
},
|
|
168
|
+
|
|
169
|
+
unitObject() {
|
|
170
|
+
const rgb = this.rgb().object();
|
|
171
|
+
rgb.r /= 255;
|
|
172
|
+
rgb.g /= 255;
|
|
173
|
+
rgb.b /= 255;
|
|
174
|
+
|
|
175
|
+
if (this.valpha !== 1) {
|
|
176
|
+
rgb.alpha = this.valpha;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
return rgb;
|
|
180
|
+
},
|
|
181
|
+
|
|
182
|
+
round(places) {
|
|
183
|
+
places = Math.max(places || 0, 0);
|
|
184
|
+
return new Color([...this.color.map(roundToPlace(places)), this.valpha], this.model);
|
|
185
|
+
},
|
|
186
|
+
|
|
187
|
+
alpha(value) {
|
|
188
|
+
if (value !== undefined) {
|
|
189
|
+
return new Color([...this.color, Math.max(0, Math.min(1, value))], this.model);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
return this.valpha;
|
|
193
|
+
},
|
|
194
|
+
|
|
195
|
+
// Rgb
|
|
196
|
+
red: getset('rgb', 0, maxfn(255)),
|
|
197
|
+
green: getset('rgb', 1, maxfn(255)),
|
|
198
|
+
blue: getset('rgb', 2, maxfn(255)),
|
|
199
|
+
|
|
200
|
+
hue: getset(['hsl', 'hsv', 'hsl', 'hwb', 'hcg'], 0, value => ((value % 360) + 360) % 360),
|
|
201
|
+
|
|
202
|
+
saturationl: getset('hsl', 1, maxfn(100)),
|
|
203
|
+
lightness: getset('hsl', 2, maxfn(100)),
|
|
204
|
+
|
|
205
|
+
saturationv: getset('hsv', 1, maxfn(100)),
|
|
206
|
+
value: getset('hsv', 2, maxfn(100)),
|
|
207
|
+
|
|
208
|
+
chroma: getset('hcg', 1, maxfn(100)),
|
|
209
|
+
gray: getset('hcg', 2, maxfn(100)),
|
|
210
|
+
|
|
211
|
+
white: getset('hwb', 1, maxfn(100)),
|
|
212
|
+
wblack: getset('hwb', 2, maxfn(100)),
|
|
213
|
+
|
|
214
|
+
cyan: getset('cmyk', 0, maxfn(100)),
|
|
215
|
+
magenta: getset('cmyk', 1, maxfn(100)),
|
|
216
|
+
yellow: getset('cmyk', 2, maxfn(100)),
|
|
217
|
+
black: getset('cmyk', 3, maxfn(100)),
|
|
218
|
+
|
|
219
|
+
x: getset('xyz', 0, maxfn(95.047)),
|
|
220
|
+
y: getset('xyz', 1, maxfn(100)),
|
|
221
|
+
z: getset('xyz', 2, maxfn(108.833)),
|
|
222
|
+
|
|
223
|
+
l: getset('lab', 0, maxfn(100)),
|
|
224
|
+
a: getset('lab', 1),
|
|
225
|
+
b: getset('lab', 2),
|
|
226
|
+
|
|
227
|
+
keyword(value) {
|
|
228
|
+
if (value !== undefined) {
|
|
229
|
+
return new Color(value);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
return convert[this.model].keyword(this.color);
|
|
233
|
+
},
|
|
234
|
+
|
|
235
|
+
hex(value) {
|
|
236
|
+
if (value !== undefined) {
|
|
237
|
+
return new Color(value);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
return cs.to.hex(...this.rgb().round().color);
|
|
241
|
+
},
|
|
242
|
+
|
|
243
|
+
hexa(value) {
|
|
244
|
+
if (value !== undefined) {
|
|
245
|
+
return new Color(value);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
const rgbArray = this.rgb().round().color;
|
|
249
|
+
|
|
250
|
+
let alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();
|
|
251
|
+
if (alphaHex.length === 1) {
|
|
252
|
+
alphaHex = '0' + alphaHex;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
return cs.to.hex(...rgbArray) + alphaHex;
|
|
256
|
+
},
|
|
257
|
+
|
|
258
|
+
rgbNumber() {
|
|
259
|
+
const rgb = this.rgb().color;
|
|
260
|
+
return ((rgb[0] & 0xFF) << 16) | ((rgb[1] & 0xFF) << 8) | (rgb[2] & 0xFF);
|
|
261
|
+
},
|
|
262
|
+
|
|
263
|
+
luminosity() {
|
|
264
|
+
// http://www.w3.org/TR/WCAG20/#relativeluminancedef
|
|
265
|
+
const rgb = this.rgb().color;
|
|
266
|
+
|
|
267
|
+
const lum = [];
|
|
268
|
+
for (const [i, element] of rgb.entries()) {
|
|
269
|
+
const chan = element / 255;
|
|
270
|
+
lum[i] = (chan <= 0.04045) ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];
|
|
274
|
+
},
|
|
275
|
+
|
|
276
|
+
contrast(color2) {
|
|
277
|
+
// http://www.w3.org/TR/WCAG20/#contrast-ratiodef
|
|
278
|
+
const lum1 = this.luminosity();
|
|
279
|
+
const lum2 = color2.luminosity();
|
|
280
|
+
|
|
281
|
+
if (lum1 > lum2) {
|
|
282
|
+
return (lum1 + 0.05) / (lum2 + 0.05);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
return (lum2 + 0.05) / (lum1 + 0.05);
|
|
286
|
+
},
|
|
287
|
+
|
|
288
|
+
level(color2) {
|
|
289
|
+
// https://www.w3.org/TR/WCAG/#contrast-enhanced
|
|
290
|
+
const contrastRatio = this.contrast(color2);
|
|
291
|
+
if (contrastRatio >= 7) {
|
|
292
|
+
return 'AAA';
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
return (contrastRatio >= 4.5) ? 'AA' : '';
|
|
296
|
+
},
|
|
297
|
+
|
|
298
|
+
isDark() {
|
|
299
|
+
// YIQ equation from http://24ways.org/2010/calculating-color-contrast
|
|
300
|
+
const rgb = this.rgb().color;
|
|
301
|
+
const yiq = (rgb[0] * 2126 + rgb[1] * 7152 + rgb[2] * 722) / 10000;
|
|
302
|
+
return yiq < 128;
|
|
303
|
+
},
|
|
304
|
+
|
|
305
|
+
isLight() {
|
|
306
|
+
return !this.isDark();
|
|
307
|
+
},
|
|
308
|
+
|
|
309
|
+
negate() {
|
|
310
|
+
const rgb = this.rgb();
|
|
311
|
+
for (let i = 0; i < 3; i++) {
|
|
312
|
+
rgb.color[i] = 255 - rgb.color[i];
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
return rgb;
|
|
316
|
+
},
|
|
317
|
+
|
|
318
|
+
lighten(ratio) {
|
|
319
|
+
const hsl = this.hsl();
|
|
320
|
+
hsl.color[2] += hsl.color[2] * ratio;
|
|
321
|
+
return hsl;
|
|
322
|
+
},
|
|
323
|
+
|
|
324
|
+
darken(ratio) {
|
|
325
|
+
const hsl = this.hsl();
|
|
326
|
+
hsl.color[2] -= hsl.color[2] * ratio;
|
|
327
|
+
return hsl;
|
|
328
|
+
},
|
|
329
|
+
|
|
330
|
+
saturate(ratio) {
|
|
331
|
+
const hsl = this.hsl();
|
|
332
|
+
hsl.color[1] += hsl.color[1] * ratio;
|
|
333
|
+
return hsl;
|
|
334
|
+
},
|
|
335
|
+
|
|
336
|
+
desaturate(ratio) {
|
|
337
|
+
const hsl = this.hsl();
|
|
338
|
+
hsl.color[1] -= hsl.color[1] * ratio;
|
|
339
|
+
return hsl;
|
|
340
|
+
},
|
|
341
|
+
|
|
342
|
+
whiten(ratio) {
|
|
343
|
+
const hwb = this.hwb();
|
|
344
|
+
hwb.color[1] += hwb.color[1] * ratio;
|
|
345
|
+
return hwb;
|
|
346
|
+
},
|
|
347
|
+
|
|
348
|
+
blacken(ratio) {
|
|
349
|
+
const hwb = this.hwb();
|
|
350
|
+
hwb.color[2] += hwb.color[2] * ratio;
|
|
351
|
+
return hwb;
|
|
352
|
+
},
|
|
353
|
+
|
|
354
|
+
grayscale() {
|
|
355
|
+
// http://en.wikipedia.org/wiki/Grayscale#Converting_colour_to_grayscale
|
|
356
|
+
const rgb = this.rgb().color;
|
|
357
|
+
const value = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;
|
|
358
|
+
return Color.rgb(value, value, value);
|
|
359
|
+
},
|
|
360
|
+
|
|
361
|
+
fade(ratio) {
|
|
362
|
+
return this.alpha(this.valpha - (this.valpha * ratio));
|
|
363
|
+
},
|
|
364
|
+
|
|
365
|
+
opaquer(ratio) {
|
|
366
|
+
return this.alpha(this.valpha + (this.valpha * ratio));
|
|
367
|
+
},
|
|
368
|
+
|
|
369
|
+
rotate(degrees) {
|
|
370
|
+
const hsl = this.hsl();
|
|
371
|
+
let hue = hsl.color[0];
|
|
372
|
+
hue = (hue + degrees) % 360;
|
|
373
|
+
hue = hue < 0 ? 360 + hue : hue;
|
|
374
|
+
hsl.color[0] = hue;
|
|
375
|
+
return hsl;
|
|
376
|
+
},
|
|
377
|
+
|
|
378
|
+
mix(mixinColor, weight) {
|
|
379
|
+
// Ported from sass implementation in C
|
|
380
|
+
// https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209
|
|
381
|
+
if (!mixinColor || !mixinColor.rgb) {
|
|
382
|
+
throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof mixinColor);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
const color1 = mixinColor.rgb();
|
|
386
|
+
const color2 = this.rgb();
|
|
387
|
+
const p = weight === undefined ? 0.5 : weight;
|
|
388
|
+
|
|
389
|
+
const w = 2 * p - 1;
|
|
390
|
+
const a = color1.alpha() - color2.alpha();
|
|
391
|
+
|
|
392
|
+
const w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2;
|
|
393
|
+
const w2 = 1 - w1;
|
|
394
|
+
|
|
395
|
+
return Color.rgb(
|
|
396
|
+
w1 * color1.red() + w2 * color2.red(),
|
|
397
|
+
w1 * color1.green() + w2 * color2.green(),
|
|
398
|
+
w1 * color1.blue() + w2 * color2.blue(),
|
|
399
|
+
color1.alpha() * p + color2.alpha() * (1 - p));
|
|
400
|
+
},
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
// Model conversion methods and static constructors
|
|
404
|
+
for (const model of Object.keys(convert)) {
|
|
405
|
+
if (skippedModels.includes(model)) {
|
|
406
|
+
continue;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
const {channels} = convert[model];
|
|
410
|
+
|
|
411
|
+
// Conversion methods
|
|
412
|
+
Color.prototype[model] = function (...arguments_) {
|
|
413
|
+
if (this.model === model) {
|
|
414
|
+
return new Color(this);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
if (arguments_.length > 0) {
|
|
418
|
+
return new Color(arguments_, model);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
return new Color([...assertArray(convert[this.model][model].raw(this.color)), this.valpha], model);
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
// 'static' construction methods
|
|
425
|
+
Color[model] = function (...arguments_) {
|
|
426
|
+
let color = arguments_[0];
|
|
427
|
+
if (typeof color === 'number') {
|
|
428
|
+
color = zeroArray(arguments_, channels);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
return new Color(color, model);
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
function roundTo(number, places) {
|
|
436
|
+
return Number(number.toFixed(places));
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
function roundToPlace(places) {
|
|
440
|
+
return function (number) {
|
|
441
|
+
return roundTo(number, places);
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
function getset(model, channel, modifier) {
|
|
446
|
+
model = Array.isArray(model) ? model : [model];
|
|
447
|
+
|
|
448
|
+
for (const m of model) {
|
|
449
|
+
(limiters[m] ||= [])[channel] = modifier;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
model = model[0];
|
|
453
|
+
|
|
454
|
+
return function (value) {
|
|
455
|
+
let result;
|
|
456
|
+
|
|
457
|
+
if (value !== undefined) {
|
|
458
|
+
if (modifier) {
|
|
459
|
+
value = modifier(value);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
result = this[model]();
|
|
463
|
+
result.color[channel] = value;
|
|
464
|
+
return result;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
result = this[model]().color[channel];
|
|
468
|
+
if (modifier) {
|
|
469
|
+
result = modifier(result);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
return result;
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
function maxfn(max) {
|
|
477
|
+
return function (v) {
|
|
478
|
+
return Math.max(0, Math.min(max, v));
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
function assertArray(value) {
|
|
483
|
+
return Array.isArray(value) ? value : [value];
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
function zeroArray(array, length) {
|
|
487
|
+
for (let i = 0; i < length; i++) {
|
|
488
|
+
if (typeof array[i] !== 'number') {
|
|
489
|
+
array[i] = 0;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
return array;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
export { Color as default };
|
|
497
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/.pnpm/color@5.0.0/node_modules/color/index.js"],"sourcesContent":["import colorString from 'color-string';\nimport convert from 'color-convert';\n\nconst skippedModels = [\n\t// To be honest, I don't really feel like keyword belongs in color convert, but eh.\n\t'keyword',\n\n\t// Gray conflicts with some method names, and has its own method defined.\n\t'gray',\n\n\t// Shouldn't really be in color-convert either...\n\t'hex',\n];\n\nconst hashedModelKeys = {};\nfor (const model of Object.keys(convert)) {\n\thashedModelKeys[[...convert[model].labels].sort().join('')] = model;\n}\n\nconst limiters = {};\n\nfunction Color(object, model) {\n\tif (!(this instanceof Color)) {\n\t\treturn new Color(object, model);\n\t}\n\n\tif (model && model in skippedModels) {\n\t\tmodel = null;\n\t}\n\n\tif (model && !(model in convert)) {\n\t\tthrow new Error('Unknown model: ' + model);\n\t}\n\n\tlet i;\n\tlet channels;\n\n\tif (object == null) { // eslint-disable-line no-eq-null,eqeqeq\n\t\tthis.model = 'rgb';\n\t\tthis.color = [0, 0, 0];\n\t\tthis.valpha = 1;\n\t} else if (object instanceof Color) {\n\t\tthis.model = object.model;\n\t\tthis.color = [...object.color];\n\t\tthis.valpha = object.valpha;\n\t} else if (typeof object === 'string') {\n\t\tconst result = colorString.get(object);\n\t\tif (result === null) {\n\t\t\tthrow new Error('Unable to parse color from string: ' + object);\n\t\t}\n\n\t\tthis.model = result.model;\n\t\tchannels = convert[this.model].channels;\n\t\tthis.color = result.value.slice(0, channels);\n\t\tthis.valpha = typeof result.value[channels] === 'number' ? result.value[channels] : 1;\n\t} else if (object.length > 0) {\n\t\tthis.model = model || 'rgb';\n\t\tchannels = convert[this.model].channels;\n\t\tconst newArray = Array.prototype.slice.call(object, 0, channels);\n\t\tthis.color = zeroArray(newArray, channels);\n\t\tthis.valpha = typeof object[channels] === 'number' ? object[channels] : 1;\n\t} else if (typeof object === 'number') {\n\t\t// This is always RGB - can be converted later on.\n\t\tthis.model = 'rgb';\n\t\tthis.color = [\n\t\t\t(object >> 16) & 0xFF,\n\t\t\t(object >> 8) & 0xFF,\n\t\t\tobject & 0xFF,\n\t\t];\n\t\tthis.valpha = 1;\n\t} else {\n\t\tthis.valpha = 1;\n\n\t\tconst keys = Object.keys(object);\n\t\tif ('alpha' in object) {\n\t\t\tkeys.splice(keys.indexOf('alpha'), 1);\n\t\t\tthis.valpha = typeof object.alpha === 'number' ? object.alpha : 0;\n\t\t}\n\n\t\tconst hashedKeys = keys.sort().join('');\n\t\tif (!(hashedKeys in hashedModelKeys)) {\n\t\t\tthrow new Error('Unable to parse color from object: ' + JSON.stringify(object));\n\t\t}\n\n\t\tthis.model = hashedModelKeys[hashedKeys];\n\n\t\tconst {labels} = convert[this.model];\n\t\tconst color = [];\n\t\tfor (i = 0; i < labels.length; i++) {\n\t\t\tcolor.push(object[labels[i]]);\n\t\t}\n\n\t\tthis.color = zeroArray(color);\n\t}\n\n\t// Perform limitations (clamping, etc.)\n\tif (limiters[this.model]) {\n\t\tchannels = convert[this.model].channels;\n\t\tfor (i = 0; i < channels; i++) {\n\t\t\tconst limit = limiters[this.model][i];\n\t\t\tif (limit) {\n\t\t\t\tthis.color[i] = limit(this.color[i]);\n\t\t\t}\n\t\t}\n\t}\n\n\tthis.valpha = Math.max(0, Math.min(1, this.valpha));\n\n\tif (Object.freeze) {\n\t\tObject.freeze(this);\n\t}\n}\n\nColor.prototype = {\n\ttoString() {\n\t\treturn this.string();\n\t},\n\n\ttoJSON() {\n\t\treturn this[this.model]();\n\t},\n\n\tstring(places) {\n\t\tlet self = this.model in colorString.to ? this : this.rgb();\n\t\tself = self.round(typeof places === 'number' ? places : 1);\n\t\tconst arguments_ = self.valpha === 1 ? self.color : [...self.color, this.valpha];\n\t\treturn colorString.to[self.model](...arguments_);\n\t},\n\n\tpercentString(places) {\n\t\tconst self = this.rgb().round(typeof places === 'number' ? places : 1);\n\t\tconst arguments_ = self.valpha === 1 ? self.color : [...self.color, this.valpha];\n\t\treturn colorString.to.rgb.percent(...arguments_);\n\t},\n\n\tarray() {\n\t\treturn this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];\n\t},\n\n\tobject() {\n\t\tconst result = {};\n\t\tconst {channels} = convert[this.model];\n\t\tconst {labels} = convert[this.model];\n\n\t\tfor (let i = 0; i < channels; i++) {\n\t\t\tresult[labels[i]] = this.color[i];\n\t\t}\n\n\t\tif (this.valpha !== 1) {\n\t\t\tresult.alpha = this.valpha;\n\t\t}\n\n\t\treturn result;\n\t},\n\n\tunitArray() {\n\t\tconst rgb = this.rgb().color;\n\t\trgb[0] /= 255;\n\t\trgb[1] /= 255;\n\t\trgb[2] /= 255;\n\n\t\tif (this.valpha !== 1) {\n\t\t\trgb.push(this.valpha);\n\t\t}\n\n\t\treturn rgb;\n\t},\n\n\tunitObject() {\n\t\tconst rgb = this.rgb().object();\n\t\trgb.r /= 255;\n\t\trgb.g /= 255;\n\t\trgb.b /= 255;\n\n\t\tif (this.valpha !== 1) {\n\t\t\trgb.alpha = this.valpha;\n\t\t}\n\n\t\treturn rgb;\n\t},\n\n\tround(places) {\n\t\tplaces = Math.max(places || 0, 0);\n\t\treturn new Color([...this.color.map(roundToPlace(places)), this.valpha], this.model);\n\t},\n\n\talpha(value) {\n\t\tif (value !== undefined) {\n\t\t\treturn new Color([...this.color, Math.max(0, Math.min(1, value))], this.model);\n\t\t}\n\n\t\treturn this.valpha;\n\t},\n\n\t// Rgb\n\tred: getset('rgb', 0, maxfn(255)),\n\tgreen: getset('rgb', 1, maxfn(255)),\n\tblue: getset('rgb', 2, maxfn(255)),\n\n\thue: getset(['hsl', 'hsv', 'hsl', 'hwb', 'hcg'], 0, value => ((value % 360) + 360) % 360),\n\n\tsaturationl: getset('hsl', 1, maxfn(100)),\n\tlightness: getset('hsl', 2, maxfn(100)),\n\n\tsaturationv: getset('hsv', 1, maxfn(100)),\n\tvalue: getset('hsv', 2, maxfn(100)),\n\n\tchroma: getset('hcg', 1, maxfn(100)),\n\tgray: getset('hcg', 2, maxfn(100)),\n\n\twhite: getset('hwb', 1, maxfn(100)),\n\twblack: getset('hwb', 2, maxfn(100)),\n\n\tcyan: getset('cmyk', 0, maxfn(100)),\n\tmagenta: getset('cmyk', 1, maxfn(100)),\n\tyellow: getset('cmyk', 2, maxfn(100)),\n\tblack: getset('cmyk', 3, maxfn(100)),\n\n\tx: getset('xyz', 0, maxfn(95.047)),\n\ty: getset('xyz', 1, maxfn(100)),\n\tz: getset('xyz', 2, maxfn(108.833)),\n\n\tl: getset('lab', 0, maxfn(100)),\n\ta: getset('lab', 1),\n\tb: getset('lab', 2),\n\n\tkeyword(value) {\n\t\tif (value !== undefined) {\n\t\t\treturn new Color(value);\n\t\t}\n\n\t\treturn convert[this.model].keyword(this.color);\n\t},\n\n\thex(value) {\n\t\tif (value !== undefined) {\n\t\t\treturn new Color(value);\n\t\t}\n\n\t\treturn colorString.to.hex(...this.rgb().round().color);\n\t},\n\n\thexa(value) {\n\t\tif (value !== undefined) {\n\t\t\treturn new Color(value);\n\t\t}\n\n\t\tconst rgbArray = this.rgb().round().color;\n\n\t\tlet alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();\n\t\tif (alphaHex.length === 1) {\n\t\t\talphaHex = '0' + alphaHex;\n\t\t}\n\n\t\treturn colorString.to.hex(...rgbArray) + alphaHex;\n\t},\n\n\trgbNumber() {\n\t\tconst rgb = this.rgb().color;\n\t\treturn ((rgb[0] & 0xFF) << 16) | ((rgb[1] & 0xFF) << 8) | (rgb[2] & 0xFF);\n\t},\n\n\tluminosity() {\n\t\t// http://www.w3.org/TR/WCAG20/#relativeluminancedef\n\t\tconst rgb = this.rgb().color;\n\n\t\tconst lum = [];\n\t\tfor (const [i, element] of rgb.entries()) {\n\t\t\tconst chan = element / 255;\n\t\t\tlum[i] = (chan <= 0.04045) ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4;\n\t\t}\n\n\t\treturn 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];\n\t},\n\n\tcontrast(color2) {\n\t\t// http://www.w3.org/TR/WCAG20/#contrast-ratiodef\n\t\tconst lum1 = this.luminosity();\n\t\tconst lum2 = color2.luminosity();\n\n\t\tif (lum1 > lum2) {\n\t\t\treturn (lum1 + 0.05) / (lum2 + 0.05);\n\t\t}\n\n\t\treturn (lum2 + 0.05) / (lum1 + 0.05);\n\t},\n\n\tlevel(color2) {\n\t\t// https://www.w3.org/TR/WCAG/#contrast-enhanced\n\t\tconst contrastRatio = this.contrast(color2);\n\t\tif (contrastRatio >= 7) {\n\t\t\treturn 'AAA';\n\t\t}\n\n\t\treturn (contrastRatio >= 4.5) ? 'AA' : '';\n\t},\n\n\tisDark() {\n\t\t// YIQ equation from http://24ways.org/2010/calculating-color-contrast\n\t\tconst rgb = this.rgb().color;\n\t\tconst yiq = (rgb[0] * 2126 + rgb[1] * 7152 + rgb[2] * 722) / 10000;\n\t\treturn yiq < 128;\n\t},\n\n\tisLight() {\n\t\treturn !this.isDark();\n\t},\n\n\tnegate() {\n\t\tconst rgb = this.rgb();\n\t\tfor (let i = 0; i < 3; i++) {\n\t\t\trgb.color[i] = 255 - rgb.color[i];\n\t\t}\n\n\t\treturn rgb;\n\t},\n\n\tlighten(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[2] += hsl.color[2] * ratio;\n\t\treturn hsl;\n\t},\n\n\tdarken(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[2] -= hsl.color[2] * ratio;\n\t\treturn hsl;\n\t},\n\n\tsaturate(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[1] += hsl.color[1] * ratio;\n\t\treturn hsl;\n\t},\n\n\tdesaturate(ratio) {\n\t\tconst hsl = this.hsl();\n\t\thsl.color[1] -= hsl.color[1] * ratio;\n\t\treturn hsl;\n\t},\n\n\twhiten(ratio) {\n\t\tconst hwb = this.hwb();\n\t\thwb.color[1] += hwb.color[1] * ratio;\n\t\treturn hwb;\n\t},\n\n\tblacken(ratio) {\n\t\tconst hwb = this.hwb();\n\t\thwb.color[2] += hwb.color[2] * ratio;\n\t\treturn hwb;\n\t},\n\n\tgrayscale() {\n\t\t// http://en.wikipedia.org/wiki/Grayscale#Converting_colour_to_grayscale\n\t\tconst rgb = this.rgb().color;\n\t\tconst value = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;\n\t\treturn Color.rgb(value, value, value);\n\t},\n\n\tfade(ratio) {\n\t\treturn this.alpha(this.valpha - (this.valpha * ratio));\n\t},\n\n\topaquer(ratio) {\n\t\treturn this.alpha(this.valpha + (this.valpha * ratio));\n\t},\n\n\trotate(degrees) {\n\t\tconst hsl = this.hsl();\n\t\tlet hue = hsl.color[0];\n\t\thue = (hue + degrees) % 360;\n\t\thue = hue < 0 ? 360 + hue : hue;\n\t\thsl.color[0] = hue;\n\t\treturn hsl;\n\t},\n\n\tmix(mixinColor, weight) {\n\t\t// Ported from sass implementation in C\n\t\t// https://github.com/sass/libsass/blob/0e6b4a2850092356aa3ece07c6b249f0221caced/functions.cpp#L209\n\t\tif (!mixinColor || !mixinColor.rgb) {\n\t\t\tthrow new Error('Argument to \"mix\" was not a Color instance, but rather an instance of ' + typeof mixinColor);\n\t\t}\n\n\t\tconst color1 = mixinColor.rgb();\n\t\tconst color2 = this.rgb();\n\t\tconst p = weight === undefined ? 0.5 : weight;\n\n\t\tconst w = 2 * p - 1;\n\t\tconst a = color1.alpha() - color2.alpha();\n\n\t\tconst w1 = (((w * a === -1) ? w : (w + a) / (1 + w * a)) + 1) / 2;\n\t\tconst w2 = 1 - w1;\n\n\t\treturn Color.rgb(\n\t\t\tw1 * color1.red() + w2 * color2.red(),\n\t\t\tw1 * color1.green() + w2 * color2.green(),\n\t\t\tw1 * color1.blue() + w2 * color2.blue(),\n\t\t\tcolor1.alpha() * p + color2.alpha() * (1 - p));\n\t},\n};\n\n// Model conversion methods and static constructors\nfor (const model of Object.keys(convert)) {\n\tif (skippedModels.includes(model)) {\n\t\tcontinue;\n\t}\n\n\tconst {channels} = convert[model];\n\n\t// Conversion methods\n\tColor.prototype[model] = function (...arguments_) {\n\t\tif (this.model === model) {\n\t\t\treturn new Color(this);\n\t\t}\n\n\t\tif (arguments_.length > 0) {\n\t\t\treturn new Color(arguments_, model);\n\t\t}\n\n\t\treturn new Color([...assertArray(convert[this.model][model].raw(this.color)), this.valpha], model);\n\t};\n\n\t// 'static' construction methods\n\tColor[model] = function (...arguments_) {\n\t\tlet color = arguments_[0];\n\t\tif (typeof color === 'number') {\n\t\t\tcolor = zeroArray(arguments_, channels);\n\t\t}\n\n\t\treturn new Color(color, model);\n\t};\n}\n\nfunction roundTo(number, places) {\n\treturn Number(number.toFixed(places));\n}\n\nfunction roundToPlace(places) {\n\treturn function (number) {\n\t\treturn roundTo(number, places);\n\t};\n}\n\nfunction getset(model, channel, modifier) {\n\tmodel = Array.isArray(model) ? model : [model];\n\n\tfor (const m of model) {\n\t\t(limiters[m] ||= [])[channel] = modifier;\n\t}\n\n\tmodel = model[0];\n\n\treturn function (value) {\n\t\tlet result;\n\n\t\tif (value !== undefined) {\n\t\t\tif (modifier) {\n\t\t\t\tvalue = modifier(value);\n\t\t\t}\n\n\t\t\tresult = this[model]();\n\t\t\tresult.color[channel] = value;\n\t\t\treturn result;\n\t\t}\n\n\t\tresult = this[model]().color[channel];\n\t\tif (modifier) {\n\t\t\tresult = modifier(result);\n\t\t}\n\n\t\treturn result;\n\t};\n}\n\nfunction maxfn(max) {\n\treturn function (v) {\n\t\treturn Math.max(0, Math.min(max, v));\n\t};\n}\n\nfunction assertArray(value) {\n\treturn Array.isArray(value) ? value : [value];\n}\n\nfunction zeroArray(array, length) {\n\tfor (let i = 0; i < length; i++) {\n\t\tif (typeof array[i] !== 'number') {\n\t\t\tarray[i] = 0;\n\t\t}\n\t}\n\n\treturn array;\n}\n\nexport default Color;\n"],"names":["colorString"],"mappings":";;;AAGA,MAAM,aAAa,GAAG;AACtB;AACA,CAAC,SAAS;AACV;AACA;AACA,CAAC,MAAM;AACP;AACA;AACA,CAAC,KAAK;AACN,CAAC,CAAC;AACF;AACA,MAAM,eAAe,GAAG,EAAE,CAAC;AAC3B,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;AAC1C,CAAC,eAAe,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CA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