@dicebear/miniavs 4.10.2 → 4.10.4

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/index.d.ts CHANGED
@@ -11,6 +11,6 @@
11
11
  declare let create: import("@dicebear/avatars").StyleCreate<import("./options").Options>, meta: import("@dicebear/avatars").StyleMeta, schema: import("json-schema").JSONSchema7;
12
12
  export { create, meta, schema };
13
13
  export { Options } from './options';
14
- declare const _default: import("@dicebear/avatars").SpriteCollection<import("./options").Options>;
15
14
  /** @deprecated will be removed in Version 5.0 */
15
+ declare const _default: import("@dicebear/avatars").SpriteCollection<import("./options").Options>;
16
16
  export default _default;
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { utils } from '@dicebear/avatars';
2
2
 
3
- const schema$1 = {
3
+ var schema$1 = {
4
4
  "title": "Options",
5
5
  "$schema": "http://json-schema.org/draft-07/schema#",
6
6
  "properties": {
@@ -143,65 +143,109 @@ const schema$1 = {
143
143
  "additionalProperties": false
144
144
  };
145
145
 
146
- const head = {
147
- 'normal': (components, colors) => "\n<path d=\"M45.887 36.1c0 8.5-1.257 18.859-10.887 19.82v9.95S31.357 68 26.5 68 18 64.523 18 64.523V42a5 5 0 0 1-1.303-9.829C15.36 22.643 17.51 13 32.002 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284Z\" fill=\"".concat(colors.skin.value, "\"/>\n<path d=\"M35 55.92c-.478.048-.978.072-1.498.072-8.883 0-13.9-7.153-15.502-14.605v23.135s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13V55.92Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<path d=\"M34.629 55.952c-.364.026-.74.04-1.128.04-6.53 0-10.97-3.866-13.501-8.875v.424l.001.695c0 5.385 2.614 9.75 8.276 9.75.484 0 .932.004 1.348.007 3.346.028 4.59.038 5.004-2.041ZM16.697 32.172A5.002 5.002 0 0 0 18 42c.047 0 .093 0 .14-.002a25.38 25.38 0 0 1-.71-5.898 46.698 46.698 0 0 1-.733-3.928Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>\n"),
148
- 'wide': (components, colors) => "\n<path d=\"M46.07 40.409c.47 7.492.939 14.986-11.07 15.55v9.912S31.357 68 26.5 68 18 64.523 18 64.523V45.096a27.765 27.765 0 0 1-.412-3.113 5 5 0 0 1-.89-9.812C15.36 22.643 17.508 13 32.001 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284 0 1.403.091 2.856.183 4.31Z\" fill=\"".concat(colors.skin.value, "\"/>\n<path d=\"M17.588 41.984c-.158-1.97-.158-3.974-.158-5.884a46.698 46.698 0 0 1-.733-3.928 5.002 5.002 0 0 0 .89 9.812ZM18 45.094V64.52s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13v-9.91c-.48.022-.979.033-1.498.033-10.792 0-14.337-4.946-15.502-10.897Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<path d=\"M34.932 55.96c-.459.021-.935.032-1.43.032-7.248 0-11.227-2.231-13.412-5.5.503 4.823 3.162 8.493 8.293 8.493.49 0 .944.004 1.365.007 3.796.033 4.922.043 5.184-3.031Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>\n"),
149
- 'thin': (components, colors) => "\n<path d=\"M45.887 36.1C45.887 45.021 42 55 35.5 56.5a14.512 14.512 0 0 1-.5-.062v9.433S31.357 68 26.5 68 18 64.523 18 64.523V42a5 5 0 0 1-1.303-9.829C15.36 22.643 17.51 13 32.002 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284Z\" fill=\"".concat(colors.skin.value, "\"/>\n<path d=\"M18 42.002v22.523s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13V56.44c-7.26-1.02-13.894-7.502-16.454-14.467-.18.02-.361.03-.546.03Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<path d=\"M16.697 32.172A5.002 5.002 0 0 0 18 42c.185 0 .367-.01.546-.03-.718-1.955-1.116-3.949-1.116-5.87a46.698 46.698 0 0 1-.733-3.928ZM34.696 56.392C27.951 55.3 21.79 49.53 19.001 43.105L19 43.5c0 5.654 6.267 14.474 9.383 15.487 2.568.835 5.397.657 6.313-2.594Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>\n")
146
+ var head = {
147
+ 'normal': function normal(components, colors) {
148
+ return "\n<path d=\"M45.887 36.1c0 8.5-1.257 18.859-10.887 19.82v9.95S31.357 68 26.5 68 18 64.523 18 64.523V42a5 5 0 0 1-1.303-9.829C15.36 22.643 17.51 13 32.002 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284Z\" fill=\"".concat(colors.skin.value, "\"/>\n<path d=\"M35 55.92c-.478.048-.978.072-1.498.072-8.883 0-13.9-7.153-15.502-14.605v23.135s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13V55.92Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<path d=\"M34.629 55.952c-.364.026-.74.04-1.128.04-6.53 0-10.97-3.866-13.501-8.875v.424l.001.695c0 5.385 2.614 9.75 8.276 9.75.484 0 .932.004 1.348.007 3.346.028 4.59.038 5.004-2.041ZM16.697 32.172A5.002 5.002 0 0 0 18 42c.047 0 .093 0 .14-.002a25.38 25.38 0 0 1-.71-5.898 46.698 46.698 0 0 1-.733-3.928Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>\n");
149
+ },
150
+ 'wide': function wide(components, colors) {
151
+ return "\n<path d=\"M46.07 40.409c.47 7.492.939 14.986-11.07 15.55v9.912S31.357 68 26.5 68 18 64.523 18 64.523V45.096a27.765 27.765 0 0 1-.412-3.113 5 5 0 0 1-.89-9.812C15.36 22.643 17.508 13 32.001 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284 0 1.403.091 2.856.183 4.31Z\" fill=\"".concat(colors.skin.value, "\"/>\n<path d=\"M17.588 41.984c-.158-1.97-.158-3.974-.158-5.884a46.698 46.698 0 0 1-.733-3.928 5.002 5.002 0 0 0 .89 9.812ZM18 45.094V64.52s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13v-9.91c-.48.022-.979.033-1.498.033-10.792 0-14.337-4.946-15.502-10.897Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<path d=\"M34.932 55.96c-.459.021-.935.032-1.43.032-7.248 0-11.227-2.231-13.412-5.5.503 4.823 3.162 8.493 8.293 8.493.49 0 .944.004 1.365.007 3.796.033 4.922.043 5.184-3.031Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>\n");
152
+ },
153
+ 'thin': function thin(components, colors) {
154
+ return "\n<path d=\"M45.887 36.1C45.887 45.021 42 55 35.5 56.5a14.512 14.512 0 0 1-.5-.062v9.433S31.357 68 26.5 68 18 64.523 18 64.523V42a5 5 0 0 1-1.303-9.829C15.36 22.643 17.51 13 32.002 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284Z\" fill=\"".concat(colors.skin.value, "\"/>\n<path d=\"M18 42.002v22.523s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13V56.44c-7.26-1.02-13.894-7.502-16.454-14.467-.18.02-.361.03-.546.03Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<path d=\"M16.697 32.172A5.002 5.002 0 0 0 18 42c.185 0 .367-.01.546-.03-.718-1.955-1.116-3.949-1.116-5.87a46.698 46.698 0 0 1-.733-3.928ZM34.696 56.392C27.951 55.3 21.79 49.53 19.001 43.105L19 43.5c0 5.654 6.267 14.474 9.383 15.487 2.568.835 5.397.657 6.313-2.594Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>\n");
155
+ }
150
156
  };
151
157
 
152
- const body$1 = {
153
- 'tShirt': (components, colors) => "\n<rect x=\"7\" y=\"60\" width=\"40\" height=\"23\" rx=\"9\" fill=\"".concat(colors.body.value, "\"/>\n"),
154
- 'golf': (components, colors) => "\n<rect x=\"7\" y=\"60\" width=\"40\" height=\"23\" rx=\"9\" fill=\"".concat(colors.body.value, "\"/>\n<path d=\"M17 58h19v3s-5 1-9.5 1-9.5-1-9.5-1v-3Z\" fill=\"").concat(colors.body.value, "\"/>\n<path d=\"M17 58h19v2s-3 1.5-9.5 1.5S17 60 17 60v-2Z\" fill=\"#000\" fill-opacity=\".2\"/>\n<path d=\"M16.5 59a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2s-5 1-10 1-10-1-10-1Z\" fill=\"").concat(colors.body.value, "\"/>\n")
158
+ var body$1 = {
159
+ 'tShirt': function tShirt(components, colors) {
160
+ return "\n<rect x=\"7\" y=\"60\" width=\"40\" height=\"23\" rx=\"9\" fill=\"".concat(colors.body.value, "\"/>\n");
161
+ },
162
+ 'golf': function golf(components, colors) {
163
+ return "\n<rect x=\"7\" y=\"60\" width=\"40\" height=\"23\" rx=\"9\" fill=\"".concat(colors.body.value, "\"/>\n<path d=\"M17 58h19v3s-5 1-9.5 1-9.5-1-9.5-1v-3Z\" fill=\"").concat(colors.body.value, "\"/>\n<path d=\"M17 58h19v2s-3 1.5-9.5 1.5S17 60 17 60v-2Z\" fill=\"#000\" fill-opacity=\".2\"/>\n<path d=\"M16.5 59a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2s-5 1-10 1-10-1-10-1Z\" fill=\"").concat(colors.body.value, "\"/>\n");
164
+ }
155
165
  };
156
166
 
157
- const hair$1 = {
158
- 'balndess': (components, colors) => "\n<g fill=\"".concat(colors.hair.value, "\">\n<rect x=\"14\" y=\"26\" width=\"9\" height=\"2\" rx=\"1\"/>\n<rect x=\"14\" y=\"33\" width=\"7\" height=\"2\" rx=\"1\"/>\n<rect x=\"12\" y=\"29\" width=\"13\" height=\"3\" rx=\"1.5\"/>\n</g>\n"),
159
- 'slaughter': (components, colors) => "\n<g fill=\"".concat(colors.hair.value, "\">\n<path d=\"M24 25c0 .53-.103 1.037-.29 1.5A4 4 0 0 1 20 32a4 4 0 0 1-8 0c0-1.046.065-2.782.368-4.321a4 4 0 0 1 4.801-5.505A4 4 0 0 1 24 25ZM45.849 33.895a4.002 4.002 0 0 0 2.785-5.393 4 4 0 0 0-3.134-5.459c.593 3.14.482 6.61.382 9.774l-.033 1.078Z\"/>\n</g>\n"),
160
- 'ponyTail': (components, colors) => "\n<path d=\"M0 10c7.997-7.997 13.002 3 13.002 3L11 21s-2 2.5 0 10-2.5 11.5-2.5 11.5-3.5 2.502-6.5.502c-3-2-3.397-3.922-3-7.5.5-4.5 2-3.002 2-7.502s-8.997-10.004-1-18Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"m13.03 13.181 5.508 2.382-3.572 8.26-5.507-2.38s-.96-1.943.54-4.942c1.497-3 3.032-3.32 3.032-3.32Z\" fill=\"#FF6C98\"/>\n<path d=\"m18 41-1.323-8.823A5 5 0 0 0 18 42v8.3a22.137 22.137 0 0 1-4.083-4.83c-1.7-2.704-2.888-5.804-3.482-9.093a27.526 27.526 0 0 1 .04-9.97c.62-3.283 1.833-6.37 3.556-9.055 1.722-2.684 3.915-4.903 6.43-6.506 2.514-1.604 5.292-2.555 8.147-2.789a17.03 17.03 0 0 1 1.868-.05 20.422 20.422 0 0 1 7.795 1.325c2.305.88 4.4 2.169 6.164 3.794a17.48 17.48 0 0 1 4.119 5.677A16.378 16.378 0 0 1 49.93 24H50v4.286s-.329.152-.998.366v8.488s0 1.404-1.5 2.456c-.52.365-1.218.645-1.91.856a32.6 32.6 0 0 0 .297-4.353c0-1.034.035-2.139.071-3.284.036-1.118.073-2.275.08-3.441-1.852.339-4.367.626-7.578.626C30.614 30 26 28.286 26 28.286v-.999c-.68 1.064-1.416 2.35-2 3.713-.75 1.75-.75 3.544-.75 5.051 0 1.508 0 2.73-.75 3.335C21 40.596 18 41 18 41Z\" fill=\"").concat(colors.hair.value, "\"/>\n"),
161
- 'long': (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M48 25a18 18 0 0 0-35.993-.5H12V65h11V34.597c2.485-.478 6.78-1.53 12.208-3.756 5.464-2.241 8.873-4.359 10.668-5.637.242 2.524.158 5.16.08 7.61-.036 1.146-.071 2.25-.071 3.285 0 .408-.008.818-.025 1.229.231-.073.447-.153.639-.24 1.5-.684 1.5-1.597 1.5-1.597V25H48Zm-33 8a4.98 4.98 0 0 0-1.62 2.087A5 5 0 0 0 15 41v-8Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
162
- 'curly': (components, colors) => "\n<g fill=\"".concat(colors.hair.value, "\">\n<path d=\"M45.967 32.483a3.999 3.999 0 0 0 1.78-4.884 4 4 0 0 0-2.966-7.41c1.418 3.674 1.314 8.218 1.186 12.294Z\"/>\n<path d=\"M36.297 22.76A4.981 4.981 0 0 1 33 24a4.978 4.978 0 0 1-3.057-1.043A6.978 6.978 0 0 1 25 25a6.999 6.999 0 0 1-2.045-.304 4.02 4.02 0 0 1-.892.731 4 4 0 0 1-1.351 6.189A1.5 1.5 0 0 1 19.465 34a4 4 0 0 1-7.291-3.17A3.987 3.987 0 0 1 11 28c0-1.106.449-2.107 1.174-2.83a4 4 0 0 1 .738-3.713 7.003 7.003 0 0 1 4.098-10.17 4 4 0 0 1 5.927-3.788A6.997 6.997 0 0 1 29 4c1.373 0 2.654.395 3.735 1.079a6.502 6.502 0 0 1 10.78 1.954 4 4 0 0 1 3.439 4.577C48.809 12.984 50 15.112 50 17.5c0 4.142-3.582 7.5-8 7.5-2.233 0-4.252-.858-5.703-2.24Z\"/>\n</g>\n"),
163
- 'stylish': (components, colors) => "\n<path d=\"M20.673 28.222v6.018c0 .762-.673 1.761-1.173 2.261-.5.5-2 1.5-2.85 1.5-.848 0-3.539-.451-4.826-2.257-1.287-1.805-.893-11.322 0-13.54.892-2.218 4.183-6.888 8.85-10.452 3.38-2.582 7.665-4.717 12.871-5.345C58.485 3.397 49.218 20.987 46 25.5c-5.5-2-9.5-2.5-16.717-1.518-7.217.983-8.016 1.982-8.61 4.239Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
164
- 'elvis': (components, colors) => "\n<path d=\"M21.998 28c-.629 3 1 6.982 1 7.744 0 .762-3.93 3.025-5 3.757-1.069.731-1.5-7-1.5-7-3 0-3.5 5.5-3.5 5.5s-2.244-.74-3-4.5c-.51-2.54.299-8.089.5-9.5.5-3.5 1-11.5 7.5-15.5s23-4 27-3c9.894 2.473 11.218 15.986 8 20.5-5 5.5-19-1-23.5-1s-6.87 0-7.5 3Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
165
- 'classic02': (components, colors) => "\n<path d=\"M28.118 27.466c7.796 1.142 21.48 3.147 22.882-9.464 1-9-12.5-19.5-27-10-9.11 1.35-11.389 8.278-11.908 14.254A3.986 3.986 0 0 0 11 25.002c0 .53.103 1.037.29 1.5-.187.463-.29.97-.29 1.5 0 1.106.449 2.106 1.174 2.83A4 4 0 1 0 20 32.002a4 4 0 0 0 3.874-4.999l.126-.001c.952 0 2.39.21 4.118.464Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
166
- 'classic01': (components, colors) => "\n<path d=\"M29.697 26.203c5.611 1.863 13.389 4.445 21.535-3.701 4-4-14-21-28.5-11.5-11.333 1.679-10.685 8.47-10.185 13.71.095 1.002.185 1.948.185 2.79 0 .533.07.931.2 1.218a26.48 26.48 0 0 0-.2 3.282 4 4 0 1 0 8 0A4 4 0 0 0 24.606 27l.126.002c1.224 0 2.32-.55 3.053-1.416.605.183 1.243.395 1.912.617Z\" fill=\"".concat(colors.hair.value, "\"/>\n")
167
+ var hair$1 = {
168
+ 'balndess': function balndess(components, colors) {
169
+ return "\n<g fill=\"".concat(colors.hair.value, "\">\n<rect x=\"14\" y=\"26\" width=\"9\" height=\"2\" rx=\"1\"/>\n<rect x=\"14\" y=\"33\" width=\"7\" height=\"2\" rx=\"1\"/>\n<rect x=\"12\" y=\"29\" width=\"13\" height=\"3\" rx=\"1.5\"/>\n</g>\n");
170
+ },
171
+ 'slaughter': function slaughter(components, colors) {
172
+ return "\n<g fill=\"".concat(colors.hair.value, "\">\n<path d=\"M24 25c0 .53-.103 1.037-.29 1.5A4 4 0 0 1 20 32a4 4 0 0 1-8 0c0-1.046.065-2.782.368-4.321a4 4 0 0 1 4.801-5.505A4 4 0 0 1 24 25ZM45.849 33.895a4.002 4.002 0 0 0 2.785-5.393 4 4 0 0 0-3.134-5.459c.593 3.14.482 6.61.382 9.774l-.033 1.078Z\"/>\n</g>\n");
173
+ },
174
+ 'ponyTail': function ponyTail(components, colors) {
175
+ return "\n<path d=\"M0 10c7.997-7.997 13.002 3 13.002 3L11 21s-2 2.5 0 10-2.5 11.5-2.5 11.5-3.5 2.502-6.5.502c-3-2-3.397-3.922-3-7.5.5-4.5 2-3.002 2-7.502s-8.997-10.004-1-18Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"m13.03 13.181 5.508 2.382-3.572 8.26-5.507-2.38s-.96-1.943.54-4.942c1.497-3 3.032-3.32 3.032-3.32Z\" fill=\"#FF6C98\"/>\n<path d=\"m18 41-1.323-8.823A5 5 0 0 0 18 42v8.3a22.137 22.137 0 0 1-4.083-4.83c-1.7-2.704-2.888-5.804-3.482-9.093a27.526 27.526 0 0 1 .04-9.97c.62-3.283 1.833-6.37 3.556-9.055 1.722-2.684 3.915-4.903 6.43-6.506 2.514-1.604 5.292-2.555 8.147-2.789a17.03 17.03 0 0 1 1.868-.05 20.422 20.422 0 0 1 7.795 1.325c2.305.88 4.4 2.169 6.164 3.794a17.48 17.48 0 0 1 4.119 5.677A16.378 16.378 0 0 1 49.93 24H50v4.286s-.329.152-.998.366v8.488s0 1.404-1.5 2.456c-.52.365-1.218.645-1.91.856a32.6 32.6 0 0 0 .297-4.353c0-1.034.035-2.139.071-3.284.036-1.118.073-2.275.08-3.441-1.852.339-4.367.626-7.578.626C30.614 30 26 28.286 26 28.286v-.999c-.68 1.064-1.416 2.35-2 3.713-.75 1.75-.75 3.544-.75 5.051 0 1.508 0 2.73-.75 3.335C21 40.596 18 41 18 41Z\" fill=\"").concat(colors.hair.value, "\"/>\n");
176
+ },
177
+ 'long': function long(components, colors) {
178
+ return "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M48 25a18 18 0 0 0-35.993-.5H12V65h11V34.597c2.485-.478 6.78-1.53 12.208-3.756 5.464-2.241 8.873-4.359 10.668-5.637.242 2.524.158 5.16.08 7.61-.036 1.146-.071 2.25-.071 3.285 0 .408-.008.818-.025 1.229.231-.073.447-.153.639-.24 1.5-.684 1.5-1.597 1.5-1.597V25H48Zm-33 8a4.98 4.98 0 0 0-1.62 2.087A5 5 0 0 0 15 41v-8Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
179
+ },
180
+ 'curly': function curly(components, colors) {
181
+ return "\n<g fill=\"".concat(colors.hair.value, "\">\n<path d=\"M45.967 32.483a3.999 3.999 0 0 0 1.78-4.884 4 4 0 0 0-2.966-7.41c1.418 3.674 1.314 8.218 1.186 12.294Z\"/>\n<path d=\"M36.297 22.76A4.981 4.981 0 0 1 33 24a4.978 4.978 0 0 1-3.057-1.043A6.978 6.978 0 0 1 25 25a6.999 6.999 0 0 1-2.045-.304 4.02 4.02 0 0 1-.892.731 4 4 0 0 1-1.351 6.189A1.5 1.5 0 0 1 19.465 34a4 4 0 0 1-7.291-3.17A3.987 3.987 0 0 1 11 28c0-1.106.449-2.107 1.174-2.83a4 4 0 0 1 .738-3.713 7.003 7.003 0 0 1 4.098-10.17 4 4 0 0 1 5.927-3.788A6.997 6.997 0 0 1 29 4c1.373 0 2.654.395 3.735 1.079a6.502 6.502 0 0 1 10.78 1.954 4 4 0 0 1 3.439 4.577C48.809 12.984 50 15.112 50 17.5c0 4.142-3.582 7.5-8 7.5-2.233 0-4.252-.858-5.703-2.24Z\"/>\n</g>\n");
182
+ },
183
+ 'stylish': function stylish(components, colors) {
184
+ return "\n<path d=\"M20.673 28.222v6.018c0 .762-.673 1.761-1.173 2.261-.5.5-2 1.5-2.85 1.5-.848 0-3.539-.451-4.826-2.257-1.287-1.805-.893-11.322 0-13.54.892-2.218 4.183-6.888 8.85-10.452 3.38-2.582 7.665-4.717 12.871-5.345C58.485 3.397 49.218 20.987 46 25.5c-5.5-2-9.5-2.5-16.717-1.518-7.217.983-8.016 1.982-8.61 4.239Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
185
+ },
186
+ 'elvis': function elvis(components, colors) {
187
+ return "\n<path d=\"M21.998 28c-.629 3 1 6.982 1 7.744 0 .762-3.93 3.025-5 3.757-1.069.731-1.5-7-1.5-7-3 0-3.5 5.5-3.5 5.5s-2.244-.74-3-4.5c-.51-2.54.299-8.089.5-9.5.5-3.5 1-11.5 7.5-15.5s23-4 27-3c9.894 2.473 11.218 15.986 8 20.5-5 5.5-19-1-23.5-1s-6.87 0-7.5 3Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
188
+ },
189
+ 'classic02': function classic02(components, colors) {
190
+ return "\n<path d=\"M28.118 27.466c7.796 1.142 21.48 3.147 22.882-9.464 1-9-12.5-19.5-27-10-9.11 1.35-11.389 8.278-11.908 14.254A3.986 3.986 0 0 0 11 25.002c0 .53.103 1.037.29 1.5-.187.463-.29.97-.29 1.5 0 1.106.449 2.106 1.174 2.83A4 4 0 1 0 20 32.002a4 4 0 0 0 3.874-4.999l.126-.001c.952 0 2.39.21 4.118.464Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
191
+ },
192
+ 'classic01': function classic01(components, colors) {
193
+ return "\n<path d=\"M29.697 26.203c5.611 1.863 13.389 4.445 21.535-3.701 4-4-14-21-28.5-11.5-11.333 1.679-10.685 8.47-10.185 13.71.095 1.002.185 1.948.185 2.79 0 .533.07.931.2 1.218a26.48 26.48 0 0 0-.2 3.282 4 4 0 1 0 8 0A4 4 0 0 0 24.606 27l.126.002c1.224 0 2.32-.55 3.053-1.416.605.183 1.243.395 1.912.617Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
194
+ }
167
195
  };
168
196
 
169
- const mouth = {
170
- 'default': (components, colors) => "\n<path d=\"M27.93 46a1 1 0 0 1 1-1h9.142a1 1 0 0 1 1 1 5 5 0 0 1-5 5H32.93a5 5 0 0 1-5-5Z\" fill=\"#66253C\"/>\n<path d=\"M35.756 50.708a4.992 4.992 0 0 1-1.684.29H32.93a5 5 0 0 1-4.996-4.8c.764-.285 1.898-.253 3.017-.22.356.01.71.02 1.05.02 2.21 0 4 1.568 4 3.5 0 .426-.087.833-.245 1.21Z\" fill=\"#B03E67\"/>\n<path d=\"M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z\" fill=\"#fff\"/>\n",
171
- 'missingTooth': (components, colors) => "\n<path d=\"M27.93 46a1 1 0 0 1 1-1h9.142a1 1 0 0 1 1 1 5 5 0 0 1-5 5H32.93a5 5 0 0 1-5-5Z\" fill=\"#66253C\"/>\n<path d=\"M35.756 50.708a4.992 4.992 0 0 1-1.684.29H32.93a5 5 0 0 1-4.996-4.8c.764-.285 1.898-.253 3.017-.22.356.01.71.02 1.05.02 2.21 0 4 1.568 4 3.5 0 .426-.087.833-.245 1.21Z\" fill=\"#B03E67\"/>\n<path d=\"M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z\" fill=\"#fff\"/>\n<path d=\"M31 45.3a.3.3 0 0 1 .3-.3h1.4a.3.3 0 0 1 .3.3v2.4a.3.3 0 0 1-.3.3h-1.4a.3.3 0 0 1-.3-.3v-2.4Z\" fill=\"#B03E67\"/>\n"
197
+ var mouth = {
198
+ 'default': function _default(components, colors) {
199
+ return "\n<path d=\"M27.93 46a1 1 0 0 1 1-1h9.142a1 1 0 0 1 1 1 5 5 0 0 1-5 5H32.93a5 5 0 0 1-5-5Z\" fill=\"#66253C\"/>\n<path d=\"M35.756 50.708a4.992 4.992 0 0 1-1.684.29H32.93a5 5 0 0 1-4.996-4.8c.764-.285 1.898-.253 3.017-.22.356.01.71.02 1.05.02 2.21 0 4 1.568 4 3.5 0 .426-.087.833-.245 1.21Z\" fill=\"#B03E67\"/>\n<path d=\"M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z\" fill=\"#fff\"/>\n";
200
+ },
201
+ 'missingTooth': function missingTooth(components, colors) {
202
+ return "\n<path d=\"M27.93 46a1 1 0 0 1 1-1h9.142a1 1 0 0 1 1 1 5 5 0 0 1-5 5H32.93a5 5 0 0 1-5-5Z\" fill=\"#66253C\"/>\n<path d=\"M35.756 50.708a4.992 4.992 0 0 1-1.684.29H32.93a5 5 0 0 1-4.996-4.8c.764-.285 1.898-.253 3.017-.22.356.01.71.02 1.05.02 2.21 0 4 1.568 4 3.5 0 .426-.087.833-.245 1.21Z\" fill=\"#B03E67\"/>\n<path d=\"M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z\" fill=\"#fff\"/>\n<path d=\"M31 45.3a.3.3 0 0 1 .3-.3h1.4a.3.3 0 0 1 .3.3v2.4a.3.3 0 0 1-.3.3h-1.4a.3.3 0 0 1-.3-.3v-2.4Z\" fill=\"#B03E67\"/>\n";
203
+ }
172
204
  };
173
205
 
174
- const eyes = {
175
- 'normal': (components, colors) => {
206
+ var eyes = {
207
+ 'normal': function normal(components, colors) {
176
208
  var _components$blushes$v, _components$blushes;
177
209
 
178
210
  return "\n<g fill=\"".concat(colors.hair.value, "\">\n<rect x=\"30\" y=\"36\" width=\"3\" height=\"4\" rx=\"1.5\"/>\n<rect x=\"40\" y=\"36\" width=\"3\" height=\"4\" rx=\"1.5\"/>\n</g>\n<g>\n").concat((_components$blushes$v = (_components$blushes = components.blushes) === null || _components$blushes === void 0 ? void 0 : _components$blushes.value(components, colors)) !== null && _components$blushes$v !== void 0 ? _components$blushes$v : '', "\n</g>\n");
179
211
  },
180
- 'confident': (components, colors) => {
212
+ 'confident': function confident(components, colors) {
181
213
  var _components$blushes$v2, _components$blushes2;
182
214
 
183
215
  return "\n<g>\n".concat((_components$blushes$v2 = (_components$blushes2 = components.blushes) === null || _components$blushes2 === void 0 ? void 0 : _components$blushes2.value(components, colors)) !== null && _components$blushes$v2 !== void 0 ? _components$blushes$v2 : '', "\n</g>\n<path d=\"M43 37.5a1.5 1.5 0 0 1-3 0v-1.227c0-.15.122-.273.273-.273h2.454c.15 0 .273.122.273.273V37.5ZM33 37.5a1.5 1.5 0 0 1-3 0v-1.227c0-.15.122-.273.273-.273h2.454c.15 0 .273.122.273.273V37.5Z\" fill=\"").concat(colors.hair.value, "\"/>\n<path stroke=\"").concat(colors.hair.value, "\" stroke-linecap=\"round\" d=\"M29.5 36.5h4M39.5 36.5h4\"/>\n");
184
216
  },
185
- 'happy': (components, colors) => {
217
+ 'happy': function happy(components, colors) {
186
218
  var _components$blushes$v3, _components$blushes3;
187
219
 
188
220
  return "\n<g>\n".concat((_components$blushes$v3 = (_components$blushes3 = components.blushes) === null || _components$blushes3 === void 0 ? void 0 : _components$blushes3.value(components, colors)) !== null && _components$blushes$v3 !== void 0 ? _components$blushes$v3 : '', "\n</g>\n<g fill=\"#1B0B47\">\n<path d=\"M30 37.5a1.5 1.5 0 0 1 3 0v1.227c0 .15-.122.273-.273.273h-2.454a.273.273 0 0 1-.273-.273V37.5ZM40 37.5a1.5 1.5 0 0 1 3 0v1.227c0 .15-.122.273-.273.273h-2.454a.273.273 0 0 1-.273-.273V37.5Z\"/>\n</g>\n");
189
221
  }
190
222
  };
191
223
 
192
- const glasses = {
193
- 'normal': (components, colors) => "\n<g stroke=\"#000\" stroke-width=\"2\">\n<circle cx=\"30.269\" cy=\"36.269\" r=\"4.269\"/>\n<circle cx=\"44.269\" cy=\"36.269\" r=\"4.269\"/>\n<path d=\"m33.985 35.106 7-.104\"/>\n</g>\n"
224
+ var glasses = {
225
+ 'normal': function normal(components, colors) {
226
+ return "\n<g stroke=\"#000\" stroke-width=\"2\">\n<circle cx=\"30.269\" cy=\"36.269\" r=\"4.269\"/>\n<circle cx=\"44.269\" cy=\"36.269\" r=\"4.269\"/>\n<path d=\"m33.985 35.106 7-.104\"/>\n</g>\n";
227
+ }
194
228
  };
195
229
 
196
- const mustache = {
197
- 'pencilThinBeard': (components, colors) => "\n<g fill=\"".concat(colors.hair.value, "\">\n<path d=\"M26.5 45s4.5-.5 11-2v2c-1.5.667-5.5 1.6-7.5 2-2.5.5-3.5-2-3.5-2ZM48 44.756S44 44 38 43v2c1.429.585 4.595 1.149 6.5 1.5 2.381.439 3.5-1.744 3.5-1.744ZM33.31 55.242A1 1 0 0 1 34.28 54h3.44a1 1 0 0 1 .97 1.242l-.25 1a1 1 0 0 1-.97.758h-2.94a1 1 0 0 1-.97-.758l-.25-1Z\"/>\n</g>\n"),
198
- 'pencilThin': (components, colors) => "\n<g fill=\"#1B0B47\">\n<path d=\"M37.5 43c-6.5 1.5-11 2-11 2s1 2.5 3.5 2c2-.4 6-1.333 7.5-2v-2ZM38 43c6 1 10 1.756 10 1.756s-1.119 2.183-3.5 1.744l-.32-.059C42.256 46.088 39.35 45.553 38 45v-2Z\"/>\n</g>\n",
199
- 'horshoe': (components, colors) => "\n<path d=\"M27 46a3 3 0 0 1 3-3h11a3 3 0 0 1 3 3v11a4 4 0 0 1-4-4v-7h-9v7a4 4 0 0 1-4 4V46Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
200
- 'freddy': (components, colors) => "\n<path d=\"M28 46a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3H28Z\" fill=\"".concat(colors.hair.value, "\"/>\n")
230
+ var mustache = {
231
+ 'pencilThinBeard': function pencilThinBeard(components, colors) {
232
+ return "\n<g fill=\"".concat(colors.hair.value, "\">\n<path d=\"M26.5 45s4.5-.5 11-2v2c-1.5.667-5.5 1.6-7.5 2-2.5.5-3.5-2-3.5-2ZM48 44.756S44 44 38 43v2c1.429.585 4.595 1.149 6.5 1.5 2.381.439 3.5-1.744 3.5-1.744ZM33.31 55.242A1 1 0 0 1 34.28 54h3.44a1 1 0 0 1 .97 1.242l-.25 1a1 1 0 0 1-.97.758h-2.94a1 1 0 0 1-.97-.758l-.25-1Z\"/>\n</g>\n");
233
+ },
234
+ 'pencilThin': function pencilThin(components, colors) {
235
+ return "\n<g fill=\"#1B0B47\">\n<path d=\"M37.5 43c-6.5 1.5-11 2-11 2s1 2.5 3.5 2c2-.4 6-1.333 7.5-2v-2ZM38 43c6 1 10 1.756 10 1.756s-1.119 2.183-3.5 1.744l-.32-.059C42.256 46.088 39.35 45.553 38 45v-2Z\"/>\n</g>\n";
236
+ },
237
+ 'horshoe': function horshoe(components, colors) {
238
+ return "\n<path d=\"M27 46a3 3 0 0 1 3-3h11a3 3 0 0 1 3 3v11a4 4 0 0 1-4-4v-7h-9v7a4 4 0 0 1-4 4V46Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
239
+ },
240
+ 'freddy': function freddy(components, colors) {
241
+ return "\n<path d=\"M28 46a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3H28Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
242
+ }
201
243
  };
202
244
 
203
- const blushes = {
204
- 'default': (components, colors) => "\n<g fill=\"#FF859B\">\n<rect x=\"24\" y=\"39\" width=\"5\" height=\"3\" rx=\"1.5\"/>\n<rect x=\"43\" y=\"39\" width=\"4\" height=\"3\" rx=\"1.5\"/>\n</g>\n"
245
+ var blushes = {
246
+ 'default': function _default(components, colors) {
247
+ return "\n<g fill=\"#FF859B\">\n<rect x=\"24\" y=\"39\" width=\"5\" height=\"3\" rx=\"1.5\"/>\n<rect x=\"43\" y=\"39\" width=\"4\" height=\"3\" rx=\"1.5\"/>\n</g>\n";
248
+ }
205
249
  };
206
250
 
207
251
  var components = /*#__PURE__*/Object.freeze({
@@ -217,9 +261,9 @@ var components = /*#__PURE__*/Object.freeze({
217
261
  });
218
262
 
219
263
  function pickComponent(prng, group) {
220
- let values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
221
- const componentCollection = components;
222
- const key = prng.pick(values);
264
+ var values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
265
+ var componentCollection = components;
266
+ var key = prng.pick(values);
223
267
 
224
268
  if (componentCollection[group][key]) {
225
269
  return {
@@ -231,19 +275,19 @@ function pickComponent(prng, group) {
231
275
  }
232
276
  }
233
277
 
234
- const skin = {
278
+ var skin = {
235
279
  'yellow': 'rgba(255, 203, 126, 1)',
236
280
  'white': 'rgba(245, 208, 197, 1)',
237
281
  'dark': 'rgba(131, 96, 85, 1)'
238
282
  };
239
283
 
240
- const hair = {
284
+ var hair = {
241
285
  'brown': 'rgba(71, 40, 11, 1)',
242
286
  'black': 'rgba(27, 11, 71, 1)',
243
287
  'red': 'rgba(173, 58, 32, 1)'
244
288
  };
245
289
 
246
- const body = {
290
+ var body = {
247
291
  'orange': 'rgba(224, 90, 51, 1)',
248
292
  'blue': 'rgba(54, 51, 224, 1)',
249
293
  'pink': 'rgba(255, 77, 216, 1)'
@@ -259,20 +303,34 @@ var colors = /*#__PURE__*/Object.freeze({
259
303
  function pickColor(prng, group, values) {
260
304
  var _colorCollection$grou;
261
305
 
262
- const colorCollection = colors;
306
+ var colorCollection = colors;
263
307
 
264
308
  if (values.length === 0) {
265
309
  values.push('transparent');
266
310
  }
267
311
 
268
- const key = prng.pick(values);
312
+ var key = prng.pick(values);
269
313
  return {
270
314
  name: key,
271
315
  value: (_colorCollection$grou = colorCollection[group][key]) !== null && _colorCollection$grou !== void 0 ? _colorCollection$grou : key
272
316
  };
273
317
  }
274
318
 
275
- const style = {
319
+ function onPreCreate(_ref) {// Write your modifications here
320
+
321
+ _ref.prng;
322
+ _ref.options;
323
+ }
324
+
325
+ function onPostCreate(_ref) {// Write your modifications here
326
+
327
+ _ref.prng;
328
+ _ref.options;
329
+ _ref.components;
330
+ _ref.colors;
331
+ }
332
+
333
+ var style = {
276
334
  meta: {
277
335
  title: 'Miniavs - Free Avatar Creator',
278
336
  creator: 'Webpixels',
@@ -283,22 +341,24 @@ const style = {
283
341
  }
284
342
  },
285
343
  schema: schema$1,
286
- create: _ref => {
344
+ create: function create(_ref) {
287
345
  var _options$skinColor, _options$hairColor, _options$bodyColor, _components$head$valu, _components$head, _components$body$valu, _components$body, _components$hair$valu, _components$hair, _components$mouth$val, _components$mouth, _components$eyes$valu, _components$eyes, _components$glasses$v, _components$glasses, _components$mustache$, _components$mustache;
288
346
 
289
- let {
290
- prng,
291
- options
292
- } = _ref;
293
- const headComponent = pickComponent(prng, 'head', options.head);
294
- const bodyComponent = pickComponent(prng, 'body', options.body);
295
- const hairComponent = pickComponent(prng, 'hair', options.hair);
296
- const mouthComponent = pickComponent(prng, 'mouth', options.mouth);
297
- const eyesComponent = pickComponent(prng, 'eyes', options.eyes);
298
- const glassesComponent = pickComponent(prng, 'glasses', options.glasses);
299
- const mustacheComponent = pickComponent(prng, 'mustache', options.mustache);
300
- const blushesComponent = pickComponent(prng, 'blushes', options.blushes);
301
- const components = {
347
+ var prng = _ref.prng,
348
+ options = _ref.options;
349
+ onPreCreate({
350
+ prng: prng,
351
+ options: options
352
+ });
353
+ var headComponent = pickComponent(prng, 'head', options.head);
354
+ var bodyComponent = pickComponent(prng, 'body', options.body);
355
+ var hairComponent = pickComponent(prng, 'hair', options.hair);
356
+ var mouthComponent = pickComponent(prng, 'mouth', options.mouth);
357
+ var eyesComponent = pickComponent(prng, 'eyes', options.eyes);
358
+ var glassesComponent = pickComponent(prng, 'glasses', options.glasses);
359
+ var mustacheComponent = pickComponent(prng, 'mustache', options.mustache);
360
+ var blushesComponent = pickComponent(prng, 'blushes', options.blushes);
361
+ var components = {
302
362
  'head': headComponent,
303
363
  'body': bodyComponent,
304
364
  'hair': hairComponent,
@@ -308,11 +368,17 @@ const style = {
308
368
  'mustache': prng.bool(options.mustacheProbability) ? mustacheComponent : undefined,
309
369
  'blushes': prng.bool(options.blushesProbability) ? blushesComponent : undefined
310
370
  };
311
- const colors = {
371
+ var colors = {
312
372
  'skin': pickColor(prng, 'skin', (_options$skinColor = options.skinColor) !== null && _options$skinColor !== void 0 ? _options$skinColor : []),
313
373
  'hair': pickColor(prng, 'hair', (_options$hairColor = options.hairColor) !== null && _options$hairColor !== void 0 ? _options$hairColor : []),
314
374
  'body': pickColor(prng, 'body', (_options$bodyColor = options.bodyColor) !== null && _options$bodyColor !== void 0 ? _options$bodyColor : [])
315
375
  };
376
+ onPostCreate({
377
+ prng: prng,
378
+ options: options,
379
+ components: components,
380
+ colors: colors
381
+ });
316
382
  return {
317
383
  attributes: {
318
384
  viewBox: '0 0 64 64',
@@ -333,11 +399,9 @@ const style = {
333
399
  * Source: https://www.figma.com/community/file/923211396597067458
334
400
  * License: https://creativecommons.org/licenses/by/4.0/
335
401
  */
336
- let {
337
- create,
338
- meta,
339
- schema
340
- } = style;
402
+ var create = style.create,
403
+ meta = style.meta,
404
+ schema = style.schema;
341
405
  /** @deprecated will be removed in Version 5.0 */
342
406
 
343
407
  var index = utils.style.createLegacyWrapper(style);
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var avatars = require('@dicebear/avatars');
6
6
 
7
- const schema$1 = {
7
+ var schema$1 = {
8
8
  "title": "Options",
9
9
  "$schema": "http://json-schema.org/draft-07/schema#",
10
10
  "properties": {
@@ -147,65 +147,109 @@ const schema$1 = {
147
147
  "additionalProperties": false
148
148
  };
149
149
 
150
- const head = {
151
- 'normal': (components, colors) => "\n<path d=\"M45.887 36.1c0 8.5-1.257 18.859-10.887 19.82v9.95S31.357 68 26.5 68 18 64.523 18 64.523V42a5 5 0 0 1-1.303-9.829C15.36 22.643 17.51 13 32.002 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284Z\" fill=\"".concat(colors.skin.value, "\"/>\n<path d=\"M35 55.92c-.478.048-.978.072-1.498.072-8.883 0-13.9-7.153-15.502-14.605v23.135s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13V55.92Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<path d=\"M34.629 55.952c-.364.026-.74.04-1.128.04-6.53 0-10.97-3.866-13.501-8.875v.424l.001.695c0 5.385 2.614 9.75 8.276 9.75.484 0 .932.004 1.348.007 3.346.028 4.59.038 5.004-2.041ZM16.697 32.172A5.002 5.002 0 0 0 18 42c.047 0 .093 0 .14-.002a25.38 25.38 0 0 1-.71-5.898 46.698 46.698 0 0 1-.733-3.928Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>\n"),
152
- 'wide': (components, colors) => "\n<path d=\"M46.07 40.409c.47 7.492.939 14.986-11.07 15.55v9.912S31.357 68 26.5 68 18 64.523 18 64.523V45.096a27.765 27.765 0 0 1-.412-3.113 5 5 0 0 1-.89-9.812C15.36 22.643 17.508 13 32.001 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284 0 1.403.091 2.856.183 4.31Z\" fill=\"".concat(colors.skin.value, "\"/>\n<path d=\"M17.588 41.984c-.158-1.97-.158-3.974-.158-5.884a46.698 46.698 0 0 1-.733-3.928 5.002 5.002 0 0 0 .89 9.812ZM18 45.094V64.52s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13v-9.91c-.48.022-.979.033-1.498.033-10.792 0-14.337-4.946-15.502-10.897Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<path d=\"M34.932 55.96c-.459.021-.935.032-1.43.032-7.248 0-11.227-2.231-13.412-5.5.503 4.823 3.162 8.493 8.293 8.493.49 0 .944.004 1.365.007 3.796.033 4.922.043 5.184-3.031Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>\n"),
153
- 'thin': (components, colors) => "\n<path d=\"M45.887 36.1C45.887 45.021 42 55 35.5 56.5a14.512 14.512 0 0 1-.5-.062v9.433S31.357 68 26.5 68 18 64.523 18 64.523V42a5 5 0 0 1-1.303-9.829C15.36 22.643 17.51 13 32.002 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284Z\" fill=\"".concat(colors.skin.value, "\"/>\n<path d=\"M18 42.002v22.523s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13V56.44c-7.26-1.02-13.894-7.502-16.454-14.467-.18.02-.361.03-.546.03Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<path d=\"M16.697 32.172A5.002 5.002 0 0 0 18 42c.185 0 .367-.01.546-.03-.718-1.955-1.116-3.949-1.116-5.87a46.698 46.698 0 0 1-.733-3.928ZM34.696 56.392C27.951 55.3 21.79 49.53 19.001 43.105L19 43.5c0 5.654 6.267 14.474 9.383 15.487 2.568.835 5.397.657 6.313-2.594Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>\n")
150
+ var head = {
151
+ 'normal': function normal(components, colors) {
152
+ return "\n<path d=\"M45.887 36.1c0 8.5-1.257 18.859-10.887 19.82v9.95S31.357 68 26.5 68 18 64.523 18 64.523V42a5 5 0 0 1-1.303-9.829C15.36 22.643 17.51 13 32.002 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284Z\" fill=\"".concat(colors.skin.value, "\"/>\n<path d=\"M35 55.92c-.478.048-.978.072-1.498.072-8.883 0-13.9-7.153-15.502-14.605v23.135s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13V55.92Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<path d=\"M34.629 55.952c-.364.026-.74.04-1.128.04-6.53 0-10.97-3.866-13.501-8.875v.424l.001.695c0 5.385 2.614 9.75 8.276 9.75.484 0 .932.004 1.348.007 3.346.028 4.59.038 5.004-2.041ZM16.697 32.172A5.002 5.002 0 0 0 18 42c.047 0 .093 0 .14-.002a25.38 25.38 0 0 1-.71-5.898 46.698 46.698 0 0 1-.733-3.928Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>\n");
153
+ },
154
+ 'wide': function wide(components, colors) {
155
+ return "\n<path d=\"M46.07 40.409c.47 7.492.939 14.986-11.07 15.55v9.912S31.357 68 26.5 68 18 64.523 18 64.523V45.096a27.765 27.765 0 0 1-.412-3.113 5 5 0 0 1-.89-9.812C15.36 22.643 17.508 13 32.001 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284 0 1.403.091 2.856.183 4.31Z\" fill=\"".concat(colors.skin.value, "\"/>\n<path d=\"M17.588 41.984c-.158-1.97-.158-3.974-.158-5.884a46.698 46.698 0 0 1-.733-3.928 5.002 5.002 0 0 0 .89 9.812ZM18 45.094V64.52s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13v-9.91c-.48.022-.979.033-1.498.033-10.792 0-14.337-4.946-15.502-10.897Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<path d=\"M34.932 55.96c-.459.021-.935.032-1.43.032-7.248 0-11.227-2.231-13.412-5.5.503 4.823 3.162 8.493 8.293 8.493.49 0 .944.004 1.365.007 3.796.033 4.922.043 5.184-3.031Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>\n");
156
+ },
157
+ 'thin': function thin(components, colors) {
158
+ return "\n<path d=\"M45.887 36.1C45.887 45.021 42 55 35.5 56.5a14.512 14.512 0 0 1-.5-.062v9.433S31.357 68 26.5 68 18 64.523 18 64.523V42a5 5 0 0 1-1.303-9.829C15.36 22.643 17.51 13 32.002 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284Z\" fill=\"".concat(colors.skin.value, "\"/>\n<path d=\"M18 42.002v22.523s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13V56.44c-7.26-1.02-13.894-7.502-16.454-14.467-.18.02-.361.03-.546.03Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<path d=\"M16.697 32.172A5.002 5.002 0 0 0 18 42c.185 0 .367-.01.546-.03-.718-1.955-1.116-3.949-1.116-5.87a46.698 46.698 0 0 1-.733-3.928ZM34.696 56.392C27.951 55.3 21.79 49.53 19.001 43.105L19 43.5c0 5.654 6.267 14.474 9.383 15.487 2.568.835 5.397.657 6.313-2.594Z\" fill=\"#000\" fill-opacity=\".07\"/>\n<rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>\n");
159
+ }
154
160
  };
155
161
 
156
- const body$1 = {
157
- 'tShirt': (components, colors) => "\n<rect x=\"7\" y=\"60\" width=\"40\" height=\"23\" rx=\"9\" fill=\"".concat(colors.body.value, "\"/>\n"),
158
- 'golf': (components, colors) => "\n<rect x=\"7\" y=\"60\" width=\"40\" height=\"23\" rx=\"9\" fill=\"".concat(colors.body.value, "\"/>\n<path d=\"M17 58h19v3s-5 1-9.5 1-9.5-1-9.5-1v-3Z\" fill=\"").concat(colors.body.value, "\"/>\n<path d=\"M17 58h19v2s-3 1.5-9.5 1.5S17 60 17 60v-2Z\" fill=\"#000\" fill-opacity=\".2\"/>\n<path d=\"M16.5 59a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2s-5 1-10 1-10-1-10-1Z\" fill=\"").concat(colors.body.value, "\"/>\n")
162
+ var body$1 = {
163
+ 'tShirt': function tShirt(components, colors) {
164
+ return "\n<rect x=\"7\" y=\"60\" width=\"40\" height=\"23\" rx=\"9\" fill=\"".concat(colors.body.value, "\"/>\n");
165
+ },
166
+ 'golf': function golf(components, colors) {
167
+ return "\n<rect x=\"7\" y=\"60\" width=\"40\" height=\"23\" rx=\"9\" fill=\"".concat(colors.body.value, "\"/>\n<path d=\"M17 58h19v3s-5 1-9.5 1-9.5-1-9.5-1v-3Z\" fill=\"").concat(colors.body.value, "\"/>\n<path d=\"M17 58h19v2s-3 1.5-9.5 1.5S17 60 17 60v-2Z\" fill=\"#000\" fill-opacity=\".2\"/>\n<path d=\"M16.5 59a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2s-5 1-10 1-10-1-10-1Z\" fill=\"").concat(colors.body.value, "\"/>\n");
168
+ }
159
169
  };
160
170
 
161
- const hair$1 = {
162
- 'balndess': (components, colors) => "\n<g fill=\"".concat(colors.hair.value, "\">\n<rect x=\"14\" y=\"26\" width=\"9\" height=\"2\" rx=\"1\"/>\n<rect x=\"14\" y=\"33\" width=\"7\" height=\"2\" rx=\"1\"/>\n<rect x=\"12\" y=\"29\" width=\"13\" height=\"3\" rx=\"1.5\"/>\n</g>\n"),
163
- 'slaughter': (components, colors) => "\n<g fill=\"".concat(colors.hair.value, "\">\n<path d=\"M24 25c0 .53-.103 1.037-.29 1.5A4 4 0 0 1 20 32a4 4 0 0 1-8 0c0-1.046.065-2.782.368-4.321a4 4 0 0 1 4.801-5.505A4 4 0 0 1 24 25ZM45.849 33.895a4.002 4.002 0 0 0 2.785-5.393 4 4 0 0 0-3.134-5.459c.593 3.14.482 6.61.382 9.774l-.033 1.078Z\"/>\n</g>\n"),
164
- 'ponyTail': (components, colors) => "\n<path d=\"M0 10c7.997-7.997 13.002 3 13.002 3L11 21s-2 2.5 0 10-2.5 11.5-2.5 11.5-3.5 2.502-6.5.502c-3-2-3.397-3.922-3-7.5.5-4.5 2-3.002 2-7.502s-8.997-10.004-1-18Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"m13.03 13.181 5.508 2.382-3.572 8.26-5.507-2.38s-.96-1.943.54-4.942c1.497-3 3.032-3.32 3.032-3.32Z\" fill=\"#FF6C98\"/>\n<path d=\"m18 41-1.323-8.823A5 5 0 0 0 18 42v8.3a22.137 22.137 0 0 1-4.083-4.83c-1.7-2.704-2.888-5.804-3.482-9.093a27.526 27.526 0 0 1 .04-9.97c.62-3.283 1.833-6.37 3.556-9.055 1.722-2.684 3.915-4.903 6.43-6.506 2.514-1.604 5.292-2.555 8.147-2.789a17.03 17.03 0 0 1 1.868-.05 20.422 20.422 0 0 1 7.795 1.325c2.305.88 4.4 2.169 6.164 3.794a17.48 17.48 0 0 1 4.119 5.677A16.378 16.378 0 0 1 49.93 24H50v4.286s-.329.152-.998.366v8.488s0 1.404-1.5 2.456c-.52.365-1.218.645-1.91.856a32.6 32.6 0 0 0 .297-4.353c0-1.034.035-2.139.071-3.284.036-1.118.073-2.275.08-3.441-1.852.339-4.367.626-7.578.626C30.614 30 26 28.286 26 28.286v-.999c-.68 1.064-1.416 2.35-2 3.713-.75 1.75-.75 3.544-.75 5.051 0 1.508 0 2.73-.75 3.335C21 40.596 18 41 18 41Z\" fill=\"").concat(colors.hair.value, "\"/>\n"),
165
- 'long': (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M48 25a18 18 0 0 0-35.993-.5H12V65h11V34.597c2.485-.478 6.78-1.53 12.208-3.756 5.464-2.241 8.873-4.359 10.668-5.637.242 2.524.158 5.16.08 7.61-.036 1.146-.071 2.25-.071 3.285 0 .408-.008.818-.025 1.229.231-.073.447-.153.639-.24 1.5-.684 1.5-1.597 1.5-1.597V25H48Zm-33 8a4.98 4.98 0 0 0-1.62 2.087A5 5 0 0 0 15 41v-8Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
166
- 'curly': (components, colors) => "\n<g fill=\"".concat(colors.hair.value, "\">\n<path d=\"M45.967 32.483a3.999 3.999 0 0 0 1.78-4.884 4 4 0 0 0-2.966-7.41c1.418 3.674 1.314 8.218 1.186 12.294Z\"/>\n<path d=\"M36.297 22.76A4.981 4.981 0 0 1 33 24a4.978 4.978 0 0 1-3.057-1.043A6.978 6.978 0 0 1 25 25a6.999 6.999 0 0 1-2.045-.304 4.02 4.02 0 0 1-.892.731 4 4 0 0 1-1.351 6.189A1.5 1.5 0 0 1 19.465 34a4 4 0 0 1-7.291-3.17A3.987 3.987 0 0 1 11 28c0-1.106.449-2.107 1.174-2.83a4 4 0 0 1 .738-3.713 7.003 7.003 0 0 1 4.098-10.17 4 4 0 0 1 5.927-3.788A6.997 6.997 0 0 1 29 4c1.373 0 2.654.395 3.735 1.079a6.502 6.502 0 0 1 10.78 1.954 4 4 0 0 1 3.439 4.577C48.809 12.984 50 15.112 50 17.5c0 4.142-3.582 7.5-8 7.5-2.233 0-4.252-.858-5.703-2.24Z\"/>\n</g>\n"),
167
- 'stylish': (components, colors) => "\n<path d=\"M20.673 28.222v6.018c0 .762-.673 1.761-1.173 2.261-.5.5-2 1.5-2.85 1.5-.848 0-3.539-.451-4.826-2.257-1.287-1.805-.893-11.322 0-13.54.892-2.218 4.183-6.888 8.85-10.452 3.38-2.582 7.665-4.717 12.871-5.345C58.485 3.397 49.218 20.987 46 25.5c-5.5-2-9.5-2.5-16.717-1.518-7.217.983-8.016 1.982-8.61 4.239Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
168
- 'elvis': (components, colors) => "\n<path d=\"M21.998 28c-.629 3 1 6.982 1 7.744 0 .762-3.93 3.025-5 3.757-1.069.731-1.5-7-1.5-7-3 0-3.5 5.5-3.5 5.5s-2.244-.74-3-4.5c-.51-2.54.299-8.089.5-9.5.5-3.5 1-11.5 7.5-15.5s23-4 27-3c9.894 2.473 11.218 15.986 8 20.5-5 5.5-19-1-23.5-1s-6.87 0-7.5 3Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
169
- 'classic02': (components, colors) => "\n<path d=\"M28.118 27.466c7.796 1.142 21.48 3.147 22.882-9.464 1-9-12.5-19.5-27-10-9.11 1.35-11.389 8.278-11.908 14.254A3.986 3.986 0 0 0 11 25.002c0 .53.103 1.037.29 1.5-.187.463-.29.97-.29 1.5 0 1.106.449 2.106 1.174 2.83A4 4 0 1 0 20 32.002a4 4 0 0 0 3.874-4.999l.126-.001c.952 0 2.39.21 4.118.464Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
170
- 'classic01': (components, colors) => "\n<path d=\"M29.697 26.203c5.611 1.863 13.389 4.445 21.535-3.701 4-4-14-21-28.5-11.5-11.333 1.679-10.685 8.47-10.185 13.71.095 1.002.185 1.948.185 2.79 0 .533.07.931.2 1.218a26.48 26.48 0 0 0-.2 3.282 4 4 0 1 0 8 0A4 4 0 0 0 24.606 27l.126.002c1.224 0 2.32-.55 3.053-1.416.605.183 1.243.395 1.912.617Z\" fill=\"".concat(colors.hair.value, "\"/>\n")
171
+ var hair$1 = {
172
+ 'balndess': function balndess(components, colors) {
173
+ return "\n<g fill=\"".concat(colors.hair.value, "\">\n<rect x=\"14\" y=\"26\" width=\"9\" height=\"2\" rx=\"1\"/>\n<rect x=\"14\" y=\"33\" width=\"7\" height=\"2\" rx=\"1\"/>\n<rect x=\"12\" y=\"29\" width=\"13\" height=\"3\" rx=\"1.5\"/>\n</g>\n");
174
+ },
175
+ 'slaughter': function slaughter(components, colors) {
176
+ return "\n<g fill=\"".concat(colors.hair.value, "\">\n<path d=\"M24 25c0 .53-.103 1.037-.29 1.5A4 4 0 0 1 20 32a4 4 0 0 1-8 0c0-1.046.065-2.782.368-4.321a4 4 0 0 1 4.801-5.505A4 4 0 0 1 24 25ZM45.849 33.895a4.002 4.002 0 0 0 2.785-5.393 4 4 0 0 0-3.134-5.459c.593 3.14.482 6.61.382 9.774l-.033 1.078Z\"/>\n</g>\n");
177
+ },
178
+ 'ponyTail': function ponyTail(components, colors) {
179
+ return "\n<path d=\"M0 10c7.997-7.997 13.002 3 13.002 3L11 21s-2 2.5 0 10-2.5 11.5-2.5 11.5-3.5 2.502-6.5.502c-3-2-3.397-3.922-3-7.5.5-4.5 2-3.002 2-7.502s-8.997-10.004-1-18Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"m13.03 13.181 5.508 2.382-3.572 8.26-5.507-2.38s-.96-1.943.54-4.942c1.497-3 3.032-3.32 3.032-3.32Z\" fill=\"#FF6C98\"/>\n<path d=\"m18 41-1.323-8.823A5 5 0 0 0 18 42v8.3a22.137 22.137 0 0 1-4.083-4.83c-1.7-2.704-2.888-5.804-3.482-9.093a27.526 27.526 0 0 1 .04-9.97c.62-3.283 1.833-6.37 3.556-9.055 1.722-2.684 3.915-4.903 6.43-6.506 2.514-1.604 5.292-2.555 8.147-2.789a17.03 17.03 0 0 1 1.868-.05 20.422 20.422 0 0 1 7.795 1.325c2.305.88 4.4 2.169 6.164 3.794a17.48 17.48 0 0 1 4.119 5.677A16.378 16.378 0 0 1 49.93 24H50v4.286s-.329.152-.998.366v8.488s0 1.404-1.5 2.456c-.52.365-1.218.645-1.91.856a32.6 32.6 0 0 0 .297-4.353c0-1.034.035-2.139.071-3.284.036-1.118.073-2.275.08-3.441-1.852.339-4.367.626-7.578.626C30.614 30 26 28.286 26 28.286v-.999c-.68 1.064-1.416 2.35-2 3.713-.75 1.75-.75 3.544-.75 5.051 0 1.508 0 2.73-.75 3.335C21 40.596 18 41 18 41Z\" fill=\"").concat(colors.hair.value, "\"/>\n");
180
+ },
181
+ 'long': function long(components, colors) {
182
+ return "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M48 25a18 18 0 0 0-35.993-.5H12V65h11V34.597c2.485-.478 6.78-1.53 12.208-3.756 5.464-2.241 8.873-4.359 10.668-5.637.242 2.524.158 5.16.08 7.61-.036 1.146-.071 2.25-.071 3.285 0 .408-.008.818-.025 1.229.231-.073.447-.153.639-.24 1.5-.684 1.5-1.597 1.5-1.597V25H48Zm-33 8a4.98 4.98 0 0 0-1.62 2.087A5 5 0 0 0 15 41v-8Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
183
+ },
184
+ 'curly': function curly(components, colors) {
185
+ return "\n<g fill=\"".concat(colors.hair.value, "\">\n<path d=\"M45.967 32.483a3.999 3.999 0 0 0 1.78-4.884 4 4 0 0 0-2.966-7.41c1.418 3.674 1.314 8.218 1.186 12.294Z\"/>\n<path d=\"M36.297 22.76A4.981 4.981 0 0 1 33 24a4.978 4.978 0 0 1-3.057-1.043A6.978 6.978 0 0 1 25 25a6.999 6.999 0 0 1-2.045-.304 4.02 4.02 0 0 1-.892.731 4 4 0 0 1-1.351 6.189A1.5 1.5 0 0 1 19.465 34a4 4 0 0 1-7.291-3.17A3.987 3.987 0 0 1 11 28c0-1.106.449-2.107 1.174-2.83a4 4 0 0 1 .738-3.713 7.003 7.003 0 0 1 4.098-10.17 4 4 0 0 1 5.927-3.788A6.997 6.997 0 0 1 29 4c1.373 0 2.654.395 3.735 1.079a6.502 6.502 0 0 1 10.78 1.954 4 4 0 0 1 3.439 4.577C48.809 12.984 50 15.112 50 17.5c0 4.142-3.582 7.5-8 7.5-2.233 0-4.252-.858-5.703-2.24Z\"/>\n</g>\n");
186
+ },
187
+ 'stylish': function stylish(components, colors) {
188
+ return "\n<path d=\"M20.673 28.222v6.018c0 .762-.673 1.761-1.173 2.261-.5.5-2 1.5-2.85 1.5-.848 0-3.539-.451-4.826-2.257-1.287-1.805-.893-11.322 0-13.54.892-2.218 4.183-6.888 8.85-10.452 3.38-2.582 7.665-4.717 12.871-5.345C58.485 3.397 49.218 20.987 46 25.5c-5.5-2-9.5-2.5-16.717-1.518-7.217.983-8.016 1.982-8.61 4.239Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
189
+ },
190
+ 'elvis': function elvis(components, colors) {
191
+ return "\n<path d=\"M21.998 28c-.629 3 1 6.982 1 7.744 0 .762-3.93 3.025-5 3.757-1.069.731-1.5-7-1.5-7-3 0-3.5 5.5-3.5 5.5s-2.244-.74-3-4.5c-.51-2.54.299-8.089.5-9.5.5-3.5 1-11.5 7.5-15.5s23-4 27-3c9.894 2.473 11.218 15.986 8 20.5-5 5.5-19-1-23.5-1s-6.87 0-7.5 3Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
192
+ },
193
+ 'classic02': function classic02(components, colors) {
194
+ return "\n<path d=\"M28.118 27.466c7.796 1.142 21.48 3.147 22.882-9.464 1-9-12.5-19.5-27-10-9.11 1.35-11.389 8.278-11.908 14.254A3.986 3.986 0 0 0 11 25.002c0 .53.103 1.037.29 1.5-.187.463-.29.97-.29 1.5 0 1.106.449 2.106 1.174 2.83A4 4 0 1 0 20 32.002a4 4 0 0 0 3.874-4.999l.126-.001c.952 0 2.39.21 4.118.464Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
195
+ },
196
+ 'classic01': function classic01(components, colors) {
197
+ return "\n<path d=\"M29.697 26.203c5.611 1.863 13.389 4.445 21.535-3.701 4-4-14-21-28.5-11.5-11.333 1.679-10.685 8.47-10.185 13.71.095 1.002.185 1.948.185 2.79 0 .533.07.931.2 1.218a26.48 26.48 0 0 0-.2 3.282 4 4 0 1 0 8 0A4 4 0 0 0 24.606 27l.126.002c1.224 0 2.32-.55 3.053-1.416.605.183 1.243.395 1.912.617Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
198
+ }
171
199
  };
172
200
 
173
- const mouth = {
174
- 'default': (components, colors) => "\n<path d=\"M27.93 46a1 1 0 0 1 1-1h9.142a1 1 0 0 1 1 1 5 5 0 0 1-5 5H32.93a5 5 0 0 1-5-5Z\" fill=\"#66253C\"/>\n<path d=\"M35.756 50.708a4.992 4.992 0 0 1-1.684.29H32.93a5 5 0 0 1-4.996-4.8c.764-.285 1.898-.253 3.017-.22.356.01.71.02 1.05.02 2.21 0 4 1.568 4 3.5 0 .426-.087.833-.245 1.21Z\" fill=\"#B03E67\"/>\n<path d=\"M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z\" fill=\"#fff\"/>\n",
175
- 'missingTooth': (components, colors) => "\n<path d=\"M27.93 46a1 1 0 0 1 1-1h9.142a1 1 0 0 1 1 1 5 5 0 0 1-5 5H32.93a5 5 0 0 1-5-5Z\" fill=\"#66253C\"/>\n<path d=\"M35.756 50.708a4.992 4.992 0 0 1-1.684.29H32.93a5 5 0 0 1-4.996-4.8c.764-.285 1.898-.253 3.017-.22.356.01.71.02 1.05.02 2.21 0 4 1.568 4 3.5 0 .426-.087.833-.245 1.21Z\" fill=\"#B03E67\"/>\n<path d=\"M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z\" fill=\"#fff\"/>\n<path d=\"M31 45.3a.3.3 0 0 1 .3-.3h1.4a.3.3 0 0 1 .3.3v2.4a.3.3 0 0 1-.3.3h-1.4a.3.3 0 0 1-.3-.3v-2.4Z\" fill=\"#B03E67\"/>\n"
201
+ var mouth = {
202
+ 'default': function _default(components, colors) {
203
+ return "\n<path d=\"M27.93 46a1 1 0 0 1 1-1h9.142a1 1 0 0 1 1 1 5 5 0 0 1-5 5H32.93a5 5 0 0 1-5-5Z\" fill=\"#66253C\"/>\n<path d=\"M35.756 50.708a4.992 4.992 0 0 1-1.684.29H32.93a5 5 0 0 1-4.996-4.8c.764-.285 1.898-.253 3.017-.22.356.01.71.02 1.05.02 2.21 0 4 1.568 4 3.5 0 .426-.087.833-.245 1.21Z\" fill=\"#B03E67\"/>\n<path d=\"M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z\" fill=\"#fff\"/>\n";
204
+ },
205
+ 'missingTooth': function missingTooth(components, colors) {
206
+ return "\n<path d=\"M27.93 46a1 1 0 0 1 1-1h9.142a1 1 0 0 1 1 1 5 5 0 0 1-5 5H32.93a5 5 0 0 1-5-5Z\" fill=\"#66253C\"/>\n<path d=\"M35.756 50.708a4.992 4.992 0 0 1-1.684.29H32.93a5 5 0 0 1-4.996-4.8c.764-.285 1.898-.253 3.017-.22.356.01.71.02 1.05.02 2.21 0 4 1.568 4 3.5 0 .426-.087.833-.245 1.21Z\" fill=\"#B03E67\"/>\n<path d=\"M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z\" fill=\"#fff\"/>\n<path d=\"M31 45.3a.3.3 0 0 1 .3-.3h1.4a.3.3 0 0 1 .3.3v2.4a.3.3 0 0 1-.3.3h-1.4a.3.3 0 0 1-.3-.3v-2.4Z\" fill=\"#B03E67\"/>\n";
207
+ }
176
208
  };
177
209
 
178
- const eyes = {
179
- 'normal': (components, colors) => {
210
+ var eyes = {
211
+ 'normal': function normal(components, colors) {
180
212
  var _components$blushes$v, _components$blushes;
181
213
 
182
214
  return "\n<g fill=\"".concat(colors.hair.value, "\">\n<rect x=\"30\" y=\"36\" width=\"3\" height=\"4\" rx=\"1.5\"/>\n<rect x=\"40\" y=\"36\" width=\"3\" height=\"4\" rx=\"1.5\"/>\n</g>\n<g>\n").concat((_components$blushes$v = (_components$blushes = components.blushes) === null || _components$blushes === void 0 ? void 0 : _components$blushes.value(components, colors)) !== null && _components$blushes$v !== void 0 ? _components$blushes$v : '', "\n</g>\n");
183
215
  },
184
- 'confident': (components, colors) => {
216
+ 'confident': function confident(components, colors) {
185
217
  var _components$blushes$v2, _components$blushes2;
186
218
 
187
219
  return "\n<g>\n".concat((_components$blushes$v2 = (_components$blushes2 = components.blushes) === null || _components$blushes2 === void 0 ? void 0 : _components$blushes2.value(components, colors)) !== null && _components$blushes$v2 !== void 0 ? _components$blushes$v2 : '', "\n</g>\n<path d=\"M43 37.5a1.5 1.5 0 0 1-3 0v-1.227c0-.15.122-.273.273-.273h2.454c.15 0 .273.122.273.273V37.5ZM33 37.5a1.5 1.5 0 0 1-3 0v-1.227c0-.15.122-.273.273-.273h2.454c.15 0 .273.122.273.273V37.5Z\" fill=\"").concat(colors.hair.value, "\"/>\n<path stroke=\"").concat(colors.hair.value, "\" stroke-linecap=\"round\" d=\"M29.5 36.5h4M39.5 36.5h4\"/>\n");
188
220
  },
189
- 'happy': (components, colors) => {
221
+ 'happy': function happy(components, colors) {
190
222
  var _components$blushes$v3, _components$blushes3;
191
223
 
192
224
  return "\n<g>\n".concat((_components$blushes$v3 = (_components$blushes3 = components.blushes) === null || _components$blushes3 === void 0 ? void 0 : _components$blushes3.value(components, colors)) !== null && _components$blushes$v3 !== void 0 ? _components$blushes$v3 : '', "\n</g>\n<g fill=\"#1B0B47\">\n<path d=\"M30 37.5a1.5 1.5 0 0 1 3 0v1.227c0 .15-.122.273-.273.273h-2.454a.273.273 0 0 1-.273-.273V37.5ZM40 37.5a1.5 1.5 0 0 1 3 0v1.227c0 .15-.122.273-.273.273h-2.454a.273.273 0 0 1-.273-.273V37.5Z\"/>\n</g>\n");
193
225
  }
194
226
  };
195
227
 
196
- const glasses = {
197
- 'normal': (components, colors) => "\n<g stroke=\"#000\" stroke-width=\"2\">\n<circle cx=\"30.269\" cy=\"36.269\" r=\"4.269\"/>\n<circle cx=\"44.269\" cy=\"36.269\" r=\"4.269\"/>\n<path d=\"m33.985 35.106 7-.104\"/>\n</g>\n"
228
+ var glasses = {
229
+ 'normal': function normal(components, colors) {
230
+ return "\n<g stroke=\"#000\" stroke-width=\"2\">\n<circle cx=\"30.269\" cy=\"36.269\" r=\"4.269\"/>\n<circle cx=\"44.269\" cy=\"36.269\" r=\"4.269\"/>\n<path d=\"m33.985 35.106 7-.104\"/>\n</g>\n";
231
+ }
198
232
  };
199
233
 
200
- const mustache = {
201
- 'pencilThinBeard': (components, colors) => "\n<g fill=\"".concat(colors.hair.value, "\">\n<path d=\"M26.5 45s4.5-.5 11-2v2c-1.5.667-5.5 1.6-7.5 2-2.5.5-3.5-2-3.5-2ZM48 44.756S44 44 38 43v2c1.429.585 4.595 1.149 6.5 1.5 2.381.439 3.5-1.744 3.5-1.744ZM33.31 55.242A1 1 0 0 1 34.28 54h3.44a1 1 0 0 1 .97 1.242l-.25 1a1 1 0 0 1-.97.758h-2.94a1 1 0 0 1-.97-.758l-.25-1Z\"/>\n</g>\n"),
202
- 'pencilThin': (components, colors) => "\n<g fill=\"#1B0B47\">\n<path d=\"M37.5 43c-6.5 1.5-11 2-11 2s1 2.5 3.5 2c2-.4 6-1.333 7.5-2v-2ZM38 43c6 1 10 1.756 10 1.756s-1.119 2.183-3.5 1.744l-.32-.059C42.256 46.088 39.35 45.553 38 45v-2Z\"/>\n</g>\n",
203
- 'horshoe': (components, colors) => "\n<path d=\"M27 46a3 3 0 0 1 3-3h11a3 3 0 0 1 3 3v11a4 4 0 0 1-4-4v-7h-9v7a4 4 0 0 1-4 4V46Z\" fill=\"".concat(colors.hair.value, "\"/>\n"),
204
- 'freddy': (components, colors) => "\n<path d=\"M28 46a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3H28Z\" fill=\"".concat(colors.hair.value, "\"/>\n")
234
+ var mustache = {
235
+ 'pencilThinBeard': function pencilThinBeard(components, colors) {
236
+ return "\n<g fill=\"".concat(colors.hair.value, "\">\n<path d=\"M26.5 45s4.5-.5 11-2v2c-1.5.667-5.5 1.6-7.5 2-2.5.5-3.5-2-3.5-2ZM48 44.756S44 44 38 43v2c1.429.585 4.595 1.149 6.5 1.5 2.381.439 3.5-1.744 3.5-1.744ZM33.31 55.242A1 1 0 0 1 34.28 54h3.44a1 1 0 0 1 .97 1.242l-.25 1a1 1 0 0 1-.97.758h-2.94a1 1 0 0 1-.97-.758l-.25-1Z\"/>\n</g>\n");
237
+ },
238
+ 'pencilThin': function pencilThin(components, colors) {
239
+ return "\n<g fill=\"#1B0B47\">\n<path d=\"M37.5 43c-6.5 1.5-11 2-11 2s1 2.5 3.5 2c2-.4 6-1.333 7.5-2v-2ZM38 43c6 1 10 1.756 10 1.756s-1.119 2.183-3.5 1.744l-.32-.059C42.256 46.088 39.35 45.553 38 45v-2Z\"/>\n</g>\n";
240
+ },
241
+ 'horshoe': function horshoe(components, colors) {
242
+ return "\n<path d=\"M27 46a3 3 0 0 1 3-3h11a3 3 0 0 1 3 3v11a4 4 0 0 1-4-4v-7h-9v7a4 4 0 0 1-4 4V46Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
243
+ },
244
+ 'freddy': function freddy(components, colors) {
245
+ return "\n<path d=\"M28 46a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3H28Z\" fill=\"".concat(colors.hair.value, "\"/>\n");
246
+ }
205
247
  };
206
248
 
207
- const blushes = {
208
- 'default': (components, colors) => "\n<g fill=\"#FF859B\">\n<rect x=\"24\" y=\"39\" width=\"5\" height=\"3\" rx=\"1.5\"/>\n<rect x=\"43\" y=\"39\" width=\"4\" height=\"3\" rx=\"1.5\"/>\n</g>\n"
249
+ var blushes = {
250
+ 'default': function _default(components, colors) {
251
+ return "\n<g fill=\"#FF859B\">\n<rect x=\"24\" y=\"39\" width=\"5\" height=\"3\" rx=\"1.5\"/>\n<rect x=\"43\" y=\"39\" width=\"4\" height=\"3\" rx=\"1.5\"/>\n</g>\n";
252
+ }
209
253
  };
210
254
 
211
255
  var components = /*#__PURE__*/Object.freeze({
@@ -221,9 +265,9 @@ var components = /*#__PURE__*/Object.freeze({
221
265
  });
222
266
 
223
267
  function pickComponent(prng, group) {
224
- let values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
225
- const componentCollection = components;
226
- const key = prng.pick(values);
268
+ var values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
269
+ var componentCollection = components;
270
+ var key = prng.pick(values);
227
271
 
228
272
  if (componentCollection[group][key]) {
229
273
  return {
@@ -235,19 +279,19 @@ function pickComponent(prng, group) {
235
279
  }
236
280
  }
237
281
 
238
- const skin = {
282
+ var skin = {
239
283
  'yellow': 'rgba(255, 203, 126, 1)',
240
284
  'white': 'rgba(245, 208, 197, 1)',
241
285
  'dark': 'rgba(131, 96, 85, 1)'
242
286
  };
243
287
 
244
- const hair = {
288
+ var hair = {
245
289
  'brown': 'rgba(71, 40, 11, 1)',
246
290
  'black': 'rgba(27, 11, 71, 1)',
247
291
  'red': 'rgba(173, 58, 32, 1)'
248
292
  };
249
293
 
250
- const body = {
294
+ var body = {
251
295
  'orange': 'rgba(224, 90, 51, 1)',
252
296
  'blue': 'rgba(54, 51, 224, 1)',
253
297
  'pink': 'rgba(255, 77, 216, 1)'
@@ -263,20 +307,34 @@ var colors = /*#__PURE__*/Object.freeze({
263
307
  function pickColor(prng, group, values) {
264
308
  var _colorCollection$grou;
265
309
 
266
- const colorCollection = colors;
310
+ var colorCollection = colors;
267
311
 
268
312
  if (values.length === 0) {
269
313
  values.push('transparent');
270
314
  }
271
315
 
272
- const key = prng.pick(values);
316
+ var key = prng.pick(values);
273
317
  return {
274
318
  name: key,
275
319
  value: (_colorCollection$grou = colorCollection[group][key]) !== null && _colorCollection$grou !== void 0 ? _colorCollection$grou : key
276
320
  };
277
321
  }
278
322
 
279
- const style = {
323
+ function onPreCreate(_ref) {// Write your modifications here
324
+
325
+ _ref.prng;
326
+ _ref.options;
327
+ }
328
+
329
+ function onPostCreate(_ref) {// Write your modifications here
330
+
331
+ _ref.prng;
332
+ _ref.options;
333
+ _ref.components;
334
+ _ref.colors;
335
+ }
336
+
337
+ var style = {
280
338
  meta: {
281
339
  title: 'Miniavs - Free Avatar Creator',
282
340
  creator: 'Webpixels',
@@ -287,22 +345,24 @@ const style = {
287
345
  }
288
346
  },
289
347
  schema: schema$1,
290
- create: _ref => {
348
+ create: function create(_ref) {
291
349
  var _options$skinColor, _options$hairColor, _options$bodyColor, _components$head$valu, _components$head, _components$body$valu, _components$body, _components$hair$valu, _components$hair, _components$mouth$val, _components$mouth, _components$eyes$valu, _components$eyes, _components$glasses$v, _components$glasses, _components$mustache$, _components$mustache;
292
350
 
293
- let {
294
- prng,
295
- options
296
- } = _ref;
297
- const headComponent = pickComponent(prng, 'head', options.head);
298
- const bodyComponent = pickComponent(prng, 'body', options.body);
299
- const hairComponent = pickComponent(prng, 'hair', options.hair);
300
- const mouthComponent = pickComponent(prng, 'mouth', options.mouth);
301
- const eyesComponent = pickComponent(prng, 'eyes', options.eyes);
302
- const glassesComponent = pickComponent(prng, 'glasses', options.glasses);
303
- const mustacheComponent = pickComponent(prng, 'mustache', options.mustache);
304
- const blushesComponent = pickComponent(prng, 'blushes', options.blushes);
305
- const components = {
351
+ var prng = _ref.prng,
352
+ options = _ref.options;
353
+ onPreCreate({
354
+ prng: prng,
355
+ options: options
356
+ });
357
+ var headComponent = pickComponent(prng, 'head', options.head);
358
+ var bodyComponent = pickComponent(prng, 'body', options.body);
359
+ var hairComponent = pickComponent(prng, 'hair', options.hair);
360
+ var mouthComponent = pickComponent(prng, 'mouth', options.mouth);
361
+ var eyesComponent = pickComponent(prng, 'eyes', options.eyes);
362
+ var glassesComponent = pickComponent(prng, 'glasses', options.glasses);
363
+ var mustacheComponent = pickComponent(prng, 'mustache', options.mustache);
364
+ var blushesComponent = pickComponent(prng, 'blushes', options.blushes);
365
+ var components = {
306
366
  'head': headComponent,
307
367
  'body': bodyComponent,
308
368
  'hair': hairComponent,
@@ -312,11 +372,17 @@ const style = {
312
372
  'mustache': prng.bool(options.mustacheProbability) ? mustacheComponent : undefined,
313
373
  'blushes': prng.bool(options.blushesProbability) ? blushesComponent : undefined
314
374
  };
315
- const colors = {
375
+ var colors = {
316
376
  'skin': pickColor(prng, 'skin', (_options$skinColor = options.skinColor) !== null && _options$skinColor !== void 0 ? _options$skinColor : []),
317
377
  'hair': pickColor(prng, 'hair', (_options$hairColor = options.hairColor) !== null && _options$hairColor !== void 0 ? _options$hairColor : []),
318
378
  'body': pickColor(prng, 'body', (_options$bodyColor = options.bodyColor) !== null && _options$bodyColor !== void 0 ? _options$bodyColor : [])
319
379
  };
380
+ onPostCreate({
381
+ prng: prng,
382
+ options: options,
383
+ components: components,
384
+ colors: colors
385
+ });
320
386
  return {
321
387
  attributes: {
322
388
  viewBox: '0 0 64 64',
@@ -337,11 +403,9 @@ const style = {
337
403
  * Source: https://www.figma.com/community/file/923211396597067458
338
404
  * License: https://creativecommons.org/licenses/by/4.0/
339
405
  */
340
- let {
341
- create,
342
- meta,
343
- schema
344
- } = style;
406
+ var create = style.create,
407
+ meta = style.meta,
408
+ schema = style.schema;
345
409
  /** @deprecated will be removed in Version 5.0 */
346
410
 
347
411
  var index = avatars.utils.style.createLegacyWrapper(style);
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(a,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@dicebear/avatars")):"function"==typeof define&&define.amd?define(["exports","@dicebear/avatars"],e):e(((a="undefined"!=typeof globalThis?globalThis:a||self).DiceBear=a.DiceBear||{},a.DiceBear.Miniavs={}),a.DiceBear)}(this,(function(a,e){"use strict";var l=Object.freeze({__proto__:null,head:{normal:(a,e)=>'\n<path d="M45.887 36.1c0 8.5-1.257 18.859-10.887 19.82v9.95S31.357 68 26.5 68 18 64.523 18 64.523V42a5 5 0 0 1-1.303-9.829C15.36 22.643 17.51 13 32.002 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284Z" fill="'.concat(e.skin.value,'"/>\n<path d="M35 55.92c-.478.048-.978.072-1.498.072-8.883 0-13.9-7.153-15.502-14.605v23.135s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13V55.92Z" fill="#000" fill-opacity=".07"/>\n<path d="M34.629 55.952c-.364.026-.74.04-1.128.04-6.53 0-10.97-3.866-13.501-8.875v.424l.001.695c0 5.385 2.614 9.75 8.276 9.75.484 0 .932.004 1.348.007 3.346.028 4.59.038 5.004-2.041ZM16.697 32.172A5.002 5.002 0 0 0 18 42c.047 0 .093 0 .14-.002a25.38 25.38 0 0 1-.71-5.898 46.698 46.698 0 0 1-.733-3.928Z" fill="#000" fill-opacity=".07"/>\n<rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>\n'),wide:(a,e)=>'\n<path d="M46.07 40.409c.47 7.492.939 14.986-11.07 15.55v9.912S31.357 68 26.5 68 18 64.523 18 64.523V45.096a27.765 27.765 0 0 1-.412-3.113 5 5 0 0 1-.89-9.812C15.36 22.643 17.508 13 32.001 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284 0 1.403.091 2.856.183 4.31Z" fill="'.concat(e.skin.value,'"/>\n<path d="M17.588 41.984c-.158-1.97-.158-3.974-.158-5.884a46.698 46.698 0 0 1-.733-3.928 5.002 5.002 0 0 0 .89 9.812ZM18 45.094V64.52s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13v-9.91c-.48.022-.979.033-1.498.033-10.792 0-14.337-4.946-15.502-10.897Z" fill="#000" fill-opacity=".07"/>\n<path d="M34.932 55.96c-.459.021-.935.032-1.43.032-7.248 0-11.227-2.231-13.412-5.5.503 4.823 3.162 8.493 8.293 8.493.49 0 .944.004 1.365.007 3.796.033 4.922.043 5.184-3.031Z" fill="#000" fill-opacity=".07"/>\n<rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>\n'),thin:(a,e)=>'\n<path d="M45.887 36.1C45.887 45.021 42 55 35.5 56.5a14.512 14.512 0 0 1-.5-.062v9.433S31.357 68 26.5 68 18 64.523 18 64.523V42a5 5 0 0 1-1.303-9.829C15.36 22.643 17.51 13 32.002 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284Z" fill="'.concat(e.skin.value,'"/>\n<path d="M18 42.002v22.523s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13V56.44c-7.26-1.02-13.894-7.502-16.454-14.467-.18.02-.361.03-.546.03Z" fill="#000" fill-opacity=".07"/>\n<path d="M16.697 32.172A5.002 5.002 0 0 0 18 42c.185 0 .367-.01.546-.03-.718-1.955-1.116-3.949-1.116-5.87a46.698 46.698 0 0 1-.733-3.928ZM34.696 56.392C27.951 55.3 21.79 49.53 19.001 43.105L19 43.5c0 5.654 6.267 14.474 9.383 15.487 2.568.835 5.397.657 6.313-2.594Z" fill="#000" fill-opacity=".07"/>\n<rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>\n')},body:{tShirt:(a,e)=>'\n<rect x="7" y="60" width="40" height="23" rx="9" fill="'.concat(e.body.value,'"/>\n'),golf:(a,e)=>'\n<rect x="7" y="60" width="40" height="23" rx="9" fill="'.concat(e.body.value,'"/>\n<path d="M17 58h19v3s-5 1-9.5 1-9.5-1-9.5-1v-3Z" fill="').concat(e.body.value,'"/>\n<path d="M17 58h19v2s-3 1.5-9.5 1.5S17 60 17 60v-2Z" fill="#000" fill-opacity=".2"/>\n<path d="M16.5 59a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2s-5 1-10 1-10-1-10-1Z" fill="').concat(e.body.value,'"/>\n')},hair:{balndess:(a,e)=>'\n<g fill="'.concat(e.hair.value,'">\n<rect x="14" y="26" width="9" height="2" rx="1"/>\n<rect x="14" y="33" width="7" height="2" rx="1"/>\n<rect x="12" y="29" width="13" height="3" rx="1.5"/>\n</g>\n'),slaughter:(a,e)=>'\n<g fill="'.concat(e.hair.value,'">\n<path d="M24 25c0 .53-.103 1.037-.29 1.5A4 4 0 0 1 20 32a4 4 0 0 1-8 0c0-1.046.065-2.782.368-4.321a4 4 0 0 1 4.801-5.505A4 4 0 0 1 24 25ZM45.849 33.895a4.002 4.002 0 0 0 2.785-5.393 4 4 0 0 0-3.134-5.459c.593 3.14.482 6.61.382 9.774l-.033 1.078Z"/>\n</g>\n'),ponyTail:(a,e)=>'\n<path d="M0 10c7.997-7.997 13.002 3 13.002 3L11 21s-2 2.5 0 10-2.5 11.5-2.5 11.5-3.5 2.502-6.5.502c-3-2-3.397-3.922-3-7.5.5-4.5 2-3.002 2-7.502s-8.997-10.004-1-18Z" fill="'.concat(e.hair.value,'"/>\n<path d="m13.03 13.181 5.508 2.382-3.572 8.26-5.507-2.38s-.96-1.943.54-4.942c1.497-3 3.032-3.32 3.032-3.32Z" fill="#FF6C98"/>\n<path d="m18 41-1.323-8.823A5 5 0 0 0 18 42v8.3a22.137 22.137 0 0 1-4.083-4.83c-1.7-2.704-2.888-5.804-3.482-9.093a27.526 27.526 0 0 1 .04-9.97c.62-3.283 1.833-6.37 3.556-9.055 1.722-2.684 3.915-4.903 6.43-6.506 2.514-1.604 5.292-2.555 8.147-2.789a17.03 17.03 0 0 1 1.868-.05 20.422 20.422 0 0 1 7.795 1.325c2.305.88 4.4 2.169 6.164 3.794a17.48 17.48 0 0 1 4.119 5.677A16.378 16.378 0 0 1 49.93 24H50v4.286s-.329.152-.998.366v8.488s0 1.404-1.5 2.456c-.52.365-1.218.645-1.91.856a32.6 32.6 0 0 0 .297-4.353c0-1.034.035-2.139.071-3.284.036-1.118.073-2.275.08-3.441-1.852.339-4.367.626-7.578.626C30.614 30 26 28.286 26 28.286v-.999c-.68 1.064-1.416 2.35-2 3.713-.75 1.75-.75 3.544-.75 5.051 0 1.508 0 2.73-.75 3.335C21 40.596 18 41 18 41Z" fill="').concat(e.hair.value,'"/>\n'),long:(a,e)=>'\n<path fill-rule="evenodd" clip-rule="evenodd" d="M48 25a18 18 0 0 0-35.993-.5H12V65h11V34.597c2.485-.478 6.78-1.53 12.208-3.756 5.464-2.241 8.873-4.359 10.668-5.637.242 2.524.158 5.16.08 7.61-.036 1.146-.071 2.25-.071 3.285 0 .408-.008.818-.025 1.229.231-.073.447-.153.639-.24 1.5-.684 1.5-1.597 1.5-1.597V25H48Zm-33 8a4.98 4.98 0 0 0-1.62 2.087A5 5 0 0 0 15 41v-8Z" fill="'.concat(e.hair.value,'"/>\n'),curly:(a,e)=>'\n<g fill="'.concat(e.hair.value,'">\n<path d="M45.967 32.483a3.999 3.999 0 0 0 1.78-4.884 4 4 0 0 0-2.966-7.41c1.418 3.674 1.314 8.218 1.186 12.294Z"/>\n<path d="M36.297 22.76A4.981 4.981 0 0 1 33 24a4.978 4.978 0 0 1-3.057-1.043A6.978 6.978 0 0 1 25 25a6.999 6.999 0 0 1-2.045-.304 4.02 4.02 0 0 1-.892.731 4 4 0 0 1-1.351 6.189A1.5 1.5 0 0 1 19.465 34a4 4 0 0 1-7.291-3.17A3.987 3.987 0 0 1 11 28c0-1.106.449-2.107 1.174-2.83a4 4 0 0 1 .738-3.713 7.003 7.003 0 0 1 4.098-10.17 4 4 0 0 1 5.927-3.788A6.997 6.997 0 0 1 29 4c1.373 0 2.654.395 3.735 1.079a6.502 6.502 0 0 1 10.78 1.954 4 4 0 0 1 3.439 4.577C48.809 12.984 50 15.112 50 17.5c0 4.142-3.582 7.5-8 7.5-2.233 0-4.252-.858-5.703-2.24Z"/>\n</g>\n'),stylish:(a,e)=>'\n<path d="M20.673 28.222v6.018c0 .762-.673 1.761-1.173 2.261-.5.5-2 1.5-2.85 1.5-.848 0-3.539-.451-4.826-2.257-1.287-1.805-.893-11.322 0-13.54.892-2.218 4.183-6.888 8.85-10.452 3.38-2.582 7.665-4.717 12.871-5.345C58.485 3.397 49.218 20.987 46 25.5c-5.5-2-9.5-2.5-16.717-1.518-7.217.983-8.016 1.982-8.61 4.239Z" fill="'.concat(e.hair.value,'"/>\n'),elvis:(a,e)=>'\n<path d="M21.998 28c-.629 3 1 6.982 1 7.744 0 .762-3.93 3.025-5 3.757-1.069.731-1.5-7-1.5-7-3 0-3.5 5.5-3.5 5.5s-2.244-.74-3-4.5c-.51-2.54.299-8.089.5-9.5.5-3.5 1-11.5 7.5-15.5s23-4 27-3c9.894 2.473 11.218 15.986 8 20.5-5 5.5-19-1-23.5-1s-6.87 0-7.5 3Z" fill="'.concat(e.hair.value,'"/>\n'),classic02:(a,e)=>'\n<path d="M28.118 27.466c7.796 1.142 21.48 3.147 22.882-9.464 1-9-12.5-19.5-27-10-9.11 1.35-11.389 8.278-11.908 14.254A3.986 3.986 0 0 0 11 25.002c0 .53.103 1.037.29 1.5-.187.463-.29.97-.29 1.5 0 1.106.449 2.106 1.174 2.83A4 4 0 1 0 20 32.002a4 4 0 0 0 3.874-4.999l.126-.001c.952 0 2.39.21 4.118.464Z" fill="'.concat(e.hair.value,'"/>\n'),classic01:(a,e)=>'\n<path d="M29.697 26.203c5.611 1.863 13.389 4.445 21.535-3.701 4-4-14-21-28.5-11.5-11.333 1.679-10.685 8.47-10.185 13.71.095 1.002.185 1.948.185 2.79 0 .533.07.931.2 1.218a26.48 26.48 0 0 0-.2 3.282 4 4 0 1 0 8 0A4 4 0 0 0 24.606 27l.126.002c1.224 0 2.32-.55 3.053-1.416.605.183 1.243.395 1.912.617Z" fill="'.concat(e.hair.value,'"/>\n')},mouth:{default:(a,e)=>'\n<path d="M27.93 46a1 1 0 0 1 1-1h9.142a1 1 0 0 1 1 1 5 5 0 0 1-5 5H32.93a5 5 0 0 1-5-5Z" fill="#66253C"/>\n<path d="M35.756 50.708a4.992 4.992 0 0 1-1.684.29H32.93a5 5 0 0 1-4.996-4.8c.764-.285 1.898-.253 3.017-.22.356.01.71.02 1.05.02 2.21 0 4 1.568 4 3.5 0 .426-.087.833-.245 1.21Z" fill="#B03E67"/>\n<path d="M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z" fill="#fff"/>\n',missingTooth:(a,e)=>'\n<path d="M27.93 46a1 1 0 0 1 1-1h9.142a1 1 0 0 1 1 1 5 5 0 0 1-5 5H32.93a5 5 0 0 1-5-5Z" fill="#66253C"/>\n<path d="M35.756 50.708a4.992 4.992 0 0 1-1.684.29H32.93a5 5 0 0 1-4.996-4.8c.764-.285 1.898-.253 3.017-.22.356.01.71.02 1.05.02 2.21 0 4 1.568 4 3.5 0 .426-.087.833-.245 1.21Z" fill="#B03E67"/>\n<path d="M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z" fill="#fff"/>\n<path d="M31 45.3a.3.3 0 0 1 .3-.3h1.4a.3.3 0 0 1 .3.3v2.4a.3.3 0 0 1-.3.3h-1.4a.3.3 0 0 1-.3-.3v-2.4Z" fill="#B03E67"/>\n'},eyes:{normal:(a,e)=>{var l,t;return'\n<g fill="'.concat(e.hair.value,'">\n<rect x="30" y="36" width="3" height="4" rx="1.5"/>\n<rect x="40" y="36" width="3" height="4" rx="1.5"/>\n</g>\n<g>\n').concat(null!==(l=null===(t=a.blushes)||void 0===t?void 0:t.value(a,e))&&void 0!==l?l:"","\n</g>\n")},confident:(a,e)=>{var l,t;return"\n<g>\n".concat(null!==(l=null===(t=a.blushes)||void 0===t?void 0:t.value(a,e))&&void 0!==l?l:"",'\n</g>\n<path d="M43 37.5a1.5 1.5 0 0 1-3 0v-1.227c0-.15.122-.273.273-.273h2.454c.15 0 .273.122.273.273V37.5ZM33 37.5a1.5 1.5 0 0 1-3 0v-1.227c0-.15.122-.273.273-.273h2.454c.15 0 .273.122.273.273V37.5Z" fill="').concat(e.hair.value,'"/>\n<path stroke="').concat(e.hair.value,'" stroke-linecap="round" d="M29.5 36.5h4M39.5 36.5h4"/>\n')},happy:(a,e)=>{var l,t;return"\n<g>\n".concat(null!==(l=null===(t=a.blushes)||void 0===t?void 0:t.value(a,e))&&void 0!==l?l:"",'\n</g>\n<g fill="#1B0B47">\n<path d="M30 37.5a1.5 1.5 0 0 1 3 0v1.227c0 .15-.122.273-.273.273h-2.454a.273.273 0 0 1-.273-.273V37.5ZM40 37.5a1.5 1.5 0 0 1 3 0v1.227c0 .15-.122.273-.273.273h-2.454a.273.273 0 0 1-.273-.273V37.5Z"/>\n</g>\n')}},glasses:{normal:(a,e)=>'\n<g stroke="#000" stroke-width="2">\n<circle cx="30.269" cy="36.269" r="4.269"/>\n<circle cx="44.269" cy="36.269" r="4.269"/>\n<path d="m33.985 35.106 7-.104"/>\n</g>\n'},mustache:{pencilThinBeard:(a,e)=>'\n<g fill="'.concat(e.hair.value,'">\n<path d="M26.5 45s4.5-.5 11-2v2c-1.5.667-5.5 1.6-7.5 2-2.5.5-3.5-2-3.5-2ZM48 44.756S44 44 38 43v2c1.429.585 4.595 1.149 6.5 1.5 2.381.439 3.5-1.744 3.5-1.744ZM33.31 55.242A1 1 0 0 1 34.28 54h3.44a1 1 0 0 1 .97 1.242l-.25 1a1 1 0 0 1-.97.758h-2.94a1 1 0 0 1-.97-.758l-.25-1Z"/>\n</g>\n'),pencilThin:(a,e)=>'\n<g fill="#1B0B47">\n<path d="M37.5 43c-6.5 1.5-11 2-11 2s1 2.5 3.5 2c2-.4 6-1.333 7.5-2v-2ZM38 43c6 1 10 1.756 10 1.756s-1.119 2.183-3.5 1.744l-.32-.059C42.256 46.088 39.35 45.553 38 45v-2Z"/>\n</g>\n',horshoe:(a,e)=>'\n<path d="M27 46a3 3 0 0 1 3-3h11a3 3 0 0 1 3 3v11a4 4 0 0 1-4-4v-7h-9v7a4 4 0 0 1-4 4V46Z" fill="'.concat(e.hair.value,'"/>\n'),freddy:(a,e)=>'\n<path d="M28 46a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3H28Z" fill="'.concat(e.hair.value,'"/>\n')},blushes:{default:(a,e)=>'\n<g fill="#FF859B">\n<rect x="24" y="39" width="5" height="3" rx="1.5"/>\n<rect x="43" y="39" width="4" height="3" rx="1.5"/>\n</g>\n'}});function t(a,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=l,i=a.pick(t);return n[e][i]?{name:i,value:n[e][i]}:void 0}var n=Object.freeze({__proto__:null,skin:{yellow:"rgba(255, 203, 126, 1)",white:"rgba(245, 208, 197, 1)",dark:"rgba(131, 96, 85, 1)"},hair:{brown:"rgba(71, 40, 11, 1)",black:"rgba(27, 11, 71, 1)",red:"rgba(173, 58, 32, 1)"},body:{orange:"rgba(224, 90, 51, 1)",blue:"rgba(54, 51, 224, 1)",pink:"rgba(255, 77, 216, 1)"}});function i(a,e,l){var t;const i=n;0===l.length&&l.push("transparent");const r=a.pick(l);return{name:r,value:null!==(t=i[e][r])&&void 0!==t?t:r}}const r={meta:{title:"Miniavs - Free Avatar Creator",creator:"Webpixels",source:"https://www.figma.com/community/file/923211396597067458",license:{name:"CC BY 4.0",url:"https://creativecommons.org/licenses/by/4.0/"}},schema:{title:"Options",$schema:"http://json-schema.org/draft-07/schema#",properties:{head:{title:"Head",type:"array",items:{type:"string",enum:["normal","wide","thin"]},default:["normal","wide","thin"]},body:{title:"Body",type:"array",items:{type:"string",enum:["tShirt","golf"]},default:["tShirt","golf"]},hair:{title:"Hair",type:"array",items:{type:"string",enum:["balndess","slaughter","ponyTail","long","curly","stylish","elvis","classic02","classic01"]},default:["balndess","slaughter","ponyTail","long","curly","stylish","elvis","classic02","classic01"]},mouth:{title:"Mouth",type:"array",items:{type:"string",enum:["default","missingTooth"]},default:["default","missingTooth"]},eyes:{title:"Eyes",type:"array",items:{type:"string",enum:["normal","confident","happy"]},default:["normal","confident","happy"]},glasses:{title:"Glasses",type:"array",items:{type:"string",enum:["normal"]},default:["normal"]},glassesProbability:{title:"Glasses Probability",default:20,type:"integer",minimum:0,maximum:100},mustache:{title:"Mustache",type:"array",items:{type:"string",enum:["pencilThinBeard","pencilThin","horshoe","freddy"]},default:["pencilThinBeard","pencilThin","horshoe","freddy"]},mustacheProbability:{title:"Mustache Probability",default:20,type:"integer",minimum:0,maximum:100},blushes:{title:"Blushes",type:"array",items:{type:"string",enum:["default"]},default:["default"]},blushesProbability:{title:"Blushes Probability",default:50,type:"integer",minimum:0,maximum:100},skinColor:{title:"Skin Color",type:"array",items:{anyOf:[{type:"string",enum:["yellow","white","dark"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["yellow","white","dark"]},hairColor:{title:"Hair Color",type:"array",items:{anyOf:[{type:"string",enum:["brown","black","red"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["brown","black","red"]},bodyColor:{title:"Body Color",type:"array",items:{anyOf:[{type:"string",enum:["orange","blue","pink"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["orange","blue","pink"]}},additionalProperties:!1},create:a=>{var e,l,n,r,o,c,s,h,d,u,f,v,y,p,g,m,b;let{prng:M,options:Z}=a;const x=t(M,"head",Z.head),w=t(M,"body",Z.body),A=t(M,"hair",Z.hair),C=t(M,"mouth",Z.mouth),k=t(M,"eyes",Z.eyes),B=t(M,"glasses",Z.glasses),F=t(M,"mustache",Z.mustache),T=t(M,"blushes",Z.blushes),V={head:x,body:w,hair:A,mouth:C,eyes:k,glasses:M.bool(Z.glassesProbability)?B:void 0,mustache:M.bool(Z.mustacheProbability)?F:void 0,blushes:M.bool(Z.blushesProbability)?T:void 0},H={skin:i(M,"skin",null!==(e=Z.skinColor)&&void 0!==e?e:[]),hair:i(M,"hair",null!==(l=Z.hairColor)&&void 0!==l?l:[]),body:i(M,"body",null!==(n=Z.bodyColor)&&void 0!==n?n:[])};return{attributes:{viewBox:"0 0 64 64",fill:"none"},body:"\n<g>\n".concat(null!==(r=null===(o=V.head)||void 0===o?void 0:o.value(V,H))&&void 0!==r?r:"","\n</g>\n<g>\n").concat(null!==(c=null===(s=V.body)||void 0===s?void 0:s.value(V,H))&&void 0!==c?c:"","\n</g>\n<g>\n").concat(null!==(h=null===(d=V.hair)||void 0===d?void 0:d.value(V,H))&&void 0!==h?h:"",'\n</g>\n<g transform="translate(1)">\n').concat(null!==(u=null===(f=V.mouth)||void 0===f?void 0:f.value(V,H))&&void 0!==u?u:"",'\n</g>\n<g transform="translate(0 -1)">\n').concat(null!==(v=null===(y=V.eyes)||void 0===y?void 0:y.value(V,H))&&void 0!==v?v:"","\n</g>\n<g>\n").concat(null!==(p=null===(g=V.glasses)||void 0===g?void 0:g.value(V,H))&&void 0!==p?p:"","\n</g>\n<g>\n").concat(null!==(m=null===(b=V.mustache)||void 0===b?void 0:b.value(V,H))&&void 0!==m?m:"","\n</g>\n")}}};
1
+ !function(n,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("@dicebear/avatars")):"function"==typeof define&&define.amd?define(["exports","@dicebear/avatars"],a):a(((n="undefined"!=typeof globalThis?globalThis:n||self).DiceBear=n.DiceBear||{},n.DiceBear.Miniavs={}),n.DiceBear)}(this,(function(n,a){"use strict";var t=Object.freeze({__proto__:null,head:{normal:function(n,a){return'\n<path d="M45.887 36.1c0 8.5-1.257 18.859-10.887 19.82v9.95S31.357 68 26.5 68 18 64.523 18 64.523V42a5 5 0 0 1-1.303-9.829C15.36 22.643 17.51 13 32.002 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284Z" fill="'.concat(a.skin.value,'"/>\n<path d="M35 55.92c-.478.048-.978.072-1.498.072-8.883 0-13.9-7.153-15.502-14.605v23.135s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13V55.92Z" fill="#000" fill-opacity=".07"/>\n<path d="M34.629 55.952c-.364.026-.74.04-1.128.04-6.53 0-10.97-3.866-13.501-8.875v.424l.001.695c0 5.385 2.614 9.75 8.276 9.75.484 0 .932.004 1.348.007 3.346.028 4.59.038 5.004-2.041ZM16.697 32.172A5.002 5.002 0 0 0 18 42c.047 0 .093 0 .14-.002a25.38 25.38 0 0 1-.71-5.898 46.698 46.698 0 0 1-.733-3.928Z" fill="#000" fill-opacity=".07"/>\n<rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>\n')},wide:function(n,a){return'\n<path d="M46.07 40.409c.47 7.492.939 14.986-11.07 15.55v9.912S31.357 68 26.5 68 18 64.523 18 64.523V45.096a27.765 27.765 0 0 1-.412-3.113 5 5 0 0 1-.89-9.812C15.36 22.643 17.508 13 32.001 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284 0 1.403.091 2.856.183 4.31Z" fill="'.concat(a.skin.value,'"/>\n<path d="M17.588 41.984c-.158-1.97-.158-3.974-.158-5.884a46.698 46.698 0 0 1-.733-3.928 5.002 5.002 0 0 0 .89 9.812ZM18 45.094V64.52s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13v-9.91c-.48.022-.979.033-1.498.033-10.792 0-14.337-4.946-15.502-10.897Z" fill="#000" fill-opacity=".07"/>\n<path d="M34.932 55.96c-.459.021-.935.032-1.43.032-7.248 0-11.227-2.231-13.412-5.5.503 4.823 3.162 8.493 8.293 8.493.49 0 .944.004 1.365.007 3.796.033 4.922.043 5.184-3.031Z" fill="#000" fill-opacity=".07"/>\n<rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>\n')},thin:function(n,a){return'\n<path d="M45.887 36.1C45.887 45.021 42 55 35.5 56.5a14.512 14.512 0 0 1-.5-.062v9.433S31.357 68 26.5 68 18 64.523 18 64.523V42a5 5 0 0 1-1.303-9.829C15.36 22.643 17.51 13 32.002 13c14.587 0 14.235 11.08 13.957 19.815-.037 1.145-.072 2.25-.072 3.284Z" fill="'.concat(a.skin.value,'"/>\n<path d="M18 42.002v22.523s3.643 3.477 8.5 3.477 8.5-2.13 8.5-2.13V56.44c-7.26-1.02-13.894-7.502-16.454-14.467-.18.02-.361.03-.546.03Z" fill="#000" fill-opacity=".07"/>\n<path d="M16.697 32.172A5.002 5.002 0 0 0 18 42c.185 0 .367-.01.546-.03-.718-1.955-1.116-3.949-1.116-5.87a46.698 46.698 0 0 1-.733-3.928ZM34.696 56.392C27.951 55.3 21.79 49.53 19.001 43.105L19 43.5c0 5.654 6.267 14.474 9.383 15.487 2.568.835 5.397.657 6.313-2.594Z" fill="#000" fill-opacity=".07"/>\n<rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>\n')}},body:{tShirt:function(n,a){return'\n<rect x="7" y="60" width="40" height="23" rx="9" fill="'.concat(a.body.value,'"/>\n')},golf:function(n,a){return'\n<rect x="7" y="60" width="40" height="23" rx="9" fill="'.concat(a.body.value,'"/>\n<path d="M17 58h19v3s-5 1-9.5 1-9.5-1-9.5-1v-3Z" fill="').concat(a.body.value,'"/>\n<path d="M17 58h19v2s-3 1.5-9.5 1.5S17 60 17 60v-2Z" fill="#000" fill-opacity=".2"/>\n<path d="M16.5 59a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2s-5 1-10 1-10-1-10-1Z" fill="').concat(a.body.value,'"/>\n')}},hair:{balndess:function(n,a){return'\n<g fill="'.concat(a.hair.value,'">\n<rect x="14" y="26" width="9" height="2" rx="1"/>\n<rect x="14" y="33" width="7" height="2" rx="1"/>\n<rect x="12" y="29" width="13" height="3" rx="1.5"/>\n</g>\n')},slaughter:function(n,a){return'\n<g fill="'.concat(a.hair.value,'">\n<path d="M24 25c0 .53-.103 1.037-.29 1.5A4 4 0 0 1 20 32a4 4 0 0 1-8 0c0-1.046.065-2.782.368-4.321a4 4 0 0 1 4.801-5.505A4 4 0 0 1 24 25ZM45.849 33.895a4.002 4.002 0 0 0 2.785-5.393 4 4 0 0 0-3.134-5.459c.593 3.14.482 6.61.382 9.774l-.033 1.078Z"/>\n</g>\n')},ponyTail:function(n,a){return'\n<path d="M0 10c7.997-7.997 13.002 3 13.002 3L11 21s-2 2.5 0 10-2.5 11.5-2.5 11.5-3.5 2.502-6.5.502c-3-2-3.397-3.922-3-7.5.5-4.5 2-3.002 2-7.502s-8.997-10.004-1-18Z" fill="'.concat(a.hair.value,'"/>\n<path d="m13.03 13.181 5.508 2.382-3.572 8.26-5.507-2.38s-.96-1.943.54-4.942c1.497-3 3.032-3.32 3.032-3.32Z" fill="#FF6C98"/>\n<path d="m18 41-1.323-8.823A5 5 0 0 0 18 42v8.3a22.137 22.137 0 0 1-4.083-4.83c-1.7-2.704-2.888-5.804-3.482-9.093a27.526 27.526 0 0 1 .04-9.97c.62-3.283 1.833-6.37 3.556-9.055 1.722-2.684 3.915-4.903 6.43-6.506 2.514-1.604 5.292-2.555 8.147-2.789a17.03 17.03 0 0 1 1.868-.05 20.422 20.422 0 0 1 7.795 1.325c2.305.88 4.4 2.169 6.164 3.794a17.48 17.48 0 0 1 4.119 5.677A16.378 16.378 0 0 1 49.93 24H50v4.286s-.329.152-.998.366v8.488s0 1.404-1.5 2.456c-.52.365-1.218.645-1.91.856a32.6 32.6 0 0 0 .297-4.353c0-1.034.035-2.139.071-3.284.036-1.118.073-2.275.08-3.441-1.852.339-4.367.626-7.578.626C30.614 30 26 28.286 26 28.286v-.999c-.68 1.064-1.416 2.35-2 3.713-.75 1.75-.75 3.544-.75 5.051 0 1.508 0 2.73-.75 3.335C21 40.596 18 41 18 41Z" fill="').concat(a.hair.value,'"/>\n')},long:function(n,a){return'\n<path fill-rule="evenodd" clip-rule="evenodd" d="M48 25a18 18 0 0 0-35.993-.5H12V65h11V34.597c2.485-.478 6.78-1.53 12.208-3.756 5.464-2.241 8.873-4.359 10.668-5.637.242 2.524.158 5.16.08 7.61-.036 1.146-.071 2.25-.071 3.285 0 .408-.008.818-.025 1.229.231-.073.447-.153.639-.24 1.5-.684 1.5-1.597 1.5-1.597V25H48Zm-33 8a4.98 4.98 0 0 0-1.62 2.087A5 5 0 0 0 15 41v-8Z" fill="'.concat(a.hair.value,'"/>\n')},curly:function(n,a){return'\n<g fill="'.concat(a.hair.value,'">\n<path d="M45.967 32.483a3.999 3.999 0 0 0 1.78-4.884 4 4 0 0 0-2.966-7.41c1.418 3.674 1.314 8.218 1.186 12.294Z"/>\n<path d="M36.297 22.76A4.981 4.981 0 0 1 33 24a4.978 4.978 0 0 1-3.057-1.043A6.978 6.978 0 0 1 25 25a6.999 6.999 0 0 1-2.045-.304 4.02 4.02 0 0 1-.892.731 4 4 0 0 1-1.351 6.189A1.5 1.5 0 0 1 19.465 34a4 4 0 0 1-7.291-3.17A3.987 3.987 0 0 1 11 28c0-1.106.449-2.107 1.174-2.83a4 4 0 0 1 .738-3.713 7.003 7.003 0 0 1 4.098-10.17 4 4 0 0 1 5.927-3.788A6.997 6.997 0 0 1 29 4c1.373 0 2.654.395 3.735 1.079a6.502 6.502 0 0 1 10.78 1.954 4 4 0 0 1 3.439 4.577C48.809 12.984 50 15.112 50 17.5c0 4.142-3.582 7.5-8 7.5-2.233 0-4.252-.858-5.703-2.24Z"/>\n</g>\n')},stylish:function(n,a){return'\n<path d="M20.673 28.222v6.018c0 .762-.673 1.761-1.173 2.261-.5.5-2 1.5-2.85 1.5-.848 0-3.539-.451-4.826-2.257-1.287-1.805-.893-11.322 0-13.54.892-2.218 4.183-6.888 8.85-10.452 3.38-2.582 7.665-4.717 12.871-5.345C58.485 3.397 49.218 20.987 46 25.5c-5.5-2-9.5-2.5-16.717-1.518-7.217.983-8.016 1.982-8.61 4.239Z" fill="'.concat(a.hair.value,'"/>\n')},elvis:function(n,a){return'\n<path d="M21.998 28c-.629 3 1 6.982 1 7.744 0 .762-3.93 3.025-5 3.757-1.069.731-1.5-7-1.5-7-3 0-3.5 5.5-3.5 5.5s-2.244-.74-3-4.5c-.51-2.54.299-8.089.5-9.5.5-3.5 1-11.5 7.5-15.5s23-4 27-3c9.894 2.473 11.218 15.986 8 20.5-5 5.5-19-1-23.5-1s-6.87 0-7.5 3Z" fill="'.concat(a.hair.value,'"/>\n')},classic02:function(n,a){return'\n<path d="M28.118 27.466c7.796 1.142 21.48 3.147 22.882-9.464 1-9-12.5-19.5-27-10-9.11 1.35-11.389 8.278-11.908 14.254A3.986 3.986 0 0 0 11 25.002c0 .53.103 1.037.29 1.5-.187.463-.29.97-.29 1.5 0 1.106.449 2.106 1.174 2.83A4 4 0 1 0 20 32.002a4 4 0 0 0 3.874-4.999l.126-.001c.952 0 2.39.21 4.118.464Z" fill="'.concat(a.hair.value,'"/>\n')},classic01:function(n,a){return'\n<path d="M29.697 26.203c5.611 1.863 13.389 4.445 21.535-3.701 4-4-14-21-28.5-11.5-11.333 1.679-10.685 8.47-10.185 13.71.095 1.002.185 1.948.185 2.79 0 .533.07.931.2 1.218a26.48 26.48 0 0 0-.2 3.282 4 4 0 1 0 8 0A4 4 0 0 0 24.606 27l.126.002c1.224 0 2.32-.55 3.053-1.416.605.183 1.243.395 1.912.617Z" fill="'.concat(a.hair.value,'"/>\n')}},mouth:{default:function(n,a){return'\n<path d="M27.93 46a1 1 0 0 1 1-1h9.142a1 1 0 0 1 1 1 5 5 0 0 1-5 5H32.93a5 5 0 0 1-5-5Z" fill="#66253C"/>\n<path d="M35.756 50.708a4.992 4.992 0 0 1-1.684.29H32.93a5 5 0 0 1-4.996-4.8c.764-.285 1.898-.253 3.017-.22.356.01.71.02 1.05.02 2.21 0 4 1.568 4 3.5 0 .426-.087.833-.245 1.21Z" fill="#B03E67"/>\n<path d="M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z" fill="#fff"/>\n'},missingTooth:function(n,a){return'\n<path d="M27.93 46a1 1 0 0 1 1-1h9.142a1 1 0 0 1 1 1 5 5 0 0 1-5 5H32.93a5 5 0 0 1-5-5Z" fill="#66253C"/>\n<path d="M35.756 50.708a4.992 4.992 0 0 1-1.684.29H32.93a5 5 0 0 1-4.996-4.8c.764-.285 1.898-.253 3.017-.22.356.01.71.02 1.05.02 2.21 0 4 1.568 4 3.5 0 .426-.087.833-.245 1.21Z" fill="#B03E67"/>\n<path d="M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z" fill="#fff"/>\n<path d="M31 45.3a.3.3 0 0 1 .3-.3h1.4a.3.3 0 0 1 .3.3v2.4a.3.3 0 0 1-.3.3h-1.4a.3.3 0 0 1-.3-.3v-2.4Z" fill="#B03E67"/>\n'}},eyes:{normal:function(n,a){var t,e;return'\n<g fill="'.concat(a.hair.value,'">\n<rect x="30" y="36" width="3" height="4" rx="1.5"/>\n<rect x="40" y="36" width="3" height="4" rx="1.5"/>\n</g>\n<g>\n').concat(null!==(t=null===(e=n.blushes)||void 0===e?void 0:e.value(n,a))&&void 0!==t?t:"","\n</g>\n")},confident:function(n,a){var t,e;return"\n<g>\n".concat(null!==(t=null===(e=n.blushes)||void 0===e?void 0:e.value(n,a))&&void 0!==t?t:"",'\n</g>\n<path d="M43 37.5a1.5 1.5 0 0 1-3 0v-1.227c0-.15.122-.273.273-.273h2.454c.15 0 .273.122.273.273V37.5ZM33 37.5a1.5 1.5 0 0 1-3 0v-1.227c0-.15.122-.273.273-.273h2.454c.15 0 .273.122.273.273V37.5Z" fill="').concat(a.hair.value,'"/>\n<path stroke="').concat(a.hair.value,'" stroke-linecap="round" d="M29.5 36.5h4M39.5 36.5h4"/>\n')},happy:function(n,a){var t,e;return"\n<g>\n".concat(null!==(t=null===(e=n.blushes)||void 0===e?void 0:e.value(n,a))&&void 0!==t?t:"",'\n</g>\n<g fill="#1B0B47">\n<path d="M30 37.5a1.5 1.5 0 0 1 3 0v1.227c0 .15-.122.273-.273.273h-2.454a.273.273 0 0 1-.273-.273V37.5ZM40 37.5a1.5 1.5 0 0 1 3 0v1.227c0 .15-.122.273-.273.273h-2.454a.273.273 0 0 1-.273-.273V37.5Z"/>\n</g>\n')}},glasses:{normal:function(n,a){return'\n<g stroke="#000" stroke-width="2">\n<circle cx="30.269" cy="36.269" r="4.269"/>\n<circle cx="44.269" cy="36.269" r="4.269"/>\n<path d="m33.985 35.106 7-.104"/>\n</g>\n'}},mustache:{pencilThinBeard:function(n,a){return'\n<g fill="'.concat(a.hair.value,'">\n<path d="M26.5 45s4.5-.5 11-2v2c-1.5.667-5.5 1.6-7.5 2-2.5.5-3.5-2-3.5-2ZM48 44.756S44 44 38 43v2c1.429.585 4.595 1.149 6.5 1.5 2.381.439 3.5-1.744 3.5-1.744ZM33.31 55.242A1 1 0 0 1 34.28 54h3.44a1 1 0 0 1 .97 1.242l-.25 1a1 1 0 0 1-.97.758h-2.94a1 1 0 0 1-.97-.758l-.25-1Z"/>\n</g>\n')},pencilThin:function(n,a){return'\n<g fill="#1B0B47">\n<path d="M37.5 43c-6.5 1.5-11 2-11 2s1 2.5 3.5 2c2-.4 6-1.333 7.5-2v-2ZM38 43c6 1 10 1.756 10 1.756s-1.119 2.183-3.5 1.744l-.32-.059C42.256 46.088 39.35 45.553 38 45v-2Z"/>\n</g>\n'},horshoe:function(n,a){return'\n<path d="M27 46a3 3 0 0 1 3-3h11a3 3 0 0 1 3 3v11a4 4 0 0 1-4-4v-7h-9v7a4 4 0 0 1-4 4V46Z" fill="'.concat(a.hair.value,'"/>\n')},freddy:function(n,a){return'\n<path d="M28 46a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3H28Z" fill="'.concat(a.hair.value,'"/>\n')}},blushes:{default:function(n,a){return'\n<g fill="#FF859B">\n<rect x="24" y="39" width="5" height="3" rx="1.5"/>\n<rect x="43" y="39" width="4" height="3" rx="1.5"/>\n</g>\n'}}});function e(n,a){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=t,l=n.pick(e);return i[a][l]?{name:l,value:i[a][l]}:void 0}var i=Object.freeze({__proto__:null,skin:{yellow:"rgba(255, 203, 126, 1)",white:"rgba(245, 208, 197, 1)",dark:"rgba(131, 96, 85, 1)"},hair:{brown:"rgba(71, 40, 11, 1)",black:"rgba(27, 11, 71, 1)",red:"rgba(173, 58, 32, 1)"},body:{orange:"rgba(224, 90, 51, 1)",blue:"rgba(54, 51, 224, 1)",pink:"rgba(255, 77, 216, 1)"}});function l(n,a,t){var e,l=i;0===t.length&&t.push("transparent");var r=n.pick(t);return{name:r,value:null!==(e=l[a][r])&&void 0!==e?e:r}}var r={meta:{title:"Miniavs - Free Avatar Creator",creator:"Webpixels",source:"https://www.figma.com/community/file/923211396597067458",license:{name:"CC BY 4.0",url:"https://creativecommons.org/licenses/by/4.0/"}},schema:{title:"Options",$schema:"http://json-schema.org/draft-07/schema#",properties:{head:{title:"Head",type:"array",items:{type:"string",enum:["normal","wide","thin"]},default:["normal","wide","thin"]},body:{title:"Body",type:"array",items:{type:"string",enum:["tShirt","golf"]},default:["tShirt","golf"]},hair:{title:"Hair",type:"array",items:{type:"string",enum:["balndess","slaughter","ponyTail","long","curly","stylish","elvis","classic02","classic01"]},default:["balndess","slaughter","ponyTail","long","curly","stylish","elvis","classic02","classic01"]},mouth:{title:"Mouth",type:"array",items:{type:"string",enum:["default","missingTooth"]},default:["default","missingTooth"]},eyes:{title:"Eyes",type:"array",items:{type:"string",enum:["normal","confident","happy"]},default:["normal","confident","happy"]},glasses:{title:"Glasses",type:"array",items:{type:"string",enum:["normal"]},default:["normal"]},glassesProbability:{title:"Glasses Probability",default:20,type:"integer",minimum:0,maximum:100},mustache:{title:"Mustache",type:"array",items:{type:"string",enum:["pencilThinBeard","pencilThin","horshoe","freddy"]},default:["pencilThinBeard","pencilThin","horshoe","freddy"]},mustacheProbability:{title:"Mustache Probability",default:20,type:"integer",minimum:0,maximum:100},blushes:{title:"Blushes",type:"array",items:{type:"string",enum:["default"]},default:["default"]},blushesProbability:{title:"Blushes Probability",default:50,type:"integer",minimum:0,maximum:100},skinColor:{title:"Skin Color",type:"array",items:{anyOf:[{type:"string",enum:["yellow","white","dark"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["yellow","white","dark"]},hairColor:{title:"Hair Color",type:"array",items:{anyOf:[{type:"string",enum:["brown","black","red"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["brown","black","red"]},bodyColor:{title:"Body Color",type:"array",items:{anyOf:[{type:"string",enum:["orange","blue","pink"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["orange","blue","pink"]}},additionalProperties:!1},create:function(n){var a,t,i,r,o,c,s,u,h,d,f,p,v,y,g,m,b,M=n.prng,Z=n.options;!function(n){n.prng,n.options}({prng:M,options:Z});var x=e(M,"head",Z.head),w=e(M,"body",Z.body),A=e(M,"hair",Z.hair),C=e(M,"mouth",Z.mouth),k=e(M,"eyes",Z.eyes),B=e(M,"glasses",Z.glasses),F=e(M,"mustache",Z.mustache),T=e(M,"blushes",Z.blushes),V={head:x,body:w,hair:A,mouth:C,eyes:k,glasses:M.bool(Z.glassesProbability)?B:void 0,mustache:M.bool(Z.mustacheProbability)?F:void 0,blushes:M.bool(Z.blushesProbability)?T:void 0},H={skin:l(M,"skin",null!==(a=Z.skinColor)&&void 0!==a?a:[]),hair:l(M,"hair",null!==(t=Z.hairColor)&&void 0!==t?t:[]),body:l(M,"body",null!==(i=Z.bodyColor)&&void 0!==i?i:[])};return function(n){n.prng,n.options,n.components,n.colors}({prng:M,options:Z,components:V,colors:H}),{attributes:{viewBox:"0 0 64 64",fill:"none"},body:"\n<g>\n".concat(null!==(r=null===(o=V.head)||void 0===o?void 0:o.value(V,H))&&void 0!==r?r:"","\n</g>\n<g>\n").concat(null!==(c=null===(s=V.body)||void 0===s?void 0:s.value(V,H))&&void 0!==c?c:"","\n</g>\n<g>\n").concat(null!==(u=null===(h=V.hair)||void 0===h?void 0:h.value(V,H))&&void 0!==u?u:"",'\n</g>\n<g transform="translate(1)">\n').concat(null!==(d=null===(f=V.mouth)||void 0===f?void 0:f.value(V,H))&&void 0!==d?d:"",'\n</g>\n<g transform="translate(0 -1)">\n').concat(null!==(p=null===(v=V.eyes)||void 0===v?void 0:v.value(V,H))&&void 0!==p?p:"","\n</g>\n<g>\n").concat(null!==(y=null===(g=V.glasses)||void 0===g?void 0:g.value(V,H))&&void 0!==y?y:"","\n</g>\n<g>\n").concat(null!==(m=null===(b=V.mustache)||void 0===b?void 0:b.value(V,H))&&void 0!==m?m:"","\n</g>\n")}}},o=r.create,c=r.meta,s=r.schema,u=a.utils.style.createLegacyWrapper(r);
2
2
  /*!
3
3
  * Miniavs - Free Avatar Creator (@dicebear/miniavs)
4
4
  *
@@ -8,4 +8,4 @@
8
8
  * Design "Miniavs - Free Avatar Creator" by Webpixels licensed under CC BY 4.0.
9
9
  * Source: https://www.figma.com/community/file/923211396597067458
10
10
  * License: https://creativecommons.org/licenses/by/4.0/
11
- */let{create:o,meta:c,schema:s}=r;var h=e.utils.style.createLegacyWrapper(r);a.create=o,a.default=h,a.meta=c,a.schema=s,Object.defineProperty(a,"__esModule",{value:!0})}));
11
+ */n.create=o,n.default=u,n.meta=c,n.schema=s,Object.defineProperty(n,"__esModule",{value:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dicebear/miniavs",
3
- "version": "4.10.2",
3
+ "version": "4.10.4",
4
4
  "description": "Avatar style for DiceBear",
5
5
  "keywords": [
6
6
  "dicebear"
@@ -30,11 +30,11 @@
30
30
  "build": "dicebear-project build DiceBear.Miniavs"
31
31
  },
32
32
  "devDependencies": {
33
- "@dicebear/avatars": "^4.10.2",
33
+ "@dicebear/avatars": "^4.10.4",
34
34
  "@tsconfig/recommended": "^1.0.0",
35
35
  "@types/jest": "^26.0.22",
36
36
  "@types/node": "^10.11.6",
37
- "dicebear-project": "^4.10.2",
37
+ "dicebear-project": "^4.10.4",
38
38
  "jest": "^26.6.3",
39
39
  "shx": "^0.3.3",
40
40
  "ts-jest": "^26.5.4",
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "28ffc2046de961f814b3c5804c562dd318821a7b"
50
+ "gitHead": "579a3f403a91f5e4909d8bc2c5b26792220ee58f"
51
51
  }