@dicebear/pixel-art 5.0.0-alpha.2 → 5.0.0-alpha.20

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.
Files changed (84) hide show
  1. package/LICENSE +2 -2
  2. package/lib/colors/accessories.d.ts +2 -0
  3. package/lib/colors/accessories.js +7 -0
  4. package/lib/colors/clothes.d.ts +2 -0
  5. package/lib/colors/clothes.js +14 -0
  6. package/lib/colors/glasses.d.ts +2 -0
  7. package/lib/colors/glasses.js +8 -0
  8. package/lib/colors/hair.d.ts +2 -0
  9. package/lib/colors/hair.js +12 -0
  10. package/lib/colors/hat.d.ts +2 -0
  11. package/lib/colors/hat.js +9 -0
  12. package/lib/colors/index.d.ts +7 -0
  13. package/lib/colors/index.js +7 -0
  14. package/lib/colors/mouth.d.ts +2 -0
  15. package/lib/colors/mouth.js +6 -0
  16. package/lib/colors/skin.d.ts +2 -0
  17. package/lib/colors/skin.js +10 -0
  18. package/lib/components/accessories.d.ts +2 -0
  19. package/lib/components/accessories.js +6 -0
  20. package/lib/components/beard.d.ts +2 -0
  21. package/lib/components/beard.js +6 -0
  22. package/lib/components/clothing.d.ts +2 -0
  23. package/lib/components/clothing.js +27 -0
  24. package/lib/components/eyebrows.d.ts +2 -0
  25. package/lib/components/eyebrows.js +15 -0
  26. package/lib/components/eyes.d.ts +2 -0
  27. package/lib/components/eyes.js +15 -0
  28. package/lib/components/glasses.d.ts +2 -0
  29. package/lib/components/glasses.js +9 -0
  30. package/lib/components/hair.d.ts +2 -0
  31. package/lib/components/hair.js +28 -0
  32. package/lib/components/hat.d.ts +2 -0
  33. package/lib/components/hat.js +14 -0
  34. package/lib/components/index.d.ts +9 -0
  35. package/lib/components/index.js +9 -0
  36. package/lib/components/mouth.d.ts +2 -0
  37. package/lib/components/mouth.js +22 -0
  38. package/{dist → lib}/core.d.ts +3 -3
  39. package/lib/core.js +31 -0
  40. package/{dist → lib}/hooks/onPostCreate.d.ts +10 -12
  41. package/lib/hooks/onPostCreate.js +3 -0
  42. package/lib/hooks/onPreCreate.d.ts +8 -0
  43. package/lib/hooks/onPreCreate.js +3 -0
  44. package/lib/index.d.ts +13 -0
  45. package/lib/index.js +13 -0
  46. package/lib/schema.d.ts +2 -0
  47. package/lib/schema.js +640 -0
  48. package/lib/types.d.ts +39 -0
  49. package/lib/types.js +1 -0
  50. package/{dist → lib}/utils/getColors.d.ts +8 -9
  51. package/lib/utils/getColors.js +40 -0
  52. package/{dist → lib}/utils/getComponents.d.ts +8 -9
  53. package/lib/utils/getComponents.js +63 -0
  54. package/{dist → lib}/utils/pickColor.d.ts +9 -9
  55. package/lib/utils/pickColor.js +13 -0
  56. package/{dist → lib}/utils/pickComponent.d.ts +9 -9
  57. package/lib/utils/pickComponent.js +14 -0
  58. package/package.json +19 -23
  59. package/dist/colors/accessories.d.ts +0 -2
  60. package/dist/colors/clothes.d.ts +0 -2
  61. package/dist/colors/glasses.d.ts +0 -2
  62. package/dist/colors/hair.d.ts +0 -2
  63. package/dist/colors/hat.d.ts +0 -2
  64. package/dist/colors/index.d.ts +0 -7
  65. package/dist/colors/mouth.d.ts +0 -2
  66. package/dist/colors/skin.d.ts +0 -2
  67. package/dist/components/accessories.d.ts +0 -2
  68. package/dist/components/beard.d.ts +0 -2
  69. package/dist/components/clothing.d.ts +0 -2
  70. package/dist/components/eyebrows.d.ts +0 -2
  71. package/dist/components/eyes.d.ts +0 -2
  72. package/dist/components/glasses.d.ts +0 -2
  73. package/dist/components/hair.d.ts +0 -2
  74. package/dist/components/hat.d.ts +0 -2
  75. package/dist/components/index.d.ts +0 -9
  76. package/dist/components/mouth.d.ts +0 -2
  77. package/dist/hooks/onPreCreate.d.ts +0 -9
  78. package/dist/index.d.ts +0 -13
  79. package/dist/index.es.js +0 -1145
  80. package/dist/index.js +0 -1152
  81. package/dist/index.umd.js +0 -12
  82. package/dist/meta/components.d.ts +0 -4
  83. package/dist/options.d.ts +0 -28
  84. package/dist/static-types.d.ts +0 -16
package/dist/index.js DELETED
@@ -1,1152 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var title = "Options";
6
- var $schema = "http://json-schema.org/draft-07/schema#";
7
- var properties = {
8
- accessories: {
9
- type: "array",
10
- items: {
11
- type: "string",
12
- "enum": [
13
- "variant04",
14
- "variant03",
15
- "variant02",
16
- "variant01"
17
- ]
18
- },
19
- "default": [
20
- "variant04",
21
- "variant03",
22
- "variant02",
23
- "variant01"
24
- ]
25
- },
26
- accessoriesColor: {
27
- type: "array",
28
- items: {
29
- anyOf: [
30
- {
31
- type: "string",
32
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
33
- },
34
- {
35
- type: "string",
36
- "enum": [
37
- "gold01",
38
- "gold02",
39
- "gold03",
40
- "silver01",
41
- "silver02"
42
- ]
43
- }
44
- ]
45
- },
46
- "default": [
47
- "gold01",
48
- "gold02",
49
- "gold03",
50
- "silver01",
51
- "silver02"
52
- ]
53
- },
54
- accessoriesProbability: {
55
- type: "integer",
56
- minimum: 0,
57
- maximum: 100,
58
- "default": 10
59
- },
60
- beard: {
61
- type: "array",
62
- items: {
63
- type: "string",
64
- "enum": [
65
- "variant04",
66
- "variant03",
67
- "variant02",
68
- "variant01"
69
- ]
70
- },
71
- "default": [
72
- "variant04",
73
- "variant03",
74
- "variant02",
75
- "variant01"
76
- ]
77
- },
78
- beardProbability: {
79
- type: "integer",
80
- minimum: 0,
81
- maximum: 100,
82
- "default": 10
83
- },
84
- clothesColor: {
85
- type: "array",
86
- items: {
87
- anyOf: [
88
- {
89
- type: "string",
90
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
91
- },
92
- {
93
- type: "string",
94
- "enum": [
95
- "yellow01",
96
- "yellow02",
97
- "yellow03",
98
- "red01",
99
- "red02",
100
- "red03",
101
- "blue01",
102
- "blue02",
103
- "blue03",
104
- "green01",
105
- "green02",
106
- "green03"
107
- ]
108
- }
109
- ]
110
- },
111
- "default": [
112
- "yellow01",
113
- "yellow02",
114
- "yellow03",
115
- "red01",
116
- "red02",
117
- "red03",
118
- "blue01",
119
- "blue02",
120
- "blue03",
121
- "green01",
122
- "green02",
123
- "green03"
124
- ]
125
- },
126
- clothing: {
127
- type: "array",
128
- items: {
129
- type: "string",
130
- "enum": [
131
- "variant25",
132
- "variant24",
133
- "variant23",
134
- "variant22",
135
- "variant21",
136
- "variant20",
137
- "variant19",
138
- "variant18",
139
- "variant17",
140
- "variant16",
141
- "variant15",
142
- "variant14",
143
- "variant13",
144
- "variant12",
145
- "variant11",
146
- "variant10",
147
- "variant09",
148
- "variant08",
149
- "variant07",
150
- "variant06",
151
- "variant05",
152
- "variant04",
153
- "variant03",
154
- "variant02",
155
- "variant01"
156
- ]
157
- },
158
- "default": [
159
- "variant25",
160
- "variant24",
161
- "variant23",
162
- "variant22",
163
- "variant21",
164
- "variant20",
165
- "variant19",
166
- "variant18",
167
- "variant17",
168
- "variant16",
169
- "variant15",
170
- "variant14",
171
- "variant13",
172
- "variant12",
173
- "variant11",
174
- "variant10",
175
- "variant09",
176
- "variant08",
177
- "variant07",
178
- "variant06",
179
- "variant05",
180
- "variant04",
181
- "variant03",
182
- "variant02",
183
- "variant01"
184
- ]
185
- },
186
- eyebrows: {
187
- type: "array",
188
- items: {
189
- type: "string",
190
- "enum": [
191
- "variant13",
192
- "variant12",
193
- "variant11",
194
- "variant10",
195
- "variant09",
196
- "variant08",
197
- "variant07",
198
- "variant06",
199
- "variant05",
200
- "variant04",
201
- "variant03",
202
- "variant02",
203
- "variant01"
204
- ]
205
- },
206
- "default": [
207
- "variant13",
208
- "variant12",
209
- "variant11",
210
- "variant10",
211
- "variant09",
212
- "variant08",
213
- "variant07",
214
- "variant06",
215
- "variant05",
216
- "variant04",
217
- "variant03",
218
- "variant02",
219
- "variant01"
220
- ]
221
- },
222
- eyes: {
223
- type: "array",
224
- items: {
225
- type: "string",
226
- "enum": [
227
- "variant13",
228
- "variant12",
229
- "variant11",
230
- "variant10",
231
- "variant09",
232
- "variant08",
233
- "variant07",
234
- "variant06",
235
- "variant05",
236
- "variant04",
237
- "variant03",
238
- "variant02",
239
- "variant01"
240
- ]
241
- },
242
- "default": [
243
- "variant13",
244
- "variant12",
245
- "variant11",
246
- "variant10",
247
- "variant09",
248
- "variant08",
249
- "variant07",
250
- "variant06",
251
- "variant05",
252
- "variant04",
253
- "variant03",
254
- "variant02",
255
- "variant01"
256
- ]
257
- },
258
- glasses: {
259
- type: "array",
260
- items: {
261
- type: "string",
262
- "enum": [
263
- "variant07",
264
- "variant06",
265
- "variant05",
266
- "variant04",
267
- "variant03",
268
- "variant02",
269
- "variant01"
270
- ]
271
- },
272
- "default": [
273
- "variant07",
274
- "variant06",
275
- "variant05",
276
- "variant04",
277
- "variant03",
278
- "variant02",
279
- "variant01"
280
- ]
281
- },
282
- glassesColor: {
283
- type: "array",
284
- items: {
285
- anyOf: [
286
- {
287
- type: "string",
288
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
289
- },
290
- {
291
- type: "string",
292
- "enum": [
293
- "green01",
294
- "blue01",
295
- "red01",
296
- "black01",
297
- "black02",
298
- "black03"
299
- ]
300
- }
301
- ]
302
- },
303
- "default": [
304
- "green01",
305
- "blue01",
306
- "red01",
307
- "black01",
308
- "black02",
309
- "black03"
310
- ]
311
- },
312
- glassesProbability: {
313
- type: "integer",
314
- minimum: 0,
315
- maximum: 100,
316
- "default": 20
317
- },
318
- hair: {
319
- type: "array",
320
- items: {
321
- type: "string",
322
- "enum": [
323
- "short11",
324
- "short10",
325
- "short09",
326
- "short08",
327
- "short07",
328
- "short06",
329
- "short05",
330
- "short04",
331
- "short03",
332
- "short02",
333
- "long15",
334
- "short01",
335
- "long14",
336
- "long13",
337
- "long12",
338
- "long11",
339
- "long10",
340
- "long09",
341
- "long08",
342
- "long07",
343
- "long06",
344
- "long05",
345
- "long04",
346
- "long03",
347
- "long02",
348
- "long01"
349
- ]
350
- },
351
- "default": [
352
- "short11",
353
- "short10",
354
- "short09",
355
- "short08",
356
- "short07",
357
- "short06",
358
- "short05",
359
- "short04",
360
- "short03",
361
- "short02",
362
- "long15",
363
- "short01",
364
- "long14",
365
- "long13",
366
- "long12",
367
- "long11",
368
- "long10",
369
- "long09",
370
- "long08",
371
- "long07",
372
- "long06",
373
- "long05",
374
- "long04",
375
- "long03",
376
- "long02",
377
- "long01"
378
- ]
379
- },
380
- hairColor: {
381
- type: "array",
382
- items: {
383
- anyOf: [
384
- {
385
- type: "string",
386
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
387
- },
388
- {
389
- type: "string",
390
- "enum": [
391
- "variant01",
392
- "variant02",
393
- "variant03",
394
- "variant04",
395
- "variant05",
396
- "variant06",
397
- "variant07",
398
- "variant08",
399
- "variant09",
400
- "variant10"
401
- ]
402
- }
403
- ]
404
- },
405
- "default": [
406
- "variant01",
407
- "variant02",
408
- "variant03",
409
- "variant04",
410
- "variant05",
411
- "variant06",
412
- "variant07",
413
- "variant08",
414
- "variant09",
415
- "variant10"
416
- ]
417
- },
418
- hairProbability: {
419
- type: "integer",
420
- minimum: 0,
421
- maximum: 100,
422
- "default": 100
423
- },
424
- hat: {
425
- type: "array",
426
- items: {
427
- type: "string",
428
- "enum": [
429
- "variant01",
430
- "variant02",
431
- "variant03",
432
- "variant04",
433
- "variant05",
434
- "variant06",
435
- "variant07",
436
- "variant08",
437
- "variant09",
438
- "variant10",
439
- "variant11",
440
- "variant12"
441
- ]
442
- },
443
- "default": [
444
- "variant01",
445
- "variant02",
446
- "variant03",
447
- "variant04",
448
- "variant05",
449
- "variant06",
450
- "variant07",
451
- "variant08",
452
- "variant09",
453
- "variant10",
454
- "variant11",
455
- "variant12"
456
- ]
457
- },
458
- hatColor: {
459
- type: "array",
460
- items: {
461
- anyOf: [
462
- {
463
- type: "string",
464
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
465
- },
466
- {
467
- type: "string",
468
- "enum": [
469
- "pink01",
470
- "blue01",
471
- "green01",
472
- "purple01",
473
- "red01",
474
- "black01",
475
- "gray01"
476
- ]
477
- }
478
- ]
479
- },
480
- "default": [
481
- "pink01",
482
- "blue01",
483
- "green01",
484
- "purple01",
485
- "red01",
486
- "black01",
487
- "gray01"
488
- ]
489
- },
490
- hatProbability: {
491
- type: "integer",
492
- minimum: 0,
493
- maximum: 100,
494
- "default": 10
495
- },
496
- mouth: {
497
- type: "array",
498
- items: {
499
- type: "string",
500
- "enum": [
501
- "surprised03",
502
- "surprised02",
503
- "happy09",
504
- "happy08",
505
- "happy07",
506
- "happy06",
507
- "happy05",
508
- "happy04",
509
- "happy03",
510
- "happy02",
511
- "happy01",
512
- "sad08",
513
- "sad07",
514
- "sad06",
515
- "sad05",
516
- "sad04",
517
- "sad03",
518
- "sad02",
519
- "sad01",
520
- "surprised01"
521
- ]
522
- },
523
- "default": [
524
- "surprised03",
525
- "surprised02",
526
- "happy09",
527
- "happy08",
528
- "happy07",
529
- "happy06",
530
- "happy05",
531
- "happy04",
532
- "happy03",
533
- "happy02",
534
- "happy01",
535
- "sad08",
536
- "sad07",
537
- "sad06",
538
- "sad05",
539
- "sad04",
540
- "sad03",
541
- "sad02",
542
- "sad01",
543
- "surprised01"
544
- ]
545
- },
546
- mouthColor: {
547
- type: "array",
548
- items: {
549
- anyOf: [
550
- {
551
- type: "string",
552
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
553
- },
554
- {
555
- type: "string",
556
- "enum": [
557
- "variant01",
558
- "variant02",
559
- "variant03",
560
- "variant04"
561
- ]
562
- }
563
- ]
564
- },
565
- "default": [
566
- "variant01",
567
- "variant02",
568
- "variant03",
569
- "variant04"
570
- ]
571
- },
572
- skinColor: {
573
- type: "array",
574
- items: {
575
- anyOf: [
576
- {
577
- type: "string",
578
- pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
579
- },
580
- {
581
- type: "string",
582
- "enum": [
583
- "variant01",
584
- "variant02",
585
- "variant03",
586
- "variant04",
587
- "variant05",
588
- "variant06",
589
- "variant07",
590
- "variant08"
591
- ]
592
- }
593
- ]
594
- },
595
- "default": [
596
- "variant01",
597
- "variant02",
598
- "variant03",
599
- "variant04",
600
- "variant05",
601
- "variant06",
602
- "variant07",
603
- "variant08"
604
- ]
605
- }
606
- };
607
- var additionalProperties = false;
608
- var schema$1 = {
609
- title: title,
610
- $schema: $schema,
611
- properties: properties,
612
- additionalProperties: additionalProperties
613
- };
614
-
615
- const beard = {
616
- variant04: (components, colors) => "\n<path opacity=\".9\" d=\"M4 10v3h1v1h1v1h8v-1h1v-1h1v-3h-2v1H6v-1H4Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
617
- variant03: (components, colors) => "\n<path opacity=\".9\" d=\"M4 13h1v1h1v1h8v-1h1v-1h1v-3h-1v1h-1v1H6v-1H5v-1H4v3Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
618
- variant02: (components, colors) => "\n<path opacity=\".9\" d=\"M4 11v2h1v1h1v1h8v-1h1v-1h1v-2H4Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
619
- variant01: (components, colors) => "\n<path opacity=\".9\" d=\"M4 8v5h1v1h1v1h8v-1h1v-1h1V8h-1v2h-1v1h-1v1H7v-1H6v-1H5V8H4Z\" fill=\"".concat(colors.hair.value, "\"/>\n")
620
- };
621
-
622
- const eyes = {
623
- variant13: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 9V7h3v2H5Zm7-2h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M7 8v1h1V8H7Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
624
- variant12: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 1V8h1v1h-1Z\" fill=\"#000\"/>\n</g>\n",
625
- variant11: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
626
- variant10: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm6 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
627
- variant09: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
628
- variant08: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
629
- variant07: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7v1h3V7H5Zm7 0h3v1h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z\" fill=\"#000\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n",
630
- variant06: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
631
- variant05: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n</g>\n",
632
- variant04: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n",
633
- variant03: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 7h2v2H6V7Zm7 0h2v2h-2V7Z\" fill=\"#000\"/>\n<path d=\"M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n<path d=\"M7 7v1h1V7H7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n",
634
- variant02: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n<path d=\"M5 8h1v1H5V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n",
635
- variant01: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z\" fill=\"#fff\"/>\n<path d=\"M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z\" fill=\"#000\"/>\n<path d=\"M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n"
636
- };
637
-
638
- const eyebrows = {
639
- variant13: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
640
- variant12: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
641
- variant11: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
642
- variant10: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
643
- variant09: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
644
- variant08: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
645
- variant07: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
646
- variant06: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
647
- variant05: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
648
- variant04: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
649
- variant03: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
650
- variant02: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n"),
651
- variant01: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n")
652
- };
653
-
654
- const mouth$1 = {
655
- surprised03: (components, colors) => "\n<path d=\"M9 12v2h2v-2H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
656
- surprised02: (components, colors) => "\n<path d=\"M9 13v1h1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
657
- happy09: (components, colors) => "\n<path d=\"M7 12v1h1v1h4v-1H8v-1H7Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
658
- happy08: (components, colors) => "\n<path d=\"M10 12v1H9v1h2v-2h-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
659
- happy07: (components, colors) => "\n<path d=\"M8 13v1h4v-1h1v-1h-1v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
660
- happy06: (components, colors) => "\n<path d=\"M9 12v2h2v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M11 14v-1h-1v-1H9v1h1v1h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
661
- happy05: (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1h1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
662
- happy04: (components, colors) => "\n<path d=\"M9 13v1h2v-1h1v-1h-1v1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
663
- happy03: (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1H9v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
664
- happy02: (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\"/>\n"),
665
- happy01: (components, colors) => "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
666
- sad08: (components, colors) => "\n<path d=\"M9 12v1H8v1h4v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
667
- sad07: (components, colors) => "\n<path d=\"M11 12v1H9v1H8v-1h1v-1h2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
668
- sad06: (components, colors) => "\n<path d=\"M8 12h3v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
669
- sad05: (components, colors) => "\n<path d=\"M8 12h4v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
670
- sad04: (components, colors) => "\n<path d=\"M9 12h2v1H9v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
671
- sad03: (components, colors) => "\n<path d=\"M8 12v1h3v1h1v-1h-1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
672
- sad02: (components, colors) => "\n<path d=\"M8 13v1h1v-1h3v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
673
- sad01: (components, colors) => "\n<path d=\"M10 12v1h1v1h1v-2h-2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n"),
674
- surprised01: (components, colors) => "\n<path d=\"M8 12v2h4v-2H8Z\" fill=\"#fff\"/>\n"
675
- };
676
-
677
- const hair$1 = {
678
- short11: (components, colors) => "\n<path d=\"M4 4v2h1V5h1V4h8v1h1v1h1V4h-1V3H5v1H4Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
679
- short10: (components, colors) => "\n<path d=\"M6 2h8v1h1v1h1v3h-1V6h-1V5h-1V4H9v1H7v1H6v1H4V4h1V3h1V2Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
680
- short09: (components, colors) => "\n<path d=\"M4 7h1V5h1V4h2v1h1v1h2V5h1V4h2v1h1v2h1V5h-1V4h-1V3H6v1H5v1H4v2Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
681
- short08: (components, colors) => "\n<path d=\"M3 8h1V5h12v3h1V4h-1V3h-1V2H5v1H4v1H3v4Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
682
- short07: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 5v1h1v1h2V5h1V3H4v1H3v1H2Zm6-1h2v1h2V4h1V3H8v1Zm6 1h1v2h2V6h1V5h-1V4h-1V3h-2v2Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
683
- short06: (components, colors) => "\n<path d=\"M3 8h1V5h2V3h8v1h1v1h1v3h1V3h-2V2h-2V1h-1v1h-2V1H9v1H8V1H7v1H5v1H4v1H3v4Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
684
- short05: (components, colors) => "\n<path d=\"M11 5V4h1V3H8v1h1v1h2Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
685
- short04: (components, colors) => "\n<path d=\"M3 8h1V6h2V5h2V4h1v1h2v1h2v1h2v1h2V5h-1V4h-1V3H5v1H4v1H3v3Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
686
- short03: (components, colors) => "\n<path d=\"M5 5h10V4h-1V3H6v1H5v1Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
687
- short02: (components, colors) => "\n<path d=\"M3 5H2v3h2V5h1V4h1v1h2V4h4V3h1v1h1v1h1v1h1v2h1V7h1V5h-1V4h-1V3h-1V2h-1V1h-1v1h-2V1h-1v1H7V1H5v1H4v1H3v2Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
688
- long15: (components, colors) => "\n<path d=\"M1 7h1v5h1v1h1V7h1V6h1V4h1V3h6v1h1v1h1v1h1v7h1v-2h1V7h-1V6h1V4h-1v1h-1V3h1V2h-1v1h-1V2h-1V1h-1V0h-1v1H6V0H5v1H4V0H3v1h1v2H3V2H2v1h1v1H2v2H1v1Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
689
- short01: (components, colors) => "\n<path d=\"M6 3v1H5v1H4v3h2V7h1V6h4V5h1V4h1v1h-1v1h1v1h1v1h2V5h-1V4h-1V3H6Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
690
- long14: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 11v6h1v-1h4v-1H6v-1H5v-1H4v-2H3Zm0-3h2V5h10v3h2V4h-1V3H4v1H3v4Zm13 3h1v6h-1v-1h-4v-1h2v-1h1v-1h1v-2Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
691
- long13: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 11v5h2v-3H4v-2H3Zm0-3h2V5h10v3h2V4h-1V3H4v1H3v4Zm13 3h1v5h-2v-3h1v-2Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
692
- long12: (components, colors) => "\n<path d=\"M4 13h1v1H3V4h1V3h1V2h10v1h1v1h1v10h-2v-1h1V5H4v8Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
693
- long11: (components, colors) => "\n<path d=\"M2 18h2v-1h4v-2H6v-1H5v-1H4V5h1V4h1v1h1V4h1v1h1V4h6v1h1v8h-1v1h-1v1h-2v2h4v1h2V4h-1V3h-1V2H4v1H3v1H2v14Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
694
- long10: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 14.1V11h1v2h1v1l-2 .1ZM17 11v3h-2v-1h1v-2h1ZM3 8h1V5h1V4h1V3h8v1h1v1h1v3h1V4h-1V3h-1V2H5v1H4v1H3v4Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
695
- long09: (components, colors) => "\n<path d=\"M2 15h2V5h12v10h2V4h-1V3h-1V2H4v1H3v1H2v11Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
696
- long08: (components, colors) => "\n<path d=\"M2 14h2V7h1V6h1V5h1V4h1V3h6v1h1v1h1v9h2V3h-1V2h-1V1H4v1H3v1H2v11Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
697
- long07: (components, colors) => "\n<path d=\"M4 5v3h1V5h2v1h1V5h1v1h1V5h5v3h1V5h1V3h-1V2h-2v1H6V2H4v1H3v2h1Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
698
- long06: (components, colors) => "\n<path d=\"M3 11h1V9h1V8h1V7h1V6h1V5h5v1h3V5h-1V4h-1V3H5v1H4v1H3v6Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
699
- long05: (components, colors) => "\n<path d=\"M2 17h2v-1h4v-1H6v-1H5v-1H4v-2H3V8h1V5h1V4h6V3h1v1h1V3h1v1h1v1h1v3h1v3h-1v2h-1v1h-1v1h-2v1h4v1h2V4h-1V3h-1V2h-1V1H5v1H4v1H3v1H2v13Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
700
- long04: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 14h2v-1H4v-2H3v3Zm12 0h2v-3h-1v2h-1v1Zm2-6V3h-1V2H4v1H3v5h1V5h1V4h1V3h8v1h1v1h1v3h1Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
701
- long03: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 13v1H2v2H1v1h1v-1h1v-1h1v-1h1v-1H4v-2H3v2Zm0-5h1V7h1V6h1V5h8v1h1v1h1v1h1V4h-1V3h-1V2H5v1H4v1H3v4Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
702
- long02: (components, colors) => "\n<path d=\"M2 15h4v-1H5v-1H4V6h2V5h2V4h1V3h4v1h1v1h1v1h1v7h-1v1h-1v1h4V4h-1V3h-1V2h-1V1H5v1H4v1H3v1H2v11Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
703
- long01: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 11v3H2v2H1v1h1v-1h1v-1h1v-1h1v-1H4v-2H3Zm14 0v3h1v2h1v1h-1v-1h-1v-1h-1v-1h-1v-1h1v-2h1Zm-1-3h1V4h-1V3h-1V2H5v1H4v1H3v4h1V7h1V6h1V5h8v1h1v1h1v1Z\" fill=\"".concat(colors.hair.value, "\"/>\n")
704
- };
705
-
706
- const accessories$1 = {
707
- variant04: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 10v1h1v-1H3Zm13 0v1h1v-1h-1Z\" fill=\"".concat(colors.accessories.value, "\"/>\n"),
708
- variant03: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 10v2h1v-2H3Zm13 0h1v2h-1v-2Z\" fill=\"".concat(colors.accessories.value, "\"/>\n"),
709
- variant02: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M3 10v2h1v-2H3Zm13 0h1v2h-1v-2Z\" fill=\"".concat(colors.accessories.value, "\"/>\n<path d=\"M3 10v1h1v-1H3Zm13 0h1v1h-1v-1Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n</g>\n"),
710
- variant01: (components, colors) => "\n<path d=\"M4 11H2v2h2v-2ZM18 11h-2v2h2v-2Z\" fill=\"".concat(colors.accessories.value, "\"/>\n")
711
- };
712
-
713
- const glasses$1 = {
714
- variant07: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M12 10V7h3v3h-3Zm-1-4v1H9V6H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
715
- variant06: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
716
- variant05: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
717
- variant04: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
718
- variant03: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M14 7h1v1h-1V7ZM7 7h1v1H7V7Z\" fill=\"#fff\"/>\n<path d=\"M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
719
- variant02: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M7 8v1h1V8H7Zm7 0v1h1V8h-1Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n"),
720
- variant01: (components, colors) => "\n<path d=\"M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n")
721
- };
722
-
723
- const hat$1 = {
724
- variant01: (components, colors) => "\n<path d=\"M4 1v2H2v2h16V3h-2V1H4Z\" fill=\"".concat(colors.hat.value, "\"/>\n"),
725
- variant02: (components, colors) => "\n<path d=\"M4 4H2v1h16V4h-2V1H4v3Z\" fill=\"".concat(colors.hat.value, "\"/>\n"),
726
- variant03: (components, colors) => "\n<path d=\"M3 4v2h14V4h-1V3h-1V2H5v1H4v1H3Z\" fill=\"".concat(colors.hat.value, "\"/>\n"),
727
- variant04: (components, colors) => "\n<path d=\"M6 1v1H5v1H4v2h14V4h-2V3h-1V2h-1V1H6Z\" fill=\"".concat(colors.hat.value, "\"/>\n"),
728
- variant05: (components, colors) => "\n<path d=\"M3 5V3h2V1h10v2h2v2H3Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path d=\"M4 1v2h12V1H4Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
729
- variant06: (components, colors) => "\n<path d=\"M3 5V4h2V1h10v3h2v1H3Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path d=\"M5 1v3h10V1H5Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
730
- variant07: (components, colors) => "\n<path d=\"M3 6V4h1V3h1V2h10v1h1v1h1v2H3Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 3v1h12V3H4ZM3 5v1h14V5H3Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
731
- variant08: (components, colors) => "\n<path d=\"M14 2H6v1H5v1H4v2h14V5h-2V4h-1V3h-1V2Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path d=\"M5 6h1V5h1V4h1V3H7v1H6v1H5v1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
732
- variant09: (components, colors) => "\n<path d=\"M5 1v2H3v2h14V3h-2V1H5Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path d=\"M14 3V0h-1v3h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
733
- variant10: (components, colors) => "\n<path d=\"M4 0v5H2v1h16V5h-2V0H4Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15 3V0h-1v3h1Zm-2-3v2h-1V0h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
734
- variant11: (components, colors) => "\n<path d=\"M3 3v2h14V3h-1V2h-1V1H5v1H4v1H3Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M14 1v4h-1V1h1Zm-2 0v4h-1V1h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
735
- variant12: (components, colors) => "\n<path d=\"M5 4H4v2h14V5h-2V4h-1V3h-1V2H6v1H5v1Z\" fill=\"".concat(colors.hat.value, "\"/>\n<path d=\"M14 4h-3v1h3V4Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n")
736
- };
737
-
738
- const clothing = {
739
- variant25: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h12v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M5 20v-2h1v-1h8v1h1v2h-2v-1h-2v1H9v-1H7v1H5Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
740
- variant24: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h12v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M8 16H4v1H3v3h14v-3h-1v-1h-4v1h1v1h-1v1h-1v-1H9v1H8v-1H7v-1h1v-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n<path d=\"M9 16v1h2v-1H9Z\" fill=\"#fff\"/>\n"),
741
- variant23: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h12v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9 16H4v1H3v3h6v-2H8v-1h1v-1Zm2 0h5v1h1v3h-6v-2h1v-1h-1v-1Z\" fill=\"#fff\" fill-opacity=\".3\"/>\n"),
742
- variant22: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h3v2h6v-2h3v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 16H4v1H3v3h2v-4Zm1 0h1v2h6v-2h1v4H6v-4Zm9 0h1v1h1v3h-2v-4Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
743
- variant21: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h1v1h2v-1h1v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 17v-1h3v1H4Zm9 0v-1h3v1h-3Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
744
- variant20: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h3v-1h1v1h1v1h2v-1h1v-1h1v1h3v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6 16H4v1H3v3h6v-2H8v-1H6v-1Zm2 0h1-1Zm3 0h1-1Zm2 0h1v1h-2v1h-1v2h6v-3h-1v-1h-3Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
745
- variant19: (components, colors) => "\n<path d=\"M5 16H4v1H3v3h14v-3h-1v-1h-3v1H7v-1H5Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M10 20v-1h3v1h-3Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 16H4v1H3v3h1v-1h1v-3Zm1 0h1v1h6v-1h1v2H6v-2Zm9 0h1v1h1v3h-1v-1h-1v-3Z\" fill=\"#fff\" fill-opacity=\".8\"/>\n"),
746
- variant18: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h4v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 20v-1h1v1H3Zm2 0v-1h1v1H5Zm2 0v-1h1v1H7Zm2 0v-1h1v1H9Zm2 0v-1h1v1h-1Zm2 0v-1h1v1h-1Zm2 0v-1h1v1h-1Zm1-2h1v1h-1v-1Zm-2 0h1v1h-1v-1Zm-2 0h1v1h-1v-1Zm-2 0h1v1h-1v-1Zm-2 0h1v1H8v-1Zm-2 0h1v1H6v-1Zm-2 0h1v1H4v-1Zm-1-1h1v1H3v-1Zm2 0h1v1H5v-1Zm2 0h1v1H7v-1Zm2 0h1v1H9v-1Zm2 0h1v1h-1v-1Zm2 0h1v1h-1v-1Zm2 0h1v1h-1v-1ZM4 16h1v1H4v-1Zm2 0h1v1H6v-1Zm6 0h1v1h-1v-1Zm2 0h1v1h-1v-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
747
- variant17: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h4v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 20v-2h1v2H3Zm3 0v-2h2v2H6Zm4 0v-2h2v2h-2Zm4 0v-2h2v2h-2Zm2-3v1h1v-1h-1Zm-2 1v-2h-2v2h2Zm-6-1v1h2v-1H8Zm-4-1v2h2v-2H4Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
748
- variant16: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h4v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 19h14v1H3v-1Zm0-2h14v1H3v-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
749
- variant15: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h4v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
750
- variant14: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v-1h4v1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M3 20v-3h1v-1h12v1h1v3H3Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n<path d=\"M12 20v-1h3v1h-3Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
751
- variant13: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h12v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
752
- variant12: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4 16v4h4v-1H7v-1H6v-1H5v-1H4Zm12 0v4h-4v-1h1v-1h1v-1h1v-1h1Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
753
- variant11: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5 16h1v2h1v1h1v1H5v-4Zm9 0h1v4h-3v-1h1v-1h1v-2Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
754
- variant10: (components, colors) => "\n<path d=\"M4 20v-2h1v-1h1v-1h2v1h1v1h2v-1h1v-1h2v1h1v1h1v2H4Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
755
- variant09: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h1v1h2v-1h1v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M3 20v-3h1v-1h2v1h1v1h1v1h4v-1h1v-1h1v-1h2v1h1v3H3Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
756
- variant08: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h5v1h2v-1h5v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 20v-2h1v1h3v1H3Zm14 0v-2h-1v1h-3v1h4Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n<path d=\"M7 16H4v1H3v1h1v1h3v1h6v-1h3v-1h1v-1h-1v-1h-3v1H7v-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
757
- variant07: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h4v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M15 20h2v-3h-1v-1h-4v1H8v-1H4v1H3v3h2v-2h10v2Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n"),
758
- variant06: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h4v1h1v1h2v-1h1v-1h4v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M6 16v1h1v1h1v1h4v-1h1v-1h1v-1h-2v1h-1v1H9v-1H8v-1H6Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13 20v-1h2v1h-2Zm1-4v1h2v-1h-2Zm-8 0H4v1h2v-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n"),
759
- variant05: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h3v1h1v1h1v1h2v-1h1v-1h1v-1h3v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
760
- variant04: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 20v-3h1v-1h2v1h1v1h1v1h1v1H3Zm14 0v-3h-1v-1h-2v1h-1v1h-1v1h-1v1h6Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
761
- variant03: (components, colors) => "\n<path d=\"M4 16v4h4v-1H7v-1H6v-2H4ZM16 20v-4h-2v2h-1v1h-1v1h4Z\" fill=\"".concat(colors.clothes.value, "\"/>\n"),
762
- variant02: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h3v1h1v1h1v1h2v-1h1v-1h1v-1h3v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path d=\"M6 16v1h1v1h1v1h1v1h2v-1h1v-1h1v-1h1v-1h-1v1h-1v1h-1v1H9v-1H8v-1H7v-1H6Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15 16v1h-1v1h-1v1h-1v1h-1v-1h1v-1h1v-1h1v-1h1ZM5 16v1h1v1h1v1h1v1h1v-1H8v-1H7v-1H6v-1H5Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 20h1v-3h1v1h1v1h1v1h1v-1H7v-1H6v-1H5v-1H4v1H3v3Zm14 0v-3h-1v-1h-1v1h-1v1h-1v1h-1v1h1v-1h1v-1h1v-1h1v3h1Z\" fill=\"#fff\" fill-opacity=\".1\"/>\n"),
763
- variant01: (components, colors) => "\n<path d=\"M3 20v-3h1v-1h5v1h2v-1h5v1h1v3H3Z\" fill=\"".concat(colors.clothes.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 17h14v1H3v-1Zm0 2v1h14v-1H3Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n")
764
- };
765
-
766
- var components = /*#__PURE__*/Object.freeze({
767
- __proto__: null,
768
- beard: beard,
769
- eyes: eyes,
770
- eyebrows: eyebrows,
771
- mouth: mouth$1,
772
- hair: hair$1,
773
- accessories: accessories$1,
774
- glasses: glasses$1,
775
- hat: hat$1,
776
- clothing: clothing
777
- });
778
-
779
- function pickComponent(_ref) {
780
- let {
781
- prng,
782
- group,
783
- values = []
784
- } = _ref;
785
- const componentCollection = components;
786
- const key = prng.pick(values);
787
-
788
- if (componentCollection[group][key]) {
789
- return {
790
- name: key,
791
- value: componentCollection[group][key]
792
- };
793
- } else {
794
- return undefined;
795
- }
796
- }
797
-
798
- function getComponents(_ref) {
799
- let {
800
- prng,
801
- options
802
- } = _ref;
803
- const beardComponent = pickComponent({
804
- prng,
805
- group: 'beard',
806
- values: options.beard
807
- });
808
- const eyesComponent = pickComponent({
809
- prng,
810
- group: 'eyes',
811
- values: options.eyes
812
- });
813
- const eyebrowsComponent = pickComponent({
814
- prng,
815
- group: 'eyebrows',
816
- values: options.eyebrows
817
- });
818
- const mouthComponent = pickComponent({
819
- prng,
820
- group: 'mouth',
821
- values: options.mouth
822
- });
823
- const hairComponent = pickComponent({
824
- prng,
825
- group: 'hair',
826
- values: options.hair
827
- });
828
- const accessoriesComponent = pickComponent({
829
- prng,
830
- group: 'accessories',
831
- values: options.accessories
832
- });
833
- const glassesComponent = pickComponent({
834
- prng,
835
- group: 'glasses',
836
- values: options.glasses
837
- });
838
- const hatComponent = pickComponent({
839
- prng,
840
- group: 'hat',
841
- values: options.hat
842
- });
843
- const clothingComponent = pickComponent({
844
- prng,
845
- group: 'clothing',
846
- values: options.clothing
847
- });
848
- return {
849
- beard: prng.bool(options.beardProbability) ? beardComponent : undefined,
850
- eyes: eyesComponent,
851
- eyebrows: eyebrowsComponent,
852
- mouth: mouthComponent,
853
- hair: prng.bool(options.hairProbability) ? hairComponent : undefined,
854
- accessories: prng.bool(options.accessoriesProbability) ? accessoriesComponent : undefined,
855
- glasses: prng.bool(options.glassesProbability) ? glassesComponent : undefined,
856
- hat: prng.bool(options.hatProbability) ? hatComponent : undefined,
857
- clothing: clothingComponent
858
- };
859
- }
860
-
861
- const skin = {
862
- variant01: 'rgba(255, 219, 172, 1)',
863
- variant02: 'rgba(245, 207, 160, 1)',
864
- variant03: 'rgba(234, 195, 147, 1)',
865
- variant04: 'rgba(224, 182, 135, 1)',
866
- variant05: 'rgba(203, 158, 110, 1)',
867
- variant06: 'rgba(182, 134, 85, 1)',
868
- variant07: 'rgba(162, 109, 61, 1)',
869
- variant08: 'rgba(141, 85, 36, 1)'
870
- };
871
-
872
- const hair = {
873
- variant01: 'rgba(202, 177, 136, 1)',
874
- variant02: 'rgba(167, 137, 97, 1)',
875
- variant03: 'rgba(131, 98, 59, 1)',
876
- variant04: 'rgba(96, 58, 20, 1)',
877
- variant05: 'rgba(96, 48, 21, 1)',
878
- variant06: 'rgba(97, 38, 22, 1)',
879
- variant07: 'rgba(97, 28, 23, 1)',
880
- variant08: 'rgba(78, 26, 19, 1)',
881
- variant09: 'rgba(59, 23, 14, 1)',
882
- variant10: 'rgba(40, 21, 10, 1)'
883
- };
884
-
885
- const accessories = {
886
- gold01: 'rgba(218, 165, 32, 1)',
887
- gold02: 'rgba(255, 215, 0, 1)',
888
- gold03: 'rgba(250, 250, 210, 1)',
889
- silver01: 'rgba(211, 211, 211, 1)',
890
- silver02: 'rgba(169, 169, 169, 1)'
891
- };
892
-
893
- const mouth = {
894
- variant01: 'rgba(210, 153, 133, 1)',
895
- variant02: 'rgba(201, 130, 118, 1)',
896
- variant03: 'rgba(227, 93, 106, 1)',
897
- variant04: 'rgba(222, 15, 13, 1)'
898
- };
899
-
900
- const clothes = {
901
- yellow01: 'rgba(255, 238, 173, 1)',
902
- yellow02: 'rgba(255, 217, 105, 1)',
903
- yellow03: 'rgba(255, 196, 37, 1)',
904
- red01: 'rgba(255, 111, 105, 1)',
905
- red02: 'rgba(209, 17, 65, 1)',
906
- red03: 'rgba(174, 0, 1, 1)',
907
- blue01: 'rgba(91, 192, 222, 1)',
908
- blue02: 'rgba(66, 139, 202, 1)',
909
- blue03: 'rgba(3, 57, 108, 1)',
910
- green01: 'rgba(136, 216, 176, 1)',
911
- green02: 'rgba(68, 197, 133, 1)',
912
- green03: 'rgba(0, 177, 89, 1)'
913
- };
914
-
915
- const hat = {
916
- pink01: 'rgba(204, 97, 146, 1)',
917
- blue01: 'rgba(38, 99, 163, 1)',
918
- green01: 'rgba(61, 138, 107, 1)',
919
- purple01: 'rgba(97, 79, 138, 1)',
920
- red01: 'rgba(166, 33, 22, 1)',
921
- black01: 'rgba(46, 30, 5, 1)',
922
- gray01: 'rgba(152, 151, 137, 1)'
923
- };
924
-
925
- const glasses = {
926
- green01: 'rgba(95, 112, 92, 1)',
927
- blue01: 'rgba(67, 103, 125, 1)',
928
- red01: 'rgba(160, 75, 93, 1)',
929
- black01: 'rgba(75, 75, 75, 1)',
930
- black02: 'rgba(50, 50, 50, 1)',
931
- black03: 'rgba(25, 25, 25, 1)'
932
- };
933
-
934
- var colors = /*#__PURE__*/Object.freeze({
935
- __proto__: null,
936
- skin: skin,
937
- hair: hair,
938
- accessories: accessories,
939
- mouth: mouth,
940
- clothes: clothes,
941
- hat: hat,
942
- glasses: glasses
943
- });
944
-
945
- function pickColor(_ref) {
946
- var _colorCollection$grou;
947
-
948
- let {
949
- prng,
950
- group,
951
- values = []
952
- } = _ref;
953
- const colorCollection = colors;
954
-
955
- if (values.length === 0) {
956
- values.push('transparent');
957
- }
958
-
959
- const key = prng.pick(values);
960
- return {
961
- name: key,
962
- value: (_colorCollection$grou = colorCollection[group][key]) !== null && _colorCollection$grou !== void 0 ? _colorCollection$grou : key
963
- };
964
- }
965
-
966
- function getColors(_ref) {
967
- let {
968
- prng,
969
- options
970
- } = _ref;
971
- return {
972
- skin: pickColor({
973
- prng,
974
- group: 'skin',
975
- values: options.skinColor
976
- }),
977
- hair: pickColor({
978
- prng,
979
- group: 'hair',
980
- values: options.hairColor
981
- }),
982
- accessories: pickColor({
983
- prng,
984
- group: 'accessories',
985
- values: options.accessoriesColor
986
- }),
987
- mouth: pickColor({
988
- prng,
989
- group: 'mouth',
990
- values: options.mouthColor
991
- }),
992
- clothes: pickColor({
993
- prng,
994
- group: 'clothes',
995
- values: options.clothesColor
996
- }),
997
- hat: pickColor({
998
- prng,
999
- group: 'hat',
1000
- values: options.hatColor
1001
- }),
1002
- glasses: pickColor({
1003
- prng,
1004
- group: 'glasses',
1005
- values: options.glassesColor
1006
- })
1007
- };
1008
- }
1009
-
1010
- const dimensions = {
1011
- beard: {
1012
- width: 20,
1013
- height: 20
1014
- },
1015
- eyes: {
1016
- width: 20,
1017
- height: 20
1018
- },
1019
- eyebrows: {
1020
- width: 20,
1021
- height: 20
1022
- },
1023
- mouth: {
1024
- width: 20,
1025
- height: 20
1026
- },
1027
- hair: {
1028
- width: 20,
1029
- height: 20
1030
- },
1031
- accessories: {
1032
- width: 20,
1033
- height: 20
1034
- },
1035
- glasses: {
1036
- width: 20,
1037
- height: 20
1038
- },
1039
- hat: {
1040
- width: 20,
1041
- height: 20
1042
- },
1043
- clothing: {
1044
- width: 20,
1045
- height: 20
1046
- }
1047
- };
1048
-
1049
- const style = {
1050
- meta: {
1051
- title: 'Pixel Art',
1052
- creator: 'Plastic Jam',
1053
- license: {
1054
- name: 'MIT',
1055
- url: 'https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art/LICENSE'
1056
- }
1057
- },
1058
- schema: schema$1,
1059
- create: _ref => {
1060
- var _components$beard$val, _components$beard, _components$eyes$valu, _components$eyes, _components$eyebrows$, _components$eyebrows, _components$mouth$val, _components$mouth, _components$hair$valu, _components$hair, _components$accessori, _components$accessori2, _components$glasses$v, _components$glasses, _components$hat$value, _components$hat, _components$clothing$, _components$clothing;
1061
-
1062
- let {
1063
- prng,
1064
- options
1065
- } = _ref;
1066
- const components = getComponents({
1067
- prng,
1068
- options
1069
- });
1070
- const colors = getColors({
1071
- prng,
1072
- options
1073
- });
1074
- return {
1075
- attributes: {
1076
- viewBox: '0 0 20 20',
1077
- fill: 'none',
1078
- 'shape-rendering': 'auto'
1079
- },
1080
- body: "\n<path d=\"M6 4V3h8v1h1v1h1v3h1v3h-1v2h-1v1h-1v1h-2v1h4v1h1v3H3v-3h1v-1h4v-1H6v-1H5v-1H4v-2H3V8h1V5h1V4h1Z\" fill=\"".concat(colors.skin.value, "\"/>\n<path d=\"M6 3v1H5v1H4v3H3v3h1v2h1v1h1v1h8v-1h1v-1h1v-2h1V8h-1V5h-1V4h-1V3H6Z\" fill=\"#fff\" fill-opacity=\".1\"/>\n").concat((_components$beard$val = (_components$beard = components.beard) === null || _components$beard === void 0 ? void 0 : _components$beard.value(components, colors)) !== null && _components$beard$val !== void 0 ? _components$beard$val : '', "\n").concat((_components$eyes$valu = (_components$eyes = components.eyes) === null || _components$eyes === void 0 ? void 0 : _components$eyes.value(components, colors)) !== null && _components$eyes$valu !== void 0 ? _components$eyes$valu : '', "\n").concat((_components$eyebrows$ = (_components$eyebrows = components.eyebrows) === null || _components$eyebrows === void 0 ? void 0 : _components$eyebrows.value(components, colors)) !== null && _components$eyebrows$ !== void 0 ? _components$eyebrows$ : '', "\n").concat((_components$mouth$val = (_components$mouth = components.mouth) === null || _components$mouth === void 0 ? void 0 : _components$mouth.value(components, colors)) !== null && _components$mouth$val !== void 0 ? _components$mouth$val : '', "\n").concat((_components$hair$valu = (_components$hair = components.hair) === null || _components$hair === void 0 ? void 0 : _components$hair.value(components, colors)) !== null && _components$hair$valu !== void 0 ? _components$hair$valu : '', "\n").concat((_components$accessori = (_components$accessori2 = components.accessories) === null || _components$accessori2 === void 0 ? void 0 : _components$accessori2.value(components, colors)) !== null && _components$accessori !== void 0 ? _components$accessori : '', "\n").concat((_components$glasses$v = (_components$glasses = components.glasses) === null || _components$glasses === void 0 ? void 0 : _components$glasses.value(components, colors)) !== null && _components$glasses$v !== void 0 ? _components$glasses$v : '', "\n").concat((_components$hat$value = (_components$hat = components.hat) === null || _components$hat === void 0 ? void 0 : _components$hat.value(components, colors)) !== null && _components$hat$value !== void 0 ? _components$hat$value : '', "\n").concat((_components$clothing$ = (_components$clothing = components.clothing) === null || _components$clothing === void 0 ? void 0 : _components$clothing.value(components, colors)) !== null && _components$clothing$ !== void 0 ? _components$clothing$ : '', "\n")
1081
- };
1082
- },
1083
- preview: _ref2 => {
1084
- let {
1085
- prng,
1086
- options,
1087
- property
1088
- } = _ref2;
1089
- const componentGroup = property.toString();
1090
- const colorGroup = property.toString().replace(/Color$/, '');
1091
- const components = getComponents({
1092
- prng,
1093
- options
1094
- });
1095
- const colors = getColors({
1096
- prng,
1097
- options
1098
- });
1099
-
1100
- if (componentGroup in components) {
1101
- var _components$component, _components$component2;
1102
-
1103
- const {
1104
- width,
1105
- height
1106
- } = dimensions[componentGroup];
1107
- return {
1108
- attributes: {
1109
- viewBox: "0 0 ".concat(width, " ").concat(height),
1110
- fill: 'none',
1111
- 'shape-rendering': 'auto'
1112
- },
1113
- body: (_components$component = (_components$component2 = components[componentGroup]) === null || _components$component2 === void 0 ? void 0 : _components$component2.value(components, colors)) !== null && _components$component !== void 0 ? _components$component : ''
1114
- };
1115
- }
1116
-
1117
- if (colorGroup in colors) {
1118
- return {
1119
- attributes: {
1120
- viewBox: "0 0 1 1",
1121
- fill: 'none',
1122
- 'shape-rendering': 'auto'
1123
- },
1124
- body: "<rect width=\"1\" height=\"1\" fill=\"".concat(colors[colorGroup].value, "\" />")
1125
- };
1126
- }
1127
-
1128
- return undefined;
1129
- }
1130
- };
1131
-
1132
- /*!
1133
- * Pixel Art (@dicebear/pixel-art)
1134
- *
1135
- * Code licensed under MIT License.
1136
- * Copyright (c) 2021 Florian Körner
1137
- * Copyright (c) 2021 Plastic Jam
1138
- *
1139
- * Design "Pixel Art" by Plastic Jam licensed under MIT.
1140
- * License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art/LICENSE
1141
- */
1142
- let {
1143
- create,
1144
- preview,
1145
- meta,
1146
- schema
1147
- } = style;
1148
-
1149
- exports.create = create;
1150
- exports.meta = meta;
1151
- exports.preview = preview;
1152
- exports.schema = schema;